Imported Upstream version 1.2.99~20120606~SE~ff65aef~SYSYNC~2728cb4
[platform/upstream/syncevolution.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for syncevolution 1.2.99+20120606+SE+ff65aef+SYSYNC+2728cb4.
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='syncevolution'
700 PACKAGE_TARNAME='syncevolution'
701 PACKAGE_VERSION='1.2.99+20120606+SE+ff65aef+SYSYNC+2728cb4'
702 PACKAGE_STRING='syncevolution 1.2.99+20120606+SE+ff65aef+SYSYNC+2728cb4'
703 PACKAGE_BUGREPORT=''
704 PACKAGE_URL=''
705
706 # Factoring default headers for most tests.
707 ac_includes_default="\
708 #include <stdio.h>
709 #ifdef HAVE_SYS_TYPES_H
710 # include <sys/types.h>
711 #endif
712 #ifdef HAVE_SYS_STAT_H
713 # include <sys/stat.h>
714 #endif
715 #ifdef STDC_HEADERS
716 # include <stdlib.h>
717 # include <stddef.h>
718 #else
719 # ifdef HAVE_STDLIB_H
720 #  include <stdlib.h>
721 # endif
722 #endif
723 #ifdef HAVE_STRING_H
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
725 #  include <memory.h>
726 # endif
727 # include <string.h>
728 #endif
729 #ifdef HAVE_STRINGS_H
730 # include <strings.h>
731 #endif
732 #ifdef HAVE_INTTYPES_H
733 # include <inttypes.h>
734 #endif
735 #ifdef HAVE_STDINT_H
736 # include <stdint.h>
737 #endif
738 #ifdef HAVE_UNISTD_H
739 # include <unistd.h>
740 #endif"
741
742 ac_subst_vars='am__EXEEXT_FALSE
743 am__EXEEXT_TRUE
744 LTLIBOBJS
745 LIBOBJS
746 COND_CROSS_COMPILING_FALSE
747 COND_CROSS_COMPILING_TRUE
748 SYNCEVOLUTION_LIBS
749 SYNCEVOLUTION_CFLAGS
750 syncevo_backenddir
751 BACKENDS_SEARCH_DIRECTORY
752 BACKENDS_DIRECTORY
753 LIBICAL_AVAILABLE_LIBS
754 LIBICAL_AVAILABLE_CFLAGS
755 ENABLE_EVOLUTION_COMPATIBILITY_FALSE
756 ENABLE_EVOLUTION_COMPATIBILITY_TRUE
757 SYNCEVOLUTION_CXXFLAGS
758 SYNCEVOLUTION_LDADD
759 ENABLE_MODULES_FALSE
760 ENABLE_MODULES_TRUE
761 NSS_LIBS
762 NSS_CFLAGS
763 GLIB216_LIBS
764 GLIB216_CFLAGS
765 QT_LIBS
766 QT_LDFLAGS
767 QT_LFLAGS
768 QT_CPPFLAGS
769 QT_INCPATH
770 QT_CXXFLAGS
771 QT_CFLAGS
772 QT_DEFINES
773 QT_VERSION_MAJOR
774 RCC
775 UIC
776 MOC
777 QT_PATH
778 ENABLE_ICAL_FALSE
779 ENABLE_ICAL_TRUE
780 LIBICAL_LIBS
781 LIBICAL_CFLAGS
782 GIO_LIBS
783 GIO_CFLAGS
784 GOBJECT_LIBS
785 GOBJECT_CFLAGS
786 GTHREAD_LIBS
787 GTHREAD_CFLAGS
788 GLIB_LIBS
789 GLIB_CFLAGS
790 QT_DBUS_LIBS
791 ENABLE_QT_DBUS_FALSE
792 ENABLE_QT_DBUS_TRUE
793 QDBUSXML_TO_CPP
794 XMLRPC_LIBS
795 XMLRPC_CFLAGS
796 XMLRPC_C_CONFIG
797 NEON_COMPATIBILITY_FALSE
798 NEON_COMPATIBILITY_TRUE
799 NEON_LIBS
800 NEON_CFLAGS
801 SQLITE_LIBS
802 SQLITE_CFLAGS
803 QT_CONTACTS_LIBS
804 MCALB_LIBS
805 MCALB_CFLAGS
806 USE_KDE_KWALLET_FALSE
807 USE_KDE_KWALLET_TRUE
808 KDE_KWALLET_CFLAGS
809 KDE_KWALLET_LIBS
810 KDE4_CONFIG
811 KCALEXTENDED_LIBS
812 KCALEXTENDED_CFLAGS
813 KEYRING_2_20_LIBS
814 KEYRING_2_20_CFLAGS
815 KEYRING_LIBS
816 KEYRING_CFLAGS
817 FILE_LIBS
818 FILE_CFLAGS
819 ENABLE_ECAL_FALSE
820 ENABLE_ECAL_TRUE
821 EBOOK_VERSION_LIBS
822 EBOOK_VERSION_CFLAGS
823 EBOOK_LIBS
824 EBOOK_CFLAGS
825 ECAL_LIBS
826 ECAL_CFLAGS
827 EPACKAGE_LIBS
828 EPACKAGE_CFLAGS
829 ENABLE_AKONADI_FALSE
830 ENABLE_AKONADI_TRUE
831 KDEPIM_CFLAGS
832 KDEPIM_LIBS
833 QMAKE
834 ADDRESSBOOK_LIBS
835 ADDRESSBOOK_CFLAGS
836 EASCLIENT_CFLAGS
837 EASCLIENT_DEPENDENCIES
838 EASCLIENT_LIBS
839 LIBEASCLIENT_LA_DEPENDENCIES
840 BUILD_ACTIVESYNCD_FALSE
841 BUILD_ACTIVESYNCD_TRUE
842 BACKEND_DEFINES
843 SYNCSOURCES
844 COND_DOC_FALSE
845 COND_DOC_TRUE
846 ENABLE_GNOME_BLUETOOTH_PANEL_FALSE
847 ENABLE_GNOME_BLUETOOTH_PANEL_TRUE
848 GNOMEBLUETOOTH_DIR
849 GNOMEBLUETOOTH_LIBS
850 GNOMEBLUETOOTH_CFLAGS
851 BACKEND_CPPFLAGS
852 SYNTHESISSRC
853 SYNTHESIS_LIB
854 SYNTHESIS_ENGINE
855 SYNTHESIS_DEP
856 SYNTHESIS_SUBDIR_INCLUDES
857 SYNTHESIS_SUBDIR
858 SYNTHESIS
859 WITH_SYNTHESIS_SRC_LIBS
860 WITH_SYNTHESIS_SRC_CFLAGS
861 SYNTHESIS_LIBS
862 SYNTHESIS_CFLAGS
863 SYNTHESIS_SRC
864 COND_HTML_README_FALSE
865 COND_HTML_README_TRUE
866 RST2HTML
867 COND_MAN_PAGES_FALSE
868 COND_MAN_PAGES_TRUE
869 RST2MAN
870 PCRECPP_LIBS
871 PCRECPP_CFLAGS
872 BOOST_LDFLAGS
873 BOOST_CPPFLAGS
874 GUI_DESKTOP_FILES
875 GUI_PROGRAMS
876 GETTEXT_PACKAGE
877 SYNCEVOLUTION_LOCALEDIR
878 GUI_LIBS
879 GUI_CFLAGS
880 GTK_2_18_LIBS
881 GTK_2_18_CFLAGS
882 UNIQUE_LIBS
883 UNIQUE_CFLAGS
884 MX_GTK_0_99_1_LIBS
885 MX_GTK_0_99_1_CFLAGS
886 GLIB_GENMARSHAL
887 DBUS_BINDING_TOOL
888 MKINSTALLDIRS
889 POSUB
890 POFILES
891 PO_IN_DATADIR_FALSE
892 PO_IN_DATADIR_TRUE
893 INTLLIBS
894 INSTOBJEXT
895 GMOFILES
896 CATOBJEXT
897 CATALOGS
898 MSGFMT_OPTS
899 DATADIRNAME
900 ALL_LINGUAS
901 INTLTOOL_PERL
902 GMSGFMT
903 MSGFMT
904 MSGMERGE
905 XGETTEXT
906 INTLTOOL_POLICY_RULE
907 INTLTOOL_SERVICE_RULE
908 INTLTOOL_THEME_RULE
909 INTLTOOL_SCHEMAS_RULE
910 INTLTOOL_CAVES_RULE
911 INTLTOOL_XML_NOMERGE_RULE
912 INTLTOOL_XML_RULE
913 INTLTOOL_KBD_RULE
914 INTLTOOL_XAM_RULE
915 INTLTOOL_UI_RULE
916 INTLTOOL_SOUNDLIST_RULE
917 INTLTOOL_SHEET_RULE
918 INTLTOOL_SERVER_RULE
919 INTLTOOL_PONG_RULE
920 INTLTOOL_OAF_RULE
921 INTLTOOL_PROP_RULE
922 INTLTOOL_KEYS_RULE
923 INTLTOOL_DIRECTORY_RULE
924 INTLTOOL_DESKTOP_RULE
925 INTLTOOL_EXTRACT
926 INTLTOOL_MERGE
927 INTLTOOL_UPDATE
928 USE_NLS
929 DBUS_SERVICES_DIR
930 LIBEXECDIR
931 DBUS_GLIB_LIBS
932 DBUS_GLIB_CFLAGS
933 NOTIFY_COMPATIBILITY_FALSE
934 NOTIFY_COMPATIBILITY_TRUE
935 MLITE_LIBS
936 MLITE_CFLAGS
937 LIBNOTIFY_LIBS
938 LIBNOTIFY_CFLAGS
939 DBUS_LIBS
940 DBUS_CFLAGS
941 COND_GIO_GDBUS_FALSE
942 COND_GIO_GDBUS_TRUE
943 COND_DBUS_FALSE
944 COND_DBUS_TRUE
945 COND_CORE_FALSE
946 COND_CORE_TRUE
947 COND_GUI_FALSE
948 COND_GUI_TRUE
949 COND_GTK2_FALSE
950 COND_GTK2_TRUE
951 XSLT
952 TRANSPORT_CFLAGS
953 TRANSPORT_LIBS
954 ENABLE_BLUETOOTH_FALSE
955 ENABLE_BLUETOOTH_TRUE
956 ENABLE_OBEX_FALSE
957 ENABLE_OBEX_TRUE
958 BLUEZ_LIBS
959 BLUEZ_CFLAGS
960 LIBOPENOBEX_LIBS
961 LIBOPENOBEX_CFLAGS
962 LIBSOUP_LIBS
963 LIBSOUP_CFLAGS
964 PKG_CONFIG
965 CORE_LDADD_DEP
966 ENABLE_TESTING_FALSE
967 ENABLE_TESTING_TRUE
968 ENABLE_UNIT_TESTS_FALSE
969 ENABLE_UNIT_TESTS_TRUE
970 CPPUNIT_LDFLAGS
971 CPPUNIT_CXXFLAGS
972 CPPUNIT_CONFIG
973 MODIFY_SYNCCOMPARE
974 SYNCEVO_WFLAGS
975 CXXCPP
976 am__fastdepCXX_FALSE
977 am__fastdepCXX_TRUE
978 CXXDEPMODE
979 ac_ct_CXX
980 CXXFLAGS
981 CXX
982 CPP
983 OTOOL64
984 OTOOL
985 LIPO
986 NMEDIT
987 DSYMUTIL
988 lt_ECHO
989 RANLIB
990 AR
991 OBJDUMP
992 LN_S
993 NM
994 ac_ct_DUMPBIN
995 DUMPBIN
996 LD
997 FGREP
998 EGREP
999 GREP
1000 SED
1001 host_os
1002 host_vendor
1003 host_cpu
1004 host
1005 build_os
1006 build_vendor
1007 build_cpu
1008 build
1009 LIBTOOL
1010 MAINT
1011 MAINTAINER_MODE_FALSE
1012 MAINTAINER_MODE_TRUE
1013 am__fastdepCC_FALSE
1014 am__fastdepCC_TRUE
1015 CCDEPMODE
1016 AMDEPBACKSLASH
1017 AMDEP_FALSE
1018 AMDEP_TRUE
1019 am__quote
1020 am__include
1021 DEPDIR
1022 OBJEXT
1023 EXEEXT
1024 ac_ct_CC
1025 CPPFLAGS
1026 LDFLAGS
1027 CFLAGS
1028 CC
1029 AM_BACKSLASH
1030 AM_DEFAULT_VERBOSITY
1031 am__untar
1032 am__tar
1033 AMTAR
1034 am__leading_dot
1035 SET_MAKE
1036 AWK
1037 mkdir_p
1038 MKDIR_P
1039 INSTALL_STRIP_PROGRAM
1040 STRIP
1041 install_sh
1042 MAKEINFO
1043 AUTOHEADER
1044 AUTOMAKE
1045 AUTOCONF
1046 ACLOCAL
1047 VERSION
1048 PACKAGE
1049 CYGPATH_W
1050 am__isrc
1051 INSTALL_DATA
1052 INSTALL_SCRIPT
1053 INSTALL_PROGRAM
1054 STABLE_VERSION
1055 target_alias
1056 host_alias
1057 build_alias
1058 LIBS
1059 ECHO_T
1060 ECHO_N
1061 ECHO_C
1062 DEFS
1063 mandir
1064 localedir
1065 libdir
1066 psdir
1067 pdfdir
1068 dvidir
1069 htmldir
1070 infodir
1071 docdir
1072 oldincludedir
1073 includedir
1074 localstatedir
1075 sharedstatedir
1076 sysconfdir
1077 datadir
1078 datarootdir
1079 libexecdir
1080 sbindir
1081 bindir
1082 program_transform_name
1083 prefix
1084 exec_prefix
1085 PACKAGE_URL
1086 PACKAGE_BUGREPORT
1087 PACKAGE_STRING
1088 PACKAGE_VERSION
1089 PACKAGE_TARNAME
1090 PACKAGE_NAME
1091 PATH_SEPARATOR
1092 SHELL'
1093 ac_subst_files=''
1094 ac_user_opts='
1095 enable_option_checking
1096 enable_release_mode
1097 enable_silent_rules
1098 enable_dependency_tracking
1099 enable_maintainer_mode
1100 enable_shared
1101 enable_static
1102 with_pic
1103 enable_fast_install
1104 with_gnu_ld
1105 enable_libtool_lock
1106 enable_warnings
1107 with_synthesis_src
1108 with_syncml_engines
1109 with_synthesis_username
1110 with_synthesis_revision
1111 enable_unit_tests
1112 enable_integration_tests
1113 enable_static_cxx
1114 enable_evolution_compatibility
1115 enable_developer_mode
1116 enable_maemo
1117 with_ca_certificates
1118 enable_libcurl
1119 enable_libsoup
1120 enable_bluetooth
1121 enable_ssl_certificate_check
1122 enable_gtk
1123 enable_gui
1124 enable_core
1125 enable_dbus_service
1126 with_gio_gdbus
1127 enable_notify
1128 enable_notify_compatibility
1129 enable_mlite
1130 enable_nls
1131 with_boost
1132 with_boost_libdir
1133 with_rst2man
1134 with_rst2html
1135 enable_gnome_bluetooth_panel_plugin
1136 enable_doc
1137 enable_activesync
1138 with_activesyncd_src
1139 enable_addressbook
1140 enable_akonadi
1141 enable_ebook
1142 enable_ecal
1143 enable_eds_client_api
1144 enable_file
1145 enable_gnome_keyring
1146 enable_kcalextended
1147 enable_kwallet
1148 enable_maemocal
1149 enable_qtcontacts
1150 enable_sqlite
1151 enable_dav
1152 enable_neon_compatibility
1153 enable_xmlrpc
1154 enable_qt_dbus
1155 with_qt
1156 enable_dbus_timeout_hack
1157 '
1158       ac_precious_vars='build_alias
1159 host_alias
1160 target_alias
1161 CC
1162 CFLAGS
1163 LDFLAGS
1164 LIBS
1165 CPPFLAGS
1166 CPP
1167 CXX
1168 CXXFLAGS
1169 CCC
1170 CXXCPP
1171 PKG_CONFIG
1172 LIBSOUP_CFLAGS
1173 LIBSOUP_LIBS
1174 LIBOPENOBEX_CFLAGS
1175 LIBOPENOBEX_LIBS
1176 BLUEZ_CFLAGS
1177 BLUEZ_LIBS
1178 DBUS_CFLAGS
1179 DBUS_LIBS
1180 LIBNOTIFY_CFLAGS
1181 LIBNOTIFY_LIBS
1182 MLITE_CFLAGS
1183 MLITE_LIBS
1184 DBUS_GLIB_CFLAGS
1185 DBUS_GLIB_LIBS
1186 MX_GTK_0_99_1_CFLAGS
1187 MX_GTK_0_99_1_LIBS
1188 UNIQUE_CFLAGS
1189 UNIQUE_LIBS
1190 GTK_2_18_CFLAGS
1191 GTK_2_18_LIBS
1192 GUI_CFLAGS
1193 GUI_LIBS
1194 PCRECPP_CFLAGS
1195 PCRECPP_LIBS
1196 SYNTHESIS_CFLAGS
1197 SYNTHESIS_LIBS
1198 WITH_SYNTHESIS_SRC_CFLAGS
1199 WITH_SYNTHESIS_SRC_LIBS
1200 GNOMEBLUETOOTH_CFLAGS
1201 GNOMEBLUETOOTH_LIBS
1202 EASCLIENT_CFLAGS
1203 EASCLIENT_LIBS
1204 EPACKAGE_CFLAGS
1205 EPACKAGE_LIBS
1206 ECAL_CFLAGS
1207 ECAL_LIBS
1208 EBOOK_CFLAGS
1209 EBOOK_LIBS
1210 EBOOK_VERSION_CFLAGS
1211 EBOOK_VERSION_LIBS
1212 KEYRING_CFLAGS
1213 KEYRING_LIBS
1214 KEYRING_2_20_CFLAGS
1215 KEYRING_2_20_LIBS
1216 KCALEXTENDED_CFLAGS
1217 KCALEXTENDED_LIBS
1218 MCALB_CFLAGS
1219 MCALB_LIBS
1220 SQLITE_CFLAGS
1221 SQLITE_LIBS
1222 NEON_CFLAGS
1223 NEON_LIBS
1224 GLIB_CFLAGS
1225 GLIB_LIBS
1226 GTHREAD_CFLAGS
1227 GTHREAD_LIBS
1228 GOBJECT_CFLAGS
1229 GOBJECT_LIBS
1230 GIO_CFLAGS
1231 GIO_LIBS
1232 LIBICAL_CFLAGS
1233 LIBICAL_LIBS
1234 QT_PATH
1235 QMAKE
1236 MOC
1237 UIC
1238 RCC
1239 GLIB216_CFLAGS
1240 GLIB216_LIBS
1241 NSS_CFLAGS
1242 NSS_LIBS
1243 LIBICAL_AVAILABLE_CFLAGS
1244 LIBICAL_AVAILABLE_LIBS'
1245
1246
1247 # Initialize some variables set by options.
1248 ac_init_help=
1249 ac_init_version=false
1250 ac_unrecognized_opts=
1251 ac_unrecognized_sep=
1252 # The variables have the same names as the options, with
1253 # dashes changed to underlines.
1254 cache_file=/dev/null
1255 exec_prefix=NONE
1256 no_create=
1257 no_recursion=
1258 prefix=NONE
1259 program_prefix=NONE
1260 program_suffix=NONE
1261 program_transform_name=s,x,x,
1262 silent=
1263 site=
1264 srcdir=
1265 verbose=
1266 x_includes=NONE
1267 x_libraries=NONE
1268
1269 # Installation directory options.
1270 # These are left unexpanded so users can "make install exec_prefix=/foo"
1271 # and all the variables that are supposed to be based on exec_prefix
1272 # by default will actually change.
1273 # Use braces instead of parens because sh, perl, etc. also accept them.
1274 # (The list follows the same order as the GNU Coding Standards.)
1275 bindir='${exec_prefix}/bin'
1276 sbindir='${exec_prefix}/sbin'
1277 libexecdir='${exec_prefix}/libexec'
1278 datarootdir='${prefix}/share'
1279 datadir='${datarootdir}'
1280 sysconfdir='${prefix}/etc'
1281 sharedstatedir='${prefix}/com'
1282 localstatedir='${prefix}/var'
1283 includedir='${prefix}/include'
1284 oldincludedir='/usr/include'
1285 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1286 infodir='${datarootdir}/info'
1287 htmldir='${docdir}'
1288 dvidir='${docdir}'
1289 pdfdir='${docdir}'
1290 psdir='${docdir}'
1291 libdir='${exec_prefix}/lib'
1292 localedir='${datarootdir}/locale'
1293 mandir='${datarootdir}/man'
1294
1295 ac_prev=
1296 ac_dashdash=
1297 for ac_option
1298 do
1299   # If the previous option needs an argument, assign it.
1300   if test -n "$ac_prev"; then
1301     eval $ac_prev=\$ac_option
1302     ac_prev=
1303     continue
1304   fi
1305
1306   case $ac_option in
1307   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1308   *)    ac_optarg=yes ;;
1309   esac
1310
1311   # Accept the important Cygnus configure options, so we can diagnose typos.
1312
1313   case $ac_dashdash$ac_option in
1314   --)
1315     ac_dashdash=yes ;;
1316
1317   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1318     ac_prev=bindir ;;
1319   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1320     bindir=$ac_optarg ;;
1321
1322   -build | --build | --buil | --bui | --bu)
1323     ac_prev=build_alias ;;
1324   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1325     build_alias=$ac_optarg ;;
1326
1327   -cache-file | --cache-file | --cache-fil | --cache-fi \
1328   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1329     ac_prev=cache_file ;;
1330   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1331   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1332     cache_file=$ac_optarg ;;
1333
1334   --config-cache | -C)
1335     cache_file=config.cache ;;
1336
1337   -datadir | --datadir | --datadi | --datad)
1338     ac_prev=datadir ;;
1339   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1340     datadir=$ac_optarg ;;
1341
1342   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1343   | --dataroo | --dataro | --datar)
1344     ac_prev=datarootdir ;;
1345   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1346   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1347     datarootdir=$ac_optarg ;;
1348
1349   -disable-* | --disable-*)
1350     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1351     # Reject names that are not valid shell variable names.
1352     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353       as_fn_error "invalid feature name: $ac_useropt"
1354     ac_useropt_orig=$ac_useropt
1355     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1356     case $ac_user_opts in
1357       *"
1358 "enable_$ac_useropt"
1359 "*) ;;
1360       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1361          ac_unrecognized_sep=', ';;
1362     esac
1363     eval enable_$ac_useropt=no ;;
1364
1365   -docdir | --docdir | --docdi | --doc | --do)
1366     ac_prev=docdir ;;
1367   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1368     docdir=$ac_optarg ;;
1369
1370   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1371     ac_prev=dvidir ;;
1372   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1373     dvidir=$ac_optarg ;;
1374
1375   -enable-* | --enable-*)
1376     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1377     # Reject names that are not valid shell variable names.
1378     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1379       as_fn_error "invalid feature name: $ac_useropt"
1380     ac_useropt_orig=$ac_useropt
1381     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1382     case $ac_user_opts in
1383       *"
1384 "enable_$ac_useropt"
1385 "*) ;;
1386       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1387          ac_unrecognized_sep=', ';;
1388     esac
1389     eval enable_$ac_useropt=\$ac_optarg ;;
1390
1391   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1392   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1393   | --exec | --exe | --ex)
1394     ac_prev=exec_prefix ;;
1395   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1396   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1397   | --exec=* | --exe=* | --ex=*)
1398     exec_prefix=$ac_optarg ;;
1399
1400   -gas | --gas | --ga | --g)
1401     # Obsolete; use --with-gas.
1402     with_gas=yes ;;
1403
1404   -help | --help | --hel | --he | -h)
1405     ac_init_help=long ;;
1406   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1407     ac_init_help=recursive ;;
1408   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1409     ac_init_help=short ;;
1410
1411   -host | --host | --hos | --ho)
1412     ac_prev=host_alias ;;
1413   -host=* | --host=* | --hos=* | --ho=*)
1414     host_alias=$ac_optarg ;;
1415
1416   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1417     ac_prev=htmldir ;;
1418   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1419   | --ht=*)
1420     htmldir=$ac_optarg ;;
1421
1422   -includedir | --includedir | --includedi | --included | --include \
1423   | --includ | --inclu | --incl | --inc)
1424     ac_prev=includedir ;;
1425   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1426   | --includ=* | --inclu=* | --incl=* | --inc=*)
1427     includedir=$ac_optarg ;;
1428
1429   -infodir | --infodir | --infodi | --infod | --info | --inf)
1430     ac_prev=infodir ;;
1431   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1432     infodir=$ac_optarg ;;
1433
1434   -libdir | --libdir | --libdi | --libd)
1435     ac_prev=libdir ;;
1436   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1437     libdir=$ac_optarg ;;
1438
1439   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1440   | --libexe | --libex | --libe)
1441     ac_prev=libexecdir ;;
1442   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1443   | --libexe=* | --libex=* | --libe=*)
1444     libexecdir=$ac_optarg ;;
1445
1446   -localedir | --localedir | --localedi | --localed | --locale)
1447     ac_prev=localedir ;;
1448   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1449     localedir=$ac_optarg ;;
1450
1451   -localstatedir | --localstatedir | --localstatedi | --localstated \
1452   | --localstate | --localstat | --localsta | --localst | --locals)
1453     ac_prev=localstatedir ;;
1454   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1455   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1456     localstatedir=$ac_optarg ;;
1457
1458   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1459     ac_prev=mandir ;;
1460   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1461     mandir=$ac_optarg ;;
1462
1463   -nfp | --nfp | --nf)
1464     # Obsolete; use --without-fp.
1465     with_fp=no ;;
1466
1467   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1468   | --no-cr | --no-c | -n)
1469     no_create=yes ;;
1470
1471   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1472   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1473     no_recursion=yes ;;
1474
1475   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1476   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1477   | --oldin | --oldi | --old | --ol | --o)
1478     ac_prev=oldincludedir ;;
1479   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1480   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1481   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1482     oldincludedir=$ac_optarg ;;
1483
1484   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1485     ac_prev=prefix ;;
1486   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1487     prefix=$ac_optarg ;;
1488
1489   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1490   | --program-pre | --program-pr | --program-p)
1491     ac_prev=program_prefix ;;
1492   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1493   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1494     program_prefix=$ac_optarg ;;
1495
1496   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1497   | --program-suf | --program-su | --program-s)
1498     ac_prev=program_suffix ;;
1499   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1500   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1501     program_suffix=$ac_optarg ;;
1502
1503   -program-transform-name | --program-transform-name \
1504   | --program-transform-nam | --program-transform-na \
1505   | --program-transform-n | --program-transform- \
1506   | --program-transform | --program-transfor \
1507   | --program-transfo | --program-transf \
1508   | --program-trans | --program-tran \
1509   | --progr-tra | --program-tr | --program-t)
1510     ac_prev=program_transform_name ;;
1511   -program-transform-name=* | --program-transform-name=* \
1512   | --program-transform-nam=* | --program-transform-na=* \
1513   | --program-transform-n=* | --program-transform-=* \
1514   | --program-transform=* | --program-transfor=* \
1515   | --program-transfo=* | --program-transf=* \
1516   | --program-trans=* | --program-tran=* \
1517   | --progr-tra=* | --program-tr=* | --program-t=*)
1518     program_transform_name=$ac_optarg ;;
1519
1520   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1521     ac_prev=pdfdir ;;
1522   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1523     pdfdir=$ac_optarg ;;
1524
1525   -psdir | --psdir | --psdi | --psd | --ps)
1526     ac_prev=psdir ;;
1527   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1528     psdir=$ac_optarg ;;
1529
1530   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1531   | -silent | --silent | --silen | --sile | --sil)
1532     silent=yes ;;
1533
1534   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1535     ac_prev=sbindir ;;
1536   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1537   | --sbi=* | --sb=*)
1538     sbindir=$ac_optarg ;;
1539
1540   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1541   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1542   | --sharedst | --shareds | --shared | --share | --shar \
1543   | --sha | --sh)
1544     ac_prev=sharedstatedir ;;
1545   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1546   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1547   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1548   | --sha=* | --sh=*)
1549     sharedstatedir=$ac_optarg ;;
1550
1551   -site | --site | --sit)
1552     ac_prev=site ;;
1553   -site=* | --site=* | --sit=*)
1554     site=$ac_optarg ;;
1555
1556   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1557     ac_prev=srcdir ;;
1558   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1559     srcdir=$ac_optarg ;;
1560
1561   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1562   | --syscon | --sysco | --sysc | --sys | --sy)
1563     ac_prev=sysconfdir ;;
1564   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1565   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1566     sysconfdir=$ac_optarg ;;
1567
1568   -target | --target | --targe | --targ | --tar | --ta | --t)
1569     ac_prev=target_alias ;;
1570   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1571     target_alias=$ac_optarg ;;
1572
1573   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1574     verbose=yes ;;
1575
1576   -version | --version | --versio | --versi | --vers | -V)
1577     ac_init_version=: ;;
1578
1579   -with-* | --with-*)
1580     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1581     # Reject names that are not valid shell variable names.
1582     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1583       as_fn_error "invalid package name: $ac_useropt"
1584     ac_useropt_orig=$ac_useropt
1585     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1586     case $ac_user_opts in
1587       *"
1588 "with_$ac_useropt"
1589 "*) ;;
1590       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1591          ac_unrecognized_sep=', ';;
1592     esac
1593     eval with_$ac_useropt=\$ac_optarg ;;
1594
1595   -without-* | --without-*)
1596     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1597     # Reject names that are not valid shell variable names.
1598     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1599       as_fn_error "invalid package name: $ac_useropt"
1600     ac_useropt_orig=$ac_useropt
1601     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1602     case $ac_user_opts in
1603       *"
1604 "with_$ac_useropt"
1605 "*) ;;
1606       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1607          ac_unrecognized_sep=', ';;
1608     esac
1609     eval with_$ac_useropt=no ;;
1610
1611   --x)
1612     # Obsolete; use --with-x.
1613     with_x=yes ;;
1614
1615   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1616   | --x-incl | --x-inc | --x-in | --x-i)
1617     ac_prev=x_includes ;;
1618   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1619   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1620     x_includes=$ac_optarg ;;
1621
1622   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1623   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1624     ac_prev=x_libraries ;;
1625   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1626   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1627     x_libraries=$ac_optarg ;;
1628
1629   -*) as_fn_error "unrecognized option: \`$ac_option'
1630 Try \`$0 --help' for more information."
1631     ;;
1632
1633   *=*)
1634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1635     # Reject names that are not valid shell variable names.
1636     case $ac_envvar in #(
1637       '' | [0-9]* | *[!_$as_cr_alnum]* )
1638       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1639     esac
1640     eval $ac_envvar=\$ac_optarg
1641     export $ac_envvar ;;
1642
1643   *)
1644     # FIXME: should be removed in autoconf 3.0.
1645     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1647       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1649     ;;
1650
1651   esac
1652 done
1653
1654 if test -n "$ac_prev"; then
1655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1656   as_fn_error "missing argument to $ac_option"
1657 fi
1658
1659 if test -n "$ac_unrecognized_opts"; then
1660   case $enable_option_checking in
1661     no) ;;
1662     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1663     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1664   esac
1665 fi
1666
1667 # Check all directory arguments for consistency.
1668 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1669                 datadir sysconfdir sharedstatedir localstatedir includedir \
1670                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1671                 libdir localedir mandir
1672 do
1673   eval ac_val=\$$ac_var
1674   # Remove trailing slashes.
1675   case $ac_val in
1676     */ )
1677       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1678       eval $ac_var=\$ac_val;;
1679   esac
1680   # Be sure to have absolute directory names.
1681   case $ac_val in
1682     [\\/$]* | ?:[\\/]* )  continue;;
1683     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1684   esac
1685   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1686 done
1687
1688 # There might be people who depend on the old broken behavior: `$host'
1689 # used to hold the argument of --host etc.
1690 # FIXME: To remove some day.
1691 build=$build_alias
1692 host=$host_alias
1693 target=$target_alias
1694
1695 # FIXME: To remove some day.
1696 if test "x$host_alias" != x; then
1697   if test "x$build_alias" = x; then
1698     cross_compiling=maybe
1699     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1700     If a cross compiler is detected then cross compile mode will be used." >&2
1701   elif test "x$build_alias" != "x$host_alias"; then
1702     cross_compiling=yes
1703   fi
1704 fi
1705
1706 ac_tool_prefix=
1707 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1708
1709 test "$silent" = yes && exec 6>/dev/null
1710
1711
1712 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1713 ac_ls_di=`ls -di .` &&
1714 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1715   as_fn_error "working directory cannot be determined"
1716 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1717   as_fn_error "pwd does not report name of working directory"
1718
1719
1720 # Find the source files, if location was not specified.
1721 if test -z "$srcdir"; then
1722   ac_srcdir_defaulted=yes
1723   # Try the directory containing this script, then the parent directory.
1724   ac_confdir=`$as_dirname -- "$as_myself" ||
1725 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1726          X"$as_myself" : 'X\(//\)[^/]' \| \
1727          X"$as_myself" : 'X\(//\)$' \| \
1728          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1729 $as_echo X"$as_myself" |
1730     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1731             s//\1/
1732             q
1733           }
1734           /^X\(\/\/\)[^/].*/{
1735             s//\1/
1736             q
1737           }
1738           /^X\(\/\/\)$/{
1739             s//\1/
1740             q
1741           }
1742           /^X\(\/\).*/{
1743             s//\1/
1744             q
1745           }
1746           s/.*/./; q'`
1747   srcdir=$ac_confdir
1748   if test ! -r "$srcdir/$ac_unique_file"; then
1749     srcdir=..
1750   fi
1751 else
1752   ac_srcdir_defaulted=no
1753 fi
1754 if test ! -r "$srcdir/$ac_unique_file"; then
1755   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1756   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1757 fi
1758 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1759 ac_abs_confdir=`(
1760         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1761         pwd)`
1762 # When building in place, set srcdir=.
1763 if test "$ac_abs_confdir" = "$ac_pwd"; then
1764   srcdir=.
1765 fi
1766 # Remove unnecessary trailing slashes from srcdir.
1767 # Double slashes in file names in object file debugging info
1768 # mess up M-x gdb in Emacs.
1769 case $srcdir in
1770 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1771 esac
1772 for ac_var in $ac_precious_vars; do
1773   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1774   eval ac_env_${ac_var}_value=\$${ac_var}
1775   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1776   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1777 done
1778
1779 #
1780 # Report the --help message.
1781 #
1782 if test "$ac_init_help" = "long"; then
1783   # Omit some internal or obsolete options to make the list less imposing.
1784   # This message is too long to be a string in the A/UX 3.1 sh.
1785   cat <<_ACEOF
1786 \`configure' configures syncevolution 1.2.99+20120606+SE+ff65aef+SYSYNC+2728cb4 to adapt to many kinds of systems.
1787
1788 Usage: $0 [OPTION]... [VAR=VALUE]...
1789
1790 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1791 VAR=VALUE.  See below for descriptions of some of the useful variables.
1792
1793 Defaults for the options are specified in brackets.
1794
1795 Configuration:
1796   -h, --help              display this help and exit
1797       --help=short        display options specific to this package
1798       --help=recursive    display the short help of all the included packages
1799   -V, --version           display version information and exit
1800   -q, --quiet, --silent   do not print \`checking...' messages
1801       --cache-file=FILE   cache test results in FILE [disabled]
1802   -C, --config-cache      alias for \`--cache-file=config.cache'
1803   -n, --no-create         do not create output files
1804       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1805
1806 Installation directories:
1807   --prefix=PREFIX         install architecture-independent files in PREFIX
1808                           [$ac_default_prefix]
1809   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1810                           [PREFIX]
1811
1812 By default, \`make install' will install all the files in
1813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1815 for instance \`--prefix=\$HOME'.
1816
1817 For better control, use the options below.
1818
1819 Fine tuning of the installation directories:
1820   --bindir=DIR            user executables [EPREFIX/bin]
1821   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1822   --libexecdir=DIR        program executables [EPREFIX/libexec]
1823   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1824   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1825   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1826   --libdir=DIR            object code libraries [EPREFIX/lib]
1827   --includedir=DIR        C header files [PREFIX/include]
1828   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1829   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1830   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1831   --infodir=DIR           info documentation [DATAROOTDIR/info]
1832   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1833   --mandir=DIR            man documentation [DATAROOTDIR/man]
1834   --docdir=DIR            documentation root [DATAROOTDIR/doc/syncevolution]
1835   --htmldir=DIR           html documentation [DOCDIR]
1836   --dvidir=DIR            dvi documentation [DOCDIR]
1837   --pdfdir=DIR            pdf documentation [DOCDIR]
1838   --psdir=DIR             ps documentation [DOCDIR]
1839 _ACEOF
1840
1841   cat <<\_ACEOF
1842
1843 Program names:
1844   --program-prefix=PREFIX            prepend PREFIX to installed program names
1845   --program-suffix=SUFFIX            append SUFFIX to installed program names
1846   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1847
1848 System types:
1849   --build=BUILD     configure for building on BUILD [guessed]
1850   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1851 _ACEOF
1852 fi
1853
1854 if test -n "$ac_init_help"; then
1855   case $ac_init_help in
1856      short | recursive ) echo "Configuration of syncevolution 1.2.99+20120606+SE+ff65aef+SYSYNC+2728cb4:";;
1857    esac
1858   cat <<\_ACEOF
1859
1860 Optional Features:
1861   --disable-option-checking  ignore unrecognized --enable/--with options
1862   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1863   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1864   --enable-release-mode   Controls whether resulting binary is for end-users
1865                           or testers/developers. For example, stable releases
1866                           automatically migrate on-disk files without asking,
1867                           whereas other releases ask before making downgrades
1868                           impossible (or difficult). Default in this source
1869                           code is "stable release: no"
1870   --enable-silent-rules          less verbose build output (undo: `make V=1')
1871   --disable-silent-rules         verbose build output (undo: `make V=0')
1872   --disable-dependency-tracking  speeds up one-time build
1873   --enable-dependency-tracking   do not reject slow dependency extractors
1874   --disable-maintainer-mode  disable make rules and dependencies not useful
1875                           (and sometimes confusing) to the casual installer
1876   --enable-shared[=PKGS]  build shared libraries [default=yes]
1877   --enable-static[=PKGS]  build static libraries [default=yes]
1878   --enable-fast-install[=PKGS]
1879                           optimize for fast installation [default=yes]
1880   --disable-libtool-lock  avoid locking (might break parallel builds)
1881   --enable-warnings=[min|max|fatal|no]
1882                           control compiler pickyness [min]
1883   --enable-shared         build backends as dynamically loadable modules
1884   --enable-static         build backends also as static libraries
1885   --enable-unit-tests     enables tests embedded in the source code of the
1886                           library (changes content of executable)
1887   --enable-integration-tests
1888                           enables tests outside of the library (can be used
1889                           together with normal builds of the library)
1890   --enable-static-cxx     build executables which contain libstdc++ instead of
1891                           requiring suitable libstdc++.so to run
1892   --enable-evolution-compatibility
1893                           build executables which only call Evolution via
1894                           dlopen/dlsym: this avoids all hard dependencies on
1895                           EDS shared objects, but might lead to crashes when
1896                           their ABI changes
1897   --enable-developer-mode The dynamic loadble backend libraries is loaded from
1898                           current build directory instead of the standard
1899                           library path
1900   --enable-maemo          enables some hacks which work around problems with
1901                           the Maemo 2.0 until at least 3.0 EDS-Dbus
1902   --enable-libcurl        enable libcurl as transport layer
1903   --enable-libsoup        enable libsoup as transport layer
1904   --enable-bluetooth      enable bluetooth transport support
1905   --disable-ssl-certificate-check
1906                           Disable SSL certificate checking in all server
1907                           *templates*. Users can still choose to enable or
1908                           disable it in their configuration. This is necessary
1909                           on platforms where the transport library has
1910                           problems verifying the server's certificate (libsoup
1911                           + Google,
1912                           http://bugzilla.moblin.org/show_bug.cgi?id=4551)
1913   --enable-gtk=major version
1914                           Selects the gtk+ version ("2" or "3") to use for the
1915                           UI. If this option is used, --enable-gui should be
1916                           used as well. "3" is the default option if
1917                           available, otherwise "2".
1918   --enable-gui=gui type   enables building the GTK+ UI that uses the
1919                           SyncEvolution DBus API. Options: gtk, moblin, all
1920                           (builds sync-ui-gtk and sync-ui-moblin) "gtk" is the
1921                           default for --enable-gui without type. No GUI is
1922                           built when --enable-gui is not used.
1923   --enable-core           enables building the core SyncEvolution (library,
1924                           backends)
1925   --enable-dbus-service   enables building the dbus service executable and all
1926                           related features (the DBus wrapper library, command
1927                           line usage of server, etc).
1928   --enable-notify         send notifications for automatic sync events, using
1929                           libnotify
1930   --enable-notify-compatibility
1931                           increase compatibility with binary libnotify
1932                           installations by loading libnotify.so.1..4
1933                           dynamically instead of linking against it
1934   --enable-mlite          send notifications for automatic sync events, using
1935                           mlite (off by default)
1936   --disable-nls           do not use Native Language Support
1937   --enable-gnome-bluetooth-panel-plugin
1938                           GNOME Bluetooth panel plugin adding a "sync" button
1939                           for paired devices (off by default)
1940   --enable-doc            generate backend and DBus API documentation
1941   --enable-activesync     enable access to servers via ActiveSync (default
1942                           off)
1943   --enable-addressbook    enable access to Mac OS X address book (default off)
1944   --disable-akonadi       disable access to Akonadi (default is to use it if
1945                           akonadi.pc is found)
1946   --disable-ebook         disable access to Evolution addressbooks (must be
1947                           used to compile without it)
1948   --disable-ecal          disable access to Evolution calendars and tasks
1949                           (must be used to compile without it)
1950   --enable-eds-client-api Use the EBookClient and ECalClient API introduced in
1951                           EDS 3.2 instead of the legacy API. Some operations
1952                           are more efficient with it, but it is also less well
1953                           tested and thus disabled by default.
1954   --disable-file          disable file-based backend which stores items in
1955                           separate files in a fixed directory (default on)
1956   --enable-gnome-keyring  enables or disables support for the GNOME keyring;
1957                           default is on if development files are available
1958   --enable-kcalextended   enable support for Maemo's KCalExtended storage
1959   --enable-kwallet        enable access to KWallet
1960   --enable-maemocal       enable access to PIM data stored in Maemo 5 calendar
1961                           application (default off)
1962   --enable-qtcontacts     enable support for QtMobility's QtContacts storage
1963   --enable-sqlite         enable access to PIM data stored in SQLite files
1964                           (experimental, default off)
1965   --enable-dav            enable WebDAV based backends (CalDAV) (default off)
1966   --enable-neon-compatibility
1967                           increase compatibility with binary libneon
1968                           installations by loading libneon[-gnutls].27.so
1969                           dynamically instead of linking against it
1970   --enable-xmlrpc         enable XMLRPC-based backend which stores items on a
1971                           central web service (default off)
1972   --enable-qt-dbus        build Qt bindings for D-Bus
1973   --enable-dbus-timeout-hack
1974                           Enables code which overrides the default timeout in
1975                           dbus_connection_send_with_reply() so that the method
1976                           call never times out. Needed for libecal/ebook >=
1977                           2.30, so enabled by default if either of these is
1978                           enabled.
1979
1980 Optional Packages:
1981   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1982   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1983   --with-pic              try to use only PIC/non-PIC objects [default=use
1984                           both]
1985   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1986   --with-synthesis-src=<base directory|svn URL|git URL>
1987                           Specifies location of the Synthesis root directory.
1988                           Use this when the Synthesis library is to be
1989                           compiled as part of the SyncEvolution compilation.
1990                           In release versions of SyncEvolution, a copy of the
1991                           Synthesis code is bundled under 'src/synthesis' and
1992                           compiled unless something else is specified.
1993                           --with-synthesis-src can be given a path to sources
1994                           checked out already, a Subversion repository URL or
1995                           a git repository URL. When given a repository URL,
1996                           then the configure script will checkout the sources
1997                           into 'src/synthesis-workdir' or update that working
1998                           copy if the directory already exists. Default:
1999                           bundled source in src/synthesis (in released
2000                           SyncEvolution sources),  otherwise.
2001   --with-syncml-engines=client|server|both
2002                           Determines which kind of support for SyncML is
2003                           compiled and linked into SyncEvolution. Default is
2004                           both. Currently has no effect.
2005   --with-synthesis-username=<svn username>
2006                           username to use when checking out
2007                           --with-synthesis-src sources from Subversion,
2008                           default 'guest'
2009   --with-synthesis-revision=<git tag/branch/hash or Subversion revision>
2010                           Identifies which source revision to use from
2011                           --with-synthesis-src repository, empty string stands
2012                           for latest. Default for default --synthesis-src:
2013                           syncevolution-0.9
2014   --with-ca-certificates=<colon separated list of files>
2015                           Specifies location of one or more CA certificate
2016                           files. This sets the default value for the
2017                           SSLServerCertificates option. Default: empty when
2018                           using libcurl (because it has its own default), a
2019                           list of paths known to work for Debian and Red Hat
2020                           otherwise.
2021   --with-gio-gdbus        enables use of GIO's GDBus instead of the in-tree,
2022                           Bluez gdbus.
2023   --with-boost[=ARG]      use Boost library from a standard location
2024                           (ARG=yes), from the specified location (ARG=<path>),
2025                           or disable it (ARG=no) [ARG=yes]
2026   --with-boost-libdir=LIB_DIR
2027                           Force given directory for boost libraries. Note that
2028                           this will override library path detection, so use
2029                           this parameter only if default library detection
2030                           fails and you know exactly where your boost
2031                           libraries are located.
2032   --with-rst2man=<path to reStructuredText to man converter>
2033                           Specifies an explicit path to the utility if not
2034                           found in PATH. An explicit --without-rst2man or not
2035                           having it installed turn off building of man pages.
2036   --with-rst2html=<path to reStructuredText to HTML converter>
2037                           Specifies an explicit path to the utility if not
2038                           found in PATH. An explicit --without-rst2html or not
2039                           having it installed turn off building of README in
2040                           HTML format.
2041   --with-activesyncd-src=<base directory>
2042                           Specifies location of the activesyncd source root
2043                           directory. Use this when activesyncd is to be
2044                           compiled as part of the SyncEvolution compilation.
2045   --with-qt               Path to Qt [Look in PATH and /usr/local/Trolltech]
2046
2047 Some influential environment variables:
2048   CC          C compiler command
2049   CFLAGS      C compiler flags
2050   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2051               nonstandard directory <lib dir>
2052   LIBS        libraries to pass to the linker, e.g. -l<library>
2053   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2054               you have headers in a nonstandard directory <include dir>
2055   CPP         C preprocessor
2056   CXX         C++ compiler command
2057   CXXFLAGS    C++ compiler flags
2058   CXXCPP      C++ preprocessor
2059   PKG_CONFIG  path to pkg-config utility
2060   LIBSOUP_CFLAGS
2061               C compiler flags for LIBSOUP, overriding pkg-config
2062   LIBSOUP_LIBS
2063               linker flags for LIBSOUP, overriding pkg-config
2064   LIBOPENOBEX_CFLAGS
2065               C compiler flags for LIBOPENOBEX, overriding pkg-config
2066   LIBOPENOBEX_LIBS
2067               linker flags for LIBOPENOBEX, overriding pkg-config
2068   BLUEZ_CFLAGS
2069               C compiler flags for BLUEZ, overriding pkg-config
2070   BLUEZ_LIBS  linker flags for BLUEZ, overriding pkg-config
2071   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2072   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
2073   LIBNOTIFY_CFLAGS
2074               C compiler flags for LIBNOTIFY, overriding pkg-config
2075   LIBNOTIFY_LIBS
2076               linker flags for LIBNOTIFY, overriding pkg-config
2077   MLITE_CFLAGS
2078               C compiler flags for MLITE, overriding pkg-config
2079   MLITE_LIBS  linker flags for MLITE, overriding pkg-config
2080   DBUS_GLIB_CFLAGS
2081               C compiler flags for DBUS_GLIB, overriding pkg-config
2082   DBUS_GLIB_LIBS
2083               linker flags for DBUS_GLIB, overriding pkg-config
2084   MX_GTK_0_99_1_CFLAGS
2085               C compiler flags for MX_GTK_0_99_1, overriding pkg-config
2086   MX_GTK_0_99_1_LIBS
2087               linker flags for MX_GTK_0_99_1, overriding pkg-config
2088   UNIQUE_CFLAGS
2089               C compiler flags for UNIQUE, overriding pkg-config
2090   UNIQUE_LIBS linker flags for UNIQUE, overriding pkg-config
2091   GTK_2_18_CFLAGS
2092               C compiler flags for GTK_2_18, overriding pkg-config
2093   GTK_2_18_LIBS
2094               linker flags for GTK_2_18, overriding pkg-config
2095   GUI_CFLAGS  C compiler flags for GUI, overriding pkg-config
2096   GUI_LIBS    linker flags for GUI, overriding pkg-config
2097   PCRECPP_CFLAGS
2098               C compiler flags for PCRECPP, overriding pkg-config
2099   PCRECPP_LIBS
2100               linker flags for PCRECPP, overriding pkg-config
2101   SYNTHESIS_CFLAGS
2102               C compiler flags for SYNTHESIS, overriding pkg-config
2103   SYNTHESIS_LIBS
2104               linker flags for SYNTHESIS, overriding pkg-config
2105   WITH_SYNTHESIS_SRC_CFLAGS
2106               C compiler flags for WITH_SYNTHESIS_SRC, overriding pkg-config
2107   WITH_SYNTHESIS_SRC_LIBS
2108               linker flags for WITH_SYNTHESIS_SRC, overriding pkg-config
2109   GNOMEBLUETOOTH_CFLAGS
2110               C compiler flags for GNOMEBLUETOOTH, overriding pkg-config
2111   GNOMEBLUETOOTH_LIBS
2112               linker flags for GNOMEBLUETOOTH, overriding pkg-config
2113   EASCLIENT_CFLAGS
2114               C compiler flags for EASCLIENT, overriding pkg-config
2115   EASCLIENT_LIBS
2116               linker flags for EASCLIENT, overriding pkg-config
2117   EPACKAGE_CFLAGS
2118               C compiler flags for EPACKAGE, overriding pkg-config
2119   EPACKAGE_LIBS
2120               linker flags for EPACKAGE, overriding pkg-config
2121   ECAL_CFLAGS C compiler flags for ECAL, overriding pkg-config
2122   ECAL_LIBS   linker flags for ECAL, overriding pkg-config
2123   EBOOK_CFLAGS
2124               C compiler flags for EBOOK, overriding pkg-config
2125   EBOOK_LIBS  linker flags for EBOOK, overriding pkg-config
2126   EBOOK_VERSION_CFLAGS
2127               C compiler flags for EBOOK_VERSION, overriding pkg-config
2128   EBOOK_VERSION_LIBS
2129               linker flags for EBOOK_VERSION, overriding pkg-config
2130   KEYRING_CFLAGS
2131               C compiler flags for KEYRING, overriding pkg-config
2132   KEYRING_LIBS
2133               linker flags for KEYRING, overriding pkg-config
2134   KEYRING_2_20_CFLAGS
2135               C compiler flags for KEYRING_2_20, overriding pkg-config
2136   KEYRING_2_20_LIBS
2137               linker flags for KEYRING_2_20, overriding pkg-config
2138   KCALEXTENDED_CFLAGS
2139               C compiler flags for KCALEXTENDED, overriding pkg-config
2140   KCALEXTENDED_LIBS
2141               linker flags for KCALEXTENDED, overriding pkg-config
2142   MCALB_CFLAGS
2143               C compiler flags for MCALB, overriding pkg-config
2144   MCALB_LIBS  linker flags for MCALB, overriding pkg-config
2145   SQLITE_CFLAGS
2146               C compiler flags for SQLITE, overriding pkg-config
2147   SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
2148   NEON_CFLAGS C compiler flags for NEON, overriding pkg-config
2149   NEON_LIBS   linker flags for NEON, overriding pkg-config
2150   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
2151   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
2152   GTHREAD_CFLAGS
2153               C compiler flags for GTHREAD, overriding pkg-config
2154   GTHREAD_LIBS
2155               linker flags for GTHREAD, overriding pkg-config
2156   GOBJECT_CFLAGS
2157               C compiler flags for GOBJECT, overriding pkg-config
2158   GOBJECT_LIBS
2159               linker flags for GOBJECT, overriding pkg-config
2160   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
2161   GIO_LIBS    linker flags for GIO, overriding pkg-config
2162   LIBICAL_CFLAGS
2163               C compiler flags for LIBICAL, overriding pkg-config
2164   LIBICAL_LIBS
2165               linker flags for LIBICAL, overriding pkg-config
2166   QT_PATH     Path to the Qt installation
2167   QMAKE       Qt Makefile generator command
2168   MOC         Qt Meta Object Compiler command
2169   UIC         Qt User Interface Compiler command
2170   RCC         Qt Resource Compiler command
2171   GLIB216_CFLAGS
2172               C compiler flags for GLIB216, overriding pkg-config
2173   GLIB216_LIBS
2174               linker flags for GLIB216, overriding pkg-config
2175   NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
2176   NSS_LIBS    linker flags for NSS, overriding pkg-config
2177   LIBICAL_AVAILABLE_CFLAGS
2178               C compiler flags for LIBICAL_AVAILABLE, overriding pkg-config
2179   LIBICAL_AVAILABLE_LIBS
2180               linker flags for LIBICAL_AVAILABLE, overriding pkg-config
2181
2182 Use these variables to override the choices made by `configure' or to help
2183 it to find libraries and programs with nonstandard names/locations.
2184
2185 Report bugs to the package provider.
2186 _ACEOF
2187 ac_status=$?
2188 fi
2189
2190 if test "$ac_init_help" = "recursive"; then
2191   # If there are subdirs, report their specific --help.
2192   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2193     test -d "$ac_dir" ||
2194       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2195       continue
2196     ac_builddir=.
2197
2198 case "$ac_dir" in
2199 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2200 *)
2201   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2202   # A ".." for each directory in $ac_dir_suffix.
2203   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2204   case $ac_top_builddir_sub in
2205   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2206   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2207   esac ;;
2208 esac
2209 ac_abs_top_builddir=$ac_pwd
2210 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2211 # for backward compatibility:
2212 ac_top_builddir=$ac_top_build_prefix
2213
2214 case $srcdir in
2215   .)  # We are building in place.
2216     ac_srcdir=.
2217     ac_top_srcdir=$ac_top_builddir_sub
2218     ac_abs_top_srcdir=$ac_pwd ;;
2219   [\\/]* | ?:[\\/]* )  # Absolute name.
2220     ac_srcdir=$srcdir$ac_dir_suffix;
2221     ac_top_srcdir=$srcdir
2222     ac_abs_top_srcdir=$srcdir ;;
2223   *) # Relative name.
2224     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2225     ac_top_srcdir=$ac_top_build_prefix$srcdir
2226     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2227 esac
2228 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2229
2230     cd "$ac_dir" || { ac_status=$?; continue; }
2231     # Check for guested configure.
2232     if test -f "$ac_srcdir/configure.gnu"; then
2233       echo &&
2234       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2235     elif test -f "$ac_srcdir/configure"; then
2236       echo &&
2237       $SHELL "$ac_srcdir/configure" --help=recursive
2238     else
2239       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2240     fi || ac_status=$?
2241     cd "$ac_pwd" || { ac_status=$?; break; }
2242   done
2243 fi
2244
2245 test -n "$ac_init_help" && exit $ac_status
2246 if $ac_init_version; then
2247   cat <<\_ACEOF
2248 syncevolution configure 1.2.99+20120606+SE+ff65aef+SYSYNC+2728cb4
2249 generated by GNU Autoconf 2.65
2250
2251 Copyright (C) 2009 Free Software Foundation, Inc.
2252 This configure script is free software; the Free Software Foundation
2253 gives unlimited permission to copy, distribute and modify it.
2254 _ACEOF
2255   exit
2256 fi
2257
2258 ## ------------------------ ##
2259 ## Autoconf initialization. ##
2260 ## ------------------------ ##
2261
2262 # ac_fn_c_try_compile LINENO
2263 # --------------------------
2264 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2265 ac_fn_c_try_compile ()
2266 {
2267   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268   rm -f conftest.$ac_objext
2269   if { { ac_try="$ac_compile"
2270 case "(($ac_try" in
2271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272   *) ac_try_echo=$ac_try;;
2273 esac
2274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2275 $as_echo "$ac_try_echo"; } >&5
2276   (eval "$ac_compile") 2>conftest.err
2277   ac_status=$?
2278   if test -s conftest.err; then
2279     grep -v '^ *+' conftest.err >conftest.er1
2280     cat conftest.er1 >&5
2281     mv -f conftest.er1 conftest.err
2282   fi
2283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284   test $ac_status = 0; } && {
2285          test -z "$ac_c_werror_flag" ||
2286          test ! -s conftest.err
2287        } && test -s conftest.$ac_objext; then :
2288   ac_retval=0
2289 else
2290   $as_echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2292
2293         ac_retval=1
2294 fi
2295   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2296   as_fn_set_status $ac_retval
2297
2298 } # ac_fn_c_try_compile
2299
2300 # ac_fn_c_try_link LINENO
2301 # -----------------------
2302 # Try to link conftest.$ac_ext, and return whether this succeeded.
2303 ac_fn_c_try_link ()
2304 {
2305   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306   rm -f conftest.$ac_objext conftest$ac_exeext
2307   if { { ac_try="$ac_link"
2308 case "(($ac_try" in
2309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310   *) ac_try_echo=$ac_try;;
2311 esac
2312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313 $as_echo "$ac_try_echo"; } >&5
2314   (eval "$ac_link") 2>conftest.err
2315   ac_status=$?
2316   if test -s conftest.err; then
2317     grep -v '^ *+' conftest.err >conftest.er1
2318     cat conftest.er1 >&5
2319     mv -f conftest.er1 conftest.err
2320   fi
2321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2322   test $ac_status = 0; } && {
2323          test -z "$ac_c_werror_flag" ||
2324          test ! -s conftest.err
2325        } && test -s conftest$ac_exeext && {
2326          test "$cross_compiling" = yes ||
2327          $as_test_x conftest$ac_exeext
2328        }; then :
2329   ac_retval=0
2330 else
2331   $as_echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2333
2334         ac_retval=1
2335 fi
2336   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2337   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2338   # interfere with the next link command; also delete a directory that is
2339   # left behind by Apple's compiler.  We do this before executing the actions.
2340   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2341   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2342   as_fn_set_status $ac_retval
2343
2344 } # ac_fn_c_try_link
2345
2346 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2347 # -------------------------------------------------------
2348 # Tests whether HEADER exists and can be compiled using the include files in
2349 # INCLUDES, setting the cache variable VAR accordingly.
2350 ac_fn_c_check_header_compile ()
2351 {
2352   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2354 $as_echo_n "checking for $2... " >&6; }
2355 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2356   $as_echo_n "(cached) " >&6
2357 else
2358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h.  */
2360 $4
2361 #include <$2>
2362 _ACEOF
2363 if ac_fn_c_try_compile "$LINENO"; then :
2364   eval "$3=yes"
2365 else
2366   eval "$3=no"
2367 fi
2368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369 fi
2370 eval ac_res=\$$3
2371                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2372 $as_echo "$ac_res" >&6; }
2373   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2374
2375 } # ac_fn_c_check_header_compile
2376
2377 # ac_fn_c_try_cpp LINENO
2378 # ----------------------
2379 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2380 ac_fn_c_try_cpp ()
2381 {
2382   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2383   if { { ac_try="$ac_cpp conftest.$ac_ext"
2384 case "(($ac_try" in
2385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386   *) ac_try_echo=$ac_try;;
2387 esac
2388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2389 $as_echo "$ac_try_echo"; } >&5
2390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2391   ac_status=$?
2392   if test -s conftest.err; then
2393     grep -v '^ *+' conftest.err >conftest.er1
2394     cat conftest.er1 >&5
2395     mv -f conftest.er1 conftest.err
2396   fi
2397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2398   test $ac_status = 0; } >/dev/null && {
2399          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2400          test ! -s conftest.err
2401        }; then :
2402   ac_retval=0
2403 else
2404   $as_echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407     ac_retval=1
2408 fi
2409   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2410   as_fn_set_status $ac_retval
2411
2412 } # ac_fn_c_try_cpp
2413
2414 # ac_fn_c_try_run LINENO
2415 # ----------------------
2416 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2417 # that executables *can* be run.
2418 ac_fn_c_try_run ()
2419 {
2420   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2421   if { { ac_try="$ac_link"
2422 case "(($ac_try" in
2423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424   *) ac_try_echo=$ac_try;;
2425 esac
2426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2427 $as_echo "$ac_try_echo"; } >&5
2428   (eval "$ac_link") 2>&5
2429   ac_status=$?
2430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2431   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2432   { { case "(($ac_try" in
2433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434   *) ac_try_echo=$ac_try;;
2435 esac
2436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2437 $as_echo "$ac_try_echo"; } >&5
2438   (eval "$ac_try") 2>&5
2439   ac_status=$?
2440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2441   test $ac_status = 0; }; }; then :
2442   ac_retval=0
2443 else
2444   $as_echo "$as_me: program exited with status $ac_status" >&5
2445        $as_echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2447
2448        ac_retval=$ac_status
2449 fi
2450   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2451   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2452   as_fn_set_status $ac_retval
2453
2454 } # ac_fn_c_try_run
2455
2456 # ac_fn_c_check_func LINENO FUNC VAR
2457 # ----------------------------------
2458 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2459 ac_fn_c_check_func ()
2460 {
2461   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2463 $as_echo_n "checking for $2... " >&6; }
2464 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2465   $as_echo_n "(cached) " >&6
2466 else
2467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h.  */
2469 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2471 #define $2 innocuous_$2
2472
2473 /* System header to define __stub macros and hopefully few prototypes,
2474     which can conflict with char $2 (); below.
2475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2476     <limits.h> exists even on freestanding compilers.  */
2477
2478 #ifdef __STDC__
2479 # include <limits.h>
2480 #else
2481 # include <assert.h>
2482 #endif
2483
2484 #undef $2
2485
2486 /* Override any GCC internal prototype to avoid an error.
2487    Use char because int might match the return type of a GCC
2488    builtin and then its argument prototype would still apply.  */
2489 #ifdef __cplusplus
2490 extern "C"
2491 #endif
2492 char $2 ();
2493 /* The GNU C library defines this for functions which it implements
2494     to always fail with ENOSYS.  Some functions are actually named
2495     something starting with __ and the normal name is an alias.  */
2496 #if defined __stub_$2 || defined __stub___$2
2497 choke me
2498 #endif
2499
2500 int
2501 main ()
2502 {
2503 return $2 ();
2504   ;
2505   return 0;
2506 }
2507 _ACEOF
2508 if ac_fn_c_try_link "$LINENO"; then :
2509   eval "$3=yes"
2510 else
2511   eval "$3=no"
2512 fi
2513 rm -f core conftest.err conftest.$ac_objext \
2514     conftest$ac_exeext conftest.$ac_ext
2515 fi
2516 eval ac_res=\$$3
2517                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2518 $as_echo "$ac_res" >&6; }
2519   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2520
2521 } # ac_fn_c_check_func
2522
2523 # ac_fn_cxx_try_compile LINENO
2524 # ----------------------------
2525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2526 ac_fn_cxx_try_compile ()
2527 {
2528   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529   rm -f conftest.$ac_objext
2530   if { { ac_try="$ac_compile"
2531 case "(($ac_try" in
2532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533   *) ac_try_echo=$ac_try;;
2534 esac
2535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2536 $as_echo "$ac_try_echo"; } >&5
2537   (eval "$ac_compile") 2>conftest.err
2538   ac_status=$?
2539   if test -s conftest.err; then
2540     grep -v '^ *+' conftest.err >conftest.er1
2541     cat conftest.er1 >&5
2542     mv -f conftest.er1 conftest.err
2543   fi
2544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2545   test $ac_status = 0; } && {
2546          test -z "$ac_cxx_werror_flag" ||
2547          test ! -s conftest.err
2548        } && test -s conftest.$ac_objext; then :
2549   ac_retval=0
2550 else
2551   $as_echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2553
2554         ac_retval=1
2555 fi
2556   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2557   as_fn_set_status $ac_retval
2558
2559 } # ac_fn_cxx_try_compile
2560
2561 # ac_fn_cxx_try_cpp LINENO
2562 # ------------------------
2563 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2564 ac_fn_cxx_try_cpp ()
2565 {
2566   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2567   if { { ac_try="$ac_cpp conftest.$ac_ext"
2568 case "(($ac_try" in
2569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570   *) ac_try_echo=$ac_try;;
2571 esac
2572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2573 $as_echo "$ac_try_echo"; } >&5
2574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2575   ac_status=$?
2576   if test -s conftest.err; then
2577     grep -v '^ *+' conftest.err >conftest.er1
2578     cat conftest.er1 >&5
2579     mv -f conftest.er1 conftest.err
2580   fi
2581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2582   test $ac_status = 0; } >/dev/null && {
2583          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2584          test ! -s conftest.err
2585        }; then :
2586   ac_retval=0
2587 else
2588   $as_echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590
2591     ac_retval=1
2592 fi
2593   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2594   as_fn_set_status $ac_retval
2595
2596 } # ac_fn_cxx_try_cpp
2597
2598 # ac_fn_cxx_try_link LINENO
2599 # -------------------------
2600 # Try to link conftest.$ac_ext, and return whether this succeeded.
2601 ac_fn_cxx_try_link ()
2602 {
2603   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604   rm -f conftest.$ac_objext conftest$ac_exeext
2605   if { { ac_try="$ac_link"
2606 case "(($ac_try" in
2607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608   *) ac_try_echo=$ac_try;;
2609 esac
2610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2611 $as_echo "$ac_try_echo"; } >&5
2612   (eval "$ac_link") 2>conftest.err
2613   ac_status=$?
2614   if test -s conftest.err; then
2615     grep -v '^ *+' conftest.err >conftest.er1
2616     cat conftest.er1 >&5
2617     mv -f conftest.er1 conftest.err
2618   fi
2619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2620   test $ac_status = 0; } && {
2621          test -z "$ac_cxx_werror_flag" ||
2622          test ! -s conftest.err
2623        } && test -s conftest$ac_exeext && {
2624          test "$cross_compiling" = yes ||
2625          $as_test_x conftest$ac_exeext
2626        }; then :
2627   ac_retval=0
2628 else
2629   $as_echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2631
2632         ac_retval=1
2633 fi
2634   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2635   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2636   # interfere with the next link command; also delete a directory that is
2637   # left behind by Apple's compiler.  We do this before executing the actions.
2638   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2639   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2640   as_fn_set_status $ac_retval
2641
2642 } # ac_fn_cxx_try_link
2643
2644 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2645 # -------------------------------------------------------
2646 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2647 # the include files in INCLUDES and setting the cache variable VAR
2648 # accordingly.
2649 ac_fn_c_check_header_mongrel ()
2650 {
2651   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2652   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2654 $as_echo_n "checking for $2... " >&6; }
2655 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2656   $as_echo_n "(cached) " >&6
2657 fi
2658 eval ac_res=\$$3
2659                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2660 $as_echo "$ac_res" >&6; }
2661 else
2662   # Is the header compilable?
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2664 $as_echo_n "checking $2 usability... " >&6; }
2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666 /* end confdefs.h.  */
2667 $4
2668 #include <$2>
2669 _ACEOF
2670 if ac_fn_c_try_compile "$LINENO"; then :
2671   ac_header_compiler=yes
2672 else
2673   ac_header_compiler=no
2674 fi
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2677 $as_echo "$ac_header_compiler" >&6; }
2678
2679 # Is the header present?
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2681 $as_echo_n "checking $2 presence... " >&6; }
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h.  */
2684 #include <$2>
2685 _ACEOF
2686 if ac_fn_c_try_cpp "$LINENO"; then :
2687   ac_header_preproc=yes
2688 else
2689   ac_header_preproc=no
2690 fi
2691 rm -f conftest.err conftest.$ac_ext
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2693 $as_echo "$ac_header_preproc" >&6; }
2694
2695 # So?  What about this header?
2696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2697   yes:no: )
2698     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2699 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2700     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2701 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2702     ;;
2703   no:yes:* )
2704     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2705 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2706     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2707 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2708     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2709 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2710     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2711 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2712     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2713 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2714     ;;
2715 esac
2716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2717 $as_echo_n "checking for $2... " >&6; }
2718 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2719   $as_echo_n "(cached) " >&6
2720 else
2721   eval "$3=\$ac_header_compiler"
2722 fi
2723 eval ac_res=\$$3
2724                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2725 $as_echo "$ac_res" >&6; }
2726 fi
2727   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2728
2729 } # ac_fn_c_check_header_mongrel
2730
2731 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2732 # ---------------------------------------------------------
2733 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2734 # the include files in INCLUDES and setting the cache variable VAR
2735 # accordingly.
2736 ac_fn_cxx_check_header_mongrel ()
2737 {
2738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2739   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2741 $as_echo_n "checking for $2... " >&6; }
2742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2743   $as_echo_n "(cached) " >&6
2744 fi
2745 eval ac_res=\$$3
2746                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2747 $as_echo "$ac_res" >&6; }
2748 else
2749   # Is the header compilable?
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2751 $as_echo_n "checking $2 usability... " >&6; }
2752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753 /* end confdefs.h.  */
2754 $4
2755 #include <$2>
2756 _ACEOF
2757 if ac_fn_cxx_try_compile "$LINENO"; then :
2758   ac_header_compiler=yes
2759 else
2760   ac_header_compiler=no
2761 fi
2762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2764 $as_echo "$ac_header_compiler" >&6; }
2765
2766 # Is the header present?
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2768 $as_echo_n "checking $2 presence... " >&6; }
2769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2770 /* end confdefs.h.  */
2771 #include <$2>
2772 _ACEOF
2773 if ac_fn_cxx_try_cpp "$LINENO"; then :
2774   ac_header_preproc=yes
2775 else
2776   ac_header_preproc=no
2777 fi
2778 rm -f conftest.err conftest.$ac_ext
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2780 $as_echo "$ac_header_preproc" >&6; }
2781
2782 # So?  What about this header?
2783 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2784   yes:no: )
2785     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2786 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2787     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2788 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2789     ;;
2790   no:yes:* )
2791     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2792 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2793     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2794 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2795     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2796 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2797     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2798 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2799     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2800 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2801     ;;
2802 esac
2803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2804 $as_echo_n "checking for $2... " >&6; }
2805 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2806   $as_echo_n "(cached) " >&6
2807 else
2808   eval "$3=\$ac_header_compiler"
2809 fi
2810 eval ac_res=\$$3
2811                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2812 $as_echo "$ac_res" >&6; }
2813 fi
2814   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2815
2816 } # ac_fn_cxx_check_header_mongrel
2817 cat >config.log <<_ACEOF
2818 This file contains any messages produced by compilers while
2819 running configure, to aid debugging if configure makes a mistake.
2820
2821 It was created by syncevolution $as_me 1.2.99+20120606+SE+ff65aef+SYSYNC+2728cb4, which was
2822 generated by GNU Autoconf 2.65.  Invocation command line was
2823
2824   $ $0 $@
2825
2826 _ACEOF
2827 exec 5>>config.log
2828 {
2829 cat <<_ASUNAME
2830 ## --------- ##
2831 ## Platform. ##
2832 ## --------- ##
2833
2834 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2835 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2836 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2837 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2838 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2839
2840 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2841 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2842
2843 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2844 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2845 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2846 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2847 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2848 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2849 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2850
2851 _ASUNAME
2852
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856   IFS=$as_save_IFS
2857   test -z "$as_dir" && as_dir=.
2858     $as_echo "PATH: $as_dir"
2859   done
2860 IFS=$as_save_IFS
2861
2862 } >&5
2863
2864 cat >&5 <<_ACEOF
2865
2866
2867 ## ----------- ##
2868 ## Core tests. ##
2869 ## ----------- ##
2870
2871 _ACEOF
2872
2873
2874 # Keep a trace of the command line.
2875 # Strip out --no-create and --no-recursion so they do not pile up.
2876 # Strip out --silent because we don't want to record it for future runs.
2877 # Also quote any args containing shell meta-characters.
2878 # Make two passes to allow for proper duplicate-argument suppression.
2879 ac_configure_args=
2880 ac_configure_args0=
2881 ac_configure_args1=
2882 ac_must_keep_next=false
2883 for ac_pass in 1 2
2884 do
2885   for ac_arg
2886   do
2887     case $ac_arg in
2888     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2889     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2890     | -silent | --silent | --silen | --sile | --sil)
2891       continue ;;
2892     *\'*)
2893       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2894     esac
2895     case $ac_pass in
2896     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2897     2)
2898       as_fn_append ac_configure_args1 " '$ac_arg'"
2899       if test $ac_must_keep_next = true; then
2900         ac_must_keep_next=false # Got value, back to normal.
2901       else
2902         case $ac_arg in
2903           *=* | --config-cache | -C | -disable-* | --disable-* \
2904           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2905           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2906           | -with-* | --with-* | -without-* | --without-* | --x)
2907             case "$ac_configure_args0 " in
2908               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2909             esac
2910             ;;
2911           -* ) ac_must_keep_next=true ;;
2912         esac
2913       fi
2914       as_fn_append ac_configure_args " '$ac_arg'"
2915       ;;
2916     esac
2917   done
2918 done
2919 { ac_configure_args0=; unset ac_configure_args0;}
2920 { ac_configure_args1=; unset ac_configure_args1;}
2921
2922 # When interrupted or exit'd, cleanup temporary files, and complete
2923 # config.log.  We remove comments because anyway the quotes in there
2924 # would cause problems or look ugly.
2925 # WARNING: Use '\'' to represent an apostrophe within the trap.
2926 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2927 trap 'exit_status=$?
2928   # Save into config.log some information that might help in debugging.
2929   {
2930     echo
2931
2932     cat <<\_ASBOX
2933 ## ---------------- ##
2934 ## Cache variables. ##
2935 ## ---------------- ##
2936 _ASBOX
2937     echo
2938     # The following way of writing the cache mishandles newlines in values,
2939 (
2940   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2941     eval ac_val=\$$ac_var
2942     case $ac_val in #(
2943     *${as_nl}*)
2944       case $ac_var in #(
2945       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2946 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2947       esac
2948       case $ac_var in #(
2949       _ | IFS | as_nl) ;; #(
2950       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2951       *) { eval $ac_var=; unset $ac_var;} ;;
2952       esac ;;
2953     esac
2954   done
2955   (set) 2>&1 |
2956     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2957     *${as_nl}ac_space=\ *)
2958       sed -n \
2959         "s/'\''/'\''\\\\'\'''\''/g;
2960           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2961       ;; #(
2962     *)
2963       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2964       ;;
2965     esac |
2966     sort
2967 )
2968     echo
2969
2970     cat <<\_ASBOX
2971 ## ----------------- ##
2972 ## Output variables. ##
2973 ## ----------------- ##
2974 _ASBOX
2975     echo
2976     for ac_var in $ac_subst_vars
2977     do
2978       eval ac_val=\$$ac_var
2979       case $ac_val in
2980       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2981       esac
2982       $as_echo "$ac_var='\''$ac_val'\''"
2983     done | sort
2984     echo
2985
2986     if test -n "$ac_subst_files"; then
2987       cat <<\_ASBOX
2988 ## ------------------- ##
2989 ## File substitutions. ##
2990 ## ------------------- ##
2991 _ASBOX
2992       echo
2993       for ac_var in $ac_subst_files
2994       do
2995         eval ac_val=\$$ac_var
2996         case $ac_val in
2997         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2998         esac
2999         $as_echo "$ac_var='\''$ac_val'\''"
3000       done | sort
3001       echo
3002     fi
3003
3004     if test -s confdefs.h; then
3005       cat <<\_ASBOX
3006 ## ----------- ##
3007 ## confdefs.h. ##
3008 ## ----------- ##
3009 _ASBOX
3010       echo
3011       cat confdefs.h
3012       echo
3013     fi
3014     test "$ac_signal" != 0 &&
3015       $as_echo "$as_me: caught signal $ac_signal"
3016     $as_echo "$as_me: exit $exit_status"
3017   } >&5
3018   rm -f core *.core core.conftest.* &&
3019     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3020     exit $exit_status
3021 ' 0
3022 for ac_signal in 1 2 13 15; do
3023   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3024 done
3025 ac_signal=0
3026
3027 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3028 rm -f -r conftest* confdefs.h
3029
3030 $as_echo "/* confdefs.h */" > confdefs.h
3031
3032 # Predefined preprocessor variables.
3033
3034 cat >>confdefs.h <<_ACEOF
3035 #define PACKAGE_NAME "$PACKAGE_NAME"
3036 _ACEOF
3037
3038 cat >>confdefs.h <<_ACEOF
3039 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3040 _ACEOF
3041
3042 cat >>confdefs.h <<_ACEOF
3043 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3044 _ACEOF
3045
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE_STRING "$PACKAGE_STRING"
3048 _ACEOF
3049
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3052 _ACEOF
3053
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_URL "$PACKAGE_URL"
3056 _ACEOF
3057
3058
3059 # Let the site file select an alternate cache file if it wants to.
3060 # Prefer an explicitly selected file to automatically selected ones.
3061 ac_site_file1=NONE
3062 ac_site_file2=NONE
3063 if test -n "$CONFIG_SITE"; then
3064   ac_site_file1=$CONFIG_SITE
3065 elif test "x$prefix" != xNONE; then
3066   ac_site_file1=$prefix/share/config.site
3067   ac_site_file2=$prefix/etc/config.site
3068 else
3069   ac_site_file1=$ac_default_prefix/share/config.site
3070   ac_site_file2=$ac_default_prefix/etc/config.site
3071 fi
3072 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3073 do
3074   test "x$ac_site_file" = xNONE && continue
3075   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3076     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3077 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3078     sed 's/^/| /' "$ac_site_file" >&5
3079     . "$ac_site_file"
3080   fi
3081 done
3082
3083 if test -r "$cache_file"; then
3084   # Some versions of bash will fail to source /dev/null (special files
3085   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3086   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3087     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3088 $as_echo "$as_me: loading cache $cache_file" >&6;}
3089     case $cache_file in
3090       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3091       *)                      . "./$cache_file";;
3092     esac
3093   fi
3094 else
3095   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3096 $as_echo "$as_me: creating cache $cache_file" >&6;}
3097   >$cache_file
3098 fi
3099
3100 # Check that the precious variables saved in the cache have kept the same
3101 # value.
3102 ac_cache_corrupted=false
3103 for ac_var in $ac_precious_vars; do
3104   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3105   eval ac_new_set=\$ac_env_${ac_var}_set
3106   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3107   eval ac_new_val=\$ac_env_${ac_var}_value
3108   case $ac_old_set,$ac_new_set in
3109     set,)
3110       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3111 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3112       ac_cache_corrupted=: ;;
3113     ,set)
3114       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3115 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3116       ac_cache_corrupted=: ;;
3117     ,);;
3118     *)
3119       if test "x$ac_old_val" != "x$ac_new_val"; then
3120         # differences in whitespace do not lead to failure.
3121         ac_old_val_w=`echo x $ac_old_val`
3122         ac_new_val_w=`echo x $ac_new_val`
3123         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3124           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3125 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3126           ac_cache_corrupted=:
3127         else
3128           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3129 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3130           eval $ac_var=\$ac_old_val
3131         fi
3132         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3133 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3134         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3135 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3136       fi;;
3137   esac
3138   # Pass precious variables to config.status.
3139   if test "$ac_new_set" = set; then
3140     case $ac_new_val in
3141     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3142     *) ac_arg=$ac_var=$ac_new_val ;;
3143     esac
3144     case " $ac_configure_args " in
3145       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3146       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3147     esac
3148   fi
3149 done
3150 if $ac_cache_corrupted; then
3151   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3154 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3155   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3156 fi
3157 ## -------------------- ##
3158 ## Main body of script. ##
3159 ## -------------------- ##
3160
3161 ac_ext=c
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166
3167
3168 # STABLE_VERSION=1.0.1+
3169
3170
3171 # Generate some files.
3172
3173
3174
3175
3176
3177
3178
3179 # Default value for --enable/disable-release-mode.
3180 # Determined by gen-autotools.sh based on versioning.
3181 # Official, stable releases enable it, pre-releases
3182 # disable it.
3183 #
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213 # Minimum version of libsynthesis as defined in its
3214 # configure script and thus .pc files:
3215
3216
3217 # Line above is patched by gen-autotools.sh. Handle
3218 # both "yes" and "no".
3219
3220
3221 # Check whether --enable-release-mode was given.
3222 if test "${enable_release_mode+set}" = set; then :
3223   enableval=$enable_release_mode; enable_release_mode="$enableval"
3224 else
3225   enable_release_mode="no"
3226 fi
3227
3228 if test "$enable_release_mode" = "yes"; then
3229
3230 $as_echo "#define SYNCEVOLUTION_STABLE_RELEASE 1" >>confdefs.h
3231
3232 fi
3233
3234 am__api_version='1.11'
3235
3236 ac_aux_dir=
3237 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3238   for ac_t in install-sh install.sh shtool; do
3239     if test -f "$ac_dir/$ac_t"; then
3240       ac_aux_dir=$ac_dir
3241       ac_install_sh="$ac_aux_dir/$ac_t -c"
3242       break 2
3243     fi
3244   done
3245 done
3246 if test -z "$ac_aux_dir"; then
3247   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3248 fi
3249
3250 # These three variables are undocumented and unsupported,
3251 # and are intended to be withdrawn in a future Autoconf release.
3252 # They can cause serious problems if a builder's source tree is in a directory
3253 # whose full name contains unusual characters.
3254 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3255 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3256 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3257
3258
3259 # Find a good install program.  We prefer a C program (faster),
3260 # so one script is as good as another.  But avoid the broken or
3261 # incompatible versions:
3262 # SysV /etc/install, /usr/sbin/install
3263 # SunOS /usr/etc/install
3264 # IRIX /sbin/install
3265 # AIX /bin/install
3266 # AmigaOS /C/install, which installs bootblocks on floppy discs
3267 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3268 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3269 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3270 # OS/2's system install, which has a completely different semantic
3271 # ./install, which can be erroneously created by make from ./install.sh.
3272 # Reject install programs that cannot install multiple files.
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3274 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3275 if test -z "$INSTALL"; then
3276 if test "${ac_cv_path_install+set}" = set; then :
3277   $as_echo_n "(cached) " >&6
3278 else
3279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3281 do
3282   IFS=$as_save_IFS
3283   test -z "$as_dir" && as_dir=.
3284     # Account for people who put trailing slashes in PATH elements.
3285 case $as_dir/ in #((
3286   ./ | .// | /[cC]/* | \
3287   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3288   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3289   /usr/ucb/* ) ;;
3290   *)
3291     # OSF1 and SCO ODT 3.0 have their own names for install.
3292     # Don't use installbsd from OSF since it installs stuff as root
3293     # by default.
3294     for ac_prog in ginstall scoinst install; do
3295       for ac_exec_ext in '' $ac_executable_extensions; do
3296         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3297           if test $ac_prog = install &&
3298             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3299             # AIX install.  It has an incompatible calling convention.
3300             :
3301           elif test $ac_prog = install &&
3302             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3303             # program-specific install script used by HP pwplus--don't use.
3304             :
3305           else
3306             rm -rf conftest.one conftest.two conftest.dir
3307             echo one > conftest.one
3308             echo two > conftest.two
3309             mkdir conftest.dir
3310             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3311               test -s conftest.one && test -s conftest.two &&
3312               test -s conftest.dir/conftest.one &&
3313               test -s conftest.dir/conftest.two
3314             then
3315               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3316               break 3
3317             fi
3318           fi
3319         fi
3320       done
3321     done
3322     ;;
3323 esac
3324
3325   done
3326 IFS=$as_save_IFS
3327
3328 rm -rf conftest.one conftest.two conftest.dir
3329
3330 fi
3331   if test "${ac_cv_path_install+set}" = set; then
3332     INSTALL=$ac_cv_path_install
3333   else
3334     # As a last resort, use the slow shell script.  Don't cache a
3335     # value for INSTALL within a source directory, because that will
3336     # break other packages using the cache if that directory is
3337     # removed, or if the value is a relative name.
3338     INSTALL=$ac_install_sh
3339   fi
3340 fi
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3342 $as_echo "$INSTALL" >&6; }
3343
3344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3345 # It thinks the first close brace ends the variable substitution.
3346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3347
3348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3349
3350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3351
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3353 $as_echo_n "checking whether build environment is sane... " >&6; }
3354 # Just in case
3355 sleep 1
3356 echo timestamp > conftest.file
3357 # Reject unsafe characters in $srcdir or the absolute working directory
3358 # name.  Accept space and tab only in the latter.
3359 am_lf='
3360 '
3361 case `pwd` in
3362   *[\\\"\#\$\&\'\`$am_lf]*)
3363     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3364 esac
3365 case $srcdir in
3366   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3367     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3368 esac
3369
3370 # Do `set' in a subshell so we don't clobber the current shell's
3371 # arguments.  Must try -L first in case configure is actually a
3372 # symlink; some systems play weird games with the mod time of symlinks
3373 # (eg FreeBSD returns the mod time of the symlink's containing
3374 # directory).
3375 if (
3376    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3377    if test "$*" = "X"; then
3378       # -L didn't work.
3379       set X `ls -t "$srcdir/configure" conftest.file`
3380    fi
3381    rm -f conftest.file
3382    if test "$*" != "X $srcdir/configure conftest.file" \
3383       && test "$*" != "X conftest.file $srcdir/configure"; then
3384
3385       # If neither matched, then we have a broken ls.  This can happen
3386       # if, for instance, CONFIG_SHELL is bash and it inherits a
3387       # broken ls alias from the environment.  This has actually
3388       # happened.  Such a system could not be considered "sane".
3389       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3390 alias in your environment" "$LINENO" 5
3391    fi
3392
3393    test "$2" = conftest.file
3394    )
3395 then
3396    # Ok.
3397    :
3398 else
3399    as_fn_error "newly created file is older than distributed files!
3400 Check your system clock" "$LINENO" 5
3401 fi
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3403 $as_echo "yes" >&6; }
3404 test "$program_prefix" != NONE &&
3405   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3406 # Use a double $ so make ignores it.
3407 test "$program_suffix" != NONE &&
3408   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3409 # Double any \ or $.
3410 # By default was `s,x,x', remove it if useless.
3411 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3412 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3413
3414 # expand $ac_aux_dir to an absolute path
3415 am_aux_dir=`cd $ac_aux_dir && pwd`
3416
3417 if test x"${MISSING+set}" != xset; then
3418   case $am_aux_dir in
3419   *\ * | *\     *)
3420     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3421   *)
3422     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3423   esac
3424 fi
3425 # Use eval to expand $SHELL
3426 if eval "$MISSING --run true"; then
3427   am_missing_run="$MISSING --run "
3428 else
3429   am_missing_run=
3430   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3431 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3432 fi
3433
3434 if test x"${install_sh}" != xset; then
3435   case $am_aux_dir in
3436   *\ * | *\     *)
3437     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3438   *)
3439     install_sh="\${SHELL} $am_aux_dir/install-sh"
3440   esac
3441 fi
3442
3443 # Installed binaries are usually stripped using `strip' when the user
3444 # run `make install-strip'.  However `strip' might not be the right
3445 # tool to use in cross-compilation environments, therefore Automake
3446 # will honor the `STRIP' environment variable to overrule this program.
3447 if test "$cross_compiling" != no; then
3448   if test -n "$ac_tool_prefix"; then
3449   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3450 set dummy ${ac_tool_prefix}strip; ac_word=$2
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if test "${ac_cv_prog_STRIP+set}" = set; then :
3454   $as_echo_n "(cached) " >&6
3455 else
3456   if test -n "$STRIP"; then
3457   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462   IFS=$as_save_IFS
3463   test -z "$as_dir" && as_dir=.
3464     for ac_exec_ext in '' $ac_executable_extensions; do
3465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3466     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468     break 2
3469   fi
3470 done
3471   done
3472 IFS=$as_save_IFS
3473
3474 fi
3475 fi
3476 STRIP=$ac_cv_prog_STRIP
3477 if test -n "$STRIP"; then
3478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3479 $as_echo "$STRIP" >&6; }
3480 else
3481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3483 fi
3484
3485
3486 fi
3487 if test -z "$ac_cv_prog_STRIP"; then
3488   ac_ct_STRIP=$STRIP
3489   # Extract the first word of "strip", so it can be a program name with args.
3490 set dummy strip; ac_word=$2
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492 $as_echo_n "checking for $ac_word... " >&6; }
3493 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3494   $as_echo_n "(cached) " >&6
3495 else
3496   if test -n "$ac_ct_STRIP"; then
3497   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3498 else
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH
3501 do
3502   IFS=$as_save_IFS
3503   test -z "$as_dir" && as_dir=.
3504     for ac_exec_ext in '' $ac_executable_extensions; do
3505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3506     ac_cv_prog_ac_ct_STRIP="strip"
3507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3508     break 2
3509   fi
3510 done
3511   done
3512 IFS=$as_save_IFS
3513
3514 fi
3515 fi
3516 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3517 if test -n "$ac_ct_STRIP"; then
3518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3519 $as_echo "$ac_ct_STRIP" >&6; }
3520 else
3521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 $as_echo "no" >&6; }
3523 fi
3524
3525   if test "x$ac_ct_STRIP" = x; then
3526     STRIP=":"
3527   else
3528     case $cross_compiling:$ac_tool_warned in
3529 yes:)
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3532 ac_tool_warned=yes ;;
3533 esac
3534     STRIP=$ac_ct_STRIP
3535   fi
3536 else
3537   STRIP="$ac_cv_prog_STRIP"
3538 fi
3539
3540 fi
3541 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3542
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3544 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3545 if test -z "$MKDIR_P"; then
3546   if test "${ac_cv_path_mkdir+set}" = set; then :
3547   $as_echo_n "(cached) " >&6
3548 else
3549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3551 do
3552   IFS=$as_save_IFS
3553   test -z "$as_dir" && as_dir=.
3554     for ac_prog in mkdir gmkdir; do
3555          for ac_exec_ext in '' $ac_executable_extensions; do
3556            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3557            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3558              'mkdir (GNU coreutils) '* | \
3559              'mkdir (coreutils) '* | \
3560              'mkdir (fileutils) '4.1*)
3561                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3562                break 3;;
3563            esac
3564          done
3565        done
3566   done
3567 IFS=$as_save_IFS
3568
3569 fi
3570
3571   test -d ./--version && rmdir ./--version
3572   if test "${ac_cv_path_mkdir+set}" = set; then
3573     MKDIR_P="$ac_cv_path_mkdir -p"
3574   else
3575     # As a last resort, use the slow shell script.  Don't cache a
3576     # value for MKDIR_P within a source directory, because that will
3577     # break other packages using the cache if that directory is
3578     # removed, or if the value is a relative name.
3579     MKDIR_P="$ac_install_sh -d"
3580   fi
3581 fi
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3583 $as_echo "$MKDIR_P" >&6; }
3584
3585 mkdir_p="$MKDIR_P"
3586 case $mkdir_p in
3587   [\\/$]* | ?:[\\/]*) ;;
3588   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3589 esac
3590
3591 for ac_prog in gawk mawk nawk awk
3592 do
3593   # Extract the first word of "$ac_prog", so it can be a program name with args.
3594 set dummy $ac_prog; ac_word=$2
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3596 $as_echo_n "checking for $ac_word... " >&6; }
3597 if test "${ac_cv_prog_AWK+set}" = set; then :
3598   $as_echo_n "(cached) " >&6
3599 else
3600   if test -n "$AWK"; then
3601   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3602 else
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH
3605 do
3606   IFS=$as_save_IFS
3607   test -z "$as_dir" && as_dir=.
3608     for ac_exec_ext in '' $ac_executable_extensions; do
3609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3610     ac_cv_prog_AWK="$ac_prog"
3611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3612     break 2
3613   fi
3614 done
3615   done
3616 IFS=$as_save_IFS
3617
3618 fi
3619 fi
3620 AWK=$ac_cv_prog_AWK
3621 if test -n "$AWK"; then
3622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3623 $as_echo "$AWK" >&6; }
3624 else
3625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626 $as_echo "no" >&6; }
3627 fi
3628
3629
3630   test -n "$AWK" && break
3631 done
3632
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3634 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3635 set x ${MAKE-make}
3636 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3637 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3638   $as_echo_n "(cached) " >&6
3639 else
3640   cat >conftest.make <<\_ACEOF
3641 SHELL = /bin/sh
3642 all:
3643         @echo '@@@%%%=$(MAKE)=@@@%%%'
3644 _ACEOF
3645 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3646 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3647   *@@@%%%=?*=@@@%%%*)
3648     eval ac_cv_prog_make_${ac_make}_set=yes;;
3649   *)
3650     eval ac_cv_prog_make_${ac_make}_set=no;;
3651 esac
3652 rm -f conftest.make
3653 fi
3654 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3656 $as_echo "yes" >&6; }
3657   SET_MAKE=
3658 else
3659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3661   SET_MAKE="MAKE=${MAKE-make}"
3662 fi
3663
3664 rm -rf .tst 2>/dev/null
3665 mkdir .tst 2>/dev/null
3666 if test -d .tst; then
3667   am__leading_dot=.
3668 else
3669   am__leading_dot=_
3670 fi
3671 rmdir .tst 2>/dev/null
3672
3673 # Check whether --enable-silent-rules was given.
3674 if test "${enable_silent_rules+set}" = set; then :
3675   enableval=$enable_silent_rules;
3676 fi
3677
3678 case $enable_silent_rules in
3679 yes) AM_DEFAULT_VERBOSITY=0;;
3680 no)  AM_DEFAULT_VERBOSITY=1;;
3681 *)   AM_DEFAULT_VERBOSITY=1;;
3682 esac
3683 AM_BACKSLASH='\'
3684
3685 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3686   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3687   # is not polluted with repeated "-I."
3688   am__isrc=' -I$(srcdir)'
3689   # test to see if srcdir already configured
3690   if test -f $srcdir/config.status; then
3691     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3692   fi
3693 fi
3694
3695 # test whether we have cygpath
3696 if test -z "$CYGPATH_W"; then
3697   if (cygpath --version) >/dev/null 2>/dev/null; then
3698     CYGPATH_W='cygpath -w'
3699   else
3700     CYGPATH_W=echo
3701   fi
3702 fi
3703
3704
3705 # Define the identity of the package.
3706  PACKAGE='syncevolution'
3707  VERSION='1.2.99+20120606+SE+ff65aef+SYSYNC+2728cb4'
3708
3709
3710 cat >>confdefs.h <<_ACEOF
3711 #define PACKAGE "$PACKAGE"
3712 _ACEOF
3713
3714
3715 cat >>confdefs.h <<_ACEOF
3716 #define VERSION "$VERSION"
3717 _ACEOF
3718
3719 # Some tools Automake needs.
3720
3721 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3722
3723
3724 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3725
3726
3727 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3728
3729
3730 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3731
3732
3733 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3734
3735 # We need awk for the "check" target.  The system "awk" is bad on
3736 # some platforms.
3737 # Always define AMTAR for backward compatibility.
3738
3739 AMTAR=${AMTAR-"${am_missing_run}tar"}
3740
3741
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3743 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3744 # Loop over all known methods to create a tar archive until one works.
3745 _am_tools='gnutar plaintar pax cpio none'
3746 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3747 # Do not fold the above two line into one, because Tru64 sh and
3748 # Solaris sh will not grok spaces in the rhs of `-'.
3749 for _am_tool in $_am_tools
3750 do
3751   case $_am_tool in
3752   gnutar)
3753     for _am_tar in tar gnutar gtar;
3754     do
3755       { echo "$as_me:$LINENO: $_am_tar --version" >&5
3756    ($_am_tar --version) >&5 2>&5
3757    ac_status=$?
3758    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759    (exit $ac_status); } && break
3760     done
3761     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3762     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3763     am__untar="$_am_tar -xf -"
3764     ;;
3765   plaintar)
3766     # Must skip GNU tar: if it does not support --format= it doesn't create
3767     # ustar tarball either.
3768     (tar --version) >/dev/null 2>&1 && continue
3769     am__tar='tar chf - "$$tardir"'
3770     am__tar_='tar chf - "$tardir"'
3771     am__untar='tar xf -'
3772     ;;
3773   pax)
3774     am__tar='pax -L -x ustar -w "$$tardir"'
3775     am__tar_='pax -L -x ustar -w "$tardir"'
3776     am__untar='pax -r'
3777     ;;
3778   cpio)
3779     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3780     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3781     am__untar='cpio -i -H ustar -d'
3782     ;;
3783   none)
3784     am__tar=false
3785     am__tar_=false
3786     am__untar=false
3787     ;;
3788   esac
3789
3790   # If the value was cached, stop now.  We just wanted to have am__tar
3791   # and am__untar set.
3792   test -n "${am_cv_prog_tar_ustar}" && break
3793
3794   # tar/untar a dummy directory, and stop if the command works
3795   rm -rf conftest.dir
3796   mkdir conftest.dir
3797   echo GrepMe > conftest.dir/file
3798   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3799    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3800    ac_status=$?
3801    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802    (exit $ac_status); }
3803   rm -rf conftest.dir
3804   if test -s conftest.tar; then
3805     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3806    ($am__untar <conftest.tar) >&5 2>&5
3807    ac_status=$?
3808    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809    (exit $ac_status); }
3810     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3811   fi
3812 done
3813 rm -rf conftest.dir
3814
3815 if test "${am_cv_prog_tar_ustar+set}" = set; then :
3816   $as_echo_n "(cached) " >&6
3817 else
3818   am_cv_prog_tar_ustar=$_am_tool
3819 fi
3820
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3822 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3823
3824
3825
3826
3827
3828
3829 DEPDIR="${am__leading_dot}deps"
3830
3831 ac_config_commands="$ac_config_commands depfiles"
3832
3833
3834 am_make=${MAKE-make}
3835 cat > confinc << 'END'
3836 am__doit:
3837         @echo this is the am__doit target
3838 .PHONY: am__doit
3839 END
3840 # If we don't find an include directive, just comment out the code.
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3842 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3843 am__include="#"
3844 am__quote=
3845 _am_result=none
3846 # First try GNU make style include.
3847 echo "include confinc" > confmf
3848 # Ignore all kinds of additional output from `make'.
3849 case `$am_make -s -f confmf 2> /dev/null` in #(
3850 *the\ am__doit\ target*)
3851   am__include=include
3852   am__quote=
3853   _am_result=GNU
3854   ;;
3855 esac
3856 # Now try BSD make style include.
3857 if test "$am__include" = "#"; then
3858    echo '.include "confinc"' > confmf
3859    case `$am_make -s -f confmf 2> /dev/null` in #(
3860    *the\ am__doit\ target*)
3861      am__include=.include
3862      am__quote="\""
3863      _am_result=BSD
3864      ;;
3865    esac
3866 fi
3867
3868
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3870 $as_echo "$_am_result" >&6; }
3871 rm -f confinc confmf
3872
3873 # Check whether --enable-dependency-tracking was given.
3874 if test "${enable_dependency_tracking+set}" = set; then :
3875   enableval=$enable_dependency_tracking;
3876 fi
3877
3878 if test "x$enable_dependency_tracking" != xno; then
3879   am_depcomp="$ac_aux_dir/depcomp"
3880   AMDEPBACKSLASH='\'
3881 fi
3882  if test "x$enable_dependency_tracking" != xno; then
3883   AMDEP_TRUE=
3884   AMDEP_FALSE='#'
3885 else
3886   AMDEP_TRUE='#'
3887   AMDEP_FALSE=
3888 fi
3889
3890
3891 ac_ext=c
3892 ac_cpp='$CPP $CPPFLAGS'
3893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896 if test -n "$ac_tool_prefix"; then
3897   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3898 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900 $as_echo_n "checking for $ac_word... " >&6; }
3901 if test "${ac_cv_prog_CC+set}" = set; then :
3902   $as_echo_n "(cached) " >&6
3903 else
3904   if test -n "$CC"; then
3905   ac_cv_prog_CC="$CC" # Let the user override the test.
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3909 do
3910   IFS=$as_save_IFS
3911   test -z "$as_dir" && as_dir=.
3912     for ac_exec_ext in '' $ac_executable_extensions; do
3913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3914     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3916     break 2
3917   fi
3918 done
3919   done
3920 IFS=$as_save_IFS
3921
3922 fi
3923 fi
3924 CC=$ac_cv_prog_CC
3925 if test -n "$CC"; then
3926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3927 $as_echo "$CC" >&6; }
3928 else
3929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 $as_echo "no" >&6; }
3931 fi
3932
3933
3934 fi
3935 if test -z "$ac_cv_prog_CC"; then
3936   ac_ct_CC=$CC
3937   # Extract the first word of "gcc", so it can be a program name with args.
3938 set dummy gcc; ac_word=$2
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940 $as_echo_n "checking for $ac_word... " >&6; }
3941 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3942   $as_echo_n "(cached) " >&6
3943 else
3944   if test -n "$ac_ct_CC"; then
3945   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3946 else
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3949 do
3950   IFS=$as_save_IFS
3951   test -z "$as_dir" && as_dir=.
3952     for ac_exec_ext in '' $ac_executable_extensions; do
3953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3954     ac_cv_prog_ac_ct_CC="gcc"
3955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3956     break 2
3957   fi
3958 done
3959   done
3960 IFS=$as_save_IFS
3961
3962 fi
3963 fi
3964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3965 if test -n "$ac_ct_CC"; then
3966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3967 $as_echo "$ac_ct_CC" >&6; }
3968 else
3969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3971 fi
3972
3973   if test "x$ac_ct_CC" = x; then
3974     CC=""
3975   else
3976     case $cross_compiling:$ac_tool_warned in
3977 yes:)
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3980 ac_tool_warned=yes ;;
3981 esac
3982     CC=$ac_ct_CC
3983   fi
3984 else
3985   CC="$ac_cv_prog_CC"
3986 fi
3987
3988 if test -z "$CC"; then
3989           if test -n "$ac_tool_prefix"; then
3990     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3991 set dummy ${ac_tool_prefix}cc; ac_word=$2
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993 $as_echo_n "checking for $ac_word... " >&6; }
3994 if test "${ac_cv_prog_CC+set}" = set; then :
3995   $as_echo_n "(cached) " >&6
3996 else
3997   if test -n "$CC"; then
3998   ac_cv_prog_CC="$CC" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4002 do
4003   IFS=$as_save_IFS
4004   test -z "$as_dir" && as_dir=.
4005     for ac_exec_ext in '' $ac_executable_extensions; do
4006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007     ac_cv_prog_CC="${ac_tool_prefix}cc"
4008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009     break 2
4010   fi
4011 done
4012   done
4013 IFS=$as_save_IFS
4014
4015 fi
4016 fi
4017 CC=$ac_cv_prog_CC
4018 if test -n "$CC"; then
4019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4020 $as_echo "$CC" >&6; }
4021 else
4022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4024 fi
4025
4026
4027   fi
4028 fi
4029 if test -z "$CC"; then
4030   # Extract the first word of "cc", so it can be a program name with args.
4031 set dummy cc; ac_word=$2
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4033 $as_echo_n "checking for $ac_word... " >&6; }
4034 if test "${ac_cv_prog_CC+set}" = set; then :
4035   $as_echo_n "(cached) " >&6
4036 else
4037   if test -n "$CC"; then
4038   ac_cv_prog_CC="$CC" # Let the user override the test.
4039 else
4040   ac_prog_rejected=no
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4043 do
4044   IFS=$as_save_IFS
4045   test -z "$as_dir" && as_dir=.
4046     for ac_exec_ext in '' $ac_executable_extensions; do
4047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4049        ac_prog_rejected=yes
4050        continue
4051      fi
4052     ac_cv_prog_CC="cc"
4053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054     break 2
4055   fi
4056 done
4057   done
4058 IFS=$as_save_IFS
4059
4060 if test $ac_prog_rejected = yes; then
4061   # We found a bogon in the path, so make sure we never use it.
4062   set dummy $ac_cv_prog_CC
4063   shift
4064   if test $# != 0; then
4065     # We chose a different compiler from the bogus one.
4066     # However, it has the same basename, so the bogon will be chosen
4067     # first if we set CC to just the basename; use the full file name.
4068     shift
4069     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4070   fi
4071 fi
4072 fi
4073 fi
4074 CC=$ac_cv_prog_CC
4075 if test -n "$CC"; then
4076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4077 $as_echo "$CC" >&6; }
4078 else
4079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4081 fi
4082
4083
4084 fi
4085 if test -z "$CC"; then
4086   if test -n "$ac_tool_prefix"; then
4087   for ac_prog in cl.exe
4088   do
4089     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if test "${ac_cv_prog_CC+set}" = set; then :
4094   $as_echo_n "(cached) " >&6
4095 else
4096   if test -n "$CC"; then
4097   ac_cv_prog_CC="$CC" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4101 do
4102   IFS=$as_save_IFS
4103   test -z "$as_dir" && as_dir=.
4104     for ac_exec_ext in '' $ac_executable_extensions; do
4105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4106     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108     break 2
4109   fi
4110 done
4111   done
4112 IFS=$as_save_IFS
4113
4114 fi
4115 fi
4116 CC=$ac_cv_prog_CC
4117 if test -n "$CC"; then
4118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4119 $as_echo "$CC" >&6; }
4120 else
4121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4123 fi
4124
4125
4126     test -n "$CC" && break
4127   done
4128 fi
4129 if test -z "$CC"; then
4130   ac_ct_CC=$CC
4131   for ac_prog in cl.exe
4132 do
4133   # Extract the first word of "$ac_prog", so it can be a program name with args.
4134 set dummy $ac_prog; ac_word=$2
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4136 $as_echo_n "checking for $ac_word... " >&6; }
4137 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4138   $as_echo_n "(cached) " >&6
4139 else
4140   if test -n "$ac_ct_CC"; then
4141   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4142 else
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 for as_dir in $PATH
4145 do
4146   IFS=$as_save_IFS
4147   test -z "$as_dir" && as_dir=.
4148     for ac_exec_ext in '' $ac_executable_extensions; do
4149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4150     ac_cv_prog_ac_ct_CC="$ac_prog"
4151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4152     break 2
4153   fi
4154 done
4155   done
4156 IFS=$as_save_IFS
4157
4158 fi
4159 fi
4160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4161 if test -n "$ac_ct_CC"; then
4162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4163 $as_echo "$ac_ct_CC" >&6; }
4164 else
4165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166 $as_echo "no" >&6; }
4167 fi
4168
4169
4170   test -n "$ac_ct_CC" && break
4171 done
4172
4173   if test "x$ac_ct_CC" = x; then
4174     CC=""
4175   else
4176     case $cross_compiling:$ac_tool_warned in
4177 yes:)
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4180 ac_tool_warned=yes ;;
4181 esac
4182     CC=$ac_ct_CC
4183   fi
4184 fi
4185
4186 fi
4187
4188
4189 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4191 as_fn_error "no acceptable C compiler found in \$PATH
4192 See \`config.log' for more details." "$LINENO" 5; }
4193
4194 # Provide some information about the compiler.
4195 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4196 set X $ac_compile
4197 ac_compiler=$2
4198 for ac_option in --version -v -V -qversion; do
4199   { { ac_try="$ac_compiler $ac_option >&5"
4200 case "(($ac_try" in
4201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202   *) ac_try_echo=$ac_try;;
4203 esac
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4207   ac_status=$?
4208   if test -s conftest.err; then
4209     sed '10a\
4210 ... rest of stderr output deleted ...
4211          10q' conftest.err >conftest.er1
4212     cat conftest.er1 >&5
4213   fi
4214   rm -f conftest.er1 conftest.err
4215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216   test $ac_status = 0; }
4217 done
4218
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h.  */
4221
4222 int
4223 main ()
4224 {
4225
4226   ;
4227   return 0;
4228 }
4229 _ACEOF
4230 ac_clean_files_save=$ac_clean_files
4231 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4232 # Try to create an executable without -o first, disregard a.out.
4233 # It will help us diagnose broken compilers, and finding out an intuition
4234 # of exeext.
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4236 $as_echo_n "checking whether the C compiler works... " >&6; }
4237 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4238
4239 # The possible output files:
4240 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4241
4242 ac_rmfiles=
4243 for ac_file in $ac_files
4244 do
4245   case $ac_file in
4246     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4247     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4248   esac
4249 done
4250 rm -f $ac_rmfiles
4251
4252 if { { ac_try="$ac_link_default"
4253 case "(($ac_try" in
4254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255   *) ac_try_echo=$ac_try;;
4256 esac
4257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4258 $as_echo "$ac_try_echo"; } >&5
4259   (eval "$ac_link_default") 2>&5
4260   ac_status=$?
4261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4262   test $ac_status = 0; }; then :
4263   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4264 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4265 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4266 # so that the user can short-circuit this test for compilers unknown to
4267 # Autoconf.
4268 for ac_file in $ac_files ''
4269 do
4270   test -f "$ac_file" || continue
4271   case $ac_file in
4272     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4273         ;;
4274     [ab].out )
4275         # We found the default executable, but exeext='' is most
4276         # certainly right.
4277         break;;
4278     *.* )
4279         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4280         then :; else
4281            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4282         fi
4283         # We set ac_cv_exeext here because the later test for it is not
4284         # safe: cross compilers may not add the suffix if given an `-o'
4285         # argument, so we may need to know it at that point already.
4286         # Even if this section looks crufty: it has the advantage of
4287         # actually working.
4288         break;;
4289     * )
4290         break;;
4291   esac
4292 done
4293 test "$ac_cv_exeext" = no && ac_cv_exeext=
4294
4295 else
4296   ac_file=''
4297 fi
4298 if test -z "$ac_file"; then :
4299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300 $as_echo "no" >&6; }
4301 $as_echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4303
4304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4306 { as_fn_set_status 77
4307 as_fn_error "C compiler cannot create executables
4308 See \`config.log' for more details." "$LINENO" 5; }; }
4309 else
4310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4311 $as_echo "yes" >&6; }
4312 fi
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4314 $as_echo_n "checking for C compiler default output file name... " >&6; }
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4316 $as_echo "$ac_file" >&6; }
4317 ac_exeext=$ac_cv_exeext
4318
4319 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4320 ac_clean_files=$ac_clean_files_save
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4322 $as_echo_n "checking for suffix of executables... " >&6; }
4323 if { { ac_try="$ac_link"
4324 case "(($ac_try" in
4325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326   *) ac_try_echo=$ac_try;;
4327 esac
4328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4329 $as_echo "$ac_try_echo"; } >&5
4330   (eval "$ac_link") 2>&5
4331   ac_status=$?
4332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4333   test $ac_status = 0; }; then :
4334   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4335 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4336 # work properly (i.e., refer to `conftest.exe'), while it won't with
4337 # `rm'.
4338 for ac_file in conftest.exe conftest conftest.*; do
4339   test -f "$ac_file" || continue
4340   case $ac_file in
4341     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4342     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4343           break;;
4344     * ) break;;
4345   esac
4346 done
4347 else
4348   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4350 as_fn_error "cannot compute suffix of executables: cannot compile and link
4351 See \`config.log' for more details." "$LINENO" 5; }
4352 fi
4353 rm -f conftest conftest$ac_cv_exeext
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4355 $as_echo "$ac_cv_exeext" >&6; }
4356
4357 rm -f conftest.$ac_ext
4358 EXEEXT=$ac_cv_exeext
4359 ac_exeext=$EXEEXT
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h.  */
4362 #include <stdio.h>
4363 int
4364 main ()
4365 {
4366 FILE *f = fopen ("conftest.out", "w");
4367  return ferror (f) || fclose (f) != 0;
4368
4369   ;
4370   return 0;
4371 }
4372 _ACEOF
4373 ac_clean_files="$ac_clean_files conftest.out"
4374 # Check that the compiler produces executables we can run.  If not, either
4375 # the compiler is broken, or we cross compile.
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4377 $as_echo_n "checking whether we are cross compiling... " >&6; }
4378 if test "$cross_compiling" != yes; then
4379   { { ac_try="$ac_link"
4380 case "(($ac_try" in
4381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382   *) ac_try_echo=$ac_try;;
4383 esac
4384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4385 $as_echo "$ac_try_echo"; } >&5
4386   (eval "$ac_link") 2>&5
4387   ac_status=$?
4388   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389   test $ac_status = 0; }
4390   if { ac_try='./conftest$ac_cv_exeext'
4391   { { case "(($ac_try" in
4392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393   *) ac_try_echo=$ac_try;;
4394 esac
4395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396 $as_echo "$ac_try_echo"; } >&5
4397   (eval "$ac_try") 2>&5
4398   ac_status=$?
4399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400   test $ac_status = 0; }; }; then
4401     cross_compiling=no
4402   else
4403     if test "$cross_compiling" = maybe; then
4404         cross_compiling=yes
4405     else
4406         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4408 as_fn_error "cannot run C compiled programs.
4409 If you meant to cross compile, use \`--host'.
4410 See \`config.log' for more details." "$LINENO" 5; }
4411     fi
4412   fi
4413 fi
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4415 $as_echo "$cross_compiling" >&6; }
4416
4417 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4418 ac_clean_files=$ac_clean_files_save
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4420 $as_echo_n "checking for suffix of object files... " >&6; }
4421 if test "${ac_cv_objext+set}" = set; then :
4422   $as_echo_n "(cached) " >&6
4423 else
4424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h.  */
4426
4427 int
4428 main ()
4429 {
4430
4431   ;
4432   return 0;
4433 }
4434 _ACEOF
4435 rm -f conftest.o conftest.obj
4436 if { { ac_try="$ac_compile"
4437 case "(($ac_try" in
4438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439   *) ac_try_echo=$ac_try;;
4440 esac
4441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442 $as_echo "$ac_try_echo"; } >&5
4443   (eval "$ac_compile") 2>&5
4444   ac_status=$?
4445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446   test $ac_status = 0; }; then :
4447   for ac_file in conftest.o conftest.obj conftest.*; do
4448   test -f "$ac_file" || continue;
4449   case $ac_file in
4450     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4451     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4452        break;;
4453   esac
4454 done
4455 else
4456   $as_echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4458
4459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4461 as_fn_error "cannot compute suffix of object files: cannot compile
4462 See \`config.log' for more details." "$LINENO" 5; }
4463 fi
4464 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4465 fi
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4467 $as_echo "$ac_cv_objext" >&6; }
4468 OBJEXT=$ac_cv_objext
4469 ac_objext=$OBJEXT
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4471 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4472 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4473   $as_echo_n "(cached) " >&6
4474 else
4475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h.  */
4477
4478 int
4479 main ()
4480 {
4481 #ifndef __GNUC__
4482        choke me
4483 #endif
4484
4485   ;
4486   return 0;
4487 }
4488 _ACEOF
4489 if ac_fn_c_try_compile "$LINENO"; then :
4490   ac_compiler_gnu=yes
4491 else
4492   ac_compiler_gnu=no
4493 fi
4494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4495 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4496
4497 fi
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4499 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4500 if test $ac_compiler_gnu = yes; then
4501   GCC=yes
4502 else
4503   GCC=
4504 fi
4505 ac_test_CFLAGS=${CFLAGS+set}
4506 ac_save_CFLAGS=$CFLAGS
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4508 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4509 if test "${ac_cv_prog_cc_g+set}" = set; then :
4510   $as_echo_n "(cached) " >&6
4511 else
4512   ac_save_c_werror_flag=$ac_c_werror_flag
4513    ac_c_werror_flag=yes
4514    ac_cv_prog_cc_g=no
4515    CFLAGS="-g"
4516    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h.  */
4518
4519 int
4520 main ()
4521 {
4522
4523   ;
4524   return 0;
4525 }
4526 _ACEOF
4527 if ac_fn_c_try_compile "$LINENO"; then :
4528   ac_cv_prog_cc_g=yes
4529 else
4530   CFLAGS=""
4531       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h.  */
4533
4534 int
4535 main ()
4536 {
4537
4538   ;
4539   return 0;
4540 }
4541 _ACEOF
4542 if ac_fn_c_try_compile "$LINENO"; then :
4543
4544 else
4545   ac_c_werror_flag=$ac_save_c_werror_flag
4546          CFLAGS="-g"
4547          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h.  */
4549
4550 int
4551 main ()
4552 {
4553
4554   ;
4555   return 0;
4556 }
4557 _ACEOF
4558 if ac_fn_c_try_compile "$LINENO"; then :
4559   ac_cv_prog_cc_g=yes
4560 fi
4561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562 fi
4563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4564 fi
4565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566    ac_c_werror_flag=$ac_save_c_werror_flag
4567 fi
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4569 $as_echo "$ac_cv_prog_cc_g" >&6; }
4570 if test "$ac_test_CFLAGS" = set; then
4571   CFLAGS=$ac_save_CFLAGS
4572 elif test $ac_cv_prog_cc_g = yes; then
4573   if test "$GCC" = yes; then
4574     CFLAGS="-g -O2"
4575   else
4576     CFLAGS="-g"
4577   fi
4578 else
4579   if test "$GCC" = yes; then
4580     CFLAGS="-O2"
4581   else
4582     CFLAGS=
4583   fi
4584 fi
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4586 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4587 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4588   $as_echo_n "(cached) " >&6
4589 else
4590   ac_cv_prog_cc_c89=no
4591 ac_save_CC=$CC
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h.  */
4594 #include <stdarg.h>
4595 #include <stdio.h>
4596 #include <sys/types.h>
4597 #include <sys/stat.h>
4598 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4599 struct buf { int x; };
4600 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4601 static char *e (p, i)
4602      char **p;
4603      int i;
4604 {
4605   return p[i];
4606 }
4607 static char *f (char * (*g) (char **, int), char **p, ...)
4608 {
4609   char *s;
4610   va_list v;
4611   va_start (v,p);
4612   s = g (p, va_arg (v,int));
4613   va_end (v);
4614   return s;
4615 }
4616
4617 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4618    function prototypes and stuff, but not '\xHH' hex character constants.
4619    These don't provoke an error unfortunately, instead are silently treated
4620    as 'x'.  The following induces an error, until -std is added to get
4621    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4622    array size at least.  It's necessary to write '\x00'==0 to get something
4623    that's true only with -std.  */
4624 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4625
4626 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4627    inside strings and character constants.  */
4628 #define FOO(x) 'x'
4629 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4630
4631 int test (int i, double x);
4632 struct s1 {int (*f) (int a);};
4633 struct s2 {int (*f) (double a);};
4634 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4635 int argc;
4636 char **argv;
4637 int
4638 main ()
4639 {
4640 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4641   ;
4642   return 0;
4643 }
4644 _ACEOF
4645 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4646         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4647 do
4648   CC="$ac_save_CC $ac_arg"
4649   if ac_fn_c_try_compile "$LINENO"; then :
4650   ac_cv_prog_cc_c89=$ac_arg
4651 fi
4652 rm -f core conftest.err conftest.$ac_objext
4653   test "x$ac_cv_prog_cc_c89" != "xno" && break
4654 done
4655 rm -f conftest.$ac_ext
4656 CC=$ac_save_CC
4657
4658 fi
4659 # AC_CACHE_VAL
4660 case "x$ac_cv_prog_cc_c89" in
4661   x)
4662     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4663 $as_echo "none needed" >&6; } ;;
4664   xno)
4665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4666 $as_echo "unsupported" >&6; } ;;
4667   *)
4668     CC="$CC $ac_cv_prog_cc_c89"
4669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4670 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4671 esac
4672 if test "x$ac_cv_prog_cc_c89" != xno; then :
4673
4674 fi
4675
4676 ac_ext=c
4677 ac_cpp='$CPP $CPPFLAGS'
4678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4681
4682 depcc="$CC"   am_compiler_list=
4683
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4685 $as_echo_n "checking dependency style of $depcc... " >&6; }
4686 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4687   $as_echo_n "(cached) " >&6
4688 else
4689   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4690   # We make a subdir and do the tests there.  Otherwise we can end up
4691   # making bogus files that we don't know about and never remove.  For
4692   # instance it was reported that on HP-UX the gcc test will end up
4693   # making a dummy file named `D' -- because `-MD' means `put the output
4694   # in D'.
4695   mkdir conftest.dir
4696   # Copy depcomp to subdir because otherwise we won't find it if we're
4697   # using a relative directory.
4698   cp "$am_depcomp" conftest.dir
4699   cd conftest.dir
4700   # We will build objects and dependencies in a subdirectory because
4701   # it helps to detect inapplicable dependency modes.  For instance
4702   # both Tru64's cc and ICC support -MD to output dependencies as a
4703   # side effect of compilation, but ICC will put the dependencies in
4704   # the current directory while Tru64 will put them in the object
4705   # directory.
4706   mkdir sub
4707
4708   am_cv_CC_dependencies_compiler_type=none
4709   if test "$am_compiler_list" = ""; then
4710      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4711   fi
4712   am__universal=false
4713   case " $depcc " in #(
4714      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4715      esac
4716
4717   for depmode in $am_compiler_list; do
4718     # Setup a source with many dependencies, because some compilers
4719     # like to wrap large dependency lists on column 80 (with \), and
4720     # we should not choose a depcomp mode which is confused by this.
4721     #
4722     # We need to recreate these files for each test, as the compiler may
4723     # overwrite some of them when testing with obscure command lines.
4724     # This happens at least with the AIX C compiler.
4725     : > sub/conftest.c
4726     for i in 1 2 3 4 5 6; do
4727       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4728       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4729       # Solaris 8's {/usr,}/bin/sh.
4730       touch sub/conftst$i.h
4731     done
4732     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4733
4734     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4735     # mode.  It turns out that the SunPro C++ compiler does not properly
4736     # handle `-M -o', and we need to detect this.  Also, some Intel
4737     # versions had trouble with output in subdirs
4738     am__obj=sub/conftest.${OBJEXT-o}
4739     am__minus_obj="-o $am__obj"
4740     case $depmode in
4741     gcc)
4742       # This depmode causes a compiler race in universal mode.
4743       test "$am__universal" = false || continue
4744       ;;
4745     nosideeffect)
4746       # after this tag, mechanisms are not by side-effect, so they'll
4747       # only be used when explicitly requested
4748       if test "x$enable_dependency_tracking" = xyes; then
4749         continue
4750       else
4751         break
4752       fi
4753       ;;
4754     msvisualcpp | msvcmsys)
4755       # This compiler won't grok `-c -o', but also, the minuso test has
4756       # not run yet.  These depmodes are late enough in the game, and
4757       # so weak that their functioning should not be impacted.
4758       am__obj=conftest.${OBJEXT-o}
4759       am__minus_obj=
4760       ;;
4761     none) break ;;
4762     esac
4763     if depmode=$depmode \
4764        source=sub/conftest.c object=$am__obj \
4765        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4766        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4767          >/dev/null 2>conftest.err &&
4768        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4769        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4770        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4771        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4772       # icc doesn't choke on unknown options, it will just issue warnings
4773       # or remarks (even with -Werror).  So we grep stderr for any message
4774       # that says an option was ignored or not supported.
4775       # When given -MP, icc 7.0 and 7.1 complain thusly:
4776       #   icc: Command line warning: ignoring option '-M'; no argument required
4777       # The diagnosis changed in icc 8.0:
4778       #   icc: Command line remark: option '-MP' not supported
4779       if (grep 'ignoring option' conftest.err ||
4780           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4781         am_cv_CC_dependencies_compiler_type=$depmode
4782         break
4783       fi
4784     fi
4785   done
4786
4787   cd ..
4788   rm -rf conftest.dir
4789 else
4790   am_cv_CC_dependencies_compiler_type=none
4791 fi
4792
4793 fi
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4795 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4796 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4797
4798  if
4799   test "x$enable_dependency_tracking" != xno \
4800   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4801   am__fastdepCC_TRUE=
4802   am__fastdepCC_FALSE='#'
4803 else
4804   am__fastdepCC_TRUE='#'
4805   am__fastdepCC_FALSE=
4806 fi
4807
4808
4809 if test "x$CC" != xcc; then
4810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4811 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4812 else
4813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4814 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4815 fi
4816 set dummy $CC; ac_cc=`$as_echo "$2" |
4817                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4818 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4819   $as_echo_n "(cached) " >&6
4820 else
4821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h.  */
4823
4824 int
4825 main ()
4826 {
4827
4828   ;
4829   return 0;
4830 }
4831 _ACEOF
4832 # Make sure it works both with $CC and with simple cc.
4833 # We do the test twice because some compilers refuse to overwrite an
4834 # existing .o file with -o, though they will create one.
4835 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4836 rm -f conftest2.*
4837 if { { case "(($ac_try" in
4838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839   *) ac_try_echo=$ac_try;;
4840 esac
4841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4842 $as_echo "$ac_try_echo"; } >&5
4843   (eval "$ac_try") 2>&5
4844   ac_status=$?
4845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4846   test $ac_status = 0; } &&
4847    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849   *) ac_try_echo=$ac_try;;
4850 esac
4851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4852 $as_echo "$ac_try_echo"; } >&5
4853   (eval "$ac_try") 2>&5
4854   ac_status=$?
4855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4856   test $ac_status = 0; };
4857 then
4858   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4859   if test "x$CC" != xcc; then
4860     # Test first that cc exists at all.
4861     if { ac_try='cc -c conftest.$ac_ext >&5'
4862   { { case "(($ac_try" in
4863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864   *) ac_try_echo=$ac_try;;
4865 esac
4866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4867 $as_echo "$ac_try_echo"; } >&5
4868   (eval "$ac_try") 2>&5
4869   ac_status=$?
4870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4871   test $ac_status = 0; }; }; then
4872       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4873       rm -f conftest2.*
4874       if { { case "(($ac_try" in
4875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876   *) ac_try_echo=$ac_try;;
4877 esac
4878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4879 $as_echo "$ac_try_echo"; } >&5
4880   (eval "$ac_try") 2>&5
4881   ac_status=$?
4882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4883   test $ac_status = 0; } &&
4884          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886   *) ac_try_echo=$ac_try;;
4887 esac
4888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4889 $as_echo "$ac_try_echo"; } >&5
4890   (eval "$ac_try") 2>&5
4891   ac_status=$?
4892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4893   test $ac_status = 0; };
4894       then
4895         # cc works too.
4896         :
4897       else
4898         # cc exists but doesn't like -o.
4899         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4900       fi
4901     fi
4902   fi
4903 else
4904   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4905 fi
4906 rm -f core conftest*
4907
4908 fi
4909 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4911 $as_echo "yes" >&6; }
4912 else
4913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4915
4916 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4917
4918 fi
4919
4920 # FIXME: we rely on the cache variable name because
4921 # there is no other way.
4922 set dummy $CC
4923 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4924 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4925 if test "$am_t" != yes; then
4926    # Losing compiler, so override with the script.
4927    # FIXME: It is wrong to rewrite CC.
4928    # But if we don't then we get into trouble of one sort or another.
4929    # A longer-term fix would be to have automake use am__CC in this case,
4930    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4931    CC="$am_aux_dir/compile $CC"
4932 fi
4933
4934
4935
4936
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable maintainer-specific portions of Makefiles" >&5
4938 $as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
4939     # Check whether --enable-maintainer-mode was given.
4940 if test "${enable_maintainer_mode+set}" = set; then :
4941   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4942 else
4943   USE_MAINTAINER_MODE=yes
4944 fi
4945
4946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4947 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4948    if test $USE_MAINTAINER_MODE = yes; then
4949   MAINTAINER_MODE_TRUE=
4950   MAINTAINER_MODE_FALSE='#'
4951 else
4952   MAINTAINER_MODE_TRUE='#'
4953   MAINTAINER_MODE_FALSE=
4954 fi
4955
4956   MAINT=$MAINTAINER_MODE_TRUE
4957
4958  # needed for nightly builds where reconfiguration fails under certain chroots
4959
4960
4961
4962 ac_config_headers="$ac_config_headers config.h"
4963
4964 case `pwd` in
4965   *\ * | *\     *)
4966     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4967 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4968 esac
4969
4970
4971
4972 macro_version='2.2.6b'
4973 macro_revision='1.3017'
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987 ltmain="$ac_aux_dir/ltmain.sh"
4988
4989 # Make sure we can run config.sub.
4990 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4991   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4992
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4994 $as_echo_n "checking build system type... " >&6; }
4995 if test "${ac_cv_build+set}" = set; then :
4996   $as_echo_n "(cached) " >&6
4997 else
4998   ac_build_alias=$build_alias
4999 test "x$ac_build_alias" = x &&
5000   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5001 test "x$ac_build_alias" = x &&
5002   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5003 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5004   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5005
5006 fi
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5008 $as_echo "$ac_cv_build" >&6; }
5009 case $ac_cv_build in
5010 *-*-*) ;;
5011 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5012 esac
5013 build=$ac_cv_build
5014 ac_save_IFS=$IFS; IFS='-'
5015 set x $ac_cv_build
5016 shift
5017 build_cpu=$1
5018 build_vendor=$2
5019 shift; shift
5020 # Remember, the first character of IFS is used to create $*,
5021 # except with old shells:
5022 build_os=$*
5023 IFS=$ac_save_IFS
5024 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5025
5026
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5028 $as_echo_n "checking host system type... " >&6; }
5029 if test "${ac_cv_host+set}" = set; then :
5030   $as_echo_n "(cached) " >&6
5031 else
5032   if test "x$host_alias" = x; then
5033   ac_cv_host=$ac_cv_build
5034 else
5035   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5036     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5037 fi
5038
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5041 $as_echo "$ac_cv_host" >&6; }
5042 case $ac_cv_host in
5043 *-*-*) ;;
5044 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5045 esac
5046 host=$ac_cv_host
5047 ac_save_IFS=$IFS; IFS='-'
5048 set x $ac_cv_host
5049 shift
5050 host_cpu=$1
5051 host_vendor=$2
5052 shift; shift
5053 # Remember, the first character of IFS is used to create $*,
5054 # except with old shells:
5055 host_os=$*
5056 IFS=$ac_save_IFS
5057 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5058
5059
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5061 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5062 if test "${ac_cv_path_SED+set}" = set; then :
5063   $as_echo_n "(cached) " >&6
5064 else
5065             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5066      for ac_i in 1 2 3 4 5 6 7; do
5067        ac_script="$ac_script$as_nl$ac_script"
5068      done
5069      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5070      { ac_script=; unset ac_script;}
5071      if test -z "$SED"; then
5072   ac_path_SED_found=false
5073   # Loop through the user's path and test for each of PROGNAME-LIST
5074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077   IFS=$as_save_IFS
5078   test -z "$as_dir" && as_dir=.
5079     for ac_prog in sed gsed; do
5080     for ac_exec_ext in '' $ac_executable_extensions; do
5081       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5082       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5083 # Check for GNU ac_path_SED and select it if it is found.
5084   # Check for GNU $ac_path_SED
5085 case `"$ac_path_SED" --version 2>&1` in
5086 *GNU*)
5087   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5088 *)
5089   ac_count=0
5090   $as_echo_n 0123456789 >"conftest.in"
5091   while :
5092   do
5093     cat "conftest.in" "conftest.in" >"conftest.tmp"
5094     mv "conftest.tmp" "conftest.in"
5095     cp "conftest.in" "conftest.nl"
5096     $as_echo '' >> "conftest.nl"
5097     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5098     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5099     as_fn_arith $ac_count + 1 && ac_count=$as_val
5100     if test $ac_count -gt ${ac_path_SED_max-0}; then
5101       # Best one so far, save it but keep looking for a better one
5102       ac_cv_path_SED="$ac_path_SED"
5103       ac_path_SED_max=$ac_count
5104     fi
5105     # 10*(2^10) chars as input seems more than enough
5106     test $ac_count -gt 10 && break
5107   done
5108   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5109 esac
5110
5111       $ac_path_SED_found && break 3
5112     done
5113   done
5114   done
5115 IFS=$as_save_IFS
5116   if test -z "$ac_cv_path_SED"; then
5117     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5118   fi
5119 else
5120   ac_cv_path_SED=$SED
5121 fi
5122
5123 fi
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5125 $as_echo "$ac_cv_path_SED" >&6; }
5126  SED="$ac_cv_path_SED"
5127   rm -f conftest.sed
5128
5129 test -z "$SED" && SED=sed
5130 Xsed="$SED -e 1s/^X//"
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5143 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5144 if test "${ac_cv_path_GREP+set}" = set; then :
5145   $as_echo_n "(cached) " >&6
5146 else
5147   if test -z "$GREP"; then
5148   ac_path_GREP_found=false
5149   # Loop through the user's path and test for each of PROGNAME-LIST
5150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5152 do
5153   IFS=$as_save_IFS
5154   test -z "$as_dir" && as_dir=.
5155     for ac_prog in grep ggrep; do
5156     for ac_exec_ext in '' $ac_executable_extensions; do
5157       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5158       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5159 # Check for GNU ac_path_GREP and select it if it is found.
5160   # Check for GNU $ac_path_GREP
5161 case `"$ac_path_GREP" --version 2>&1` in
5162 *GNU*)
5163   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5164 *)
5165   ac_count=0
5166   $as_echo_n 0123456789 >"conftest.in"
5167   while :
5168   do
5169     cat "conftest.in" "conftest.in" >"conftest.tmp"
5170     mv "conftest.tmp" "conftest.in"
5171     cp "conftest.in" "conftest.nl"
5172     $as_echo 'GREP' >> "conftest.nl"
5173     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5174     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5175     as_fn_arith $ac_count + 1 && ac_count=$as_val
5176     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5177       # Best one so far, save it but keep looking for a better one
5178       ac_cv_path_GREP="$ac_path_GREP"
5179       ac_path_GREP_max=$ac_count
5180     fi
5181     # 10*(2^10) chars as input seems more than enough
5182     test $ac_count -gt 10 && break
5183   done
5184   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5185 esac
5186
5187       $ac_path_GREP_found && break 3
5188     done
5189   done
5190   done
5191 IFS=$as_save_IFS
5192   if test -z "$ac_cv_path_GREP"; then
5193     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5194   fi
5195 else
5196   ac_cv_path_GREP=$GREP
5197 fi
5198
5199 fi
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5201 $as_echo "$ac_cv_path_GREP" >&6; }
5202  GREP="$ac_cv_path_GREP"
5203
5204
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5206 $as_echo_n "checking for egrep... " >&6; }
5207 if test "${ac_cv_path_EGREP+set}" = set; then :
5208   $as_echo_n "(cached) " >&6
5209 else
5210   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5211    then ac_cv_path_EGREP="$GREP -E"
5212    else
5213      if test -z "$EGREP"; then
5214   ac_path_EGREP_found=false
5215   # Loop through the user's path and test for each of PROGNAME-LIST
5216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5218 do
5219   IFS=$as_save_IFS
5220   test -z "$as_dir" && as_dir=.
5221     for ac_prog in egrep; do
5222     for ac_exec_ext in '' $ac_executable_extensions; do
5223       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5224       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5225 # Check for GNU ac_path_EGREP and select it if it is found.
5226   # Check for GNU $ac_path_EGREP
5227 case `"$ac_path_EGREP" --version 2>&1` in
5228 *GNU*)
5229   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5230 *)
5231   ac_count=0
5232   $as_echo_n 0123456789 >"conftest.in"
5233   while :
5234   do
5235     cat "conftest.in" "conftest.in" >"conftest.tmp"
5236     mv "conftest.tmp" "conftest.in"
5237     cp "conftest.in" "conftest.nl"
5238     $as_echo 'EGREP' >> "conftest.nl"
5239     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5240     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5241     as_fn_arith $ac_count + 1 && ac_count=$as_val
5242     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5243       # Best one so far, save it but keep looking for a better one
5244       ac_cv_path_EGREP="$ac_path_EGREP"
5245       ac_path_EGREP_max=$ac_count
5246     fi
5247     # 10*(2^10) chars as input seems more than enough
5248     test $ac_count -gt 10 && break
5249   done
5250   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5251 esac
5252
5253       $ac_path_EGREP_found && break 3
5254     done
5255   done
5256   done
5257 IFS=$as_save_IFS
5258   if test -z "$ac_cv_path_EGREP"; then
5259     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5260   fi
5261 else
5262   ac_cv_path_EGREP=$EGREP
5263 fi
5264
5265    fi
5266 fi
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5268 $as_echo "$ac_cv_path_EGREP" >&6; }
5269  EGREP="$ac_cv_path_EGREP"
5270
5271
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5273 $as_echo_n "checking for fgrep... " >&6; }
5274 if test "${ac_cv_path_FGREP+set}" = set; then :
5275   $as_echo_n "(cached) " >&6
5276 else
5277   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5278    then ac_cv_path_FGREP="$GREP -F"
5279    else
5280      if test -z "$FGREP"; then
5281   ac_path_FGREP_found=false
5282   # Loop through the user's path and test for each of PROGNAME-LIST
5283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5285 do
5286   IFS=$as_save_IFS
5287   test -z "$as_dir" && as_dir=.
5288     for ac_prog in fgrep; do
5289     for ac_exec_ext in '' $ac_executable_extensions; do
5290       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5291       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5292 # Check for GNU ac_path_FGREP and select it if it is found.
5293   # Check for GNU $ac_path_FGREP
5294 case `"$ac_path_FGREP" --version 2>&1` in
5295 *GNU*)
5296   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5297 *)
5298   ac_count=0
5299   $as_echo_n 0123456789 >"conftest.in"
5300   while :
5301   do
5302     cat "conftest.in" "conftest.in" >"conftest.tmp"
5303     mv "conftest.tmp" "conftest.in"
5304     cp "conftest.in" "conftest.nl"
5305     $as_echo 'FGREP' >> "conftest.nl"
5306     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5307     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5308     as_fn_arith $ac_count + 1 && ac_count=$as_val
5309     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5310       # Best one so far, save it but keep looking for a better one
5311       ac_cv_path_FGREP="$ac_path_FGREP"
5312       ac_path_FGREP_max=$ac_count
5313     fi
5314     # 10*(2^10) chars as input seems more than enough
5315     test $ac_count -gt 10 && break
5316   done
5317   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5318 esac
5319
5320       $ac_path_FGREP_found && break 3
5321     done
5322   done
5323   done
5324 IFS=$as_save_IFS
5325   if test -z "$ac_cv_path_FGREP"; then
5326     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5327   fi
5328 else
5329   ac_cv_path_FGREP=$FGREP
5330 fi
5331
5332    fi
5333 fi
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5335 $as_echo "$ac_cv_path_FGREP" >&6; }
5336  FGREP="$ac_cv_path_FGREP"
5337
5338
5339 test -z "$GREP" && GREP=grep
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359 # Check whether --with-gnu-ld was given.
5360 if test "${with_gnu_ld+set}" = set; then :
5361   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5362 else
5363   with_gnu_ld=no
5364 fi
5365
5366 ac_prog=ld
5367 if test "$GCC" = yes; then
5368   # Check if gcc -print-prog-name=ld gives a path.
5369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5370 $as_echo_n "checking for ld used by $CC... " >&6; }
5371   case $host in
5372   *-*-mingw*)
5373     # gcc leaves a trailing carriage return which upsets mingw
5374     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5375   *)
5376     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5377   esac
5378   case $ac_prog in
5379     # Accept absolute paths.
5380     [\\/]* | ?:[\\/]*)
5381       re_direlt='/[^/][^/]*/\.\./'
5382       # Canonicalize the pathname of ld
5383       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5384       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5385         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5386       done
5387       test -z "$LD" && LD="$ac_prog"
5388       ;;
5389   "")
5390     # If it fails, then pretend we aren't using GCC.
5391     ac_prog=ld
5392     ;;
5393   *)
5394     # If it is relative, then search for the first ld in PATH.
5395     with_gnu_ld=unknown
5396     ;;
5397   esac
5398 elif test "$with_gnu_ld" = yes; then
5399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5400 $as_echo_n "checking for GNU ld... " >&6; }
5401 else
5402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5403 $as_echo_n "checking for non-GNU ld... " >&6; }
5404 fi
5405 if test "${lt_cv_path_LD+set}" = set; then :
5406   $as_echo_n "(cached) " >&6
5407 else
5408   if test -z "$LD"; then
5409   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5410   for ac_dir in $PATH; do
5411     IFS="$lt_save_ifs"
5412     test -z "$ac_dir" && ac_dir=.
5413     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5414       lt_cv_path_LD="$ac_dir/$ac_prog"
5415       # Check to see if the program is GNU ld.  I'd rather use --version,
5416       # but apparently some variants of GNU ld only accept -v.
5417       # Break only if it was the GNU/non-GNU ld that we prefer.
5418       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5419       *GNU* | *'with BFD'*)
5420         test "$with_gnu_ld" != no && break
5421         ;;
5422       *)
5423         test "$with_gnu_ld" != yes && break
5424         ;;
5425       esac
5426     fi
5427   done
5428   IFS="$lt_save_ifs"
5429 else
5430   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5431 fi
5432 fi
5433
5434 LD="$lt_cv_path_LD"
5435 if test -n "$LD"; then
5436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5437 $as_echo "$LD" >&6; }
5438 else
5439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5441 fi
5442 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5444 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5445 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5446   $as_echo_n "(cached) " >&6
5447 else
5448   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5449 case `$LD -v 2>&1 </dev/null` in
5450 *GNU* | *'with BFD'*)
5451   lt_cv_prog_gnu_ld=yes
5452   ;;
5453 *)
5454   lt_cv_prog_gnu_ld=no
5455   ;;
5456 esac
5457 fi
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5459 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5460 with_gnu_ld=$lt_cv_prog_gnu_ld
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5471 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5472 if test "${lt_cv_path_NM+set}" = set; then :
5473   $as_echo_n "(cached) " >&6
5474 else
5475   if test -n "$NM"; then
5476   # Let the user override the test.
5477   lt_cv_path_NM="$NM"
5478 else
5479   lt_nm_to_check="${ac_tool_prefix}nm"
5480   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5481     lt_nm_to_check="$lt_nm_to_check nm"
5482   fi
5483   for lt_tmp_nm in $lt_nm_to_check; do
5484     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5485     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5486       IFS="$lt_save_ifs"
5487       test -z "$ac_dir" && ac_dir=.
5488       tmp_nm="$ac_dir/$lt_tmp_nm"
5489       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5490         # Check to see if the nm accepts a BSD-compat flag.
5491         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5492         #   nm: unknown option "B" ignored
5493         # Tru64's nm complains that /dev/null is an invalid object file
5494         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5495         */dev/null* | *'Invalid file or object type'*)
5496           lt_cv_path_NM="$tmp_nm -B"
5497           break
5498           ;;
5499         *)
5500           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5501           */dev/null*)
5502             lt_cv_path_NM="$tmp_nm -p"
5503             break
5504             ;;
5505           *)
5506             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5507             continue # so that we can try to find one that supports BSD flags
5508             ;;
5509           esac
5510           ;;
5511         esac
5512       fi
5513     done
5514     IFS="$lt_save_ifs"
5515   done
5516   : ${lt_cv_path_NM=no}
5517 fi
5518 fi
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5520 $as_echo "$lt_cv_path_NM" >&6; }
5521 if test "$lt_cv_path_NM" != "no"; then
5522   NM="$lt_cv_path_NM"
5523 else
5524   # Didn't find any BSD compatible name lister, look for dumpbin.
5525   if test -n "$ac_tool_prefix"; then
5526   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5527   do
5528     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5533   $as_echo_n "(cached) " >&6
5534 else
5535   if test -n "$DUMPBIN"; then
5536   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5537 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5540 do
5541   IFS=$as_save_IFS
5542   test -z "$as_dir" && as_dir=.
5543     for ac_exec_ext in '' $ac_executable_extensions; do
5544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5545     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547     break 2
5548   fi
5549 done
5550   done
5551 IFS=$as_save_IFS
5552
5553 fi
5554 fi
5555 DUMPBIN=$ac_cv_prog_DUMPBIN
5556 if test -n "$DUMPBIN"; then
5557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5558 $as_echo "$DUMPBIN" >&6; }
5559 else
5560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5562 fi
5563
5564
5565     test -n "$DUMPBIN" && break
5566   done
5567 fi
5568 if test -z "$DUMPBIN"; then
5569   ac_ct_DUMPBIN=$DUMPBIN
5570   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5571 do
5572   # Extract the first word of "$ac_prog", so it can be a program name with args.
5573 set dummy $ac_prog; ac_word=$2
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5577   $as_echo_n "(cached) " >&6
5578 else
5579   if test -n "$ac_ct_DUMPBIN"; then
5580   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5581 else
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH
5584 do
5585   IFS=$as_save_IFS
5586   test -z "$as_dir" && as_dir=.
5587     for ac_exec_ext in '' $ac_executable_extensions; do
5588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5589     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591     break 2
5592   fi
5593 done
5594   done
5595 IFS=$as_save_IFS
5596
5597 fi
5598 fi
5599 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5600 if test -n "$ac_ct_DUMPBIN"; then
5601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5602 $as_echo "$ac_ct_DUMPBIN" >&6; }
5603 else
5604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 $as_echo "no" >&6; }
5606 fi
5607
5608
5609   test -n "$ac_ct_DUMPBIN" && break
5610 done
5611
5612   if test "x$ac_ct_DUMPBIN" = x; then
5613     DUMPBIN=":"
5614   else
5615     case $cross_compiling:$ac_tool_warned in
5616 yes:)
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5619 ac_tool_warned=yes ;;
5620 esac
5621     DUMPBIN=$ac_ct_DUMPBIN
5622   fi
5623 fi
5624
5625
5626   if test "$DUMPBIN" != ":"; then
5627     NM="$DUMPBIN"
5628   fi
5629 fi
5630 test -z "$NM" && NM=nm
5631
5632
5633
5634
5635
5636
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5638 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5639 if test "${lt_cv_nm_interface+set}" = set; then :
5640   $as_echo_n "(cached) " >&6
5641 else
5642   lt_cv_nm_interface="BSD nm"
5643   echo "int some_variable = 0;" > conftest.$ac_ext
5644   (eval echo "\"\$as_me:5644: $ac_compile\"" >&5)
5645   (eval "$ac_compile" 2>conftest.err)
5646   cat conftest.err >&5
5647   (eval echo "\"\$as_me:5647: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5648   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5649   cat conftest.err >&5
5650   (eval echo "\"\$as_me:5650: output\"" >&5)
5651   cat conftest.out >&5
5652   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5653     lt_cv_nm_interface="MS dumpbin"
5654   fi
5655   rm -f conftest*
5656 fi
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5658 $as_echo "$lt_cv_nm_interface" >&6; }
5659
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5661 $as_echo_n "checking whether ln -s works... " >&6; }
5662 LN_S=$as_ln_s
5663 if test "$LN_S" = "ln -s"; then
5664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5665 $as_echo "yes" >&6; }
5666 else
5667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5668 $as_echo "no, using $LN_S" >&6; }
5669 fi
5670
5671 # find the maximum length of command line arguments
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5673 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5674 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5675   $as_echo_n "(cached) " >&6
5676 else
5677     i=0
5678   teststring="ABCD"
5679
5680   case $build_os in
5681   msdosdjgpp*)
5682     # On DJGPP, this test can blow up pretty badly due to problems in libc
5683     # (any single argument exceeding 2000 bytes causes a buffer overrun
5684     # during glob expansion).  Even if it were fixed, the result of this
5685     # check would be larger than it should be.
5686     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5687     ;;
5688
5689   gnu*)
5690     # Under GNU Hurd, this test is not required because there is
5691     # no limit to the length of command line arguments.
5692     # Libtool will interpret -1 as no limit whatsoever
5693     lt_cv_sys_max_cmd_len=-1;
5694     ;;
5695
5696   cygwin* | mingw* | cegcc*)
5697     # On Win9x/ME, this test blows up -- it succeeds, but takes
5698     # about 5 minutes as the teststring grows exponentially.
5699     # Worse, since 9x/ME are not pre-emptively multitasking,
5700     # you end up with a "frozen" computer, even though with patience
5701     # the test eventually succeeds (with a max line length of 256k).
5702     # Instead, let's just punt: use the minimum linelength reported by
5703     # all of the supported platforms: 8192 (on NT/2K/XP).
5704     lt_cv_sys_max_cmd_len=8192;
5705     ;;
5706
5707   amigaos*)
5708     # On AmigaOS with pdksh, this test takes hours, literally.
5709     # So we just punt and use a minimum line length of 8192.
5710     lt_cv_sys_max_cmd_len=8192;
5711     ;;
5712
5713   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5714     # This has been around since 386BSD, at least.  Likely further.
5715     if test -x /sbin/sysctl; then
5716       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5717     elif test -x /usr/sbin/sysctl; then
5718       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5719     else
5720       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5721     fi
5722     # And add a safety zone
5723     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5724     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5725     ;;
5726
5727   interix*)
5728     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5729     lt_cv_sys_max_cmd_len=196608
5730     ;;
5731
5732   osf*)
5733     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5734     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5735     # nice to cause kernel panics so lets avoid the loop below.
5736     # First set a reasonable default.
5737     lt_cv_sys_max_cmd_len=16384
5738     #
5739     if test -x /sbin/sysconfig; then
5740       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5741         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5742       esac
5743     fi
5744     ;;
5745   sco3.2v5*)
5746     lt_cv_sys_max_cmd_len=102400
5747     ;;
5748   sysv5* | sco5v6* | sysv4.2uw2*)
5749     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5750     if test -n "$kargmax"; then
5751       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5752     else
5753       lt_cv_sys_max_cmd_len=32768
5754     fi
5755     ;;
5756   *)
5757     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5758     if test -n "$lt_cv_sys_max_cmd_len"; then
5759       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5760       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5761     else
5762       # Make teststring a little bigger before we do anything with it.
5763       # a 1K string should be a reasonable start.
5764       for i in 1 2 3 4 5 6 7 8 ; do
5765         teststring=$teststring$teststring
5766       done
5767       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5768       # If test is not a shell built-in, we'll probably end up computing a
5769       # maximum length that is only half of the actual maximum length, but
5770       # we can't tell.
5771       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5772                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5773               test $i != 17 # 1/2 MB should be enough
5774       do
5775         i=`expr $i + 1`
5776         teststring=$teststring$teststring
5777       done
5778       # Only check the string length outside the loop.
5779       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5780       teststring=
5781       # Add a significant safety factor because C++ compilers can tack on
5782       # massive amounts of additional arguments before passing them to the
5783       # linker.  It appears as though 1/2 is a usable value.
5784       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5785     fi
5786     ;;
5787   esac
5788
5789 fi
5790
5791 if test -n $lt_cv_sys_max_cmd_len ; then
5792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5793 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5794 else
5795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5796 $as_echo "none" >&6; }
5797 fi
5798 max_cmd_len=$lt_cv_sys_max_cmd_len
5799
5800
5801
5802
5803
5804
5805 : ${CP="cp -f"}
5806 : ${MV="mv -f"}
5807 : ${RM="rm -f"}
5808
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5810 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5811 # Try some XSI features
5812 xsi_shell=no
5813 ( _lt_dummy="a/b/c"
5814   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5815       = c,a/b,, \
5816     && eval 'test $(( 1 + 1 )) -eq 2 \
5817     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5818   && xsi_shell=yes
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5820 $as_echo "$xsi_shell" >&6; }
5821
5822
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5824 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5825 lt_shell_append=no
5826 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5827     >/dev/null 2>&1 \
5828   && lt_shell_append=yes
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5830 $as_echo "$lt_shell_append" >&6; }
5831
5832
5833 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5834   lt_unset=unset
5835 else
5836   lt_unset=false
5837 fi
5838
5839
5840
5841
5842
5843 # test EBCDIC or ASCII
5844 case `echo X|tr X '\101'` in
5845  A) # ASCII based system
5846     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5847   lt_SP2NL='tr \040 \012'
5848   lt_NL2SP='tr \015\012 \040\040'
5849   ;;
5850  *) # EBCDIC based system
5851   lt_SP2NL='tr \100 \n'
5852   lt_NL2SP='tr \r\n \100\100'
5853   ;;
5854 esac
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5865 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5866 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5867   $as_echo_n "(cached) " >&6
5868 else
5869   lt_cv_ld_reload_flag='-r'
5870 fi
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5872 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5873 reload_flag=$lt_cv_ld_reload_flag
5874 case $reload_flag in
5875 "" | " "*) ;;
5876 *) reload_flag=" $reload_flag" ;;
5877 esac
5878 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5879 case $host_os in
5880   darwin*)
5881     if test "$GCC" = yes; then
5882       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5883     else
5884       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5885     fi
5886     ;;
5887 esac
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897 if test -n "$ac_tool_prefix"; then
5898   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5899 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901 $as_echo_n "checking for $ac_word... " >&6; }
5902 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5903   $as_echo_n "(cached) " >&6
5904 else
5905   if test -n "$OBJDUMP"; then
5906   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5907 else
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH
5910 do
5911   IFS=$as_save_IFS
5912   test -z "$as_dir" && as_dir=.
5913     for ac_exec_ext in '' $ac_executable_extensions; do
5914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5915     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5917     break 2
5918   fi
5919 done
5920   done
5921 IFS=$as_save_IFS
5922
5923 fi
5924 fi
5925 OBJDUMP=$ac_cv_prog_OBJDUMP
5926 if test -n "$OBJDUMP"; then
5927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5928 $as_echo "$OBJDUMP" >&6; }
5929 else
5930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931 $as_echo "no" >&6; }
5932 fi
5933
5934
5935 fi
5936 if test -z "$ac_cv_prog_OBJDUMP"; then
5937   ac_ct_OBJDUMP=$OBJDUMP
5938   # Extract the first word of "objdump", so it can be a program name with args.
5939 set dummy objdump; ac_word=$2
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5941 $as_echo_n "checking for $ac_word... " >&6; }
5942 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5943   $as_echo_n "(cached) " >&6
5944 else
5945   if test -n "$ac_ct_OBJDUMP"; then
5946   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5950 do
5951   IFS=$as_save_IFS
5952   test -z "$as_dir" && as_dir=.
5953     for ac_exec_ext in '' $ac_executable_extensions; do
5954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5955     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5957     break 2
5958   fi
5959 done
5960   done
5961 IFS=$as_save_IFS
5962
5963 fi
5964 fi
5965 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5966 if test -n "$ac_ct_OBJDUMP"; then
5967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5968 $as_echo "$ac_ct_OBJDUMP" >&6; }
5969 else
5970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971 $as_echo "no" >&6; }
5972 fi
5973
5974   if test "x$ac_ct_OBJDUMP" = x; then
5975     OBJDUMP="false"
5976   else
5977     case $cross_compiling:$ac_tool_warned in
5978 yes:)
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5981 ac_tool_warned=yes ;;
5982 esac
5983     OBJDUMP=$ac_ct_OBJDUMP
5984   fi
5985 else
5986   OBJDUMP="$ac_cv_prog_OBJDUMP"
5987 fi
5988
5989 test -z "$OBJDUMP" && OBJDUMP=objdump
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6000 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6001 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6002   $as_echo_n "(cached) " >&6
6003 else
6004   lt_cv_file_magic_cmd='$MAGIC_CMD'
6005 lt_cv_file_magic_test_file=
6006 lt_cv_deplibs_check_method='unknown'
6007 # Need to set the preceding variable on all platforms that support
6008 # interlibrary dependencies.
6009 # 'none' -- dependencies not supported.
6010 # `unknown' -- same as none, but documents that we really don't know.
6011 # 'pass_all' -- all dependencies passed with no checks.
6012 # 'test_compile' -- check by making test program.
6013 # 'file_magic [[regex]]' -- check by looking for files in library path
6014 # which responds to the $file_magic_cmd with a given extended regex.
6015 # If you have `file' or equivalent on your system and you're not sure
6016 # whether `pass_all' will *always* work, you probably want this one.
6017
6018 case $host_os in
6019 aix[4-9]*)
6020   lt_cv_deplibs_check_method=pass_all
6021   ;;
6022
6023 beos*)
6024   lt_cv_deplibs_check_method=pass_all
6025   ;;
6026
6027 bsdi[45]*)
6028   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6029   lt_cv_file_magic_cmd='/usr/bin/file -L'
6030   lt_cv_file_magic_test_file=/shlib/libc.so
6031   ;;
6032
6033 cygwin*)
6034   # func_win32_libid is a shell function defined in ltmain.sh
6035   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6036   lt_cv_file_magic_cmd='func_win32_libid'
6037   ;;
6038
6039 mingw* | pw32*)
6040   # Base MSYS/MinGW do not provide the 'file' command needed by
6041   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6042   # unless we find 'file', for example because we are cross-compiling.
6043   if ( file / ) >/dev/null 2>&1; then
6044     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6045     lt_cv_file_magic_cmd='func_win32_libid'
6046   else
6047     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6048     lt_cv_file_magic_cmd='$OBJDUMP -f'
6049   fi
6050   ;;
6051
6052 cegcc)
6053   # use the weaker test based on 'objdump'. See mingw*.
6054   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6055   lt_cv_file_magic_cmd='$OBJDUMP -f'
6056   ;;
6057
6058 darwin* | rhapsody*)
6059   lt_cv_deplibs_check_method=pass_all
6060   ;;
6061
6062 freebsd* | dragonfly*)
6063   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6064     case $host_cpu in
6065     i*86 )
6066       # Not sure whether the presence of OpenBSD here was a mistake.
6067       # Let's accept both of them until this is cleared up.
6068       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6069       lt_cv_file_magic_cmd=/usr/bin/file
6070       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6071       ;;
6072     esac
6073   else
6074     lt_cv_deplibs_check_method=pass_all
6075   fi
6076   ;;
6077
6078 gnu*)
6079   lt_cv_deplibs_check_method=pass_all
6080   ;;
6081
6082 hpux10.20* | hpux11*)
6083   lt_cv_file_magic_cmd=/usr/bin/file
6084   case $host_cpu in
6085   ia64*)
6086     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6087     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6088     ;;
6089   hppa*64*)
6090     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]'
6091     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6092     ;;
6093   *)
6094     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6095     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6096     ;;
6097   esac
6098   ;;
6099
6100 interix[3-9]*)
6101   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6102   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6103   ;;
6104
6105 irix5* | irix6* | nonstopux*)
6106   case $LD in
6107   *-32|*"-32 ") libmagic=32-bit;;
6108   *-n32|*"-n32 ") libmagic=N32;;
6109   *-64|*"-64 ") libmagic=64-bit;;
6110   *) libmagic=never-match;;
6111   esac
6112   lt_cv_deplibs_check_method=pass_all
6113   ;;
6114
6115 # This must be Linux ELF.
6116 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6117   lt_cv_deplibs_check_method=pass_all
6118   ;;
6119
6120 netbsd* | netbsdelf*-gnu)
6121   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6122     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6123   else
6124     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6125   fi
6126   ;;
6127
6128 newos6*)
6129   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6130   lt_cv_file_magic_cmd=/usr/bin/file
6131   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6132   ;;
6133
6134 *nto* | *qnx*)
6135   lt_cv_deplibs_check_method=pass_all
6136   ;;
6137
6138 openbsd*)
6139   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6140     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6141   else
6142     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6143   fi
6144   ;;
6145
6146 osf3* | osf4* | osf5*)
6147   lt_cv_deplibs_check_method=pass_all
6148   ;;
6149
6150 rdos*)
6151   lt_cv_deplibs_check_method=pass_all
6152   ;;
6153
6154 solaris*)
6155   lt_cv_deplibs_check_method=pass_all
6156   ;;
6157
6158 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6159   lt_cv_deplibs_check_method=pass_all
6160   ;;
6161
6162 sysv4 | sysv4.3*)
6163   case $host_vendor in
6164   motorola)
6165     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]'
6166     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6167     ;;
6168   ncr)
6169     lt_cv_deplibs_check_method=pass_all
6170     ;;
6171   sequent)
6172     lt_cv_file_magic_cmd='/bin/file'
6173     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6174     ;;
6175   sni)
6176     lt_cv_file_magic_cmd='/bin/file'
6177     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6178     lt_cv_file_magic_test_file=/lib/libc.so
6179     ;;
6180   siemens)
6181     lt_cv_deplibs_check_method=pass_all
6182     ;;
6183   pc)
6184     lt_cv_deplibs_check_method=pass_all
6185     ;;
6186   esac
6187   ;;
6188
6189 tpf*)
6190   lt_cv_deplibs_check_method=pass_all
6191   ;;
6192 esac
6193
6194 fi
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6196 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6197 file_magic_cmd=$lt_cv_file_magic_cmd
6198 deplibs_check_method=$lt_cv_deplibs_check_method
6199 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212 if test -n "$ac_tool_prefix"; then
6213   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6214 set dummy ${ac_tool_prefix}ar; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if test "${ac_cv_prog_AR+set}" = set; then :
6218   $as_echo_n "(cached) " >&6
6219 else
6220   if test -n "$AR"; then
6221   ac_cv_prog_AR="$AR" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6225 do
6226   IFS=$as_save_IFS
6227   test -z "$as_dir" && as_dir=.
6228     for ac_exec_ext in '' $ac_executable_extensions; do
6229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6230     ac_cv_prog_AR="${ac_tool_prefix}ar"
6231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232     break 2
6233   fi
6234 done
6235   done
6236 IFS=$as_save_IFS
6237
6238 fi
6239 fi
6240 AR=$ac_cv_prog_AR
6241 if test -n "$AR"; then
6242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6243 $as_echo "$AR" >&6; }
6244 else
6245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6247 fi
6248
6249
6250 fi
6251 if test -z "$ac_cv_prog_AR"; then
6252   ac_ct_AR=$AR
6253   # Extract the first word of "ar", so it can be a program name with args.
6254 set dummy ar; ac_word=$2
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256 $as_echo_n "checking for $ac_word... " >&6; }
6257 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6258   $as_echo_n "(cached) " >&6
6259 else
6260   if test -n "$ac_ct_AR"; then
6261   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266   IFS=$as_save_IFS
6267   test -z "$as_dir" && as_dir=.
6268     for ac_exec_ext in '' $ac_executable_extensions; do
6269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6270     ac_cv_prog_ac_ct_AR="ar"
6271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272     break 2
6273   fi
6274 done
6275   done
6276 IFS=$as_save_IFS
6277
6278 fi
6279 fi
6280 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6281 if test -n "$ac_ct_AR"; then
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6283 $as_echo "$ac_ct_AR" >&6; }
6284 else
6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6287 fi
6288
6289   if test "x$ac_ct_AR" = x; then
6290     AR="false"
6291   else
6292     case $cross_compiling:$ac_tool_warned in
6293 yes:)
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6296 ac_tool_warned=yes ;;
6297 esac
6298     AR=$ac_ct_AR
6299   fi
6300 else
6301   AR="$ac_cv_prog_AR"
6302 fi
6303
6304 test -z "$AR" && AR=ar
6305 test -z "$AR_FLAGS" && AR_FLAGS=cru
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317 if test -n "$ac_tool_prefix"; then
6318   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6319 set dummy ${ac_tool_prefix}strip; ac_word=$2
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321 $as_echo_n "checking for $ac_word... " >&6; }
6322 if test "${ac_cv_prog_STRIP+set}" = set; then :
6323   $as_echo_n "(cached) " >&6
6324 else
6325   if test -n "$STRIP"; then
6326   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6327 else
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6330 do
6331   IFS=$as_save_IFS
6332   test -z "$as_dir" && as_dir=.
6333     for ac_exec_ext in '' $ac_executable_extensions; do
6334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6335     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337     break 2
6338   fi
6339 done
6340   done
6341 IFS=$as_save_IFS
6342
6343 fi
6344 fi
6345 STRIP=$ac_cv_prog_STRIP
6346 if test -n "$STRIP"; then
6347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6348 $as_echo "$STRIP" >&6; }
6349 else
6350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351 $as_echo "no" >&6; }
6352 fi
6353
6354
6355 fi
6356 if test -z "$ac_cv_prog_STRIP"; then
6357   ac_ct_STRIP=$STRIP
6358   # Extract the first word of "strip", so it can be a program name with args.
6359 set dummy strip; ac_word=$2
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361 $as_echo_n "checking for $ac_word... " >&6; }
6362 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6363   $as_echo_n "(cached) " >&6
6364 else
6365   if test -n "$ac_ct_STRIP"; then
6366   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6367 else
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6370 do
6371   IFS=$as_save_IFS
6372   test -z "$as_dir" && as_dir=.
6373     for ac_exec_ext in '' $ac_executable_extensions; do
6374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6375     ac_cv_prog_ac_ct_STRIP="strip"
6376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377     break 2
6378   fi
6379 done
6380   done
6381 IFS=$as_save_IFS
6382
6383 fi
6384 fi
6385 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6386 if test -n "$ac_ct_STRIP"; then
6387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6388 $as_echo "$ac_ct_STRIP" >&6; }
6389 else
6390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 $as_echo "no" >&6; }
6392 fi
6393
6394   if test "x$ac_ct_STRIP" = x; then
6395     STRIP=":"
6396   else
6397     case $cross_compiling:$ac_tool_warned in
6398 yes:)
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6401 ac_tool_warned=yes ;;
6402 esac
6403     STRIP=$ac_ct_STRIP
6404   fi
6405 else
6406   STRIP="$ac_cv_prog_STRIP"
6407 fi
6408
6409 test -z "$STRIP" && STRIP=:
6410
6411
6412
6413
6414
6415
6416 if test -n "$ac_tool_prefix"; then
6417   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6418 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6422   $as_echo_n "(cached) " >&6
6423 else
6424   if test -n "$RANLIB"; then
6425   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430   IFS=$as_save_IFS
6431   test -z "$as_dir" && as_dir=.
6432     for ac_exec_ext in '' $ac_executable_extensions; do
6433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436     break 2
6437   fi
6438 done
6439   done
6440 IFS=$as_save_IFS
6441
6442 fi
6443 fi
6444 RANLIB=$ac_cv_prog_RANLIB
6445 if test -n "$RANLIB"; then
6446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6447 $as_echo "$RANLIB" >&6; }
6448 else
6449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 $as_echo "no" >&6; }
6451 fi
6452
6453
6454 fi
6455 if test -z "$ac_cv_prog_RANLIB"; then
6456   ac_ct_RANLIB=$RANLIB
6457   # Extract the first word of "ranlib", so it can be a program name with args.
6458 set dummy ranlib; 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_ac_ct_RANLIB+set}" = set; then :
6462   $as_echo_n "(cached) " >&6
6463 else
6464   if test -n "$ac_ct_RANLIB"; then
6465   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_ac_ct_RANLIB="ranlib"
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 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6485 if test -n "$ac_ct_RANLIB"; then
6486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6487 $as_echo "$ac_ct_RANLIB" >&6; }
6488 else
6489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6491 fi
6492
6493   if test "x$ac_ct_RANLIB" = x; then
6494     RANLIB=":"
6495   else
6496     case $cross_compiling:$ac_tool_warned in
6497 yes:)
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6500 ac_tool_warned=yes ;;
6501 esac
6502     RANLIB=$ac_ct_RANLIB
6503   fi
6504 else
6505   RANLIB="$ac_cv_prog_RANLIB"
6506 fi
6507
6508 test -z "$RANLIB" && RANLIB=:
6509
6510
6511
6512
6513
6514
6515 # Determine commands to create old-style static archives.
6516 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6517 old_postinstall_cmds='chmod 644 $oldlib'
6518 old_postuninstall_cmds=
6519
6520 if test -n "$RANLIB"; then
6521   case $host_os in
6522   openbsd*)
6523     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6524     ;;
6525   *)
6526     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6527     ;;
6528   esac
6529   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6530 fi
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565 # If no C compiler was specified, use CC.
6566 LTCC=${LTCC-"$CC"}
6567
6568 # If no C compiler flags were specified, use CFLAGS.
6569 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6570
6571 # Allow CC to be a program name with arguments.
6572 compiler=$CC
6573
6574
6575 # Check for command to grab the raw symbol name followed by C symbol from nm.
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6577 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6578 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6579   $as_echo_n "(cached) " >&6
6580 else
6581
6582 # These are sane defaults that work on at least a few old systems.
6583 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6584
6585 # Character class describing NM global symbol codes.
6586 symcode='[BCDEGRST]'
6587
6588 # Regexp to match symbols that can be accessed directly from C.
6589 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6590
6591 # Define system-specific variables.
6592 case $host_os in
6593 aix*)
6594   symcode='[BCDT]'
6595   ;;
6596 cygwin* | mingw* | pw32* | cegcc*)
6597   symcode='[ABCDGISTW]'
6598   ;;
6599 hpux*)
6600   if test "$host_cpu" = ia64; then
6601     symcode='[ABCDEGRST]'
6602   fi
6603   ;;
6604 irix* | nonstopux*)
6605   symcode='[BCDEGRST]'
6606   ;;
6607 osf*)
6608   symcode='[BCDEGQRST]'
6609   ;;
6610 solaris*)
6611   symcode='[BDRT]'
6612   ;;
6613 sco3.2v5*)
6614   symcode='[DT]'
6615   ;;
6616 sysv4.2uw2*)
6617   symcode='[DT]'
6618   ;;
6619 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6620   symcode='[ABDT]'
6621   ;;
6622 sysv4)
6623   symcode='[DFNSTU]'
6624   ;;
6625 esac
6626
6627 # If we're using GNU nm, then use its standard symbol codes.
6628 case `$NM -V 2>&1` in
6629 *GNU* | *'with BFD'*)
6630   symcode='[ABCDGIRSTW]' ;;
6631 esac
6632
6633 # Transform an extracted symbol line into a proper C declaration.
6634 # Some systems (esp. on ia64) link data and code symbols differently,
6635 # so use this general approach.
6636 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6637
6638 # Transform an extracted symbol line into symbol name and symbol address
6639 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6640 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'"
6641
6642 # Handle CRLF in mingw tool chain
6643 opt_cr=
6644 case $build_os in
6645 mingw*)
6646   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6647   ;;
6648 esac
6649
6650 # Try without a prefix underscore, then with it.
6651 for ac_symprfx in "" "_"; do
6652
6653   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6654   symxfrm="\\1 $ac_symprfx\\2 \\2"
6655
6656   # Write the raw and C identifiers.
6657   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6658     # Fake it for dumpbin and say T for any non-static function
6659     # and D for any global variable.
6660     # Also find C++ and __fastcall symbols from MSVC++,
6661     # which start with @ or ?.
6662     lt_cv_sys_global_symbol_pipe="$AWK '"\
6663 "     {last_section=section; section=\$ 3};"\
6664 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6665 "     \$ 0!~/External *\|/{next};"\
6666 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6667 "     {if(hide[section]) next};"\
6668 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6669 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6670 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6671 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6672 "     ' prfx=^$ac_symprfx"
6673   else
6674     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6675   fi
6676
6677   # Check to see that the pipe works correctly.
6678   pipe_works=no
6679
6680   rm -f conftest*
6681   cat > conftest.$ac_ext <<_LT_EOF
6682 #ifdef __cplusplus
6683 extern "C" {
6684 #endif
6685 char nm_test_var;
6686 void nm_test_func(void);
6687 void nm_test_func(void){}
6688 #ifdef __cplusplus
6689 }
6690 #endif
6691 int main(){nm_test_var='a';nm_test_func();return(0);}
6692 _LT_EOF
6693
6694   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6695   (eval $ac_compile) 2>&5
6696   ac_status=$?
6697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6698   test $ac_status = 0; }; then
6699     # Now try to grab the symbols.
6700     nlist=conftest.nm
6701     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6702   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6703   ac_status=$?
6704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6705   test $ac_status = 0; } && test -s "$nlist"; then
6706       # Try sorting and uniquifying the output.
6707       if sort "$nlist" | uniq > "$nlist"T; then
6708         mv -f "$nlist"T "$nlist"
6709       else
6710         rm -f "$nlist"T
6711       fi
6712
6713       # Make sure that we snagged all the symbols we need.
6714       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6715         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6716           cat <<_LT_EOF > conftest.$ac_ext
6717 #ifdef __cplusplus
6718 extern "C" {
6719 #endif
6720
6721 _LT_EOF
6722           # Now generate the symbol file.
6723           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6724
6725           cat <<_LT_EOF >> conftest.$ac_ext
6726
6727 /* The mapping between symbol names and symbols.  */
6728 const struct {
6729   const char *name;
6730   void       *address;
6731 }
6732 lt__PROGRAM__LTX_preloaded_symbols[] =
6733 {
6734   { "@PROGRAM@", (void *) 0 },
6735 _LT_EOF
6736           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6737           cat <<\_LT_EOF >> conftest.$ac_ext
6738   {0, (void *) 0}
6739 };
6740
6741 /* This works around a problem in FreeBSD linker */
6742 #ifdef FREEBSD_WORKAROUND
6743 static const void *lt_preloaded_setup() {
6744   return lt__PROGRAM__LTX_preloaded_symbols;
6745 }
6746 #endif
6747
6748 #ifdef __cplusplus
6749 }
6750 #endif
6751 _LT_EOF
6752           # Now try linking the two files.
6753           mv conftest.$ac_objext conftstm.$ac_objext
6754           lt_save_LIBS="$LIBS"
6755           lt_save_CFLAGS="$CFLAGS"
6756           LIBS="conftstm.$ac_objext"
6757           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6758           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6759   (eval $ac_link) 2>&5
6760   ac_status=$?
6761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6762   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6763             pipe_works=yes
6764           fi
6765           LIBS="$lt_save_LIBS"
6766           CFLAGS="$lt_save_CFLAGS"
6767         else
6768           echo "cannot find nm_test_func in $nlist" >&5
6769         fi
6770       else
6771         echo "cannot find nm_test_var in $nlist" >&5
6772       fi
6773     else
6774       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6775     fi
6776   else
6777     echo "$progname: failed program was:" >&5
6778     cat conftest.$ac_ext >&5
6779   fi
6780   rm -rf conftest* conftst*
6781
6782   # Do not use the global_symbol_pipe unless it works.
6783   if test "$pipe_works" = yes; then
6784     break
6785   else
6786     lt_cv_sys_global_symbol_pipe=
6787   fi
6788 done
6789
6790 fi
6791
6792 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6793   lt_cv_sys_global_symbol_to_cdecl=
6794 fi
6795 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6797 $as_echo "failed" >&6; }
6798 else
6799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6800 $as_echo "ok" >&6; }
6801 fi
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825 # Check whether --enable-libtool-lock was given.
6826 if test "${enable_libtool_lock+set}" = set; then :
6827   enableval=$enable_libtool_lock;
6828 fi
6829
6830 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6831
6832 # Some flags need to be propagated to the compiler or linker for good
6833 # libtool support.
6834 case $host in
6835 ia64-*-hpux*)
6836   # Find out which ABI we are using.
6837   echo 'int i;' > conftest.$ac_ext
6838   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6839   (eval $ac_compile) 2>&5
6840   ac_status=$?
6841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6842   test $ac_status = 0; }; then
6843     case `/usr/bin/file conftest.$ac_objext` in
6844       *ELF-32*)
6845         HPUX_IA64_MODE="32"
6846         ;;
6847       *ELF-64*)
6848         HPUX_IA64_MODE="64"
6849         ;;
6850     esac
6851   fi
6852   rm -rf conftest*
6853   ;;
6854 *-*-irix6*)
6855   # Find out which ABI we are using.
6856   echo '#line 6856 "configure"' > conftest.$ac_ext
6857   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6858   (eval $ac_compile) 2>&5
6859   ac_status=$?
6860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6861   test $ac_status = 0; }; then
6862     if test "$lt_cv_prog_gnu_ld" = yes; then
6863       case `/usr/bin/file conftest.$ac_objext` in
6864         *32-bit*)
6865           LD="${LD-ld} -melf32bsmip"
6866           ;;
6867         *N32*)
6868           LD="${LD-ld} -melf32bmipn32"
6869           ;;
6870         *64-bit*)
6871           LD="${LD-ld} -melf64bmip"
6872         ;;
6873       esac
6874     else
6875       case `/usr/bin/file conftest.$ac_objext` in
6876         *32-bit*)
6877           LD="${LD-ld} -32"
6878           ;;
6879         *N32*)
6880           LD="${LD-ld} -n32"
6881           ;;
6882         *64-bit*)
6883           LD="${LD-ld} -64"
6884           ;;
6885       esac
6886     fi
6887   fi
6888   rm -rf conftest*
6889   ;;
6890
6891 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6892 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6893   # Find out which ABI we are using.
6894   echo 'int i;' > conftest.$ac_ext
6895   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6896   (eval $ac_compile) 2>&5
6897   ac_status=$?
6898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6899   test $ac_status = 0; }; then
6900     case `/usr/bin/file conftest.o` in
6901       *32-bit*)
6902         case $host in
6903           x86_64-*kfreebsd*-gnu)
6904             LD="${LD-ld} -m elf_i386_fbsd"
6905             ;;
6906           x86_64-*linux*)
6907             LD="${LD-ld} -m elf_i386"
6908             ;;
6909           ppc64-*linux*|powerpc64-*linux*)
6910             LD="${LD-ld} -m elf32ppclinux"
6911             ;;
6912           s390x-*linux*)
6913             LD="${LD-ld} -m elf_s390"
6914             ;;
6915           sparc64-*linux*)
6916             LD="${LD-ld} -m elf32_sparc"
6917             ;;
6918         esac
6919         ;;
6920       *64-bit*)
6921         case $host in
6922           x86_64-*kfreebsd*-gnu)
6923             LD="${LD-ld} -m elf_x86_64_fbsd"
6924             ;;
6925           x86_64-*linux*)
6926             LD="${LD-ld} -m elf_x86_64"
6927             ;;
6928           ppc*-*linux*|powerpc*-*linux*)
6929             LD="${LD-ld} -m elf64ppc"
6930             ;;
6931           s390*-*linux*|s390*-*tpf*)
6932             LD="${LD-ld} -m elf64_s390"
6933             ;;
6934           sparc*-*linux*)
6935             LD="${LD-ld} -m elf64_sparc"
6936             ;;
6937         esac
6938         ;;
6939     esac
6940   fi
6941   rm -rf conftest*
6942   ;;
6943
6944 *-*-sco3.2v5*)
6945   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6946   SAVE_CFLAGS="$CFLAGS"
6947   CFLAGS="$CFLAGS -belf"
6948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6949 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6950 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6951   $as_echo_n "(cached) " >&6
6952 else
6953   ac_ext=c
6954 ac_cpp='$CPP $CPPFLAGS'
6955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6958
6959      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h.  */
6961
6962 int
6963 main ()
6964 {
6965
6966   ;
6967   return 0;
6968 }
6969 _ACEOF
6970 if ac_fn_c_try_link "$LINENO"; then :
6971   lt_cv_cc_needs_belf=yes
6972 else
6973   lt_cv_cc_needs_belf=no
6974 fi
6975 rm -f core conftest.err conftest.$ac_objext \
6976     conftest$ac_exeext conftest.$ac_ext
6977      ac_ext=c
6978 ac_cpp='$CPP $CPPFLAGS'
6979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6982
6983 fi
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6985 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6986   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6987     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6988     CFLAGS="$SAVE_CFLAGS"
6989   fi
6990   ;;
6991 sparc*-*solaris*)
6992   # Find out which ABI we are using.
6993   echo 'int i;' > conftest.$ac_ext
6994   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6995   (eval $ac_compile) 2>&5
6996   ac_status=$?
6997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6998   test $ac_status = 0; }; then
6999     case `/usr/bin/file conftest.o` in
7000     *64-bit*)
7001       case $lt_cv_prog_gnu_ld in
7002       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7003       *)
7004         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7005           LD="${LD-ld} -64"
7006         fi
7007         ;;
7008       esac
7009       ;;
7010     esac
7011   fi
7012   rm -rf conftest*
7013   ;;
7014 esac
7015
7016 need_locks="$enable_libtool_lock"
7017
7018
7019   case $host_os in
7020     rhapsody* | darwin*)
7021     if test -n "$ac_tool_prefix"; then
7022   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7023 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025 $as_echo_n "checking for $ac_word... " >&6; }
7026 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7027   $as_echo_n "(cached) " >&6
7028 else
7029   if test -n "$DSYMUTIL"; then
7030   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035   IFS=$as_save_IFS
7036   test -z "$as_dir" && as_dir=.
7037     for ac_exec_ext in '' $ac_executable_extensions; do
7038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7039     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041     break 2
7042   fi
7043 done
7044   done
7045 IFS=$as_save_IFS
7046
7047 fi
7048 fi
7049 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7050 if test -n "$DSYMUTIL"; then
7051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7052 $as_echo "$DSYMUTIL" >&6; }
7053 else
7054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 $as_echo "no" >&6; }
7056 fi
7057
7058
7059 fi
7060 if test -z "$ac_cv_prog_DSYMUTIL"; then
7061   ac_ct_DSYMUTIL=$DSYMUTIL
7062   # Extract the first word of "dsymutil", so it can be a program name with args.
7063 set dummy dsymutil; ac_word=$2
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065 $as_echo_n "checking for $ac_word... " >&6; }
7066 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7067   $as_echo_n "(cached) " >&6
7068 else
7069   if test -n "$ac_ct_DSYMUTIL"; then
7070   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7074 do
7075   IFS=$as_save_IFS
7076   test -z "$as_dir" && as_dir=.
7077     for ac_exec_ext in '' $ac_executable_extensions; do
7078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7079     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081     break 2
7082   fi
7083 done
7084   done
7085 IFS=$as_save_IFS
7086
7087 fi
7088 fi
7089 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7090 if test -n "$ac_ct_DSYMUTIL"; then
7091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7092 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7093 else
7094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095 $as_echo "no" >&6; }
7096 fi
7097
7098   if test "x$ac_ct_DSYMUTIL" = x; then
7099     DSYMUTIL=":"
7100   else
7101     case $cross_compiling:$ac_tool_warned in
7102 yes:)
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7105 ac_tool_warned=yes ;;
7106 esac
7107     DSYMUTIL=$ac_ct_DSYMUTIL
7108   fi
7109 else
7110   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7111 fi
7112
7113     if test -n "$ac_tool_prefix"; then
7114   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7115 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117 $as_echo_n "checking for $ac_word... " >&6; }
7118 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7119   $as_echo_n "(cached) " >&6
7120 else
7121   if test -n "$NMEDIT"; then
7122   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7123 else
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 for as_dir in $PATH
7126 do
7127   IFS=$as_save_IFS
7128   test -z "$as_dir" && as_dir=.
7129     for ac_exec_ext in '' $ac_executable_extensions; do
7130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7131     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133     break 2
7134   fi
7135 done
7136   done
7137 IFS=$as_save_IFS
7138
7139 fi
7140 fi
7141 NMEDIT=$ac_cv_prog_NMEDIT
7142 if test -n "$NMEDIT"; then
7143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7144 $as_echo "$NMEDIT" >&6; }
7145 else
7146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7148 fi
7149
7150
7151 fi
7152 if test -z "$ac_cv_prog_NMEDIT"; then
7153   ac_ct_NMEDIT=$NMEDIT
7154   # Extract the first word of "nmedit", so it can be a program name with args.
7155 set dummy nmedit; ac_word=$2
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157 $as_echo_n "checking for $ac_word... " >&6; }
7158 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7159   $as_echo_n "(cached) " >&6
7160 else
7161   if test -n "$ac_ct_NMEDIT"; then
7162   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7163 else
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7166 do
7167   IFS=$as_save_IFS
7168   test -z "$as_dir" && as_dir=.
7169     for ac_exec_ext in '' $ac_executable_extensions; do
7170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7171     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173     break 2
7174   fi
7175 done
7176   done
7177 IFS=$as_save_IFS
7178
7179 fi
7180 fi
7181 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7182 if test -n "$ac_ct_NMEDIT"; then
7183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7184 $as_echo "$ac_ct_NMEDIT" >&6; }
7185 else
7186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187 $as_echo "no" >&6; }
7188 fi
7189
7190   if test "x$ac_ct_NMEDIT" = x; then
7191     NMEDIT=":"
7192   else
7193     case $cross_compiling:$ac_tool_warned in
7194 yes:)
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7197 ac_tool_warned=yes ;;
7198 esac
7199     NMEDIT=$ac_ct_NMEDIT
7200   fi
7201 else
7202   NMEDIT="$ac_cv_prog_NMEDIT"
7203 fi
7204
7205     if test -n "$ac_tool_prefix"; then
7206   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7207 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if test "${ac_cv_prog_LIPO+set}" = set; then :
7211   $as_echo_n "(cached) " >&6
7212 else
7213   if test -n "$LIPO"; then
7214   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7218 do
7219   IFS=$as_save_IFS
7220   test -z "$as_dir" && as_dir=.
7221     for ac_exec_ext in '' $ac_executable_extensions; do
7222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7223     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225     break 2
7226   fi
7227 done
7228   done
7229 IFS=$as_save_IFS
7230
7231 fi
7232 fi
7233 LIPO=$ac_cv_prog_LIPO
7234 if test -n "$LIPO"; then
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7236 $as_echo "$LIPO" >&6; }
7237 else
7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7240 fi
7241
7242
7243 fi
7244 if test -z "$ac_cv_prog_LIPO"; then
7245   ac_ct_LIPO=$LIPO
7246   # Extract the first word of "lipo", so it can be a program name with args.
7247 set dummy lipo; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7251   $as_echo_n "(cached) " >&6
7252 else
7253   if test -n "$ac_ct_LIPO"; then
7254   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259   IFS=$as_save_IFS
7260   test -z "$as_dir" && as_dir=.
7261     for ac_exec_ext in '' $ac_executable_extensions; do
7262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7263     ac_cv_prog_ac_ct_LIPO="lipo"
7264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265     break 2
7266   fi
7267 done
7268   done
7269 IFS=$as_save_IFS
7270
7271 fi
7272 fi
7273 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7274 if test -n "$ac_ct_LIPO"; then
7275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7276 $as_echo "$ac_ct_LIPO" >&6; }
7277 else
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7280 fi
7281
7282   if test "x$ac_ct_LIPO" = x; then
7283     LIPO=":"
7284   else
7285     case $cross_compiling:$ac_tool_warned in
7286 yes:)
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289 ac_tool_warned=yes ;;
7290 esac
7291     LIPO=$ac_ct_LIPO
7292   fi
7293 else
7294   LIPO="$ac_cv_prog_LIPO"
7295 fi
7296
7297     if test -n "$ac_tool_prefix"; then
7298   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7299 set dummy ${ac_tool_prefix}otool; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7303   $as_echo_n "(cached) " >&6
7304 else
7305   if test -n "$OTOOL"; then
7306   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7307 else
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7310 do
7311   IFS=$as_save_IFS
7312   test -z "$as_dir" && as_dir=.
7313     for ac_exec_ext in '' $ac_executable_extensions; do
7314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7315     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317     break 2
7318   fi
7319 done
7320   done
7321 IFS=$as_save_IFS
7322
7323 fi
7324 fi
7325 OTOOL=$ac_cv_prog_OTOOL
7326 if test -n "$OTOOL"; then
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7328 $as_echo "$OTOOL" >&6; }
7329 else
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7332 fi
7333
7334
7335 fi
7336 if test -z "$ac_cv_prog_OTOOL"; then
7337   ac_ct_OTOOL=$OTOOL
7338   # Extract the first word of "otool", so it can be a program name with args.
7339 set dummy otool; ac_word=$2
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 $as_echo_n "checking for $ac_word... " >&6; }
7342 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7343   $as_echo_n "(cached) " >&6
7344 else
7345   if test -n "$ac_ct_OTOOL"; then
7346   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7347 else
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 for as_dir in $PATH
7350 do
7351   IFS=$as_save_IFS
7352   test -z "$as_dir" && as_dir=.
7353     for ac_exec_ext in '' $ac_executable_extensions; do
7354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7355     ac_cv_prog_ac_ct_OTOOL="otool"
7356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357     break 2
7358   fi
7359 done
7360   done
7361 IFS=$as_save_IFS
7362
7363 fi
7364 fi
7365 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7366 if test -n "$ac_ct_OTOOL"; then
7367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7368 $as_echo "$ac_ct_OTOOL" >&6; }
7369 else
7370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7372 fi
7373
7374   if test "x$ac_ct_OTOOL" = x; then
7375     OTOOL=":"
7376   else
7377     case $cross_compiling:$ac_tool_warned in
7378 yes:)
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7381 ac_tool_warned=yes ;;
7382 esac
7383     OTOOL=$ac_ct_OTOOL
7384   fi
7385 else
7386   OTOOL="$ac_cv_prog_OTOOL"
7387 fi
7388
7389     if test -n "$ac_tool_prefix"; then
7390   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7391 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7395   $as_echo_n "(cached) " >&6
7396 else
7397   if test -n "$OTOOL64"; then
7398   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7399 else
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7402 do
7403   IFS=$as_save_IFS
7404   test -z "$as_dir" && as_dir=.
7405     for ac_exec_ext in '' $ac_executable_extensions; do
7406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409     break 2
7410   fi
7411 done
7412   done
7413 IFS=$as_save_IFS
7414
7415 fi
7416 fi
7417 OTOOL64=$ac_cv_prog_OTOOL64
7418 if test -n "$OTOOL64"; then
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7420 $as_echo "$OTOOL64" >&6; }
7421 else
7422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7424 fi
7425
7426
7427 fi
7428 if test -z "$ac_cv_prog_OTOOL64"; then
7429   ac_ct_OTOOL64=$OTOOL64
7430   # Extract the first word of "otool64", so it can be a program name with args.
7431 set dummy otool64; ac_word=$2
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433 $as_echo_n "checking for $ac_word... " >&6; }
7434 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7435   $as_echo_n "(cached) " >&6
7436 else
7437   if test -n "$ac_ct_OTOOL64"; then
7438   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7439 else
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 for as_dir in $PATH
7442 do
7443   IFS=$as_save_IFS
7444   test -z "$as_dir" && as_dir=.
7445     for ac_exec_ext in '' $ac_executable_extensions; do
7446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7447     ac_cv_prog_ac_ct_OTOOL64="otool64"
7448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449     break 2
7450   fi
7451 done
7452   done
7453 IFS=$as_save_IFS
7454
7455 fi
7456 fi
7457 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7458 if test -n "$ac_ct_OTOOL64"; then
7459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7460 $as_echo "$ac_ct_OTOOL64" >&6; }
7461 else
7462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 $as_echo "no" >&6; }
7464 fi
7465
7466   if test "x$ac_ct_OTOOL64" = x; then
7467     OTOOL64=":"
7468   else
7469     case $cross_compiling:$ac_tool_warned in
7470 yes:)
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7473 ac_tool_warned=yes ;;
7474 esac
7475     OTOOL64=$ac_ct_OTOOL64
7476   fi
7477 else
7478   OTOOL64="$ac_cv_prog_OTOOL64"
7479 fi
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7508 $as_echo_n "checking for -single_module linker flag... " >&6; }
7509 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7510   $as_echo_n "(cached) " >&6
7511 else
7512   lt_cv_apple_cc_single_mod=no
7513       if test -z "${LT_MULTI_MODULE}"; then
7514         # By default we will add the -single_module flag. You can override
7515         # by either setting the environment variable LT_MULTI_MODULE
7516         # non-empty at configure time, or by adding -multi_module to the
7517         # link flags.
7518         rm -rf libconftest.dylib*
7519         echo "int foo(void){return 1;}" > conftest.c
7520         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7521 -dynamiclib -Wl,-single_module conftest.c" >&5
7522         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7523           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7524         _lt_result=$?
7525         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7526           lt_cv_apple_cc_single_mod=yes
7527         else
7528           cat conftest.err >&5
7529         fi
7530         rm -rf libconftest.dylib*
7531         rm -f conftest.*
7532       fi
7533 fi
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7535 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7536     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7537 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7538 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7539   $as_echo_n "(cached) " >&6
7540 else
7541   lt_cv_ld_exported_symbols_list=no
7542       save_LDFLAGS=$LDFLAGS
7543       echo "_main" > conftest.sym
7544       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7545       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h.  */
7547
7548 int
7549 main ()
7550 {
7551
7552   ;
7553   return 0;
7554 }
7555 _ACEOF
7556 if ac_fn_c_try_link "$LINENO"; then :
7557   lt_cv_ld_exported_symbols_list=yes
7558 else
7559   lt_cv_ld_exported_symbols_list=no
7560 fi
7561 rm -f core conftest.err conftest.$ac_objext \
7562     conftest$ac_exeext conftest.$ac_ext
7563         LDFLAGS="$save_LDFLAGS"
7564
7565 fi
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7567 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7568     case $host_os in
7569     rhapsody* | darwin1.[012])
7570       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7571     darwin1.*)
7572       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7573     darwin*) # darwin 5.x on
7574       # if running on 10.5 or later, the deployment target defaults
7575       # to the OS version, if on x86, and 10.4, the deployment
7576       # target defaults to 10.4. Don't you love it?
7577       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7578         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7579           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7580         10.[012]*)
7581           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7582         10.*)
7583           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7584       esac
7585     ;;
7586   esac
7587     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7588       _lt_dar_single_mod='$single_module'
7589     fi
7590     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7591       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7592     else
7593       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7594     fi
7595     if test "$DSYMUTIL" != ":"; then
7596       _lt_dsymutil='~$DSYMUTIL $lib || :'
7597     else
7598       _lt_dsymutil=
7599     fi
7600     ;;
7601   esac
7602
7603 ac_ext=c
7604 ac_cpp='$CPP $CPPFLAGS'
7605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7609 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7610 # On Suns, sometimes $CPP names a directory.
7611 if test -n "$CPP" && test -d "$CPP"; then
7612   CPP=
7613 fi
7614 if test -z "$CPP"; then
7615   if test "${ac_cv_prog_CPP+set}" = set; then :
7616   $as_echo_n "(cached) " >&6
7617 else
7618       # Double quotes because CPP needs to be expanded
7619     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7620     do
7621       ac_preproc_ok=false
7622 for ac_c_preproc_warn_flag in '' yes
7623 do
7624   # Use a header file that comes with gcc, so configuring glibc
7625   # with a fresh cross-compiler works.
7626   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7627   # <limits.h> exists even on freestanding compilers.
7628   # On the NeXT, cc -E runs the code through the compiler's parser,
7629   # not just through cpp. "Syntax error" is here to catch this case.
7630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h.  */
7632 #ifdef __STDC__
7633 # include <limits.h>
7634 #else
7635 # include <assert.h>
7636 #endif
7637                      Syntax error
7638 _ACEOF
7639 if ac_fn_c_try_cpp "$LINENO"; then :
7640
7641 else
7642   # Broken: fails on valid input.
7643 continue
7644 fi
7645 rm -f conftest.err conftest.$ac_ext
7646
7647   # OK, works on sane cases.  Now check whether nonexistent headers
7648   # can be detected and how.
7649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h.  */
7651 #include <ac_nonexistent.h>
7652 _ACEOF
7653 if ac_fn_c_try_cpp "$LINENO"; then :
7654   # Broken: success on invalid input.
7655 continue
7656 else
7657   # Passes both tests.
7658 ac_preproc_ok=:
7659 break
7660 fi
7661 rm -f conftest.err conftest.$ac_ext
7662
7663 done
7664 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7665 rm -f conftest.err conftest.$ac_ext
7666 if $ac_preproc_ok; then :
7667   break
7668 fi
7669
7670     done
7671     ac_cv_prog_CPP=$CPP
7672
7673 fi
7674   CPP=$ac_cv_prog_CPP
7675 else
7676   ac_cv_prog_CPP=$CPP
7677 fi
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7679 $as_echo "$CPP" >&6; }
7680 ac_preproc_ok=false
7681 for ac_c_preproc_warn_flag in '' yes
7682 do
7683   # Use a header file that comes with gcc, so configuring glibc
7684   # with a fresh cross-compiler works.
7685   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7686   # <limits.h> exists even on freestanding compilers.
7687   # On the NeXT, cc -E runs the code through the compiler's parser,
7688   # not just through cpp. "Syntax error" is here to catch this case.
7689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h.  */
7691 #ifdef __STDC__
7692 # include <limits.h>
7693 #else
7694 # include <assert.h>
7695 #endif
7696                      Syntax error
7697 _ACEOF
7698 if ac_fn_c_try_cpp "$LINENO"; then :
7699
7700 else
7701   # Broken: fails on valid input.
7702 continue
7703 fi
7704 rm -f conftest.err conftest.$ac_ext
7705
7706   # OK, works on sane cases.  Now check whether nonexistent headers
7707   # can be detected and how.
7708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h.  */
7710 #include <ac_nonexistent.h>
7711 _ACEOF
7712 if ac_fn_c_try_cpp "$LINENO"; then :
7713   # Broken: success on invalid input.
7714 continue
7715 else
7716   # Passes both tests.
7717 ac_preproc_ok=:
7718 break
7719 fi
7720 rm -f conftest.err conftest.$ac_ext
7721
7722 done
7723 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7724 rm -f conftest.err conftest.$ac_ext
7725 if $ac_preproc_ok; then :
7726
7727 else
7728   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7730 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7731 See \`config.log' for more details." "$LINENO" 5; }
7732 fi
7733
7734 ac_ext=c
7735 ac_cpp='$CPP $CPPFLAGS'
7736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7739
7740
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7742 $as_echo_n "checking for ANSI C header files... " >&6; }
7743 if test "${ac_cv_header_stdc+set}" = set; then :
7744   $as_echo_n "(cached) " >&6
7745 else
7746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h.  */
7748 #include <stdlib.h>
7749 #include <stdarg.h>
7750 #include <string.h>
7751 #include <float.h>
7752
7753 int
7754 main ()
7755 {
7756
7757   ;
7758   return 0;
7759 }
7760 _ACEOF
7761 if ac_fn_c_try_compile "$LINENO"; then :
7762   ac_cv_header_stdc=yes
7763 else
7764   ac_cv_header_stdc=no
7765 fi
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767
7768 if test $ac_cv_header_stdc = yes; then
7769   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h.  */
7772 #include <string.h>
7773
7774 _ACEOF
7775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7776   $EGREP "memchr" >/dev/null 2>&1; then :
7777
7778 else
7779   ac_cv_header_stdc=no
7780 fi
7781 rm -f conftest*
7782
7783 fi
7784
7785 if test $ac_cv_header_stdc = yes; then
7786   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h.  */
7789 #include <stdlib.h>
7790
7791 _ACEOF
7792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7793   $EGREP "free" >/dev/null 2>&1; then :
7794
7795 else
7796   ac_cv_header_stdc=no
7797 fi
7798 rm -f conftest*
7799
7800 fi
7801
7802 if test $ac_cv_header_stdc = yes; then
7803   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7804   if test "$cross_compiling" = yes; then :
7805   :
7806 else
7807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h.  */
7809 #include <ctype.h>
7810 #include <stdlib.h>
7811 #if ((' ' & 0x0FF) == 0x020)
7812 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7813 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7814 #else
7815 # define ISLOWER(c) \
7816                    (('a' <= (c) && (c) <= 'i') \
7817                      || ('j' <= (c) && (c) <= 'r') \
7818                      || ('s' <= (c) && (c) <= 'z'))
7819 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7820 #endif
7821
7822 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7823 int
7824 main ()
7825 {
7826   int i;
7827   for (i = 0; i < 256; i++)
7828     if (XOR (islower (i), ISLOWER (i))
7829         || toupper (i) != TOUPPER (i))
7830       return 2;
7831   return 0;
7832 }
7833 _ACEOF
7834 if ac_fn_c_try_run "$LINENO"; then :
7835
7836 else
7837   ac_cv_header_stdc=no
7838 fi
7839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7840   conftest.$ac_objext conftest.beam conftest.$ac_ext
7841 fi
7842
7843 fi
7844 fi
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7846 $as_echo "$ac_cv_header_stdc" >&6; }
7847 if test $ac_cv_header_stdc = yes; then
7848
7849 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7850
7851 fi
7852
7853 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7854 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7855                   inttypes.h stdint.h unistd.h
7856 do :
7857   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7858 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7859 "
7860 eval as_val=\$$as_ac_Header
7861    if test "x$as_val" = x""yes; then :
7862   cat >>confdefs.h <<_ACEOF
7863 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7864 _ACEOF
7865
7866 fi
7867
7868 done
7869
7870
7871 for ac_header in dlfcn.h
7872 do :
7873   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7874 "
7875 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7876   cat >>confdefs.h <<_ACEOF
7877 #define HAVE_DLFCN_H 1
7878 _ACEOF
7879
7880 fi
7881
7882 done
7883
7884
7885
7886 # Set options
7887 enable_dlopen=yes
7888
7889
7890
7891
7892   enable_win32_dll=no
7893
7894
7895             # Check whether --enable-shared was given.
7896 if test "${enable_shared+set}" = set; then :
7897   enableval=$enable_shared; p=${PACKAGE-default}
7898     case $enableval in
7899     yes) enable_shared=yes ;;
7900     no) enable_shared=no ;;
7901     *)
7902       enable_shared=no
7903       # Look at the argument we got.  We use all the common list separators.
7904       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7905       for pkg in $enableval; do
7906         IFS="$lt_save_ifs"
7907         if test "X$pkg" = "X$p"; then
7908           enable_shared=yes
7909         fi
7910       done
7911       IFS="$lt_save_ifs"
7912       ;;
7913     esac
7914 else
7915   enable_shared=yes
7916 fi
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926   # Check whether --enable-static was given.
7927 if test "${enable_static+set}" = set; then :
7928   enableval=$enable_static; p=${PACKAGE-default}
7929     case $enableval in
7930     yes) enable_static=yes ;;
7931     no) enable_static=no ;;
7932     *)
7933      enable_static=no
7934       # Look at the argument we got.  We use all the common list separators.
7935       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7936       for pkg in $enableval; do
7937         IFS="$lt_save_ifs"
7938         if test "X$pkg" = "X$p"; then
7939           enable_static=yes
7940         fi
7941       done
7942       IFS="$lt_save_ifs"
7943       ;;
7944     esac
7945 else
7946   enable_static=yes
7947 fi
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958 # Check whether --with-pic was given.
7959 if test "${with_pic+set}" = set; then :
7960   withval=$with_pic; pic_mode="$withval"
7961 else
7962   pic_mode=default
7963 fi
7964
7965
7966 test -z "$pic_mode" && pic_mode=default
7967
7968
7969
7970
7971
7972
7973
7974   # Check whether --enable-fast-install was given.
7975 if test "${enable_fast_install+set}" = set; then :
7976   enableval=$enable_fast_install; p=${PACKAGE-default}
7977     case $enableval in
7978     yes) enable_fast_install=yes ;;
7979     no) enable_fast_install=no ;;
7980     *)
7981       enable_fast_install=no
7982       # Look at the argument we got.  We use all the common list separators.
7983       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7984       for pkg in $enableval; do
7985         IFS="$lt_save_ifs"
7986         if test "X$pkg" = "X$p"; then
7987           enable_fast_install=yes
7988         fi
7989       done
7990       IFS="$lt_save_ifs"
7991       ;;
7992     esac
7993 else
7994   enable_fast_install=yes
7995 fi
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007 # This can be used to rebuild libtool when needed
8008 LIBTOOL_DEPS="$ltmain"
8009
8010 # Always use our own libtool.
8011 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037 test -z "$LN_S" && LN_S="ln -s"
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052 if test -n "${ZSH_VERSION+set}" ; then
8053    setopt NO_GLOB_SUBST
8054 fi
8055
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8057 $as_echo_n "checking for objdir... " >&6; }
8058 if test "${lt_cv_objdir+set}" = set; then :
8059   $as_echo_n "(cached) " >&6
8060 else
8061   rm -f .libs 2>/dev/null
8062 mkdir .libs 2>/dev/null
8063 if test -d .libs; then
8064   lt_cv_objdir=.libs
8065 else
8066   # MS-DOS does not allow filenames that begin with a dot.
8067   lt_cv_objdir=_libs
8068 fi
8069 rmdir .libs 2>/dev/null
8070 fi
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8072 $as_echo "$lt_cv_objdir" >&6; }
8073 objdir=$lt_cv_objdir
8074
8075
8076
8077
8078
8079 cat >>confdefs.h <<_ACEOF
8080 #define LT_OBJDIR "$lt_cv_objdir/"
8081 _ACEOF
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099 case $host_os in
8100 aix3*)
8101   # AIX sometimes has problems with the GCC collect2 program.  For some
8102   # reason, if we set the COLLECT_NAMES environment variable, the problems
8103   # vanish in a puff of smoke.
8104   if test "X${COLLECT_NAMES+set}" != Xset; then
8105     COLLECT_NAMES=
8106     export COLLECT_NAMES
8107   fi
8108   ;;
8109 esac
8110
8111 # Sed substitution that helps us do robust quoting.  It backslashifies
8112 # metacharacters that are still active within double-quoted strings.
8113 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8114
8115 # Same as above, but do not quote variable references.
8116 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8117
8118 # Sed substitution to delay expansion of an escaped shell variable in a
8119 # double_quote_subst'ed string.
8120 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8121
8122 # Sed substitution to delay expansion of an escaped single quote.
8123 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8124
8125 # Sed substitution to avoid accidental globbing in evaled expressions
8126 no_glob_subst='s/\*/\\\*/g'
8127
8128 # Global variables:
8129 ofile=libtool
8130 can_build_shared=yes
8131
8132 # All known linkers require a `.a' archive for static linking (except MSVC,
8133 # which needs '.lib').
8134 libext=a
8135
8136 with_gnu_ld="$lt_cv_prog_gnu_ld"
8137
8138 old_CC="$CC"
8139 old_CFLAGS="$CFLAGS"
8140
8141 # Set sane defaults for various variables
8142 test -z "$CC" && CC=cc
8143 test -z "$LTCC" && LTCC=$CC
8144 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8145 test -z "$LD" && LD=ld
8146 test -z "$ac_objext" && ac_objext=o
8147
8148 for cc_temp in $compiler""; do
8149   case $cc_temp in
8150     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8151     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8152     \-*) ;;
8153     *) break;;
8154   esac
8155 done
8156 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8157
8158
8159 # Only perform the check for file, if the check method requires it
8160 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8161 case $deplibs_check_method in
8162 file_magic*)
8163   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8164     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8165 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8166 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8167   $as_echo_n "(cached) " >&6
8168 else
8169   case $MAGIC_CMD in
8170 [\\/*] |  ?:[\\/]*)
8171   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8172   ;;
8173 *)
8174   lt_save_MAGIC_CMD="$MAGIC_CMD"
8175   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8176   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8177   for ac_dir in $ac_dummy; do
8178     IFS="$lt_save_ifs"
8179     test -z "$ac_dir" && ac_dir=.
8180     if test -f $ac_dir/${ac_tool_prefix}file; then
8181       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8182       if test -n "$file_magic_test_file"; then
8183         case $deplibs_check_method in
8184         "file_magic "*)
8185           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8186           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8187           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8188             $EGREP "$file_magic_regex" > /dev/null; then
8189             :
8190           else
8191             cat <<_LT_EOF 1>&2
8192
8193 *** Warning: the command libtool uses to detect shared libraries,
8194 *** $file_magic_cmd, produces output that libtool cannot recognize.
8195 *** The result is that libtool may fail to recognize shared libraries
8196 *** as such.  This will affect the creation of libtool libraries that
8197 *** depend on shared libraries, but programs linked with such libtool
8198 *** libraries will work regardless of this problem.  Nevertheless, you
8199 *** may want to report the problem to your system manager and/or to
8200 *** bug-libtool@gnu.org
8201
8202 _LT_EOF
8203           fi ;;
8204         esac
8205       fi
8206       break
8207     fi
8208   done
8209   IFS="$lt_save_ifs"
8210   MAGIC_CMD="$lt_save_MAGIC_CMD"
8211   ;;
8212 esac
8213 fi
8214
8215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8216 if test -n "$MAGIC_CMD"; then
8217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8218 $as_echo "$MAGIC_CMD" >&6; }
8219 else
8220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }
8222 fi
8223
8224
8225
8226
8227
8228 if test -z "$lt_cv_path_MAGIC_CMD"; then
8229   if test -n "$ac_tool_prefix"; then
8230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8231 $as_echo_n "checking for file... " >&6; }
8232 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8233   $as_echo_n "(cached) " >&6
8234 else
8235   case $MAGIC_CMD in
8236 [\\/*] |  ?:[\\/]*)
8237   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8238   ;;
8239 *)
8240   lt_save_MAGIC_CMD="$MAGIC_CMD"
8241   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8242   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8243   for ac_dir in $ac_dummy; do
8244     IFS="$lt_save_ifs"
8245     test -z "$ac_dir" && ac_dir=.
8246     if test -f $ac_dir/file; then
8247       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8248       if test -n "$file_magic_test_file"; then
8249         case $deplibs_check_method in
8250         "file_magic "*)
8251           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8252           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8253           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8254             $EGREP "$file_magic_regex" > /dev/null; then
8255             :
8256           else
8257             cat <<_LT_EOF 1>&2
8258
8259 *** Warning: the command libtool uses to detect shared libraries,
8260 *** $file_magic_cmd, produces output that libtool cannot recognize.
8261 *** The result is that libtool may fail to recognize shared libraries
8262 *** as such.  This will affect the creation of libtool libraries that
8263 *** depend on shared libraries, but programs linked with such libtool
8264 *** libraries will work regardless of this problem.  Nevertheless, you
8265 *** may want to report the problem to your system manager and/or to
8266 *** bug-libtool@gnu.org
8267
8268 _LT_EOF
8269           fi ;;
8270         esac
8271       fi
8272       break
8273     fi
8274   done
8275   IFS="$lt_save_ifs"
8276   MAGIC_CMD="$lt_save_MAGIC_CMD"
8277   ;;
8278 esac
8279 fi
8280
8281 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8282 if test -n "$MAGIC_CMD"; then
8283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8284 $as_echo "$MAGIC_CMD" >&6; }
8285 else
8286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }
8288 fi
8289
8290
8291   else
8292     MAGIC_CMD=:
8293   fi
8294 fi
8295
8296   fi
8297   ;;
8298 esac
8299
8300 # Use C for the default configuration in the libtool script
8301
8302 lt_save_CC="$CC"
8303 ac_ext=c
8304 ac_cpp='$CPP $CPPFLAGS'
8305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8308
8309
8310 # Source file extension for C test sources.
8311 ac_ext=c
8312
8313 # Object file extension for compiled C test sources.
8314 objext=o
8315 objext=$objext
8316
8317 # Code to be used in simple compile tests
8318 lt_simple_compile_test_code="int some_variable = 0;"
8319
8320 # Code to be used in simple link tests
8321 lt_simple_link_test_code='int main(){return(0);}'
8322
8323
8324
8325
8326
8327
8328
8329 # If no C compiler was specified, use CC.
8330 LTCC=${LTCC-"$CC"}
8331
8332 # If no C compiler flags were specified, use CFLAGS.
8333 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8334
8335 # Allow CC to be a program name with arguments.
8336 compiler=$CC
8337
8338 # Save the default compiler, since it gets overwritten when the other
8339 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8340 compiler_DEFAULT=$CC
8341
8342 # save warnings/boilerplate of simple test code
8343 ac_outfile=conftest.$ac_objext
8344 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8345 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8346 _lt_compiler_boilerplate=`cat conftest.err`
8347 $RM conftest*
8348
8349 ac_outfile=conftest.$ac_objext
8350 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8351 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8352 _lt_linker_boilerplate=`cat conftest.err`
8353 $RM -r conftest*
8354
8355
8356 ## CAVEAT EMPTOR:
8357 ## There is no encapsulation within the following macros, do not change
8358 ## the running order or otherwise move them around unless you know exactly
8359 ## what you are doing...
8360 if test -n "$compiler"; then
8361
8362 lt_prog_compiler_no_builtin_flag=
8363
8364 if test "$GCC" = yes; then
8365   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8366
8367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8368 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8369 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8370   $as_echo_n "(cached) " >&6
8371 else
8372   lt_cv_prog_compiler_rtti_exceptions=no
8373    ac_outfile=conftest.$ac_objext
8374    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8375    lt_compiler_flag="-fno-rtti -fno-exceptions"
8376    # Insert the option either (1) after the last *FLAGS variable, or
8377    # (2) before a word containing "conftest.", or (3) at the end.
8378    # Note that $ac_compile itself does not contain backslashes and begins
8379    # with a dollar sign (not a hyphen), so the echo should work correctly.
8380    # The option is referenced via a variable to avoid confusing sed.
8381    lt_compile=`echo "$ac_compile" | $SED \
8382    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8383    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8384    -e 's:$: $lt_compiler_flag:'`
8385    (eval echo "\"\$as_me:8385: $lt_compile\"" >&5)
8386    (eval "$lt_compile" 2>conftest.err)
8387    ac_status=$?
8388    cat conftest.err >&5
8389    echo "$as_me:8389: \$? = $ac_status" >&5
8390    if (exit $ac_status) && test -s "$ac_outfile"; then
8391      # The compiler can only warn and ignore the option if not recognized
8392      # So say no if there are warnings other than the usual output.
8393      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8394      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8395      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8396        lt_cv_prog_compiler_rtti_exceptions=yes
8397      fi
8398    fi
8399    $RM conftest*
8400
8401 fi
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8403 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8404
8405 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8406     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8407 else
8408     :
8409 fi
8410
8411 fi
8412
8413
8414
8415
8416
8417
8418   lt_prog_compiler_wl=
8419 lt_prog_compiler_pic=
8420 lt_prog_compiler_static=
8421
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8423 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8424
8425   if test "$GCC" = yes; then
8426     lt_prog_compiler_wl='-Wl,'
8427     lt_prog_compiler_static='-static'
8428
8429     case $host_os in
8430       aix*)
8431       # All AIX code is PIC.
8432       if test "$host_cpu" = ia64; then
8433         # AIX 5 now supports IA64 processor
8434         lt_prog_compiler_static='-Bstatic'
8435       fi
8436       ;;
8437
8438     amigaos*)
8439       case $host_cpu in
8440       powerpc)
8441             # see comment about AmigaOS4 .so support
8442             lt_prog_compiler_pic='-fPIC'
8443         ;;
8444       m68k)
8445             # FIXME: we need at least 68020 code to build shared libraries, but
8446             # adding the `-m68020' flag to GCC prevents building anything better,
8447             # like `-m68040'.
8448             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8449         ;;
8450       esac
8451       ;;
8452
8453     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8454       # PIC is the default for these OSes.
8455       ;;
8456
8457     mingw* | cygwin* | pw32* | os2* | cegcc*)
8458       # This hack is so that the source file can tell whether it is being
8459       # built for inclusion in a dll (and should export symbols for example).
8460       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8461       # (--disable-auto-import) libraries
8462       lt_prog_compiler_pic='-DDLL_EXPORT'
8463       ;;
8464
8465     darwin* | rhapsody*)
8466       # PIC is the default on this platform
8467       # Common symbols not allowed in MH_DYLIB files
8468       lt_prog_compiler_pic='-fno-common'
8469       ;;
8470
8471     hpux*)
8472       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8473       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8474       # sets the default TLS model and affects inlining.
8475       case $host_cpu in
8476       hppa*64*)
8477         # +Z the default
8478         ;;
8479       *)
8480         lt_prog_compiler_pic='-fPIC'
8481         ;;
8482       esac
8483       ;;
8484
8485     interix[3-9]*)
8486       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8487       # Instead, we relocate shared libraries at runtime.
8488       ;;
8489
8490     msdosdjgpp*)
8491       # Just because we use GCC doesn't mean we suddenly get shared libraries
8492       # on systems that don't support them.
8493       lt_prog_compiler_can_build_shared=no
8494       enable_shared=no
8495       ;;
8496
8497     *nto* | *qnx*)
8498       # QNX uses GNU C++, but need to define -shared option too, otherwise
8499       # it will coredump.
8500       lt_prog_compiler_pic='-fPIC -shared'
8501       ;;
8502
8503     sysv4*MP*)
8504       if test -d /usr/nec; then
8505         lt_prog_compiler_pic=-Kconform_pic
8506       fi
8507       ;;
8508
8509     *)
8510       lt_prog_compiler_pic='-fPIC'
8511       ;;
8512     esac
8513   else
8514     # PORTME Check for flag to pass linker flags through the system compiler.
8515     case $host_os in
8516     aix*)
8517       lt_prog_compiler_wl='-Wl,'
8518       if test "$host_cpu" = ia64; then
8519         # AIX 5 now supports IA64 processor
8520         lt_prog_compiler_static='-Bstatic'
8521       else
8522         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8523       fi
8524       ;;
8525
8526     mingw* | cygwin* | pw32* | os2* | cegcc*)
8527       # This hack is so that the source file can tell whether it is being
8528       # built for inclusion in a dll (and should export symbols for example).
8529       lt_prog_compiler_pic='-DDLL_EXPORT'
8530       ;;
8531
8532     hpux9* | hpux10* | hpux11*)
8533       lt_prog_compiler_wl='-Wl,'
8534       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8535       # not for PA HP-UX.
8536       case $host_cpu in
8537       hppa*64*|ia64*)
8538         # +Z the default
8539         ;;
8540       *)
8541         lt_prog_compiler_pic='+Z'
8542         ;;
8543       esac
8544       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8545       lt_prog_compiler_static='${wl}-a ${wl}archive'
8546       ;;
8547
8548     irix5* | irix6* | nonstopux*)
8549       lt_prog_compiler_wl='-Wl,'
8550       # PIC (with -KPIC) is the default.
8551       lt_prog_compiler_static='-non_shared'
8552       ;;
8553
8554     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8555       case $cc_basename in
8556       # old Intel for x86_64 which still supported -KPIC.
8557       ecc*)
8558         lt_prog_compiler_wl='-Wl,'
8559         lt_prog_compiler_pic='-KPIC'
8560         lt_prog_compiler_static='-static'
8561         ;;
8562       # icc used to be incompatible with GCC.
8563       # ICC 10 doesn't accept -KPIC any more.
8564       icc* | ifort*)
8565         lt_prog_compiler_wl='-Wl,'
8566         lt_prog_compiler_pic='-fPIC'
8567         lt_prog_compiler_static='-static'
8568         ;;
8569       # Lahey Fortran 8.1.
8570       lf95*)
8571         lt_prog_compiler_wl='-Wl,'
8572         lt_prog_compiler_pic='--shared'
8573         lt_prog_compiler_static='--static'
8574         ;;
8575       pgcc* | pgf77* | pgf90* | pgf95*)
8576         # Portland Group compilers (*not* the Pentium gcc compiler,
8577         # which looks to be a dead project)
8578         lt_prog_compiler_wl='-Wl,'
8579         lt_prog_compiler_pic='-fpic'
8580         lt_prog_compiler_static='-Bstatic'
8581         ;;
8582       ccc*)
8583         lt_prog_compiler_wl='-Wl,'
8584         # All Alpha code is PIC.
8585         lt_prog_compiler_static='-non_shared'
8586         ;;
8587       xl*)
8588         # IBM XL C 8.0/Fortran 10.1 on PPC
8589         lt_prog_compiler_wl='-Wl,'
8590         lt_prog_compiler_pic='-qpic'
8591         lt_prog_compiler_static='-qstaticlink'
8592         ;;
8593       *)
8594         case `$CC -V 2>&1 | sed 5q` in
8595         *Sun\ C*)
8596           # Sun C 5.9
8597           lt_prog_compiler_pic='-KPIC'
8598           lt_prog_compiler_static='-Bstatic'
8599           lt_prog_compiler_wl='-Wl,'
8600           ;;
8601         *Sun\ F*)
8602           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8603           lt_prog_compiler_pic='-KPIC'
8604           lt_prog_compiler_static='-Bstatic'
8605           lt_prog_compiler_wl=''
8606           ;;
8607         esac
8608         ;;
8609       esac
8610       ;;
8611
8612     newsos6)
8613       lt_prog_compiler_pic='-KPIC'
8614       lt_prog_compiler_static='-Bstatic'
8615       ;;
8616
8617     *nto* | *qnx*)
8618       # QNX uses GNU C++, but need to define -shared option too, otherwise
8619       # it will coredump.
8620       lt_prog_compiler_pic='-fPIC -shared'
8621       ;;
8622
8623     osf3* | osf4* | osf5*)
8624       lt_prog_compiler_wl='-Wl,'
8625       # All OSF/1 code is PIC.
8626       lt_prog_compiler_static='-non_shared'
8627       ;;
8628
8629     rdos*)
8630       lt_prog_compiler_static='-non_shared'
8631       ;;
8632
8633     solaris*)
8634       lt_prog_compiler_pic='-KPIC'
8635       lt_prog_compiler_static='-Bstatic'
8636       case $cc_basename in
8637       f77* | f90* | f95*)
8638         lt_prog_compiler_wl='-Qoption ld ';;
8639       *)
8640         lt_prog_compiler_wl='-Wl,';;
8641       esac
8642       ;;
8643
8644     sunos4*)
8645       lt_prog_compiler_wl='-Qoption ld '
8646       lt_prog_compiler_pic='-PIC'
8647       lt_prog_compiler_static='-Bstatic'
8648       ;;
8649
8650     sysv4 | sysv4.2uw2* | sysv4.3*)
8651       lt_prog_compiler_wl='-Wl,'
8652       lt_prog_compiler_pic='-KPIC'
8653       lt_prog_compiler_static='-Bstatic'
8654       ;;
8655
8656     sysv4*MP*)
8657       if test -d /usr/nec ;then
8658         lt_prog_compiler_pic='-Kconform_pic'
8659         lt_prog_compiler_static='-Bstatic'
8660       fi
8661       ;;
8662
8663     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8664       lt_prog_compiler_wl='-Wl,'
8665       lt_prog_compiler_pic='-KPIC'
8666       lt_prog_compiler_static='-Bstatic'
8667       ;;
8668
8669     unicos*)
8670       lt_prog_compiler_wl='-Wl,'
8671       lt_prog_compiler_can_build_shared=no
8672       ;;
8673
8674     uts4*)
8675       lt_prog_compiler_pic='-pic'
8676       lt_prog_compiler_static='-Bstatic'
8677       ;;
8678
8679     *)
8680       lt_prog_compiler_can_build_shared=no
8681       ;;
8682     esac
8683   fi
8684
8685 case $host_os in
8686   # For platforms which do not support PIC, -DPIC is meaningless:
8687   *djgpp*)
8688     lt_prog_compiler_pic=
8689     ;;
8690   *)
8691     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8692     ;;
8693 esac
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8695 $as_echo "$lt_prog_compiler_pic" >&6; }
8696
8697
8698
8699
8700
8701
8702 #
8703 # Check to make sure the PIC flag actually works.
8704 #
8705 if test -n "$lt_prog_compiler_pic"; then
8706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8707 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8708 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8709   $as_echo_n "(cached) " >&6
8710 else
8711   lt_cv_prog_compiler_pic_works=no
8712    ac_outfile=conftest.$ac_objext
8713    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8714    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8715    # Insert the option either (1) after the last *FLAGS variable, or
8716    # (2) before a word containing "conftest.", or (3) at the end.
8717    # Note that $ac_compile itself does not contain backslashes and begins
8718    # with a dollar sign (not a hyphen), so the echo should work correctly.
8719    # The option is referenced via a variable to avoid confusing sed.
8720    lt_compile=`echo "$ac_compile" | $SED \
8721    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8722    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8723    -e 's:$: $lt_compiler_flag:'`
8724    (eval echo "\"\$as_me:8724: $lt_compile\"" >&5)
8725    (eval "$lt_compile" 2>conftest.err)
8726    ac_status=$?
8727    cat conftest.err >&5
8728    echo "$as_me:8728: \$? = $ac_status" >&5
8729    if (exit $ac_status) && test -s "$ac_outfile"; then
8730      # The compiler can only warn and ignore the option if not recognized
8731      # So say no if there are warnings other than the usual output.
8732      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8733      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8734      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8735        lt_cv_prog_compiler_pic_works=yes
8736      fi
8737    fi
8738    $RM conftest*
8739
8740 fi
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8742 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8743
8744 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8745     case $lt_prog_compiler_pic in
8746      "" | " "*) ;;
8747      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8748      esac
8749 else
8750     lt_prog_compiler_pic=
8751      lt_prog_compiler_can_build_shared=no
8752 fi
8753
8754 fi
8755
8756
8757
8758
8759
8760
8761 #
8762 # Check to make sure the static flag actually works.
8763 #
8764 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8766 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8767 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8768   $as_echo_n "(cached) " >&6
8769 else
8770   lt_cv_prog_compiler_static_works=no
8771    save_LDFLAGS="$LDFLAGS"
8772    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8773    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8774    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8775      # The linker can only warn and ignore the option if not recognized
8776      # So say no if there are warnings
8777      if test -s conftest.err; then
8778        # Append any errors to the config.log.
8779        cat conftest.err 1>&5
8780        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8781        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8782        if diff conftest.exp conftest.er2 >/dev/null; then
8783          lt_cv_prog_compiler_static_works=yes
8784        fi
8785      else
8786        lt_cv_prog_compiler_static_works=yes
8787      fi
8788    fi
8789    $RM -r conftest*
8790    LDFLAGS="$save_LDFLAGS"
8791
8792 fi
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8794 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8795
8796 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8797     :
8798 else
8799     lt_prog_compiler_static=
8800 fi
8801
8802
8803
8804
8805
8806
8807
8808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8809 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8810 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8811   $as_echo_n "(cached) " >&6
8812 else
8813   lt_cv_prog_compiler_c_o=no
8814    $RM -r conftest 2>/dev/null
8815    mkdir conftest
8816    cd conftest
8817    mkdir out
8818    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8819
8820    lt_compiler_flag="-o out/conftest2.$ac_objext"
8821    # Insert the option either (1) after the last *FLAGS variable, or
8822    # (2) before a word containing "conftest.", or (3) at the end.
8823    # Note that $ac_compile itself does not contain backslashes and begins
8824    # with a dollar sign (not a hyphen), so the echo should work correctly.
8825    lt_compile=`echo "$ac_compile" | $SED \
8826    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8827    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8828    -e 's:$: $lt_compiler_flag:'`
8829    (eval echo "\"\$as_me:8829: $lt_compile\"" >&5)
8830    (eval "$lt_compile" 2>out/conftest.err)
8831    ac_status=$?
8832    cat out/conftest.err >&5
8833    echo "$as_me:8833: \$? = $ac_status" >&5
8834    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8835    then
8836      # The compiler can only warn and ignore the option if not recognized
8837      # So say no if there are warnings
8838      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8839      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8840      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8841        lt_cv_prog_compiler_c_o=yes
8842      fi
8843    fi
8844    chmod u+w . 2>&5
8845    $RM conftest*
8846    # SGI C++ compiler will create directory out/ii_files/ for
8847    # template instantiation
8848    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8849    $RM out/* && rmdir out
8850    cd ..
8851    $RM -r conftest
8852    $RM conftest*
8853
8854 fi
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8856 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8857
8858
8859
8860
8861
8862
8863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8864 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8865 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8866   $as_echo_n "(cached) " >&6
8867 else
8868   lt_cv_prog_compiler_c_o=no
8869    $RM -r conftest 2>/dev/null
8870    mkdir conftest
8871    cd conftest
8872    mkdir out
8873    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8874
8875    lt_compiler_flag="-o out/conftest2.$ac_objext"
8876    # Insert the option either (1) after the last *FLAGS variable, or
8877    # (2) before a word containing "conftest.", or (3) at the end.
8878    # Note that $ac_compile itself does not contain backslashes and begins
8879    # with a dollar sign (not a hyphen), so the echo should work correctly.
8880    lt_compile=`echo "$ac_compile" | $SED \
8881    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8882    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8883    -e 's:$: $lt_compiler_flag:'`
8884    (eval echo "\"\$as_me:8884: $lt_compile\"" >&5)
8885    (eval "$lt_compile" 2>out/conftest.err)
8886    ac_status=$?
8887    cat out/conftest.err >&5
8888    echo "$as_me:8888: \$? = $ac_status" >&5
8889    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8890    then
8891      # The compiler can only warn and ignore the option if not recognized
8892      # So say no if there are warnings
8893      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8894      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8895      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8896        lt_cv_prog_compiler_c_o=yes
8897      fi
8898    fi
8899    chmod u+w . 2>&5
8900    $RM conftest*
8901    # SGI C++ compiler will create directory out/ii_files/ for
8902    # template instantiation
8903    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8904    $RM out/* && rmdir out
8905    cd ..
8906    $RM -r conftest
8907    $RM conftest*
8908
8909 fi
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8911 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8912
8913
8914
8915
8916 hard_links="nottested"
8917 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8918   # do not overwrite the value of need_locks provided by the user
8919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8920 $as_echo_n "checking if we can lock with hard links... " >&6; }
8921   hard_links=yes
8922   $RM conftest*
8923   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8924   touch conftest.a
8925   ln conftest.a conftest.b 2>&5 || hard_links=no
8926   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8928 $as_echo "$hard_links" >&6; }
8929   if test "$hard_links" = no; then
8930     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8931 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8932     need_locks=warn
8933   fi
8934 else
8935   need_locks=no
8936 fi
8937
8938
8939
8940
8941
8942
8943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8944 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8945
8946   runpath_var=
8947   allow_undefined_flag=
8948   always_export_symbols=no
8949   archive_cmds=
8950   archive_expsym_cmds=
8951   compiler_needs_object=no
8952   enable_shared_with_static_runtimes=no
8953   export_dynamic_flag_spec=
8954   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8955   hardcode_automatic=no
8956   hardcode_direct=no
8957   hardcode_direct_absolute=no
8958   hardcode_libdir_flag_spec=
8959   hardcode_libdir_flag_spec_ld=
8960   hardcode_libdir_separator=
8961   hardcode_minus_L=no
8962   hardcode_shlibpath_var=unsupported
8963   inherit_rpath=no
8964   link_all_deplibs=unknown
8965   module_cmds=
8966   module_expsym_cmds=
8967   old_archive_from_new_cmds=
8968   old_archive_from_expsyms_cmds=
8969   thread_safe_flag_spec=
8970   whole_archive_flag_spec=
8971   # include_expsyms should be a list of space-separated symbols to be *always*
8972   # included in the symbol list
8973   include_expsyms=
8974   # exclude_expsyms can be an extended regexp of symbols to exclude
8975   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8976   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8977   # as well as any symbol that contains `d'.
8978   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8979   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8980   # platforms (ab)use it in PIC code, but their linkers get confused if
8981   # the symbol is explicitly referenced.  Since portable code cannot
8982   # rely on this symbol name, it's probably fine to never include it in
8983   # preloaded symbol tables.
8984   # Exclude shared library initialization/finalization symbols.
8985   extract_expsyms_cmds=
8986
8987   case $host_os in
8988   cygwin* | mingw* | pw32* | cegcc*)
8989     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8990     # When not using gcc, we currently assume that we are using
8991     # Microsoft Visual C++.
8992     if test "$GCC" != yes; then
8993       with_gnu_ld=no
8994     fi
8995     ;;
8996   interix*)
8997     # we just hope/assume this is gcc and not c89 (= MSVC++)
8998     with_gnu_ld=yes
8999     ;;
9000   openbsd*)
9001     with_gnu_ld=no
9002     ;;
9003   linux* | k*bsd*-gnu)
9004     link_all_deplibs=no
9005     ;;
9006   esac
9007
9008   ld_shlibs=yes
9009   if test "$with_gnu_ld" = yes; then
9010     # If archive_cmds runs LD, not CC, wlarc should be empty
9011     wlarc='${wl}'
9012
9013     # Set some defaults for GNU ld with shared library support. These
9014     # are reset later if shared libraries are not supported. Putting them
9015     # here allows them to be overridden if necessary.
9016     runpath_var=LD_RUN_PATH
9017     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9018     export_dynamic_flag_spec='${wl}--export-dynamic'
9019     # ancient GNU ld didn't support --whole-archive et. al.
9020     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9021       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9022     else
9023       whole_archive_flag_spec=
9024     fi
9025     supports_anon_versioning=no
9026     case `$LD -v 2>&1` in
9027       *GNU\ gold*) supports_anon_versioning=yes ;;
9028       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9029       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9030       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9031       *\ 2.11.*) ;; # other 2.11 versions
9032       *) supports_anon_versioning=yes ;;
9033     esac
9034
9035     # See if GNU ld supports shared libraries.
9036     case $host_os in
9037     aix[3-9]*)
9038       # On AIX/PPC, the GNU linker is very broken
9039       if test "$host_cpu" != ia64; then
9040         ld_shlibs=no
9041         cat <<_LT_EOF 1>&2
9042
9043 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9044 *** to be unable to reliably create shared libraries on AIX.
9045 *** Therefore, libtool is disabling shared libraries support.  If you
9046 *** really care for shared libraries, you may want to modify your PATH
9047 *** so that a non-GNU linker is found, and then restart.
9048
9049 _LT_EOF
9050       fi
9051       ;;
9052
9053     amigaos*)
9054       case $host_cpu in
9055       powerpc)
9056             # see comment about AmigaOS4 .so support
9057             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9058             archive_expsym_cmds=''
9059         ;;
9060       m68k)
9061             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)'
9062             hardcode_libdir_flag_spec='-L$libdir'
9063             hardcode_minus_L=yes
9064         ;;
9065       esac
9066       ;;
9067
9068     beos*)
9069       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9070         allow_undefined_flag=unsupported
9071         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9072         # support --undefined.  This deserves some investigation.  FIXME
9073         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9074       else
9075         ld_shlibs=no
9076       fi
9077       ;;
9078
9079     cygwin* | mingw* | pw32* | cegcc*)
9080       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9081       # as there is no search path for DLLs.
9082       hardcode_libdir_flag_spec='-L$libdir'
9083       allow_undefined_flag=unsupported
9084       always_export_symbols=no
9085       enable_shared_with_static_runtimes=yes
9086       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9087
9088       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9089         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9090         # If the export-symbols file already is a .def file (1st line
9091         # is EXPORTS), use it as is; otherwise, prepend...
9092         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9093           cp $export_symbols $output_objdir/$soname.def;
9094         else
9095           echo EXPORTS > $output_objdir/$soname.def;
9096           cat $export_symbols >> $output_objdir/$soname.def;
9097         fi~
9098         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9099       else
9100         ld_shlibs=no
9101       fi
9102       ;;
9103
9104     interix[3-9]*)
9105       hardcode_direct=no
9106       hardcode_shlibpath_var=no
9107       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9108       export_dynamic_flag_spec='${wl}-E'
9109       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9110       # Instead, shared libraries are loaded at an image base (0x10000000 by
9111       # default) and relocated if they conflict, which is a slow very memory
9112       # consuming and fragmenting process.  To avoid this, we pick a random,
9113       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9114       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9115       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9116       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'
9117       ;;
9118
9119     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9120       tmp_diet=no
9121       if test "$host_os" = linux-dietlibc; then
9122         case $cc_basename in
9123           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9124         esac
9125       fi
9126       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9127          && test "$tmp_diet" = no
9128       then
9129         tmp_addflag=
9130         tmp_sharedflag='-shared'
9131         case $cc_basename,$host_cpu in
9132         pgcc*)                          # Portland Group C compiler
9133           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'
9134           tmp_addflag=' $pic_flag'
9135           ;;
9136         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9137           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'
9138           tmp_addflag=' $pic_flag -Mnomain' ;;
9139         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9140           tmp_addflag=' -i_dynamic' ;;
9141         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9142           tmp_addflag=' -i_dynamic -nofor_main' ;;
9143         ifc* | ifort*)                  # Intel Fortran compiler
9144           tmp_addflag=' -nofor_main' ;;
9145         lf95*)                          # Lahey Fortran 8.1
9146           whole_archive_flag_spec=
9147           tmp_sharedflag='--shared' ;;
9148         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9149           tmp_sharedflag='-qmkshrobj'
9150           tmp_addflag= ;;
9151         esac
9152         case `$CC -V 2>&1 | sed 5q` in
9153         *Sun\ C*)                       # Sun C 5.9
9154           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'
9155           compiler_needs_object=yes
9156           tmp_sharedflag='-G' ;;
9157         *Sun\ F*)                       # Sun Fortran 8.3
9158           tmp_sharedflag='-G' ;;
9159         esac
9160         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9161
9162         if test "x$supports_anon_versioning" = xyes; then
9163           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9164             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9165             echo "local: *; };" >> $output_objdir/$libname.ver~
9166             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9167         fi
9168
9169         case $cc_basename in
9170         xlf*)
9171           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9172           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9173           hardcode_libdir_flag_spec=
9174           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9175           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9176           if test "x$supports_anon_versioning" = xyes; then
9177             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9178               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9179               echo "local: *; };" >> $output_objdir/$libname.ver~
9180               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9181           fi
9182           ;;
9183         esac
9184       else
9185         ld_shlibs=no
9186       fi
9187       ;;
9188
9189     netbsd* | netbsdelf*-gnu)
9190       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9191         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9192         wlarc=
9193       else
9194         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9195         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9196       fi
9197       ;;
9198
9199     solaris*)
9200       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9201         ld_shlibs=no
9202         cat <<_LT_EOF 1>&2
9203
9204 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9205 *** create shared libraries on Solaris systems.  Therefore, libtool
9206 *** is disabling shared libraries support.  We urge you to upgrade GNU
9207 *** binutils to release 2.9.1 or newer.  Another option is to modify
9208 *** your PATH or compiler configuration so that the native linker is
9209 *** used, and then restart.
9210
9211 _LT_EOF
9212       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9213         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9215       else
9216         ld_shlibs=no
9217       fi
9218       ;;
9219
9220     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9221       case `$LD -v 2>&1` in
9222         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9223         ld_shlibs=no
9224         cat <<_LT_EOF 1>&2
9225
9226 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9227 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9228 *** is disabling shared libraries support.  We urge you to upgrade GNU
9229 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9230 *** your PATH or compiler configuration so that the native linker is
9231 *** used, and then restart.
9232
9233 _LT_EOF
9234         ;;
9235         *)
9236           # For security reasons, it is highly recommended that you always
9237           # use absolute paths for naming shared libraries, and exclude the
9238           # DT_RUNPATH tag from executables and libraries.  But doing so
9239           # requires that you compile everything twice, which is a pain.
9240           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9241             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9242             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9243             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9244           else
9245             ld_shlibs=no
9246           fi
9247         ;;
9248       esac
9249       ;;
9250
9251     sunos4*)
9252       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9253       wlarc=
9254       hardcode_direct=yes
9255       hardcode_shlibpath_var=no
9256       ;;
9257
9258     *)
9259       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9260         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9261         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9262       else
9263         ld_shlibs=no
9264       fi
9265       ;;
9266     esac
9267
9268     if test "$ld_shlibs" = no; then
9269       runpath_var=
9270       hardcode_libdir_flag_spec=
9271       export_dynamic_flag_spec=
9272       whole_archive_flag_spec=
9273     fi
9274   else
9275     # PORTME fill in a description of your system's linker (not GNU ld)
9276     case $host_os in
9277     aix3*)
9278       allow_undefined_flag=unsupported
9279       always_export_symbols=yes
9280       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'
9281       # Note: this linker hardcodes the directories in LIBPATH if there
9282       # are no directories specified by -L.
9283       hardcode_minus_L=yes
9284       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9285         # Neither direct hardcoding nor static linking is supported with a
9286         # broken collect2.
9287         hardcode_direct=unsupported
9288       fi
9289       ;;
9290
9291     aix[4-9]*)
9292       if test "$host_cpu" = ia64; then
9293         # On IA64, the linker does run time linking by default, so we don't
9294         # have to do anything special.
9295         aix_use_runtimelinking=no
9296         exp_sym_flag='-Bexport'
9297         no_entry_flag=""
9298       else
9299         # If we're using GNU nm, then we don't want the "-C" option.
9300         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9301         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9302           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'
9303         else
9304           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'
9305         fi
9306         aix_use_runtimelinking=no
9307
9308         # Test if we are trying to use run time linking or normal
9309         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9310         # need to do runtime linking.
9311         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9312           for ld_flag in $LDFLAGS; do
9313           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9314             aix_use_runtimelinking=yes
9315             break
9316           fi
9317           done
9318           ;;
9319         esac
9320
9321         exp_sym_flag='-bexport'
9322         no_entry_flag='-bnoentry'
9323       fi
9324
9325       # When large executables or shared objects are built, AIX ld can
9326       # have problems creating the table of contents.  If linking a library
9327       # or program results in "error TOC overflow" add -mminimal-toc to
9328       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9329       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9330
9331       archive_cmds=''
9332       hardcode_direct=yes
9333       hardcode_direct_absolute=yes
9334       hardcode_libdir_separator=':'
9335       link_all_deplibs=yes
9336       file_list_spec='${wl}-f,'
9337
9338       if test "$GCC" = yes; then
9339         case $host_os in aix4.[012]|aix4.[012].*)
9340         # We only want to do this on AIX 4.2 and lower, the check
9341         # below for broken collect2 doesn't work under 4.3+
9342           collect2name=`${CC} -print-prog-name=collect2`
9343           if test -f "$collect2name" &&
9344            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9345           then
9346           # We have reworked collect2
9347           :
9348           else
9349           # We have old collect2
9350           hardcode_direct=unsupported
9351           # It fails to find uninstalled libraries when the uninstalled
9352           # path is not listed in the libpath.  Setting hardcode_minus_L
9353           # to unsupported forces relinking
9354           hardcode_minus_L=yes
9355           hardcode_libdir_flag_spec='-L$libdir'
9356           hardcode_libdir_separator=
9357           fi
9358           ;;
9359         esac
9360         shared_flag='-shared'
9361         if test "$aix_use_runtimelinking" = yes; then
9362           shared_flag="$shared_flag "'${wl}-G'
9363         fi
9364         link_all_deplibs=no
9365       else
9366         # not using gcc
9367         if test "$host_cpu" = ia64; then
9368         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9369         # chokes on -Wl,-G. The following line is correct:
9370           shared_flag='-G'
9371         else
9372           if test "$aix_use_runtimelinking" = yes; then
9373             shared_flag='${wl}-G'
9374           else
9375             shared_flag='${wl}-bM:SRE'
9376           fi
9377         fi
9378       fi
9379
9380       export_dynamic_flag_spec='${wl}-bexpall'
9381       # It seems that -bexpall does not export symbols beginning with
9382       # underscore (_), so it is better to generate a list of symbols to export.
9383       always_export_symbols=yes
9384       if test "$aix_use_runtimelinking" = yes; then
9385         # Warning - without using the other runtime loading flags (-brtl),
9386         # -berok will link without error, but may produce a broken library.
9387         allow_undefined_flag='-berok'
9388         # Determine the default libpath from the value encoded in an
9389         # empty executable.
9390         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391 /* end confdefs.h.  */
9392
9393 int
9394 main ()
9395 {
9396
9397   ;
9398   return 0;
9399 }
9400 _ACEOF
9401 if ac_fn_c_try_link "$LINENO"; then :
9402
9403 lt_aix_libpath_sed='
9404     /Import File Strings/,/^$/ {
9405         /^0/ {
9406             s/^0  *\(.*\)$/\1/
9407             p
9408         }
9409     }'
9410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9411 # Check for a 64-bit object if we didn't find anything.
9412 if test -z "$aix_libpath"; then
9413   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9414 fi
9415 fi
9416 rm -f core conftest.err conftest.$ac_objext \
9417     conftest$ac_exeext conftest.$ac_ext
9418 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9419
9420         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9421         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"
9422       else
9423         if test "$host_cpu" = ia64; then
9424           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9425           allow_undefined_flag="-z nodefs"
9426           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"
9427         else
9428          # Determine the default libpath from the value encoded in an
9429          # empty executable.
9430          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431 /* end confdefs.h.  */
9432
9433 int
9434 main ()
9435 {
9436
9437   ;
9438   return 0;
9439 }
9440 _ACEOF
9441 if ac_fn_c_try_link "$LINENO"; then :
9442
9443 lt_aix_libpath_sed='
9444     /Import File Strings/,/^$/ {
9445         /^0/ {
9446             s/^0  *\(.*\)$/\1/
9447             p
9448         }
9449     }'
9450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9451 # Check for a 64-bit object if we didn't find anything.
9452 if test -z "$aix_libpath"; then
9453   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9454 fi
9455 fi
9456 rm -f core conftest.err conftest.$ac_objext \
9457     conftest$ac_exeext conftest.$ac_ext
9458 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9459
9460          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9461           # Warning - without using the other run time loading flags,
9462           # -berok will link without error, but may produce a broken library.
9463           no_undefined_flag=' ${wl}-bernotok'
9464           allow_undefined_flag=' ${wl}-berok'
9465           # Exported symbols can be pulled into shared objects from archives
9466           whole_archive_flag_spec='$convenience'
9467           archive_cmds_need_lc=yes
9468           # This is similar to how AIX traditionally builds its shared libraries.
9469           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'
9470         fi
9471       fi
9472       ;;
9473
9474     amigaos*)
9475       case $host_cpu in
9476       powerpc)
9477             # see comment about AmigaOS4 .so support
9478             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9479             archive_expsym_cmds=''
9480         ;;
9481       m68k)
9482             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)'
9483             hardcode_libdir_flag_spec='-L$libdir'
9484             hardcode_minus_L=yes
9485         ;;
9486       esac
9487       ;;
9488
9489     bsdi[45]*)
9490       export_dynamic_flag_spec=-rdynamic
9491       ;;
9492
9493     cygwin* | mingw* | pw32* | cegcc*)
9494       # When not using gcc, we currently assume that we are using
9495       # Microsoft Visual C++.
9496       # hardcode_libdir_flag_spec is actually meaningless, as there is
9497       # no search path for DLLs.
9498       hardcode_libdir_flag_spec=' '
9499       allow_undefined_flag=unsupported
9500       # Tell ltmain to make .lib files, not .a files.
9501       libext=lib
9502       # Tell ltmain to make .dll files, not .so files.
9503       shrext_cmds=".dll"
9504       # FIXME: Setting linknames here is a bad hack.
9505       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9506       # The linker will automatically build a .lib file if we build a DLL.
9507       old_archive_from_new_cmds='true'
9508       # FIXME: Should let the user specify the lib program.
9509       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9510       fix_srcfile_path='`cygpath -w "$srcfile"`'
9511       enable_shared_with_static_runtimes=yes
9512       ;;
9513
9514     darwin* | rhapsody*)
9515
9516
9517   archive_cmds_need_lc=no
9518   hardcode_direct=no
9519   hardcode_automatic=yes
9520   hardcode_shlibpath_var=unsupported
9521   whole_archive_flag_spec=''
9522   link_all_deplibs=yes
9523   allow_undefined_flag="$_lt_dar_allow_undefined"
9524   case $cc_basename in
9525      ifort*) _lt_dar_can_shared=yes ;;
9526      *) _lt_dar_can_shared=$GCC ;;
9527   esac
9528   if test "$_lt_dar_can_shared" = "yes"; then
9529     output_verbose_link_cmd=echo
9530     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9531     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9532     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}"
9533     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}"
9534
9535   else
9536   ld_shlibs=no
9537   fi
9538
9539       ;;
9540
9541     dgux*)
9542       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9543       hardcode_libdir_flag_spec='-L$libdir'
9544       hardcode_shlibpath_var=no
9545       ;;
9546
9547     freebsd1*)
9548       ld_shlibs=no
9549       ;;
9550
9551     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9552     # support.  Future versions do this automatically, but an explicit c++rt0.o
9553     # does not break anything, and helps significantly (at the cost of a little
9554     # extra space).
9555     freebsd2.2*)
9556       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9557       hardcode_libdir_flag_spec='-R$libdir'
9558       hardcode_direct=yes
9559       hardcode_shlibpath_var=no
9560       ;;
9561
9562     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9563     freebsd2*)
9564       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9565       hardcode_direct=yes
9566       hardcode_minus_L=yes
9567       hardcode_shlibpath_var=no
9568       ;;
9569
9570     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9571     freebsd* | dragonfly*)
9572       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9573       hardcode_libdir_flag_spec='-R$libdir'
9574       hardcode_direct=yes
9575       hardcode_shlibpath_var=no
9576       ;;
9577
9578     hpux9*)
9579       if test "$GCC" = yes; then
9580         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'
9581       else
9582         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'
9583       fi
9584       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9585       hardcode_libdir_separator=:
9586       hardcode_direct=yes
9587
9588       # hardcode_minus_L: Not really in the search PATH,
9589       # but as the default location of the library.
9590       hardcode_minus_L=yes
9591       export_dynamic_flag_spec='${wl}-E'
9592       ;;
9593
9594     hpux10*)
9595       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9596         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9597       else
9598         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9599       fi
9600       if test "$with_gnu_ld" = no; then
9601         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9602         hardcode_libdir_flag_spec_ld='+b $libdir'
9603         hardcode_libdir_separator=:
9604         hardcode_direct=yes
9605         hardcode_direct_absolute=yes
9606         export_dynamic_flag_spec='${wl}-E'
9607         # hardcode_minus_L: Not really in the search PATH,
9608         # but as the default location of the library.
9609         hardcode_minus_L=yes
9610       fi
9611       ;;
9612
9613     hpux11*)
9614       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9615         case $host_cpu in
9616         hppa*64*)
9617           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9618           ;;
9619         ia64*)
9620           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9621           ;;
9622         *)
9623           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9624           ;;
9625         esac
9626       else
9627         case $host_cpu in
9628         hppa*64*)
9629           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9630           ;;
9631         ia64*)
9632           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9633           ;;
9634         *)
9635           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9636           ;;
9637         esac
9638       fi
9639       if test "$with_gnu_ld" = no; then
9640         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9641         hardcode_libdir_separator=:
9642
9643         case $host_cpu in
9644         hppa*64*|ia64*)
9645           hardcode_direct=no
9646           hardcode_shlibpath_var=no
9647           ;;
9648         *)
9649           hardcode_direct=yes
9650           hardcode_direct_absolute=yes
9651           export_dynamic_flag_spec='${wl}-E'
9652
9653           # hardcode_minus_L: Not really in the search PATH,
9654           # but as the default location of the library.
9655           hardcode_minus_L=yes
9656           ;;
9657         esac
9658       fi
9659       ;;
9660
9661     irix5* | irix6* | nonstopux*)
9662       if test "$GCC" = yes; then
9663         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'
9664         # Try to use the -exported_symbol ld option, if it does not
9665         # work, assume that -exports_file does not work either and
9666         # implicitly export all symbols.
9667         save_LDFLAGS="$LDFLAGS"
9668         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9669         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h.  */
9671 int foo(void) {}
9672 _ACEOF
9673 if ac_fn_c_try_link "$LINENO"; then :
9674   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'
9675
9676 fi
9677 rm -f core conftest.err conftest.$ac_objext \
9678     conftest$ac_exeext conftest.$ac_ext
9679         LDFLAGS="$save_LDFLAGS"
9680       else
9681         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'
9682         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'
9683       fi
9684       archive_cmds_need_lc='no'
9685       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9686       hardcode_libdir_separator=:
9687       inherit_rpath=yes
9688       link_all_deplibs=yes
9689       ;;
9690
9691     netbsd* | netbsdelf*-gnu)
9692       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9693         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9694       else
9695         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9696       fi
9697       hardcode_libdir_flag_spec='-R$libdir'
9698       hardcode_direct=yes
9699       hardcode_shlibpath_var=no
9700       ;;
9701
9702     newsos6)
9703       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9704       hardcode_direct=yes
9705       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9706       hardcode_libdir_separator=:
9707       hardcode_shlibpath_var=no
9708       ;;
9709
9710     *nto* | *qnx*)
9711       ;;
9712
9713     openbsd*)
9714       if test -f /usr/libexec/ld.so; then
9715         hardcode_direct=yes
9716         hardcode_shlibpath_var=no
9717         hardcode_direct_absolute=yes
9718         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9719           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9720           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9721           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9722           export_dynamic_flag_spec='${wl}-E'
9723         else
9724           case $host_os in
9725            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9726              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9727              hardcode_libdir_flag_spec='-R$libdir'
9728              ;;
9729            *)
9730              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9731              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9732              ;;
9733           esac
9734         fi
9735       else
9736         ld_shlibs=no
9737       fi
9738       ;;
9739
9740     os2*)
9741       hardcode_libdir_flag_spec='-L$libdir'
9742       hardcode_minus_L=yes
9743       allow_undefined_flag=unsupported
9744       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'
9745       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9746       ;;
9747
9748     osf3*)
9749       if test "$GCC" = yes; then
9750         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9751         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'
9752       else
9753         allow_undefined_flag=' -expect_unresolved \*'
9754         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'
9755       fi
9756       archive_cmds_need_lc='no'
9757       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9758       hardcode_libdir_separator=:
9759       ;;
9760
9761     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9762       if test "$GCC" = yes; then
9763         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9764         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'
9765         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9766       else
9767         allow_undefined_flag=' -expect_unresolved \*'
9768         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'
9769         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~
9770         $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'
9771
9772         # Both c and cxx compiler support -rpath directly
9773         hardcode_libdir_flag_spec='-rpath $libdir'
9774       fi
9775       archive_cmds_need_lc='no'
9776       hardcode_libdir_separator=:
9777       ;;
9778
9779     solaris*)
9780       no_undefined_flag=' -z defs'
9781       if test "$GCC" = yes; then
9782         wlarc='${wl}'
9783         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9784         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9785           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9786       else
9787         case `$CC -V 2>&1` in
9788         *"Compilers 5.0"*)
9789           wlarc=''
9790           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9791           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9792           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9793           ;;
9794         *)
9795           wlarc='${wl}'
9796           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9797           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9798           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9799           ;;
9800         esac
9801       fi
9802       hardcode_libdir_flag_spec='-R$libdir'
9803       hardcode_shlibpath_var=no
9804       case $host_os in
9805       solaris2.[0-5] | solaris2.[0-5].*) ;;
9806       *)
9807         # The compiler driver will combine and reorder linker options,
9808         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9809         # but is careful enough not to reorder.
9810         # Supported since Solaris 2.6 (maybe 2.5.1?)
9811         if test "$GCC" = yes; then
9812           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9813         else
9814           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9815         fi
9816         ;;
9817       esac
9818       link_all_deplibs=yes
9819       ;;
9820
9821     sunos4*)
9822       if test "x$host_vendor" = xsequent; then
9823         # Use $CC to link under sequent, because it throws in some extra .o
9824         # files that make .init and .fini sections work.
9825         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9826       else
9827         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9828       fi
9829       hardcode_libdir_flag_spec='-L$libdir'
9830       hardcode_direct=yes
9831       hardcode_minus_L=yes
9832       hardcode_shlibpath_var=no
9833       ;;
9834
9835     sysv4)
9836       case $host_vendor in
9837         sni)
9838           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9839           hardcode_direct=yes # is this really true???
9840         ;;
9841         siemens)
9842           ## LD is ld it makes a PLAMLIB
9843           ## CC just makes a GrossModule.
9844           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9845           reload_cmds='$CC -r -o $output$reload_objs'
9846           hardcode_direct=no
9847         ;;
9848         motorola)
9849           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9850           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9851         ;;
9852       esac
9853       runpath_var='LD_RUN_PATH'
9854       hardcode_shlibpath_var=no
9855       ;;
9856
9857     sysv4.3*)
9858       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9859       hardcode_shlibpath_var=no
9860       export_dynamic_flag_spec='-Bexport'
9861       ;;
9862
9863     sysv4*MP*)
9864       if test -d /usr/nec; then
9865         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9866         hardcode_shlibpath_var=no
9867         runpath_var=LD_RUN_PATH
9868         hardcode_runpath_var=yes
9869         ld_shlibs=yes
9870       fi
9871       ;;
9872
9873     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9874       no_undefined_flag='${wl}-z,text'
9875       archive_cmds_need_lc=no
9876       hardcode_shlibpath_var=no
9877       runpath_var='LD_RUN_PATH'
9878
9879       if test "$GCC" = yes; then
9880         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9881         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9882       else
9883         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9884         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9885       fi
9886       ;;
9887
9888     sysv5* | sco3.2v5* | sco5v6*)
9889       # Note: We can NOT use -z defs as we might desire, because we do not
9890       # link with -lc, and that would cause any symbols used from libc to
9891       # always be unresolved, which means just about no library would
9892       # ever link correctly.  If we're not using GNU ld we use -z text
9893       # though, which does catch some bad symbols but isn't as heavy-handed
9894       # as -z defs.
9895       no_undefined_flag='${wl}-z,text'
9896       allow_undefined_flag='${wl}-z,nodefs'
9897       archive_cmds_need_lc=no
9898       hardcode_shlibpath_var=no
9899       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9900       hardcode_libdir_separator=':'
9901       link_all_deplibs=yes
9902       export_dynamic_flag_spec='${wl}-Bexport'
9903       runpath_var='LD_RUN_PATH'
9904
9905       if test "$GCC" = yes; then
9906         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9907         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9908       else
9909         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9910         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9911       fi
9912       ;;
9913
9914     uts4*)
9915       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9916       hardcode_libdir_flag_spec='-L$libdir'
9917       hardcode_shlibpath_var=no
9918       ;;
9919
9920     *)
9921       ld_shlibs=no
9922       ;;
9923     esac
9924
9925     if test x$host_vendor = xsni; then
9926       case $host in
9927       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9928         export_dynamic_flag_spec='${wl}-Blargedynsym'
9929         ;;
9930       esac
9931     fi
9932   fi
9933
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9935 $as_echo "$ld_shlibs" >&6; }
9936 test "$ld_shlibs" = no && can_build_shared=no
9937
9938 with_gnu_ld=$with_gnu_ld
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954 #
9955 # Do we need to explicitly link libc?
9956 #
9957 case "x$archive_cmds_need_lc" in
9958 x|xyes)
9959   # Assume -lc should be added
9960   archive_cmds_need_lc=yes
9961
9962   if test "$enable_shared" = yes && test "$GCC" = yes; then
9963     case $archive_cmds in
9964     *'~'*)
9965       # FIXME: we may have to deal with multi-command sequences.
9966       ;;
9967     '$CC '*)
9968       # Test whether the compiler implicitly links with -lc since on some
9969       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9970       # to ld, don't add -lc before -lgcc.
9971       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9972 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9973       $RM conftest*
9974       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9975
9976       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9977   (eval $ac_compile) 2>&5
9978   ac_status=$?
9979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9980   test $ac_status = 0; } 2>conftest.err; then
9981         soname=conftest
9982         lib=conftest
9983         libobjs=conftest.$ac_objext
9984         deplibs=
9985         wl=$lt_prog_compiler_wl
9986         pic_flag=$lt_prog_compiler_pic
9987         compiler_flags=-v
9988         linker_flags=-v
9989         verstring=
9990         output_objdir=.
9991         libname=conftest
9992         lt_save_allow_undefined_flag=$allow_undefined_flag
9993         allow_undefined_flag=
9994         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9995   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9996   ac_status=$?
9997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9998   test $ac_status = 0; }
9999         then
10000           archive_cmds_need_lc=no
10001         else
10002           archive_cmds_need_lc=yes
10003         fi
10004         allow_undefined_flag=$lt_save_allow_undefined_flag
10005       else
10006         cat conftest.err 1>&5
10007       fi
10008       $RM conftest*
10009       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10010 $as_echo "$archive_cmds_need_lc" >&6; }
10011       ;;
10012     esac
10013   fi
10014   ;;
10015 esac
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
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10174 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10175
10176 if test "$GCC" = yes; then
10177   case $host_os in
10178     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10179     *) lt_awk_arg="/^libraries:/" ;;
10180   esac
10181   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10182   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10183     # if the path contains ";" then we assume it to be the separator
10184     # otherwise default to the standard path separator (i.e. ":") - it is
10185     # assumed that no part of a normal pathname contains ";" but that should
10186     # okay in the real world where ";" in dirpaths is itself problematic.
10187     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10188   else
10189     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10190   fi
10191   # Ok, now we have the path, separated by spaces, we can step through it
10192   # and add multilib dir if necessary.
10193   lt_tmp_lt_search_path_spec=
10194   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10195   for lt_sys_path in $lt_search_path_spec; do
10196     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10197       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10198     else
10199       test -d "$lt_sys_path" && \
10200         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10201     fi
10202   done
10203   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10204 BEGIN {RS=" "; FS="/|\n";} {
10205   lt_foo="";
10206   lt_count=0;
10207   for (lt_i = NF; lt_i > 0; lt_i--) {
10208     if ($lt_i != "" && $lt_i != ".") {
10209       if ($lt_i == "..") {
10210         lt_count++;
10211       } else {
10212         if (lt_count == 0) {
10213           lt_foo="/" $lt_i lt_foo;
10214         } else {
10215           lt_count--;
10216         }
10217       }
10218     }
10219   }
10220   if (lt_foo != "") { lt_freq[lt_foo]++; }
10221   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10222 }'`
10223   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10224 else
10225   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10226 fi
10227 library_names_spec=
10228 libname_spec='lib$name'
10229 soname_spec=
10230 shrext_cmds=".so"
10231 postinstall_cmds=
10232 postuninstall_cmds=
10233 finish_cmds=
10234 finish_eval=
10235 shlibpath_var=
10236 shlibpath_overrides_runpath=unknown
10237 version_type=none
10238 dynamic_linker="$host_os ld.so"
10239 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10240 need_lib_prefix=unknown
10241 hardcode_into_libs=no
10242
10243 # when you set need_version to no, make sure it does not cause -set_version
10244 # flags to be left without arguments
10245 need_version=unknown
10246
10247 case $host_os in
10248 aix3*)
10249   version_type=linux
10250   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10251   shlibpath_var=LIBPATH
10252
10253   # AIX 3 has no versioning support, so we append a major version to the name.
10254   soname_spec='${libname}${release}${shared_ext}$major'
10255   ;;
10256
10257 aix[4-9]*)
10258   version_type=linux
10259   need_lib_prefix=no
10260   need_version=no
10261   hardcode_into_libs=yes
10262   if test "$host_cpu" = ia64; then
10263     # AIX 5 supports IA64
10264     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10265     shlibpath_var=LD_LIBRARY_PATH
10266   else
10267     # With GCC up to 2.95.x, collect2 would create an import file
10268     # for dependence libraries.  The import file would start with
10269     # the line `#! .'.  This would cause the generated library to
10270     # depend on `.', always an invalid library.  This was fixed in
10271     # development snapshots of GCC prior to 3.0.
10272     case $host_os in
10273       aix4 | aix4.[01] | aix4.[01].*)
10274       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10275            echo ' yes '
10276            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10277         :
10278       else
10279         can_build_shared=no
10280       fi
10281       ;;
10282     esac
10283     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10284     # soname into executable. Probably we can add versioning support to
10285     # collect2, so additional links can be useful in future.
10286     if test "$aix_use_runtimelinking" = yes; then
10287       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10288       # instead of lib<name>.a to let people know that these are not
10289       # typical AIX shared libraries.
10290       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291     else
10292       # We preserve .a as extension for shared libraries through AIX4.2
10293       # and later when we are not doing run time linking.
10294       library_names_spec='${libname}${release}.a $libname.a'
10295       soname_spec='${libname}${release}${shared_ext}$major'
10296     fi
10297     shlibpath_var=LIBPATH
10298   fi
10299   ;;
10300
10301 amigaos*)
10302   case $host_cpu in
10303   powerpc)
10304     # Since July 2007 AmigaOS4 officially supports .so libraries.
10305     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10306     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307     ;;
10308   m68k)
10309     library_names_spec='$libname.ixlibrary $libname.a'
10310     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10311     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'
10312     ;;
10313   esac
10314   ;;
10315
10316 beos*)
10317   library_names_spec='${libname}${shared_ext}'
10318   dynamic_linker="$host_os ld.so"
10319   shlibpath_var=LIBRARY_PATH
10320   ;;
10321
10322 bsdi[45]*)
10323   version_type=linux
10324   need_version=no
10325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326   soname_spec='${libname}${release}${shared_ext}$major'
10327   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10328   shlibpath_var=LD_LIBRARY_PATH
10329   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10330   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10331   # the default ld.so.conf also contains /usr/contrib/lib and
10332   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10333   # libtool to hard-code these into programs
10334   ;;
10335
10336 cygwin* | mingw* | pw32* | cegcc*)
10337   version_type=windows
10338   shrext_cmds=".dll"
10339   need_version=no
10340   need_lib_prefix=no
10341
10342   case $GCC,$host_os in
10343   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10344     library_names_spec='$libname.dll.a'
10345     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10346     postinstall_cmds='base_file=`basename \${file}`~
10347       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10348       dldir=$destdir/`dirname \$dlpath`~
10349       test -d \$dldir || mkdir -p \$dldir~
10350       $install_prog $dir/$dlname \$dldir/$dlname~
10351       chmod a+x \$dldir/$dlname~
10352       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10353         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10354       fi'
10355     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10356       dlpath=$dir/\$dldll~
10357        $RM \$dlpath'
10358     shlibpath_overrides_runpath=yes
10359
10360     case $host_os in
10361     cygwin*)
10362       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10363       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10364       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10365       ;;
10366     mingw* | cegcc*)
10367       # MinGW DLLs use traditional 'lib' prefix
10368       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10369       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10370       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10371         # It is most probably a Windows format PATH printed by
10372         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10373         # path with ; separators, and with drive letters. We can handle the
10374         # drive letters (cygwin fileutils understands them), so leave them,
10375         # especially as we might pass files found there to a mingw objdump,
10376         # which wouldn't understand a cygwinified path. Ahh.
10377         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10378       else
10379         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10380       fi
10381       ;;
10382     pw32*)
10383       # pw32 DLLs use 'pw' prefix rather than 'lib'
10384       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10385       ;;
10386     esac
10387     ;;
10388
10389   *)
10390     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10391     ;;
10392   esac
10393   dynamic_linker='Win32 ld.exe'
10394   # FIXME: first we should search . and the directory the executable is in
10395   shlibpath_var=PATH
10396   ;;
10397
10398 darwin* | rhapsody*)
10399   dynamic_linker="$host_os dyld"
10400   version_type=darwin
10401   need_lib_prefix=no
10402   need_version=no
10403   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10404   soname_spec='${libname}${release}${major}$shared_ext'
10405   shlibpath_overrides_runpath=yes
10406   shlibpath_var=DYLD_LIBRARY_PATH
10407   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10408
10409   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10410   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10411   ;;
10412
10413 dgux*)
10414   version_type=linux
10415   need_lib_prefix=no
10416   need_version=no
10417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10418   soname_spec='${libname}${release}${shared_ext}$major'
10419   shlibpath_var=LD_LIBRARY_PATH
10420   ;;
10421
10422 freebsd1*)
10423   dynamic_linker=no
10424   ;;
10425
10426 freebsd* | dragonfly*)
10427   # DragonFly does not have aout.  When/if they implement a new
10428   # versioning mechanism, adjust this.
10429   if test -x /usr/bin/objformat; then
10430     objformat=`/usr/bin/objformat`
10431   else
10432     case $host_os in
10433     freebsd[123]*) objformat=aout ;;
10434     *) objformat=elf ;;
10435     esac
10436   fi
10437   version_type=freebsd-$objformat
10438   case $version_type in
10439     freebsd-elf*)
10440       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10441       need_version=no
10442       need_lib_prefix=no
10443       ;;
10444     freebsd-*)
10445       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10446       need_version=yes
10447       ;;
10448   esac
10449   shlibpath_var=LD_LIBRARY_PATH
10450   case $host_os in
10451   freebsd2*)
10452     shlibpath_overrides_runpath=yes
10453     ;;
10454   freebsd3.[01]* | freebsdelf3.[01]*)
10455     shlibpath_overrides_runpath=yes
10456     hardcode_into_libs=yes
10457     ;;
10458   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10459   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10460     shlibpath_overrides_runpath=no
10461     hardcode_into_libs=yes
10462     ;;
10463   *) # from 4.6 on, and DragonFly
10464     shlibpath_overrides_runpath=yes
10465     hardcode_into_libs=yes
10466     ;;
10467   esac
10468   ;;
10469
10470 gnu*)
10471   version_type=linux
10472   need_lib_prefix=no
10473   need_version=no
10474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10475   soname_spec='${libname}${release}${shared_ext}$major'
10476   shlibpath_var=LD_LIBRARY_PATH
10477   hardcode_into_libs=yes
10478   ;;
10479
10480 hpux9* | hpux10* | hpux11*)
10481   # Give a soname corresponding to the major version so that dld.sl refuses to
10482   # link against other versions.
10483   version_type=sunos
10484   need_lib_prefix=no
10485   need_version=no
10486   case $host_cpu in
10487   ia64*)
10488     shrext_cmds='.so'
10489     hardcode_into_libs=yes
10490     dynamic_linker="$host_os dld.so"
10491     shlibpath_var=LD_LIBRARY_PATH
10492     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10493     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10494     soname_spec='${libname}${release}${shared_ext}$major'
10495     if test "X$HPUX_IA64_MODE" = X32; then
10496       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10497     else
10498       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10499     fi
10500     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10501     ;;
10502   hppa*64*)
10503     shrext_cmds='.sl'
10504     hardcode_into_libs=yes
10505     dynamic_linker="$host_os dld.sl"
10506     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10507     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10508     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509     soname_spec='${libname}${release}${shared_ext}$major'
10510     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10511     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10512     ;;
10513   *)
10514     shrext_cmds='.sl'
10515     dynamic_linker="$host_os dld.sl"
10516     shlibpath_var=SHLIB_PATH
10517     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10518     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519     soname_spec='${libname}${release}${shared_ext}$major'
10520     ;;
10521   esac
10522   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10523   postinstall_cmds='chmod 555 $lib'
10524   ;;
10525
10526 interix[3-9]*)
10527   version_type=linux
10528   need_lib_prefix=no
10529   need_version=no
10530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10531   soname_spec='${libname}${release}${shared_ext}$major'
10532   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10533   shlibpath_var=LD_LIBRARY_PATH
10534   shlibpath_overrides_runpath=no
10535   hardcode_into_libs=yes
10536   ;;
10537
10538 irix5* | irix6* | nonstopux*)
10539   case $host_os in
10540     nonstopux*) version_type=nonstopux ;;
10541     *)
10542         if test "$lt_cv_prog_gnu_ld" = yes; then
10543                 version_type=linux
10544         else
10545                 version_type=irix
10546         fi ;;
10547   esac
10548   need_lib_prefix=no
10549   need_version=no
10550   soname_spec='${libname}${release}${shared_ext}$major'
10551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10552   case $host_os in
10553   irix5* | nonstopux*)
10554     libsuff= shlibsuff=
10555     ;;
10556   *)
10557     case $LD in # libtool.m4 will add one of these switches to LD
10558     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10559       libsuff= shlibsuff= libmagic=32-bit;;
10560     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10561       libsuff=32 shlibsuff=N32 libmagic=N32;;
10562     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10563       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10564     *) libsuff= shlibsuff= libmagic=never-match;;
10565     esac
10566     ;;
10567   esac
10568   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10569   shlibpath_overrides_runpath=no
10570   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10571   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10572   hardcode_into_libs=yes
10573   ;;
10574
10575 # No shared lib support for Linux oldld, aout, or coff.
10576 linux*oldld* | linux*aout* | linux*coff*)
10577   dynamic_linker=no
10578   ;;
10579
10580 # This must be Linux ELF.
10581 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10582   version_type=linux
10583   need_lib_prefix=no
10584   need_version=no
10585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10586   soname_spec='${libname}${release}${shared_ext}$major'
10587   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10588   shlibpath_var=LD_LIBRARY_PATH
10589   shlibpath_overrides_runpath=no
10590   # Some binutils ld are patched to set DT_RUNPATH
10591   save_LDFLAGS=$LDFLAGS
10592   save_libdir=$libdir
10593   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10594        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h.  */
10597
10598 int
10599 main ()
10600 {
10601
10602   ;
10603   return 0;
10604 }
10605 _ACEOF
10606 if ac_fn_c_try_link "$LINENO"; then :
10607   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10608   shlibpath_overrides_runpath=yes
10609 fi
10610 fi
10611 rm -f core conftest.err conftest.$ac_objext \
10612     conftest$ac_exeext conftest.$ac_ext
10613   LDFLAGS=$save_LDFLAGS
10614   libdir=$save_libdir
10615
10616   # This implies no fast_install, which is unacceptable.
10617   # Some rework will be needed to allow for fast_install
10618   # before this can be enabled.
10619   hardcode_into_libs=yes
10620
10621   # Append ld.so.conf contents to the search path
10622   if test -f /etc/ld.so.conf; then
10623     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' ' '`
10624     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10625   fi
10626
10627   # We used to test for /lib/ld.so.1 and disable shared libraries on
10628   # powerpc, because MkLinux only supported shared libraries with the
10629   # GNU dynamic linker.  Since this was broken with cross compilers,
10630   # most powerpc-linux boxes support dynamic linking these days and
10631   # people can always --disable-shared, the test was removed, and we
10632   # assume the GNU/Linux dynamic linker is in use.
10633   dynamic_linker='GNU/Linux ld.so'
10634   ;;
10635
10636 netbsdelf*-gnu)
10637   version_type=linux
10638   need_lib_prefix=no
10639   need_version=no
10640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10641   soname_spec='${libname}${release}${shared_ext}$major'
10642   shlibpath_var=LD_LIBRARY_PATH
10643   shlibpath_overrides_runpath=no
10644   hardcode_into_libs=yes
10645   dynamic_linker='NetBSD ld.elf_so'
10646   ;;
10647
10648 netbsd*)
10649   version_type=sunos
10650   need_lib_prefix=no
10651   need_version=no
10652   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10653     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10654     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10655     dynamic_linker='NetBSD (a.out) ld.so'
10656   else
10657     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10658     soname_spec='${libname}${release}${shared_ext}$major'
10659     dynamic_linker='NetBSD ld.elf_so'
10660   fi
10661   shlibpath_var=LD_LIBRARY_PATH
10662   shlibpath_overrides_runpath=yes
10663   hardcode_into_libs=yes
10664   ;;
10665
10666 newsos6)
10667   version_type=linux
10668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669   shlibpath_var=LD_LIBRARY_PATH
10670   shlibpath_overrides_runpath=yes
10671   ;;
10672
10673 *nto* | *qnx*)
10674   version_type=qnx
10675   need_lib_prefix=no
10676   need_version=no
10677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678   soname_spec='${libname}${release}${shared_ext}$major'
10679   shlibpath_var=LD_LIBRARY_PATH
10680   shlibpath_overrides_runpath=no
10681   hardcode_into_libs=yes
10682   dynamic_linker='ldqnx.so'
10683   ;;
10684
10685 openbsd*)
10686   version_type=sunos
10687   sys_lib_dlsearch_path_spec="/usr/lib"
10688   need_lib_prefix=no
10689   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10690   case $host_os in
10691     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10692     *)                          need_version=no  ;;
10693   esac
10694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10695   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10696   shlibpath_var=LD_LIBRARY_PATH
10697   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10698     case $host_os in
10699       openbsd2.[89] | openbsd2.[89].*)
10700         shlibpath_overrides_runpath=no
10701         ;;
10702       *)
10703         shlibpath_overrides_runpath=yes
10704         ;;
10705       esac
10706   else
10707     shlibpath_overrides_runpath=yes
10708   fi
10709   ;;
10710
10711 os2*)
10712   libname_spec='$name'
10713   shrext_cmds=".dll"
10714   need_lib_prefix=no
10715   library_names_spec='$libname${shared_ext} $libname.a'
10716   dynamic_linker='OS/2 ld.exe'
10717   shlibpath_var=LIBPATH
10718   ;;
10719
10720 osf3* | osf4* | osf5*)
10721   version_type=osf
10722   need_lib_prefix=no
10723   need_version=no
10724   soname_spec='${libname}${release}${shared_ext}$major'
10725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726   shlibpath_var=LD_LIBRARY_PATH
10727   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10728   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10729   ;;
10730
10731 rdos*)
10732   dynamic_linker=no
10733   ;;
10734
10735 solaris*)
10736   version_type=linux
10737   need_lib_prefix=no
10738   need_version=no
10739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10740   soname_spec='${libname}${release}${shared_ext}$major'
10741   shlibpath_var=LD_LIBRARY_PATH
10742   shlibpath_overrides_runpath=yes
10743   hardcode_into_libs=yes
10744   # ldd complains unless libraries are executable
10745   postinstall_cmds='chmod +x $lib'
10746   ;;
10747
10748 sunos4*)
10749   version_type=sunos
10750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10751   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10752   shlibpath_var=LD_LIBRARY_PATH
10753   shlibpath_overrides_runpath=yes
10754   if test "$with_gnu_ld" = yes; then
10755     need_lib_prefix=no
10756   fi
10757   need_version=yes
10758   ;;
10759
10760 sysv4 | sysv4.3*)
10761   version_type=linux
10762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10763   soname_spec='${libname}${release}${shared_ext}$major'
10764   shlibpath_var=LD_LIBRARY_PATH
10765   case $host_vendor in
10766     sni)
10767       shlibpath_overrides_runpath=no
10768       need_lib_prefix=no
10769       runpath_var=LD_RUN_PATH
10770       ;;
10771     siemens)
10772       need_lib_prefix=no
10773       ;;
10774     motorola)
10775       need_lib_prefix=no
10776       need_version=no
10777       shlibpath_overrides_runpath=no
10778       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10779       ;;
10780   esac
10781   ;;
10782
10783 sysv4*MP*)
10784   if test -d /usr/nec ;then
10785     version_type=linux
10786     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10787     soname_spec='$libname${shared_ext}.$major'
10788     shlibpath_var=LD_LIBRARY_PATH
10789   fi
10790   ;;
10791
10792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10793   version_type=freebsd-elf
10794   need_lib_prefix=no
10795   need_version=no
10796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10797   soname_spec='${libname}${release}${shared_ext}$major'
10798   shlibpath_var=LD_LIBRARY_PATH
10799   shlibpath_overrides_runpath=yes
10800   hardcode_into_libs=yes
10801   if test "$with_gnu_ld" = yes; then
10802     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10803   else
10804     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10805     case $host_os in
10806       sco3.2v5*)
10807         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10808         ;;
10809     esac
10810   fi
10811   sys_lib_dlsearch_path_spec='/usr/lib'
10812   ;;
10813
10814 tpf*)
10815   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10816   version_type=linux
10817   need_lib_prefix=no
10818   need_version=no
10819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820   shlibpath_var=LD_LIBRARY_PATH
10821   shlibpath_overrides_runpath=no
10822   hardcode_into_libs=yes
10823   ;;
10824
10825 uts4*)
10826   version_type=linux
10827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10828   soname_spec='${libname}${release}${shared_ext}$major'
10829   shlibpath_var=LD_LIBRARY_PATH
10830   ;;
10831
10832 *)
10833   dynamic_linker=no
10834   ;;
10835 esac
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10837 $as_echo "$dynamic_linker" >&6; }
10838 test "$dynamic_linker" = no && can_build_shared=no
10839
10840 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10841 if test "$GCC" = yes; then
10842   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10843 fi
10844
10845 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10846   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10847 fi
10848 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10849   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10850 fi
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
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10939 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10940 hardcode_action=
10941 if test -n "$hardcode_libdir_flag_spec" ||
10942    test -n "$runpath_var" ||
10943    test "X$hardcode_automatic" = "Xyes" ; then
10944
10945   # We can hardcode non-existent directories.
10946   if test "$hardcode_direct" != no &&
10947      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10948      # have to relink, otherwise we might link with an installed library
10949      # when we should be linking with a yet-to-be-installed one
10950      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10951      test "$hardcode_minus_L" != no; then
10952     # Linking always hardcodes the temporary library directory.
10953     hardcode_action=relink
10954   else
10955     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10956     hardcode_action=immediate
10957   fi
10958 else
10959   # We cannot hardcode anything, or else we can only hardcode existing
10960   # directories.
10961   hardcode_action=unsupported
10962 fi
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10964 $as_echo "$hardcode_action" >&6; }
10965
10966 if test "$hardcode_action" = relink ||
10967    test "$inherit_rpath" = yes; then
10968   # Fast installation is not supported
10969   enable_fast_install=no
10970 elif test "$shlibpath_overrides_runpath" = yes ||
10971      test "$enable_shared" = no; then
10972   # Fast installation is not necessary
10973   enable_fast_install=needless
10974 fi
10975
10976
10977
10978
10979
10980
10981   if test "x$enable_dlopen" != xyes; then
10982   enable_dlopen=unknown
10983   enable_dlopen_self=unknown
10984   enable_dlopen_self_static=unknown
10985 else
10986   lt_cv_dlopen=no
10987   lt_cv_dlopen_libs=
10988
10989   case $host_os in
10990   beos*)
10991     lt_cv_dlopen="load_add_on"
10992     lt_cv_dlopen_libs=
10993     lt_cv_dlopen_self=yes
10994     ;;
10995
10996   mingw* | pw32* | cegcc*)
10997     lt_cv_dlopen="LoadLibrary"
10998     lt_cv_dlopen_libs=
10999     ;;
11000
11001   cygwin*)
11002     lt_cv_dlopen="dlopen"
11003     lt_cv_dlopen_libs=
11004     ;;
11005
11006   darwin*)
11007   # if libdl is installed we need to link against it
11008     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11009 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11010 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11011   $as_echo_n "(cached) " >&6
11012 else
11013   ac_check_lib_save_LIBS=$LIBS
11014 LIBS="-ldl  $LIBS"
11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016 /* end confdefs.h.  */
11017
11018 /* Override any GCC internal prototype to avoid an error.
11019    Use char because int might match the return type of a GCC
11020    builtin and then its argument prototype would still apply.  */
11021 #ifdef __cplusplus
11022 extern "C"
11023 #endif
11024 char dlopen ();
11025 int
11026 main ()
11027 {
11028 return dlopen ();
11029   ;
11030   return 0;
11031 }
11032 _ACEOF
11033 if ac_fn_c_try_link "$LINENO"; then :
11034   ac_cv_lib_dl_dlopen=yes
11035 else
11036   ac_cv_lib_dl_dlopen=no
11037 fi
11038 rm -f core conftest.err conftest.$ac_objext \
11039     conftest$ac_exeext conftest.$ac_ext
11040 LIBS=$ac_check_lib_save_LIBS
11041 fi
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11043 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11044 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11045   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11046 else
11047
11048     lt_cv_dlopen="dyld"
11049     lt_cv_dlopen_libs=
11050     lt_cv_dlopen_self=yes
11051
11052 fi
11053
11054     ;;
11055
11056   *)
11057     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11058 if test "x$ac_cv_func_shl_load" = x""yes; then :
11059   lt_cv_dlopen="shl_load"
11060 else
11061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11062 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11063 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11064   $as_echo_n "(cached) " >&6
11065 else
11066   ac_check_lib_save_LIBS=$LIBS
11067 LIBS="-ldld  $LIBS"
11068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069 /* end confdefs.h.  */
11070
11071 /* Override any GCC internal prototype to avoid an error.
11072    Use char because int might match the return type of a GCC
11073    builtin and then its argument prototype would still apply.  */
11074 #ifdef __cplusplus
11075 extern "C"
11076 #endif
11077 char shl_load ();
11078 int
11079 main ()
11080 {
11081 return shl_load ();
11082   ;
11083   return 0;
11084 }
11085 _ACEOF
11086 if ac_fn_c_try_link "$LINENO"; then :
11087   ac_cv_lib_dld_shl_load=yes
11088 else
11089   ac_cv_lib_dld_shl_load=no
11090 fi
11091 rm -f core conftest.err conftest.$ac_objext \
11092     conftest$ac_exeext conftest.$ac_ext
11093 LIBS=$ac_check_lib_save_LIBS
11094 fi
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11096 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11097 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11098   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11099 else
11100   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11101 if test "x$ac_cv_func_dlopen" = x""yes; then :
11102   lt_cv_dlopen="dlopen"
11103 else
11104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11105 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11106 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11107   $as_echo_n "(cached) " >&6
11108 else
11109   ac_check_lib_save_LIBS=$LIBS
11110 LIBS="-ldl  $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_dl_dlopen=yes
11131 else
11132   ac_cv_lib_dl_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_dl_dlopen" >&5
11139 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11140 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11141   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11142 else
11143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11144 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11145 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11146   $as_echo_n "(cached) " >&6
11147 else
11148   ac_check_lib_save_LIBS=$LIBS
11149 LIBS="-lsvld  $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 dlopen ();
11160 int
11161 main ()
11162 {
11163 return dlopen ();
11164   ;
11165   return 0;
11166 }
11167 _ACEOF
11168 if ac_fn_c_try_link "$LINENO"; then :
11169   ac_cv_lib_svld_dlopen=yes
11170 else
11171   ac_cv_lib_svld_dlopen=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_svld_dlopen" >&5
11178 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11179 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11180   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11181 else
11182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11183 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11184 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11185   $as_echo_n "(cached) " >&6
11186 else
11187   ac_check_lib_save_LIBS=$LIBS
11188 LIBS="-ldld  $LIBS"
11189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190 /* end confdefs.h.  */
11191
11192 /* Override any GCC internal prototype to avoid an error.
11193    Use char because int might match the return type of a GCC
11194    builtin and then its argument prototype would still apply.  */
11195 #ifdef __cplusplus
11196 extern "C"
11197 #endif
11198 char dld_link ();
11199 int
11200 main ()
11201 {
11202 return dld_link ();
11203   ;
11204   return 0;
11205 }
11206 _ACEOF
11207 if ac_fn_c_try_link "$LINENO"; then :
11208   ac_cv_lib_dld_dld_link=yes
11209 else
11210   ac_cv_lib_dld_dld_link=no
11211 fi
11212 rm -f core conftest.err conftest.$ac_objext \
11213     conftest$ac_exeext conftest.$ac_ext
11214 LIBS=$ac_check_lib_save_LIBS
11215 fi
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11217 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11218 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11219   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11220 fi
11221
11222
11223 fi
11224
11225
11226 fi
11227
11228
11229 fi
11230
11231
11232 fi
11233
11234
11235 fi
11236
11237     ;;
11238   esac
11239
11240   if test "x$lt_cv_dlopen" != xno; then
11241     enable_dlopen=yes
11242   else
11243     enable_dlopen=no
11244   fi
11245
11246   case $lt_cv_dlopen in
11247   dlopen)
11248     save_CPPFLAGS="$CPPFLAGS"
11249     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11250
11251     save_LDFLAGS="$LDFLAGS"
11252     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11253
11254     save_LIBS="$LIBS"
11255     LIBS="$lt_cv_dlopen_libs $LIBS"
11256
11257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11258 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11259 if test "${lt_cv_dlopen_self+set}" = set; then :
11260   $as_echo_n "(cached) " >&6
11261 else
11262           if test "$cross_compiling" = yes; then :
11263   lt_cv_dlopen_self=cross
11264 else
11265   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11266   lt_status=$lt_dlunknown
11267   cat > conftest.$ac_ext <<_LT_EOF
11268 #line 11268 "configure"
11269 #include "confdefs.h"
11270
11271 #if HAVE_DLFCN_H
11272 #include <dlfcn.h>
11273 #endif
11274
11275 #include <stdio.h>
11276
11277 #ifdef RTLD_GLOBAL
11278 #  define LT_DLGLOBAL           RTLD_GLOBAL
11279 #else
11280 #  ifdef DL_GLOBAL
11281 #    define LT_DLGLOBAL         DL_GLOBAL
11282 #  else
11283 #    define LT_DLGLOBAL         0
11284 #  endif
11285 #endif
11286
11287 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11288    find out it does not work in some platform. */
11289 #ifndef LT_DLLAZY_OR_NOW
11290 #  ifdef RTLD_LAZY
11291 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11292 #  else
11293 #    ifdef DL_LAZY
11294 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11295 #    else
11296 #      ifdef RTLD_NOW
11297 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11298 #      else
11299 #        ifdef DL_NOW
11300 #          define LT_DLLAZY_OR_NOW      DL_NOW
11301 #        else
11302 #          define LT_DLLAZY_OR_NOW      0
11303 #        endif
11304 #      endif
11305 #    endif
11306 #  endif
11307 #endif
11308
11309 void fnord() { int i=42;}
11310 int main ()
11311 {
11312   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11313   int status = $lt_dlunknown;
11314
11315   if (self)
11316     {
11317       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11318       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11319       /* dlclose (self); */
11320     }
11321   else
11322     puts (dlerror ());
11323
11324   return status;
11325 }
11326 _LT_EOF
11327   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11328   (eval $ac_link) 2>&5
11329   ac_status=$?
11330   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11331   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11332     (./conftest; exit; ) >&5 2>/dev/null
11333     lt_status=$?
11334     case x$lt_status in
11335       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11336       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11337       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11338     esac
11339   else :
11340     # compilation failed
11341     lt_cv_dlopen_self=no
11342   fi
11343 fi
11344 rm -fr conftest*
11345
11346
11347 fi
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11349 $as_echo "$lt_cv_dlopen_self" >&6; }
11350
11351     if test "x$lt_cv_dlopen_self" = xyes; then
11352       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11353       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11354 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11355 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11356   $as_echo_n "(cached) " >&6
11357 else
11358           if test "$cross_compiling" = yes; then :
11359   lt_cv_dlopen_self_static=cross
11360 else
11361   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11362   lt_status=$lt_dlunknown
11363   cat > conftest.$ac_ext <<_LT_EOF
11364 #line 11364 "configure"
11365 #include "confdefs.h"
11366
11367 #if HAVE_DLFCN_H
11368 #include <dlfcn.h>
11369 #endif
11370
11371 #include <stdio.h>
11372
11373 #ifdef RTLD_GLOBAL
11374 #  define LT_DLGLOBAL           RTLD_GLOBAL
11375 #else
11376 #  ifdef DL_GLOBAL
11377 #    define LT_DLGLOBAL         DL_GLOBAL
11378 #  else
11379 #    define LT_DLGLOBAL         0
11380 #  endif
11381 #endif
11382
11383 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11384    find out it does not work in some platform. */
11385 #ifndef LT_DLLAZY_OR_NOW
11386 #  ifdef RTLD_LAZY
11387 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11388 #  else
11389 #    ifdef DL_LAZY
11390 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11391 #    else
11392 #      ifdef RTLD_NOW
11393 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11394 #      else
11395 #        ifdef DL_NOW
11396 #          define LT_DLLAZY_OR_NOW      DL_NOW
11397 #        else
11398 #          define LT_DLLAZY_OR_NOW      0
11399 #        endif
11400 #      endif
11401 #    endif
11402 #  endif
11403 #endif
11404
11405 void fnord() { int i=42;}
11406 int main ()
11407 {
11408   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11409   int status = $lt_dlunknown;
11410
11411   if (self)
11412     {
11413       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11414       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11415       /* dlclose (self); */
11416     }
11417   else
11418     puts (dlerror ());
11419
11420   return status;
11421 }
11422 _LT_EOF
11423   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11424   (eval $ac_link) 2>&5
11425   ac_status=$?
11426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11427   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11428     (./conftest; exit; ) >&5 2>/dev/null
11429     lt_status=$?
11430     case x$lt_status in
11431       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11432       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11433       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11434     esac
11435   else :
11436     # compilation failed
11437     lt_cv_dlopen_self_static=no
11438   fi
11439 fi
11440 rm -fr conftest*
11441
11442
11443 fi
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11445 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11446     fi
11447
11448     CPPFLAGS="$save_CPPFLAGS"
11449     LDFLAGS="$save_LDFLAGS"
11450     LIBS="$save_LIBS"
11451     ;;
11452   esac
11453
11454   case $lt_cv_dlopen_self in
11455   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11456   *) enable_dlopen_self=unknown ;;
11457   esac
11458
11459   case $lt_cv_dlopen_self_static in
11460   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11461   *) enable_dlopen_self_static=unknown ;;
11462   esac
11463 fi
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481 striplib=
11482 old_striplib=
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11484 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11485 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11486   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11487   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11489 $as_echo "yes" >&6; }
11490 else
11491 # FIXME - insert some real tests, host_os isn't really good enough
11492   case $host_os in
11493   darwin*)
11494     if test -n "$STRIP" ; then
11495       striplib="$STRIP -x"
11496       old_striplib="$STRIP -S"
11497       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11498 $as_echo "yes" >&6; }
11499     else
11500       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501 $as_echo "no" >&6; }
11502     fi
11503     ;;
11504   *)
11505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506 $as_echo "no" >&6; }
11507     ;;
11508   esac
11509 fi
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522   # Report which library types will actually be built
11523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11524 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11526 $as_echo "$can_build_shared" >&6; }
11527
11528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11529 $as_echo_n "checking whether to build shared libraries... " >&6; }
11530   test "$can_build_shared" = "no" && enable_shared=no
11531
11532   # On AIX, shared libraries and static libraries use the same namespace, and
11533   # are all built from PIC.
11534   case $host_os in
11535   aix3*)
11536     test "$enable_shared" = yes && enable_static=no
11537     if test -n "$RANLIB"; then
11538       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11539       postinstall_cmds='$RANLIB $lib'
11540     fi
11541     ;;
11542
11543   aix[4-9]*)
11544     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11545       test "$enable_shared" = yes && enable_static=no
11546     fi
11547     ;;
11548   esac
11549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11550 $as_echo "$enable_shared" >&6; }
11551
11552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11553 $as_echo_n "checking whether to build static libraries... " >&6; }
11554   # Make sure either enable_shared or enable_static is yes.
11555   test "$enable_shared" = yes || enable_static=yes
11556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11557 $as_echo "$enable_static" >&6; }
11558
11559
11560
11561
11562 fi
11563 ac_ext=c
11564 ac_cpp='$CPP $CPPFLAGS'
11565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11568
11569 CC="$lt_save_CC"
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583         ac_config_commands="$ac_config_commands libtool"
11584
11585
11586
11587
11588 # Only expand once:
11589
11590
11591
11592 ac_ext=cpp
11593 ac_cpp='$CXXCPP $CPPFLAGS'
11594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11597 if test -z "$CXX"; then
11598   if test -n "$CCC"; then
11599     CXX=$CCC
11600   else
11601     if test -n "$ac_tool_prefix"; then
11602   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11603   do
11604     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11607 $as_echo_n "checking for $ac_word... " >&6; }
11608 if test "${ac_cv_prog_CXX+set}" = set; then :
11609   $as_echo_n "(cached) " >&6
11610 else
11611   if test -n "$CXX"; then
11612   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11613 else
11614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615 for as_dir in $PATH
11616 do
11617   IFS=$as_save_IFS
11618   test -z "$as_dir" && as_dir=.
11619     for ac_exec_ext in '' $ac_executable_extensions; do
11620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11621     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11623     break 2
11624   fi
11625 done
11626   done
11627 IFS=$as_save_IFS
11628
11629 fi
11630 fi
11631 CXX=$ac_cv_prog_CXX
11632 if test -n "$CXX"; then
11633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11634 $as_echo "$CXX" >&6; }
11635 else
11636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637 $as_echo "no" >&6; }
11638 fi
11639
11640
11641     test -n "$CXX" && break
11642   done
11643 fi
11644 if test -z "$CXX"; then
11645   ac_ct_CXX=$CXX
11646   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11647 do
11648   # Extract the first word of "$ac_prog", so it can be a program name with args.
11649 set dummy $ac_prog; ac_word=$2
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11651 $as_echo_n "checking for $ac_word... " >&6; }
11652 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11653   $as_echo_n "(cached) " >&6
11654 else
11655   if test -n "$ac_ct_CXX"; then
11656   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11657 else
11658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11659 for as_dir in $PATH
11660 do
11661   IFS=$as_save_IFS
11662   test -z "$as_dir" && as_dir=.
11663     for ac_exec_ext in '' $ac_executable_extensions; do
11664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11665     ac_cv_prog_ac_ct_CXX="$ac_prog"
11666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11667     break 2
11668   fi
11669 done
11670   done
11671 IFS=$as_save_IFS
11672
11673 fi
11674 fi
11675 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11676 if test -n "$ac_ct_CXX"; then
11677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11678 $as_echo "$ac_ct_CXX" >&6; }
11679 else
11680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681 $as_echo "no" >&6; }
11682 fi
11683
11684
11685   test -n "$ac_ct_CXX" && break
11686 done
11687
11688   if test "x$ac_ct_CXX" = x; then
11689     CXX="g++"
11690   else
11691     case $cross_compiling:$ac_tool_warned in
11692 yes:)
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11695 ac_tool_warned=yes ;;
11696 esac
11697     CXX=$ac_ct_CXX
11698   fi
11699 fi
11700
11701   fi
11702 fi
11703 # Provide some information about the compiler.
11704 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11705 set X $ac_compile
11706 ac_compiler=$2
11707 for ac_option in --version -v -V -qversion; do
11708   { { ac_try="$ac_compiler $ac_option >&5"
11709 case "(($ac_try" in
11710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711   *) ac_try_echo=$ac_try;;
11712 esac
11713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11714 $as_echo "$ac_try_echo"; } >&5
11715   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11716   ac_status=$?
11717   if test -s conftest.err; then
11718     sed '10a\
11719 ... rest of stderr output deleted ...
11720          10q' conftest.err >conftest.er1
11721     cat conftest.er1 >&5
11722   fi
11723   rm -f conftest.er1 conftest.err
11724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11725   test $ac_status = 0; }
11726 done
11727
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11729 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11730 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11731   $as_echo_n "(cached) " >&6
11732 else
11733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11734 /* end confdefs.h.  */
11735
11736 int
11737 main ()
11738 {
11739 #ifndef __GNUC__
11740        choke me
11741 #endif
11742
11743   ;
11744   return 0;
11745 }
11746 _ACEOF
11747 if ac_fn_cxx_try_compile "$LINENO"; then :
11748   ac_compiler_gnu=yes
11749 else
11750   ac_compiler_gnu=no
11751 fi
11752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11753 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11754
11755 fi
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11757 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11758 if test $ac_compiler_gnu = yes; then
11759   GXX=yes
11760 else
11761   GXX=
11762 fi
11763 ac_test_CXXFLAGS=${CXXFLAGS+set}
11764 ac_save_CXXFLAGS=$CXXFLAGS
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11766 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11767 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11768   $as_echo_n "(cached) " >&6
11769 else
11770   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11771    ac_cxx_werror_flag=yes
11772    ac_cv_prog_cxx_g=no
11773    CXXFLAGS="-g"
11774    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11775 /* end confdefs.h.  */
11776
11777 int
11778 main ()
11779 {
11780
11781   ;
11782   return 0;
11783 }
11784 _ACEOF
11785 if ac_fn_cxx_try_compile "$LINENO"; then :
11786   ac_cv_prog_cxx_g=yes
11787 else
11788   CXXFLAGS=""
11789       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h.  */
11791
11792 int
11793 main ()
11794 {
11795
11796   ;
11797   return 0;
11798 }
11799 _ACEOF
11800 if ac_fn_cxx_try_compile "$LINENO"; then :
11801
11802 else
11803   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11804          CXXFLAGS="-g"
11805          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h.  */
11807
11808 int
11809 main ()
11810 {
11811
11812   ;
11813   return 0;
11814 }
11815 _ACEOF
11816 if ac_fn_cxx_try_compile "$LINENO"; then :
11817   ac_cv_prog_cxx_g=yes
11818 fi
11819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11820 fi
11821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822 fi
11823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11824    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11825 fi
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11827 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11828 if test "$ac_test_CXXFLAGS" = set; then
11829   CXXFLAGS=$ac_save_CXXFLAGS
11830 elif test $ac_cv_prog_cxx_g = yes; then
11831   if test "$GXX" = yes; then
11832     CXXFLAGS="-g -O2"
11833   else
11834     CXXFLAGS="-g"
11835   fi
11836 else
11837   if test "$GXX" = yes; then
11838     CXXFLAGS="-O2"
11839   else
11840     CXXFLAGS=
11841   fi
11842 fi
11843 ac_ext=c
11844 ac_cpp='$CPP $CPPFLAGS'
11845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11848
11849 depcc="$CXX"  am_compiler_list=
11850
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11852 $as_echo_n "checking dependency style of $depcc... " >&6; }
11853 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11854   $as_echo_n "(cached) " >&6
11855 else
11856   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11857   # We make a subdir and do the tests there.  Otherwise we can end up
11858   # making bogus files that we don't know about and never remove.  For
11859   # instance it was reported that on HP-UX the gcc test will end up
11860   # making a dummy file named `D' -- because `-MD' means `put the output
11861   # in D'.
11862   mkdir conftest.dir
11863   # Copy depcomp to subdir because otherwise we won't find it if we're
11864   # using a relative directory.
11865   cp "$am_depcomp" conftest.dir
11866   cd conftest.dir
11867   # We will build objects and dependencies in a subdirectory because
11868   # it helps to detect inapplicable dependency modes.  For instance
11869   # both Tru64's cc and ICC support -MD to output dependencies as a
11870   # side effect of compilation, but ICC will put the dependencies in
11871   # the current directory while Tru64 will put them in the object
11872   # directory.
11873   mkdir sub
11874
11875   am_cv_CXX_dependencies_compiler_type=none
11876   if test "$am_compiler_list" = ""; then
11877      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11878   fi
11879   am__universal=false
11880   case " $depcc " in #(
11881      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11882      esac
11883
11884   for depmode in $am_compiler_list; do
11885     # Setup a source with many dependencies, because some compilers
11886     # like to wrap large dependency lists on column 80 (with \), and
11887     # we should not choose a depcomp mode which is confused by this.
11888     #
11889     # We need to recreate these files for each test, as the compiler may
11890     # overwrite some of them when testing with obscure command lines.
11891     # This happens at least with the AIX C compiler.
11892     : > sub/conftest.c
11893     for i in 1 2 3 4 5 6; do
11894       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11895       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11896       # Solaris 8's {/usr,}/bin/sh.
11897       touch sub/conftst$i.h
11898     done
11899     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11900
11901     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11902     # mode.  It turns out that the SunPro C++ compiler does not properly
11903     # handle `-M -o', and we need to detect this.  Also, some Intel
11904     # versions had trouble with output in subdirs
11905     am__obj=sub/conftest.${OBJEXT-o}
11906     am__minus_obj="-o $am__obj"
11907     case $depmode in
11908     gcc)
11909       # This depmode causes a compiler race in universal mode.
11910       test "$am__universal" = false || continue
11911       ;;
11912     nosideeffect)
11913       # after this tag, mechanisms are not by side-effect, so they'll
11914       # only be used when explicitly requested
11915       if test "x$enable_dependency_tracking" = xyes; then
11916         continue
11917       else
11918         break
11919       fi
11920       ;;
11921     msvisualcpp | msvcmsys)
11922       # This compiler won't grok `-c -o', but also, the minuso test has
11923       # not run yet.  These depmodes are late enough in the game, and
11924       # so weak that their functioning should not be impacted.
11925       am__obj=conftest.${OBJEXT-o}
11926       am__minus_obj=
11927       ;;
11928     none) break ;;
11929     esac
11930     if depmode=$depmode \
11931        source=sub/conftest.c object=$am__obj \
11932        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11933        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11934          >/dev/null 2>conftest.err &&
11935        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11936        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11937        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11938        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11939       # icc doesn't choke on unknown options, it will just issue warnings
11940       # or remarks (even with -Werror).  So we grep stderr for any message
11941       # that says an option was ignored or not supported.
11942       # When given -MP, icc 7.0 and 7.1 complain thusly:
11943       #   icc: Command line warning: ignoring option '-M'; no argument required
11944       # The diagnosis changed in icc 8.0:
11945       #   icc: Command line remark: option '-MP' not supported
11946       if (grep 'ignoring option' conftest.err ||
11947           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11948         am_cv_CXX_dependencies_compiler_type=$depmode
11949         break
11950       fi
11951     fi
11952   done
11953
11954   cd ..
11955   rm -rf conftest.dir
11956 else
11957   am_cv_CXX_dependencies_compiler_type=none
11958 fi
11959
11960 fi
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11962 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11963 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11964
11965  if
11966   test "x$enable_dependency_tracking" != xno \
11967   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11968   am__fastdepCXX_TRUE=
11969   am__fastdepCXX_FALSE='#'
11970 else
11971   am__fastdepCXX_TRUE='#'
11972   am__fastdepCXX_FALSE=
11973 fi
11974
11975
11976
11977 ac_ext=cpp
11978 ac_cpp='$CXXCPP $CPPFLAGS'
11979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11982 if test -z "$CXX"; then
11983   if test -n "$CCC"; then
11984     CXX=$CCC
11985   else
11986     if test -n "$ac_tool_prefix"; then
11987   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11988   do
11989     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11990 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11992 $as_echo_n "checking for $ac_word... " >&6; }
11993 if test "${ac_cv_prog_CXX+set}" = set; then :
11994   $as_echo_n "(cached) " >&6
11995 else
11996   if test -n "$CXX"; then
11997   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11998 else
11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12001 do
12002   IFS=$as_save_IFS
12003   test -z "$as_dir" && as_dir=.
12004     for ac_exec_ext in '' $ac_executable_extensions; do
12005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12006     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12008     break 2
12009   fi
12010 done
12011   done
12012 IFS=$as_save_IFS
12013
12014 fi
12015 fi
12016 CXX=$ac_cv_prog_CXX
12017 if test -n "$CXX"; then
12018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12019 $as_echo "$CXX" >&6; }
12020 else
12021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022 $as_echo "no" >&6; }
12023 fi
12024
12025
12026     test -n "$CXX" && break
12027   done
12028 fi
12029 if test -z "$CXX"; then
12030   ac_ct_CXX=$CXX
12031   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12032 do
12033   # Extract the first word of "$ac_prog", so it can be a program name with args.
12034 set dummy $ac_prog; ac_word=$2
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12036 $as_echo_n "checking for $ac_word... " >&6; }
12037 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
12038   $as_echo_n "(cached) " >&6
12039 else
12040   if test -n "$ac_ct_CXX"; then
12041   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12042 else
12043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12044 for as_dir in $PATH
12045 do
12046   IFS=$as_save_IFS
12047   test -z "$as_dir" && as_dir=.
12048     for ac_exec_ext in '' $ac_executable_extensions; do
12049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12050     ac_cv_prog_ac_ct_CXX="$ac_prog"
12051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12052     break 2
12053   fi
12054 done
12055   done
12056 IFS=$as_save_IFS
12057
12058 fi
12059 fi
12060 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12061 if test -n "$ac_ct_CXX"; then
12062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12063 $as_echo "$ac_ct_CXX" >&6; }
12064 else
12065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066 $as_echo "no" >&6; }
12067 fi
12068
12069
12070   test -n "$ac_ct_CXX" && break
12071 done
12072
12073   if test "x$ac_ct_CXX" = x; then
12074     CXX="g++"
12075   else
12076     case $cross_compiling:$ac_tool_warned in
12077 yes:)
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12080 ac_tool_warned=yes ;;
12081 esac
12082     CXX=$ac_ct_CXX
12083   fi
12084 fi
12085
12086   fi
12087 fi
12088 # Provide some information about the compiler.
12089 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12090 set X $ac_compile
12091 ac_compiler=$2
12092 for ac_option in --version -v -V -qversion; do
12093   { { ac_try="$ac_compiler $ac_option >&5"
12094 case "(($ac_try" in
12095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096   *) ac_try_echo=$ac_try;;
12097 esac
12098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12099 $as_echo "$ac_try_echo"; } >&5
12100   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12101   ac_status=$?
12102   if test -s conftest.err; then
12103     sed '10a\
12104 ... rest of stderr output deleted ...
12105          10q' conftest.err >conftest.er1
12106     cat conftest.er1 >&5
12107   fi
12108   rm -f conftest.er1 conftest.err
12109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12110   test $ac_status = 0; }
12111 done
12112
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12114 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12115 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
12116   $as_echo_n "(cached) " >&6
12117 else
12118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h.  */
12120
12121 int
12122 main ()
12123 {
12124 #ifndef __GNUC__
12125        choke me
12126 #endif
12127
12128   ;
12129   return 0;
12130 }
12131 _ACEOF
12132 if ac_fn_cxx_try_compile "$LINENO"; then :
12133   ac_compiler_gnu=yes
12134 else
12135   ac_compiler_gnu=no
12136 fi
12137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12138 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12139
12140 fi
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12142 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12143 if test $ac_compiler_gnu = yes; then
12144   GXX=yes
12145 else
12146   GXX=
12147 fi
12148 ac_test_CXXFLAGS=${CXXFLAGS+set}
12149 ac_save_CXXFLAGS=$CXXFLAGS
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12151 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12152 if test "${ac_cv_prog_cxx_g+set}" = set; then :
12153   $as_echo_n "(cached) " >&6
12154 else
12155   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12156    ac_cxx_werror_flag=yes
12157    ac_cv_prog_cxx_g=no
12158    CXXFLAGS="-g"
12159    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160 /* end confdefs.h.  */
12161
12162 int
12163 main ()
12164 {
12165
12166   ;
12167   return 0;
12168 }
12169 _ACEOF
12170 if ac_fn_cxx_try_compile "$LINENO"; then :
12171   ac_cv_prog_cxx_g=yes
12172 else
12173   CXXFLAGS=""
12174       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h.  */
12176
12177 int
12178 main ()
12179 {
12180
12181   ;
12182   return 0;
12183 }
12184 _ACEOF
12185 if ac_fn_cxx_try_compile "$LINENO"; then :
12186
12187 else
12188   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12189          CXXFLAGS="-g"
12190          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h.  */
12192
12193 int
12194 main ()
12195 {
12196
12197   ;
12198   return 0;
12199 }
12200 _ACEOF
12201 if ac_fn_cxx_try_compile "$LINENO"; then :
12202   ac_cv_prog_cxx_g=yes
12203 fi
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205 fi
12206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207 fi
12208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12209    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12210 fi
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12212 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12213 if test "$ac_test_CXXFLAGS" = set; then
12214   CXXFLAGS=$ac_save_CXXFLAGS
12215 elif test $ac_cv_prog_cxx_g = yes; then
12216   if test "$GXX" = yes; then
12217     CXXFLAGS="-g -O2"
12218   else
12219     CXXFLAGS="-g"
12220   fi
12221 else
12222   if test "$GXX" = yes; then
12223     CXXFLAGS="-O2"
12224   else
12225     CXXFLAGS=
12226   fi
12227 fi
12228 ac_ext=c
12229 ac_cpp='$CPP $CPPFLAGS'
12230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12233
12234 depcc="$CXX"  am_compiler_list=
12235
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12237 $as_echo_n "checking dependency style of $depcc... " >&6; }
12238 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
12239   $as_echo_n "(cached) " >&6
12240 else
12241   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12242   # We make a subdir and do the tests there.  Otherwise we can end up
12243   # making bogus files that we don't know about and never remove.  For
12244   # instance it was reported that on HP-UX the gcc test will end up
12245   # making a dummy file named `D' -- because `-MD' means `put the output
12246   # in D'.
12247   mkdir conftest.dir
12248   # Copy depcomp to subdir because otherwise we won't find it if we're
12249   # using a relative directory.
12250   cp "$am_depcomp" conftest.dir
12251   cd conftest.dir
12252   # We will build objects and dependencies in a subdirectory because
12253   # it helps to detect inapplicable dependency modes.  For instance
12254   # both Tru64's cc and ICC support -MD to output dependencies as a
12255   # side effect of compilation, but ICC will put the dependencies in
12256   # the current directory while Tru64 will put them in the object
12257   # directory.
12258   mkdir sub
12259
12260   am_cv_CXX_dependencies_compiler_type=none
12261   if test "$am_compiler_list" = ""; then
12262      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12263   fi
12264   am__universal=false
12265   case " $depcc " in #(
12266      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12267      esac
12268
12269   for depmode in $am_compiler_list; do
12270     # Setup a source with many dependencies, because some compilers
12271     # like to wrap large dependency lists on column 80 (with \), and
12272     # we should not choose a depcomp mode which is confused by this.
12273     #
12274     # We need to recreate these files for each test, as the compiler may
12275     # overwrite some of them when testing with obscure command lines.
12276     # This happens at least with the AIX C compiler.
12277     : > sub/conftest.c
12278     for i in 1 2 3 4 5 6; do
12279       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12280       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12281       # Solaris 8's {/usr,}/bin/sh.
12282       touch sub/conftst$i.h
12283     done
12284     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12285
12286     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12287     # mode.  It turns out that the SunPro C++ compiler does not properly
12288     # handle `-M -o', and we need to detect this.  Also, some Intel
12289     # versions had trouble with output in subdirs
12290     am__obj=sub/conftest.${OBJEXT-o}
12291     am__minus_obj="-o $am__obj"
12292     case $depmode in
12293     gcc)
12294       # This depmode causes a compiler race in universal mode.
12295       test "$am__universal" = false || continue
12296       ;;
12297     nosideeffect)
12298       # after this tag, mechanisms are not by side-effect, so they'll
12299       # only be used when explicitly requested
12300       if test "x$enable_dependency_tracking" = xyes; then
12301         continue
12302       else
12303         break
12304       fi
12305       ;;
12306     msvisualcpp | msvcmsys)
12307       # This compiler won't grok `-c -o', but also, the minuso test has
12308       # not run yet.  These depmodes are late enough in the game, and
12309       # so weak that their functioning should not be impacted.
12310       am__obj=conftest.${OBJEXT-o}
12311       am__minus_obj=
12312       ;;
12313     none) break ;;
12314     esac
12315     if depmode=$depmode \
12316        source=sub/conftest.c object=$am__obj \
12317        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12318        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12319          >/dev/null 2>conftest.err &&
12320        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12321        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12322        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12323        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12324       # icc doesn't choke on unknown options, it will just issue warnings
12325       # or remarks (even with -Werror).  So we grep stderr for any message
12326       # that says an option was ignored or not supported.
12327       # When given -MP, icc 7.0 and 7.1 complain thusly:
12328       #   icc: Command line warning: ignoring option '-M'; no argument required
12329       # The diagnosis changed in icc 8.0:
12330       #   icc: Command line remark: option '-MP' not supported
12331       if (grep 'ignoring option' conftest.err ||
12332           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12333         am_cv_CXX_dependencies_compiler_type=$depmode
12334         break
12335       fi
12336     fi
12337   done
12338
12339   cd ..
12340   rm -rf conftest.dir
12341 else
12342   am_cv_CXX_dependencies_compiler_type=none
12343 fi
12344
12345 fi
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12347 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12348 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12349
12350  if
12351   test "x$enable_dependency_tracking" != xno \
12352   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12353   am__fastdepCXX_TRUE=
12354   am__fastdepCXX_FALSE='#'
12355 else
12356   am__fastdepCXX_TRUE='#'
12357   am__fastdepCXX_FALSE=
12358 fi
12359
12360
12361 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12362     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12363     (test "X$CXX" != "Xg++"))) ; then
12364   ac_ext=cpp
12365 ac_cpp='$CXXCPP $CPPFLAGS'
12366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12370 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12371 if test -z "$CXXCPP"; then
12372   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12373   $as_echo_n "(cached) " >&6
12374 else
12375       # Double quotes because CXXCPP needs to be expanded
12376     for CXXCPP in "$CXX -E" "/lib/cpp"
12377     do
12378       ac_preproc_ok=false
12379 for ac_cxx_preproc_warn_flag in '' yes
12380 do
12381   # Use a header file that comes with gcc, so configuring glibc
12382   # with a fresh cross-compiler works.
12383   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12384   # <limits.h> exists even on freestanding compilers.
12385   # On the NeXT, cc -E runs the code through the compiler's parser,
12386   # not just through cpp. "Syntax error" is here to catch this case.
12387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h.  */
12389 #ifdef __STDC__
12390 # include <limits.h>
12391 #else
12392 # include <assert.h>
12393 #endif
12394                      Syntax error
12395 _ACEOF
12396 if ac_fn_cxx_try_cpp "$LINENO"; then :
12397
12398 else
12399   # Broken: fails on valid input.
12400 continue
12401 fi
12402 rm -f conftest.err conftest.$ac_ext
12403
12404   # OK, works on sane cases.  Now check whether nonexistent headers
12405   # can be detected and how.
12406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407 /* end confdefs.h.  */
12408 #include <ac_nonexistent.h>
12409 _ACEOF
12410 if ac_fn_cxx_try_cpp "$LINENO"; then :
12411   # Broken: success on invalid input.
12412 continue
12413 else
12414   # Passes both tests.
12415 ac_preproc_ok=:
12416 break
12417 fi
12418 rm -f conftest.err conftest.$ac_ext
12419
12420 done
12421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12422 rm -f conftest.err conftest.$ac_ext
12423 if $ac_preproc_ok; then :
12424   break
12425 fi
12426
12427     done
12428     ac_cv_prog_CXXCPP=$CXXCPP
12429
12430 fi
12431   CXXCPP=$ac_cv_prog_CXXCPP
12432 else
12433   ac_cv_prog_CXXCPP=$CXXCPP
12434 fi
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12436 $as_echo "$CXXCPP" >&6; }
12437 ac_preproc_ok=false
12438 for ac_cxx_preproc_warn_flag in '' yes
12439 do
12440   # Use a header file that comes with gcc, so configuring glibc
12441   # with a fresh cross-compiler works.
12442   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12443   # <limits.h> exists even on freestanding compilers.
12444   # On the NeXT, cc -E runs the code through the compiler's parser,
12445   # not just through cpp. "Syntax error" is here to catch this case.
12446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447 /* end confdefs.h.  */
12448 #ifdef __STDC__
12449 # include <limits.h>
12450 #else
12451 # include <assert.h>
12452 #endif
12453                      Syntax error
12454 _ACEOF
12455 if ac_fn_cxx_try_cpp "$LINENO"; then :
12456
12457 else
12458   # Broken: fails on valid input.
12459 continue
12460 fi
12461 rm -f conftest.err conftest.$ac_ext
12462
12463   # OK, works on sane cases.  Now check whether nonexistent headers
12464   # can be detected and how.
12465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h.  */
12467 #include <ac_nonexistent.h>
12468 _ACEOF
12469 if ac_fn_cxx_try_cpp "$LINENO"; then :
12470   # Broken: success on invalid input.
12471 continue
12472 else
12473   # Passes both tests.
12474 ac_preproc_ok=:
12475 break
12476 fi
12477 rm -f conftest.err conftest.$ac_ext
12478
12479 done
12480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12481 rm -f conftest.err conftest.$ac_ext
12482 if $ac_preproc_ok; then :
12483
12484 else
12485   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12487 _lt_caught_CXX_error=yes; }
12488 fi
12489
12490 ac_ext=c
12491 ac_cpp='$CPP $CPPFLAGS'
12492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12495
12496 else
12497   _lt_caught_CXX_error=yes
12498 fi
12499
12500
12501
12502
12503 ac_ext=cpp
12504 ac_cpp='$CXXCPP $CPPFLAGS'
12505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12508
12509 archive_cmds_need_lc_CXX=no
12510 allow_undefined_flag_CXX=
12511 always_export_symbols_CXX=no
12512 archive_expsym_cmds_CXX=
12513 compiler_needs_object_CXX=no
12514 export_dynamic_flag_spec_CXX=
12515 hardcode_direct_CXX=no
12516 hardcode_direct_absolute_CXX=no
12517 hardcode_libdir_flag_spec_CXX=
12518 hardcode_libdir_flag_spec_ld_CXX=
12519 hardcode_libdir_separator_CXX=
12520 hardcode_minus_L_CXX=no
12521 hardcode_shlibpath_var_CXX=unsupported
12522 hardcode_automatic_CXX=no
12523 inherit_rpath_CXX=no
12524 module_cmds_CXX=
12525 module_expsym_cmds_CXX=
12526 link_all_deplibs_CXX=unknown
12527 old_archive_cmds_CXX=$old_archive_cmds
12528 no_undefined_flag_CXX=
12529 whole_archive_flag_spec_CXX=
12530 enable_shared_with_static_runtimes_CXX=no
12531
12532 # Source file extension for C++ test sources.
12533 ac_ext=cpp
12534
12535 # Object file extension for compiled C++ test sources.
12536 objext=o
12537 objext_CXX=$objext
12538
12539 # No sense in running all these tests if we already determined that
12540 # the CXX compiler isn't working.  Some variables (like enable_shared)
12541 # are currently assumed to apply to all compilers on this platform,
12542 # and will be corrupted by setting them based on a non-working compiler.
12543 if test "$_lt_caught_CXX_error" != yes; then
12544   # Code to be used in simple compile tests
12545   lt_simple_compile_test_code="int some_variable = 0;"
12546
12547   # Code to be used in simple link tests
12548   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12549
12550   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12551
12552
12553
12554
12555
12556
12557 # If no C compiler was specified, use CC.
12558 LTCC=${LTCC-"$CC"}
12559
12560 # If no C compiler flags were specified, use CFLAGS.
12561 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12562
12563 # Allow CC to be a program name with arguments.
12564 compiler=$CC
12565
12566
12567   # save warnings/boilerplate of simple test code
12568   ac_outfile=conftest.$ac_objext
12569 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12570 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12571 _lt_compiler_boilerplate=`cat conftest.err`
12572 $RM conftest*
12573
12574   ac_outfile=conftest.$ac_objext
12575 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12576 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12577 _lt_linker_boilerplate=`cat conftest.err`
12578 $RM -r conftest*
12579
12580
12581   # Allow CC to be a program name with arguments.
12582   lt_save_CC=$CC
12583   lt_save_LD=$LD
12584   lt_save_GCC=$GCC
12585   GCC=$GXX
12586   lt_save_with_gnu_ld=$with_gnu_ld
12587   lt_save_path_LD=$lt_cv_path_LD
12588   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12589     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12590   else
12591     $as_unset lt_cv_prog_gnu_ld
12592   fi
12593   if test -n "${lt_cv_path_LDCXX+set}"; then
12594     lt_cv_path_LD=$lt_cv_path_LDCXX
12595   else
12596     $as_unset lt_cv_path_LD
12597   fi
12598   test -z "${LDCXX+set}" || LD=$LDCXX
12599   CC=${CXX-"c++"}
12600   compiler=$CC
12601   compiler_CXX=$CC
12602   for cc_temp in $compiler""; do
12603   case $cc_temp in
12604     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12605     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12606     \-*) ;;
12607     *) break;;
12608   esac
12609 done
12610 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12611
12612
12613   if test -n "$compiler"; then
12614     # We don't want -fno-exception when compiling C++ code, so set the
12615     # no_builtin_flag separately
12616     if test "$GXX" = yes; then
12617       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12618     else
12619       lt_prog_compiler_no_builtin_flag_CXX=
12620     fi
12621
12622     if test "$GXX" = yes; then
12623       # Set up default GNU C++ configuration
12624
12625
12626
12627 # Check whether --with-gnu-ld was given.
12628 if test "${with_gnu_ld+set}" = set; then :
12629   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12630 else
12631   with_gnu_ld=no
12632 fi
12633
12634 ac_prog=ld
12635 if test "$GCC" = yes; then
12636   # Check if gcc -print-prog-name=ld gives a path.
12637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12638 $as_echo_n "checking for ld used by $CC... " >&6; }
12639   case $host in
12640   *-*-mingw*)
12641     # gcc leaves a trailing carriage return which upsets mingw
12642     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12643   *)
12644     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12645   esac
12646   case $ac_prog in
12647     # Accept absolute paths.
12648     [\\/]* | ?:[\\/]*)
12649       re_direlt='/[^/][^/]*/\.\./'
12650       # Canonicalize the pathname of ld
12651       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12652       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12653         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12654       done
12655       test -z "$LD" && LD="$ac_prog"
12656       ;;
12657   "")
12658     # If it fails, then pretend we aren't using GCC.
12659     ac_prog=ld
12660     ;;
12661   *)
12662     # If it is relative, then search for the first ld in PATH.
12663     with_gnu_ld=unknown
12664     ;;
12665   esac
12666 elif test "$with_gnu_ld" = yes; then
12667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12668 $as_echo_n "checking for GNU ld... " >&6; }
12669 else
12670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12671 $as_echo_n "checking for non-GNU ld... " >&6; }
12672 fi
12673 if test "${lt_cv_path_LD+set}" = set; then :
12674   $as_echo_n "(cached) " >&6
12675 else
12676   if test -z "$LD"; then
12677   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12678   for ac_dir in $PATH; do
12679     IFS="$lt_save_ifs"
12680     test -z "$ac_dir" && ac_dir=.
12681     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12682       lt_cv_path_LD="$ac_dir/$ac_prog"
12683       # Check to see if the program is GNU ld.  I'd rather use --version,
12684       # but apparently some variants of GNU ld only accept -v.
12685       # Break only if it was the GNU/non-GNU ld that we prefer.
12686       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12687       *GNU* | *'with BFD'*)
12688         test "$with_gnu_ld" != no && break
12689         ;;
12690       *)
12691         test "$with_gnu_ld" != yes && break
12692         ;;
12693       esac
12694     fi
12695   done
12696   IFS="$lt_save_ifs"
12697 else
12698   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12699 fi
12700 fi
12701
12702 LD="$lt_cv_path_LD"
12703 if test -n "$LD"; then
12704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12705 $as_echo "$LD" >&6; }
12706 else
12707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12708 $as_echo "no" >&6; }
12709 fi
12710 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12712 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12713 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12714   $as_echo_n "(cached) " >&6
12715 else
12716   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12717 case `$LD -v 2>&1 </dev/null` in
12718 *GNU* | *'with BFD'*)
12719   lt_cv_prog_gnu_ld=yes
12720   ;;
12721 *)
12722   lt_cv_prog_gnu_ld=no
12723   ;;
12724 esac
12725 fi
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12727 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12728 with_gnu_ld=$lt_cv_prog_gnu_ld
12729
12730
12731
12732
12733
12734
12735
12736       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12737       # archiving commands below assume that GNU ld is being used.
12738       if test "$with_gnu_ld" = yes; then
12739         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12740         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'
12741
12742         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12743         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12744
12745         # If archive_cmds runs LD, not CC, wlarc should be empty
12746         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12747         #     investigate it a little bit more. (MM)
12748         wlarc='${wl}'
12749
12750         # ancient GNU ld didn't support --whole-archive et. al.
12751         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12752           $GREP 'no-whole-archive' > /dev/null; then
12753           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12754         else
12755           whole_archive_flag_spec_CXX=
12756         fi
12757       else
12758         with_gnu_ld=no
12759         wlarc=
12760
12761         # A generic and very simple default shared library creation
12762         # command for GNU C++ for the case where it uses the native
12763         # linker, instead of GNU ld.  If possible, this setting should
12764         # overridden to take advantage of the native linker features on
12765         # the platform it is being used on.
12766         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12767       fi
12768
12769       # Commands to make compiler produce verbose output that lists
12770       # what "hidden" libraries, object files and flags are used when
12771       # linking a shared library.
12772       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12773
12774     else
12775       GXX=no
12776       with_gnu_ld=no
12777       wlarc=
12778     fi
12779
12780     # PORTME: fill in a description of your system's C++ link characteristics
12781     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12782 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12783     ld_shlibs_CXX=yes
12784     case $host_os in
12785       aix3*)
12786         # FIXME: insert proper C++ library support
12787         ld_shlibs_CXX=no
12788         ;;
12789       aix[4-9]*)
12790         if test "$host_cpu" = ia64; then
12791           # On IA64, the linker does run time linking by default, so we don't
12792           # have to do anything special.
12793           aix_use_runtimelinking=no
12794           exp_sym_flag='-Bexport'
12795           no_entry_flag=""
12796         else
12797           aix_use_runtimelinking=no
12798
12799           # Test if we are trying to use run time linking or normal
12800           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12801           # need to do runtime linking.
12802           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12803             for ld_flag in $LDFLAGS; do
12804               case $ld_flag in
12805               *-brtl*)
12806                 aix_use_runtimelinking=yes
12807                 break
12808                 ;;
12809               esac
12810             done
12811             ;;
12812           esac
12813
12814           exp_sym_flag='-bexport'
12815           no_entry_flag='-bnoentry'
12816         fi
12817
12818         # When large executables or shared objects are built, AIX ld can
12819         # have problems creating the table of contents.  If linking a library
12820         # or program results in "error TOC overflow" add -mminimal-toc to
12821         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12822         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12823
12824         archive_cmds_CXX=''
12825         hardcode_direct_CXX=yes
12826         hardcode_direct_absolute_CXX=yes
12827         hardcode_libdir_separator_CXX=':'
12828         link_all_deplibs_CXX=yes
12829         file_list_spec_CXX='${wl}-f,'
12830
12831         if test "$GXX" = yes; then
12832           case $host_os in aix4.[012]|aix4.[012].*)
12833           # We only want to do this on AIX 4.2 and lower, the check
12834           # below for broken collect2 doesn't work under 4.3+
12835           collect2name=`${CC} -print-prog-name=collect2`
12836           if test -f "$collect2name" &&
12837              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12838           then
12839             # We have reworked collect2
12840             :
12841           else
12842             # We have old collect2
12843             hardcode_direct_CXX=unsupported
12844             # It fails to find uninstalled libraries when the uninstalled
12845             # path is not listed in the libpath.  Setting hardcode_minus_L
12846             # to unsupported forces relinking
12847             hardcode_minus_L_CXX=yes
12848             hardcode_libdir_flag_spec_CXX='-L$libdir'
12849             hardcode_libdir_separator_CXX=
12850           fi
12851           esac
12852           shared_flag='-shared'
12853           if test "$aix_use_runtimelinking" = yes; then
12854             shared_flag="$shared_flag "'${wl}-G'
12855           fi
12856         else
12857           # not using gcc
12858           if test "$host_cpu" = ia64; then
12859           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12860           # chokes on -Wl,-G. The following line is correct:
12861           shared_flag='-G'
12862           else
12863             if test "$aix_use_runtimelinking" = yes; then
12864               shared_flag='${wl}-G'
12865             else
12866               shared_flag='${wl}-bM:SRE'
12867             fi
12868           fi
12869         fi
12870
12871         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12872         # It seems that -bexpall does not export symbols beginning with
12873         # underscore (_), so it is better to generate a list of symbols to
12874         # export.
12875         always_export_symbols_CXX=yes
12876         if test "$aix_use_runtimelinking" = yes; then
12877           # Warning - without using the other runtime loading flags (-brtl),
12878           # -berok will link without error, but may produce a broken library.
12879           allow_undefined_flag_CXX='-berok'
12880           # Determine the default libpath from the value encoded in an empty
12881           # executable.
12882           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h.  */
12884
12885 int
12886 main ()
12887 {
12888
12889   ;
12890   return 0;
12891 }
12892 _ACEOF
12893 if ac_fn_cxx_try_link "$LINENO"; then :
12894
12895 lt_aix_libpath_sed='
12896     /Import File Strings/,/^$/ {
12897         /^0/ {
12898             s/^0  *\(.*\)$/\1/
12899             p
12900         }
12901     }'
12902 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12903 # Check for a 64-bit object if we didn't find anything.
12904 if test -z "$aix_libpath"; then
12905   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12906 fi
12907 fi
12908 rm -f core conftest.err conftest.$ac_objext \
12909     conftest$ac_exeext conftest.$ac_ext
12910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12911
12912           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12913
12914           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"
12915         else
12916           if test "$host_cpu" = ia64; then
12917             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12918             allow_undefined_flag_CXX="-z nodefs"
12919             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"
12920           else
12921             # Determine the default libpath from the value encoded in an
12922             # empty executable.
12923             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h.  */
12925
12926 int
12927 main ()
12928 {
12929
12930   ;
12931   return 0;
12932 }
12933 _ACEOF
12934 if ac_fn_cxx_try_link "$LINENO"; then :
12935
12936 lt_aix_libpath_sed='
12937     /Import File Strings/,/^$/ {
12938         /^0/ {
12939             s/^0  *\(.*\)$/\1/
12940             p
12941         }
12942     }'
12943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12944 # Check for a 64-bit object if we didn't find anything.
12945 if test -z "$aix_libpath"; then
12946   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12947 fi
12948 fi
12949 rm -f core conftest.err conftest.$ac_objext \
12950     conftest$ac_exeext conftest.$ac_ext
12951 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12952
12953             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12954             # Warning - without using the other run time loading flags,
12955             # -berok will link without error, but may produce a broken library.
12956             no_undefined_flag_CXX=' ${wl}-bernotok'
12957             allow_undefined_flag_CXX=' ${wl}-berok'
12958             # Exported symbols can be pulled into shared objects from archives
12959             whole_archive_flag_spec_CXX='$convenience'
12960             archive_cmds_need_lc_CXX=yes
12961             # This is similar to how AIX traditionally builds its shared
12962             # libraries.
12963             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'
12964           fi
12965         fi
12966         ;;
12967
12968       beos*)
12969         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12970           allow_undefined_flag_CXX=unsupported
12971           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12972           # support --undefined.  This deserves some investigation.  FIXME
12973           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12974         else
12975           ld_shlibs_CXX=no
12976         fi
12977         ;;
12978
12979       chorus*)
12980         case $cc_basename in
12981           *)
12982           # FIXME: insert proper C++ library support
12983           ld_shlibs_CXX=no
12984           ;;
12985         esac
12986         ;;
12987
12988       cygwin* | mingw* | pw32* | cegcc*)
12989         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12990         # as there is no search path for DLLs.
12991         hardcode_libdir_flag_spec_CXX='-L$libdir'
12992         allow_undefined_flag_CXX=unsupported
12993         always_export_symbols_CXX=no
12994         enable_shared_with_static_runtimes_CXX=yes
12995
12996         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12997           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'
12998           # If the export-symbols file already is a .def file (1st line
12999           # is EXPORTS), use it as is; otherwise, prepend...
13000           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13001             cp $export_symbols $output_objdir/$soname.def;
13002           else
13003             echo EXPORTS > $output_objdir/$soname.def;
13004             cat $export_symbols >> $output_objdir/$soname.def;
13005           fi~
13006           $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'
13007         else
13008           ld_shlibs_CXX=no
13009         fi
13010         ;;
13011       darwin* | rhapsody*)
13012
13013
13014   archive_cmds_need_lc_CXX=no
13015   hardcode_direct_CXX=no
13016   hardcode_automatic_CXX=yes
13017   hardcode_shlibpath_var_CXX=unsupported
13018   whole_archive_flag_spec_CXX=''
13019   link_all_deplibs_CXX=yes
13020   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13021   case $cc_basename in
13022      ifort*) _lt_dar_can_shared=yes ;;
13023      *) _lt_dar_can_shared=$GCC ;;
13024   esac
13025   if test "$_lt_dar_can_shared" = "yes"; then
13026     output_verbose_link_cmd=echo
13027     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}"
13028     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13029     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}"
13030     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}"
13031        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13032       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}"
13033       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}"
13034     fi
13035
13036   else
13037   ld_shlibs_CXX=no
13038   fi
13039
13040         ;;
13041
13042       dgux*)
13043         case $cc_basename in
13044           ec++*)
13045             # FIXME: insert proper C++ library support
13046             ld_shlibs_CXX=no
13047             ;;
13048           ghcx*)
13049             # Green Hills C++ Compiler
13050             # FIXME: insert proper C++ library support
13051             ld_shlibs_CXX=no
13052             ;;
13053           *)
13054             # FIXME: insert proper C++ library support
13055             ld_shlibs_CXX=no
13056             ;;
13057         esac
13058         ;;
13059
13060       freebsd[12]*)
13061         # C++ shared libraries reported to be fairly broken before
13062         # switch to ELF
13063         ld_shlibs_CXX=no
13064         ;;
13065
13066       freebsd-elf*)
13067         archive_cmds_need_lc_CXX=no
13068         ;;
13069
13070       freebsd* | dragonfly*)
13071         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13072         # conventions
13073         ld_shlibs_CXX=yes
13074         ;;
13075
13076       gnu*)
13077         ;;
13078
13079       hpux9*)
13080         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13081         hardcode_libdir_separator_CXX=:
13082         export_dynamic_flag_spec_CXX='${wl}-E'
13083         hardcode_direct_CXX=yes
13084         hardcode_minus_L_CXX=yes # Not in the search PATH,
13085                                              # but as the default
13086                                              # location of the library.
13087
13088         case $cc_basename in
13089           CC*)
13090             # FIXME: insert proper C++ library support
13091             ld_shlibs_CXX=no
13092             ;;
13093           aCC*)
13094             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'
13095             # Commands to make compiler produce verbose output that lists
13096             # what "hidden" libraries, object files and flags are used when
13097             # linking a shared library.
13098             #
13099             # There doesn't appear to be a way to prevent this compiler from
13100             # explicitly linking system object files so we need to strip them
13101             # from the output so that they don't get included in the library
13102             # dependencies.
13103             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'
13104             ;;
13105           *)
13106             if test "$GXX" = yes; then
13107               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'
13108             else
13109               # FIXME: insert proper C++ library support
13110               ld_shlibs_CXX=no
13111             fi
13112             ;;
13113         esac
13114         ;;
13115
13116       hpux10*|hpux11*)
13117         if test $with_gnu_ld = no; then
13118           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13119           hardcode_libdir_separator_CXX=:
13120
13121           case $host_cpu in
13122             hppa*64*|ia64*)
13123               ;;
13124             *)
13125               export_dynamic_flag_spec_CXX='${wl}-E'
13126               ;;
13127           esac
13128         fi
13129         case $host_cpu in
13130           hppa*64*|ia64*)
13131             hardcode_direct_CXX=no
13132             hardcode_shlibpath_var_CXX=no
13133             ;;
13134           *)
13135             hardcode_direct_CXX=yes
13136             hardcode_direct_absolute_CXX=yes
13137             hardcode_minus_L_CXX=yes # Not in the search PATH,
13138                                                  # but as the default
13139                                                  # location of the library.
13140             ;;
13141         esac
13142
13143         case $cc_basename in
13144           CC*)
13145             # FIXME: insert proper C++ library support
13146             ld_shlibs_CXX=no
13147             ;;
13148           aCC*)
13149             case $host_cpu in
13150               hppa*64*)
13151                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13152                 ;;
13153               ia64*)
13154                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13155                 ;;
13156               *)
13157                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13158                 ;;
13159             esac
13160             # Commands to make compiler produce verbose output that lists
13161             # what "hidden" libraries, object files and flags are used when
13162             # linking a shared library.
13163             #
13164             # There doesn't appear to be a way to prevent this compiler from
13165             # explicitly linking system object files so we need to strip them
13166             # from the output so that they don't get included in the library
13167             # dependencies.
13168             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'
13169             ;;
13170           *)
13171             if test "$GXX" = yes; then
13172               if test $with_gnu_ld = no; then
13173                 case $host_cpu in
13174                   hppa*64*)
13175                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13176                     ;;
13177                   ia64*)
13178                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13179                     ;;
13180                   *)
13181                     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'
13182                     ;;
13183                 esac
13184               fi
13185             else
13186               # FIXME: insert proper C++ library support
13187               ld_shlibs_CXX=no
13188             fi
13189             ;;
13190         esac
13191         ;;
13192
13193       interix[3-9]*)
13194         hardcode_direct_CXX=no
13195         hardcode_shlibpath_var_CXX=no
13196         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13197         export_dynamic_flag_spec_CXX='${wl}-E'
13198         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13199         # Instead, shared libraries are loaded at an image base (0x10000000 by
13200         # default) and relocated if they conflict, which is a slow very memory
13201         # consuming and fragmenting process.  To avoid this, we pick a random,
13202         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13203         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13204         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'
13205         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'
13206         ;;
13207       irix5* | irix6*)
13208         case $cc_basename in
13209           CC*)
13210             # SGI C++
13211             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'
13212
13213             # Archives containing C++ object files must be created using
13214             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13215             # necessary to make sure instantiated templates are included
13216             # in the archive.
13217             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13218             ;;
13219           *)
13220             if test "$GXX" = yes; then
13221               if test "$with_gnu_ld" = no; then
13222                 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'
13223               else
13224                 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'
13225               fi
13226             fi
13227             link_all_deplibs_CXX=yes
13228             ;;
13229         esac
13230         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13231         hardcode_libdir_separator_CXX=:
13232         inherit_rpath_CXX=yes
13233         ;;
13234
13235       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13236         case $cc_basename in
13237           KCC*)
13238             # Kuck and Associates, Inc. (KAI) C++ Compiler
13239
13240             # KCC will only create a shared library if the output file
13241             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13242             # to its proper name (with version) after linking.
13243             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'
13244             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'
13245             # Commands to make compiler produce verbose output that lists
13246             # what "hidden" libraries, object files and flags are used when
13247             # linking a shared library.
13248             #
13249             # There doesn't appear to be a way to prevent this compiler from
13250             # explicitly linking system object files so we need to strip them
13251             # from the output so that they don't get included in the library
13252             # dependencies.
13253             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'
13254
13255             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13256             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13257
13258             # Archives containing C++ object files must be created using
13259             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13260             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13261             ;;
13262           icpc* | ecpc* )
13263             # Intel C++
13264             with_gnu_ld=yes
13265             # version 8.0 and above of icpc choke on multiply defined symbols
13266             # if we add $predep_objects and $postdep_objects, however 7.1 and
13267             # earlier do not add the objects themselves.
13268             case `$CC -V 2>&1` in
13269               *"Version 7."*)
13270                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13271                 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'
13272                 ;;
13273               *)  # Version 8.0 or newer
13274                 tmp_idyn=
13275                 case $host_cpu in
13276                   ia64*) tmp_idyn=' -i_dynamic';;
13277                 esac
13278                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13279                 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'
13280                 ;;
13281             esac
13282             archive_cmds_need_lc_CXX=no
13283             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13284             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13285             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13286             ;;
13287           pgCC* | pgcpp*)
13288             # Portland Group C++ compiler
13289             case `$CC -V` in
13290             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13291               prelink_cmds_CXX='tpldir=Template.dir~
13292                 rm -rf $tpldir~
13293                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13294                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13295               old_archive_cmds_CXX='tpldir=Template.dir~
13296                 rm -rf $tpldir~
13297                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13298                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13299                 $RANLIB $oldlib'
13300               archive_cmds_CXX='tpldir=Template.dir~
13301                 rm -rf $tpldir~
13302                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13303                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13304               archive_expsym_cmds_CXX='tpldir=Template.dir~
13305                 rm -rf $tpldir~
13306                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13307                 $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'
13308               ;;
13309             *) # Version 6 will use weak symbols
13310               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13311               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'
13312               ;;
13313             esac
13314
13315             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13316             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13317             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'
13318             ;;
13319           cxx*)
13320             # Compaq C++
13321             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13322             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'
13323
13324             runpath_var=LD_RUN_PATH
13325             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13326             hardcode_libdir_separator_CXX=:
13327
13328             # Commands to make compiler produce verbose output that lists
13329             # what "hidden" libraries, object files and flags are used when
13330             # linking a shared library.
13331             #
13332             # There doesn't appear to be a way to prevent this compiler from
13333             # explicitly linking system object files so we need to strip them
13334             # from the output so that they don't get included in the library
13335             # dependencies.
13336             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'
13337             ;;
13338           xl*)
13339             # IBM XL 8.0 on PPC, with GNU ld
13340             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13341             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13342             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13343             if test "x$supports_anon_versioning" = xyes; then
13344               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13345                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13346                 echo "local: *; };" >> $output_objdir/$libname.ver~
13347                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13348             fi
13349             ;;
13350           *)
13351             case `$CC -V 2>&1 | sed 5q` in
13352             *Sun\ C*)
13353               # Sun C++ 5.9
13354               no_undefined_flag_CXX=' -zdefs'
13355               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13356               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'
13357               hardcode_libdir_flag_spec_CXX='-R$libdir'
13358               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'
13359               compiler_needs_object_CXX=yes
13360
13361               # Not sure whether something based on
13362               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13363               # would be better.
13364               output_verbose_link_cmd='echo'
13365
13366               # Archives containing C++ object files must be created using
13367               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13368               # necessary to make sure instantiated templates are included
13369               # in the archive.
13370               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13371               ;;
13372             esac
13373             ;;
13374         esac
13375         ;;
13376
13377       lynxos*)
13378         # FIXME: insert proper C++ library support
13379         ld_shlibs_CXX=no
13380         ;;
13381
13382       m88k*)
13383         # FIXME: insert proper C++ library support
13384         ld_shlibs_CXX=no
13385         ;;
13386
13387       mvs*)
13388         case $cc_basename in
13389           cxx*)
13390             # FIXME: insert proper C++ library support
13391             ld_shlibs_CXX=no
13392             ;;
13393           *)
13394             # FIXME: insert proper C++ library support
13395             ld_shlibs_CXX=no
13396             ;;
13397         esac
13398         ;;
13399
13400       netbsd*)
13401         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13402           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13403           wlarc=
13404           hardcode_libdir_flag_spec_CXX='-R$libdir'
13405           hardcode_direct_CXX=yes
13406           hardcode_shlibpath_var_CXX=no
13407         fi
13408         # Workaround some broken pre-1.5 toolchains
13409         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13410         ;;
13411
13412       *nto* | *qnx*)
13413         ld_shlibs_CXX=yes
13414         ;;
13415
13416       openbsd2*)
13417         # C++ shared libraries are fairly broken
13418         ld_shlibs_CXX=no
13419         ;;
13420
13421       openbsd*)
13422         if test -f /usr/libexec/ld.so; then
13423           hardcode_direct_CXX=yes
13424           hardcode_shlibpath_var_CXX=no
13425           hardcode_direct_absolute_CXX=yes
13426           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13427           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13428           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13429             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13430             export_dynamic_flag_spec_CXX='${wl}-E'
13431             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13432           fi
13433           output_verbose_link_cmd=echo
13434         else
13435           ld_shlibs_CXX=no
13436         fi
13437         ;;
13438
13439       osf3* | osf4* | osf5*)
13440         case $cc_basename in
13441           KCC*)
13442             # Kuck and Associates, Inc. (KAI) C++ Compiler
13443
13444             # KCC will only create a shared library if the output file
13445             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13446             # to its proper name (with version) after linking.
13447             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'
13448
13449             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13450             hardcode_libdir_separator_CXX=:
13451
13452             # Archives containing C++ object files must be created using
13453             # the KAI C++ compiler.
13454             case $host in
13455               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13456               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13457             esac
13458             ;;
13459           RCC*)
13460             # Rational C++ 2.4.1
13461             # FIXME: insert proper C++ library support
13462             ld_shlibs_CXX=no
13463             ;;
13464           cxx*)
13465             case $host in
13466               osf3*)
13467                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13468                 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'
13469                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13470                 ;;
13471               *)
13472                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13473                 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'
13474                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13475                   echo "-hidden">> $lib.exp~
13476                   $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~
13477                   $RM $lib.exp'
13478                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13479                 ;;
13480             esac
13481
13482             hardcode_libdir_separator_CXX=:
13483
13484             # Commands to make compiler produce verbose output that lists
13485             # what "hidden" libraries, object files and flags are used when
13486             # linking a shared library.
13487             #
13488             # There doesn't appear to be a way to prevent this compiler from
13489             # explicitly linking system object files so we need to strip them
13490             # from the output so that they don't get included in the library
13491             # dependencies.
13492             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'
13493             ;;
13494           *)
13495             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13496               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13497               case $host in
13498                 osf3*)
13499                   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'
13500                   ;;
13501                 *)
13502                   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'
13503                   ;;
13504               esac
13505
13506               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13507               hardcode_libdir_separator_CXX=:
13508
13509               # Commands to make compiler produce verbose output that lists
13510               # what "hidden" libraries, object files and flags are used when
13511               # linking a shared library.
13512               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13513
13514             else
13515               # FIXME: insert proper C++ library support
13516               ld_shlibs_CXX=no
13517             fi
13518             ;;
13519         esac
13520         ;;
13521
13522       psos*)
13523         # FIXME: insert proper C++ library support
13524         ld_shlibs_CXX=no
13525         ;;
13526
13527       sunos4*)
13528         case $cc_basename in
13529           CC*)
13530             # Sun C++ 4.x
13531             # FIXME: insert proper C++ library support
13532             ld_shlibs_CXX=no
13533             ;;
13534           lcc*)
13535             # Lucid
13536             # FIXME: insert proper C++ library support
13537             ld_shlibs_CXX=no
13538             ;;
13539           *)
13540             # FIXME: insert proper C++ library support
13541             ld_shlibs_CXX=no
13542             ;;
13543         esac
13544         ;;
13545
13546       solaris*)
13547         case $cc_basename in
13548           CC*)
13549             # Sun C++ 4.2, 5.x and Centerline C++
13550             archive_cmds_need_lc_CXX=yes
13551             no_undefined_flag_CXX=' -zdefs'
13552             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13553             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13554               $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'
13555
13556             hardcode_libdir_flag_spec_CXX='-R$libdir'
13557             hardcode_shlibpath_var_CXX=no
13558             case $host_os in
13559               solaris2.[0-5] | solaris2.[0-5].*) ;;
13560               *)
13561                 # The compiler driver will combine and reorder linker options,
13562                 # but understands `-z linker_flag'.
13563                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13564                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13565                 ;;
13566             esac
13567             link_all_deplibs_CXX=yes
13568
13569             output_verbose_link_cmd='echo'
13570
13571             # Archives containing C++ object files must be created using
13572             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13573             # necessary to make sure instantiated templates are included
13574             # in the archive.
13575             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13576             ;;
13577           gcx*)
13578             # Green Hills C++ Compiler
13579             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13580
13581             # The C++ compiler must be used to create the archive.
13582             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13583             ;;
13584           *)
13585             # GNU C++ compiler with Solaris linker
13586             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13587               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13588               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13589                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13590                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13591                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13592
13593                 # Commands to make compiler produce verbose output that lists
13594                 # what "hidden" libraries, object files and flags are used when
13595                 # linking a shared library.
13596                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13597               else
13598                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13599                 # platform.
13600                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13601                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13602                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13603
13604                 # Commands to make compiler produce verbose output that lists
13605                 # what "hidden" libraries, object files and flags are used when
13606                 # linking a shared library.
13607                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13608               fi
13609
13610               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13611               case $host_os in
13612                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13613                 *)
13614                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13615                   ;;
13616               esac
13617             fi
13618             ;;
13619         esac
13620         ;;
13621
13622     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13623       no_undefined_flag_CXX='${wl}-z,text'
13624       archive_cmds_need_lc_CXX=no
13625       hardcode_shlibpath_var_CXX=no
13626       runpath_var='LD_RUN_PATH'
13627
13628       case $cc_basename in
13629         CC*)
13630           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13631           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13632           ;;
13633         *)
13634           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13635           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13636           ;;
13637       esac
13638       ;;
13639
13640       sysv5* | sco3.2v5* | sco5v6*)
13641         # Note: We can NOT use -z defs as we might desire, because we do not
13642         # link with -lc, and that would cause any symbols used from libc to
13643         # always be unresolved, which means just about no library would
13644         # ever link correctly.  If we're not using GNU ld we use -z text
13645         # though, which does catch some bad symbols but isn't as heavy-handed
13646         # as -z defs.
13647         no_undefined_flag_CXX='${wl}-z,text'
13648         allow_undefined_flag_CXX='${wl}-z,nodefs'
13649         archive_cmds_need_lc_CXX=no
13650         hardcode_shlibpath_var_CXX=no
13651         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13652         hardcode_libdir_separator_CXX=':'
13653         link_all_deplibs_CXX=yes
13654         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13655         runpath_var='LD_RUN_PATH'
13656
13657         case $cc_basename in
13658           CC*)
13659             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13660             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13661             ;;
13662           *)
13663             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13664             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13665             ;;
13666         esac
13667       ;;
13668
13669       tandem*)
13670         case $cc_basename in
13671           NCC*)
13672             # NonStop-UX NCC 3.20
13673             # FIXME: insert proper C++ library support
13674             ld_shlibs_CXX=no
13675             ;;
13676           *)
13677             # FIXME: insert proper C++ library support
13678             ld_shlibs_CXX=no
13679             ;;
13680         esac
13681         ;;
13682
13683       vxworks*)
13684         # FIXME: insert proper C++ library support
13685         ld_shlibs_CXX=no
13686         ;;
13687
13688       *)
13689         # FIXME: insert proper C++ library support
13690         ld_shlibs_CXX=no
13691         ;;
13692     esac
13693
13694     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13695 $as_echo "$ld_shlibs_CXX" >&6; }
13696     test "$ld_shlibs_CXX" = no && can_build_shared=no
13697
13698     GCC_CXX="$GXX"
13699     LD_CXX="$LD"
13700
13701     ## CAVEAT EMPTOR:
13702     ## There is no encapsulation within the following macros, do not change
13703     ## the running order or otherwise move them around unless you know exactly
13704     ## what you are doing...
13705     # Dependencies to place before and after the object being linked:
13706 predep_objects_CXX=
13707 postdep_objects_CXX=
13708 predeps_CXX=
13709 postdeps_CXX=
13710 compiler_lib_search_path_CXX=
13711
13712 cat > conftest.$ac_ext <<_LT_EOF
13713 class Foo
13714 {
13715 public:
13716   Foo (void) { a = 0; }
13717 private:
13718   int a;
13719 };
13720 _LT_EOF
13721
13722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13723   (eval $ac_compile) 2>&5
13724   ac_status=$?
13725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13726   test $ac_status = 0; }; then
13727   # Parse the compiler output and extract the necessary
13728   # objects, libraries and library flags.
13729
13730   # Sentinel used to keep track of whether or not we are before
13731   # the conftest object file.
13732   pre_test_object_deps_done=no
13733
13734   for p in `eval "$output_verbose_link_cmd"`; do
13735     case $p in
13736
13737     -L* | -R* | -l*)
13738        # Some compilers place space between "-{L,R}" and the path.
13739        # Remove the space.
13740        if test $p = "-L" ||
13741           test $p = "-R"; then
13742          prev=$p
13743          continue
13744        else
13745          prev=
13746        fi
13747
13748        if test "$pre_test_object_deps_done" = no; then
13749          case $p in
13750          -L* | -R*)
13751            # Internal compiler library paths should come after those
13752            # provided the user.  The postdeps already come after the
13753            # user supplied libs so there is no need to process them.
13754            if test -z "$compiler_lib_search_path_CXX"; then
13755              compiler_lib_search_path_CXX="${prev}${p}"
13756            else
13757              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13758            fi
13759            ;;
13760          # The "-l" case would never come before the object being
13761          # linked, so don't bother handling this case.
13762          esac
13763        else
13764          if test -z "$postdeps_CXX"; then
13765            postdeps_CXX="${prev}${p}"
13766          else
13767            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13768          fi
13769        fi
13770        ;;
13771
13772     *.$objext)
13773        # This assumes that the test object file only shows up
13774        # once in the compiler output.
13775        if test "$p" = "conftest.$objext"; then
13776          pre_test_object_deps_done=yes
13777          continue
13778        fi
13779
13780        if test "$pre_test_object_deps_done" = no; then
13781          if test -z "$predep_objects_CXX"; then
13782            predep_objects_CXX="$p"
13783          else
13784            predep_objects_CXX="$predep_objects_CXX $p"
13785          fi
13786        else
13787          if test -z "$postdep_objects_CXX"; then
13788            postdep_objects_CXX="$p"
13789          else
13790            postdep_objects_CXX="$postdep_objects_CXX $p"
13791          fi
13792        fi
13793        ;;
13794
13795     *) ;; # Ignore the rest.
13796
13797     esac
13798   done
13799
13800   # Clean up.
13801   rm -f a.out a.exe
13802 else
13803   echo "libtool.m4: error: problem compiling CXX test program"
13804 fi
13805
13806 $RM -f confest.$objext
13807
13808 # PORTME: override above test on systems where it is broken
13809 case $host_os in
13810 interix[3-9]*)
13811   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13812   # hack all around it, let's just trust "g++" to DTRT.
13813   predep_objects_CXX=
13814   postdep_objects_CXX=
13815   postdeps_CXX=
13816   ;;
13817
13818 linux*)
13819   case `$CC -V 2>&1 | sed 5q` in
13820   *Sun\ C*)
13821     # Sun C++ 5.9
13822
13823     # The more standards-conforming stlport4 library is
13824     # incompatible with the Cstd library. Avoid specifying
13825     # it if it's in CXXFLAGS. Ignore libCrun as
13826     # -library=stlport4 depends on it.
13827     case " $CXX $CXXFLAGS " in
13828     *" -library=stlport4 "*)
13829       solaris_use_stlport4=yes
13830       ;;
13831     esac
13832
13833     if test "$solaris_use_stlport4" != yes; then
13834       postdeps_CXX='-library=Cstd -library=Crun'
13835     fi
13836     ;;
13837   esac
13838   ;;
13839
13840 solaris*)
13841   case $cc_basename in
13842   CC*)
13843     # The more standards-conforming stlport4 library is
13844     # incompatible with the Cstd library. Avoid specifying
13845     # it if it's in CXXFLAGS. Ignore libCrun as
13846     # -library=stlport4 depends on it.
13847     case " $CXX $CXXFLAGS " in
13848     *" -library=stlport4 "*)
13849       solaris_use_stlport4=yes
13850       ;;
13851     esac
13852
13853     # Adding this requires a known-good setup of shared libraries for
13854     # Sun compiler versions before 5.6, else PIC objects from an old
13855     # archive will be linked into the output, leading to subtle bugs.
13856     if test "$solaris_use_stlport4" != yes; then
13857       postdeps_CXX='-library=Cstd -library=Crun'
13858     fi
13859     ;;
13860   esac
13861   ;;
13862 esac
13863
13864
13865 case " $postdeps_CXX " in
13866 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13867 esac
13868  compiler_lib_search_dirs_CXX=
13869 if test -n "${compiler_lib_search_path_CXX}"; then
13870  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13871 fi
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903     lt_prog_compiler_wl_CXX=
13904 lt_prog_compiler_pic_CXX=
13905 lt_prog_compiler_static_CXX=
13906
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13908 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13909
13910   # C++ specific cases for pic, static, wl, etc.
13911   if test "$GXX" = yes; then
13912     lt_prog_compiler_wl_CXX='-Wl,'
13913     lt_prog_compiler_static_CXX='-static'
13914
13915     case $host_os in
13916     aix*)
13917       # All AIX code is PIC.
13918       if test "$host_cpu" = ia64; then
13919         # AIX 5 now supports IA64 processor
13920         lt_prog_compiler_static_CXX='-Bstatic'
13921       fi
13922       ;;
13923
13924     amigaos*)
13925       case $host_cpu in
13926       powerpc)
13927             # see comment about AmigaOS4 .so support
13928             lt_prog_compiler_pic_CXX='-fPIC'
13929         ;;
13930       m68k)
13931             # FIXME: we need at least 68020 code to build shared libraries, but
13932             # adding the `-m68020' flag to GCC prevents building anything better,
13933             # like `-m68040'.
13934             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13935         ;;
13936       esac
13937       ;;
13938
13939     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13940       # PIC is the default for these OSes.
13941       ;;
13942     mingw* | cygwin* | os2* | pw32* | cegcc*)
13943       # This hack is so that the source file can tell whether it is being
13944       # built for inclusion in a dll (and should export symbols for example).
13945       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13946       # (--disable-auto-import) libraries
13947       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13948       ;;
13949     darwin* | rhapsody*)
13950       # PIC is the default on this platform
13951       # Common symbols not allowed in MH_DYLIB files
13952       lt_prog_compiler_pic_CXX='-fno-common'
13953       ;;
13954     *djgpp*)
13955       # DJGPP does not support shared libraries at all
13956       lt_prog_compiler_pic_CXX=
13957       ;;
13958     interix[3-9]*)
13959       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13960       # Instead, we relocate shared libraries at runtime.
13961       ;;
13962     sysv4*MP*)
13963       if test -d /usr/nec; then
13964         lt_prog_compiler_pic_CXX=-Kconform_pic
13965       fi
13966       ;;
13967     hpux*)
13968       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13969       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13970       # sets the default TLS model and affects inlining.
13971       case $host_cpu in
13972       hppa*64*)
13973         ;;
13974       *)
13975         lt_prog_compiler_pic_CXX='-fPIC'
13976         ;;
13977       esac
13978       ;;
13979     *qnx* | *nto*)
13980       # QNX uses GNU C++, but need to define -shared option too, otherwise
13981       # it will coredump.
13982       lt_prog_compiler_pic_CXX='-fPIC -shared'
13983       ;;
13984     *)
13985       lt_prog_compiler_pic_CXX='-fPIC'
13986       ;;
13987     esac
13988   else
13989     case $host_os in
13990       aix[4-9]*)
13991         # All AIX code is PIC.
13992         if test "$host_cpu" = ia64; then
13993           # AIX 5 now supports IA64 processor
13994           lt_prog_compiler_static_CXX='-Bstatic'
13995         else
13996           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13997         fi
13998         ;;
13999       chorus*)
14000         case $cc_basename in
14001         cxch68*)
14002           # Green Hills C++ Compiler
14003           # _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"
14004           ;;
14005         esac
14006         ;;
14007       dgux*)
14008         case $cc_basename in
14009           ec++*)
14010             lt_prog_compiler_pic_CXX='-KPIC'
14011             ;;
14012           ghcx*)
14013             # Green Hills C++ Compiler
14014             lt_prog_compiler_pic_CXX='-pic'
14015             ;;
14016           *)
14017             ;;
14018         esac
14019         ;;
14020       freebsd* | dragonfly*)
14021         # FreeBSD uses GNU C++
14022         ;;
14023       hpux9* | hpux10* | hpux11*)
14024         case $cc_basename in
14025           CC*)
14026             lt_prog_compiler_wl_CXX='-Wl,'
14027             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14028             if test "$host_cpu" != ia64; then
14029               lt_prog_compiler_pic_CXX='+Z'
14030             fi
14031             ;;
14032           aCC*)
14033             lt_prog_compiler_wl_CXX='-Wl,'
14034             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14035             case $host_cpu in
14036             hppa*64*|ia64*)
14037               # +Z the default
14038               ;;
14039             *)
14040               lt_prog_compiler_pic_CXX='+Z'
14041               ;;
14042             esac
14043             ;;
14044           *)
14045             ;;
14046         esac
14047         ;;
14048       interix*)
14049         # This is c89, which is MS Visual C++ (no shared libs)
14050         # Anyone wants to do a port?
14051         ;;
14052       irix5* | irix6* | nonstopux*)
14053         case $cc_basename in
14054           CC*)
14055             lt_prog_compiler_wl_CXX='-Wl,'
14056             lt_prog_compiler_static_CXX='-non_shared'
14057             # CC pic flag -KPIC is the default.
14058             ;;
14059           *)
14060             ;;
14061         esac
14062         ;;
14063       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14064         case $cc_basename in
14065           KCC*)
14066             # KAI C++ Compiler
14067             lt_prog_compiler_wl_CXX='--backend -Wl,'
14068             lt_prog_compiler_pic_CXX='-fPIC'
14069             ;;
14070           ecpc* )
14071             # old Intel C++ for x86_64 which still supported -KPIC.
14072             lt_prog_compiler_wl_CXX='-Wl,'
14073             lt_prog_compiler_pic_CXX='-KPIC'
14074             lt_prog_compiler_static_CXX='-static'
14075             ;;
14076           icpc* )
14077             # Intel C++, used to be incompatible with GCC.
14078             # ICC 10 doesn't accept -KPIC any more.
14079             lt_prog_compiler_wl_CXX='-Wl,'
14080             lt_prog_compiler_pic_CXX='-fPIC'
14081             lt_prog_compiler_static_CXX='-static'
14082             ;;
14083           pgCC* | pgcpp*)
14084             # Portland Group C++ compiler
14085             lt_prog_compiler_wl_CXX='-Wl,'
14086             lt_prog_compiler_pic_CXX='-fpic'
14087             lt_prog_compiler_static_CXX='-Bstatic'
14088             ;;
14089           cxx*)
14090             # Compaq C++
14091             # Make sure the PIC flag is empty.  It appears that all Alpha
14092             # Linux and Compaq Tru64 Unix objects are PIC.
14093             lt_prog_compiler_pic_CXX=
14094             lt_prog_compiler_static_CXX='-non_shared'
14095             ;;
14096           xlc* | xlC*)
14097             # IBM XL 8.0 on PPC
14098             lt_prog_compiler_wl_CXX='-Wl,'
14099             lt_prog_compiler_pic_CXX='-qpic'
14100             lt_prog_compiler_static_CXX='-qstaticlink'
14101             ;;
14102           *)
14103             case `$CC -V 2>&1 | sed 5q` in
14104             *Sun\ C*)
14105               # Sun C++ 5.9
14106               lt_prog_compiler_pic_CXX='-KPIC'
14107               lt_prog_compiler_static_CXX='-Bstatic'
14108               lt_prog_compiler_wl_CXX='-Qoption ld '
14109               ;;
14110             esac
14111             ;;
14112         esac
14113         ;;
14114       lynxos*)
14115         ;;
14116       m88k*)
14117         ;;
14118       mvs*)
14119         case $cc_basename in
14120           cxx*)
14121             lt_prog_compiler_pic_CXX='-W c,exportall'
14122             ;;
14123           *)
14124             ;;
14125         esac
14126         ;;
14127       netbsd* | netbsdelf*-gnu)
14128         ;;
14129       *qnx* | *nto*)
14130         # QNX uses GNU C++, but need to define -shared option too, otherwise
14131         # it will coredump.
14132         lt_prog_compiler_pic_CXX='-fPIC -shared'
14133         ;;
14134       osf3* | osf4* | osf5*)
14135         case $cc_basename in
14136           KCC*)
14137             lt_prog_compiler_wl_CXX='--backend -Wl,'
14138             ;;
14139           RCC*)
14140             # Rational C++ 2.4.1
14141             lt_prog_compiler_pic_CXX='-pic'
14142             ;;
14143           cxx*)
14144             # Digital/Compaq C++
14145             lt_prog_compiler_wl_CXX='-Wl,'
14146             # Make sure the PIC flag is empty.  It appears that all Alpha
14147             # Linux and Compaq Tru64 Unix objects are PIC.
14148             lt_prog_compiler_pic_CXX=
14149             lt_prog_compiler_static_CXX='-non_shared'
14150             ;;
14151           *)
14152             ;;
14153         esac
14154         ;;
14155       psos*)
14156         ;;
14157       solaris*)
14158         case $cc_basename in
14159           CC*)
14160             # Sun C++ 4.2, 5.x and Centerline C++
14161             lt_prog_compiler_pic_CXX='-KPIC'
14162             lt_prog_compiler_static_CXX='-Bstatic'
14163             lt_prog_compiler_wl_CXX='-Qoption ld '
14164             ;;
14165           gcx*)
14166             # Green Hills C++ Compiler
14167             lt_prog_compiler_pic_CXX='-PIC'
14168             ;;
14169           *)
14170             ;;
14171         esac
14172         ;;
14173       sunos4*)
14174         case $cc_basename in
14175           CC*)
14176             # Sun C++ 4.x
14177             lt_prog_compiler_pic_CXX='-pic'
14178             lt_prog_compiler_static_CXX='-Bstatic'
14179             ;;
14180           lcc*)
14181             # Lucid
14182             lt_prog_compiler_pic_CXX='-pic'
14183             ;;
14184           *)
14185             ;;
14186         esac
14187         ;;
14188       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14189         case $cc_basename in
14190           CC*)
14191             lt_prog_compiler_wl_CXX='-Wl,'
14192             lt_prog_compiler_pic_CXX='-KPIC'
14193             lt_prog_compiler_static_CXX='-Bstatic'
14194             ;;
14195         esac
14196         ;;
14197       tandem*)
14198         case $cc_basename in
14199           NCC*)
14200             # NonStop-UX NCC 3.20
14201             lt_prog_compiler_pic_CXX='-KPIC'
14202             ;;
14203           *)
14204             ;;
14205         esac
14206         ;;
14207       vxworks*)
14208         ;;
14209       *)
14210         lt_prog_compiler_can_build_shared_CXX=no
14211         ;;
14212     esac
14213   fi
14214
14215 case $host_os in
14216   # For platforms which do not support PIC, -DPIC is meaningless:
14217   *djgpp*)
14218     lt_prog_compiler_pic_CXX=
14219     ;;
14220   *)
14221     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14222     ;;
14223 esac
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14225 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14226
14227
14228
14229 #
14230 # Check to make sure the PIC flag actually works.
14231 #
14232 if test -n "$lt_prog_compiler_pic_CXX"; then
14233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14234 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14235 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14236   $as_echo_n "(cached) " >&6
14237 else
14238   lt_cv_prog_compiler_pic_works_CXX=no
14239    ac_outfile=conftest.$ac_objext
14240    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14241    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14242    # Insert the option either (1) after the last *FLAGS variable, or
14243    # (2) before a word containing "conftest.", or (3) at the end.
14244    # Note that $ac_compile itself does not contain backslashes and begins
14245    # with a dollar sign (not a hyphen), so the echo should work correctly.
14246    # The option is referenced via a variable to avoid confusing sed.
14247    lt_compile=`echo "$ac_compile" | $SED \
14248    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14249    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14250    -e 's:$: $lt_compiler_flag:'`
14251    (eval echo "\"\$as_me:14251: $lt_compile\"" >&5)
14252    (eval "$lt_compile" 2>conftest.err)
14253    ac_status=$?
14254    cat conftest.err >&5
14255    echo "$as_me:14255: \$? = $ac_status" >&5
14256    if (exit $ac_status) && test -s "$ac_outfile"; then
14257      # The compiler can only warn and ignore the option if not recognized
14258      # So say no if there are warnings other than the usual output.
14259      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14260      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14261      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14262        lt_cv_prog_compiler_pic_works_CXX=yes
14263      fi
14264    fi
14265    $RM conftest*
14266
14267 fi
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14269 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14270
14271 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14272     case $lt_prog_compiler_pic_CXX in
14273      "" | " "*) ;;
14274      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14275      esac
14276 else
14277     lt_prog_compiler_pic_CXX=
14278      lt_prog_compiler_can_build_shared_CXX=no
14279 fi
14280
14281 fi
14282
14283
14284
14285 #
14286 # Check to make sure the static flag actually works.
14287 #
14288 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14290 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14291 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14292   $as_echo_n "(cached) " >&6
14293 else
14294   lt_cv_prog_compiler_static_works_CXX=no
14295    save_LDFLAGS="$LDFLAGS"
14296    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14297    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14298    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14299      # The linker can only warn and ignore the option if not recognized
14300      # So say no if there are warnings
14301      if test -s conftest.err; then
14302        # Append any errors to the config.log.
14303        cat conftest.err 1>&5
14304        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14305        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14306        if diff conftest.exp conftest.er2 >/dev/null; then
14307          lt_cv_prog_compiler_static_works_CXX=yes
14308        fi
14309      else
14310        lt_cv_prog_compiler_static_works_CXX=yes
14311      fi
14312    fi
14313    $RM -r conftest*
14314    LDFLAGS="$save_LDFLAGS"
14315
14316 fi
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14318 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14319
14320 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14321     :
14322 else
14323     lt_prog_compiler_static_CXX=
14324 fi
14325
14326
14327
14328
14329     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14330 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14331 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14332   $as_echo_n "(cached) " >&6
14333 else
14334   lt_cv_prog_compiler_c_o_CXX=no
14335    $RM -r conftest 2>/dev/null
14336    mkdir conftest
14337    cd conftest
14338    mkdir out
14339    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14340
14341    lt_compiler_flag="-o out/conftest2.$ac_objext"
14342    # Insert the option either (1) after the last *FLAGS variable, or
14343    # (2) before a word containing "conftest.", or (3) at the end.
14344    # Note that $ac_compile itself does not contain backslashes and begins
14345    # with a dollar sign (not a hyphen), so the echo should work correctly.
14346    lt_compile=`echo "$ac_compile" | $SED \
14347    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14348    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14349    -e 's:$: $lt_compiler_flag:'`
14350    (eval echo "\"\$as_me:14350: $lt_compile\"" >&5)
14351    (eval "$lt_compile" 2>out/conftest.err)
14352    ac_status=$?
14353    cat out/conftest.err >&5
14354    echo "$as_me:14354: \$? = $ac_status" >&5
14355    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14356    then
14357      # The compiler can only warn and ignore the option if not recognized
14358      # So say no if there are warnings
14359      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14360      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14361      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14362        lt_cv_prog_compiler_c_o_CXX=yes
14363      fi
14364    fi
14365    chmod u+w . 2>&5
14366    $RM conftest*
14367    # SGI C++ compiler will create directory out/ii_files/ for
14368    # template instantiation
14369    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14370    $RM out/* && rmdir out
14371    cd ..
14372    $RM -r conftest
14373    $RM conftest*
14374
14375 fi
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14377 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14378
14379
14380
14381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14382 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14383 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14384   $as_echo_n "(cached) " >&6
14385 else
14386   lt_cv_prog_compiler_c_o_CXX=no
14387    $RM -r conftest 2>/dev/null
14388    mkdir conftest
14389    cd conftest
14390    mkdir out
14391    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14392
14393    lt_compiler_flag="-o out/conftest2.$ac_objext"
14394    # Insert the option either (1) after the last *FLAGS variable, or
14395    # (2) before a word containing "conftest.", or (3) at the end.
14396    # Note that $ac_compile itself does not contain backslashes and begins
14397    # with a dollar sign (not a hyphen), so the echo should work correctly.
14398    lt_compile=`echo "$ac_compile" | $SED \
14399    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14400    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14401    -e 's:$: $lt_compiler_flag:'`
14402    (eval echo "\"\$as_me:14402: $lt_compile\"" >&5)
14403    (eval "$lt_compile" 2>out/conftest.err)
14404    ac_status=$?
14405    cat out/conftest.err >&5
14406    echo "$as_me:14406: \$? = $ac_status" >&5
14407    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14408    then
14409      # The compiler can only warn and ignore the option if not recognized
14410      # So say no if there are warnings
14411      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14412      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14413      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14414        lt_cv_prog_compiler_c_o_CXX=yes
14415      fi
14416    fi
14417    chmod u+w . 2>&5
14418    $RM conftest*
14419    # SGI C++ compiler will create directory out/ii_files/ for
14420    # template instantiation
14421    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14422    $RM out/* && rmdir out
14423    cd ..
14424    $RM -r conftest
14425    $RM conftest*
14426
14427 fi
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14429 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14430
14431
14432
14433
14434 hard_links="nottested"
14435 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14436   # do not overwrite the value of need_locks provided by the user
14437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14438 $as_echo_n "checking if we can lock with hard links... " >&6; }
14439   hard_links=yes
14440   $RM conftest*
14441   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14442   touch conftest.a
14443   ln conftest.a conftest.b 2>&5 || hard_links=no
14444   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14446 $as_echo "$hard_links" >&6; }
14447   if test "$hard_links" = no; then
14448     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14449 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14450     need_locks=warn
14451   fi
14452 else
14453   need_locks=no
14454 fi
14455
14456
14457
14458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14459 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14460
14461   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14462   case $host_os in
14463   aix[4-9]*)
14464     # If we're using GNU nm, then we don't want the "-C" option.
14465     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14466     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14467       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'
14468     else
14469       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'
14470     fi
14471     ;;
14472   pw32*)
14473     export_symbols_cmds_CXX="$ltdll_cmds"
14474   ;;
14475   cygwin* | mingw* | cegcc*)
14476     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'
14477   ;;
14478   linux* | k*bsd*-gnu)
14479     link_all_deplibs_CXX=no
14480   ;;
14481   *)
14482     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14483   ;;
14484   esac
14485   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14486
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14488 $as_echo "$ld_shlibs_CXX" >&6; }
14489 test "$ld_shlibs_CXX" = no && can_build_shared=no
14490
14491 with_gnu_ld_CXX=$with_gnu_ld
14492
14493
14494
14495
14496
14497
14498 #
14499 # Do we need to explicitly link libc?
14500 #
14501 case "x$archive_cmds_need_lc_CXX" in
14502 x|xyes)
14503   # Assume -lc should be added
14504   archive_cmds_need_lc_CXX=yes
14505
14506   if test "$enable_shared" = yes && test "$GCC" = yes; then
14507     case $archive_cmds_CXX in
14508     *'~'*)
14509       # FIXME: we may have to deal with multi-command sequences.
14510       ;;
14511     '$CC '*)
14512       # Test whether the compiler implicitly links with -lc since on some
14513       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14514       # to ld, don't add -lc before -lgcc.
14515       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14516 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14517       $RM conftest*
14518       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14519
14520       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14521   (eval $ac_compile) 2>&5
14522   ac_status=$?
14523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14524   test $ac_status = 0; } 2>conftest.err; then
14525         soname=conftest
14526         lib=conftest
14527         libobjs=conftest.$ac_objext
14528         deplibs=
14529         wl=$lt_prog_compiler_wl_CXX
14530         pic_flag=$lt_prog_compiler_pic_CXX
14531         compiler_flags=-v
14532         linker_flags=-v
14533         verstring=
14534         output_objdir=.
14535         libname=conftest
14536         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14537         allow_undefined_flag_CXX=
14538         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14539   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14540   ac_status=$?
14541   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14542   test $ac_status = 0; }
14543         then
14544           archive_cmds_need_lc_CXX=no
14545         else
14546           archive_cmds_need_lc_CXX=yes
14547         fi
14548         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14549       else
14550         cat conftest.err 1>&5
14551       fi
14552       $RM conftest*
14553       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14554 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14555       ;;
14556     esac
14557   fi
14558   ;;
14559 esac
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14625 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14626
14627 library_names_spec=
14628 libname_spec='lib$name'
14629 soname_spec=
14630 shrext_cmds=".so"
14631 postinstall_cmds=
14632 postuninstall_cmds=
14633 finish_cmds=
14634 finish_eval=
14635 shlibpath_var=
14636 shlibpath_overrides_runpath=unknown
14637 version_type=none
14638 dynamic_linker="$host_os ld.so"
14639 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14640 need_lib_prefix=unknown
14641 hardcode_into_libs=no
14642
14643 # when you set need_version to no, make sure it does not cause -set_version
14644 # flags to be left without arguments
14645 need_version=unknown
14646
14647 case $host_os in
14648 aix3*)
14649   version_type=linux
14650   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14651   shlibpath_var=LIBPATH
14652
14653   # AIX 3 has no versioning support, so we append a major version to the name.
14654   soname_spec='${libname}${release}${shared_ext}$major'
14655   ;;
14656
14657 aix[4-9]*)
14658   version_type=linux
14659   need_lib_prefix=no
14660   need_version=no
14661   hardcode_into_libs=yes
14662   if test "$host_cpu" = ia64; then
14663     # AIX 5 supports IA64
14664     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14665     shlibpath_var=LD_LIBRARY_PATH
14666   else
14667     # With GCC up to 2.95.x, collect2 would create an import file
14668     # for dependence libraries.  The import file would start with
14669     # the line `#! .'.  This would cause the generated library to
14670     # depend on `.', always an invalid library.  This was fixed in
14671     # development snapshots of GCC prior to 3.0.
14672     case $host_os in
14673       aix4 | aix4.[01] | aix4.[01].*)
14674       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14675            echo ' yes '
14676            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14677         :
14678       else
14679         can_build_shared=no
14680       fi
14681       ;;
14682     esac
14683     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14684     # soname into executable. Probably we can add versioning support to
14685     # collect2, so additional links can be useful in future.
14686     if test "$aix_use_runtimelinking" = yes; then
14687       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14688       # instead of lib<name>.a to let people know that these are not
14689       # typical AIX shared libraries.
14690       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691     else
14692       # We preserve .a as extension for shared libraries through AIX4.2
14693       # and later when we are not doing run time linking.
14694       library_names_spec='${libname}${release}.a $libname.a'
14695       soname_spec='${libname}${release}${shared_ext}$major'
14696     fi
14697     shlibpath_var=LIBPATH
14698   fi
14699   ;;
14700
14701 amigaos*)
14702   case $host_cpu in
14703   powerpc)
14704     # Since July 2007 AmigaOS4 officially supports .so libraries.
14705     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14706     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707     ;;
14708   m68k)
14709     library_names_spec='$libname.ixlibrary $libname.a'
14710     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14711     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'
14712     ;;
14713   esac
14714   ;;
14715
14716 beos*)
14717   library_names_spec='${libname}${shared_ext}'
14718   dynamic_linker="$host_os ld.so"
14719   shlibpath_var=LIBRARY_PATH
14720   ;;
14721
14722 bsdi[45]*)
14723   version_type=linux
14724   need_version=no
14725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726   soname_spec='${libname}${release}${shared_ext}$major'
14727   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14728   shlibpath_var=LD_LIBRARY_PATH
14729   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14730   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14731   # the default ld.so.conf also contains /usr/contrib/lib and
14732   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14733   # libtool to hard-code these into programs
14734   ;;
14735
14736 cygwin* | mingw* | pw32* | cegcc*)
14737   version_type=windows
14738   shrext_cmds=".dll"
14739   need_version=no
14740   need_lib_prefix=no
14741
14742   case $GCC,$host_os in
14743   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14744     library_names_spec='$libname.dll.a'
14745     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14746     postinstall_cmds='base_file=`basename \${file}`~
14747       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14748       dldir=$destdir/`dirname \$dlpath`~
14749       test -d \$dldir || mkdir -p \$dldir~
14750       $install_prog $dir/$dlname \$dldir/$dlname~
14751       chmod a+x \$dldir/$dlname~
14752       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14753         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14754       fi'
14755     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14756       dlpath=$dir/\$dldll~
14757        $RM \$dlpath'
14758     shlibpath_overrides_runpath=yes
14759
14760     case $host_os in
14761     cygwin*)
14762       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14763       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14764       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14765       ;;
14766     mingw* | cegcc*)
14767       # MinGW DLLs use traditional 'lib' prefix
14768       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14769       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14770       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14771         # It is most probably a Windows format PATH printed by
14772         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14773         # path with ; separators, and with drive letters. We can handle the
14774         # drive letters (cygwin fileutils understands them), so leave them,
14775         # especially as we might pass files found there to a mingw objdump,
14776         # which wouldn't understand a cygwinified path. Ahh.
14777         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14778       else
14779         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14780       fi
14781       ;;
14782     pw32*)
14783       # pw32 DLLs use 'pw' prefix rather than 'lib'
14784       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14785       ;;
14786     esac
14787     ;;
14788
14789   *)
14790     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14791     ;;
14792   esac
14793   dynamic_linker='Win32 ld.exe'
14794   # FIXME: first we should search . and the directory the executable is in
14795   shlibpath_var=PATH
14796   ;;
14797
14798 darwin* | rhapsody*)
14799   dynamic_linker="$host_os dyld"
14800   version_type=darwin
14801   need_lib_prefix=no
14802   need_version=no
14803   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14804   soname_spec='${libname}${release}${major}$shared_ext'
14805   shlibpath_overrides_runpath=yes
14806   shlibpath_var=DYLD_LIBRARY_PATH
14807   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14808
14809   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14810   ;;
14811
14812 dgux*)
14813   version_type=linux
14814   need_lib_prefix=no
14815   need_version=no
14816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14817   soname_spec='${libname}${release}${shared_ext}$major'
14818   shlibpath_var=LD_LIBRARY_PATH
14819   ;;
14820
14821 freebsd1*)
14822   dynamic_linker=no
14823   ;;
14824
14825 freebsd* | dragonfly*)
14826   # DragonFly does not have aout.  When/if they implement a new
14827   # versioning mechanism, adjust this.
14828   if test -x /usr/bin/objformat; then
14829     objformat=`/usr/bin/objformat`
14830   else
14831     case $host_os in
14832     freebsd[123]*) objformat=aout ;;
14833     *) objformat=elf ;;
14834     esac
14835   fi
14836   version_type=freebsd-$objformat
14837   case $version_type in
14838     freebsd-elf*)
14839       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14840       need_version=no
14841       need_lib_prefix=no
14842       ;;
14843     freebsd-*)
14844       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14845       need_version=yes
14846       ;;
14847   esac
14848   shlibpath_var=LD_LIBRARY_PATH
14849   case $host_os in
14850   freebsd2*)
14851     shlibpath_overrides_runpath=yes
14852     ;;
14853   freebsd3.[01]* | freebsdelf3.[01]*)
14854     shlibpath_overrides_runpath=yes
14855     hardcode_into_libs=yes
14856     ;;
14857   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14858   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14859     shlibpath_overrides_runpath=no
14860     hardcode_into_libs=yes
14861     ;;
14862   *) # from 4.6 on, and DragonFly
14863     shlibpath_overrides_runpath=yes
14864     hardcode_into_libs=yes
14865     ;;
14866   esac
14867   ;;
14868
14869 gnu*)
14870   version_type=linux
14871   need_lib_prefix=no
14872   need_version=no
14873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14874   soname_spec='${libname}${release}${shared_ext}$major'
14875   shlibpath_var=LD_LIBRARY_PATH
14876   hardcode_into_libs=yes
14877   ;;
14878
14879 hpux9* | hpux10* | hpux11*)
14880   # Give a soname corresponding to the major version so that dld.sl refuses to
14881   # link against other versions.
14882   version_type=sunos
14883   need_lib_prefix=no
14884   need_version=no
14885   case $host_cpu in
14886   ia64*)
14887     shrext_cmds='.so'
14888     hardcode_into_libs=yes
14889     dynamic_linker="$host_os dld.so"
14890     shlibpath_var=LD_LIBRARY_PATH
14891     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14892     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14893     soname_spec='${libname}${release}${shared_ext}$major'
14894     if test "X$HPUX_IA64_MODE" = X32; then
14895       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14896     else
14897       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14898     fi
14899     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14900     ;;
14901   hppa*64*)
14902     shrext_cmds='.sl'
14903     hardcode_into_libs=yes
14904     dynamic_linker="$host_os dld.sl"
14905     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14906     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14907     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14908     soname_spec='${libname}${release}${shared_ext}$major'
14909     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14910     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14911     ;;
14912   *)
14913     shrext_cmds='.sl'
14914     dynamic_linker="$host_os dld.sl"
14915     shlibpath_var=SHLIB_PATH
14916     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14917     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14918     soname_spec='${libname}${release}${shared_ext}$major'
14919     ;;
14920   esac
14921   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14922   postinstall_cmds='chmod 555 $lib'
14923   ;;
14924
14925 interix[3-9]*)
14926   version_type=linux
14927   need_lib_prefix=no
14928   need_version=no
14929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14930   soname_spec='${libname}${release}${shared_ext}$major'
14931   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14932   shlibpath_var=LD_LIBRARY_PATH
14933   shlibpath_overrides_runpath=no
14934   hardcode_into_libs=yes
14935   ;;
14936
14937 irix5* | irix6* | nonstopux*)
14938   case $host_os in
14939     nonstopux*) version_type=nonstopux ;;
14940     *)
14941         if test "$lt_cv_prog_gnu_ld" = yes; then
14942                 version_type=linux
14943         else
14944                 version_type=irix
14945         fi ;;
14946   esac
14947   need_lib_prefix=no
14948   need_version=no
14949   soname_spec='${libname}${release}${shared_ext}$major'
14950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14951   case $host_os in
14952   irix5* | nonstopux*)
14953     libsuff= shlibsuff=
14954     ;;
14955   *)
14956     case $LD in # libtool.m4 will add one of these switches to LD
14957     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14958       libsuff= shlibsuff= libmagic=32-bit;;
14959     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14960       libsuff=32 shlibsuff=N32 libmagic=N32;;
14961     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14962       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14963     *) libsuff= shlibsuff= libmagic=never-match;;
14964     esac
14965     ;;
14966   esac
14967   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14968   shlibpath_overrides_runpath=no
14969   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14970   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14971   hardcode_into_libs=yes
14972   ;;
14973
14974 # No shared lib support for Linux oldld, aout, or coff.
14975 linux*oldld* | linux*aout* | linux*coff*)
14976   dynamic_linker=no
14977   ;;
14978
14979 # This must be Linux ELF.
14980 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14981   version_type=linux
14982   need_lib_prefix=no
14983   need_version=no
14984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14985   soname_spec='${libname}${release}${shared_ext}$major'
14986   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14987   shlibpath_var=LD_LIBRARY_PATH
14988   shlibpath_overrides_runpath=no
14989   # Some binutils ld are patched to set DT_RUNPATH
14990   save_LDFLAGS=$LDFLAGS
14991   save_libdir=$libdir
14992   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14993        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h.  */
14996
14997 int
14998 main ()
14999 {
15000
15001   ;
15002   return 0;
15003 }
15004 _ACEOF
15005 if ac_fn_cxx_try_link "$LINENO"; then :
15006   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15007   shlibpath_overrides_runpath=yes
15008 fi
15009 fi
15010 rm -f core conftest.err conftest.$ac_objext \
15011     conftest$ac_exeext conftest.$ac_ext
15012   LDFLAGS=$save_LDFLAGS
15013   libdir=$save_libdir
15014
15015   # This implies no fast_install, which is unacceptable.
15016   # Some rework will be needed to allow for fast_install
15017   # before this can be enabled.
15018   hardcode_into_libs=yes
15019
15020   # Append ld.so.conf contents to the search path
15021   if test -f /etc/ld.so.conf; then
15022     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' ' '`
15023     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15024   fi
15025
15026   # We used to test for /lib/ld.so.1 and disable shared libraries on
15027   # powerpc, because MkLinux only supported shared libraries with the
15028   # GNU dynamic linker.  Since this was broken with cross compilers,
15029   # most powerpc-linux boxes support dynamic linking these days and
15030   # people can always --disable-shared, the test was removed, and we
15031   # assume the GNU/Linux dynamic linker is in use.
15032   dynamic_linker='GNU/Linux ld.so'
15033   ;;
15034
15035 netbsdelf*-gnu)
15036   version_type=linux
15037   need_lib_prefix=no
15038   need_version=no
15039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15040   soname_spec='${libname}${release}${shared_ext}$major'
15041   shlibpath_var=LD_LIBRARY_PATH
15042   shlibpath_overrides_runpath=no
15043   hardcode_into_libs=yes
15044   dynamic_linker='NetBSD ld.elf_so'
15045   ;;
15046
15047 netbsd*)
15048   version_type=sunos
15049   need_lib_prefix=no
15050   need_version=no
15051   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15053     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15054     dynamic_linker='NetBSD (a.out) ld.so'
15055   else
15056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15057     soname_spec='${libname}${release}${shared_ext}$major'
15058     dynamic_linker='NetBSD ld.elf_so'
15059   fi
15060   shlibpath_var=LD_LIBRARY_PATH
15061   shlibpath_overrides_runpath=yes
15062   hardcode_into_libs=yes
15063   ;;
15064
15065 newsos6)
15066   version_type=linux
15067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15068   shlibpath_var=LD_LIBRARY_PATH
15069   shlibpath_overrides_runpath=yes
15070   ;;
15071
15072 *nto* | *qnx*)
15073   version_type=qnx
15074   need_lib_prefix=no
15075   need_version=no
15076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15077   soname_spec='${libname}${release}${shared_ext}$major'
15078   shlibpath_var=LD_LIBRARY_PATH
15079   shlibpath_overrides_runpath=no
15080   hardcode_into_libs=yes
15081   dynamic_linker='ldqnx.so'
15082   ;;
15083
15084 openbsd*)
15085   version_type=sunos
15086   sys_lib_dlsearch_path_spec="/usr/lib"
15087   need_lib_prefix=no
15088   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15089   case $host_os in
15090     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15091     *)                          need_version=no  ;;
15092   esac
15093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15094   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15095   shlibpath_var=LD_LIBRARY_PATH
15096   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15097     case $host_os in
15098       openbsd2.[89] | openbsd2.[89].*)
15099         shlibpath_overrides_runpath=no
15100         ;;
15101       *)
15102         shlibpath_overrides_runpath=yes
15103         ;;
15104       esac
15105   else
15106     shlibpath_overrides_runpath=yes
15107   fi
15108   ;;
15109
15110 os2*)
15111   libname_spec='$name'
15112   shrext_cmds=".dll"
15113   need_lib_prefix=no
15114   library_names_spec='$libname${shared_ext} $libname.a'
15115   dynamic_linker='OS/2 ld.exe'
15116   shlibpath_var=LIBPATH
15117   ;;
15118
15119 osf3* | osf4* | osf5*)
15120   version_type=osf
15121   need_lib_prefix=no
15122   need_version=no
15123   soname_spec='${libname}${release}${shared_ext}$major'
15124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15125   shlibpath_var=LD_LIBRARY_PATH
15126   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15127   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15128   ;;
15129
15130 rdos*)
15131   dynamic_linker=no
15132   ;;
15133
15134 solaris*)
15135   version_type=linux
15136   need_lib_prefix=no
15137   need_version=no
15138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15139   soname_spec='${libname}${release}${shared_ext}$major'
15140   shlibpath_var=LD_LIBRARY_PATH
15141   shlibpath_overrides_runpath=yes
15142   hardcode_into_libs=yes
15143   # ldd complains unless libraries are executable
15144   postinstall_cmds='chmod +x $lib'
15145   ;;
15146
15147 sunos4*)
15148   version_type=sunos
15149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15150   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15151   shlibpath_var=LD_LIBRARY_PATH
15152   shlibpath_overrides_runpath=yes
15153   if test "$with_gnu_ld" = yes; then
15154     need_lib_prefix=no
15155   fi
15156   need_version=yes
15157   ;;
15158
15159 sysv4 | sysv4.3*)
15160   version_type=linux
15161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15162   soname_spec='${libname}${release}${shared_ext}$major'
15163   shlibpath_var=LD_LIBRARY_PATH
15164   case $host_vendor in
15165     sni)
15166       shlibpath_overrides_runpath=no
15167       need_lib_prefix=no
15168       runpath_var=LD_RUN_PATH
15169       ;;
15170     siemens)
15171       need_lib_prefix=no
15172       ;;
15173     motorola)
15174       need_lib_prefix=no
15175       need_version=no
15176       shlibpath_overrides_runpath=no
15177       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15178       ;;
15179   esac
15180   ;;
15181
15182 sysv4*MP*)
15183   if test -d /usr/nec ;then
15184     version_type=linux
15185     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15186     soname_spec='$libname${shared_ext}.$major'
15187     shlibpath_var=LD_LIBRARY_PATH
15188   fi
15189   ;;
15190
15191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15192   version_type=freebsd-elf
15193   need_lib_prefix=no
15194   need_version=no
15195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15196   soname_spec='${libname}${release}${shared_ext}$major'
15197   shlibpath_var=LD_LIBRARY_PATH
15198   shlibpath_overrides_runpath=yes
15199   hardcode_into_libs=yes
15200   if test "$with_gnu_ld" = yes; then
15201     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15202   else
15203     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15204     case $host_os in
15205       sco3.2v5*)
15206         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15207         ;;
15208     esac
15209   fi
15210   sys_lib_dlsearch_path_spec='/usr/lib'
15211   ;;
15212
15213 tpf*)
15214   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15215   version_type=linux
15216   need_lib_prefix=no
15217   need_version=no
15218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15219   shlibpath_var=LD_LIBRARY_PATH
15220   shlibpath_overrides_runpath=no
15221   hardcode_into_libs=yes
15222   ;;
15223
15224 uts4*)
15225   version_type=linux
15226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227   soname_spec='${libname}${release}${shared_ext}$major'
15228   shlibpath_var=LD_LIBRARY_PATH
15229   ;;
15230
15231 *)
15232   dynamic_linker=no
15233   ;;
15234 esac
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15236 $as_echo "$dynamic_linker" >&6; }
15237 test "$dynamic_linker" = no && can_build_shared=no
15238
15239 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15240 if test "$GCC" = yes; then
15241   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15242 fi
15243
15244 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15245   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15246 fi
15247 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15248   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15249 fi
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15287 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15288 hardcode_action_CXX=
15289 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15290    test -n "$runpath_var_CXX" ||
15291    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15292
15293   # We can hardcode non-existent directories.
15294   if test "$hardcode_direct_CXX" != no &&
15295      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15296      # have to relink, otherwise we might link with an installed library
15297      # when we should be linking with a yet-to-be-installed one
15298      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15299      test "$hardcode_minus_L_CXX" != no; then
15300     # Linking always hardcodes the temporary library directory.
15301     hardcode_action_CXX=relink
15302   else
15303     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15304     hardcode_action_CXX=immediate
15305   fi
15306 else
15307   # We cannot hardcode anything, or else we can only hardcode existing
15308   # directories.
15309   hardcode_action_CXX=unsupported
15310 fi
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15312 $as_echo "$hardcode_action_CXX" >&6; }
15313
15314 if test "$hardcode_action_CXX" = relink ||
15315    test "$inherit_rpath_CXX" = yes; then
15316   # Fast installation is not supported
15317   enable_fast_install=no
15318 elif test "$shlibpath_overrides_runpath" = yes ||
15319      test "$enable_shared" = no; then
15320   # Fast installation is not necessary
15321   enable_fast_install=needless
15322 fi
15323
15324
15325
15326
15327
15328
15329
15330   fi # test -n "$compiler"
15331
15332   CC=$lt_save_CC
15333   LDCXX=$LD
15334   LD=$lt_save_LD
15335   GCC=$lt_save_GCC
15336   with_gnu_ld=$lt_save_with_gnu_ld
15337   lt_cv_path_LDCXX=$lt_cv_path_LD
15338   lt_cv_path_LD=$lt_save_path_LD
15339   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15340   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15341 fi # test "$_lt_caught_CXX_error" != yes
15342
15343 ac_ext=c
15344 ac_cpp='$CPP $CPPFLAGS'
15345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15348
15349
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15351 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15352 set x ${MAKE-make}
15353 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15354 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15355   $as_echo_n "(cached) " >&6
15356 else
15357   cat >conftest.make <<\_ACEOF
15358 SHELL = /bin/sh
15359 all:
15360         @echo '@@@%%%=$(MAKE)=@@@%%%'
15361 _ACEOF
15362 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15363 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15364   *@@@%%%=?*=@@@%%%*)
15365     eval ac_cv_prog_make_${ac_make}_set=yes;;
15366   *)
15367     eval ac_cv_prog_make_${ac_make}_set=no;;
15368 esac
15369 rm -f conftest.make
15370 fi
15371 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15373 $as_echo "yes" >&6; }
15374   SET_MAKE=
15375 else
15376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15377 $as_echo "no" >&6; }
15378   SET_MAKE="MAKE=${MAKE-make}"
15379 fi
15380
15381
15382 # TODO: Fix code to pass with -pedantic -Wextra.
15383 # -Wno-unknown-pragmas needed because icalstrdup.h
15384 # currently uses the "#pragma }" trick. Should remove that.
15385 # Fix code to work without deprecated methods: G GDK GDK_PIXBUF CAIRO PANGO GTK
15386 # Check whether --enable-warnings was given.
15387 if test "${enable_warnings+set}" = set; then :
15388   enableval=$enable_warnings; dk_enable_warnings=$enableval
15389 else
15390   dk_enable_warnings=min
15391 fi
15392
15393 dk_lang=
15394 case $ac_compile in
15395   *'$CXXFLAGS '*)
15396     dk_lang='C++'
15397     dk_cc=$CXX
15398     dk_conftest=conftest.${ac_ext-cc}
15399     ;;
15400   *'$CFLAGS '*)
15401     dk_lang=C
15402     dk_cc=$CC
15403     dk_conftest=conftest.${ac_ext-c}
15404     ;;
15405 esac
15406
15407 if test "x$dk_lang" != x; then :
15408
15409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which $dk_lang compiler warning flags to use" >&5
15410 $as_echo_n "checking which $dk_lang compiler warning flags to use... " >&6; }
15411
15412   case $dk_enable_warnings in
15413     no) dk_warning_flags=;;
15414     max) dk_warning_flags="-Wall -Wno-unknown-pragmas -Wno-deprecated-declarations";;
15415     fatal) dk_warning_flags="-Wall -Wno-unknown-pragmas -Wno-deprecated-declarations -Werror";;
15416     *) dk_warning_flags="-Wall -Wno-unknown-pragmas -Wno-deprecated-declarations";;
15417   esac
15418
15419   dk_deprecation_flags=
15420   dk_tested_flags=
15421
15422   if test "x$dk_warning_flags" != x; then :
15423
15424     # Keep in mind that the dummy source must be devoid of any
15425     # problems that might cause diagnostics.
15426     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15427 /* end confdefs.h.  */
15428 int main(int argc, char** argv) { return (argv != 0) ? argc : 0; }
15429 _ACEOF
15430
15431     for dk_flag in $dk_warning_flags
15432     do
15433       # Test whether the compiler accepts the flag. GCC doesn't bail
15434       # out when given an unsupported flag but prints a warning, so
15435       # check the compiler output instead.
15436       dk_cc_out=`$dk_cc $dk_tested_flags $dk_flag -c "$dk_conftest" 2>&1 || echo failed`
15437       rm -f "conftest.${OBJEXT-o}"
15438
15439       if test "x$dk_cc_out" = x; then :
15440
15441         if test "x$dk_tested_flags" = x; then :
15442   dk_tested_flags=$dk_flag
15443 else
15444   dk_tested_flags="$dk_tested_flags $dk_flag"
15445 fi
15446
15447 else
15448
15449         echo "$dk_cc_out" >&5
15450
15451 fi
15452     done
15453
15454     rm -f "$dk_conftest"
15455
15456 fi
15457   dk_all_flags=$dk_deprecation_flags$dk_tested_flags
15458   SYNCEVO_WFLAGS=$dk_all_flags
15459
15460
15461   test "x$dk_all_flags" != x || dk_all_flags=none
15462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dk_all_flags" >&5
15463 $as_echo "$dk_all_flags" >&6; }
15464
15465 fi
15466
15467
15468 DEVICE_TYPE=workstation
15469
15470
15471 # Check whether --with-synthesis-src was given.
15472 if test "${with_synthesis_src+set}" = set; then :
15473   withval=$with_synthesis_src; SYNTHESISSRC="$withval"
15474              test "$SYNTHESISSRC" != "yes" || as_fn_error "--with-synthesis-src requires a parameter (base directory, svn URL or git URL)" "$LINENO" 5
15475 else
15476   SYNTHESISSRC="$SYNTHESISSRC_DEF"; REVISION="syncevolution-0.9"
15477 fi
15478
15479
15480
15481 # Check whether --with-syncml-engines was given.
15482 if test "${with_syncml_engines+set}" = set; then :
15483   withval=$with_syncml_engines; SYNCML_ENGINES="$withval"
15484 else
15485   SYNCML_ENGINES=both
15486 fi
15487
15488
15489 case $SYNCML_ENGINES in both|client)
15490 $as_echo "#define ENABLE_SYNCML_CLIENT 1" >>confdefs.h
15491 ;; esac
15492 case $SYNCML_ENGINES in both|server)
15493 $as_echo "#define ENABLE_SYNCML_SERVER 1" >>confdefs.h
15494 ;; esac
15495 case $SYNCML_ENGINES in both|server|client) true;; *) as_fn_error "Invalid value for --with-syncml-engines: $SYNCML_ENGINES" "$LINENO" 5;; esac
15496
15497
15498 # Check whether --with-synthesis-username was given.
15499 if test "${with_synthesis_username+set}" = set; then :
15500   withval=$with_synthesis_username; USERNAME="$withval"
15501 else
15502   USERNAME="guest"
15503 fi
15504
15505
15506
15507 # Check whether --with-synthesis-revision was given.
15508 if test "${with_synthesis_revision+set}" = set; then :
15509   withval=$with_synthesis_revision; REVISION="$withval"
15510 fi
15511
15512
15513 # Check whether --enable-shared was given.
15514 if test "${enable_shared+set}" = set; then :
15515   enableval=$enable_shared; enable_shared="$enableval"
15516 else
15517   enable_shared="no"
15518 fi
15519
15520
15521 # Check whether --enable-static was given.
15522 if test "${enable_static+set}" = set; then :
15523   enableval=$enable_static; enable_static="$enableval"
15524 else
15525   enable_static="no"
15526 fi
15527
15528
15529 # Check whether --enable-unit-tests was given.
15530 if test "${enable_unit_tests+set}" = set; then :
15531   enableval=$enable_unit_tests; enable_unit_tests="$enableval"
15532 else
15533   enable_unit_tests="no"
15534 fi
15535
15536 # Check whether --enable-integration-tests was given.
15537 if test "${enable_integration_tests+set}" = set; then :
15538   enableval=$enable_integration_tests; enable_integration_tests="$enableval"
15539 else
15540   enable_integration_tests="no"
15541 fi
15542
15543
15544 # Check whether --enable-static-cxx was given.
15545 if test "${enable_static_cxx+set}" = set; then :
15546   enableval=$enable_static_cxx; enable_static_cxx="$enableval"
15547 else
15548   enable_static_cxx="no"
15549 fi
15550
15551
15552 # Check whether --enable-evolution-compatibility was given.
15553 if test "${enable_evolution_compatibility+set}" = set; then :
15554   enableval=$enable_evolution_compatibility; enable_evolution_compatibility="$enableval"
15555 else
15556   enable_evolution_compatibility="no"
15557 fi
15558
15559
15560 # Check whether --enable-developer-mode was given.
15561 if test "${enable_developer_mode+set}" = set; then :
15562   enableval=$enable_developer_mode; enable_developer_mode="$enableval"
15563 else
15564   enable_developer_mode="no"
15565 fi
15566
15567
15568 # Maemo hacks:
15569 # - wrap e_book_from_string() to fix invalid parameter
15570 # - don't use UTF-8 encoding in Perl script
15571 # Check whether --enable-maemo was given.
15572 if test "${enable_maemo+set}" = set; then :
15573   enableval=$enable_maemo;
15574 $as_echo "#define ENABLE_MAEMO 1" >>confdefs.h
15575
15576                DEVICE_TYPE=Maemo
15577                MODIFY_SYNCCOMPARE='-e "s/use encoding/#use encoding/;" -e "s/:utf8//;"'
15578 fi
15579
15580
15581
15582 for ac_header in signal.h dlfcn.h
15583 do :
15584   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15585 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15586 eval as_val=\$$as_ac_Header
15587    if test "x$as_val" = x""yes; then :
15588   cat >>confdefs.h <<_ACEOF
15589 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15590 _ACEOF
15591
15592 fi
15593
15594 done
15595
15596
15597 # cppunit-config is used even when both unit tests and integration tests are disabled.
15598 # Extract the first word of "cppunit-config", so it can be a program name with args.
15599 set dummy cppunit-config; ac_word=$2
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15601 $as_echo_n "checking for $ac_word... " >&6; }
15602 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
15603   $as_echo_n "(cached) " >&6
15604 else
15605   case $CPPUNIT_CONFIG in
15606   [\\/]* | ?:[\\/]*)
15607   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
15608   ;;
15609   *)
15610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15611 for as_dir in $PATH
15612 do
15613   IFS=$as_save_IFS
15614   test -z "$as_dir" && as_dir=.
15615     for ac_exec_ext in '' $ac_executable_extensions; do
15616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15617     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15619     break 2
15620   fi
15621 done
15622   done
15623 IFS=$as_save_IFS
15624
15625   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
15626   ;;
15627 esac
15628 fi
15629 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
15630 if test -n "$CPPUNIT_CONFIG"; then
15631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
15632 $as_echo "$CPPUNIT_CONFIG" >&6; }
15633 else
15634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15635 $as_echo "no" >&6; }
15636 fi
15637
15638
15639
15640 test "x$CPPUNIT_CONFIG" != 'xno' || as_fn_error "\"cppunit-config not found.\"" "$LINENO" 5
15641
15642 # cppunit needed?
15643 #if test "x$enable_unit_tests" = 'xyes' || test "x$enable_integration_tests" = 'xyes'
15644 #then
15645   CPPUNIT_CXXFLAGS=`$CPPUNIT_CONFIG --cflags`
15646   CPPUNIT_LDFLAGS=`$CPPUNIT_CONFIG --libs`
15647 #fi
15648
15649
15650
15651 if test "x$enable_unit_tests" = 'xyes'; then
15652
15653 $as_echo "#define ENABLE_UNIT_TESTS 1" >>confdefs.h
15654
15655 fi
15656 if test "x$enable_integration_tests" = 'xyes'; then
15657
15658 $as_echo "#define ENABLE_INTEGRATION_TESTS 1" >>confdefs.h
15659
15660 fi
15661  if test "$enable_unit_tests" = "yes"; then
15662   ENABLE_UNIT_TESTS_TRUE=
15663   ENABLE_UNIT_TESTS_FALSE='#'
15664 else
15665   ENABLE_UNIT_TESTS_TRUE='#'
15666   ENABLE_UNIT_TESTS_FALSE=
15667 fi
15668
15669  if test "$enable_unit_tests" = "yes" || test "$enable_integration_tests" = "yes" ; then
15670   ENABLE_TESTING_TRUE=
15671   ENABLE_TESTING_FALSE='#'
15672 else
15673   ENABLE_TESTING_TRUE='#'
15674   ENABLE_TESTING_FALSE=
15675 fi
15676
15677
15678 if test $enable_static_cxx = "yes"; then
15679         LIBS="$LIBS -L."
15680         CORE_LDADD_DEP=libstdc++.a
15681 fi
15682
15683
15684 # Check for transport layer.
15685 # Both curl and libsoup can be enabled and disabled explicitly.
15686 # The default is to use libsoup if available, otherwise curl.
15687
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
15689 $as_echo_n "checking for libcurl... " >&6; }
15690 if LIBCURL_LIBS=`sh -c 'curl-config --libs' 2>&5` && \
15691     LIBCURL_CFLAGS=`sh -c 'curl-config --cflags' 2>&5`; then
15692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15693 $as_echo "yes" >&6; }
15694     have_libcurl="yes"
15695 else
15696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15697 $as_echo "no" >&6; }
15698     have_libcurl="no"
15699 fi
15700
15701
15702
15703 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15704         if test -n "$ac_tool_prefix"; then
15705   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15706 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15708 $as_echo_n "checking for $ac_word... " >&6; }
15709 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
15710   $as_echo_n "(cached) " >&6
15711 else
15712   case $PKG_CONFIG in
15713   [\\/]* | ?:[\\/]*)
15714   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15715   ;;
15716   *)
15717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15718 for as_dir in $PATH
15719 do
15720   IFS=$as_save_IFS
15721   test -z "$as_dir" && as_dir=.
15722     for ac_exec_ext in '' $ac_executable_extensions; do
15723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15724     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15726     break 2
15727   fi
15728 done
15729   done
15730 IFS=$as_save_IFS
15731
15732   ;;
15733 esac
15734 fi
15735 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15736 if test -n "$PKG_CONFIG"; then
15737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15738 $as_echo "$PKG_CONFIG" >&6; }
15739 else
15740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15741 $as_echo "no" >&6; }
15742 fi
15743
15744
15745 fi
15746 if test -z "$ac_cv_path_PKG_CONFIG"; then
15747   ac_pt_PKG_CONFIG=$PKG_CONFIG
15748   # Extract the first word of "pkg-config", so it can be a program name with args.
15749 set dummy pkg-config; ac_word=$2
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15751 $as_echo_n "checking for $ac_word... " >&6; }
15752 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
15753   $as_echo_n "(cached) " >&6
15754 else
15755   case $ac_pt_PKG_CONFIG in
15756   [\\/]* | ?:[\\/]*)
15757   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15758   ;;
15759   *)
15760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15761 for as_dir in $PATH
15762 do
15763   IFS=$as_save_IFS
15764   test -z "$as_dir" && as_dir=.
15765     for ac_exec_ext in '' $ac_executable_extensions; do
15766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15767     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15769     break 2
15770   fi
15771 done
15772   done
15773 IFS=$as_save_IFS
15774
15775   ;;
15776 esac
15777 fi
15778 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15779 if test -n "$ac_pt_PKG_CONFIG"; then
15780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15781 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15782 else
15783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15784 $as_echo "no" >&6; }
15785 fi
15786
15787   if test "x$ac_pt_PKG_CONFIG" = x; then
15788     PKG_CONFIG=""
15789   else
15790     case $cross_compiling:$ac_tool_warned in
15791 yes:)
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15794 ac_tool_warned=yes ;;
15795 esac
15796     PKG_CONFIG=$ac_pt_PKG_CONFIG
15797   fi
15798 else
15799   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15800 fi
15801
15802 fi
15803 if test -n "$PKG_CONFIG"; then
15804         _pkg_min_version=0.9.0
15805         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15806 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15807         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15808                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15809 $as_echo "yes" >&6; }
15810         else
15811                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15812 $as_echo "no" >&6; }
15813                 PKG_CONFIG=""
15814         fi
15815
15816 fi
15817
15818 pkg_failed=no
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSOUP" >&5
15820 $as_echo_n "checking for LIBSOUP... " >&6; }
15821
15822 if test -n "$PKG_CONFIG"; then
15823     if test -n "$LIBSOUP_CFLAGS"; then
15824         pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
15825     else
15826         if test -n "$PKG_CONFIG" && \
15827     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4\""; } >&5
15828   ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4") 2>&5
15829   ac_status=$?
15830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15831   test $ac_status = 0; }; then
15832   pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-gnome-2.4" 2>/dev/null`
15833 else
15834   pkg_failed=yes
15835 fi
15836     fi
15837 else
15838         pkg_failed=untried
15839 fi
15840 if test -n "$PKG_CONFIG"; then
15841     if test -n "$LIBSOUP_LIBS"; then
15842         pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
15843     else
15844         if test -n "$PKG_CONFIG" && \
15845     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4\""; } >&5
15846   ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4") 2>&5
15847   ac_status=$?
15848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15849   test $ac_status = 0; }; then
15850   pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-gnome-2.4" 2>/dev/null`
15851 else
15852   pkg_failed=yes
15853 fi
15854     fi
15855 else
15856         pkg_failed=untried
15857 fi
15858
15859
15860
15861 if test $pkg_failed = yes; then
15862
15863 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15864         _pkg_short_errors_supported=yes
15865 else
15866         _pkg_short_errors_supported=no
15867 fi
15868         if test $_pkg_short_errors_supported = yes; then
15869                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-gnome-2.4"`
15870         else
15871                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-gnome-2.4"`
15872         fi
15873         # Put the nasty error message in config.log where it belongs
15874         echo "$LIBSOUP_PKG_ERRORS" >&5
15875
15876         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15877 $as_echo "no" >&6; }
15878
15879 pkg_failed=no
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSOUP" >&5
15881 $as_echo_n "checking for LIBSOUP... " >&6; }
15882
15883 if test -n "$PKG_CONFIG"; then
15884     if test -n "$LIBSOUP_CFLAGS"; then
15885         pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
15886     else
15887         if test -n "$PKG_CONFIG" && \
15888     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
15889   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
15890   ac_status=$?
15891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15892   test $ac_status = 0; }; then
15893   pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
15894 else
15895   pkg_failed=yes
15896 fi
15897     fi
15898 else
15899         pkg_failed=untried
15900 fi
15901 if test -n "$PKG_CONFIG"; then
15902     if test -n "$LIBSOUP_LIBS"; then
15903         pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
15904     else
15905         if test -n "$PKG_CONFIG" && \
15906     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
15907   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
15908   ac_status=$?
15909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15910   test $ac_status = 0; }; then
15911   pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
15912 else
15913   pkg_failed=yes
15914 fi
15915     fi
15916 else
15917         pkg_failed=untried
15918 fi
15919
15920
15921
15922 if test $pkg_failed = yes; then
15923
15924 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15925         _pkg_short_errors_supported=yes
15926 else
15927         _pkg_short_errors_supported=no
15928 fi
15929         if test $_pkg_short_errors_supported = yes; then
15930                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.4"`
15931         else
15932                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.4"`
15933         fi
15934         # Put the nasty error message in config.log where it belongs
15935         echo "$LIBSOUP_PKG_ERRORS" >&5
15936
15937         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15938 $as_echo "no" >&6; }
15939                 have_libsoup="no"
15940 elif test $pkg_failed = untried; then
15941         have_libsoup="no"
15942 else
15943         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
15944         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
15945         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15946 $as_echo "yes" >&6; }
15947         have_libsoup="yes"
15948 fi
15949 elif test $pkg_failed = untried; then
15950
15951 pkg_failed=no
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSOUP" >&5
15953 $as_echo_n "checking for LIBSOUP... " >&6; }
15954
15955 if test -n "$PKG_CONFIG"; then
15956     if test -n "$LIBSOUP_CFLAGS"; then
15957         pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
15958     else
15959         if test -n "$PKG_CONFIG" && \
15960     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
15961   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
15962   ac_status=$?
15963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15964   test $ac_status = 0; }; then
15965   pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
15966 else
15967   pkg_failed=yes
15968 fi
15969     fi
15970 else
15971         pkg_failed=untried
15972 fi
15973 if test -n "$PKG_CONFIG"; then
15974     if test -n "$LIBSOUP_LIBS"; then
15975         pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
15976     else
15977         if test -n "$PKG_CONFIG" && \
15978     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
15979   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
15980   ac_status=$?
15981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15982   test $ac_status = 0; }; then
15983   pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
15984 else
15985   pkg_failed=yes
15986 fi
15987     fi
15988 else
15989         pkg_failed=untried
15990 fi
15991
15992
15993
15994 if test $pkg_failed = yes; then
15995
15996 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15997         _pkg_short_errors_supported=yes
15998 else
15999         _pkg_short_errors_supported=no
16000 fi
16001         if test $_pkg_short_errors_supported = yes; then
16002                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.4"`
16003         else
16004                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.4"`
16005         fi
16006         # Put the nasty error message in config.log where it belongs
16007         echo "$LIBSOUP_PKG_ERRORS" >&5
16008
16009         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16010 $as_echo "no" >&6; }
16011                 have_libsoup="no"
16012 elif test $pkg_failed = untried; then
16013         have_libsoup="no"
16014 else
16015         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
16016         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
16017         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16018 $as_echo "yes" >&6; }
16019         have_libsoup="yes"
16020 fi
16021 else
16022         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
16023         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
16024         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16025 $as_echo "yes" >&6; }
16026         have_libsoup="yes"
16027
16028 $as_echo "#define HAVE_LIBSOUP_SOUP_GNOME_FEATURES_H 1" >>confdefs.h
16029
16030 fi
16031
16032
16033 pkg_failed=no
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENOBEX" >&5
16035 $as_echo_n "checking for LIBOPENOBEX... " >&6; }
16036
16037 if test -n "$PKG_CONFIG"; then
16038     if test -n "$LIBOPENOBEX_CFLAGS"; then
16039         pkg_cv_LIBOPENOBEX_CFLAGS="$LIBOPENOBEX_CFLAGS"
16040     else
16041         if test -n "$PKG_CONFIG" && \
16042     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openobex\""; } >&5
16043   ($PKG_CONFIG --exists --print-errors "openobex") 2>&5
16044   ac_status=$?
16045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16046   test $ac_status = 0; }; then
16047   pkg_cv_LIBOPENOBEX_CFLAGS=`$PKG_CONFIG --cflags "openobex" 2>/dev/null`
16048 else
16049   pkg_failed=yes
16050 fi
16051     fi
16052 else
16053         pkg_failed=untried
16054 fi
16055 if test -n "$PKG_CONFIG"; then
16056     if test -n "$LIBOPENOBEX_LIBS"; then
16057         pkg_cv_LIBOPENOBEX_LIBS="$LIBOPENOBEX_LIBS"
16058     else
16059         if test -n "$PKG_CONFIG" && \
16060     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openobex\""; } >&5
16061   ($PKG_CONFIG --exists --print-errors "openobex") 2>&5
16062   ac_status=$?
16063   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16064   test $ac_status = 0; }; then
16065   pkg_cv_LIBOPENOBEX_LIBS=`$PKG_CONFIG --libs "openobex" 2>/dev/null`
16066 else
16067   pkg_failed=yes
16068 fi
16069     fi
16070 else
16071         pkg_failed=untried
16072 fi
16073
16074
16075
16076 if test $pkg_failed = yes; then
16077
16078 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16079         _pkg_short_errors_supported=yes
16080 else
16081         _pkg_short_errors_supported=no
16082 fi
16083         if test $_pkg_short_errors_supported = yes; then
16084                 LIBOPENOBEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openobex"`
16085         else
16086                 LIBOPENOBEX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openobex"`
16087         fi
16088         # Put the nasty error message in config.log where it belongs
16089         echo "$LIBOPENOBEX_PKG_ERRORS" >&5
16090
16091         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16092 $as_echo "no" >&6; }
16093                 have_obex="no"
16094 elif test $pkg_failed = untried; then
16095         have_obex="no"
16096 else
16097         LIBOPENOBEX_CFLAGS=$pkg_cv_LIBOPENOBEX_CFLAGS
16098         LIBOPENOBEX_LIBS=$pkg_cv_LIBOPENOBEX_LIBS
16099         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16100 $as_echo "yes" >&6; }
16101         have_obex="yes"
16102 fi
16103 have_bluetooth="no"
16104 if test $have_obex = "yes"; then
16105
16106 pkg_failed=no
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLUEZ" >&5
16108 $as_echo_n "checking for BLUEZ... " >&6; }
16109
16110 if test -n "$PKG_CONFIG"; then
16111     if test -n "$BLUEZ_CFLAGS"; then
16112         pkg_cv_BLUEZ_CFLAGS="$BLUEZ_CFLAGS"
16113     else
16114         if test -n "$PKG_CONFIG" && \
16115     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez\""; } >&5
16116   ($PKG_CONFIG --exists --print-errors "bluez") 2>&5
16117   ac_status=$?
16118   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16119   test $ac_status = 0; }; then
16120   pkg_cv_BLUEZ_CFLAGS=`$PKG_CONFIG --cflags "bluez" 2>/dev/null`
16121 else
16122   pkg_failed=yes
16123 fi
16124     fi
16125 else
16126         pkg_failed=untried
16127 fi
16128 if test -n "$PKG_CONFIG"; then
16129     if test -n "$BLUEZ_LIBS"; then
16130         pkg_cv_BLUEZ_LIBS="$BLUEZ_LIBS"
16131     else
16132         if test -n "$PKG_CONFIG" && \
16133     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez\""; } >&5
16134   ($PKG_CONFIG --exists --print-errors "bluez") 2>&5
16135   ac_status=$?
16136   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16137   test $ac_status = 0; }; then
16138   pkg_cv_BLUEZ_LIBS=`$PKG_CONFIG --libs "bluez" 2>/dev/null`
16139 else
16140   pkg_failed=yes
16141 fi
16142     fi
16143 else
16144         pkg_failed=untried
16145 fi
16146
16147
16148
16149 if test $pkg_failed = yes; then
16150
16151 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16152         _pkg_short_errors_supported=yes
16153 else
16154         _pkg_short_errors_supported=no
16155 fi
16156         if test $_pkg_short_errors_supported = yes; then
16157                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "bluez"`
16158         else
16159                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "bluez"`
16160         fi
16161         # Put the nasty error message in config.log where it belongs
16162         echo "$BLUEZ_PKG_ERRORS" >&5
16163
16164         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16165 $as_echo "no" >&6; }
16166                 have_bluez="no"
16167 elif test $pkg_failed = untried; then
16168         have_bluez="no"
16169 else
16170         BLUEZ_CFLAGS=$pkg_cv_BLUEZ_CFLAGS
16171         BLUEZ_LIBS=$pkg_cv_BLUEZ_LIBS
16172         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16173 $as_echo "yes" >&6; }
16174         have_bluez="yes"
16175 fi
16176     if test $have_bluez = "yes"; then
16177         have_bluetooth="yes"
16178     fi
16179 fi
16180
16181
16182
16183
16184
16185 TRANSPORT=
16186 TRANSPORT_LIBS=
16187 TRANSPORT_CFLAGS=
16188
16189
16190 # Check whether --with-ca-certificates was given.
16191 if test "${with_ca_certificates+set}" = set; then :
16192   withval=$with_ca_certificates; CA_CERTIFICATES="$withval"
16193 fi
16194
16195
16196
16197 # choose default http transport (mirrors code in EvolutionSyncClient::createTransportAgent())
16198 if test "$have_libsoup" = "yes"; then
16199    default_http_transport="libsoup"
16200 elif test "$have_libcurl" = "yes"; then
16201    default_http_transport="libcurl"
16202 fi
16203
16204 # Check whether --enable-libcurl was given.
16205 if test "${enable_libcurl+set}" = set; then :
16206   enableval=$enable_libcurl;  if test "$enableval" = "yes"; then
16207                    test "$have_libcurl" = "yes" || as_fn_error "libcurl not found" "$LINENO" 5
16208                    TRANSPORT="$TRANSPORT libcurl"
16209                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBCURL_LIBS"
16210                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBCURL_CFLAGS"
16211
16212 $as_echo "#define ENABLE_LIBCURL 1" >>confdefs.h
16213
16214                 else
16215                    libcurl_disabled="yes"
16216                 fi
16217 else
16218    if test "$have_libcurl" = "yes" && test "$default_http_transport" = "libcurl" ; then
16219                    TRANSPORT="$TRANSPORT libcurl"
16220                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBCURL_LIBS"
16221                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBCURL_CFLAGS"
16222
16223 $as_echo "#define ENABLE_LIBCURL 1" >>confdefs.h
16224
16225                 fi
16226 fi
16227
16228
16229 # Check whether --enable-libsoup was given.
16230 if test "${enable_libsoup+set}" = set; then :
16231   enableval=$enable_libsoup;  if test "$enableval" = "yes"; then
16232                    test "$have_libsoup" = "yes" || as_fn_error "libsoup not found" "$LINENO" 5
16233                    TRANSPORT="$TRANSPORT libsoup"
16234                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBSOUP_LIBS"
16235                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBSOUP_CFLAGS"
16236
16237 $as_echo "#define ENABLE_LIBSOUP 1" >>confdefs.h
16238
16239                 else
16240                    libsoup_disabled="yes"
16241                 fi
16242 else
16243    if test "$have_libsoup" = "yes" && test "$default_http_transport" = "libsoup"; then
16244                    TRANSPORT="$TRANSPORT libsoup"
16245                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBSOUP_LIBS"
16246                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBSOUP_CFLAGS"
16247
16248 $as_echo "#define ENABLE_LIBSOUP 1" >>confdefs.h
16249
16250                 fi
16251 fi
16252
16253
16254 # SoupTransportAgent depends on glib
16255 case "$TRANSPORT" in *libsoup*) need_glib=yes;; esac
16256
16257 bluetooth_disabled=no
16258 # Check whether --enable-bluetooth was given.
16259 if test "${enable_bluetooth+set}" = set; then :
16260   enableval=$enable_bluetooth;  enable_bluetooth="$enableval"
16261                 if test "$enableval" = "no"; then
16262                     bluetooth_disabled=yes
16263                 fi
16264
16265 else
16266    enable_bluetooth="$have_bluetooth"
16267 fi
16268
16269
16270 if test "$enable_bluetooth" = "yes"; then
16271    # currently we need Bluetooth and OBEX support
16272    test "$have_bluetooth" = "yes" || as_fn_error "openobex or bluez not found" "$LINENO" 5
16273
16274    ac_ext=c
16275 ac_cpp='$CPP $CPPFLAGS'
16276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16279
16280    CFLAGS_old="$CFLAGS"
16281    CFLAGS="$CPPFLAGS $BLUEZ_CFLAGS"
16282    # test in this order:
16283    # - recent libbluetooth (no _safe variant, base function has bufsize)
16284    # - intermediate with _safe
16285    # - else assume old-style (no bufsize, no _safe)
16286    #
16287    # The source code checks the signature both by via pointer assignment and calling
16288    # it (better safe than sorry). One these should fail if the signature is not right.
16289    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16290 /* end confdefs.h.  */
16291
16292                       #include <bluetooth/sdp.h>
16293                       #include <bluetooth/sdp_lib.h>
16294                       sdp_record_t *(*extract_pdu)(const uint8_t *pdata, int bufsize, int *scanned) =
16295                            sdp_extract_pdu;
16296                       void foo(void) {
16297                           uint8_t *pdata = NULL;
16298                           int scanned;
16299                           sdp_extract_pdu(pdata, 100, &scanned);
16300                       }
16301
16302 _ACEOF
16303 if ac_fn_c_try_compile "$LINENO"; then :
16304
16305 $as_echo "#define HAVE_BLUEZ_BUFSIZE 1" >>confdefs.h
16306
16307 else
16308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309 /* end confdefs.h.  */
16310
16311                                         #include <bluetooth/sdp.h>
16312                                         #include <bluetooth/sdp_lib.h>
16313                                         sdp_record_t *(*extract_pdu)(const uint8_t *pdata, int bufsize, int *scanned) =
16314                                                sdp_extract_pdu_safe;
16315                                         void foo(void) {
16316                                             uint8_t *pdata = NULL;
16317                                             int scanned;
16318                                             sdp_extract_pdu_safe(pdata, 100, &scanned);
16319                                         }
16320
16321 _ACEOF
16322 if ac_fn_c_try_compile "$LINENO"; then :
16323
16324 $as_echo "#define HAVE_BLUEZ_SAFE 1" >>confdefs.h
16325
16326 fi
16327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16328 fi
16329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16330    CFLAGS="$CFLAGS_old"
16331
16332    if test "$have_obex" = "yes"; then
16333
16334 $as_echo "#define ENABLE_OBEX 1" >>confdefs.h
16335
16336    fi
16337    if test "$have_bluez" = "yes"; then
16338
16339 $as_echo "#define ENABLE_BLUETOOTH 1" >>confdefs.h
16340
16341    fi
16342 fi
16343  if test "$have_obex" = "yes" && test "$enable_bluetooth" = "yes"; then
16344   ENABLE_OBEX_TRUE=
16345   ENABLE_OBEX_FALSE='#'
16346 else
16347   ENABLE_OBEX_TRUE='#'
16348   ENABLE_OBEX_FALSE=
16349 fi
16350
16351  if test "$have_bluetooth" = "yes" && test "$enable_bluetooth" = "yes"; then
16352   ENABLE_BLUETOOTH_TRUE=
16353   ENABLE_BLUETOOTH_FALSE='#'
16354 else
16355   ENABLE_BLUETOOTH_TRUE='#'
16356   ENABLE_BLUETOOTH_FALSE=
16357 fi
16358
16359
16360 if test ! "$TRANSPORT" &&
16361    test "$libsoup_disabled" != "yes" &&
16362    test "$libcurl_disabled" != "yes" &&
16363    test "$bluetooth_disabled" != "yes" &&
16364    test "$have_bluetooth" != "yes" ; then
16365    as_fn_error "no transport library found, configure with --disable-libcurl --disable-libsoup --disable-bluetooth to continue anyway (only useful if users of libsyncevolution provide transport implementation)" "$LINENO" 5
16366 fi
16367
16368 # for libsoup we must specify the SSL certificate file outself
16369 if test "$libsoup_disabled" != "yes" && test -z "$CA_CERTIFICATES"; then
16370    # Debian and Red Hat paths
16371    CA_CERTIFICATES="/etc/ssl/certs/ca-certificates.crt:/etc/pki/tls/certs/ca-bundle.crt:/usr/share/ssl/certs/ca-bundle.crt"
16372 fi
16373
16374 cat >>confdefs.h <<_ACEOF
16375 #define SYNCEVOLUTION_SSL_SERVER_CERTIFICATES "$CA_CERTIFICATES"
16376 _ACEOF
16377
16378
16379
16380
16381
16382 # Check whether --enable-ssl-certificate-check was given.
16383 if test "${enable_ssl_certificate_check+set}" = set; then :
16384   enableval=$enable_ssl_certificate_check; enable_ssl_certificate_check="$enableval"
16385 else
16386   enable_ssl_certificate_check="yes"
16387 fi
16388
16389 if test "$enable_ssl_certificate_check" = "yes"; then
16390
16391 $as_echo "#define ENABLE_SSL_CERTIFICATE_CHECK 1" >>confdefs.h
16392
16393 fi
16394
16395 # for dbus interface file mangling
16396 # Extract the first word of "xsltproc", so it can be a program name with args.
16397 set dummy xsltproc; ac_word=$2
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16399 $as_echo_n "checking for $ac_word... " >&6; }
16400 if test "${ac_cv_path_XSLT+set}" = set; then :
16401   $as_echo_n "(cached) " >&6
16402 else
16403   case $XSLT in
16404   [\\/]* | ?:[\\/]*)
16405   ac_cv_path_XSLT="$XSLT" # Let the user override the test with a path.
16406   ;;
16407   *)
16408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16409 for as_dir in $PATH
16410 do
16411   IFS=$as_save_IFS
16412   test -z "$as_dir" && as_dir=.
16413     for ac_exec_ext in '' $ac_executable_extensions; do
16414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16415     ac_cv_path_XSLT="$as_dir/$ac_word$ac_exec_ext"
16416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16417     break 2
16418   fi
16419 done
16420   done
16421 IFS=$as_save_IFS
16422
16423   ;;
16424 esac
16425 fi
16426 XSLT=$ac_cv_path_XSLT
16427 if test -n "$XSLT"; then
16428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT" >&5
16429 $as_echo "$XSLT" >&6; }
16430 else
16431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16432 $as_echo "no" >&6; }
16433 fi
16434
16435
16436
16437
16438 # Changes in GTK3 mean that supporting both GTK3 and GTK2 in the same codebase
16439 # is difficult. We want to support GTK2 for the time being so the code is forked.
16440 # Check whether --enable-gtk was given.
16441 if test "${enable_gtk+set}" = set; then :
16442   enableval=$enable_gtk;  if test "$enableval" = "3" ; then
16443                     gtk_version=gtk+-3.0
16444                 elif test "$enableval" = "2" ; then
16445                     gtk_version=gtk+-2.0
16446                 else
16447                     as_fn_error "Unknown gtk version: '$enableval'" "$LINENO" 5
16448                 fi
16449
16450 else
16451    if test -n "$PKG_CONFIG" && \
16452     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
16453   ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
16454   ac_status=$?
16455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16456   test $ac_status = 0; }; then
16457   gtk_version=gtk+-3.0
16458 else
16459   gtk_version=gtk+-2.0
16460 fi
16461 fi
16462
16463
16464
16465  if test "$gtk_version" = "gtk+-2.0"; then
16466   COND_GTK2_TRUE=
16467   COND_GTK2_FALSE='#'
16468 else
16469   COND_GTK2_TRUE='#'
16470   COND_GTK2_FALSE=
16471 fi
16472
16473
16474 # Check whether --enable-gui was given.
16475 if test "${enable_gui+set}" = set; then :
16476   enableval=$enable_gui;  if test "$enableval" = "gtk" ; then
16477                     enable_gui=gtk
16478                 elif test "$enableval" = "yes" ; then
16479                     enable_gui=gtk
16480                 elif test "$enableval" = "moblin" ; then
16481                     enable_gui=moblin
16482                 elif test "$enableval" = "no" ; then
16483                     enable_gui=no
16484                 elif test "$enableval" = "all" ; then
16485                     enable_gui=all
16486                 else
16487                     as_fn_error "Unknown gui type: '$enableval'" "$LINENO" 5
16488                 fi
16489
16490 else
16491    enable_gui=no
16492 fi
16493
16494
16495  if test "$enable_gui" != "no"; then
16496   COND_GUI_TRUE=
16497   COND_GUI_FALSE='#'
16498 else
16499   COND_GUI_TRUE='#'
16500   COND_GUI_FALSE=
16501 fi
16502
16503
16504 # Check whether --enable-core was given.
16505 if test "${enable_core+set}" = set; then :
16506   enableval=$enable_core; enable_core="$enableval"
16507 else
16508   enable_core="yes"
16509 fi
16510
16511  if test "$enable_core" = "yes"; then
16512   COND_CORE_TRUE=
16513   COND_CORE_FALSE='#'
16514 else
16515   COND_CORE_TRUE='#'
16516   COND_CORE_FALSE=
16517 fi
16518
16519
16520 # Check whether --enable-dbus-service was given.
16521 if test "${enable_dbus_service+set}" = set; then :
16522   enableval=$enable_dbus_service; enable_dbus_service="$enableval"
16523 else
16524   if test $enable_gui = "no"; then
16525                   enable_dbus_service="no"
16526                else
16527                   enable_dbus_service="yes"
16528                fi
16529 fi
16530
16531  if test "$enable_dbus_service" = "yes"; then
16532   COND_DBUS_TRUE=
16533   COND_DBUS_FALSE='#'
16534 else
16535   COND_DBUS_TRUE='#'
16536   COND_DBUS_FALSE=
16537 fi
16538
16539
16540
16541 # Check whether --with-gio-gdbus was given.
16542 if test "${with_gio_gdbus+set}" = set; then :
16543   withval=$with_gio_gdbus; with_gio_gdbus="$withval"
16544 else
16545   if test -n "$PKG_CONFIG" && \
16546     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.30\""; } >&5
16547   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.30") 2>&5
16548   ac_status=$?
16549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16550   test $ac_status = 0; }; then
16551   with_gio_gdbus="yes"
16552 else
16553   with_gio_gdbus="no"
16554 fi
16555 fi
16556
16557  if test "x$with_gio_gdbus" = "xyes"; then
16558   COND_GIO_GDBUS_TRUE=
16559   COND_GIO_GDBUS_FALSE='#'
16560 else
16561   COND_GIO_GDBUS_TRUE='#'
16562   COND_GIO_GDBUS_FALSE=
16563 fi
16564
16565
16566 # We only need to check for dbus-1 if gio-gdbus is not used.
16567 #
16568 # Local sync depends on D-Bus communication between parent
16569 # and child process (works without a D-Bus daemon), and local
16570 # sync is not an optional feature. Could be made one if
16571 # someone is interested enough.
16572 #
16573 # Therefore, at the moment, either libdbus or gio-gdbus are needed
16574 # unconditionally. glib is needed in all cases now.
16575 need_glib=yes
16576 if test "x$with_gio_gdbus" = "xyes"; then :
16577
16578 pkg_failed=no
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
16580 $as_echo_n "checking for DBUS... " >&6; }
16581
16582 if test -n "$PKG_CONFIG"; then
16583     if test -n "$DBUS_CFLAGS"; then
16584         pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
16585     else
16586         if test -n "$PKG_CONFIG" && \
16587     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
16588   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
16589   ac_status=$?
16590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16591   test $ac_status = 0; }; then
16592   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
16593 else
16594   pkg_failed=yes
16595 fi
16596     fi
16597 else
16598         pkg_failed=untried
16599 fi
16600 if test -n "$PKG_CONFIG"; then
16601     if test -n "$DBUS_LIBS"; then
16602         pkg_cv_DBUS_LIBS="$DBUS_LIBS"
16603     else
16604         if test -n "$PKG_CONFIG" && \
16605     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
16606   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
16607   ac_status=$?
16608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16609   test $ac_status = 0; }; then
16610   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
16611 else
16612   pkg_failed=yes
16613 fi
16614     fi
16615 else
16616         pkg_failed=untried
16617 fi
16618
16619
16620
16621 if test $pkg_failed = yes; then
16622
16623 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16624         _pkg_short_errors_supported=yes
16625 else
16626         _pkg_short_errors_supported=no
16627 fi
16628         if test $_pkg_short_errors_supported = yes; then
16629                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
16630         else
16631                 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
16632         fi
16633         # Put the nasty error message in config.log where it belongs
16634         echo "$DBUS_PKG_ERRORS" >&5
16635
16636         as_fn_error "Package requirements (gio-2.0 >= 2.26) were not met:
16637
16638 $DBUS_PKG_ERRORS
16639
16640 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16641 installed software in a non-standard prefix.
16642
16643 Alternatively, you may set the environment variables DBUS_CFLAGS
16644 and DBUS_LIBS to avoid the need to call pkg-config.
16645 See the pkg-config man page for more details.
16646 " "$LINENO" 5
16647 elif test $pkg_failed = untried; then
16648         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16650 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
16651 is in your PATH or set the PKG_CONFIG environment variable to the full
16652 path to pkg-config.
16653
16654 Alternatively, you may set the environment variables DBUS_CFLAGS
16655 and DBUS_LIBS to avoid the need to call pkg-config.
16656 See the pkg-config man page for more details.
16657
16658 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16659 See \`config.log' for more details." "$LINENO" 5; }
16660 else
16661         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
16662         DBUS_LIBS=$pkg_cv_DBUS_LIBS
16663         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16664 $as_echo "yes" >&6; }
16665         :
16666 fi
16667
16668 $as_echo "#define WITH_GIO_GDBUS /**/" >>confdefs.h
16669
16670 else
16671
16672 pkg_failed=no
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
16674 $as_echo_n "checking for DBUS... " >&6; }
16675
16676 if test -n "$PKG_CONFIG"; then
16677     if test -n "$DBUS_CFLAGS"; then
16678         pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
16679     else
16680         if test -n "$PKG_CONFIG" && \
16681     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
16682   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
16683   ac_status=$?
16684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16685   test $ac_status = 0; }; then
16686   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
16687 else
16688   pkg_failed=yes
16689 fi
16690     fi
16691 else
16692         pkg_failed=untried
16693 fi
16694 if test -n "$PKG_CONFIG"; then
16695     if test -n "$DBUS_LIBS"; then
16696         pkg_cv_DBUS_LIBS="$DBUS_LIBS"
16697     else
16698         if test -n "$PKG_CONFIG" && \
16699     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
16700   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
16701   ac_status=$?
16702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16703   test $ac_status = 0; }; then
16704   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
16705 else
16706   pkg_failed=yes
16707 fi
16708     fi
16709 else
16710         pkg_failed=untried
16711 fi
16712
16713
16714
16715 if test $pkg_failed = yes; then
16716
16717 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16718         _pkg_short_errors_supported=yes
16719 else
16720         _pkg_short_errors_supported=no
16721 fi
16722         if test $_pkg_short_errors_supported = yes; then
16723                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1"`
16724         else
16725                 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1"`
16726         fi
16727         # Put the nasty error message in config.log where it belongs
16728         echo "$DBUS_PKG_ERRORS" >&5
16729
16730         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16731 $as_echo "no" >&6; }
16732                 as_fn_error "libdbus-1 is required" "$LINENO" 5
16733 elif test $pkg_failed = untried; then
16734         as_fn_error "libdbus-1 is required" "$LINENO" 5
16735 else
16736         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
16737         DBUS_LIBS=$pkg_cv_DBUS_LIBS
16738         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16739 $as_echo "yes" >&6; }
16740         dummy=yes
16741 fi
16742        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_watch_get_unix_fd in -ldbus-1" >&5
16743 $as_echo_n "checking for dbus_watch_get_unix_fd in -ldbus-1... " >&6; }
16744 if test "${ac_cv_lib_dbus_1_dbus_watch_get_unix_fd+set}" = set; then :
16745   $as_echo_n "(cached) " >&6
16746 else
16747   ac_check_lib_save_LIBS=$LIBS
16748 LIBS="-ldbus-1  $LIBS"
16749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16750 /* end confdefs.h.  */
16751
16752 /* Override any GCC internal prototype to avoid an error.
16753    Use char because int might match the return type of a GCC
16754    builtin and then its argument prototype would still apply.  */
16755 #ifdef __cplusplus
16756 extern "C"
16757 #endif
16758 char dbus_watch_get_unix_fd ();
16759 int
16760 main ()
16761 {
16762 return dbus_watch_get_unix_fd ();
16763   ;
16764   return 0;
16765 }
16766 _ACEOF
16767 if ac_fn_c_try_link "$LINENO"; then :
16768   ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=yes
16769 else
16770   ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=no
16771 fi
16772 rm -f core conftest.err conftest.$ac_objext \
16773     conftest$ac_exeext conftest.$ac_ext
16774 LIBS=$ac_check_lib_save_LIBS
16775 fi
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&5
16777 $as_echo "$ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&6; }
16778 if test "x$ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" = x""yes; then :
16779   dummy=yes
16780 else
16781
16782 $as_echo "#define NEED_DBUS_WATCH_GET_UNIX_FD 1" >>confdefs.h
16783
16784 fi
16785
16786 fi
16787
16788 if test $enable_dbus_service = "yes"; then
16789     if test -z "$XSLT"; then
16790        as_fn_error "xsltproc not found, is required for D-Bus service" "$LINENO" 5
16791     fi
16792     # Recent libnotify releases work with gtk+-2.0 and gtk+-3.0.
16793     # Check whether --enable-notify was given.
16794 if test "${enable_notify+set}" = set; then :
16795   enableval=$enable_notify; enable_notify="$enableval"
16796 else
16797   if test -n "$PKG_CONFIG" && \
16798     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify \$gtk_version\""; } >&5
16799   ($PKG_CONFIG --exists --print-errors "libnotify $gtk_version") 2>&5
16800   ac_status=$?
16801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16802   test $ac_status = 0; }; then
16803   enable_notify="yes"
16804 else
16805   enable_notify="no"
16806 fi
16807 fi
16808
16809     if test "x$enable_notify" = "xyes"; then :
16810
16811 pkg_failed=no
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
16813 $as_echo_n "checking for LIBNOTIFY... " >&6; }
16814
16815 if test -n "$PKG_CONFIG"; then
16816     if test -n "$LIBNOTIFY_CFLAGS"; then
16817         pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
16818     else
16819         if test -n "$PKG_CONFIG" && \
16820     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify \$gtk_version\""; } >&5
16821   ($PKG_CONFIG --exists --print-errors "libnotify $gtk_version") 2>&5
16822   ac_status=$?
16823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16824   test $ac_status = 0; }; then
16825   pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify $gtk_version" 2>/dev/null`
16826 else
16827   pkg_failed=yes
16828 fi
16829     fi
16830 else
16831         pkg_failed=untried
16832 fi
16833 if test -n "$PKG_CONFIG"; then
16834     if test -n "$LIBNOTIFY_LIBS"; then
16835         pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
16836     else
16837         if test -n "$PKG_CONFIG" && \
16838     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify \$gtk_version\""; } >&5
16839   ($PKG_CONFIG --exists --print-errors "libnotify $gtk_version") 2>&5
16840   ac_status=$?
16841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16842   test $ac_status = 0; }; then
16843   pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify $gtk_version" 2>/dev/null`
16844 else
16845   pkg_failed=yes
16846 fi
16847     fi
16848 else
16849         pkg_failed=untried
16850 fi
16851
16852
16853
16854 if test $pkg_failed = yes; then
16855
16856 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16857         _pkg_short_errors_supported=yes
16858 else
16859         _pkg_short_errors_supported=no
16860 fi
16861         if test $_pkg_short_errors_supported = yes; then
16862                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libnotify $gtk_version"`
16863         else
16864                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libnotify $gtk_version"`
16865         fi
16866         # Put the nasty error message in config.log where it belongs
16867         echo "$LIBNOTIFY_PKG_ERRORS" >&5
16868
16869         as_fn_error "Package requirements (libnotify $gtk_version) were not met:
16870
16871 $LIBNOTIFY_PKG_ERRORS
16872
16873 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16874 installed software in a non-standard prefix.
16875
16876 Alternatively, you may set the environment variables LIBNOTIFY_CFLAGS
16877 and LIBNOTIFY_LIBS to avoid the need to call pkg-config.
16878 See the pkg-config man page for more details.
16879 " "$LINENO" 5
16880 elif test $pkg_failed = untried; then
16881         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16883 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
16884 is in your PATH or set the PKG_CONFIG environment variable to the full
16885 path to pkg-config.
16886
16887 Alternatively, you may set the environment variables LIBNOTIFY_CFLAGS
16888 and LIBNOTIFY_LIBS to avoid the need to call pkg-config.
16889 See the pkg-config man page for more details.
16890
16891 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16892 See \`config.log' for more details." "$LINENO" 5; }
16893 else
16894         LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
16895         LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
16896         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16897 $as_echo "yes" >&6; }
16898         :
16899 fi
16900
16901 $as_echo "#define HAS_NOTIFY 1" >>confdefs.h
16902
16903 fi
16904
16905     # Check whether --enable-notify-compatibility was given.
16906 if test "${enable_notify_compatibility+set}" = set; then :
16907   enableval=$enable_notify_compatibility; enable_notify_compat="$enableval"
16908 else
16909   enable_notify_compat="no"
16910
16911 fi
16912
16913     if test "$enable_notify_compat" = "yes"; then
16914
16915 $as_echo "#define NOTIFY_COMPATIBILITY 1" >>confdefs.h
16916
16917         LIBNOTIFY_LIBS="`echo $LIBNOTIFY_LIBS | sed -e 's/\(-lnotify\|^ *libnotify.la\)/-ldl/'`"
16918     fi
16919
16920     # Here we're using QtGui too because mlite fails to depend on it,
16921     # despite using QAction.
16922
16923 pkg_failed=no
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MLITE" >&5
16925 $as_echo_n "checking for MLITE... " >&6; }
16926
16927 if test -n "$PKG_CONFIG"; then
16928     if test -n "$MLITE_CFLAGS"; then
16929         pkg_cv_MLITE_CFLAGS="$MLITE_CFLAGS"
16930     else
16931         if test -n "$PKG_CONFIG" && \
16932     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mlite QtGui\""; } >&5
16933   ($PKG_CONFIG --exists --print-errors "mlite QtGui") 2>&5
16934   ac_status=$?
16935   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16936   test $ac_status = 0; }; then
16937   pkg_cv_MLITE_CFLAGS=`$PKG_CONFIG --cflags "mlite QtGui" 2>/dev/null`
16938 else
16939   pkg_failed=yes
16940 fi
16941     fi
16942 else
16943         pkg_failed=untried
16944 fi
16945 if test -n "$PKG_CONFIG"; then
16946     if test -n "$MLITE_LIBS"; then
16947         pkg_cv_MLITE_LIBS="$MLITE_LIBS"
16948     else
16949         if test -n "$PKG_CONFIG" && \
16950     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mlite QtGui\""; } >&5
16951   ($PKG_CONFIG --exists --print-errors "mlite QtGui") 2>&5
16952   ac_status=$?
16953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16954   test $ac_status = 0; }; then
16955   pkg_cv_MLITE_LIBS=`$PKG_CONFIG --libs "mlite QtGui" 2>/dev/null`
16956 else
16957   pkg_failed=yes
16958 fi
16959     fi
16960 else
16961         pkg_failed=untried
16962 fi
16963
16964
16965
16966 if test $pkg_failed = yes; then
16967
16968 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16969         _pkg_short_errors_supported=yes
16970 else
16971         _pkg_short_errors_supported=no
16972 fi
16973         if test $_pkg_short_errors_supported = yes; then
16974                 MLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mlite QtGui"`
16975         else
16976                 MLITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mlite QtGui"`
16977         fi
16978         # Put the nasty error message in config.log where it belongs
16979         echo "$MLITE_PKG_ERRORS" >&5
16980
16981         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16982 $as_echo "no" >&6; }
16983                 HAVE_MLITE=no
16984 elif test $pkg_failed = untried; then
16985         HAVE_MLITE=no
16986 else
16987         MLITE_CFLAGS=$pkg_cv_MLITE_CFLAGS
16988         MLITE_LIBS=$pkg_cv_MLITE_LIBS
16989         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16990 $as_echo "yes" >&6; }
16991         HAVE_MLITE=yes
16992 fi
16993     # Check whether --enable-mlite was given.
16994 if test "${enable_mlite+set}" = set; then :
16995   enableval=$enable_mlite;  enable_mlite="$enableval"
16996                     test "$enableval" = "no" || test $HAVE_MLITE = "yes" || as_fn_error "required mlite package not found" "$LINENO" 5
16997 else
16998    enable_mlite="no"
16999 fi
17000
17001     if test $enable_mlite = "yes"; then
17002
17003 $as_echo "#define HAS_MLITE 1" >>confdefs.h
17004
17005     else
17006         # don't use mlite, even if found
17007         MLITE_CFLAGS=
17008         MLITE_LIBS=
17009     fi
17010
17011 $as_echo "#define DBUS_SERVICE 1" >>confdefs.h
17012
17013 fi
17014  if test "$enable_notify_compat" = "yes"; then
17015   NOTIFY_COMPATIBILITY_TRUE=
17016   NOTIFY_COMPATIBILITY_FALSE='#'
17017 else
17018   NOTIFY_COMPATIBILITY_TRUE='#'
17019   NOTIFY_COMPATIBILITY_FALSE=
17020 fi
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031 DBUS_SERVICES_DIR="${datadir}/dbus-1/services"
17032
17033
17034 cat >>confdefs.h <<_ACEOF
17035 #define DBUS_SERVICES_DIR "$DBUS_SERVICES_DIR"
17036 _ACEOF
17037
17038
17039 if test $enable_gui != "no" || test $enable_dbus_service = "yes"; then
17040
17041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17042 $as_echo_n "checking whether NLS is requested... " >&6; }
17043     # Check whether --enable-nls was given.
17044 if test "${enable_nls+set}" = set; then :
17045   enableval=$enable_nls; USE_NLS=$enableval
17046 else
17047   USE_NLS=yes
17048 fi
17049
17050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17051 $as_echo "$USE_NLS" >&6; }
17052
17053
17054
17055
17056 case "$am__api_version" in
17057     1.01234)
17058         as_fn_error "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
17059     ;;
17060     *)
17061     ;;
17062 esac
17063
17064 if test -n "0.37.1"; then
17065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.37.1" >&5
17066 $as_echo_n "checking for intltool >= 0.37.1... " >&6; }
17067
17068     INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.37.1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
17069     INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
17070     INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
17071
17072     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
17073 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
17074     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
17075         as_fn_error "Your intltool is too old.  You need intltool 0.37.1 or later." "$LINENO" 5
17076 fi
17077
17078 # Extract the first word of "intltool-update", so it can be a program name with args.
17079 set dummy intltool-update; ac_word=$2
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17081 $as_echo_n "checking for $ac_word... " >&6; }
17082 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then :
17083   $as_echo_n "(cached) " >&6
17084 else
17085   case $INTLTOOL_UPDATE in
17086   [\\/]* | ?:[\\/]*)
17087   ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
17088   ;;
17089   *)
17090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17091 for as_dir in $PATH
17092 do
17093   IFS=$as_save_IFS
17094   test -z "$as_dir" && as_dir=.
17095     for ac_exec_ext in '' $ac_executable_extensions; do
17096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17097     ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
17098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17099     break 2
17100   fi
17101 done
17102   done
17103 IFS=$as_save_IFS
17104
17105   ;;
17106 esac
17107 fi
17108 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
17109 if test -n "$INTLTOOL_UPDATE"; then
17110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
17111 $as_echo "$INTLTOOL_UPDATE" >&6; }
17112 else
17113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17114 $as_echo "no" >&6; }
17115 fi
17116
17117
17118 # Extract the first word of "intltool-merge", so it can be a program name with args.
17119 set dummy intltool-merge; ac_word=$2
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17121 $as_echo_n "checking for $ac_word... " >&6; }
17122 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then :
17123   $as_echo_n "(cached) " >&6
17124 else
17125   case $INTLTOOL_MERGE in
17126   [\\/]* | ?:[\\/]*)
17127   ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
17128   ;;
17129   *)
17130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17131 for as_dir in $PATH
17132 do
17133   IFS=$as_save_IFS
17134   test -z "$as_dir" && as_dir=.
17135     for ac_exec_ext in '' $ac_executable_extensions; do
17136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17137     ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
17138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17139     break 2
17140   fi
17141 done
17142   done
17143 IFS=$as_save_IFS
17144
17145   ;;
17146 esac
17147 fi
17148 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
17149 if test -n "$INTLTOOL_MERGE"; then
17150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
17151 $as_echo "$INTLTOOL_MERGE" >&6; }
17152 else
17153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17154 $as_echo "no" >&6; }
17155 fi
17156
17157
17158 # Extract the first word of "intltool-extract", so it can be a program name with args.
17159 set dummy intltool-extract; ac_word=$2
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17161 $as_echo_n "checking for $ac_word... " >&6; }
17162 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then :
17163   $as_echo_n "(cached) " >&6
17164 else
17165   case $INTLTOOL_EXTRACT in
17166   [\\/]* | ?:[\\/]*)
17167   ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
17168   ;;
17169   *)
17170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17171 for as_dir in $PATH
17172 do
17173   IFS=$as_save_IFS
17174   test -z "$as_dir" && as_dir=.
17175     for ac_exec_ext in '' $ac_executable_extensions; do
17176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17177     ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
17178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17179     break 2
17180   fi
17181 done
17182   done
17183 IFS=$as_save_IFS
17184
17185   ;;
17186 esac
17187 fi
17188 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
17189 if test -n "$INTLTOOL_EXTRACT"; then
17190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
17191 $as_echo "$INTLTOOL_EXTRACT" >&6; }
17192 else
17193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17194 $as_echo "no" >&6; }
17195 fi
17196
17197
17198 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
17199     as_fn_error "The intltool scripts were not found. Please install intltool." "$LINENO" 5
17200 fi
17201
17202   INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17203 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17204      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17205      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17206       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
17207      INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17208    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17209     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17210 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17211        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17212       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17213       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
17214       INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17215       INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17216     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17217   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17218     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17219     INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17220    INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318 # Check the gettext tools to make sure they are GNU
17319 # Extract the first word of "xgettext", so it can be a program name with args.
17320 set dummy xgettext; ac_word=$2
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17322 $as_echo_n "checking for $ac_word... " >&6; }
17323 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
17324   $as_echo_n "(cached) " >&6
17325 else
17326   case $XGETTEXT in
17327   [\\/]* | ?:[\\/]*)
17328   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17329   ;;
17330   *)
17331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17332 for as_dir in $PATH
17333 do
17334   IFS=$as_save_IFS
17335   test -z "$as_dir" && as_dir=.
17336     for ac_exec_ext in '' $ac_executable_extensions; do
17337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17338     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
17339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17340     break 2
17341   fi
17342 done
17343   done
17344 IFS=$as_save_IFS
17345
17346   ;;
17347 esac
17348 fi
17349 XGETTEXT=$ac_cv_path_XGETTEXT
17350 if test -n "$XGETTEXT"; then
17351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17352 $as_echo "$XGETTEXT" >&6; }
17353 else
17354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17355 $as_echo "no" >&6; }
17356 fi
17357
17358
17359 # Extract the first word of "msgmerge", so it can be a program name with args.
17360 set dummy msgmerge; ac_word=$2
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17362 $as_echo_n "checking for $ac_word... " >&6; }
17363 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
17364   $as_echo_n "(cached) " >&6
17365 else
17366   case $MSGMERGE in
17367   [\\/]* | ?:[\\/]*)
17368   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17369   ;;
17370   *)
17371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17372 for as_dir in $PATH
17373 do
17374   IFS=$as_save_IFS
17375   test -z "$as_dir" && as_dir=.
17376     for ac_exec_ext in '' $ac_executable_extensions; do
17377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17378     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
17379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17380     break 2
17381   fi
17382 done
17383   done
17384 IFS=$as_save_IFS
17385
17386   ;;
17387 esac
17388 fi
17389 MSGMERGE=$ac_cv_path_MSGMERGE
17390 if test -n "$MSGMERGE"; then
17391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17392 $as_echo "$MSGMERGE" >&6; }
17393 else
17394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17395 $as_echo "no" >&6; }
17396 fi
17397
17398
17399 # Extract the first word of "msgfmt", so it can be a program name with args.
17400 set dummy msgfmt; ac_word=$2
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17402 $as_echo_n "checking for $ac_word... " >&6; }
17403 if test "${ac_cv_path_MSGFMT+set}" = set; then :
17404   $as_echo_n "(cached) " >&6
17405 else
17406   case $MSGFMT in
17407   [\\/]* | ?:[\\/]*)
17408   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17409   ;;
17410   *)
17411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17412 for as_dir in $PATH
17413 do
17414   IFS=$as_save_IFS
17415   test -z "$as_dir" && as_dir=.
17416     for ac_exec_ext in '' $ac_executable_extensions; do
17417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17418     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17420     break 2
17421   fi
17422 done
17423   done
17424 IFS=$as_save_IFS
17425
17426   ;;
17427 esac
17428 fi
17429 MSGFMT=$ac_cv_path_MSGFMT
17430 if test -n "$MSGFMT"; then
17431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17432 $as_echo "$MSGFMT" >&6; }
17433 else
17434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17435 $as_echo "no" >&6; }
17436 fi
17437
17438
17439 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17440 set dummy gmsgfmt; ac_word=$2
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17442 $as_echo_n "checking for $ac_word... " >&6; }
17443 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
17444   $as_echo_n "(cached) " >&6
17445 else
17446   case $GMSGFMT in
17447   [\\/]* | ?:[\\/]*)
17448   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17449   ;;
17450   *)
17451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17452 for as_dir in $PATH
17453 do
17454   IFS=$as_save_IFS
17455   test -z "$as_dir" && as_dir=.
17456     for ac_exec_ext in '' $ac_executable_extensions; do
17457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17458     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17460     break 2
17461   fi
17462 done
17463   done
17464 IFS=$as_save_IFS
17465
17466   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17467   ;;
17468 esac
17469 fi
17470 GMSGFMT=$ac_cv_path_GMSGFMT
17471 if test -n "$GMSGFMT"; then
17472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17473 $as_echo "$GMSGFMT" >&6; }
17474 else
17475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17476 $as_echo "no" >&6; }
17477 fi
17478
17479
17480 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
17481     as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5
17482 fi
17483 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
17484 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
17485 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
17486 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
17487     as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5
17488 fi
17489
17490 # Extract the first word of "perl", so it can be a program name with args.
17491 set dummy perl; ac_word=$2
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17493 $as_echo_n "checking for $ac_word... " >&6; }
17494 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then :
17495   $as_echo_n "(cached) " >&6
17496 else
17497   case $INTLTOOL_PERL in
17498   [\\/]* | ?:[\\/]*)
17499   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
17500   ;;
17501   *)
17502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17503 for as_dir in $PATH
17504 do
17505   IFS=$as_save_IFS
17506   test -z "$as_dir" && as_dir=.
17507     for ac_exec_ext in '' $ac_executable_extensions; do
17508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17509     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
17510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17511     break 2
17512   fi
17513 done
17514   done
17515 IFS=$as_save_IFS
17516
17517   ;;
17518 esac
17519 fi
17520 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
17521 if test -n "$INTLTOOL_PERL"; then
17522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
17523 $as_echo "$INTLTOOL_PERL" >&6; }
17524 else
17525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17526 $as_echo "no" >&6; }
17527 fi
17528
17529
17530 if test -z "$INTLTOOL_PERL"; then
17531    as_fn_error "perl not found" "$LINENO" 5
17532 fi
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
17534 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
17535 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
17536 if test $? -ne 0; then
17537    as_fn_error "perl 5.8.1 is required for intltool" "$LINENO" 5
17538 else
17539    IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
17540    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
17541 $as_echo "$IT_PERL_VERSION" >&6; }
17542 fi
17543 if test "x" != "xno-xml"; then
17544    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
17545 $as_echo_n "checking for XML::Parser... " >&6; }
17546    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
17547        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17548 $as_echo "ok" >&6; }
17549    else
17550        as_fn_error "XML::Parser perl module is required for intltool" "$LINENO" 5
17551    fi
17552 fi
17553
17554 # Substitute ALL_LINGUAS so we can use it in po/Makefile
17555
17556
17557 # Set DATADIRNAME correctly if it is not set yet
17558 # (copied from glib-gettext.m4)
17559 if test -z "$DATADIRNAME"; then
17560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17561 /* end confdefs.h.  */
17562
17563 int
17564 main ()
17565 {
17566 extern int _nl_msg_cat_cntr;
17567                        return _nl_msg_cat_cntr
17568   ;
17569   return 0;
17570 }
17571 _ACEOF
17572 if ac_fn_c_try_link "$LINENO"; then :
17573   DATADIRNAME=share
17574 else
17575   case $host in
17576     *-*-solaris*)
17577                         ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
17578 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
17579   DATADIRNAME=share
17580 else
17581   DATADIRNAME=lib
17582 fi
17583
17584     ;;
17585     *)
17586     DATADIRNAME=lib
17587     ;;
17588     esac
17589 fi
17590 rm -f core conftest.err conftest.$ac_objext \
17591     conftest$ac_exeext conftest.$ac_ext
17592 fi
17593
17594
17595
17596
17597
17598     GETTEXT_PACKAGE=syncevolution
17599
17600 cat >>confdefs.h <<_ACEOF
17601 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
17602 _ACEOF
17603
17604
17605    for ac_header in locale.h
17606 do :
17607   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
17608 if test "x$ac_cv_header_locale_h" = x""yes; then :
17609   cat >>confdefs.h <<_ACEOF
17610 #define HAVE_LOCALE_H 1
17611 _ACEOF
17612
17613 fi
17614
17615 done
17616
17617     if test $ac_cv_header_locale_h = yes; then
17618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
17619 $as_echo_n "checking for LC_MESSAGES... " >&6; }
17620 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
17621   $as_echo_n "(cached) " >&6
17622 else
17623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17624 /* end confdefs.h.  */
17625 #include <locale.h>
17626 int
17627 main ()
17628 {
17629 return LC_MESSAGES
17630   ;
17631   return 0;
17632 }
17633 _ACEOF
17634 if ac_fn_c_try_link "$LINENO"; then :
17635   am_cv_val_LC_MESSAGES=yes
17636 else
17637   am_cv_val_LC_MESSAGES=no
17638 fi
17639 rm -f core conftest.err conftest.$ac_objext \
17640     conftest$ac_exeext conftest.$ac_ext
17641 fi
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
17643 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
17644     if test $am_cv_val_LC_MESSAGES = yes; then
17645
17646 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
17647
17648     fi
17649   fi
17650      USE_NLS=yes
17651
17652
17653     gt_cv_have_gettext=no
17654
17655     CATOBJEXT=NONE
17656     XGETTEXT=:
17657     INTLLIBS=
17658
17659     ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
17660 if test "x$ac_cv_header_libintl_h" = x""yes; then :
17661   gt_cv_func_dgettext_libintl="no"
17662       libintl_extra_libs=""
17663
17664       #
17665       # First check in libc
17666       #
17667       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
17668 $as_echo_n "checking for ngettext in libc... " >&6; }
17669 if test "${gt_cv_func_ngettext_libc+set}" = set; then :
17670   $as_echo_n "(cached) " >&6
17671 else
17672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17673 /* end confdefs.h.  */
17674
17675 #include <libintl.h>
17676
17677 int
17678 main ()
17679 {
17680 return !ngettext ("","", 1)
17681   ;
17682   return 0;
17683 }
17684 _ACEOF
17685 if ac_fn_c_try_link "$LINENO"; then :
17686   gt_cv_func_ngettext_libc=yes
17687 else
17688   gt_cv_func_ngettext_libc=no
17689 fi
17690 rm -f core conftest.err conftest.$ac_objext \
17691     conftest$ac_exeext conftest.$ac_ext
17692
17693 fi
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
17695 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
17696
17697       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
17698               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
17699 $as_echo_n "checking for dgettext in libc... " >&6; }
17700 if test "${gt_cv_func_dgettext_libc+set}" = set; then :
17701   $as_echo_n "(cached) " >&6
17702 else
17703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17704 /* end confdefs.h.  */
17705
17706 #include <libintl.h>
17707
17708 int
17709 main ()
17710 {
17711 return !dgettext ("","")
17712   ;
17713   return 0;
17714 }
17715 _ACEOF
17716 if ac_fn_c_try_link "$LINENO"; then :
17717   gt_cv_func_dgettext_libc=yes
17718 else
17719   gt_cv_func_dgettext_libc=no
17720 fi
17721 rm -f core conftest.err conftest.$ac_objext \
17722     conftest$ac_exeext conftest.$ac_ext
17723
17724 fi
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
17726 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
17727       fi
17728
17729       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
17730         for ac_func in bind_textdomain_codeset
17731 do :
17732   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
17733 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
17734   cat >>confdefs.h <<_ACEOF
17735 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
17736 _ACEOF
17737
17738 fi
17739 done
17740
17741       fi
17742
17743       #
17744       # If we don't have everything we want, check in libintl
17745       #
17746       if test "$gt_cv_func_dgettext_libc" != "yes" \
17747          || test "$gt_cv_func_ngettext_libc" != "yes" \
17748          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
17749
17750         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
17751 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
17752 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then :
17753   $as_echo_n "(cached) " >&6
17754 else
17755   ac_check_lib_save_LIBS=$LIBS
17756 LIBS="-lintl  $LIBS"
17757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17758 /* end confdefs.h.  */
17759
17760 /* Override any GCC internal prototype to avoid an error.
17761    Use char because int might match the return type of a GCC
17762    builtin and then its argument prototype would still apply.  */
17763 #ifdef __cplusplus
17764 extern "C"
17765 #endif
17766 char bindtextdomain ();
17767 int
17768 main ()
17769 {
17770 return bindtextdomain ();
17771   ;
17772   return 0;
17773 }
17774 _ACEOF
17775 if ac_fn_c_try_link "$LINENO"; then :
17776   ac_cv_lib_intl_bindtextdomain=yes
17777 else
17778   ac_cv_lib_intl_bindtextdomain=no
17779 fi
17780 rm -f core conftest.err conftest.$ac_objext \
17781     conftest$ac_exeext conftest.$ac_ext
17782 LIBS=$ac_check_lib_save_LIBS
17783 fi
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
17785 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
17786 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then :
17787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
17788 $as_echo_n "checking for ngettext in -lintl... " >&6; }
17789 if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
17790   $as_echo_n "(cached) " >&6
17791 else
17792   ac_check_lib_save_LIBS=$LIBS
17793 LIBS="-lintl  $LIBS"
17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h.  */
17796
17797 /* Override any GCC internal prototype to avoid an error.
17798    Use char because int might match the return type of a GCC
17799    builtin and then its argument prototype would still apply.  */
17800 #ifdef __cplusplus
17801 extern "C"
17802 #endif
17803 char ngettext ();
17804 int
17805 main ()
17806 {
17807 return ngettext ();
17808   ;
17809   return 0;
17810 }
17811 _ACEOF
17812 if ac_fn_c_try_link "$LINENO"; then :
17813   ac_cv_lib_intl_ngettext=yes
17814 else
17815   ac_cv_lib_intl_ngettext=no
17816 fi
17817 rm -f core conftest.err conftest.$ac_objext \
17818     conftest$ac_exeext conftest.$ac_ext
17819 LIBS=$ac_check_lib_save_LIBS
17820 fi
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
17822 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
17823 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
17824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
17825 $as_echo_n "checking for dgettext in -lintl... " >&6; }
17826 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
17827   $as_echo_n "(cached) " >&6
17828 else
17829   ac_check_lib_save_LIBS=$LIBS
17830 LIBS="-lintl  $LIBS"
17831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17832 /* end confdefs.h.  */
17833
17834 /* Override any GCC internal prototype to avoid an error.
17835    Use char because int might match the return type of a GCC
17836    builtin and then its argument prototype would still apply.  */
17837 #ifdef __cplusplus
17838 extern "C"
17839 #endif
17840 char dgettext ();
17841 int
17842 main ()
17843 {
17844 return dgettext ();
17845   ;
17846   return 0;
17847 }
17848 _ACEOF
17849 if ac_fn_c_try_link "$LINENO"; then :
17850   ac_cv_lib_intl_dgettext=yes
17851 else
17852   ac_cv_lib_intl_dgettext=no
17853 fi
17854 rm -f core conftest.err conftest.$ac_objext \
17855     conftest$ac_exeext conftest.$ac_ext
17856 LIBS=$ac_check_lib_save_LIBS
17857 fi
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
17859 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
17860 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
17861   gt_cv_func_dgettext_libintl=yes
17862 fi
17863
17864 fi
17865
17866 fi
17867
17868
17869         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
17870           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
17871 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
17872           { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
17873 $as_echo "" >&6; }
17874           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
17875 $as_echo_n "checking for ngettext in -lintl... " >&6; }
17876 if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
17877   $as_echo_n "(cached) " >&6
17878 else
17879   ac_check_lib_save_LIBS=$LIBS
17880 LIBS="-lintl -liconv $LIBS"
17881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17882 /* end confdefs.h.  */
17883
17884 /* Override any GCC internal prototype to avoid an error.
17885    Use char because int might match the return type of a GCC
17886    builtin and then its argument prototype would still apply.  */
17887 #ifdef __cplusplus
17888 extern "C"
17889 #endif
17890 char ngettext ();
17891 int
17892 main ()
17893 {
17894 return ngettext ();
17895   ;
17896   return 0;
17897 }
17898 _ACEOF
17899 if ac_fn_c_try_link "$LINENO"; then :
17900   ac_cv_lib_intl_ngettext=yes
17901 else
17902   ac_cv_lib_intl_ngettext=no
17903 fi
17904 rm -f core conftest.err conftest.$ac_objext \
17905     conftest$ac_exeext conftest.$ac_ext
17906 LIBS=$ac_check_lib_save_LIBS
17907 fi
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
17909 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
17910 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
17911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
17912 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
17913 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then :
17914   $as_echo_n "(cached) " >&6
17915 else
17916   ac_check_lib_save_LIBS=$LIBS
17917 LIBS="-lintl -liconv $LIBS"
17918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919 /* end confdefs.h.  */
17920
17921 /* Override any GCC internal prototype to avoid an error.
17922    Use char because int might match the return type of a GCC
17923    builtin and then its argument prototype would still apply.  */
17924 #ifdef __cplusplus
17925 extern "C"
17926 #endif
17927 char dcgettext ();
17928 int
17929 main ()
17930 {
17931 return dcgettext ();
17932   ;
17933   return 0;
17934 }
17935 _ACEOF
17936 if ac_fn_c_try_link "$LINENO"; then :
17937   ac_cv_lib_intl_dcgettext=yes
17938 else
17939   ac_cv_lib_intl_dcgettext=no
17940 fi
17941 rm -f core conftest.err conftest.$ac_objext \
17942     conftest$ac_exeext conftest.$ac_ext
17943 LIBS=$ac_check_lib_save_LIBS
17944 fi
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
17946 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
17947 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then :
17948   gt_cv_func_dgettext_libintl=yes
17949                         libintl_extra_libs=-liconv
17950 else
17951   :
17952 fi
17953
17954 else
17955   :
17956 fi
17957
17958         fi
17959
17960         #
17961         # If we found libintl, then check in it for bind_textdomain_codeset();
17962         # we'll prefer libc if neither have bind_textdomain_codeset(),
17963         # and both have dgettext and ngettext
17964         #
17965         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
17966           glib_save_LIBS="$LIBS"
17967           LIBS="$LIBS -lintl $libintl_extra_libs"
17968           unset ac_cv_func_bind_textdomain_codeset
17969           for ac_func in bind_textdomain_codeset
17970 do :
17971   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
17972 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
17973   cat >>confdefs.h <<_ACEOF
17974 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
17975 _ACEOF
17976
17977 fi
17978 done
17979
17980           LIBS="$glib_save_LIBS"
17981
17982           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
17983             gt_cv_func_dgettext_libc=no
17984           else
17985             if test "$gt_cv_func_dgettext_libc" = "yes" \
17986                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
17987               gt_cv_func_dgettext_libintl=no
17988             fi
17989           fi
17990         fi
17991       fi
17992
17993       if test "$gt_cv_func_dgettext_libc" = "yes" \
17994         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
17995         gt_cv_have_gettext=yes
17996       fi
17997
17998       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
17999         INTLLIBS="-lintl $libintl_extra_libs"
18000       fi
18001
18002       if test "$gt_cv_have_gettext" = "yes"; then
18003
18004 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18005
18006         # Extract the first word of "msgfmt", so it can be a program name with args.
18007 set dummy msgfmt; ac_word=$2
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18009 $as_echo_n "checking for $ac_word... " >&6; }
18010 if test "${ac_cv_path_MSGFMT+set}" = set; then :
18011   $as_echo_n "(cached) " >&6
18012 else
18013   case "$MSGFMT" in
18014   /*)
18015   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18016   ;;
18017   *)
18018   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
18019   for ac_dir in $PATH; do
18020     test -z "$ac_dir" && ac_dir=.
18021     if test -f $ac_dir/$ac_word; then
18022       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
18023         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
18024         break
18025       fi
18026     fi
18027   done
18028   IFS="$ac_save_ifs"
18029   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
18030   ;;
18031 esac
18032 fi
18033 MSGFMT="$ac_cv_path_MSGFMT"
18034 if test "$MSGFMT" != "no"; then
18035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18036 $as_echo "$MSGFMT" >&6; }
18037 else
18038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18039 $as_echo "no" >&6; }
18040 fi
18041         if test "$MSGFMT" != "no"; then
18042           glib_save_LIBS="$LIBS"
18043           LIBS="$LIBS $INTLLIBS"
18044           for ac_func in dcgettext
18045 do :
18046   ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
18047 if test "x$ac_cv_func_dcgettext" = x""yes; then :
18048   cat >>confdefs.h <<_ACEOF
18049 #define HAVE_DCGETTEXT 1
18050 _ACEOF
18051
18052 fi
18053 done
18054
18055           MSGFMT_OPTS=
18056           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
18057 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
18058           cat >conftest.foo <<_ACEOF
18059
18060 msgid ""
18061 msgstr ""
18062 "Content-Type: text/plain; charset=UTF-8\n"
18063 "Project-Id-Version: test 1.0\n"
18064 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
18065 "Last-Translator: test <foo@bar.xx>\n"
18066 "Language-Team: C <LL@li.org>\n"
18067 "MIME-Version: 1.0\n"
18068 "Content-Transfer-Encoding: 8bit\n"
18069
18070 _ACEOF
18071 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
18072   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
18073   ac_status=$?
18074   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18075   test $ac_status = 0; }; then
18076   MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18077 $as_echo "yes" >&6; }
18078 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18079 $as_echo "no" >&6; }
18080 echo "$as_me: failed input was:" >&5
18081 sed 's/^/| /' conftest.foo >&5
18082 fi
18083
18084           # Extract the first word of "gmsgfmt", so it can be a program name with args.
18085 set dummy gmsgfmt; ac_word=$2
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18087 $as_echo_n "checking for $ac_word... " >&6; }
18088 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
18089   $as_echo_n "(cached) " >&6
18090 else
18091   case $GMSGFMT in
18092   [\\/]* | ?:[\\/]*)
18093   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18094   ;;
18095   *)
18096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18097 for as_dir in $PATH
18098 do
18099   IFS=$as_save_IFS
18100   test -z "$as_dir" && as_dir=.
18101     for ac_exec_ext in '' $ac_executable_extensions; do
18102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18103     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
18104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18105     break 2
18106   fi
18107 done
18108   done
18109 IFS=$as_save_IFS
18110
18111   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18112   ;;
18113 esac
18114 fi
18115 GMSGFMT=$ac_cv_path_GMSGFMT
18116 if test -n "$GMSGFMT"; then
18117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
18118 $as_echo "$GMSGFMT" >&6; }
18119 else
18120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18121 $as_echo "no" >&6; }
18122 fi
18123
18124
18125           # Extract the first word of "xgettext", so it can be a program name with args.
18126 set dummy xgettext; ac_word=$2
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18128 $as_echo_n "checking for $ac_word... " >&6; }
18129 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
18130   $as_echo_n "(cached) " >&6
18131 else
18132   case "$XGETTEXT" in
18133   /*)
18134   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18135   ;;
18136   *)
18137   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
18138   for ac_dir in $PATH; do
18139     test -z "$ac_dir" && ac_dir=.
18140     if test -f $ac_dir/$ac_word; then
18141       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
18142         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
18143         break
18144       fi
18145     fi
18146   done
18147   IFS="$ac_save_ifs"
18148   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
18149   ;;
18150 esac
18151 fi
18152 XGETTEXT="$ac_cv_path_XGETTEXT"
18153 if test "$XGETTEXT" != ":"; then
18154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18155 $as_echo "$XGETTEXT" >&6; }
18156 else
18157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18158 $as_echo "no" >&6; }
18159 fi
18160
18161           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18162 /* end confdefs.h.  */
18163
18164 int
18165 main ()
18166 {
18167 extern int _nl_msg_cat_cntr;
18168                          return _nl_msg_cat_cntr
18169   ;
18170   return 0;
18171 }
18172 _ACEOF
18173 if ac_fn_c_try_link "$LINENO"; then :
18174   CATOBJEXT=.gmo
18175              DATADIRNAME=share
18176 else
18177   case $host in
18178             *-*-solaris*)
18179                                                                 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
18180 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
18181   CATOBJEXT=.gmo
18182                DATADIRNAME=share
18183 else
18184   CATOBJEXT=.mo
18185                DATADIRNAME=lib
18186 fi
18187
18188             ;;
18189             *)
18190             CATOBJEXT=.mo
18191             DATADIRNAME=lib
18192             ;;
18193             esac
18194 fi
18195 rm -f core conftest.err conftest.$ac_objext \
18196     conftest$ac_exeext conftest.$ac_ext
18197           LIBS="$glib_save_LIBS"
18198           INSTOBJEXT=.mo
18199         else
18200           gt_cv_have_gettext=no
18201         fi
18202       fi
18203
18204 fi
18205
18206
18207
18208     if test "$gt_cv_have_gettext" = "yes" ; then
18209
18210 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18211
18212     fi
18213
18214         if test "$XGETTEXT" != ":"; then
18215                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
18216         : ;
18217       else
18218         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
18219 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
18220         XGETTEXT=":"
18221       fi
18222     fi
18223
18224     # We need to process the po/ directory.
18225     POSUB=po
18226
18227     ac_config_commands="$ac_config_commands default-1"
18228
18229
18230                 for lang in $ALL_LINGUAS; do
18231       GMOFILES="$GMOFILES $lang.gmo"
18232       POFILES="$POFILES $lang.po"
18233     done
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247    if test "$gt_cv_have_gettext" = "yes"; then
18248      if test "x$ALL_LINGUAS" = "x"; then
18249        LINGUAS=
18250      else
18251        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
18252 $as_echo_n "checking for catalogs to be installed... " >&6; }
18253        NEW_LINGUAS=
18254        for presentlang in $ALL_LINGUAS; do
18255          useit=no
18256          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
18257            desiredlanguages="$LINGUAS"
18258          else
18259            desiredlanguages="$ALL_LINGUAS"
18260          fi
18261          for desiredlang in $desiredlanguages; do
18262            # Use the presentlang catalog if desiredlang is
18263            #   a. equal to presentlang, or
18264            #   b. a variant of presentlang (because in this case,
18265            #      presentlang can be used as a fallback for messages
18266            #      which are not translated in the desiredlang catalog).
18267            case "$desiredlang" in
18268              "$presentlang"*) useit=yes;;
18269            esac
18270          done
18271          if test $useit = yes; then
18272            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
18273          fi
18274        done
18275        LINGUAS=$NEW_LINGUAS
18276        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
18277 $as_echo "$LINGUAS" >&6; }
18278      fi
18279
18280           if test -n "$LINGUAS"; then
18281        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
18282      fi
18283    fi
18284
18285             MKINSTALLDIRS=
18286    if test -n "$ac_aux_dir"; then
18287      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
18288    fi
18289    if test -z "$MKINSTALLDIRS"; then
18290      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
18291    fi
18292
18293
18294          test -d po || mkdir po
18295    if test "x$srcdir" != "x."; then
18296      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
18297        posrcprefix="$srcdir/"
18298      else
18299        posrcprefix="../$srcdir/"
18300      fi
18301    else
18302      posrcprefix="../"
18303    fi
18304    rm -f po/POTFILES
18305    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
18306         < $srcdir/po/POTFILES.in > po/POTFILES
18307
18308     SYNCEVOLUTION_LOCALEDIR=${datadir}/locale
18309 fi
18310
18311 # decide which sync-ui(s) we are building:
18312 # sync-ui (in either GTK or Moblin mode) or both (in separate binaries)
18313
18314 if test $gtk_version = "gtk+-3.0"; then
18315     gtk_dir=src/gtk3-ui
18316 else
18317     gtk_dir=src/gtk-ui
18318 fi
18319
18320 case $enable_gui in
18321      all) GUI_PROGRAMS=${gtk_dir}'/sync-ui-gtk${EXEEXT} '${gtk_dir}'/sync-ui-moblin${EXEEXT}'; GUI_DESKTOP_FILES="${gtk_dir}/sync-gtk.desktop ${gtk_dir}/sync-moblin.desktop";;
18322      gtk|moblin) GUI_PROGRAMS=${gtk_dir}'/sync-ui${EXEEXT}'; GUI_DESKTOP_FILES="${gtk_dir}/sync.desktop";;
18323      no) GUI_PROGRAMS=; GUI_DESKTOP_FILES=;;
18324      *) as_fn_error "Unknown enable_gui type: '$enable_gui'" "$LINENO" 5
18325 esac
18326
18327 if test $enable_gui != "no"; then
18328
18329 pkg_failed=no
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS_GLIB" >&5
18331 $as_echo_n "checking for DBUS_GLIB... " >&6; }
18332
18333 if test -n "$PKG_CONFIG"; then
18334     if test -n "$DBUS_GLIB_CFLAGS"; then
18335         pkg_cv_DBUS_GLIB_CFLAGS="$DBUS_GLIB_CFLAGS"
18336     else
18337         if test -n "$PKG_CONFIG" && \
18338     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 glib-2.0\""; } >&5
18339   ($PKG_CONFIG --exists --print-errors "dbus-glib-1 glib-2.0") 2>&5
18340   ac_status=$?
18341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18342   test $ac_status = 0; }; then
18343   pkg_cv_DBUS_GLIB_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 glib-2.0" 2>/dev/null`
18344 else
18345   pkg_failed=yes
18346 fi
18347     fi
18348 else
18349         pkg_failed=untried
18350 fi
18351 if test -n "$PKG_CONFIG"; then
18352     if test -n "$DBUS_GLIB_LIBS"; then
18353         pkg_cv_DBUS_GLIB_LIBS="$DBUS_GLIB_LIBS"
18354     else
18355         if test -n "$PKG_CONFIG" && \
18356     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 glib-2.0\""; } >&5
18357   ($PKG_CONFIG --exists --print-errors "dbus-glib-1 glib-2.0") 2>&5
18358   ac_status=$?
18359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18360   test $ac_status = 0; }; then
18361   pkg_cv_DBUS_GLIB_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 glib-2.0" 2>/dev/null`
18362 else
18363   pkg_failed=yes
18364 fi
18365     fi
18366 else
18367         pkg_failed=untried
18368 fi
18369
18370
18371
18372 if test $pkg_failed = yes; then
18373
18374 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18375         _pkg_short_errors_supported=yes
18376 else
18377         _pkg_short_errors_supported=no
18378 fi
18379         if test $_pkg_short_errors_supported = yes; then
18380                 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-glib-1 glib-2.0"`
18381         else
18382                 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-glib-1 glib-2.0"`
18383         fi
18384         # Put the nasty error message in config.log where it belongs
18385         echo "$DBUS_GLIB_PKG_ERRORS" >&5
18386
18387         as_fn_error "Package requirements (dbus-glib-1 glib-2.0) were not met:
18388
18389 $DBUS_GLIB_PKG_ERRORS
18390
18391 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18392 installed software in a non-standard prefix.
18393
18394 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
18395 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
18396 See the pkg-config man page for more details.
18397 " "$LINENO" 5
18398 elif test $pkg_failed = untried; then
18399         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18401 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
18402 is in your PATH or set the PKG_CONFIG environment variable to the full
18403 path to pkg-config.
18404
18405 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
18406 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
18407 See the pkg-config man page for more details.
18408
18409 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18410 See \`config.log' for more details." "$LINENO" 5; }
18411 else
18412         DBUS_GLIB_CFLAGS=$pkg_cv_DBUS_GLIB_CFLAGS
18413         DBUS_GLIB_LIBS=$pkg_cv_DBUS_GLIB_LIBS
18414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18415 $as_echo "yes" >&6; }
18416         :
18417 fi
18418     # Extract the first word of "dbus-binding-tool", so it can be a program name with args.
18419 set dummy dbus-binding-tool; ac_word=$2
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18421 $as_echo_n "checking for $ac_word... " >&6; }
18422 if test "${ac_cv_path_DBUS_BINDING_TOOL+set}" = set; then :
18423   $as_echo_n "(cached) " >&6
18424 else
18425   case $DBUS_BINDING_TOOL in
18426   [\\/]* | ?:[\\/]*)
18427   ac_cv_path_DBUS_BINDING_TOOL="$DBUS_BINDING_TOOL" # Let the user override the test with a path.
18428   ;;
18429   *)
18430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18431 for as_dir in $PATH
18432 do
18433   IFS=$as_save_IFS
18434   test -z "$as_dir" && as_dir=.
18435     for ac_exec_ext in '' $ac_executable_extensions; do
18436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18437     ac_cv_path_DBUS_BINDING_TOOL="$as_dir/$ac_word$ac_exec_ext"
18438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18439     break 2
18440   fi
18441 done
18442   done
18443 IFS=$as_save_IFS
18444
18445   ;;
18446 esac
18447 fi
18448 DBUS_BINDING_TOOL=$ac_cv_path_DBUS_BINDING_TOOL
18449 if test -n "$DBUS_BINDING_TOOL"; then
18450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_BINDING_TOOL" >&5
18451 $as_echo "$DBUS_BINDING_TOOL" >&6; }
18452 else
18453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18454 $as_echo "no" >&6; }
18455 fi
18456
18457
18458     # Extract the first word of "glib-genmarshal", so it can be a program name with args.
18459 set dummy glib-genmarshal; ac_word=$2
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18461 $as_echo_n "checking for $ac_word... " >&6; }
18462 if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then :
18463   $as_echo_n "(cached) " >&6
18464 else
18465   case $GLIB_GENMARSHAL in
18466   [\\/]* | ?:[\\/]*)
18467   ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
18468   ;;
18469   *)
18470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18471 for as_dir in $PATH
18472 do
18473   IFS=$as_save_IFS
18474   test -z "$as_dir" && as_dir=.
18475     for ac_exec_ext in '' $ac_executable_extensions; do
18476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18477     ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
18478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18479     break 2
18480   fi
18481 done
18482   done
18483 IFS=$as_save_IFS
18484
18485   ;;
18486 esac
18487 fi
18488 GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
18489 if test -n "$GLIB_GENMARSHAL"; then
18490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL" >&5
18491 $as_echo "$GLIB_GENMARSHAL" >&6; }
18492 else
18493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18494 $as_echo "no" >&6; }
18495 fi
18496
18497
18498
18499     gui_modules="$gtk_version glib-2.0 dbus-glib-1 >= 0.60 gio-2.0"
18500     if test $enable_gui = "moblin"; then
18501
18502 $as_echo "#define USE_MOBLIN_UX 1" >>confdefs.h
18503
18504     fi
18505
18506     # gtk3 provides a switch widget, otherwise we need mx-gtk
18507     if test $gtk_version != "gtk+-3.0" &&
18508        test $enable_gui = "moblin" -o $enable_gui = "all"; then
18509         gui_modules="$gui_modules mx-gtk-1.0"
18510
18511
18512 pkg_failed=no
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MX_GTK_0_99_1" >&5
18514 $as_echo_n "checking for MX_GTK_0_99_1... " >&6; }
18515
18516 if test -n "$PKG_CONFIG"; then
18517     if test -n "$MX_GTK_0_99_1_CFLAGS"; then
18518         pkg_cv_MX_GTK_0_99_1_CFLAGS="$MX_GTK_0_99_1_CFLAGS"
18519     else
18520         if test -n "$PKG_CONFIG" && \
18521     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mx-gtk-1.0 >= 0.99.1\""; } >&5
18522   ($PKG_CONFIG --exists --print-errors "mx-gtk-1.0 >= 0.99.1") 2>&5
18523   ac_status=$?
18524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18525   test $ac_status = 0; }; then
18526   pkg_cv_MX_GTK_0_99_1_CFLAGS=`$PKG_CONFIG --cflags "mx-gtk-1.0 >= 0.99.1" 2>/dev/null`
18527 else
18528   pkg_failed=yes
18529 fi
18530     fi
18531 else
18532         pkg_failed=untried
18533 fi
18534 if test -n "$PKG_CONFIG"; then
18535     if test -n "$MX_GTK_0_99_1_LIBS"; then
18536         pkg_cv_MX_GTK_0_99_1_LIBS="$MX_GTK_0_99_1_LIBS"
18537     else
18538         if test -n "$PKG_CONFIG" && \
18539     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mx-gtk-1.0 >= 0.99.1\""; } >&5
18540   ($PKG_CONFIG --exists --print-errors "mx-gtk-1.0 >= 0.99.1") 2>&5
18541   ac_status=$?
18542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18543   test $ac_status = 0; }; then
18544   pkg_cv_MX_GTK_0_99_1_LIBS=`$PKG_CONFIG --libs "mx-gtk-1.0 >= 0.99.1" 2>/dev/null`
18545 else
18546   pkg_failed=yes
18547 fi
18548     fi
18549 else
18550         pkg_failed=untried
18551 fi
18552
18553
18554
18555 if test $pkg_failed = yes; then
18556
18557 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18558         _pkg_short_errors_supported=yes
18559 else
18560         _pkg_short_errors_supported=no
18561 fi
18562         if test $_pkg_short_errors_supported = yes; then
18563                 MX_GTK_0_99_1_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mx-gtk-1.0 >= 0.99.1"`
18564         else
18565                 MX_GTK_0_99_1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mx-gtk-1.0 >= 0.99.1"`
18566         fi
18567         # Put the nasty error message in config.log where it belongs
18568         echo "$MX_GTK_0_99_1_PKG_ERRORS" >&5
18569
18570         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18571 $as_echo "no" >&6; }
18572                 have_mx_gtk_0_99_1="no"
18573 elif test $pkg_failed = untried; then
18574         have_mx_gtk_0_99_1="no"
18575 else
18576         MX_GTK_0_99_1_CFLAGS=$pkg_cv_MX_GTK_0_99_1_CFLAGS
18577         MX_GTK_0_99_1_LIBS=$pkg_cv_MX_GTK_0_99_1_LIBS
18578         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18579 $as_echo "yes" >&6; }
18580         have_mx_gtk_0_99_1="yes"
18581 fi
18582         if test $have_mx_gtk_0_99_1 = "yes"; then
18583
18584 $as_echo "#define MX_GTK_0_99_1 1" >>confdefs.h
18585
18586         fi
18587     fi
18588
18589
18590 pkg_failed=no
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQUE" >&5
18592 $as_echo_n "checking for UNIQUE... " >&6; }
18593
18594 if test -n "$PKG_CONFIG"; then
18595     if test -n "$UNIQUE_CFLAGS"; then
18596         pkg_cv_UNIQUE_CFLAGS="$UNIQUE_CFLAGS"
18597     else
18598         if test -n "$PKG_CONFIG" && \
18599     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unique-1.0\""; } >&5
18600   ($PKG_CONFIG --exists --print-errors "unique-1.0") 2>&5
18601   ac_status=$?
18602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18603   test $ac_status = 0; }; then
18604   pkg_cv_UNIQUE_CFLAGS=`$PKG_CONFIG --cflags "unique-1.0" 2>/dev/null`
18605 else
18606   pkg_failed=yes
18607 fi
18608     fi
18609 else
18610         pkg_failed=untried
18611 fi
18612 if test -n "$PKG_CONFIG"; then
18613     if test -n "$UNIQUE_LIBS"; then
18614         pkg_cv_UNIQUE_LIBS="$UNIQUE_LIBS"
18615     else
18616         if test -n "$PKG_CONFIG" && \
18617     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unique-1.0\""; } >&5
18618   ($PKG_CONFIG --exists --print-errors "unique-1.0") 2>&5
18619   ac_status=$?
18620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18621   test $ac_status = 0; }; then
18622   pkg_cv_UNIQUE_LIBS=`$PKG_CONFIG --libs "unique-1.0" 2>/dev/null`
18623 else
18624   pkg_failed=yes
18625 fi
18626     fi
18627 else
18628         pkg_failed=untried
18629 fi
18630
18631
18632
18633 if test $pkg_failed = yes; then
18634
18635 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18636         _pkg_short_errors_supported=yes
18637 else
18638         _pkg_short_errors_supported=no
18639 fi
18640         if test $_pkg_short_errors_supported = yes; then
18641                 UNIQUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "unique-1.0"`
18642         else
18643                 UNIQUE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "unique-1.0"`
18644         fi
18645         # Put the nasty error message in config.log where it belongs
18646         echo "$UNIQUE_PKG_ERRORS" >&5
18647
18648         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18649 $as_echo "no" >&6; }
18650                 have_unique="no"
18651 elif test $pkg_failed = untried; then
18652         have_unique="no"
18653 else
18654         UNIQUE_CFLAGS=$pkg_cv_UNIQUE_CFLAGS
18655         UNIQUE_LIBS=$pkg_cv_UNIQUE_LIBS
18656         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18657 $as_echo "yes" >&6; }
18658         have_unique="yes"
18659 fi
18660     if test $have_unique = "yes"; then
18661         gui_modules="$gui_modules unique-1.0"
18662
18663 $as_echo "#define ENABLE_UNIQUE 1" >>confdefs.h
18664
18665     fi
18666
18667
18668 pkg_failed=no
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK_2_18" >&5
18670 $as_echo_n "checking for GTK_2_18... " >&6; }
18671
18672 if test -n "$PKG_CONFIG"; then
18673     if test -n "$GTK_2_18_CFLAGS"; then
18674         pkg_cv_GTK_2_18_CFLAGS="$GTK_2_18_CFLAGS"
18675     else
18676         if test -n "$PKG_CONFIG" && \
18677     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
18678   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
18679   ac_status=$?
18680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18681   test $ac_status = 0; }; then
18682   pkg_cv_GTK_2_18_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
18683 else
18684   pkg_failed=yes
18685 fi
18686     fi
18687 else
18688         pkg_failed=untried
18689 fi
18690 if test -n "$PKG_CONFIG"; then
18691     if test -n "$GTK_2_18_LIBS"; then
18692         pkg_cv_GTK_2_18_LIBS="$GTK_2_18_LIBS"
18693     else
18694         if test -n "$PKG_CONFIG" && \
18695     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
18696   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
18697   ac_status=$?
18698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18699   test $ac_status = 0; }; then
18700   pkg_cv_GTK_2_18_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
18701 else
18702   pkg_failed=yes
18703 fi
18704     fi
18705 else
18706         pkg_failed=untried
18707 fi
18708
18709
18710
18711 if test $pkg_failed = yes; then
18712
18713 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18714         _pkg_short_errors_supported=yes
18715 else
18716         _pkg_short_errors_supported=no
18717 fi
18718         if test $_pkg_short_errors_supported = yes; then
18719                 GTK_2_18_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.18"`
18720         else
18721                 GTK_2_18_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.18"`
18722         fi
18723         # Put the nasty error message in config.log where it belongs
18724         echo "$GTK_2_18_PKG_ERRORS" >&5
18725
18726         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18727 $as_echo "no" >&6; }
18728                 have_gtk_2_18="no"
18729 elif test $pkg_failed = untried; then
18730         have_gtk_2_18="no"
18731 else
18732         GTK_2_18_CFLAGS=$pkg_cv_GTK_2_18_CFLAGS
18733         GTK_2_18_LIBS=$pkg_cv_GTK_2_18_LIBS
18734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18735 $as_echo "yes" >&6; }
18736         have_gtk_2_18="yes"
18737 fi
18738     if test $have_gtk_2_18 = "yes"; then
18739
18740 $as_echo "#define GTK_2_18 1" >>confdefs.h
18741
18742     fi
18743
18744
18745 pkg_failed=no
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUI" >&5
18747 $as_echo_n "checking for GUI... " >&6; }
18748
18749 if test -n "$PKG_CONFIG"; then
18750     if test -n "$GUI_CFLAGS"; then
18751         pkg_cv_GUI_CFLAGS="$GUI_CFLAGS"
18752     else
18753         if test -n "$PKG_CONFIG" && \
18754     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gui_modules\""; } >&5
18755   ($PKG_CONFIG --exists --print-errors "$gui_modules") 2>&5
18756   ac_status=$?
18757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18758   test $ac_status = 0; }; then
18759   pkg_cv_GUI_CFLAGS=`$PKG_CONFIG --cflags "$gui_modules" 2>/dev/null`
18760 else
18761   pkg_failed=yes
18762 fi
18763     fi
18764 else
18765         pkg_failed=untried
18766 fi
18767 if test -n "$PKG_CONFIG"; then
18768     if test -n "$GUI_LIBS"; then
18769         pkg_cv_GUI_LIBS="$GUI_LIBS"
18770     else
18771         if test -n "$PKG_CONFIG" && \
18772     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gui_modules\""; } >&5
18773   ($PKG_CONFIG --exists --print-errors "$gui_modules") 2>&5
18774   ac_status=$?
18775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18776   test $ac_status = 0; }; then
18777   pkg_cv_GUI_LIBS=`$PKG_CONFIG --libs "$gui_modules" 2>/dev/null`
18778 else
18779   pkg_failed=yes
18780 fi
18781     fi
18782 else
18783         pkg_failed=untried
18784 fi
18785
18786
18787
18788 if test $pkg_failed = yes; then
18789
18790 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18791         _pkg_short_errors_supported=yes
18792 else
18793         _pkg_short_errors_supported=no
18794 fi
18795         if test $_pkg_short_errors_supported = yes; then
18796                 GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$gui_modules"`
18797         else
18798                 GUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$gui_modules"`
18799         fi
18800         # Put the nasty error message in config.log where it belongs
18801         echo "$GUI_PKG_ERRORS" >&5
18802
18803         as_fn_error "Package requirements ($gui_modules) were not met:
18804
18805 $GUI_PKG_ERRORS
18806
18807 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18808 installed software in a non-standard prefix.
18809
18810 Alternatively, you may set the environment variables GUI_CFLAGS
18811 and GUI_LIBS to avoid the need to call pkg-config.
18812 See the pkg-config man page for more details.
18813 " "$LINENO" 5
18814 elif test $pkg_failed = untried; then
18815         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18817 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
18818 is in your PATH or set the PKG_CONFIG environment variable to the full
18819 path to pkg-config.
18820
18821 Alternatively, you may set the environment variables GUI_CFLAGS
18822 and GUI_LIBS to avoid the need to call pkg-config.
18823 See the pkg-config man page for more details.
18824
18825 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18826 See \`config.log' for more details." "$LINENO" 5; }
18827 else
18828         GUI_CFLAGS=$pkg_cv_GUI_CFLAGS
18829         GUI_LIBS=$pkg_cv_GUI_LIBS
18830         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18831 $as_echo "yes" >&6; }
18832         :
18833 fi
18834
18835 elif test "$enable_dbus_service" = "yes"; then
18836     # syncevo-dbus-server needs localization
18837     :
18838 else
18839     INTLTOOL_UPDATE="true"
18840     USE_NLS="no"
18841 fi
18842
18843
18844
18845
18846
18847
18848
18849 # Boost headers: boost/foreach.hpp is needed (1.33/Debian Etch
18850 # doesn't have it, 1.34/Ubuntu 8.10 Hardy does). 1.35 is available
18851 # as Debian Etch backport.
18852
18853
18854 # Check whether --with-boost was given.
18855 if test "${with_boost+set}" = set; then :
18856   withval=$with_boost;
18857     if test "$withval" = "no"; then
18858         want_boost="no"
18859     elif test "$withval" = "yes"; then
18860         want_boost="yes"
18861         ac_boost_path=""
18862     else
18863         want_boost="yes"
18864         ac_boost_path="$withval"
18865     fi
18866
18867 else
18868   want_boost="yes"
18869 fi
18870
18871
18872
18873
18874 # Check whether --with-boost-libdir was given.
18875 if test "${with_boost_libdir+set}" = set; then :
18876   withval=$with_boost_libdir;
18877         if test -d "$withval"
18878         then
18879                 ac_boost_lib_path="$withval"
18880         else
18881                 as_fn_error "--with-boost-libdir expected directory name" "$LINENO" 5
18882         fi
18883
18884 else
18885   ac_boost_lib_path=""
18886
18887 fi
18888
18889
18890 if test "x$want_boost" = "xyes"; then
18891     boost_lib_version_req=1.34
18892     boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
18893     boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
18894     boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
18895     boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
18896     if test "x$boost_lib_version_req_sub_minor" = "x" ; then
18897         boost_lib_version_req_sub_minor="0"
18898         fi
18899     WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
18900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
18901 $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
18902     succeeded=no
18903
18904                         libsubdirs="lib"
18905     ax_arch=`uname -m`
18906     if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
18907         libsubdirs="lib64 lib lib64"
18908     fi
18909
18910                 if test "$ac_boost_path" != ""; then
18911         BOOST_CPPFLAGS="-I$ac_boost_path/include"
18912         for ac_boost_path_tmp in $libsubdirs; do
18913                 if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
18914                         BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
18915                         break
18916                 fi
18917         done
18918     elif test "$cross_compiling" != yes; then
18919         for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
18920             if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
18921                 for libsubdir in $libsubdirs ; do
18922                     if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
18923                 done
18924                 BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
18925                 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
18926                 break;
18927             fi
18928         done
18929     fi
18930
18931             if test "$ac_boost_lib_path" != ""; then
18932        BOOST_LDFLAGS="-L$ac_boost_lib_path"
18933     fi
18934
18935     CPPFLAGS_SAVED="$CPPFLAGS"
18936     CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18937     export CPPFLAGS
18938
18939     LDFLAGS_SAVED="$LDFLAGS"
18940     LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
18941     export LDFLAGS
18942
18943
18944     ac_ext=cpp
18945 ac_cpp='$CXXCPP $CPPFLAGS'
18946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18949
18950         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18951 /* end confdefs.h.  */
18952
18953     #include <boost/version.hpp>
18954
18955 int
18956 main ()
18957 {
18958
18959     #if BOOST_VERSION >= $WANT_BOOST_VERSION
18960     // Everything is okay
18961     #else
18962     #  error Boost version is too old
18963     #endif
18964
18965   ;
18966   return 0;
18967 }
18968 _ACEOF
18969 if ac_fn_cxx_try_compile "$LINENO"; then :
18970
18971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18972 $as_echo "yes" >&6; }
18973     succeeded=yes
18974     found_system=yes
18975
18976 fi
18977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18978     ac_ext=c
18979 ac_cpp='$CPP $CPPFLAGS'
18980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18983
18984
18985
18986
18987             if test "x$succeeded" != "xyes"; then
18988         _version=0
18989         if test "$ac_boost_path" != ""; then
18990             if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
18991                 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
18992                     _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
18993                     V_CHECK=`expr $_version_tmp \> $_version`
18994                     if test "$V_CHECK" = "1" ; then
18995                         _version=$_version_tmp
18996                     fi
18997                     VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
18998                     BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
18999                 done
19000             fi
19001         else
19002             if test "$cross_compiling" != yes; then
19003                 for ac_boost_path in /usr /usr/local /opt /opt/local ; do
19004                     if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
19005                         for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
19006                             _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
19007                             V_CHECK=`expr $_version_tmp \> $_version`
19008                             if test "$V_CHECK" = "1" ; then
19009                                 _version=$_version_tmp
19010                                 best_path=$ac_boost_path
19011                             fi
19012                         done
19013                     fi
19014                 done
19015
19016                 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
19017                 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
19018                 if test "$ac_boost_lib_path" = ""; then
19019                     for libsubdir in $libsubdirs ; do
19020                         if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
19021                     done
19022                     BOOST_LDFLAGS="-L$best_path/$libsubdir"
19023                 fi
19024             fi
19025
19026             if test "x$BOOST_ROOT" != "x"; then
19027                 for libsubdir in $libsubdirs ; do
19028                     if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
19029                 done
19030                 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
19031                     version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
19032                     stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
19033                         stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
19034                     V_CHECK=`expr $stage_version_shorten \>\= $_version`
19035                     if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
19036                         { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
19037 $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
19038                         BOOST_CPPFLAGS="-I$BOOST_ROOT"
19039                         BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
19040                     fi
19041                 fi
19042             fi
19043         fi
19044
19045         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19046         export CPPFLAGS
19047         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
19048         export LDFLAGS
19049
19050         ac_ext=cpp
19051 ac_cpp='$CXXCPP $CPPFLAGS'
19052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19055
19056             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19057 /* end confdefs.h.  */
19058
19059         #include <boost/version.hpp>
19060
19061 int
19062 main ()
19063 {
19064
19065         #if BOOST_VERSION >= $WANT_BOOST_VERSION
19066         // Everything is okay
19067         #else
19068         #  error Boost version is too old
19069         #endif
19070
19071   ;
19072   return 0;
19073 }
19074 _ACEOF
19075 if ac_fn_cxx_try_compile "$LINENO"; then :
19076
19077             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19078 $as_echo "yes" >&6; }
19079         succeeded=yes
19080         found_system=yes
19081
19082 fi
19083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19084         ac_ext=c
19085 ac_cpp='$CPP $CPPFLAGS'
19086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19089
19090     fi
19091
19092     if test "$succeeded" != "yes" ; then
19093         if test "$_version" = "0" ; then
19094             { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
19095 $as_echo "$as_me: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
19096         else
19097             { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
19098 $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
19099         fi
19100         # execute ACTION-IF-NOT-FOUND (if present):
19101         :
19102     else
19103
19104
19105
19106 $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
19107
19108         # execute ACTION-IF-FOUND (if present):
19109         :
19110     fi
19111
19112     CPPFLAGS="$CPPFLAGS_SAVED"
19113     LDFLAGS="$LDFLAGS_SAVED"
19114 fi
19115
19116
19117
19118 # C++ regular expression support is required often enough to make it
19119 # mandatory.
19120
19121 pkg_failed=no
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRECPP" >&5
19123 $as_echo_n "checking for PCRECPP... " >&6; }
19124
19125 if test -n "$PKG_CONFIG"; then
19126     if test -n "$PCRECPP_CFLAGS"; then
19127         pkg_cv_PCRECPP_CFLAGS="$PCRECPP_CFLAGS"
19128     else
19129         if test -n "$PKG_CONFIG" && \
19130     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcrecpp\""; } >&5
19131   ($PKG_CONFIG --exists --print-errors "libpcrecpp") 2>&5
19132   ac_status=$?
19133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19134   test $ac_status = 0; }; then
19135   pkg_cv_PCRECPP_CFLAGS=`$PKG_CONFIG --cflags "libpcrecpp" 2>/dev/null`
19136 else
19137   pkg_failed=yes
19138 fi
19139     fi
19140 else
19141         pkg_failed=untried
19142 fi
19143 if test -n "$PKG_CONFIG"; then
19144     if test -n "$PCRECPP_LIBS"; then
19145         pkg_cv_PCRECPP_LIBS="$PCRECPP_LIBS"
19146     else
19147         if test -n "$PKG_CONFIG" && \
19148     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcrecpp\""; } >&5
19149   ($PKG_CONFIG --exists --print-errors "libpcrecpp") 2>&5
19150   ac_status=$?
19151   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19152   test $ac_status = 0; }; then
19153   pkg_cv_PCRECPP_LIBS=`$PKG_CONFIG --libs "libpcrecpp" 2>/dev/null`
19154 else
19155   pkg_failed=yes
19156 fi
19157     fi
19158 else
19159         pkg_failed=untried
19160 fi
19161
19162
19163
19164 if test $pkg_failed = yes; then
19165
19166 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19167         _pkg_short_errors_supported=yes
19168 else
19169         _pkg_short_errors_supported=no
19170 fi
19171         if test $_pkg_short_errors_supported = yes; then
19172                 PCRECPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpcrecpp"`
19173         else
19174                 PCRECPP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpcrecpp"`
19175         fi
19176         # Put the nasty error message in config.log where it belongs
19177         echo "$PCRECPP_PKG_ERRORS" >&5
19178
19179         as_fn_error "Package requirements (libpcrecpp) were not met:
19180
19181 $PCRECPP_PKG_ERRORS
19182
19183 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19184 installed software in a non-standard prefix.
19185
19186 Alternatively, you may set the environment variables PCRECPP_CFLAGS
19187 and PCRECPP_LIBS to avoid the need to call pkg-config.
19188 See the pkg-config man page for more details.
19189 " "$LINENO" 5
19190 elif test $pkg_failed = untried; then
19191         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19193 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
19194 is in your PATH or set the PKG_CONFIG environment variable to the full
19195 path to pkg-config.
19196
19197 Alternatively, you may set the environment variables PCRECPP_CFLAGS
19198 and PCRECPP_LIBS to avoid the need to call pkg-config.
19199 See the pkg-config man page for more details.
19200
19201 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19202 See \`config.log' for more details." "$LINENO" 5; }
19203 else
19204         PCRECPP_CFLAGS=$pkg_cv_PCRECPP_CFLAGS
19205         PCRECPP_LIBS=$pkg_cv_PCRECPP_LIBS
19206         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19207 $as_echo "yes" >&6; }
19208         :
19209 fi
19210
19211 # need rst2man for man pages
19212
19213 # Check whether --with-rst2man was given.
19214 if test "${with_rst2man+set}" = set; then :
19215   withval=$with_rst2man; RST2MAN=$withval
19216              if test "$RST2MAN" = "yes"; then
19217                  # Extract the first word of "rst2man", so it can be a program name with args.
19218 set dummy rst2man; ac_word=$2
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19220 $as_echo_n "checking for $ac_word... " >&6; }
19221 if test "${ac_cv_path_RST2MAN+set}" = set; then :
19222   $as_echo_n "(cached) " >&6
19223 else
19224   case $RST2MAN in
19225   [\\/]* | ?:[\\/]*)
19226   ac_cv_path_RST2MAN="$RST2MAN" # Let the user override the test with a path.
19227   ;;
19228   *)
19229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19230 for as_dir in $PATH
19231 do
19232   IFS=$as_save_IFS
19233   test -z "$as_dir" && as_dir=.
19234     for ac_exec_ext in '' $ac_executable_extensions; do
19235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19236     ac_cv_path_RST2MAN="$as_dir/$ac_word$ac_exec_ext"
19237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19238     break 2
19239   fi
19240 done
19241   done
19242 IFS=$as_save_IFS
19243
19244   test -z "$ac_cv_path_RST2MAN" && ac_cv_path_RST2MAN=""no""
19245   ;;
19246 esac
19247 fi
19248 RST2MAN=$ac_cv_path_RST2MAN
19249 if test -n "$RST2MAN"; then
19250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2MAN" >&5
19251 $as_echo "$RST2MAN" >&6; }
19252 else
19253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19254 $as_echo "no" >&6; }
19255 fi
19256
19257
19258              fi
19259              test "$RST2MAN" = "no" || test -x "$RST2MAN" || as_fn_error "--with-rst2man=$RST2MAN: tool not found" "$LINENO" 5
19260 else
19261   # Extract the first word of "rst2man", so it can be a program name with args.
19262 set dummy rst2man; ac_word=$2
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19264 $as_echo_n "checking for $ac_word... " >&6; }
19265 if test "${ac_cv_path_RST2MAN+set}" = set; then :
19266   $as_echo_n "(cached) " >&6
19267 else
19268   case $RST2MAN in
19269   [\\/]* | ?:[\\/]*)
19270   ac_cv_path_RST2MAN="$RST2MAN" # Let the user override the test with a path.
19271   ;;
19272   *)
19273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19274 for as_dir in $PATH
19275 do
19276   IFS=$as_save_IFS
19277   test -z "$as_dir" && as_dir=.
19278     for ac_exec_ext in '' $ac_executable_extensions; do
19279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19280     ac_cv_path_RST2MAN="$as_dir/$ac_word$ac_exec_ext"
19281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19282     break 2
19283   fi
19284 done
19285   done
19286 IFS=$as_save_IFS
19287
19288   test -z "$ac_cv_path_RST2MAN" && ac_cv_path_RST2MAN=""no""
19289   ;;
19290 esac
19291 fi
19292 RST2MAN=$ac_cv_path_RST2MAN
19293 if test -n "$RST2MAN"; then
19294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2MAN" >&5
19295 $as_echo "$RST2MAN" >&6; }
19296 else
19297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19298 $as_echo "no" >&6; }
19299 fi
19300
19301
19302 fi
19303
19304  if test "$RST2MAN" != "no"; then
19305   COND_MAN_PAGES_TRUE=
19306   COND_MAN_PAGES_FALSE='#'
19307 else
19308   COND_MAN_PAGES_TRUE='#'
19309   COND_MAN_PAGES_FALSE=
19310 fi
19311
19312
19313 # need rst2html for HTML version of README
19314
19315 # Check whether --with-rst2html was given.
19316 if test "${with_rst2html+set}" = set; then :
19317   withval=$with_rst2html; RST2HTML=$withval
19318              if test "$RST2HTML" = "yes"; then
19319                  # Extract the first word of "rst2html", so it can be a program name with args.
19320 set dummy rst2html; ac_word=$2
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19322 $as_echo_n "checking for $ac_word... " >&6; }
19323 if test "${ac_cv_path_RST2HTML+set}" = set; then :
19324   $as_echo_n "(cached) " >&6
19325 else
19326   case $RST2HTML in
19327   [\\/]* | ?:[\\/]*)
19328   ac_cv_path_RST2HTML="$RST2HTML" # Let the user override the test with a path.
19329   ;;
19330   *)
19331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19332 for as_dir in $PATH
19333 do
19334   IFS=$as_save_IFS
19335   test -z "$as_dir" && as_dir=.
19336     for ac_exec_ext in '' $ac_executable_extensions; do
19337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19338     ac_cv_path_RST2HTML="$as_dir/$ac_word$ac_exec_ext"
19339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19340     break 2
19341   fi
19342 done
19343   done
19344 IFS=$as_save_IFS
19345
19346   test -z "$ac_cv_path_RST2HTML" && ac_cv_path_RST2HTML=""no""
19347   ;;
19348 esac
19349 fi
19350 RST2HTML=$ac_cv_path_RST2HTML
19351 if test -n "$RST2HTML"; then
19352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2HTML" >&5
19353 $as_echo "$RST2HTML" >&6; }
19354 else
19355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19356 $as_echo "no" >&6; }
19357 fi
19358
19359
19360              fi
19361              test "$RST2HTML" = "no" || test -x "$RST2HTML" || as_fn_error "--with-rst2html=$RST2HTML: tool not found" "$LINENO" 5
19362 else
19363   # Extract the first word of "rst2html", so it can be a program name with args.
19364 set dummy rst2html; ac_word=$2
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19366 $as_echo_n "checking for $ac_word... " >&6; }
19367 if test "${ac_cv_path_RST2HTML+set}" = set; then :
19368   $as_echo_n "(cached) " >&6
19369 else
19370   case $RST2HTML in
19371   [\\/]* | ?:[\\/]*)
19372   ac_cv_path_RST2HTML="$RST2HTML" # Let the user override the test with a path.
19373   ;;
19374   *)
19375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19376 for as_dir in $PATH
19377 do
19378   IFS=$as_save_IFS
19379   test -z "$as_dir" && as_dir=.
19380     for ac_exec_ext in '' $ac_executable_extensions; do
19381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19382     ac_cv_path_RST2HTML="$as_dir/$ac_word$ac_exec_ext"
19383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19384     break 2
19385   fi
19386 done
19387   done
19388 IFS=$as_save_IFS
19389
19390   test -z "$ac_cv_path_RST2HTML" && ac_cv_path_RST2HTML=""no""
19391   ;;
19392 esac
19393 fi
19394 RST2HTML=$ac_cv_path_RST2HTML
19395 if test -n "$RST2HTML"; then
19396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2HTML" >&5
19397 $as_echo "$RST2HTML" >&6; }
19398 else
19399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19400 $as_echo "no" >&6; }
19401 fi
19402
19403
19404 fi
19405
19406  if test "$RST2HTML" != "no"; then
19407   COND_HTML_README_TRUE=
19408   COND_HTML_README_FALSE='#'
19409 else
19410   COND_HTML_README_TRUE='#'
19411   COND_HTML_README_FALSE=
19412 fi
19413
19414
19415 # absolute patch to source of Synthesis client library
19416 SYNTHESIS_SRC=no-synthesis-source
19417
19418 if test "$SYNTHESISSRC" && test "$SYNTHESISSRC" != "none"; then
19419     # default: checkout a copy of the sources, remove it during maintainer-clean and distclean
19420     CLEAN_CLIENT_SRC=synthesis-workdir
19421     SYNTHESIS_SRC=$PWD/src/synthesis-workdir
19422
19423     { $as_echo "$as_me:${as_lineno-$LINENO}: updating the content of $SYNTHESIS_SRC from $SYNTHESISSRC " >&5
19424 $as_echo "$as_me: updating the content of $SYNTHESIS_SRC from $SYNTHESISSRC " >&6;}
19425     case "$SYNTHESISSRC" in
19426         *.git) protocol=git;;
19427         *://*) protocol="`echo $SYNTHESISSRC | sed -e 's;://.*;;'`";;
19428         *) protocol="file";;
19429     esac
19430
19431     mkdir -p src
19432     case $protocol in
19433         file)
19434             # use existing copy of the sources
19435             CLEAN_CLIENT_SRC=
19436             case "$SYNTHESISSRC" in
19437                  /*) SYNTHESIS_SRC="$SYNTHESISSRC";;
19438                  *) SYNTHESIS_SRC="$PWD/$SYNTHESISSRC";;
19439             esac
19440             ;;
19441         *svn*|*http*)
19442             SYNTHESISSRCREV="$SYNTHESISSRC"
19443             if test "$REVISION"; then
19444                 revarg="-r $REVISION "
19445                 if `echo $SYNTHESISSRC | grep '@0123456789*'` >/dev/null; then
19446                     :
19447                 else
19448                     SYNTHESISSRCREV="$SYNTHESISSRC@$REVISION"
19449                 fi
19450             fi
19451             if test -d $SYNTHESIS_SRC ; then
19452                 ( set -x; cd $SYNTHESIS_SRC && svn --username=$USERNAME switch $revarg "$SYNTHESISSRC" ) || as_fn_error "updating from $SYNTHESISSRC failed" "$LINENO" 5
19453             else
19454                 (set -x; svn --username=$USERNAME checkout $revarg "$SYNTHESISSRCREV" $SYNTHESIS_SRC ) || as_fn_error "checking out $SYNTHESISSRC failed" "$LINENO" 5
19455             fi
19456             ;;
19457         *)
19458             if test -d $SYNTHESIS_SRC ; then
19459                 ( set -x; cd $SYNTHESIS_SRC && git fetch "$SYNTHESISSRC" ) || as_fn_error "updating from $SYNTHESISSRC failed" "$LINENO" 5
19460             else
19461                 ( set -x; git clone "$SYNTHESISSRC" $SYNTHESIS_SRC ) || as_fn_error "cloning $SYNTHESISSRC failed" "$LINENO" 5
19462             fi
19463             if test "$REVISION"; then
19464                 # git 1.6 finds tags and branches without explicit prefix, 1.4.4.4 doesn't
19465                 ( set -x; cd $SYNTHESIS_SRC &&
19466                   (git checkout "$REVISION" ||
19467                    git checkout "tags/$REVISION" ||
19468                    git checkout "origin/$REVISION") ) || as_fn_error "checking out $SYNTHESISSRC failed" "$LINENO" 5
19469             fi
19470             ;;
19471     esac
19472 elif test "$SYNTHESISSRC" != "none" && test -d $srcdir/src/synthesis; then
19473     # use existing copy of the sources; beware of
19474     # out-of-tree compilation
19475     case $srcdir in
19476          /*) SYNTHESIS_SRC="$srcdir/src/synthesis";;
19477          *) SYNTHESIS_SRC="$PWD/$srcdir/src/synthesis";;
19478     esac
19479 elif test "$enable_shared" = "no"; then
19480     # link against engine
19481
19482 pkg_failed=no
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYNTHESIS" >&5
19484 $as_echo_n "checking for SYNTHESIS... " >&6; }
19485
19486 if test -n "$PKG_CONFIG"; then
19487     if test -n "$SYNTHESIS_CFLAGS"; then
19488         pkg_cv_SYNTHESIS_CFLAGS="$SYNTHESIS_CFLAGS"
19489     else
19490         if test -n "$PKG_CONFIG" && \
19491     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4\""; } >&5
19492   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4") 2>&5
19493   ac_status=$?
19494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19495   test $ac_status = 0; }; then
19496   pkg_cv_SYNTHESIS_CFLAGS=`$PKG_CONFIG --cflags "synthesis >= 3.4" 2>/dev/null`
19497 else
19498   pkg_failed=yes
19499 fi
19500     fi
19501 else
19502         pkg_failed=untried
19503 fi
19504 if test -n "$PKG_CONFIG"; then
19505     if test -n "$SYNTHESIS_LIBS"; then
19506         pkg_cv_SYNTHESIS_LIBS="$SYNTHESIS_LIBS"
19507     else
19508         if test -n "$PKG_CONFIG" && \
19509     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4\""; } >&5
19510   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4") 2>&5
19511   ac_status=$?
19512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19513   test $ac_status = 0; }; then
19514   pkg_cv_SYNTHESIS_LIBS=`$PKG_CONFIG --libs "synthesis >= 3.4" 2>/dev/null`
19515 else
19516   pkg_failed=yes
19517 fi
19518     fi
19519 else
19520         pkg_failed=untried
19521 fi
19522
19523
19524
19525 if test $pkg_failed = yes; then
19526
19527 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19528         _pkg_short_errors_supported=yes
19529 else
19530         _pkg_short_errors_supported=no
19531 fi
19532         if test $_pkg_short_errors_supported = yes; then
19533                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "synthesis >= 3.4"`
19534         else
19535                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "synthesis >= 3.4"`
19536         fi
19537         # Put the nasty error message in config.log where it belongs
19538         echo "$SYNTHESIS_PKG_ERRORS" >&5
19539
19540         as_fn_error "Package requirements (synthesis >= 3.4) were not met:
19541
19542 $SYNTHESIS_PKG_ERRORS
19543
19544 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19545 installed software in a non-standard prefix.
19546
19547 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
19548 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
19549 See the pkg-config man page for more details.
19550 " "$LINENO" 5
19551 elif test $pkg_failed = untried; then
19552         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19554 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
19555 is in your PATH or set the PKG_CONFIG environment variable to the full
19556 path to pkg-config.
19557
19558 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
19559 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
19560 See the pkg-config man page for more details.
19561
19562 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19563 See \`config.log' for more details." "$LINENO" 5; }
19564 else
19565         SYNTHESIS_CFLAGS=$pkg_cv_SYNTHESIS_CFLAGS
19566         SYNTHESIS_LIBS=$pkg_cv_SYNTHESIS_LIBS
19567         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19568 $as_echo "yes" >&6; }
19569         :
19570 fi
19571     SYNTHESIS_ENGINE="$SYNTHESIS_LIBS -lsynthesis"
19572 else
19573     # link against SDK alone, except in client-test
19574     #PKG_CHECK_MODULES(SYNTHESIS, "synthesis-sdk")
19575     #SYNTHESIS_ENGINE="`echo $SYNTHESIS_LIBS | sed -e 's/-lsynthesisstubs/-lsynthesis/'`"
19576
19577     # can't use the SDK alone because of sysync::SySyncDebugPuts()
19578
19579 pkg_failed=no
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYNTHESIS" >&5
19581 $as_echo_n "checking for SYNTHESIS... " >&6; }
19582
19583 if test -n "$PKG_CONFIG"; then
19584     if test -n "$SYNTHESIS_CFLAGS"; then
19585         pkg_cv_SYNTHESIS_CFLAGS="$SYNTHESIS_CFLAGS"
19586     else
19587         if test -n "$PKG_CONFIG" && \
19588     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4.0.16.7\""; } >&5
19589   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4.0.16.7") 2>&5
19590   ac_status=$?
19591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19592   test $ac_status = 0; }; then
19593   pkg_cv_SYNTHESIS_CFLAGS=`$PKG_CONFIG --cflags "synthesis >= 3.4.0.16.7" 2>/dev/null`
19594 else
19595   pkg_failed=yes
19596 fi
19597     fi
19598 else
19599         pkg_failed=untried
19600 fi
19601 if test -n "$PKG_CONFIG"; then
19602     if test -n "$SYNTHESIS_LIBS"; then
19603         pkg_cv_SYNTHESIS_LIBS="$SYNTHESIS_LIBS"
19604     else
19605         if test -n "$PKG_CONFIG" && \
19606     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4.0.16.7\""; } >&5
19607   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4.0.16.7") 2>&5
19608   ac_status=$?
19609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19610   test $ac_status = 0; }; then
19611   pkg_cv_SYNTHESIS_LIBS=`$PKG_CONFIG --libs "synthesis >= 3.4.0.16.7" 2>/dev/null`
19612 else
19613   pkg_failed=yes
19614 fi
19615     fi
19616 else
19617         pkg_failed=untried
19618 fi
19619
19620
19621
19622 if test $pkg_failed = yes; then
19623
19624 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19625         _pkg_short_errors_supported=yes
19626 else
19627         _pkg_short_errors_supported=no
19628 fi
19629         if test $_pkg_short_errors_supported = yes; then
19630                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "synthesis >= 3.4.0.16.7"`
19631         else
19632                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "synthesis >= 3.4.0.16.7"`
19633         fi
19634         # Put the nasty error message in config.log where it belongs
19635         echo "$SYNTHESIS_PKG_ERRORS" >&5
19636
19637         as_fn_error "Package requirements (synthesis >= 3.4.0.16.7) were not met:
19638
19639 $SYNTHESIS_PKG_ERRORS
19640
19641 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19642 installed software in a non-standard prefix.
19643
19644 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
19645 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
19646 See the pkg-config man page for more details.
19647 " "$LINENO" 5
19648 elif test $pkg_failed = untried; then
19649         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19651 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
19652 is in your PATH or set the PKG_CONFIG environment variable to the full
19653 path to pkg-config.
19654
19655 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
19656 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
19657 See the pkg-config man page for more details.
19658
19659 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19660 See \`config.log' for more details." "$LINENO" 5; }
19661 else
19662         SYNTHESIS_CFLAGS=$pkg_cv_SYNTHESIS_CFLAGS
19663         SYNTHESIS_LIBS=$pkg_cv_SYNTHESIS_LIBS
19664         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19665 $as_echo "yes" >&6; }
19666         :
19667 fi
19668     SYNTHESIS_ENGINE="$SYNTHESIS_LIBS"
19669 fi
19670
19671 if test $SYNTHESIS_SRC != "no-synthesis-source"; then
19672     ( cd $SYNTHESIS_SRC && ( test -f configure || sh autogen.sh ) ) || as_fn_error "--with-synthesis-src=$SYNTHESIS_SRC: no Synthesis configure script found in that directory" "$LINENO" 5
19673
19674     SYNTHESIS_CONFIGURE="$SYNTHESIS_SRC/configure"
19675     chmod u+x $SYNTHESIS_SRC/configure $SYNTHESIS_SRC/config.sub $SYNTHESIS_SRC/config.guess
19676
19677     # use local copy of the sources, with dependencies
19678     # to trigger building the synthesis library
19679     SYNTHESIS_SUBDIR=$PWD/src/build-synthesis
19680     SYNTHESIS_CFLAGS="-I$SYNTHESIS_SUBDIR/src"
19681     SYNTHESIS_LIBS="$SYNTHESIS_SUBDIR/src/libsynthesissdk.la"
19682
19683     if test "x$enable_core" = "xno" && test "x$enable_gui" != "xno"; then
19684        # SYNTHESIS_SUBDIR is ignored, at least build headers for GUI
19685        SYNTHESIS_SUBDIR_INCLUDES=src/synthesis-includes
19686     fi
19687
19688     if test "$enable_shared" = "no"; then
19689         # link against the engines that were enabled
19690         case $SYNCML_ENGINES in both|client|server) SYNTHESIS_LIBS="$SYNTHESIS_LIBS $SYNTHESIS_SUBDIR/src/libsynthesis.la";; esac
19691
19692 $as_echo "#define ENABLE_SYNCML_LINKED 1" >>confdefs.h
19693
19694     else
19695         # It would be nice if we could avoid linking against libsynthesis.la here.
19696         # This doesn't work at the moment because sysync::SySyncDebugPuts()
19697         # is called directly by the libsynthesissdk instead of going through
19698         # the normal C function pointer lookup.
19699         SYNTHESIS_LIBS="$SYNTHESIS_LIBS $SYNTHESIS_SUBDIR/src/libsynthesis.la"
19700     fi
19701     SYNTHESIS_DEP=$SYNTHESIS_LIBS
19702
19703     # for linking client-test
19704     SYNTHESIS_ENGINE="$SYNTHESIS_SUBDIR/src/libsynthesis.la"
19705
19706     { $as_echo "$as_me:${as_lineno-$LINENO}: configuring the Synthesis library " >&5
19707 $as_echo "$as_me: configuring the Synthesis library " >&6;}
19708     if (set -x; mkdir -p $SYNTHESIS_SUBDIR && cd $SYNTHESIS_SUBDIR && eval "\$SHELL \"\$SYNTHESIS_CONFIGURE\" $ac_configure_args \"--srcdir=\$SYNTHESIS_SRC\" " ); then true; else
19709         as_fn_error "configuring Synthesis library failed " "$LINENO" 5
19710     fi
19711
19712     # do the version check with the .pc files prepared by the configure step above
19713     export PKG_CONFIG_PATH=$SYNTHESIS_SUBDIR:$PKG_CONFIG_PATH
19714
19715 pkg_failed=no
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WITH_SYNTHESIS_SRC" >&5
19717 $as_echo_n "checking for WITH_SYNTHESIS_SRC... " >&6; }
19718
19719 if test -n "$PKG_CONFIG"; then
19720     if test -n "$WITH_SYNTHESIS_SRC_CFLAGS"; then
19721         pkg_cv_WITH_SYNTHESIS_SRC_CFLAGS="$WITH_SYNTHESIS_SRC_CFLAGS"
19722     else
19723         if test -n "$PKG_CONFIG" && \
19724     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4.0.16.7\""; } >&5
19725   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4.0.16.7") 2>&5
19726   ac_status=$?
19727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19728   test $ac_status = 0; }; then
19729   pkg_cv_WITH_SYNTHESIS_SRC_CFLAGS=`$PKG_CONFIG --cflags "synthesis >= 3.4.0.16.7" 2>/dev/null`
19730 else
19731   pkg_failed=yes
19732 fi
19733     fi
19734 else
19735         pkg_failed=untried
19736 fi
19737 if test -n "$PKG_CONFIG"; then
19738     if test -n "$WITH_SYNTHESIS_SRC_LIBS"; then
19739         pkg_cv_WITH_SYNTHESIS_SRC_LIBS="$WITH_SYNTHESIS_SRC_LIBS"
19740     else
19741         if test -n "$PKG_CONFIG" && \
19742     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4.0.16.7\""; } >&5
19743   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4.0.16.7") 2>&5
19744   ac_status=$?
19745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19746   test $ac_status = 0; }; then
19747   pkg_cv_WITH_SYNTHESIS_SRC_LIBS=`$PKG_CONFIG --libs "synthesis >= 3.4.0.16.7" 2>/dev/null`
19748 else
19749   pkg_failed=yes
19750 fi
19751     fi
19752 else
19753         pkg_failed=untried
19754 fi
19755
19756
19757
19758 if test $pkg_failed = yes; then
19759
19760 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19761         _pkg_short_errors_supported=yes
19762 else
19763         _pkg_short_errors_supported=no
19764 fi
19765         if test $_pkg_short_errors_supported = yes; then
19766                 WITH_SYNTHESIS_SRC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "synthesis >= 3.4.0.16.7"`
19767         else
19768                 WITH_SYNTHESIS_SRC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "synthesis >= 3.4.0.16.7"`
19769         fi
19770         # Put the nasty error message in config.log where it belongs
19771         echo "$WITH_SYNTHESIS_SRC_PKG_ERRORS" >&5
19772
19773         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19774 $as_echo "no" >&6; }
19775                 as_fn_error "need at least libsynthesis >= 3.4.0.16.7; the latest libsynthesis for SyncEvolution is the one from http://meego.gitorious.org/meego-middleware/libsynthesis" "$LINENO" 5
19776 elif test $pkg_failed = untried; then
19777         as_fn_error "need at least libsynthesis >= 3.4.0.16.7; the latest libsynthesis for SyncEvolution is the one from http://meego.gitorious.org/meego-middleware/libsynthesis" "$LINENO" 5
19778 else
19779         WITH_SYNTHESIS_SRC_CFLAGS=$pkg_cv_WITH_SYNTHESIS_SRC_CFLAGS
19780         WITH_SYNTHESIS_SRC_LIBS=$pkg_cv_WITH_SYNTHESIS_SRC_LIBS
19781         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19782 $as_echo "yes" >&6; }
19783         :
19784 fi
19785
19786 fi
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798 BACKEND_CPPFLAGS="$SYNTHESIS_CFLAGS $EPACKAGE_CFLAGS $EBOOK_CFLAGS $ECAL_CFLAGS $GLIB_CFLAGS $BOOST_CPPFLAGS"
19799
19800
19801 # GNOME Bluetooth Panel plugin
19802
19803 pkg_failed=no
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOMEBLUETOOTH" >&5
19805 $as_echo_n "checking for GNOMEBLUETOOTH... " >&6; }
19806
19807 if test -n "$PKG_CONFIG"; then
19808     if test -n "$GNOMEBLUETOOTH_CFLAGS"; then
19809         pkg_cv_GNOMEBLUETOOTH_CFLAGS="$GNOMEBLUETOOTH_CFLAGS"
19810     else
19811         if test -n "$PKG_CONFIG" && \
19812     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-bluetooth-1.0 >= 2.27.6\""; } >&5
19813   ($PKG_CONFIG --exists --print-errors "gnome-bluetooth-1.0 >= 2.27.6") 2>&5
19814   ac_status=$?
19815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19816   test $ac_status = 0; }; then
19817   pkg_cv_GNOMEBLUETOOTH_CFLAGS=`$PKG_CONFIG --cflags "gnome-bluetooth-1.0 >= 2.27.6" 2>/dev/null`
19818 else
19819   pkg_failed=yes
19820 fi
19821     fi
19822 else
19823         pkg_failed=untried
19824 fi
19825 if test -n "$PKG_CONFIG"; then
19826     if test -n "$GNOMEBLUETOOTH_LIBS"; then
19827         pkg_cv_GNOMEBLUETOOTH_LIBS="$GNOMEBLUETOOTH_LIBS"
19828     else
19829         if test -n "$PKG_CONFIG" && \
19830     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-bluetooth-1.0 >= 2.27.6\""; } >&5
19831   ($PKG_CONFIG --exists --print-errors "gnome-bluetooth-1.0 >= 2.27.6") 2>&5
19832   ac_status=$?
19833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19834   test $ac_status = 0; }; then
19835   pkg_cv_GNOMEBLUETOOTH_LIBS=`$PKG_CONFIG --libs "gnome-bluetooth-1.0 >= 2.27.6" 2>/dev/null`
19836 else
19837   pkg_failed=yes
19838 fi
19839     fi
19840 else
19841         pkg_failed=untried
19842 fi
19843
19844
19845
19846 if test $pkg_failed = yes; then
19847
19848 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19849         _pkg_short_errors_supported=yes
19850 else
19851         _pkg_short_errors_supported=no
19852 fi
19853         if test $_pkg_short_errors_supported = yes; then
19854                 GNOMEBLUETOOTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-bluetooth-1.0 >= 2.27.6"`
19855         else
19856                 GNOMEBLUETOOTH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-bluetooth-1.0 >= 2.27.6"`
19857         fi
19858         # Put the nasty error message in config.log where it belongs
19859         echo "$GNOMEBLUETOOTH_PKG_ERRORS" >&5
19860
19861         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19862 $as_echo "no" >&6; }
19863                 have_gbt="no"
19864 elif test $pkg_failed = untried; then
19865         have_gbt="no"
19866 else
19867         GNOMEBLUETOOTH_CFLAGS=$pkg_cv_GNOMEBLUETOOTH_CFLAGS
19868         GNOMEBLUETOOTH_LIBS=$pkg_cv_GNOMEBLUETOOTH_LIBS
19869         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19870 $as_echo "yes" >&6; }
19871         have_gbt="yes"
19872                    GNOMEBLUETOOTH_DIR=`$PKG_CONFIG --variable=libdir gnome-bluetooth-1.0 2>/dev/null`/gnome-bluetooth
19873 fi
19874
19875
19876
19877 # Check whether --enable-gnome-bluetooth-panel-plugin was given.
19878 if test "${enable_gnome_bluetooth_panel_plugin+set}" = set; then :
19879   enableval=$enable_gnome_bluetooth_panel_plugin; enable_gnome_bluetooth_panel="$enableval"
19880 else
19881   enable_gnome_bluetooth_panel="no"
19882
19883 fi
19884
19885 if test "$enable_gnome_bluetooth_panel" = "yes"; then
19886    test "$have_gbt" = "yes" || as_fn_error "--enable-gnome-bluetooth-panel requires
19887            pkg-config information for gnome-bluetooth-1.0 >= 2.27.6 which was not found" "$LINENO" 5
19888 fi
19889  if test "$have_gbt" = "yes" && test "$enable_gnome_bluetooth_panel" = "yes"; then
19890   ENABLE_GNOME_BLUETOOTH_PANEL_TRUE=
19891   ENABLE_GNOME_BLUETOOTH_PANEL_FALSE='#'
19892 else
19893   ENABLE_GNOME_BLUETOOTH_PANEL_TRUE='#'
19894   ENABLE_GNOME_BLUETOOTH_PANEL_FALSE=
19895 fi
19896
19897
19898 # Check whether --enable-doc was given.
19899 if test "${enable_doc+set}" = set; then :
19900   enableval=$enable_doc; enable_doc="$enableval"
19901 else
19902   enable_doc="no"
19903 fi
19904
19905
19906  if test "$enable_doc" != "no"; then
19907   COND_DOC_TRUE=
19908   COND_DOC_FALSE='#'
19909 else
19910   COND_DOC_TRUE='#'
19911   COND_DOC_FALSE=
19912 fi
19913
19914
19915
19916
19917           BACKENDS=''
19918           BACKEND_DEFINES=''
19919           SYNCSOURCES=''
19920
19921
19922 # vvvvvvvvvvvvvv src/backends/activesync/configure-sub.in vvvvvvvvvvvvvv
19923
19924
19925           # Check whether --enable-activesync was given.
19926 if test "${enable_activesync+set}" = set; then :
19927   enableval=$enable_activesync; enable_activesync="$enableval"
19928 else
19929   enable_activesync="no"
19930 fi
19931
19932           BACKENDS="$BACKENDS activesync"
19933           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_ACTIVESYNC"
19934           for source in activesync
19935           do
19936             SYNCSOURCES="$SYNCSOURCES src/backends/activesync/syncactivesync.la"
19937           done
19938
19939
19940
19941
19942 # Check whether --with-activesyncd-src was given.
19943 if test "${with_activesyncd_src+set}" = set; then :
19944   withval=$with_activesyncd_src; ACTIVESYNCDSRC="$withval"
19945              test "$ACTIVESYNCDSRC" != "yes" || as_fn_error "--with-synthesis-src requires a parameter (base directory, svn URL or git URL)" "$LINENO" 5
19946 else
19947   ACTIVESYNCDSRC=""
19948 fi
19949
19950
19951  if test "$enable_activesync" = "yes" && test "$ACTIVESYNCDSRC" != ""; then
19952   BUILD_ACTIVESYNCD_TRUE=
19953   BUILD_ACTIVESYNCD_FALSE='#'
19954 else
19955   BUILD_ACTIVESYNCD_TRUE='#'
19956   BUILD_ACTIVESYNCD_FALSE=
19957 fi
19958
19959
19960 if test "$enable_activesync" = "yes"; then
19961         if test "$ACTIVESYNCDSRC" != ""; then
19962                 # brute-force dependency on any file in the source repo
19963                 LIBEASCLIENT_LA_DEPENDENCIES=`find "$ACTIVESYNCDSRC"/* -type f -printf '%p ' `
19964
19965                 mkdir -p src/backends/activesync/activesyncd/build
19966                 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring activesyncd using the $ACTIVESYNCDSRC source code" >&5
19967 $as_echo "$as_me: configuring activesyncd using the $ACTIVESYNCDSRC source code" >&6;}
19968                 ( set -x; cd src/backends/activesync/activesyncd/build &&
19969                   $ACTIVESYNCDSRC/configure --disable-eplugin --disable-camel-backend --prefix=`pwd`/../install) ||
19970                 as_fn_error "configuring activesyncd failed" "$LINENO" 5
19971
19972                 # hard-coded replacement for pkg-config: necessary because
19973                 # .pc file not installed yet
19974                 EASCLIENT_LIBS=src/backends/activesync/activesyncd/install/lib/libeasclient.la
19975                 EASCLIENT_DEPENDENCIES=src/backends/activesync/activesyncd/install/lib/libeasclient.la
19976                 EASCLIENT_CFLAGS=-Isrc/backends/activesync/activesyncd/install/include/eas-daemon/eas-client
19977
19978
19979
19980         else
19981
19982 pkg_failed=no
19983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EASCLIENT" >&5
19984 $as_echo_n "checking for EASCLIENT... " >&6; }
19985
19986 if test -n "$PKG_CONFIG"; then
19987     if test -n "$EASCLIENT_CFLAGS"; then
19988         pkg_cv_EASCLIENT_CFLAGS="$EASCLIENT_CFLAGS"
19989     else
19990         if test -n "$PKG_CONFIG" && \
19991     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeasclient\""; } >&5
19992   ($PKG_CONFIG --exists --print-errors "libeasclient") 2>&5
19993   ac_status=$?
19994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19995   test $ac_status = 0; }; then
19996   pkg_cv_EASCLIENT_CFLAGS=`$PKG_CONFIG --cflags "libeasclient" 2>/dev/null`
19997 else
19998   pkg_failed=yes
19999 fi
20000     fi
20001 else
20002         pkg_failed=untried
20003 fi
20004 if test -n "$PKG_CONFIG"; then
20005     if test -n "$EASCLIENT_LIBS"; then
20006         pkg_cv_EASCLIENT_LIBS="$EASCLIENT_LIBS"
20007     else
20008         if test -n "$PKG_CONFIG" && \
20009     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeasclient\""; } >&5
20010   ($PKG_CONFIG --exists --print-errors "libeasclient") 2>&5
20011   ac_status=$?
20012   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20013   test $ac_status = 0; }; then
20014   pkg_cv_EASCLIENT_LIBS=`$PKG_CONFIG --libs "libeasclient" 2>/dev/null`
20015 else
20016   pkg_failed=yes
20017 fi
20018     fi
20019 else
20020         pkg_failed=untried
20021 fi
20022
20023
20024
20025 if test $pkg_failed = yes; then
20026
20027 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20028         _pkg_short_errors_supported=yes
20029 else
20030         _pkg_short_errors_supported=no
20031 fi
20032         if test $_pkg_short_errors_supported = yes; then
20033                 EASCLIENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libeasclient"`
20034         else
20035                 EASCLIENT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libeasclient"`
20036         fi
20037         # Put the nasty error message in config.log where it belongs
20038         echo "$EASCLIENT_PKG_ERRORS" >&5
20039
20040         as_fn_error "Package requirements (libeasclient) were not met:
20041
20042 $EASCLIENT_PKG_ERRORS
20043
20044 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20045 installed software in a non-standard prefix.
20046
20047 Alternatively, you may set the environment variables EASCLIENT_CFLAGS
20048 and EASCLIENT_LIBS to avoid the need to call pkg-config.
20049 See the pkg-config man page for more details.
20050 " "$LINENO" 5
20051 elif test $pkg_failed = untried; then
20052         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20054 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
20055 is in your PATH or set the PKG_CONFIG environment variable to the full
20056 path to pkg-config.
20057
20058 Alternatively, you may set the environment variables EASCLIENT_CFLAGS
20059 and EASCLIENT_LIBS to avoid the need to call pkg-config.
20060 See the pkg-config man page for more details.
20061
20062 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20063 See \`config.log' for more details." "$LINENO" 5; }
20064 else
20065         EASCLIENT_CFLAGS=$pkg_cv_EASCLIENT_CFLAGS
20066         EASCLIENT_LIBS=$pkg_cv_EASCLIENT_LIBS
20067         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20068 $as_echo "yes" >&6; }
20069         :
20070 fi
20071         fi
20072
20073 $as_echo "#define ENABLE_ACTIVESYNC 1" >>confdefs.h
20074
20075         need_ical="yes"
20076         need_glib="yes"
20077 fi
20078
20079 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EASCLIENT_CFLAGS"
20080 # ^^^^^^^^^^^^^^ src/backends/activesync/configure-sub.in ^^^^^^^^^^^^^^
20081
20082 # vvvvvvvvvvvvvv src/backends/addressbook/configure-sub.in vvvvvvvvvvvvvv
20083
20084 ADDRESSBOOK_CFLAGS=
20085
20086 ADDRESSBOOK_LIBS="-framework AddressBook -framework CoreFoundation"
20087
20088
20089 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $ADDRESSBOOK_CFLAGS"
20090
20091
20092           # Check whether --enable-addressbook was given.
20093 if test "${enable_addressbook+set}" = set; then :
20094   enableval=$enable_addressbook; enable_addressbook="$enableval"
20095 else
20096   enable_addressbook="no"
20097
20098 fi
20099
20100           BACKENDS="$BACKENDS addressbook"
20101           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_ADDRESSBOOK"
20102           for source in addressbook
20103           do
20104             SYNCSOURCES="$SYNCSOURCES src/backends/addressbook/syncaddressbook.la"
20105           done
20106
20107
20108
20109 if test "$enable_addressbook" = "yes"; then
20110
20111 $as_echo "#define ENABLE_ADDRESSBOOK 1" >>confdefs.h
20112
20113         DEVICE_TYPE=MacOS_X
20114         enable_any="yes"
20115 else
20116         ADDRESSBOOK_LIBS=
20117 fi
20118
20119 # ^^^^^^^^^^^^^^ src/backends/addressbook/configure-sub.in ^^^^^^^^^^^^^^
20120
20121 # vvvvvvvvvvvvvv src/backends/akonadi/configure-sub.in vvvvvvvvvvvvvv
20122
20123 for ac_prog in qmake qmake-qt4
20124 do
20125   # Extract the first word of "$ac_prog", so it can be a program name with args.
20126 set dummy $ac_prog; ac_word=$2
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20128 $as_echo_n "checking for $ac_word... " >&6; }
20129 if test "${ac_cv_prog_QMAKE+set}" = set; then :
20130   $as_echo_n "(cached) " >&6
20131 else
20132   if test -n "$QMAKE"; then
20133   ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
20134 else
20135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20136 for as_dir in $PATH
20137 do
20138   IFS=$as_save_IFS
20139   test -z "$as_dir" && as_dir=.
20140     for ac_exec_ext in '' $ac_executable_extensions; do
20141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20142     ac_cv_prog_QMAKE="$ac_prog"
20143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20144     break 2
20145   fi
20146 done
20147   done
20148 IFS=$as_save_IFS
20149
20150 fi
20151 fi
20152 QMAKE=$ac_cv_prog_QMAKE
20153 if test -n "$QMAKE"; then
20154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
20155 $as_echo "$QMAKE" >&6; }
20156 else
20157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20158 $as_echo "no" >&6; }
20159 fi
20160
20161
20162   test -n "$QMAKE" && break
20163 done
20164
20165
20166 # Check for Akonadi. There is no .pc file for it,
20167 # so fall back to normal header file and library checking.
20168 # kdepimlibs5-dev >= 4.3 provides the necessary files.
20169 AKONADIFOUND=yes
20170 if ! test "$KDEPIM_CFLAGS"; then
20171    KDEPIM_CFLAGS="-I`kde4-config --path include` -I`kde4-config --path include`/KDE"
20172    if test "$QMAKE"; then
20173       KDEPIM_CFLAGS="$KDEPIM_CFLAGS -I`$QMAKE -query QT_INSTALL_HEADERS`"
20174    fi
20175 fi
20176 if ! test "$KDEPIM_LIBS"; then
20177    KDEPIM_LIBS="-L`kde4-config --prefix`/lib`kde4-config --libsuffix` -lakonadi-kde -lQtDBus -lQtCore -lkdeui -lkdecore"
20178 fi
20179 ac_ext=cpp
20180 ac_cpp='$CXXCPP $CPPFLAGS'
20181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20184
20185 old_CPPFLAGS="$CPPFLAGS"
20186 CPPFLAGS="$CPPFLAGS $KDEPIM_CFLAGS"
20187 for ac_header in Akonadi/Collection
20188 do :
20189   ac_fn_cxx_check_header_mongrel "$LINENO" "Akonadi/Collection" "ac_cv_header_Akonadi_Collection" "$ac_includes_default"
20190 if test "x$ac_cv_header_Akonadi_Collection" = x""yes; then :
20191   cat >>confdefs.h <<_ACEOF
20192 #define HAVE_AKONADI_COLLECTION 1
20193 _ACEOF
20194
20195 else
20196   AKONADIFOUND=no
20197 fi
20198
20199 done
20200
20201 CPPFLAGS="$old_CPPFLAGS"
20202 ac_ext=c
20203 ac_cpp='$CPP $CPPFLAGS'
20204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20207
20208
20209 # In contrast to the Evolution backend, the Akonadi backend is
20210 # currently considered optional. "configure" will enable it only
20211 # if explicitly enabled (was turned on automatically previously,
20212 # for example on Ubuntu Hardy, and didn't compile).
20213
20214           # Check whether --enable-akonadi was given.
20215 if test "${enable_akonadi+set}" = set; then :
20216   enableval=$enable_akonadi; enable_akonadi="$enableval"
20217                        test $AKONADIFOUND = "yes" || test $enable_akonadi = "no" || as_fn_error "akonadi.pc not found. Install it to compile with the Akonadi backend enabled." "$LINENO" 5
20218 else
20219   enable_akonadi=no
20220
20221 fi
20222
20223           BACKENDS="$BACKENDS akonadi"
20224           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_AKONADI"
20225           for source in akonadi
20226           do
20227             SYNCSOURCES="$SYNCSOURCES src/backends/akonadi/syncakonadi.la"
20228           done
20229
20230
20231
20232 if test "$enable_akonadi" = "yes"; then
20233         # conditional compilation in preprocessor
20234
20235 $as_echo "#define ENABLE_AKONADI 1" >>confdefs.h
20236
20237 else
20238         # avoid unneeded dependencies on Akonadi
20239         KDEPIM_CFLAGS=
20240         KDEPIM_LIBS=
20241 fi
20242
20243
20244
20245 # conditional compilation in make
20246  if test "$enable_akonadi" = "yes"; then
20247   ENABLE_AKONADI_TRUE=
20248   ENABLE_AKONADI_FALSE='#'
20249 else
20250   ENABLE_AKONADI_TRUE='#'
20251   ENABLE_AKONADI_FALSE=
20252 fi
20253
20254
20255 # let others include Akonadi backend's header file
20256 # (not strictly necessary, could be avoided by not
20257 # including Akonadi header files in public header file
20258 # of source)
20259 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $KDEPIM_CFLAGS"
20260 # ^^^^^^^^^^^^^^ src/backends/akonadi/configure-sub.in ^^^^^^^^^^^^^^
20261
20262 # vvvvvvvvvvvvvv src/backends/evolution/configure-sub.in vvvvvvvvvvvvvv
20263
20264 anymissing="
20265 Please install the development packages of Evolution and/or
20266 set the PKG_CONFIG_PATH variable so that it points towards
20267 the .pc files of libedataserver, libecal and libebook (the
20268 latter two are optional).
20269
20270 You can check that these packages are available by running
20271 pkg-config --list-all."
20272
20273 evomissing="No compatible evolution-data-server was found.
20274 $anymissing"
20275
20276
20277 pkg_failed=no
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EPACKAGE" >&5
20279 $as_echo_n "checking for EPACKAGE... " >&6; }
20280
20281 if test -n "$PKG_CONFIG"; then
20282     if test -n "$EPACKAGE_CFLAGS"; then
20283         pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
20284     else
20285         if test -n "$PKG_CONFIG" && \
20286     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedataserver-1.2\""; } >&5
20287   ($PKG_CONFIG --exists --print-errors "libedataserver-1.2") 2>&5
20288   ac_status=$?
20289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20290   test $ac_status = 0; }; then
20291   pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "libedataserver-1.2" 2>/dev/null`
20292 else
20293   pkg_failed=yes
20294 fi
20295     fi
20296 else
20297         pkg_failed=untried
20298 fi
20299 if test -n "$PKG_CONFIG"; then
20300     if test -n "$EPACKAGE_LIBS"; then
20301         pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
20302     else
20303         if test -n "$PKG_CONFIG" && \
20304     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedataserver-1.2\""; } >&5
20305   ($PKG_CONFIG --exists --print-errors "libedataserver-1.2") 2>&5
20306   ac_status=$?
20307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20308   test $ac_status = 0; }; then
20309   pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "libedataserver-1.2" 2>/dev/null`
20310 else
20311   pkg_failed=yes
20312 fi
20313     fi
20314 else
20315         pkg_failed=untried
20316 fi
20317
20318
20319
20320 if test $pkg_failed = yes; then
20321
20322 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20323         _pkg_short_errors_supported=yes
20324 else
20325         _pkg_short_errors_supported=no
20326 fi
20327         if test $_pkg_short_errors_supported = yes; then
20328                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libedataserver-1.2"`
20329         else
20330                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libedataserver-1.2"`
20331         fi
20332         # Put the nasty error message in config.log where it belongs
20333         echo "$EPACKAGE_PKG_ERRORS" >&5
20334
20335         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20336 $as_echo "no" >&6; }
20337                 EDSFOUND=no
20338 elif test $pkg_failed = untried; then
20339         EDSFOUND=no
20340 else
20341         EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
20342         EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
20343         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20344 $as_echo "yes" >&6; }
20345         EDSFOUND=yes
20346 fi
20347
20348 pkg_failed=no
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECAL" >&5
20350 $as_echo_n "checking for ECAL... " >&6; }
20351
20352 if test -n "$PKG_CONFIG"; then
20353     if test -n "$ECAL_CFLAGS"; then
20354         pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
20355     else
20356         if test -n "$PKG_CONFIG" && \
20357     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
20358   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
20359   ac_status=$?
20360   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20361   test $ac_status = 0; }; then
20362   pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
20363 else
20364   pkg_failed=yes
20365 fi
20366     fi
20367 else
20368         pkg_failed=untried
20369 fi
20370 if test -n "$PKG_CONFIG"; then
20371     if test -n "$ECAL_LIBS"; then
20372         pkg_cv_ECAL_LIBS="$ECAL_LIBS"
20373     else
20374         if test -n "$PKG_CONFIG" && \
20375     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
20376   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
20377   ac_status=$?
20378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20379   test $ac_status = 0; }; then
20380   pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
20381 else
20382   pkg_failed=yes
20383 fi
20384     fi
20385 else
20386         pkg_failed=untried
20387 fi
20388
20389
20390
20391 if test $pkg_failed = yes; then
20392
20393 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20394         _pkg_short_errors_supported=yes
20395 else
20396         _pkg_short_errors_supported=no
20397 fi
20398         if test $_pkg_short_errors_supported = yes; then
20399                 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libecal-1.2"`
20400         else
20401                 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libecal-1.2"`
20402         fi
20403         # Put the nasty error message in config.log where it belongs
20404         echo "$ECAL_PKG_ERRORS" >&5
20405
20406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20407 $as_echo "no" >&6; }
20408                 ECALFOUND=no
20409 elif test $pkg_failed = untried; then
20410         ECALFOUND=no
20411 else
20412         ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
20413         ECAL_LIBS=$pkg_cv_ECAL_LIBS
20414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20415 $as_echo "yes" >&6; }
20416         ECALFOUND=yes
20417 fi
20418
20419 pkg_failed=no
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBOOK" >&5
20421 $as_echo_n "checking for EBOOK... " >&6; }
20422
20423 if test -n "$PKG_CONFIG"; then
20424     if test -n "$EBOOK_CFLAGS"; then
20425         pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
20426     else
20427         if test -n "$PKG_CONFIG" && \
20428     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2\""; } >&5
20429   ($PKG_CONFIG --exists --print-errors "libebook-1.2") 2>&5
20430   ac_status=$?
20431   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20432   test $ac_status = 0; }; then
20433   pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "libebook-1.2" 2>/dev/null`
20434 else
20435   pkg_failed=yes
20436 fi
20437     fi
20438 else
20439         pkg_failed=untried
20440 fi
20441 if test -n "$PKG_CONFIG"; then
20442     if test -n "$EBOOK_LIBS"; then
20443         pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
20444     else
20445         if test -n "$PKG_CONFIG" && \
20446     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2\""; } >&5
20447   ($PKG_CONFIG --exists --print-errors "libebook-1.2") 2>&5
20448   ac_status=$?
20449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20450   test $ac_status = 0; }; then
20451   pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "libebook-1.2" 2>/dev/null`
20452 else
20453   pkg_failed=yes
20454 fi
20455     fi
20456 else
20457         pkg_failed=untried
20458 fi
20459
20460
20461
20462 if test $pkg_failed = yes; then
20463
20464 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20465         _pkg_short_errors_supported=yes
20466 else
20467         _pkg_short_errors_supported=no
20468 fi
20469         if test $_pkg_short_errors_supported = yes; then
20470                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libebook-1.2"`
20471         else
20472                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libebook-1.2"`
20473         fi
20474         # Put the nasty error message in config.log where it belongs
20475         echo "$EBOOK_PKG_ERRORS" >&5
20476
20477         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20478 $as_echo "no" >&6; }
20479                 EBOOKFOUND=no
20480 elif test $pkg_failed = untried; then
20481         EBOOKFOUND=no
20482 else
20483         EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
20484         EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
20485         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20486 $as_echo "yes" >&6; }
20487         EBOOKFOUND=yes
20488 fi
20489
20490
20491 pkg_failed=no
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBOOK_VERSION" >&5
20493 $as_echo_n "checking for EBOOK_VERSION... " >&6; }
20494
20495 if test -n "$PKG_CONFIG"; then
20496     if test -n "$EBOOK_VERSION_CFLAGS"; then
20497         pkg_cv_EBOOK_VERSION_CFLAGS="$EBOOK_VERSION_CFLAGS"
20498     else
20499         if test -n "$PKG_CONFIG" && \
20500     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2 >= 3.3\""; } >&5
20501   ($PKG_CONFIG --exists --print-errors "libebook-1.2 >= 3.3") 2>&5
20502   ac_status=$?
20503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20504   test $ac_status = 0; }; then
20505   pkg_cv_EBOOK_VERSION_CFLAGS=`$PKG_CONFIG --cflags "libebook-1.2 >= 3.3" 2>/dev/null`
20506 else
20507   pkg_failed=yes
20508 fi
20509     fi
20510 else
20511         pkg_failed=untried
20512 fi
20513 if test -n "$PKG_CONFIG"; then
20514     if test -n "$EBOOK_VERSION_LIBS"; then
20515         pkg_cv_EBOOK_VERSION_LIBS="$EBOOK_VERSION_LIBS"
20516     else
20517         if test -n "$PKG_CONFIG" && \
20518     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2 >= 3.3\""; } >&5
20519   ($PKG_CONFIG --exists --print-errors "libebook-1.2 >= 3.3") 2>&5
20520   ac_status=$?
20521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20522   test $ac_status = 0; }; then
20523   pkg_cv_EBOOK_VERSION_LIBS=`$PKG_CONFIG --libs "libebook-1.2 >= 3.3" 2>/dev/null`
20524 else
20525   pkg_failed=yes
20526 fi
20527     fi
20528 else
20529         pkg_failed=untried
20530 fi
20531
20532
20533
20534 if test $pkg_failed = yes; then
20535
20536 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20537         _pkg_short_errors_supported=yes
20538 else
20539         _pkg_short_errors_supported=no
20540 fi
20541         if test $_pkg_short_errors_supported = yes; then
20542                 EBOOK_VERSION_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libebook-1.2 >= 3.3"`
20543         else
20544                 EBOOK_VERSION_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libebook-1.2 >= 3.3"`
20545         fi
20546         # Put the nasty error message in config.log where it belongs
20547         echo "$EBOOK_VERSION_PKG_ERRORS" >&5
20548
20549         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20550 $as_echo "no" >&6; }
20551                 true
20552 elif test $pkg_failed = untried; then
20553         true
20554 else
20555         EBOOK_VERSION_CFLAGS=$pkg_cv_EBOOK_VERSION_CFLAGS
20556         EBOOK_VERSION_LIBS=$pkg_cv_EBOOK_VERSION_LIBS
20557         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20558 $as_echo "yes" >&6; }
20559
20560 $as_echo "#define HAVE_E_CONTACT_INLINE_LOCAL_PHOTOS 1" >>confdefs.h
20561
20562 fi
20563
20564
20565           # Check whether --enable-ebook was given.
20566 if test "${enable_ebook+set}" = set; then :
20567   enableval=$enable_ebook; enable_ebook="$enableval"
20568 else
20569   test "$EBOOKFOUND" = "yes" && enable_ebook="yes" ||
20570                        as_fn_error "libebook not found. Use --disable-ebook to compile without or install the necessary development files." "$LINENO" 5
20571
20572 fi
20573
20574           BACKENDS="$BACKENDS ebook"
20575           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_EBOOK"
20576           for source in evolution
20577           do
20578             SYNCSOURCES="$SYNCSOURCES src/backends/evolution/syncebook.la"
20579           done
20580
20581
20582
20583           # Check whether --enable-ecal was given.
20584 if test "${enable_ecal+set}" = set; then :
20585   enableval=$enable_ecal; enable_ecal="$enableval"
20586 else
20587   test "$ECALFOUND" = "yes" && enable_ecal="yes" ||
20588                        as_fn_error "libecal not found. Use --disable-ecal to compile without or install the necessary development files." "$LINENO" 5
20589
20590 fi
20591
20592           BACKENDS="$BACKENDS ecal"
20593           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_ECAL"
20594           for source in evolution
20595           do
20596             SYNCSOURCES="$SYNCSOURCES src/backends/evolution/syncecal.la"
20597           done
20598
20599
20600
20601 # Check whether --enable-eds-client-api was given.
20602 if test "${enable_eds_client_api+set}" = set; then :
20603   enableval=$enable_eds_client_api; enable_eds_client_api="$enableval"
20604 else
20605   enable_eds_client_api="no"
20606 fi
20607
20608
20609 enable_evo="no"
20610 if test "$enable_ebook" = "yes"; then
20611         test "x${EBOOKFOUND}" = "xyes" || as_fn_error "--enable-ebook requires pkg-config information for libebook, which was not found" "$LINENO" 5
20612
20613 $as_echo "#define ENABLE_EBOOK 1" >>confdefs.h
20614
20615         if test "$enable_eds_client_api" = "yes"; then
20616
20617 $as_echo "#define USE_EBOOK_CLIENT 1" >>confdefs.h
20618
20619         fi
20620         enable_evo="yes"
20621 else
20622         EBOOK_CFLAGS=
20623         EBOOK_LIBS=
20624 fi
20625
20626  if test "$enable_ecal" = "yes"; then
20627   ENABLE_ECAL_TRUE=
20628   ENABLE_ECAL_FALSE='#'
20629 else
20630   ENABLE_ECAL_TRUE='#'
20631   ENABLE_ECAL_FALSE=
20632 fi
20633
20634 if test "$enable_ecal" = "yes"; then
20635         need_ical="yes"
20636         test "x${ECALFOUND}" = "xyes" || as_fn_error "--enable-ecal requires pkg-config information for libecal, which was not found\"" "$LINENO" 5
20637
20638 $as_echo "#define ENABLE_ECAL 1" >>confdefs.h
20639
20640         if test "$enable_eds_client_api" = "yes"; then
20641
20642 $as_echo "#define USE_ECAL_CLIENT 1" >>confdefs.h
20643
20644         fi
20645         enable_evo="yes"
20646 else
20647         ECAL_CFLAGS=
20648         ECAL_LIBS=
20649 fi
20650
20651 if test "$enable_evo" = "yes"; then
20652         need_glib="yes"
20653         if test "$EDSFOUND" = "yes"; then
20654
20655 $as_echo "#define HAVE_EDS 1" >>confdefs.h
20656
20657         else
20658                 as_fn_error "$evomissing" "$LINENO" 5
20659         fi
20660 else
20661         EPACKAGE_CFLAGS=
20662         EPACKAGE_LIBS=
20663 fi
20664
20665 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EPACKAGE_CFLAGS $ECAL_CFLAGS $EBOOK_CFLAGS"
20666 # ^^^^^^^^^^^^^^ src/backends/evolution/configure-sub.in ^^^^^^^^^^^^^^
20667
20668 # vvvvvvvvvvvvvv src/backends/file/configure-sub.in vvvvvvvvvvvvvv
20669
20670
20671 FILE_CFLAGS=
20672 FILE_LIBS=
20673
20674
20675
20676 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $FILE_CFLAGS"
20677
20678
20679           # Check whether --enable-file was given.
20680 if test "${enable_file+set}" = set; then :
20681   enableval=$enable_file; enable_file="$enableval"
20682 else
20683   enable_file="yes"
20684
20685 fi
20686
20687           BACKENDS="$BACKENDS file"
20688           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_FILE"
20689           for source in file
20690           do
20691             SYNCSOURCES="$SYNCSOURCES src/backends/file/syncfile.la"
20692           done
20693
20694
20695
20696 if test "$enable_file" = "yes"; then
20697
20698 $as_echo "#define ENABLE_FILE 1" >>confdefs.h
20699
20700 fi
20701 # ^^^^^^^^^^^^^^ src/backends/file/configure-sub.in ^^^^^^^^^^^^^^
20702
20703 # vvvvvvvvvvvvvv src/backends/gnome/configure-sub.in vvvvvvvvvvvvvv
20704
20705 pkg_failed=no
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KEYRING" >&5
20707 $as_echo_n "checking for KEYRING... " >&6; }
20708
20709 if test -n "$PKG_CONFIG"; then
20710     if test -n "$KEYRING_CFLAGS"; then
20711         pkg_cv_KEYRING_CFLAGS="$KEYRING_CFLAGS"
20712     else
20713         if test -n "$PKG_CONFIG" && \
20714     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1\""; } >&5
20715   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1") 2>&5
20716   ac_status=$?
20717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20718   test $ac_status = 0; }; then
20719   pkg_cv_KEYRING_CFLAGS=`$PKG_CONFIG --cflags "gnome-keyring-1" 2>/dev/null`
20720 else
20721   pkg_failed=yes
20722 fi
20723     fi
20724 else
20725         pkg_failed=untried
20726 fi
20727 if test -n "$PKG_CONFIG"; then
20728     if test -n "$KEYRING_LIBS"; then
20729         pkg_cv_KEYRING_LIBS="$KEYRING_LIBS"
20730     else
20731         if test -n "$PKG_CONFIG" && \
20732     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1\""; } >&5
20733   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1") 2>&5
20734   ac_status=$?
20735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20736   test $ac_status = 0; }; then
20737   pkg_cv_KEYRING_LIBS=`$PKG_CONFIG --libs "gnome-keyring-1" 2>/dev/null`
20738 else
20739   pkg_failed=yes
20740 fi
20741     fi
20742 else
20743         pkg_failed=untried
20744 fi
20745
20746
20747
20748 if test $pkg_failed = yes; then
20749
20750 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20751         _pkg_short_errors_supported=yes
20752 else
20753         _pkg_short_errors_supported=no
20754 fi
20755         if test $_pkg_short_errors_supported = yes; then
20756                 KEYRING_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-keyring-1"`
20757         else
20758                 KEYRING_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-keyring-1"`
20759         fi
20760         # Put the nasty error message in config.log where it belongs
20761         echo "$KEYRING_PKG_ERRORS" >&5
20762
20763         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20764 $as_echo "no" >&6; }
20765                 HAVE_KEYRING=no
20766 elif test $pkg_failed = untried; then
20767         HAVE_KEYRING=no
20768 else
20769         KEYRING_CFLAGS=$pkg_cv_KEYRING_CFLAGS
20770         KEYRING_LIBS=$pkg_cv_KEYRING_LIBS
20771         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20772 $as_echo "yes" >&6; }
20773         HAVE_KEYRING=yes
20774 fi
20775 # Check whether --enable-gnome-keyring was given.
20776 if test "${enable_gnome_keyring+set}" = set; then :
20777   enableval=$enable_gnome_keyring; enable_gnome_keyring="$enableval"
20778                test "$enable_gnome_keyring" = "yes" || test "$enable_gnome_keyring" = "no" || as_fn_error "invalid value for --enable-gnome-keyring: $enable_gnome_keyring" "$LINENO" 5
20779                test "$enable_gnome_keyring" = "no" || test "$HAVE_KEYRING" = "yes" || as_fn_error "gnome-keyring-1 pkg not found, needed for --enable-gnome-keyring" "$LINENO" 5
20780 else
20781   enable_gnome_keyring="$HAVE_KEYRING"
20782 fi
20783
20784 if test $enable_gnome_keyring = "yes"; then
20785
20786 $as_echo "#define USE_GNOME_KEYRING 1" >>confdefs.h
20787
20788
20789 pkg_failed=no
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KEYRING_2_20" >&5
20791 $as_echo_n "checking for KEYRING_2_20... " >&6; }
20792
20793 if test -n "$PKG_CONFIG"; then
20794     if test -n "$KEYRING_2_20_CFLAGS"; then
20795         pkg_cv_KEYRING_2_20_CFLAGS="$KEYRING_2_20_CFLAGS"
20796     else
20797         if test -n "$PKG_CONFIG" && \
20798     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1 >= 2.20 \""; } >&5
20799   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1 >= 2.20 ") 2>&5
20800   ac_status=$?
20801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20802   test $ac_status = 0; }; then
20803   pkg_cv_KEYRING_2_20_CFLAGS=`$PKG_CONFIG --cflags "gnome-keyring-1 >= 2.20 " 2>/dev/null`
20804 else
20805   pkg_failed=yes
20806 fi
20807     fi
20808 else
20809         pkg_failed=untried
20810 fi
20811 if test -n "$PKG_CONFIG"; then
20812     if test -n "$KEYRING_2_20_LIBS"; then
20813         pkg_cv_KEYRING_2_20_LIBS="$KEYRING_2_20_LIBS"
20814     else
20815         if test -n "$PKG_CONFIG" && \
20816     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1 >= 2.20 \""; } >&5
20817   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1 >= 2.20 ") 2>&5
20818   ac_status=$?
20819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20820   test $ac_status = 0; }; then
20821   pkg_cv_KEYRING_2_20_LIBS=`$PKG_CONFIG --libs "gnome-keyring-1 >= 2.20 " 2>/dev/null`
20822 else
20823   pkg_failed=yes
20824 fi
20825     fi
20826 else
20827         pkg_failed=untried
20828 fi
20829
20830
20831
20832 if test $pkg_failed = yes; then
20833
20834 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20835         _pkg_short_errors_supported=yes
20836 else
20837         _pkg_short_errors_supported=no
20838 fi
20839         if test $_pkg_short_errors_supported = yes; then
20840                 KEYRING_2_20_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-keyring-1 >= 2.20 "`
20841         else
20842                 KEYRING_2_20_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-keyring-1 >= 2.20 "`
20843         fi
20844         # Put the nasty error message in config.log where it belongs
20845         echo "$KEYRING_2_20_PKG_ERRORS" >&5
20846
20847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20848 $as_echo "no" >&6; }
20849                 true
20850 elif test $pkg_failed = untried; then
20851         true
20852 else
20853         KEYRING_2_20_CFLAGS=$pkg_cv_KEYRING_2_20_CFLAGS
20854         KEYRING_2_20_LIBS=$pkg_cv_KEYRING_2_20_LIBS
20855         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20856 $as_echo "yes" >&6; }
20857
20858 $as_echo "#define GNOME_KEYRING_220 1" >>confdefs.h
20859
20860 fi
20861     # link into static executables, similar to a SyncSource
20862     SYNCSOURCES="$SYNCSOURCES src/backends/gnome/platformgnome.la"
20863 fi
20864 # ^^^^^^^^^^^^^^ src/backends/gnome/configure-sub.in ^^^^^^^^^^^^^^
20865
20866 # vvvvvvvvvvvvvv src/backends/kcalextended/configure-sub.in vvvvvvvvvvvvvv
20867
20868 # BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS ..."
20869
20870
20871           # Check whether --enable-kcalextended was given.
20872 if test "${enable_kcalextended+set}" = set; then :
20873   enableval=$enable_kcalextended; enable_kcalextended="$enableval"
20874 else
20875   enable_kcalextended="no"
20876
20877 fi
20878
20879           BACKENDS="$BACKENDS kcalextended"
20880           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_KCALEXTENDED"
20881           for source in kcalextended
20882           do
20883             SYNCSOURCES="$SYNCSOURCES src/backends/kcalextended/synckcalextended.la"
20884           done
20885
20886
20887
20888 if test "$enable_kcalextended" = "yes"; then
20889
20890 $as_echo "#define ENABLE_KCALEXTENDED 1" >>confdefs.h
20891
20892
20893 pkg_failed=no
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KCALEXTENDED" >&5
20895 $as_echo_n "checking for KCALEXTENDED... " >&6; }
20896
20897 if test -n "$PKG_CONFIG"; then
20898     if test -n "$KCALEXTENDED_CFLAGS"; then
20899         pkg_cv_KCALEXTENDED_CFLAGS="$KCALEXTENDED_CFLAGS"
20900     else
20901         if test -n "$PKG_CONFIG" && \
20902     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmkcal libkcalcoren\""; } >&5
20903   ($PKG_CONFIG --exists --print-errors "libmkcal libkcalcoren") 2>&5
20904   ac_status=$?
20905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20906   test $ac_status = 0; }; then
20907   pkg_cv_KCALEXTENDED_CFLAGS=`$PKG_CONFIG --cflags "libmkcal libkcalcoren" 2>/dev/null`
20908 else
20909   pkg_failed=yes
20910 fi
20911     fi
20912 else
20913         pkg_failed=untried
20914 fi
20915 if test -n "$PKG_CONFIG"; then
20916     if test -n "$KCALEXTENDED_LIBS"; then
20917         pkg_cv_KCALEXTENDED_LIBS="$KCALEXTENDED_LIBS"
20918     else
20919         if test -n "$PKG_CONFIG" && \
20920     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmkcal libkcalcoren\""; } >&5
20921   ($PKG_CONFIG --exists --print-errors "libmkcal libkcalcoren") 2>&5
20922   ac_status=$?
20923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20924   test $ac_status = 0; }; then
20925   pkg_cv_KCALEXTENDED_LIBS=`$PKG_CONFIG --libs "libmkcal libkcalcoren" 2>/dev/null`
20926 else
20927   pkg_failed=yes
20928 fi
20929     fi
20930 else
20931         pkg_failed=untried
20932 fi
20933
20934
20935
20936 if test $pkg_failed = yes; then
20937
20938 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20939         _pkg_short_errors_supported=yes
20940 else
20941         _pkg_short_errors_supported=no
20942 fi
20943         if test $_pkg_short_errors_supported = yes; then
20944                 KCALEXTENDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libmkcal libkcalcoren"`
20945         else
20946                 KCALEXTENDED_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmkcal libkcalcoren"`
20947         fi
20948         # Put the nasty error message in config.log where it belongs
20949         echo "$KCALEXTENDED_PKG_ERRORS" >&5
20950
20951         as_fn_error "Package requirements (libmkcal libkcalcoren) were not met:
20952
20953 $KCALEXTENDED_PKG_ERRORS
20954
20955 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20956 installed software in a non-standard prefix.
20957
20958 Alternatively, you may set the environment variables KCALEXTENDED_CFLAGS
20959 and KCALEXTENDED_LIBS to avoid the need to call pkg-config.
20960 See the pkg-config man page for more details.
20961 " "$LINENO" 5
20962 elif test $pkg_failed = untried; then
20963         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20965 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
20966 is in your PATH or set the PKG_CONFIG environment variable to the full
20967 path to pkg-config.
20968
20969 Alternatively, you may set the environment variables KCALEXTENDED_CFLAGS
20970 and KCALEXTENDED_LIBS to avoid the need to call pkg-config.
20971 See the pkg-config man page for more details.
20972
20973 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20974 See \`config.log' for more details." "$LINENO" 5; }
20975 else
20976         KCALEXTENDED_CFLAGS=$pkg_cv_KCALEXTENDED_CFLAGS
20977         KCALEXTENDED_LIBS=$pkg_cv_KCALEXTENDED_LIBS
20978         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20979 $as_echo "yes" >&6; }
20980         :
20981 fi
20982 fi
20983 # ^^^^^^^^^^^^^^ src/backends/kcalextended/configure-sub.in ^^^^^^^^^^^^^^
20984
20985 # vvvvvvvvvvvvvv src/backends/kde/configure-sub.in vvvvvvvvvvvvvv
20986 # first check for qmake-qt4, because qmake may point to qmake-qt3.
20987 for ac_prog in qmake-qt4 qmake
20988 do
20989   # Extract the first word of "$ac_prog", so it can be a program name with args.
20990 set dummy $ac_prog; ac_word=$2
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20992 $as_echo_n "checking for $ac_word... " >&6; }
20993 if test "${ac_cv_prog_QMAKE+set}" = set; then :
20994   $as_echo_n "(cached) " >&6
20995 else
20996   if test -n "$QMAKE"; then
20997   ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
20998 else
20999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21000 for as_dir in $PATH
21001 do
21002   IFS=$as_save_IFS
21003   test -z "$as_dir" && as_dir=.
21004     for ac_exec_ext in '' $ac_executable_extensions; do
21005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21006     ac_cv_prog_QMAKE="$ac_prog"
21007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21008     break 2
21009   fi
21010 done
21011   done
21012 IFS=$as_save_IFS
21013
21014 fi
21015 fi
21016 QMAKE=$ac_cv_prog_QMAKE
21017 if test -n "$QMAKE"; then
21018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
21019 $as_echo "$QMAKE" >&6; }
21020 else
21021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21022 $as_echo "no" >&6; }
21023 fi
21024
21025
21026   test -n "$QMAKE" && break
21027 done
21028
21029
21030 if test "x$QMAKE" != 'x'
21031 then
21032   # Extract the first word of "kde4-config", so it can be a program name with args.
21033 set dummy kde4-config; ac_word=$2
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21035 $as_echo_n "checking for $ac_word... " >&6; }
21036 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
21037   $as_echo_n "(cached) " >&6
21038 else
21039   case $KDE4_CONFIG in
21040   [\\/]* | ?:[\\/]*)
21041   ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
21042   ;;
21043   *)
21044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21045 for as_dir in $PATH
21046 do
21047   IFS=$as_save_IFS
21048   test -z "$as_dir" && as_dir=.
21049     for ac_exec_ext in '' $ac_executable_extensions; do
21050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21051     ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21053     break 2
21054   fi
21055 done
21056   done
21057 IFS=$as_save_IFS
21058
21059   test -z "$ac_cv_path_KDE4_CONFIG" && ac_cv_path_KDE4_CONFIG="no"
21060   ;;
21061 esac
21062 fi
21063 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
21064 if test -n "$KDE4_CONFIG"; then
21065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
21066 $as_echo "$KDE4_CONFIG" >&6; }
21067 else
21068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21069 $as_echo "no" >&6; }
21070 fi
21071
21072
21073
21074   if test "x$KDE4_CONFIG" != 'xno'
21075   then
21076     KDEKWALLETFOUND=yes
21077     if ! test "$KDE_KWALLET_CFLAGS"; then
21078       KDE_KWALLET_CFLAGS="-I`$KDE4_CONFIG --path include` -I`$KDE4_CONFIG --path include`/KDE `pkg-config --cflags QtDBus QtCore`"
21079     fi
21080     if ! test "$KDE_KWALLET_LIBS"; then
21081       KDE_KWALLET_LIBS="-lkdeui -lkdecore -L`kde4-config --install lib` `pkg-config --libs QtDBus QtCore`"
21082     fi
21083     ac_ext=cpp
21084 ac_cpp='$CXXCPP $CPPFLAGS'
21085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21088
21089     old_CPPFLAGS="$CPPFLAGS"
21090     CPPFLAGS="$CPPFLAGS $KDE_KWALLET_CFLAGS"
21091     for ac_header in kwallet.h
21092 do :
21093   ac_fn_cxx_check_header_mongrel "$LINENO" "kwallet.h" "ac_cv_header_kwallet_h" "$ac_includes_default"
21094 if test "x$ac_cv_header_kwallet_h" = x""yes; then :
21095   cat >>confdefs.h <<_ACEOF
21096 #define HAVE_KWALLET_H 1
21097 _ACEOF
21098
21099 else
21100   KDEKWALLETFOUND=no
21101 fi
21102
21103 done
21104
21105     CPPFLAGS="$old_CPPFLAGS"
21106     ac_ext=c
21107 ac_cpp='$CPP $CPPFLAGS'
21108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21111
21112   else
21113     KDEKWALLETFOUND=no
21114   fi
21115 else
21116   KDEKWALLETFOUND=no
21117 fi
21118
21119 # In contrast to the GNOME KEYRING, the KWallet is
21120 # currently considered optional. "configure" will never enable
21121 # by default, because that is a change that might not be
21122 # expected by traditional users.
21123 # Check whether --enable-kwallet was given.
21124 if test "${enable_kwallet+set}" = set; then :
21125   enableval=$enable_kwallet; use_kde_kwallet="$enableval"
21126               test $KDEKWALLETFOUND = "yes" || test "$use_kde_kwallet" = "no" || as_fn_error "kwallet.pc not found. Install it to compile with the KWallet enabled." "$LINENO" 5
21127 else
21128   use_kde_kwallet="no"
21129 fi
21130
21131
21132 if test "$use_kde_kwallet" = "yes"; then
21133     # conditional compilation in preprocessor
21134
21135 $as_echo "#define USE_KDE_KWALLET 1" >>confdefs.h
21136
21137     # link into static executables, similar to a SyncSource
21138     SYNCSOURCES="$SYNCSOURCES src/backends/kde/platformkde.la"
21139     # TODO: KWallet needs Qt. Enable the Qt check in
21140     # configure-post.in, otherwise it fails to compiler
21141     # when none of the backends ask for Qt.
21142 else
21143     # avoid unneeded dependencies on KWallet
21144     KDE_KWALLET_CFLAGS=
21145     KDE_KWALLET_LIBS=
21146 fi
21147
21148
21149
21150 # conditional compilation in make
21151  if test "$use_kde_kwallet" = "yes"; then
21152   USE_KDE_KWALLET_TRUE=
21153   USE_KDE_KWALLET_FALSE='#'
21154 else
21155   USE_KDE_KWALLET_TRUE='#'
21156   USE_KDE_KWALLET_FALSE=
21157 fi
21158
21159 # ^^^^^^^^^^^^^^ src/backends/kde/configure-sub.in ^^^^^^^^^^^^^^
21160
21161 # vvvvvvvvvvvvvv src/backends/maemo/configure-sub.in vvvvvvvvvvvvvv
21162
21163
21164 pkg_failed=no
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCALB" >&5
21166 $as_echo_n "checking for MCALB... " >&6; }
21167
21168 if test -n "$PKG_CONFIG"; then
21169     if test -n "$MCALB_CFLAGS"; then
21170         pkg_cv_MCALB_CFLAGS="$MCALB_CFLAGS"
21171     else
21172         if test -n "$PKG_CONFIG" && \
21173     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"calendar-backend\""; } >&5
21174   ($PKG_CONFIG --exists --print-errors "calendar-backend") 2>&5
21175   ac_status=$?
21176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21177   test $ac_status = 0; }; then
21178   pkg_cv_MCALB_CFLAGS=`$PKG_CONFIG --cflags "calendar-backend" 2>/dev/null`
21179 else
21180   pkg_failed=yes
21181 fi
21182     fi
21183 else
21184         pkg_failed=untried
21185 fi
21186 if test -n "$PKG_CONFIG"; then
21187     if test -n "$MCALB_LIBS"; then
21188         pkg_cv_MCALB_LIBS="$MCALB_LIBS"
21189     else
21190         if test -n "$PKG_CONFIG" && \
21191     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"calendar-backend\""; } >&5
21192   ($PKG_CONFIG --exists --print-errors "calendar-backend") 2>&5
21193   ac_status=$?
21194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21195   test $ac_status = 0; }; then
21196   pkg_cv_MCALB_LIBS=`$PKG_CONFIG --libs "calendar-backend" 2>/dev/null`
21197 else
21198   pkg_failed=yes
21199 fi
21200     fi
21201 else
21202         pkg_failed=untried
21203 fi
21204
21205
21206
21207 if test $pkg_failed = yes; then
21208
21209 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21210         _pkg_short_errors_supported=yes
21211 else
21212         _pkg_short_errors_supported=no
21213 fi
21214         if test $_pkg_short_errors_supported = yes; then
21215                 MCALB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "calendar-backend"`
21216         else
21217                 MCALB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "calendar-backend"`
21218         fi
21219         # Put the nasty error message in config.log where it belongs
21220         echo "$MCALB_PKG_ERRORS" >&5
21221
21222         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21223 $as_echo "no" >&6; }
21224                 MCALBFOUND=no
21225 elif test $pkg_failed = untried; then
21226         MCALBFOUND=no
21227 else
21228         MCALB_CFLAGS=$pkg_cv_MCALB_CFLAGS
21229         MCALB_LIBS=$pkg_cv_MCALB_LIBS
21230         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21231 $as_echo "yes" >&6; }
21232         MCALBFOUND=yes
21233 fi
21234
21235
21236 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $MCALB_CFLAGS"
21237
21238
21239           # Check whether --enable-maemocal was given.
21240 if test "${enable_maemocal+set}" = set; then :
21241   enableval=$enable_maemocal; enable_maemocal="$enableval"
21242 else
21243   enable_maemocal="no"
21244
21245 fi
21246
21247           BACKENDS="$BACKENDS maemocal"
21248           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_MAEMOCAL"
21249           for source in maemo
21250           do
21251             SYNCSOURCES="$SYNCSOURCES src/backends/maemo/syncmaemocal.la"
21252           done
21253
21254
21255
21256 if test "$enable_maemocal" = "yes"; then
21257         test "x${MCALBFOUND}" = "xyes" || as_fn_error "--enable-maemocal requires pkg-config information for calendar-backend, which was not found" "$LINENO" 5
21258
21259 $as_echo "#define ENABLE_MAEMO_CALENDAR 1" >>confdefs.h
21260
21261 fi
21262 # ^^^^^^^^^^^^^^ src/backends/maemo/configure-sub.in ^^^^^^^^^^^^^^
21263
21264 # vvvvvvvvvvvvvv src/backends/qtcontacts/configure-sub.in vvvvvvvvvvvvvv
21265
21266 # BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS ..."
21267
21268
21269           # Check whether --enable-qtcontacts was given.
21270 if test "${enable_qtcontacts+set}" = set; then :
21271   enableval=$enable_qtcontacts; enable_qtcontacts="$enableval"
21272 else
21273   enable_qtcontacts="no"
21274
21275 fi
21276
21277           BACKENDS="$BACKENDS qtcontacts"
21278           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_QTCONTACTS"
21279           for source in qtcontacts
21280           do
21281             SYNCSOURCES="$SYNCSOURCES src/backends/qtcontacts/syncqtcontacts.la"
21282           done
21283
21284
21285
21286 if test "$enable_qtcontacts" = "yes"; then
21287
21288 $as_echo "#define ENABLE_QTCONTACTS 1" >>confdefs.h
21289
21290         # AC_WITH_QT() will be called in configure-post if need_qt_modules is not empty,
21291         # setting QT_* flags.
21292         need_qt_modules="$need_qt_modules +gui" # GUI needed for QVersit
21293         qt_config="$qt_config +mobility"
21294         qt_misc="$qt_misc
21295 MOBILITY += contacts versit"
21296 fi
21297
21298 # ^^^^^^^^^^^^^^ src/backends/qtcontacts/configure-sub.in ^^^^^^^^^^^^^^
21299
21300 # vvvvvvvvvvvvvv src/backends/sqlite/configure-sub.in vvvvvvvvvvvvvv
21301
21302
21303 pkg_failed=no
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
21305 $as_echo_n "checking for SQLITE... " >&6; }
21306
21307 if test -n "$PKG_CONFIG"; then
21308     if test -n "$SQLITE_CFLAGS"; then
21309         pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
21310     else
21311         if test -n "$PKG_CONFIG" && \
21312     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
21313   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
21314   ac_status=$?
21315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21316   test $ac_status = 0; }; then
21317   pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
21318 else
21319   pkg_failed=yes
21320 fi
21321     fi
21322 else
21323         pkg_failed=untried
21324 fi
21325 if test -n "$PKG_CONFIG"; then
21326     if test -n "$SQLITE_LIBS"; then
21327         pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
21328     else
21329         if test -n "$PKG_CONFIG" && \
21330     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
21331   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
21332   ac_status=$?
21333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21334   test $ac_status = 0; }; then
21335   pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
21336 else
21337   pkg_failed=yes
21338 fi
21339     fi
21340 else
21341         pkg_failed=untried
21342 fi
21343
21344
21345
21346 if test $pkg_failed = yes; then
21347
21348 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21349         _pkg_short_errors_supported=yes
21350 else
21351         _pkg_short_errors_supported=no
21352 fi
21353         if test $_pkg_short_errors_supported = yes; then
21354                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
21355         else
21356                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
21357         fi
21358         # Put the nasty error message in config.log where it belongs
21359         echo "$SQLITE_PKG_ERRORS" >&5
21360
21361         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21362 $as_echo "no" >&6; }
21363                 SQLITEFOUND=no
21364 elif test $pkg_failed = untried; then
21365         SQLITEFOUND=no
21366 else
21367         SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
21368         SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
21369         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21370 $as_echo "yes" >&6; }
21371         SQLITEFOUND=yes
21372 fi
21373
21374
21375 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $SQLITE_CFLAGS"
21376
21377
21378           # Check whether --enable-sqlite was given.
21379 if test "${enable_sqlite+set}" = set; then :
21380   enableval=$enable_sqlite; enable_sqlite="$enableval"
21381 else
21382   enable_sqlite="no"
21383
21384 fi
21385
21386           BACKENDS="$BACKENDS sqlite"
21387           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_SQLITE"
21388           for source in sqlite
21389           do
21390             SYNCSOURCES="$SYNCSOURCES src/backends/sqlite/syncsqlite.la"
21391           done
21392
21393
21394
21395 if test "$enable_sqlite" = "yes"; then
21396         test "x${SQLITEFOUND}" = "xyes" || as_fn_error "--enable-sqlite requires pkg-config information for sqlite3, which was not found" "$LINENO" 5
21397
21398 $as_echo "#define ENABLE_SQLITE 1" >>confdefs.h
21399
21400 else
21401         # avoid linking against it if not needed
21402         SQLITE_CFLAGS=
21403         SQLITE_LIBS=
21404 fi
21405 # ^^^^^^^^^^^^^^ src/backends/sqlite/configure-sub.in ^^^^^^^^^^^^^^
21406
21407 # vvvvvvvvvvvvvv src/backends/webdav/configure-sub.in vvvvvvvvvvvvvv
21408
21409
21410           # Check whether --enable-dav was given.
21411 if test "${enable_dav+set}" = set; then :
21412   enableval=$enable_dav; enable_dav="$enableval"
21413 else
21414   enable_dav="no"
21415
21416 fi
21417
21418           BACKENDS="$BACKENDS dav"
21419           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_DAV"
21420           for source in webdav
21421           do
21422             SYNCSOURCES="$SYNCSOURCES src/backends/webdav/syncdav.la"
21423           done
21424
21425
21426
21427 if test "$enable_dav" = "yes"; then
21428         need_ical="yes"
21429
21430 pkg_failed=no
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEON" >&5
21432 $as_echo_n "checking for NEON... " >&6; }
21433
21434 if test -n "$PKG_CONFIG"; then
21435     if test -n "$NEON_CFLAGS"; then
21436         pkg_cv_NEON_CFLAGS="$NEON_CFLAGS"
21437     else
21438         if test -n "$PKG_CONFIG" && \
21439     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.29\""; } >&5
21440   ($PKG_CONFIG --exists --print-errors "neon >= 0.29") 2>&5
21441   ac_status=$?
21442   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21443   test $ac_status = 0; }; then
21444   pkg_cv_NEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.29" 2>/dev/null`
21445 else
21446   pkg_failed=yes
21447 fi
21448     fi
21449 else
21450         pkg_failed=untried
21451 fi
21452 if test -n "$PKG_CONFIG"; then
21453     if test -n "$NEON_LIBS"; then
21454         pkg_cv_NEON_LIBS="$NEON_LIBS"
21455     else
21456         if test -n "$PKG_CONFIG" && \
21457     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.29\""; } >&5
21458   ($PKG_CONFIG --exists --print-errors "neon >= 0.29") 2>&5
21459   ac_status=$?
21460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21461   test $ac_status = 0; }; then
21462   pkg_cv_NEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.29" 2>/dev/null`
21463 else
21464   pkg_failed=yes
21465 fi
21466     fi
21467 else
21468         pkg_failed=untried
21469 fi
21470
21471
21472
21473 if test $pkg_failed = yes; then
21474
21475 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21476         _pkg_short_errors_supported=yes
21477 else
21478         _pkg_short_errors_supported=no
21479 fi
21480         if test $_pkg_short_errors_supported = yes; then
21481                 NEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "neon >= 0.29"`
21482         else
21483                 NEON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "neon >= 0.29"`
21484         fi
21485         # Put the nasty error message in config.log where it belongs
21486         echo "$NEON_PKG_ERRORS" >&5
21487
21488         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21489 $as_echo "no" >&6; }
21490
21491 pkg_failed=no
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEON" >&5
21493 $as_echo_n "checking for NEON... " >&6; }
21494
21495 if test -n "$PKG_CONFIG"; then
21496     if test -n "$NEON_CFLAGS"; then
21497         pkg_cv_NEON_CFLAGS="$NEON_CFLAGS"
21498     else
21499         if test -n "$PKG_CONFIG" && \
21500     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27\""; } >&5
21501   ($PKG_CONFIG --exists --print-errors "neon >= 0.27") 2>&5
21502   ac_status=$?
21503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21504   test $ac_status = 0; }; then
21505   pkg_cv_NEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.27" 2>/dev/null`
21506 else
21507   pkg_failed=yes
21508 fi
21509     fi
21510 else
21511         pkg_failed=untried
21512 fi
21513 if test -n "$PKG_CONFIG"; then
21514     if test -n "$NEON_LIBS"; then
21515         pkg_cv_NEON_LIBS="$NEON_LIBS"
21516     else
21517         if test -n "$PKG_CONFIG" && \
21518     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27\""; } >&5
21519   ($PKG_CONFIG --exists --print-errors "neon >= 0.27") 2>&5
21520   ac_status=$?
21521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21522   test $ac_status = 0; }; then
21523   pkg_cv_NEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.27" 2>/dev/null`
21524 else
21525   pkg_failed=yes
21526 fi
21527     fi
21528 else
21529         pkg_failed=untried
21530 fi
21531
21532
21533
21534 if test $pkg_failed = yes; then
21535
21536 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21537         _pkg_short_errors_supported=yes
21538 else
21539         _pkg_short_errors_supported=no
21540 fi
21541         if test $_pkg_short_errors_supported = yes; then
21542                 NEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "neon >= 0.27"`
21543         else
21544                 NEON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "neon >= 0.27"`
21545         fi
21546         # Put the nasty error message in config.log where it belongs
21547         echo "$NEON_PKG_ERRORS" >&5
21548
21549         as_fn_error "Package requirements (neon >= 0.27) were not met:
21550
21551 $NEON_PKG_ERRORS
21552
21553 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21554 installed software in a non-standard prefix.
21555
21556 Alternatively, you may set the environment variables NEON_CFLAGS
21557 and NEON_LIBS to avoid the need to call pkg-config.
21558 See the pkg-config man page for more details.
21559 " "$LINENO" 5
21560 elif test $pkg_failed = untried; then
21561         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21563 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
21564 is in your PATH or set the PKG_CONFIG environment variable to the full
21565 path to pkg-config.
21566
21567 Alternatively, you may set the environment variables NEON_CFLAGS
21568 and NEON_LIBS to avoid the need to call pkg-config.
21569 See the pkg-config man page for more details.
21570
21571 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21572 See \`config.log' for more details." "$LINENO" 5; }
21573 else
21574         NEON_CFLAGS=$pkg_cv_NEON_CFLAGS
21575         NEON_LIBS=$pkg_cv_NEON_LIBS
21576         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21577 $as_echo "yes" >&6; }
21578         :
21579 fi
21580 elif test $pkg_failed = untried; then
21581
21582 pkg_failed=no
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEON" >&5
21584 $as_echo_n "checking for NEON... " >&6; }
21585
21586 if test -n "$PKG_CONFIG"; then
21587     if test -n "$NEON_CFLAGS"; then
21588         pkg_cv_NEON_CFLAGS="$NEON_CFLAGS"
21589     else
21590         if test -n "$PKG_CONFIG" && \
21591     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27\""; } >&5
21592   ($PKG_CONFIG --exists --print-errors "neon >= 0.27") 2>&5
21593   ac_status=$?
21594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21595   test $ac_status = 0; }; then
21596   pkg_cv_NEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.27" 2>/dev/null`
21597 else
21598   pkg_failed=yes
21599 fi
21600     fi
21601 else
21602         pkg_failed=untried
21603 fi
21604 if test -n "$PKG_CONFIG"; then
21605     if test -n "$NEON_LIBS"; then
21606         pkg_cv_NEON_LIBS="$NEON_LIBS"
21607     else
21608         if test -n "$PKG_CONFIG" && \
21609     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27\""; } >&5
21610   ($PKG_CONFIG --exists --print-errors "neon >= 0.27") 2>&5
21611   ac_status=$?
21612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21613   test $ac_status = 0; }; then
21614   pkg_cv_NEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.27" 2>/dev/null`
21615 else
21616   pkg_failed=yes
21617 fi
21618     fi
21619 else
21620         pkg_failed=untried
21621 fi
21622
21623
21624
21625 if test $pkg_failed = yes; then
21626
21627 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21628         _pkg_short_errors_supported=yes
21629 else
21630         _pkg_short_errors_supported=no
21631 fi
21632         if test $_pkg_short_errors_supported = yes; then
21633                 NEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "neon >= 0.27"`
21634         else
21635                 NEON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "neon >= 0.27"`
21636         fi
21637         # Put the nasty error message in config.log where it belongs
21638         echo "$NEON_PKG_ERRORS" >&5
21639
21640         as_fn_error "Package requirements (neon >= 0.27) were not met:
21641
21642 $NEON_PKG_ERRORS
21643
21644 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21645 installed software in a non-standard prefix.
21646
21647 Alternatively, you may set the environment variables NEON_CFLAGS
21648 and NEON_LIBS to avoid the need to call pkg-config.
21649 See the pkg-config man page for more details.
21650 " "$LINENO" 5
21651 elif test $pkg_failed = untried; then
21652         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21654 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
21655 is in your PATH or set the PKG_CONFIG environment variable to the full
21656 path to pkg-config.
21657
21658 Alternatively, you may set the environment variables NEON_CFLAGS
21659 and NEON_LIBS to avoid the need to call pkg-config.
21660 See the pkg-config man page for more details.
21661
21662 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21663 See \`config.log' for more details." "$LINENO" 5; }
21664 else
21665         NEON_CFLAGS=$pkg_cv_NEON_CFLAGS
21666         NEON_LIBS=$pkg_cv_NEON_LIBS
21667         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21668 $as_echo "yes" >&6; }
21669         :
21670 fi
21671 else
21672         NEON_CFLAGS=$pkg_cv_NEON_CFLAGS
21673         NEON_LIBS=$pkg_cv_NEON_LIBS
21674         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21675 $as_echo "yes" >&6; }
21676
21677 $as_echo "#define HAVE_LIBNEON_SYSTEM_PROXY 1" >>confdefs.h
21678
21679
21680 $as_echo "#define HAVE_LIBNEON_OPTIONS 1" >>confdefs.h
21681
21682 fi
21683
21684 $as_echo "#define ENABLE_DAV 1" >>confdefs.h
21685
21686
21687 $as_echo "#define ENABLE_ICAL 1" >>confdefs.h
21688
21689         BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $NEON_CFLAGS"
21690 fi
21691
21692 # Check whether --enable-neon-compatibility was given.
21693 if test "${enable_neon_compatibility+set}" = set; then :
21694   enableval=$enable_neon_compatibility; enable_neon_compat="$enableval"
21695 else
21696   enable_neon_compat="no"
21697
21698 fi
21699
21700 if test "$enable_neon_compat" = "yes"; then
21701
21702 $as_echo "#define NEON_COMPATIBILITY 1" >>confdefs.h
21703
21704         NEON_LIBS="`echo $NEON_LIBS | sed -e 's/\(-lneon\(-gnutls\)*\|^ *libneon\(-gnutls\)*.la\)/-ldl/'`"
21705 fi
21706  if test "$enable_neon_compat" = "yes"; then
21707   NEON_COMPATIBILITY_TRUE=
21708   NEON_COMPATIBILITY_FALSE='#'
21709 else
21710   NEON_COMPATIBILITY_TRUE='#'
21711   NEON_COMPATIBILITY_FALSE=
21712 fi
21713
21714 # ^^^^^^^^^^^^^^ src/backends/webdav/configure-sub.in ^^^^^^^^^^^^^^
21715
21716 # vvvvvvvvvvvvvv src/backends/xmlrpc/configure-sub.in vvvvvvvvvvvvvv
21717
21718
21719
21720
21721           # Check whether --enable-xmlrpc was given.
21722 if test "${enable_xmlrpc+set}" = set; then :
21723   enableval=$enable_xmlrpc; enable_xmlrpc="$enableval"
21724 else
21725   enable_xmlrpc="no"
21726
21727 fi
21728
21729           BACKENDS="$BACKENDS xmlrpc"
21730           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_XMLRPC"
21731           for source in xmlrpc
21732           do
21733             SYNCSOURCES="$SYNCSOURCES src/backends/xmlrpc/syncxmlrpc.la"
21734           done
21735
21736
21737
21738 if test "$enable_xmlrpc" = "yes"; then
21739
21740         # Extract the first word of "xmlrpc-c-config", so it can be a program name with args.
21741 set dummy xmlrpc-c-config; ac_word=$2
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21743 $as_echo_n "checking for $ac_word... " >&6; }
21744 if test "${ac_cv_path_XMLRPC_C_CONFIG+set}" = set; then :
21745   $as_echo_n "(cached) " >&6
21746 else
21747   case $XMLRPC_C_CONFIG in
21748   [\\/]* | ?:[\\/]*)
21749   ac_cv_path_XMLRPC_C_CONFIG="$XMLRPC_C_CONFIG" # Let the user override the test with a path.
21750   ;;
21751   *)
21752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21753 for as_dir in $PATH
21754 do
21755   IFS=$as_save_IFS
21756   test -z "$as_dir" && as_dir=.
21757     for ac_exec_ext in '' $ac_executable_extensions; do
21758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21759     ac_cv_path_XMLRPC_C_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21761     break 2
21762   fi
21763 done
21764   done
21765 IFS=$as_save_IFS
21766
21767   test -z "$ac_cv_path_XMLRPC_C_CONFIG" && ac_cv_path_XMLRPC_C_CONFIG="no"
21768   ;;
21769 esac
21770 fi
21771 XMLRPC_C_CONFIG=$ac_cv_path_XMLRPC_C_CONFIG
21772 if test -n "$XMLRPC_C_CONFIG"; then
21773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLRPC_C_CONFIG" >&5
21774 $as_echo "$XMLRPC_C_CONFIG" >&6; }
21775 else
21776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21777 $as_echo "no" >&6; }
21778 fi
21779
21780
21781
21782         test "x$XMLRPC_C_CONFIG" != 'xno' || as_fn_error "--enable-xmlrpc requires xmlrpc-c-config, which was not found" "$LINENO" 5
21783
21784         XMLRPC_CFLAGS=`$XMLRPC_C_CONFIG c++2 client --cflags`
21785         XMLRPC_LIBS=`$XMLRPC_C_CONFIG c++2 client --libs`
21786
21787
21788
21789                         BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $XMLRPC_CFLAGS"
21790
21791
21792 $as_echo "#define ENABLE_XMLRPC 1" >>confdefs.h
21793
21794 fi
21795 # ^^^^^^^^^^^^^^ src/backends/xmlrpc/configure-sub.in ^^^^^^^^^^^^^^
21796
21797
21798
21799
21800
21801
21802 # Check whether --enable-qt-dbus was given.
21803 if test "${enable_qt_dbus+set}" = set; then :
21804   enableval=$enable_qt_dbus; enable_qt_dbus="$enableval"
21805 else
21806   enable_qt_dbus="no"
21807 fi
21808
21809
21810 if test "$enable_qt_dbus" = "yes"; then
21811
21812 $as_echo "#define ENABLE_QT_DBUS 1" >>confdefs.h
21813
21814         need_qt_modules="$need_qt_modules +dbus"
21815         # Extract the first word of "qdbusxml2cpp", so it can be a program name with args.
21816 set dummy qdbusxml2cpp; ac_word=$2
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21818 $as_echo_n "checking for $ac_word... " >&6; }
21819 if test "${ac_cv_path_QDBUSXML_TO_CPP+set}" = set; then :
21820   $as_echo_n "(cached) " >&6
21821 else
21822   case $QDBUSXML_TO_CPP in
21823   [\\/]* | ?:[\\/]*)
21824   ac_cv_path_QDBUSXML_TO_CPP="$QDBUSXML_TO_CPP" # Let the user override the test with a path.
21825   ;;
21826   *)
21827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21828 for as_dir in $PATH
21829 do
21830   IFS=$as_save_IFS
21831   test -z "$as_dir" && as_dir=.
21832     for ac_exec_ext in '' $ac_executable_extensions; do
21833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21834     ac_cv_path_QDBUSXML_TO_CPP="$as_dir/$ac_word$ac_exec_ext"
21835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21836     break 2
21837   fi
21838 done
21839   done
21840 IFS=$as_save_IFS
21841
21842   test -z "$ac_cv_path_QDBUSXML_TO_CPP" && ac_cv_path_QDBUSXML_TO_CPP="no"
21843   ;;
21844 esac
21845 fi
21846 QDBUSXML_TO_CPP=$ac_cv_path_QDBUSXML_TO_CPP
21847 if test -n "$QDBUSXML_TO_CPP"; then
21848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QDBUSXML_TO_CPP" >&5
21849 $as_echo "$QDBUSXML_TO_CPP" >&6; }
21850 else
21851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21852 $as_echo "no" >&6; }
21853 fi
21854
21855
21856         test "x$QDBUSXML_TO_CPP" != 'xno' || as_fn_error "--enable-qt-dbus requires qdbusxml2cpp, which was not found" "$LINENO" 5
21857 fi
21858
21859  if test "$enable_qt_dbus" = "yes"; then
21860   ENABLE_QT_DBUS_TRUE=
21861   ENABLE_QT_DBUS_FALSE='#'
21862 else
21863   ENABLE_QT_DBUS_TRUE='#'
21864   ENABLE_QT_DBUS_FALSE=
21865 fi
21866
21867
21868
21869 ac_config_files="$ac_config_files src/dbus/qt/syncevolution-qt-dbus.pc"
21870
21871
21872
21873
21874
21875 enable_any="no"
21876 backend_is_enabled () {
21877     eval echo \${enable_${1}}
21878 }
21879 for backend in $BACKENDS; do
21880     if test `backend_is_enabled $backend` = "yes"; then
21881        enable_any="yes"
21882        SYNCEVOLUTION_MODULES="$SYNCEVOLUTION_MODULES src/backends/sync${backend}.la"
21883     fi
21884 done
21885
21886 if test "$enable_any" = "no"; then
21887         as_fn_error "no backend enabled - refusing to continue: $anymissing" "$LINENO" 5
21888 fi
21889
21890 if test "$need_glib" = "yes"; then
21891         # HAVE_GLIB (aka GLIBFOUND) are a catch-all for these
21892         # three GNOME libs. Assume we have all three unless one of
21893         # the checks fails.
21894         GLIBFOUND=yes
21895
21896
21897 pkg_failed=no
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
21899 $as_echo_n "checking for GLIB... " >&6; }
21900
21901 if test -n "$PKG_CONFIG"; then
21902     if test -n "$GLIB_CFLAGS"; then
21903         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
21904     else
21905         if test -n "$PKG_CONFIG" && \
21906     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\""; } >&5
21907   ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
21908   ac_status=$?
21909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21910   test $ac_status = 0; }; then
21911   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags ""glib-2.0"" 2>/dev/null`
21912 else
21913   pkg_failed=yes
21914 fi
21915     fi
21916 else
21917         pkg_failed=untried
21918 fi
21919 if test -n "$PKG_CONFIG"; then
21920     if test -n "$GLIB_LIBS"; then
21921         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
21922     else
21923         if test -n "$PKG_CONFIG" && \
21924     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\""; } >&5
21925   ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
21926   ac_status=$?
21927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21928   test $ac_status = 0; }; then
21929   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs ""glib-2.0"" 2>/dev/null`
21930 else
21931   pkg_failed=yes
21932 fi
21933     fi
21934 else
21935         pkg_failed=untried
21936 fi
21937
21938
21939
21940 if test $pkg_failed = yes; then
21941
21942 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21943         _pkg_short_errors_supported=yes
21944 else
21945         _pkg_short_errors_supported=no
21946 fi
21947         if test $_pkg_short_errors_supported = yes; then
21948                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""glib-2.0""`
21949         else
21950                 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""glib-2.0""`
21951         fi
21952         # Put the nasty error message in config.log where it belongs
21953         echo "$GLIB_PKG_ERRORS" >&5
21954
21955         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21956 $as_echo "no" >&6; }
21957                 GLIBFOUND=no
21958 elif test $pkg_failed = untried; then
21959         GLIBFOUND=no
21960 else
21961         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
21962         GLIB_LIBS=$pkg_cv_GLIB_LIBS
21963         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21964 $as_echo "yes" >&6; }
21965         :
21966 fi
21967         # This check here is broken on Ubuntu 8.04: it calls glib-config,
21968         # which isn't found, but the error is not detected by configure.
21969         #if test "x${GLIBFOUND}" = "xno"; then
21970         #       PKG_CHECK_MODULES(GLIB, "glib", GLIBFOUND=yes, GLIBFOUND=no)
21971         #fi
21972
21973
21974 pkg_failed=no
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
21976 $as_echo_n "checking for GTHREAD... " >&6; }
21977
21978 if test -n "$PKG_CONFIG"; then
21979     if test -n "$GTHREAD_CFLAGS"; then
21980         pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
21981     else
21982         if test -n "$PKG_CONFIG" && \
21983     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gthread-2.0\"\""; } >&5
21984   ($PKG_CONFIG --exists --print-errors ""gthread-2.0"") 2>&5
21985   ac_status=$?
21986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21987   test $ac_status = 0; }; then
21988   pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags ""gthread-2.0"" 2>/dev/null`
21989 else
21990   pkg_failed=yes
21991 fi
21992     fi
21993 else
21994         pkg_failed=untried
21995 fi
21996 if test -n "$PKG_CONFIG"; then
21997     if test -n "$GTHREAD_LIBS"; then
21998         pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
21999     else
22000         if test -n "$PKG_CONFIG" && \
22001     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gthread-2.0\"\""; } >&5
22002   ($PKG_CONFIG --exists --print-errors ""gthread-2.0"") 2>&5
22003   ac_status=$?
22004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22005   test $ac_status = 0; }; then
22006   pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs ""gthread-2.0"" 2>/dev/null`
22007 else
22008   pkg_failed=yes
22009 fi
22010     fi
22011 else
22012         pkg_failed=untried
22013 fi
22014
22015
22016
22017 if test $pkg_failed = yes; then
22018
22019 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22020         _pkg_short_errors_supported=yes
22021 else
22022         _pkg_short_errors_supported=no
22023 fi
22024         if test $_pkg_short_errors_supported = yes; then
22025                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""gthread-2.0""`
22026         else
22027                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gthread-2.0""`
22028         fi
22029         # Put the nasty error message in config.log where it belongs
22030         echo "$GTHREAD_PKG_ERRORS" >&5
22031
22032         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22033 $as_echo "no" >&6; }
22034                 GLIBFOUND=no
22035 elif test $pkg_failed = untried; then
22036         GLIBFOUND=no
22037 else
22038         GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
22039         GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
22040         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22041 $as_echo "yes" >&6; }
22042         :
22043 fi
22044
22045 pkg_failed=no
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
22047 $as_echo_n "checking for GOBJECT... " >&6; }
22048
22049 if test -n "$PKG_CONFIG"; then
22050     if test -n "$GOBJECT_CFLAGS"; then
22051         pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
22052     else
22053         if test -n "$PKG_CONFIG" && \
22054     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gobject-2.0\"\""; } >&5
22055   ($PKG_CONFIG --exists --print-errors ""gobject-2.0"") 2>&5
22056   ac_status=$?
22057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22058   test $ac_status = 0; }; then
22059   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags ""gobject-2.0"" 2>/dev/null`
22060 else
22061   pkg_failed=yes
22062 fi
22063     fi
22064 else
22065         pkg_failed=untried
22066 fi
22067 if test -n "$PKG_CONFIG"; then
22068     if test -n "$GOBJECT_LIBS"; then
22069         pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
22070     else
22071         if test -n "$PKG_CONFIG" && \
22072     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gobject-2.0\"\""; } >&5
22073   ($PKG_CONFIG --exists --print-errors ""gobject-2.0"") 2>&5
22074   ac_status=$?
22075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22076   test $ac_status = 0; }; then
22077   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs ""gobject-2.0"" 2>/dev/null`
22078 else
22079   pkg_failed=yes
22080 fi
22081     fi
22082 else
22083         pkg_failed=untried
22084 fi
22085
22086
22087
22088 if test $pkg_failed = yes; then
22089
22090 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22091         _pkg_short_errors_supported=yes
22092 else
22093         _pkg_short_errors_supported=no
22094 fi
22095         if test $_pkg_short_errors_supported = yes; then
22096                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""gobject-2.0""`
22097         else
22098                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gobject-2.0""`
22099         fi
22100         # Put the nasty error message in config.log where it belongs
22101         echo "$GOBJECT_PKG_ERRORS" >&5
22102
22103         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22104 $as_echo "no" >&6; }
22105                 GLIBFOUND=no
22106 elif test $pkg_failed = untried; then
22107         GLIBFOUND=no
22108 else
22109         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
22110         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
22111         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22112 $as_echo "yes" >&6; }
22113         :
22114 fi
22115
22116 pkg_failed=no
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
22118 $as_echo_n "checking for GIO... " >&6; }
22119
22120 if test -n "$PKG_CONFIG"; then
22121     if test -n "$GIO_CFLAGS"; then
22122         pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
22123     else
22124         if test -n "$PKG_CONFIG" && \
22125     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gio-2.0\"\""; } >&5
22126   ($PKG_CONFIG --exists --print-errors ""gio-2.0"") 2>&5
22127   ac_status=$?
22128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22129   test $ac_status = 0; }; then
22130   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags ""gio-2.0"" 2>/dev/null`
22131 else
22132   pkg_failed=yes
22133 fi
22134     fi
22135 else
22136         pkg_failed=untried
22137 fi
22138 if test -n "$PKG_CONFIG"; then
22139     if test -n "$GIO_LIBS"; then
22140         pkg_cv_GIO_LIBS="$GIO_LIBS"
22141     else
22142         if test -n "$PKG_CONFIG" && \
22143     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gio-2.0\"\""; } >&5
22144   ($PKG_CONFIG --exists --print-errors ""gio-2.0"") 2>&5
22145   ac_status=$?
22146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22147   test $ac_status = 0; }; then
22148   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs ""gio-2.0"" 2>/dev/null`
22149 else
22150   pkg_failed=yes
22151 fi
22152     fi
22153 else
22154         pkg_failed=untried
22155 fi
22156
22157
22158
22159 if test $pkg_failed = yes; then
22160
22161 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22162         _pkg_short_errors_supported=yes
22163 else
22164         _pkg_short_errors_supported=no
22165 fi
22166         if test $_pkg_short_errors_supported = yes; then
22167                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""gio-2.0""`
22168         else
22169                 GIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gio-2.0""`
22170         fi
22171         # Put the nasty error message in config.log where it belongs
22172         echo "$GIO_PKG_ERRORS" >&5
22173
22174         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22175 $as_echo "no" >&6; }
22176                 GLIBFOUND=no
22177 elif test $pkg_failed = untried; then
22178         GLIBFOUND=no
22179 else
22180         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
22181         GIO_LIBS=$pkg_cv_GIO_LIBS
22182         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22183 $as_echo "yes" >&6; }
22184         :
22185 fi
22186
22187         if  test "x${GLIBFOUND}" = "xyes"; then
22188
22189 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
22190
22191         else
22192             as_fn_error "not all GNOME libraries found" "$LINENO" 5
22193         fi
22194         BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $GLIB_CFLAGS $GTHREAD_CFLAGS $GOBJECT_CFLAGS"
22195 fi
22196
22197 if test "$need_ical" = "yes"; then
22198
22199 pkg_failed=no
22200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL" >&5
22201 $as_echo_n "checking for LIBICAL... " >&6; }
22202
22203 if test -n "$PKG_CONFIG"; then
22204     if test -n "$LIBICAL_CFLAGS"; then
22205         pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
22206     else
22207         if test -n "$PKG_CONFIG" && \
22208     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
22209   ($PKG_CONFIG --exists --print-errors "libical") 2>&5
22210   ac_status=$?
22211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22212   test $ac_status = 0; }; then
22213   pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libical" 2>/dev/null`
22214 else
22215   pkg_failed=yes
22216 fi
22217     fi
22218 else
22219         pkg_failed=untried
22220 fi
22221 if test -n "$PKG_CONFIG"; then
22222     if test -n "$LIBICAL_LIBS"; then
22223         pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
22224     else
22225         if test -n "$PKG_CONFIG" && \
22226     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
22227   ($PKG_CONFIG --exists --print-errors "libical") 2>&5
22228   ac_status=$?
22229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22230   test $ac_status = 0; }; then
22231   pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libical" 2>/dev/null`
22232 else
22233   pkg_failed=yes
22234 fi
22235     fi
22236 else
22237         pkg_failed=untried
22238 fi
22239
22240
22241
22242 if test $pkg_failed = yes; then
22243
22244 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22245         _pkg_short_errors_supported=yes
22246 else
22247         _pkg_short_errors_supported=no
22248 fi
22249         if test $_pkg_short_errors_supported = yes; then
22250                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libical"`
22251         else
22252                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libical"`
22253         fi
22254         # Put the nasty error message in config.log where it belongs
22255         echo "$LIBICAL_PKG_ERRORS" >&5
22256
22257         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22258 $as_echo "no" >&6; }
22259
22260 pkg_failed=no
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL" >&5
22262 $as_echo_n "checking for LIBICAL... " >&6; }
22263
22264 if test -n "$PKG_CONFIG"; then
22265     if test -n "$LIBICAL_CFLAGS"; then
22266         pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
22267     else
22268         if test -n "$PKG_CONFIG" && \
22269     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
22270   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
22271   ac_status=$?
22272   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22273   test $ac_status = 0; }; then
22274   pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
22275 else
22276   pkg_failed=yes
22277 fi
22278     fi
22279 else
22280         pkg_failed=untried
22281 fi
22282 if test -n "$PKG_CONFIG"; then
22283     if test -n "$LIBICAL_LIBS"; then
22284         pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
22285     else
22286         if test -n "$PKG_CONFIG" && \
22287     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
22288   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
22289   ac_status=$?
22290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22291   test $ac_status = 0; }; then
22292   pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
22293 else
22294   pkg_failed=yes
22295 fi
22296     fi
22297 else
22298         pkg_failed=untried
22299 fi
22300
22301
22302
22303 if test $pkg_failed = yes; then
22304
22305 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22306         _pkg_short_errors_supported=yes
22307 else
22308         _pkg_short_errors_supported=no
22309 fi
22310         if test $_pkg_short_errors_supported = yes; then
22311                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libecal-1.2"`
22312         else
22313                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libecal-1.2"`
22314         fi
22315         # Put the nasty error message in config.log where it belongs
22316         echo "$LIBICAL_PKG_ERRORS" >&5
22317
22318         as_fn_error "Package requirements (libecal-1.2) were not met:
22319
22320 $LIBICAL_PKG_ERRORS
22321
22322 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22323 installed software in a non-standard prefix.
22324
22325 Alternatively, you may set the environment variables LIBICAL_CFLAGS
22326 and LIBICAL_LIBS to avoid the need to call pkg-config.
22327 See the pkg-config man page for more details.
22328 " "$LINENO" 5
22329 elif test $pkg_failed = untried; then
22330         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22332 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
22333 is in your PATH or set the PKG_CONFIG environment variable to the full
22334 path to pkg-config.
22335
22336 Alternatively, you may set the environment variables LIBICAL_CFLAGS
22337 and LIBICAL_LIBS to avoid the need to call pkg-config.
22338 See the pkg-config man page for more details.
22339
22340 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22341 See \`config.log' for more details." "$LINENO" 5; }
22342 else
22343         LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
22344         LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
22345         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22346 $as_echo "yes" >&6; }
22347         :
22348 fi
22349 elif test $pkg_failed = untried; then
22350
22351 pkg_failed=no
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL" >&5
22353 $as_echo_n "checking for LIBICAL... " >&6; }
22354
22355 if test -n "$PKG_CONFIG"; then
22356     if test -n "$LIBICAL_CFLAGS"; then
22357         pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
22358     else
22359         if test -n "$PKG_CONFIG" && \
22360     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
22361   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
22362   ac_status=$?
22363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22364   test $ac_status = 0; }; then
22365   pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
22366 else
22367   pkg_failed=yes
22368 fi
22369     fi
22370 else
22371         pkg_failed=untried
22372 fi
22373 if test -n "$PKG_CONFIG"; then
22374     if test -n "$LIBICAL_LIBS"; then
22375         pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
22376     else
22377         if test -n "$PKG_CONFIG" && \
22378     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
22379   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
22380   ac_status=$?
22381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22382   test $ac_status = 0; }; then
22383   pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
22384 else
22385   pkg_failed=yes
22386 fi
22387     fi
22388 else
22389         pkg_failed=untried
22390 fi
22391
22392
22393
22394 if test $pkg_failed = yes; then
22395
22396 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22397         _pkg_short_errors_supported=yes
22398 else
22399         _pkg_short_errors_supported=no
22400 fi
22401         if test $_pkg_short_errors_supported = yes; then
22402                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libecal-1.2"`
22403         else
22404                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libecal-1.2"`
22405         fi
22406         # Put the nasty error message in config.log where it belongs
22407         echo "$LIBICAL_PKG_ERRORS" >&5
22408
22409         as_fn_error "Package requirements (libecal-1.2) were not met:
22410
22411 $LIBICAL_PKG_ERRORS
22412
22413 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22414 installed software in a non-standard prefix.
22415
22416 Alternatively, you may set the environment variables LIBICAL_CFLAGS
22417 and LIBICAL_LIBS to avoid the need to call pkg-config.
22418 See the pkg-config man page for more details.
22419 " "$LINENO" 5
22420 elif test $pkg_failed = untried; then
22421         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22423 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
22424 is in your PATH or set the PKG_CONFIG environment variable to the full
22425 path to pkg-config.
22426
22427 Alternatively, you may set the environment variables LIBICAL_CFLAGS
22428 and LIBICAL_LIBS to avoid the need to call pkg-config.
22429 See the pkg-config man page for more details.
22430
22431 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22432 See \`config.log' for more details." "$LINENO" 5; }
22433 else
22434         LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
22435         LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
22436         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22437 $as_echo "yes" >&6; }
22438         :
22439 fi
22440 else
22441         LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
22442         LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
22443         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22444 $as_echo "yes" >&6; }
22445         true
22446 fi
22447
22448 $as_echo "#define ENABLE_ICAL 1" >>confdefs.h
22449
22450 fi
22451  if test "$need_ical" = "yes"; then
22452   ENABLE_ICAL_TRUE=
22453   ENABLE_ICAL_FALSE='#'
22454 else
22455   ENABLE_ICAL_TRUE='#'
22456   ENABLE_ICAL_FALSE=
22457 fi
22458
22459
22460
22461 # Check for Qt if some backend needs it.
22462 if test "$need_qt_modules"; then
22463    echo "$as_me: this is autotroll.m4 serial 5" >&5
22464
22465   test x"$TROLL" != x && echo 'ViM rox emacs.'
22466
22467
22468 # Check whether --with-qt was given.
22469 if test "${with_qt+set}" = set; then :
22470   withval=$with_qt; QT_PATH=$withval
22471 fi
22472
22473
22474   # this is a hack to get decent flow control with 'break'
22475   for _qt_ignored in once; do
22476
22477   # Find Qt.
22478
22479   if test -d /usr/local/Trolltech; then
22480     # Try to find the latest version.
22481     tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
22482                                               | xargs | sed 's/  */:/g'`
22483   fi
22484   # Path to which recent MacPorts (~v1.7) install Qt4.
22485   test -d /opt/local/libexec/qt4-mac/bin \
22486     && tmp_qt_paths="$tmp_qt_paths:/opt/local/libexec/qt4-mac/bin"
22487
22488   # Find qmake.
22489
22490   for ac_prog in qmake qmake-qt4 qmake-qt3
22491 do
22492   # Extract the first word of "$ac_prog", so it can be a program name with args.
22493 set dummy $ac_prog; ac_word=$2
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22495 $as_echo_n "checking for $ac_word... " >&6; }
22496 if test "${ac_cv_path_QMAKE+set}" = set; then :
22497   $as_echo_n "(cached) " >&6
22498 else
22499   case $QMAKE in
22500   [\\/]* | ?:[\\/]*)
22501   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
22502   ;;
22503   *)
22504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22505 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
22506 for as_dir in $as_dummy
22507 do
22508   IFS=$as_save_IFS
22509   test -z "$as_dir" && as_dir=.
22510     for ac_exec_ext in '' $ac_executable_extensions; do
22511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22512     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
22513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22514     break 2
22515   fi
22516 done
22517   done
22518 IFS=$as_save_IFS
22519
22520   ;;
22521 esac
22522 fi
22523 QMAKE=$ac_cv_path_QMAKE
22524 if test -n "$QMAKE"; then
22525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
22526 $as_echo "$QMAKE" >&6; }
22527 else
22528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22529 $as_echo "no" >&6; }
22530 fi
22531
22532
22533   test -n "$QMAKE" && break
22534 done
22535 test -n "$QMAKE" || QMAKE="missing"
22536
22537   if test x"$QMAKE" = xmissing; then
22538     as_fn_error "Cannot find qmake in your PATH. Try using --with-qt." "$LINENO" 5
22539     break
22540   fi
22541
22542   # Find moc (Meta Object Compiler).
22543
22544   for ac_prog in moc moc-qt4 moc-qt3
22545 do
22546   # Extract the first word of "$ac_prog", so it can be a program name with args.
22547 set dummy $ac_prog; ac_word=$2
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22549 $as_echo_n "checking for $ac_word... " >&6; }
22550 if test "${ac_cv_path_MOC+set}" = set; then :
22551   $as_echo_n "(cached) " >&6
22552 else
22553   case $MOC in
22554   [\\/]* | ?:[\\/]*)
22555   ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
22556   ;;
22557   *)
22558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22559 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
22560 for as_dir in $as_dummy
22561 do
22562   IFS=$as_save_IFS
22563   test -z "$as_dir" && as_dir=.
22564     for ac_exec_ext in '' $ac_executable_extensions; do
22565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22566     ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
22567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22568     break 2
22569   fi
22570 done
22571   done
22572 IFS=$as_save_IFS
22573
22574   ;;
22575 esac
22576 fi
22577 MOC=$ac_cv_path_MOC
22578 if test -n "$MOC"; then
22579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
22580 $as_echo "$MOC" >&6; }
22581 else
22582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22583 $as_echo "no" >&6; }
22584 fi
22585
22586
22587   test -n "$MOC" && break
22588 done
22589 test -n "$MOC" || MOC="missing"
22590
22591   if test x"$MOC" = xmissing; then
22592     as_fn_error "Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
22593     break
22594   fi
22595
22596   # Find uic (User Interface Compiler).
22597
22598   for ac_prog in uic uic-qt4 uic-qt3 uic3
22599 do
22600   # Extract the first word of "$ac_prog", so it can be a program name with args.
22601 set dummy $ac_prog; ac_word=$2
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22603 $as_echo_n "checking for $ac_word... " >&6; }
22604 if test "${ac_cv_path_UIC+set}" = set; then :
22605   $as_echo_n "(cached) " >&6
22606 else
22607   case $UIC in
22608   [\\/]* | ?:[\\/]*)
22609   ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
22610   ;;
22611   *)
22612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22613 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
22614 for as_dir in $as_dummy
22615 do
22616   IFS=$as_save_IFS
22617   test -z "$as_dir" && as_dir=.
22618     for ac_exec_ext in '' $ac_executable_extensions; do
22619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22620     ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
22621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22622     break 2
22623   fi
22624 done
22625   done
22626 IFS=$as_save_IFS
22627
22628   ;;
22629 esac
22630 fi
22631 UIC=$ac_cv_path_UIC
22632 if test -n "$UIC"; then
22633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
22634 $as_echo "$UIC" >&6; }
22635 else
22636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22637 $as_echo "no" >&6; }
22638 fi
22639
22640
22641   test -n "$UIC" && break
22642 done
22643 test -n "$UIC" || UIC="missing"
22644
22645   if test x"$UIC" = xmissing; then
22646     as_fn_error "Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
22647     break
22648   fi
22649
22650   # Find rcc (Qt Resource Compiler).
22651
22652   for ac_prog in rcc
22653 do
22654   # Extract the first word of "$ac_prog", so it can be a program name with args.
22655 set dummy $ac_prog; ac_word=$2
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22657 $as_echo_n "checking for $ac_word... " >&6; }
22658 if test "${ac_cv_path_RCC+set}" = set; then :
22659   $as_echo_n "(cached) " >&6
22660 else
22661   case $RCC in
22662   [\\/]* | ?:[\\/]*)
22663   ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
22664   ;;
22665   *)
22666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22667 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
22668 for as_dir in $as_dummy
22669 do
22670   IFS=$as_save_IFS
22671   test -z "$as_dir" && as_dir=.
22672     for ac_exec_ext in '' $ac_executable_extensions; do
22673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22674     ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
22675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22676     break 2
22677   fi
22678 done
22679   done
22680 IFS=$as_save_IFS
22681
22682   ;;
22683 esac
22684 fi
22685 RCC=$ac_cv_path_RCC
22686 if test -n "$RCC"; then
22687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5
22688 $as_echo "$RCC" >&6; }
22689 else
22690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22691 $as_echo "no" >&6; }
22692 fi
22693
22694
22695   test -n "$RCC" && break
22696 done
22697 test -n "$RCC" || RCC="false"
22698
22699   if test x"$UIC" = xfalse; then
22700     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH.\
22701   Try using --with-qt." >&5
22702 $as_echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH.\
22703   Try using --with-qt." >&2;}
22704   fi
22705
22706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host operating system is Darwin" >&5
22707 $as_echo_n "checking whether host operating system is Darwin... " >&6; }
22708   at_darwin=no
22709   at_qmake_args=
22710   case $host_os in
22711     darwin*)
22712       at_darwin=yes
22713       at_qmake_args='-spec macx-g++'
22714       ;;
22715   esac
22716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_darwin" >&5
22717 $as_echo "$at_darwin" >&6; }
22718
22719   # If we don't know the path to Qt, guess it from the path to qmake.
22720   if test x"$QT_PATH" = x; then
22721     QT_PATH=`dirname "$QMAKE"`
22722   fi
22723   if test x"$QT_PATH" = x; then
22724     as_fn_error "Cannot find the path to your Qt install. Use --with-qt." "$LINENO" 5
22725     break
22726   fi
22727
22728
22729   # Get ready to build a test-app with Qt.
22730   if mkdir conftest.dir && cd conftest.dir; then :; else
22731     as_fn_error "Cannot mkdir conftest.dir or cd to that directory." "$LINENO" 5
22732     break
22733   fi
22734
22735   cat >conftest.h <<_ASEOF
22736 #include <QObject>
22737
22738 class Foo: public QObject
22739 {
22740   Q_OBJECT;
22741 public:
22742   Foo();
22743   ~Foo() {}
22744 public Q_SLOTS:
22745   void setValue(int value);
22746 Q_SIGNALS:
22747   void valueChanged(int newValue);
22748 private:
22749   int value_;
22750 };
22751 _ASEOF
22752
22753   cat >conftest.cpp <<_ASEOF
22754 #include "conftest.h"
22755 Foo::Foo()
22756   : value_ (42)
22757 {
22758   connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
22759 }
22760
22761 void Foo::setValue(int value)
22762 {
22763   value_ = value;
22764 }
22765
22766 int main()
22767 {
22768   Foo f;
22769 }
22770 _ASEOF
22771   if $QMAKE -project; then :; else
22772     as_fn_error "Calling $QMAKE -project failed." "$LINENO" 5
22773     break
22774   fi
22775
22776   # Find the .pro file generated by qmake.
22777   pro_file='conftest.dir.pro'
22778   test -f $pro_file || pro_file=`echo *.pro`
22779   if test -f "$pro_file"; then :; else
22780     as_fn_error "Can't find the .pro file generated by Qmake." "$LINENO" 5
22781     break
22782   fi
22783
22784  # Tweak the value of QT in the .pro file for -gui $need_qt_modules.
22785
22786   qt_conf=''
22787   for at_mod in -gui $need_qt_modules; do
22788     at_mod=`echo "$at_mod" | sed 's/^-//; tough
22789                                   s/^+//; beef
22790                                   :ough
22791                                   s/^/QT -= /;n
22792                                   :eef
22793                                   s/^/QT += /'`
22794     qt_conf="$qt_conf
22795 $at_mod"
22796   done
22797   echo "$qt_conf" | sed 1d >>"$pro_file"
22798
22799
22800  # Tweak the value of CONFIG in the .pro file for $qt_config.
22801
22802   qt_conf=''
22803   for at_mod in $qt_config; do
22804     at_mod=`echo "$at_mod" | sed 's/^-//; tough
22805                                   s/^+//; beef
22806                                   :ough
22807                                   s/^/CONFIG -= /;n
22808                                   :eef
22809                                   s/^/CONFIG += /'`
22810     qt_conf="$qt_conf
22811 $at_mod"
22812   done
22813   echo "$qt_conf" | sed 1d >>"$pro_file"
22814
22815
22816  # Add the extra-settings the user wants to set in the .pro
22817   echo "$qt_misc" >>"$pro_file"
22818
22819
22820   echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
22821   sed 's/^/| /' "$pro_file" >&5
22822
22823   if $QMAKE $at_qmake_args; then :; else
22824     as_fn_error "Calling $QMAKE $at_qmake_args failed." "$LINENO" 5
22825     break
22826   fi
22827
22828   # QMake has a very annoying misfeature: sometimes it generates Makefiles
22829   # where all the references to the files from the Qt installation are
22830   # relative.  We can't use them as-is because if we take, say, a
22831   # -I../../usr/include/Qt from that Makefile, the flag is invalid as soon
22832   # as we use it in another (sub) directory.  So what this perl pass does is
22833   # that it rewrite all relative paths to absolute paths.  Another problem
22834   # when building on Cygwin is that QMake mixes paths with blackslashes and
22835   # forward slashes and paths must be handled with extra care because of the
22836   # stupid Windows drive letters.
22837   echo "$as_me:$LINENO: fixing the Makefiles:" Makefile* >&5
22838   cat >fixmk.pl <<\EOF
22839 use strict;
22840 use Cwd qw(cwd abs_path);
22841 # This variable is useful on Cygwin for the following reason: Say that you are
22842 # in `/' (that is, in fact you are in C:/cygwin, or something like that) if you
22843 # `cd ..' then obviously you remain in `/' (that is in C:/cygwin).  QMake
22844 # generates paths that are relative to C:/ (or another driver letter, whatever)
22845 # so the trick to get the `..' resolved properly is to prepend the absolute
22846 # path of the current working directory in a Windows-style.  C:/cygwin/../ will
22847 # properly become C:/.
22848 my $d = "";
22849 my $r2a = 0;
22850 my $b2f = 0;
22851
22852 my $cygwin = 0;
22853 if ($^O eq "cygwin") {
22854   $cygwin = 1;
22855   $d = cwd();
22856   $d = `cygpath --mixed '$d'`;
22857   chomp($d);
22858   $d .= "/";
22859 }
22860
22861 sub rel2abs($)
22862 {
22863   my $p = $d . shift;
22864   # print "r2a p=$p";
22865   -e $p || return $p;
22866   if ($cygwin) {
22867     $p = `cygpath --mixed '$p'`;
22868     chomp($p);
22869   }
22870   else {
22871     # Do not use abs_path on Cygwin: it incorrectly resolves the paths that are
22872     # relative to C:/ rather than `/'.
22873     $p = abs_path($p);
22874   }
22875   # print " -> $p\n";
22876   ++$r2a;
22877   return $p;
22878 }
22879
22880 # Only useful on Cygwin.
22881 sub back2forward($)
22882 {
22883   my $p = shift;
22884   # print "b2f p=$p";
22885   -e $p || return $p;
22886   $p = `cygpath --mixed '$p'`;
22887   chomp($p);
22888   # print " -> $p\n";
22889   ++$b2f;
22890   return $p;
22891 }
22892
22893 foreach my $mk (@ARGV)
22894 {
22895   next if $mk =~ /~$/;
22896   open(MK, $mk) or die("open $mk: $!");
22897   # print "mk=$mk\n";
22898   my $file = join("", <MK>);
22899   close(MK) or die("close $mk: $!");
22900   rename $mk, $mk . "~" or die("rename $mk: $!");
22901   $file =~ s{(?:\.\.[\\/])+(?:[^"'\s:]+)}{rel2abs($&)}gse;
22902   $file =~ s{(?:[a-zA-Z]:[\\/])?(?:[^"\s]+\\[^"\s:]+)+}
22903             {back2forward($&)}gse if $cygwin;
22904   open(MK, ">", $mk) or die("open >$mk: $!");
22905   print MK $file;
22906   close(MK) or die("close >$mk: $!");
22907   print "$mk: updated $r2a relative paths and $b2f backslash-style paths\n";
22908   $r2a = 0;
22909   $b2f = 0;
22910 }
22911 EOF
22912
22913   perl >&5 -w fixmk.pl Makefile* ||
22914   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to fix the Makefiles generated by $QMAKE" >&5
22915 $as_echo "$as_me: WARNING: failed to fix the Makefiles generated by $QMAKE" >&2;}
22916   rm -f fixmk.pl
22917
22918   # Try to compile a simple Qt app.
22919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a simple Qt app" >&5
22920 $as_echo_n "checking whether we can build a simple Qt app... " >&6; }
22921 if test "${at_cv_qt_build+set}" = set; then :
22922   $as_echo_n "(cached) " >&6
22923 else
22924   at_cv_qt_build=ko
22925   : ${MAKE=make}
22926
22927   if $MAKE >&5 2>&1; then
22928     at_cv_qt_build='ok, looks like Qt 4'
22929   else
22930     echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
22931 instead" >&5
22932     sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
22933     if $MAKE >&5 2>&1; then
22934       at_cv_qt_build='ok, looks like Qt 3'
22935     else
22936       # Sometimes (such as on Debian) build will fail because Qt hasn't been
22937       # installed in debug mode and qmake tries (by default) to build apps in
22938       # debug mode => Try again in release mode.
22939       echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
22940             >&5
22941
22942        # Tweak the value of CONFIG in the .pro file for +release.
22943
22944   qt_conf=''
22945   for at_mod in +release; do
22946     at_mod=`echo "$at_mod" | sed 's/^-//; tough
22947                                   s/^+//; beef
22948                                   :ough
22949                                   s/^/CONFIG -= /;n
22950                                   :eef
22951                                   s/^/CONFIG += /'`
22952     qt_conf="$qt_conf
22953 $at_mod"
22954   done
22955   echo "$qt_conf" | sed 1d >>"$pro_file"
22956
22957
22958       sed 's/<qobject.h>/<QObject>/' conftest.h > tmp.h && mv tmp.h conftest.h
22959       if $MAKE >&5 2>&1; then
22960         at_cv_qt_build='ok, looks like Qt 4, release mode forced'
22961       else
22962         echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
22963 instead" >&5
22964         sed 's/<QObject>/<qobject.h>/' conftest.h >tmp.h && mv tmp.h conftest.h
22965         if $MAKE >&5 2>&1; then
22966           at_cv_qt_build='ok, looks like Qt 3, release mode forced'
22967         else
22968           at_cv_qt_build=ko
22969           echo "$as_me:$LINENO: failed program was:" >&5
22970           sed 's/^/| /' conftest.h >&5
22971           echo "$as_me:$LINENO: failed program was:" >&5
22972           sed 's/^/| /' conftest.cpp >&5
22973         fi # if make with Qt3-style #include and release mode forced.
22974       fi # if make with Qt4-style #include and release mode forced.
22975     fi # if make with Qt3-style #include.
22976   fi # if make with Qt4-style #include.
22977
22978 fi
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_qt_build" >&5
22980 $as_echo "$at_cv_qt_build" >&6; }
22981   if test x"$at_cv_qt_build" = xko; then
22982     as_fn_error "Cannot build a test Qt program" "$LINENO" 5
22983     cd ..
22984     break
22985   fi
22986   QT_VERSION_MAJOR=`echo "$at_cv_qt_build" | sed 's/[^0-9]*//g'`
22987
22988
22989   # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
22990   # It starts by removing the beginning of the line, removing references to
22991   # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
22992   # all variable uses by QT_.
22993   qt_sed_filter='s///;
22994                  s/$(SUBLIBS)//g;
22995                  s/^ *//;
22996                  s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
22997
22998   # Find the Makefile (qmake happens to generate a fake Makefile which invokes
22999   # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
23000   # Makefile.Release. The reason is that the main difference is that release
23001   # uses -Os and debug -g. We can override -Os by passing another -O but we
23002   # usually don't override -g.
23003   if test -f Makefile.Release; then
23004     at_mfile='Makefile.Release'
23005   else
23006     at_mfile='Makefile'
23007   fi
23008   if test -f $at_mfile; then :; else
23009     as_fn_error "Cannot find the Makefile generated by qmake." "$LINENO" 5
23010     cd ..
23011     break
23012   fi
23013
23014   # Find the DEFINES of Qt (should have been named CPPFLAGS).
23015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the DEFINES to use with Qt" >&5
23016 $as_echo_n "checking for the DEFINES to use with Qt... " >&6; }
23017 if test "${at_cv_env_QT_DEFINES+set}" = set; then :
23018   $as_echo_n "(cached) " >&6
23019 else
23020   at_cv_env_QT_DEFINES=`sed "/^DEFINES[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
23021 fi
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_DEFINES" >&5
23023 $as_echo "$at_cv_env_QT_DEFINES" >&6; }
23024   QT_DEFINES=$at_cv_env_QT_DEFINES
23025
23026
23027   # Find the CFLAGS of Qt (We can use Qt in C?!)
23028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CFLAGS to use with Qt" >&5
23029 $as_echo_n "checking for the CFLAGS to use with Qt... " >&6; }
23030 if test "${at_cv_env_QT_CFLAGS+set}" = set; then :
23031   $as_echo_n "(cached) " >&6
23032 else
23033   at_cv_env_QT_CFLAGS=`sed "/^CFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
23034 fi
23035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CFLAGS" >&5
23036 $as_echo "$at_cv_env_QT_CFLAGS" >&6; }
23037   QT_CFLAGS=$at_cv_env_QT_CFLAGS
23038
23039
23040   # Find the CXXFLAGS of Qt.
23041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CXXFLAGS to use with Qt" >&5
23042 $as_echo_n "checking for the CXXFLAGS to use with Qt... " >&6; }
23043 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then :
23044   $as_echo_n "(cached) " >&6
23045 else
23046   at_cv_env_QT_CXXFLAGS=`sed "/^CXXFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
23047 fi
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CXXFLAGS" >&5
23049 $as_echo "$at_cv_env_QT_CXXFLAGS" >&6; }
23050   QT_CXXFLAGS=$at_cv_env_QT_CXXFLAGS
23051
23052
23053   # Find the INCPATH of Qt.
23054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the INCPATH to use with Qt" >&5
23055 $as_echo_n "checking for the INCPATH to use with Qt... " >&6; }
23056 if test "${at_cv_env_QT_INCPATH+set}" = set; then :
23057   $as_echo_n "(cached) " >&6
23058 else
23059   at_cv_env_QT_INCPATH=`sed "/^INCPATH[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
23060 fi
23061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_INCPATH" >&5
23062 $as_echo "$at_cv_env_QT_INCPATH" >&6; }
23063   QT_INCPATH=$at_cv_env_QT_INCPATH
23064
23065
23066   QT_CPPFLAGS="$at_cv_env_QT_DEFINES $at_cv_env_QT_INCPATH"
23067
23068
23069   # Find the LFLAGS of Qt (Should have been named LDFLAGS)
23070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LDFLAGS to use with Qt" >&5
23071 $as_echo_n "checking for the LDFLAGS to use with Qt... " >&6; }
23072 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then :
23073   $as_echo_n "(cached) " >&6
23074 else
23075   at_cv_env_QT_LDFLAGS=`sed "/^LFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
23076 fi
23077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LDFLAGS" >&5
23078 $as_echo "$at_cv_env_QT_LDFLAGS" >&6; }
23079   QT_LFLAGS=$at_cv_env_QT_LDFLAGS
23080
23081   QT_LDFLAGS=$at_cv_env_QT_LDFLAGS
23082
23083
23084   # Find the LIBS of Qt.
23085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LIBS to use with Qt" >&5
23086 $as_echo_n "checking for the LIBS to use with Qt... " >&6; }
23087 if test "${at_cv_env_QT_LIBS+set}" = set; then :
23088   $as_echo_n "(cached) " >&6
23089 else
23090   at_cv_env_QT_LIBS=`sed "/^LIBS[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
23091    if test x$at_darwin = xyes; then
23092      # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
23093      # -F properly. The "bug" has been fixed on 22 October 2006
23094      # by Peter O'Gorman but we provide backward compatibility here.
23095      at_cv_env_QT_LIBS=`echo "$at_cv_env_QT_LIBS" \
23096                              | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
23097    fi
23098
23099 fi
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LIBS" >&5
23101 $as_echo "$at_cv_env_QT_LIBS" >&6; }
23102   QT_LIBS=$at_cv_env_QT_LIBS
23103
23104
23105   cd .. && rm -rf conftest.dir
23106
23107   # Run the user code
23108
23109
23110   done  # end hack (useless for to be able to use break)
23111
23112 fi
23113
23114 # determine from where we can get a SHA-256 implementation
23115 have_sha="no"
23116 if test "$GLIBFOUND" = "yes"; then
23117    # only use glib if we need it anyway, also has to be at lease 2.16
23118
23119 pkg_failed=no
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB216" >&5
23121 $as_echo_n "checking for GLIB216... " >&6; }
23122
23123 if test -n "$PKG_CONFIG"; then
23124     if test -n "$GLIB216_CFLAGS"; then
23125         pkg_cv_GLIB216_CFLAGS="$GLIB216_CFLAGS"
23126     else
23127         if test -n "$PKG_CONFIG" && \
23128     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
23129   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
23130   ac_status=$?
23131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23132   test $ac_status = 0; }; then
23133   pkg_cv_GLIB216_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 2>/dev/null`
23134 else
23135   pkg_failed=yes
23136 fi
23137     fi
23138 else
23139         pkg_failed=untried
23140 fi
23141 if test -n "$PKG_CONFIG"; then
23142     if test -n "$GLIB216_LIBS"; then
23143         pkg_cv_GLIB216_LIBS="$GLIB216_LIBS"
23144     else
23145         if test -n "$PKG_CONFIG" && \
23146     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
23147   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
23148   ac_status=$?
23149   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23150   test $ac_status = 0; }; then
23151   pkg_cv_GLIB216_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null`
23152 else
23153   pkg_failed=yes
23154 fi
23155     fi
23156 else
23157         pkg_failed=untried
23158 fi
23159
23160
23161
23162 if test $pkg_failed = yes; then
23163
23164 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23165         _pkg_short_errors_supported=yes
23166 else
23167         _pkg_short_errors_supported=no
23168 fi
23169         if test $_pkg_short_errors_supported = yes; then
23170                 GLIB216_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.16"`
23171         else
23172                 GLIB216_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.16"`
23173         fi
23174         # Put the nasty error message in config.log where it belongs
23175         echo "$GLIB216_PKG_ERRORS" >&5
23176
23177         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23178 $as_echo "no" >&6; }
23179                 true
23180 elif test $pkg_failed = untried; then
23181         true
23182 else
23183         GLIB216_CFLAGS=$pkg_cv_GLIB216_CFLAGS
23184         GLIB216_LIBS=$pkg_cv_GLIB216_LIBS
23185         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23186 $as_echo "yes" >&6; }
23187
23188 $as_echo "#define USE_SHA256 1" >>confdefs.h
23189
23190                       have_sha="glib"
23191 fi
23192 fi
23193 if test "$have_sha" = "no"; then
23194    # Fallback is Mozilla NSS. In contrast to libgcrypt it has a .pc
23195    # file and a simple API.
23196
23197 pkg_failed=no
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
23199 $as_echo_n "checking for NSS... " >&6; }
23200
23201 if test -n "$PKG_CONFIG"; then
23202     if test -n "$NSS_CFLAGS"; then
23203         pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
23204     else
23205         if test -n "$PKG_CONFIG" && \
23206     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"nss\"\""; } >&5
23207   ($PKG_CONFIG --exists --print-errors ""nss"") 2>&5
23208   ac_status=$?
23209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23210   test $ac_status = 0; }; then
23211   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags ""nss"" 2>/dev/null`
23212 else
23213   pkg_failed=yes
23214 fi
23215     fi
23216 else
23217         pkg_failed=untried
23218 fi
23219 if test -n "$PKG_CONFIG"; then
23220     if test -n "$NSS_LIBS"; then
23221         pkg_cv_NSS_LIBS="$NSS_LIBS"
23222     else
23223         if test -n "$PKG_CONFIG" && \
23224     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"nss\"\""; } >&5
23225   ($PKG_CONFIG --exists --print-errors ""nss"") 2>&5
23226   ac_status=$?
23227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23228   test $ac_status = 0; }; then
23229   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs ""nss"" 2>/dev/null`
23230 else
23231   pkg_failed=yes
23232 fi
23233     fi
23234 else
23235         pkg_failed=untried
23236 fi
23237
23238
23239
23240 if test $pkg_failed = yes; then
23241
23242 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23243         _pkg_short_errors_supported=yes
23244 else
23245         _pkg_short_errors_supported=no
23246 fi
23247         if test $_pkg_short_errors_supported = yes; then
23248                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""nss""`
23249         else
23250                 NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""nss""`
23251         fi
23252         # Put the nasty error message in config.log where it belongs
23253         echo "$NSS_PKG_ERRORS" >&5
23254
23255         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23256 $as_echo "no" >&6; }
23257                 true
23258 elif test $pkg_failed = untried; then
23259         true
23260 else
23261         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
23262         NSS_LIBS=$pkg_cv_NSS_LIBS
23263         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23264 $as_echo "yes" >&6; }
23265
23266 $as_echo "#define USE_SHA256 2" >>confdefs.h
23267
23268                       have_sha="nss"
23269 fi
23270 fi
23271
23272  if test "$enable_shared" = "yes"; then
23273   ENABLE_MODULES_TRUE=
23274   ENABLE_MODULES_FALSE='#'
23275 else
23276   ENABLE_MODULES_TRUE='#'
23277   ENABLE_MODULES_FALSE=
23278 fi
23279
23280 if test "$enable_shared" = "yes"; then
23281
23282 $as_echo "#define ENABLE_MODULES 1" >>confdefs.h
23283
23284 fi
23285
23286
23287
23288
23289 if test "$host" = "arm-apple-darwin"; then
23290
23291 $as_echo "#define IPHONE 1" >>confdefs.h
23292
23293    DEVICE_TYPE=iPhone
23294 fi
23295
23296 if test "$enable_evolution_compatibility" = "yes"; then
23297
23298 $as_echo "#define EVOLUTION_COMPATIBILITY 1" >>confdefs.h
23299
23300    # don't link against libs wrapped by eds_abi_wrapper (no longer limited to EDS alone...)
23301    ECAL_LIBS=
23302    EBOOK_LIBS=
23303    EPACKAGE_LIBS=
23304    BLUEZ_LIBS=
23305 fi
23306  if test "$enable_evolution_compatibility" = "yes"; then
23307   ENABLE_EVOLUTION_COMPATIBILITY_TRUE=
23308   ENABLE_EVOLUTION_COMPATIBILITY_FALSE='#'
23309 else
23310   ENABLE_EVOLUTION_COMPATIBILITY_TRUE='#'
23311   ENABLE_EVOLUTION_COMPATIBILITY_FALSE=
23312 fi
23313
23314
23315 pkg_failed=no
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL_AVAILABLE" >&5
23317 $as_echo_n "checking for LIBICAL_AVAILABLE... " >&6; }
23318
23319 if test -n "$PKG_CONFIG"; then
23320     if test -n "$LIBICAL_AVAILABLE_CFLAGS"; then
23321         pkg_cv_LIBICAL_AVAILABLE_CFLAGS="$LIBICAL_AVAILABLE_CFLAGS"
23322     else
23323         if test -n "$PKG_CONFIG" && \
23324     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical >= 0.43\""; } >&5
23325   ($PKG_CONFIG --exists --print-errors "libical >= 0.43") 2>&5
23326   ac_status=$?
23327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23328   test $ac_status = 0; }; then
23329   pkg_cv_LIBICAL_AVAILABLE_CFLAGS=`$PKG_CONFIG --cflags "libical >= 0.43" 2>/dev/null`
23330 else
23331   pkg_failed=yes
23332 fi
23333     fi
23334 else
23335         pkg_failed=untried
23336 fi
23337 if test -n "$PKG_CONFIG"; then
23338     if test -n "$LIBICAL_AVAILABLE_LIBS"; then
23339         pkg_cv_LIBICAL_AVAILABLE_LIBS="$LIBICAL_AVAILABLE_LIBS"
23340     else
23341         if test -n "$PKG_CONFIG" && \
23342     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical >= 0.43\""; } >&5
23343   ($PKG_CONFIG --exists --print-errors "libical >= 0.43") 2>&5
23344   ac_status=$?
23345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23346   test $ac_status = 0; }; then
23347   pkg_cv_LIBICAL_AVAILABLE_LIBS=`$PKG_CONFIG --libs "libical >= 0.43" 2>/dev/null`
23348 else
23349   pkg_failed=yes
23350 fi
23351     fi
23352 else
23353         pkg_failed=untried
23354 fi
23355
23356
23357
23358 if test $pkg_failed = yes; then
23359
23360 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23361         _pkg_short_errors_supported=yes
23362 else
23363         _pkg_short_errors_supported=no
23364 fi
23365         if test $_pkg_short_errors_supported = yes; then
23366                 LIBICAL_AVAILABLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libical >= 0.43"`
23367         else
23368                 LIBICAL_AVAILABLE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libical >= 0.43"`
23369         fi
23370         # Put the nasty error message in config.log where it belongs
23371         echo "$LIBICAL_AVAILABLE_PKG_ERRORS" >&5
23372
23373         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23374 $as_echo "no" >&6; }
23375                 pass
23376 elif test $pkg_failed = untried; then
23377         pass
23378 else
23379         LIBICAL_AVAILABLE_CFLAGS=$pkg_cv_LIBICAL_AVAILABLE_CFLAGS
23380         LIBICAL_AVAILABLE_LIBS=$pkg_cv_LIBICAL_AVAILABLE_LIBS
23381         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23382 $as_echo "yes" >&6; }
23383
23384 $as_echo "#define HAVE_LIBICAL_R 1" >>confdefs.h
23385
23386 fi
23387
23388 if test "$enable_developer_mode" = "yes"; then
23389 BACKENDS_SEARCH_DIRECTORY="`pwd`/src/backends/"
23390 else
23391 BACKENDS_SEARCH_DIRECTORY='$(libdir)/syncevolution/backends/'
23392 fi
23393
23394 BACKENDS_DIRECTORY='$(libdir)/syncevolution/backends'
23395
23396
23397
23398 # for ActiveSync backend
23399 syncevo_backenddir='$(libdir)'/syncevolution/backends
23400
23401
23402
23403 cat >>confdefs.h <<_ACEOF
23404 #define DEVICE_TYPE "$DEVICE_TYPE"
23405 _ACEOF
23406
23407
23408 for ac_header in stdarg.h valgrind/valgrind.h execinfo.h
23409 do :
23410   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23411 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23412 eval as_val=\$$as_ac_Header
23413    if test "x$as_val" = x""yes; then :
23414   cat >>confdefs.h <<_ACEOF
23415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23416 _ACEOF
23417
23418 fi
23419
23420 done
23421
23422
23423
23424 $as_echo "#define SYNTHESIS 1" >>confdefs.h
23425
23426
23427 # fallback for lack of --with-docdir support in older automake
23428 if test ! "$docdir"; then
23429    docdir = ${datadir}/doc/syncevolution
23430
23431 fi
23432
23433 # Check whether --enable-dbus-timeout-hack was given.
23434 if test "${enable_dbus_timeout_hack+set}" = set; then :
23435   enableval=$enable_dbus_timeout_hack; enable_dbus_timeout_hack=$enableval
23436 else
23437   if test $enable_ebook = "yes" || test $enable_ecal = "yes"; then
23438                   enable_dbus_timeout_hack="yes"
23439                fi
23440 fi
23441
23442 if test "$enable_dbus_timeout_hack" = "yes"; then
23443
23444 $as_echo "#define ENABLE_DBUS_TIMEOUT_HACK 1" >>confdefs.h
23445
23446 fi
23447
23448 # Avoid hard-coding paths in backends. These names are chosen so
23449 # that a backend can alternatively use its own top-level configure
23450 # with PKG_CHECK_MODULES(SYNCEVOLUTION, "syncevolution") to set them.
23451 # need absolute path, use pwd instead of relative $srcdir
23452 SYNCEVOLUTION_CFLAGS=-I`cd $srcdir && pwd`/src
23453 SYNCEVOLUTION_LIBS=`pwd`/src/syncevo/libsyncevolution.la
23454
23455
23456
23457 # invoking syncevolution binary is allowed to fail when cross-compiling
23458  if test "$cross_compiling" = "yes"; then
23459   COND_CROSS_COMPILING_TRUE=
23460   COND_CROSS_COMPILING_FALSE='#'
23461 else
23462   COND_CROSS_COMPILING_TRUE='#'
23463   COND_CROSS_COMPILING_FALSE=
23464 fi
23465
23466
23467 ac_config_files="$ac_config_files Makefile src/syncevo/syncevolution.pc src/synthesis-includes/Makefile po/Makefile.in src/dbus/glib/syncevo-dbus.pc"
23468
23469 cat >confcache <<\_ACEOF
23470 # This file is a shell script that caches the results of configure
23471 # tests run on this system so they can be shared between configure
23472 # scripts and configure runs, see configure's option --config-cache.
23473 # It is not useful on other systems.  If it contains results you don't
23474 # want to keep, you may remove or edit it.
23475 #
23476 # config.status only pays attention to the cache file if you give it
23477 # the --recheck option to rerun configure.
23478 #
23479 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23480 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23481 # following values.
23482
23483 _ACEOF
23484
23485 # The following way of writing the cache mishandles newlines in values,
23486 # but we know of no workaround that is simple, portable, and efficient.
23487 # So, we kill variables containing newlines.
23488 # Ultrix sh set writes to stderr and can't be redirected directly,
23489 # and sets the high bit in the cache file unless we assign to the vars.
23490 (
23491   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23492     eval ac_val=\$$ac_var
23493     case $ac_val in #(
23494     *${as_nl}*)
23495       case $ac_var in #(
23496       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23497 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23498       esac
23499       case $ac_var in #(
23500       _ | IFS | as_nl) ;; #(
23501       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23502       *) { eval $ac_var=; unset $ac_var;} ;;
23503       esac ;;
23504     esac
23505   done
23506
23507   (set) 2>&1 |
23508     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23509     *${as_nl}ac_space=\ *)
23510       # `set' does not quote correctly, so add quotes: double-quote
23511       # substitution turns \\\\ into \\, and sed turns \\ into \.
23512       sed -n \
23513         "s/'/'\\\\''/g;
23514           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23515       ;; #(
23516     *)
23517       # `set' quotes correctly as required by POSIX, so do not add quotes.
23518       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23519       ;;
23520     esac |
23521     sort
23522 ) |
23523   sed '
23524      /^ac_cv_env_/b end
23525      t clear
23526      :clear
23527      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23528      t end
23529      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23530      :end' >>confcache
23531 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23532   if test -w "$cache_file"; then
23533     test "x$cache_file" != "x/dev/null" &&
23534       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23535 $as_echo "$as_me: updating cache $cache_file" >&6;}
23536     cat confcache >$cache_file
23537   else
23538     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23539 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23540   fi
23541 fi
23542 rm -f confcache
23543
23544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23545 # Let make expand exec_prefix.
23546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23547
23548 DEFS=-DHAVE_CONFIG_H
23549
23550 ac_libobjs=
23551 ac_ltlibobjs=
23552 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23553   # 1. Remove the extension, and $U if already installed.
23554   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23555   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23556   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23557   #    will be set to the directory where LIBOBJS objects are built.
23558   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23559   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23560 done
23561 LIBOBJS=$ac_libobjs
23562
23563 LTLIBOBJS=$ac_ltlibobjs
23564
23565
23566  if test -n "$EXEEXT"; then
23567   am__EXEEXT_TRUE=
23568   am__EXEEXT_FALSE='#'
23569 else
23570   am__EXEEXT_TRUE='#'
23571   am__EXEEXT_FALSE=
23572 fi
23573
23574 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23575   as_fn_error "conditional \"AMDEP\" was never defined.
23576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23577 fi
23578 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23579   as_fn_error "conditional \"am__fastdepCC\" was never defined.
23580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23581 fi
23582 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23583   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
23584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23585 fi
23586 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23587   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
23588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23589 fi
23590 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23591   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
23592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23593 fi
23594 if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
23595   as_fn_error "conditional \"ENABLE_UNIT_TESTS\" was never defined.
23596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23597 fi
23598 if test -z "${ENABLE_TESTING_TRUE}" && test -z "${ENABLE_TESTING_FALSE}"; then
23599   as_fn_error "conditional \"ENABLE_TESTING\" was never defined.
23600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23601 fi
23602 if test -z "${ENABLE_OBEX_TRUE}" && test -z "${ENABLE_OBEX_FALSE}"; then
23603   as_fn_error "conditional \"ENABLE_OBEX\" was never defined.
23604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23605 fi
23606 if test -z "${ENABLE_BLUETOOTH_TRUE}" && test -z "${ENABLE_BLUETOOTH_FALSE}"; then
23607   as_fn_error "conditional \"ENABLE_BLUETOOTH\" was never defined.
23608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23609 fi
23610 if test -z "${COND_GTK2_TRUE}" && test -z "${COND_GTK2_FALSE}"; then
23611   as_fn_error "conditional \"COND_GTK2\" was never defined.
23612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23613 fi
23614 if test -z "${COND_GUI_TRUE}" && test -z "${COND_GUI_FALSE}"; then
23615   as_fn_error "conditional \"COND_GUI\" was never defined.
23616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23617 fi
23618 if test -z "${COND_CORE_TRUE}" && test -z "${COND_CORE_FALSE}"; then
23619   as_fn_error "conditional \"COND_CORE\" was never defined.
23620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23621 fi
23622 if test -z "${COND_DBUS_TRUE}" && test -z "${COND_DBUS_FALSE}"; then
23623   as_fn_error "conditional \"COND_DBUS\" was never defined.
23624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23625 fi
23626 if test -z "${COND_GIO_GDBUS_TRUE}" && test -z "${COND_GIO_GDBUS_FALSE}"; then
23627   as_fn_error "conditional \"COND_GIO_GDBUS\" was never defined.
23628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23629 fi
23630 if test -z "${NOTIFY_COMPATIBILITY_TRUE}" && test -z "${NOTIFY_COMPATIBILITY_FALSE}"; then
23631   as_fn_error "conditional \"NOTIFY_COMPATIBILITY\" was never defined.
23632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23633 fi
23634
23635   ac_config_commands="$ac_config_commands po/stamp-it"
23636
23637
23638 if test -z "${COND_MAN_PAGES_TRUE}" && test -z "${COND_MAN_PAGES_FALSE}"; then
23639   as_fn_error "conditional \"COND_MAN_PAGES\" was never defined.
23640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23641 fi
23642 if test -z "${COND_HTML_README_TRUE}" && test -z "${COND_HTML_README_FALSE}"; then
23643   as_fn_error "conditional \"COND_HTML_README\" was never defined.
23644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23645 fi
23646 if test -z "${ENABLE_GNOME_BLUETOOTH_PANEL_TRUE}" && test -z "${ENABLE_GNOME_BLUETOOTH_PANEL_FALSE}"; then
23647   as_fn_error "conditional \"ENABLE_GNOME_BLUETOOTH_PANEL\" was never defined.
23648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23649 fi
23650 if test -z "${COND_DOC_TRUE}" && test -z "${COND_DOC_FALSE}"; then
23651   as_fn_error "conditional \"COND_DOC\" was never defined.
23652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23653 fi
23654 if test -z "${BUILD_ACTIVESYNCD_TRUE}" && test -z "${BUILD_ACTIVESYNCD_FALSE}"; then
23655   as_fn_error "conditional \"BUILD_ACTIVESYNCD\" was never defined.
23656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23657 fi
23658 if test -z "${ENABLE_AKONADI_TRUE}" && test -z "${ENABLE_AKONADI_FALSE}"; then
23659   as_fn_error "conditional \"ENABLE_AKONADI\" was never defined.
23660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23661 fi
23662 if test -z "${ENABLE_ECAL_TRUE}" && test -z "${ENABLE_ECAL_FALSE}"; then
23663   as_fn_error "conditional \"ENABLE_ECAL\" was never defined.
23664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23665 fi
23666 if test -z "${USE_KDE_KWALLET_TRUE}" && test -z "${USE_KDE_KWALLET_FALSE}"; then
23667   as_fn_error "conditional \"USE_KDE_KWALLET\" was never defined.
23668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23669 fi
23670 if test -z "${NEON_COMPATIBILITY_TRUE}" && test -z "${NEON_COMPATIBILITY_FALSE}"; then
23671   as_fn_error "conditional \"NEON_COMPATIBILITY\" was never defined.
23672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23673 fi
23674 if test -z "${ENABLE_QT_DBUS_TRUE}" && test -z "${ENABLE_QT_DBUS_FALSE}"; then
23675   as_fn_error "conditional \"ENABLE_QT_DBUS\" was never defined.
23676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23677 fi
23678 if test -z "${ENABLE_ICAL_TRUE}" && test -z "${ENABLE_ICAL_FALSE}"; then
23679   as_fn_error "conditional \"ENABLE_ICAL\" was never defined.
23680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23681 fi
23682 if test -z "${ENABLE_MODULES_TRUE}" && test -z "${ENABLE_MODULES_FALSE}"; then
23683   as_fn_error "conditional \"ENABLE_MODULES\" was never defined.
23684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23685 fi
23686 if test -z "${ENABLE_EVOLUTION_COMPATIBILITY_TRUE}" && test -z "${ENABLE_EVOLUTION_COMPATIBILITY_FALSE}"; then
23687   as_fn_error "conditional \"ENABLE_EVOLUTION_COMPATIBILITY\" was never defined.
23688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23689 fi
23690 if test -z "${COND_CROSS_COMPILING_TRUE}" && test -z "${COND_CROSS_COMPILING_FALSE}"; then
23691   as_fn_error "conditional \"COND_CROSS_COMPILING\" was never defined.
23692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23693 fi
23694
23695 : ${CONFIG_STATUS=./config.status}
23696 ac_write_fail=0
23697 ac_clean_files_save=$ac_clean_files
23698 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23700 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23701 as_write_fail=0
23702 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23703 #! $SHELL
23704 # Generated by $as_me.
23705 # Run this file to recreate the current configuration.
23706 # Compiler output produced by configure, useful for debugging
23707 # configure, is in config.log if it exists.
23708
23709 debug=false
23710 ac_cs_recheck=false
23711 ac_cs_silent=false
23712
23713 SHELL=\${CONFIG_SHELL-$SHELL}
23714 export SHELL
23715 _ASEOF
23716 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23717 ## -------------------- ##
23718 ## M4sh Initialization. ##
23719 ## -------------------- ##
23720
23721 # Be more Bourne compatible
23722 DUALCASE=1; export DUALCASE # for MKS sh
23723 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23724   emulate sh
23725   NULLCMD=:
23726   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23727   # is contrary to our usage.  Disable this feature.
23728   alias -g '${1+"$@"}'='"$@"'
23729   setopt NO_GLOB_SUBST
23730 else
23731   case `(set -o) 2>/dev/null` in #(
23732   *posix*) :
23733     set -o posix ;; #(
23734   *) :
23735      ;;
23736 esac
23737 fi
23738
23739
23740 as_nl='
23741 '
23742 export as_nl
23743 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23744 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23745 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23746 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23747 # Prefer a ksh shell builtin over an external printf program on Solaris,
23748 # but without wasting forks for bash or zsh.
23749 if test -z "$BASH_VERSION$ZSH_VERSION" \
23750     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23751   as_echo='print -r --'
23752   as_echo_n='print -rn --'
23753 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23754   as_echo='printf %s\n'
23755   as_echo_n='printf %s'
23756 else
23757   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23758     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23759     as_echo_n='/usr/ucb/echo -n'
23760   else
23761     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23762     as_echo_n_body='eval
23763       arg=$1;
23764       case $arg in #(
23765       *"$as_nl"*)
23766         expr "X$arg" : "X\\(.*\\)$as_nl";
23767         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23768       esac;
23769       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23770     '
23771     export as_echo_n_body
23772     as_echo_n='sh -c $as_echo_n_body as_echo'
23773   fi
23774   export as_echo_body
23775   as_echo='sh -c $as_echo_body as_echo'
23776 fi
23777
23778 # The user is always right.
23779 if test "${PATH_SEPARATOR+set}" != set; then
23780   PATH_SEPARATOR=:
23781   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23782     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23783       PATH_SEPARATOR=';'
23784   }
23785 fi
23786
23787
23788 # IFS
23789 # We need space, tab and new line, in precisely that order.  Quoting is
23790 # there to prevent editors from complaining about space-tab.
23791 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23792 # splitting by setting IFS to empty value.)
23793 IFS=" ""        $as_nl"
23794
23795 # Find who we are.  Look in the path if we contain no directory separator.
23796 case $0 in #((
23797   *[\\/]* ) as_myself=$0 ;;
23798   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23799 for as_dir in $PATH
23800 do
23801   IFS=$as_save_IFS
23802   test -z "$as_dir" && as_dir=.
23803     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23804   done
23805 IFS=$as_save_IFS
23806
23807      ;;
23808 esac
23809 # We did not find ourselves, most probably we were run as `sh COMMAND'
23810 # in which case we are not to be found in the path.
23811 if test "x$as_myself" = x; then
23812   as_myself=$0
23813 fi
23814 if test ! -f "$as_myself"; then
23815   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23816   exit 1
23817 fi
23818
23819 # Unset variables that we do not need and which cause bugs (e.g. in
23820 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
23821 # suppresses any "Segmentation fault" message there.  '((' could
23822 # trigger a bug in pdksh 5.2.14.
23823 for as_var in BASH_ENV ENV MAIL MAILPATH
23824 do eval test x\${$as_var+set} = xset \
23825   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23826 done
23827 PS1='$ '
23828 PS2='> '
23829 PS4='+ '
23830
23831 # NLS nuisances.
23832 LC_ALL=C
23833 export LC_ALL
23834 LANGUAGE=C
23835 export LANGUAGE
23836
23837 # CDPATH.
23838 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23839
23840
23841 # as_fn_error ERROR [LINENO LOG_FD]
23842 # ---------------------------------
23843 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23844 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23845 # script with status $?, using 1 if that was 0.
23846 as_fn_error ()
23847 {
23848   as_status=$?; test $as_status -eq 0 && as_status=1
23849   if test "$3"; then
23850     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23851     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
23852   fi
23853   $as_echo "$as_me: error: $1" >&2
23854   as_fn_exit $as_status
23855 } # as_fn_error
23856
23857
23858 # as_fn_set_status STATUS
23859 # -----------------------
23860 # Set $? to STATUS, without forking.
23861 as_fn_set_status ()
23862 {
23863   return $1
23864 } # as_fn_set_status
23865
23866 # as_fn_exit STATUS
23867 # -----------------
23868 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23869 as_fn_exit ()
23870 {
23871   set +e
23872   as_fn_set_status $1
23873   exit $1
23874 } # as_fn_exit
23875
23876 # as_fn_unset VAR
23877 # ---------------
23878 # Portably unset VAR.
23879 as_fn_unset ()
23880 {
23881   { eval $1=; unset $1;}
23882 }
23883 as_unset=as_fn_unset
23884 # as_fn_append VAR VALUE
23885 # ----------------------
23886 # Append the text in VALUE to the end of the definition contained in VAR. Take
23887 # advantage of any shell optimizations that allow amortized linear growth over
23888 # repeated appends, instead of the typical quadratic growth present in naive
23889 # implementations.
23890 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23891   eval 'as_fn_append ()
23892   {
23893     eval $1+=\$2
23894   }'
23895 else
23896   as_fn_append ()
23897   {
23898     eval $1=\$$1\$2
23899   }
23900 fi # as_fn_append
23901
23902 # as_fn_arith ARG...
23903 # ------------------
23904 # Perform arithmetic evaluation on the ARGs, and store the result in the
23905 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23906 # must be portable across $(()) and expr.
23907 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23908   eval 'as_fn_arith ()
23909   {
23910     as_val=$(( $* ))
23911   }'
23912 else
23913   as_fn_arith ()
23914   {
23915     as_val=`expr "$@" || test $? -eq 1`
23916   }
23917 fi # as_fn_arith
23918
23919
23920 if expr a : '\(a\)' >/dev/null 2>&1 &&
23921    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23922   as_expr=expr
23923 else
23924   as_expr=false
23925 fi
23926
23927 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23928   as_basename=basename
23929 else
23930   as_basename=false
23931 fi
23932
23933 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23934   as_dirname=dirname
23935 else
23936   as_dirname=false
23937 fi
23938
23939 as_me=`$as_basename -- "$0" ||
23940 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23941          X"$0" : 'X\(//\)$' \| \
23942          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23943 $as_echo X/"$0" |
23944     sed '/^.*\/\([^/][^/]*\)\/*$/{
23945             s//\1/
23946             q
23947           }
23948           /^X\/\(\/\/\)$/{
23949             s//\1/
23950             q
23951           }
23952           /^X\/\(\/\).*/{
23953             s//\1/
23954             q
23955           }
23956           s/.*/./; q'`
23957
23958 # Avoid depending upon Character Ranges.
23959 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23960 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23961 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23962 as_cr_digits='0123456789'
23963 as_cr_alnum=$as_cr_Letters$as_cr_digits
23964
23965 ECHO_C= ECHO_N= ECHO_T=
23966 case `echo -n x` in #(((((
23967 -n*)
23968   case `echo 'xy\c'` in
23969   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23970   xy)  ECHO_C='\c';;
23971   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
23972        ECHO_T=' ';;
23973   esac;;
23974 *)
23975   ECHO_N='-n';;
23976 esac
23977
23978 rm -f conf$$ conf$$.exe conf$$.file
23979 if test -d conf$$.dir; then
23980   rm -f conf$$.dir/conf$$.file
23981 else
23982   rm -f conf$$.dir
23983   mkdir conf$$.dir 2>/dev/null
23984 fi
23985 if (echo >conf$$.file) 2>/dev/null; then
23986   if ln -s conf$$.file conf$$ 2>/dev/null; then
23987     as_ln_s='ln -s'
23988     # ... but there are two gotchas:
23989     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23990     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23991     # In both cases, we have to default to `cp -p'.
23992     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23993       as_ln_s='cp -p'
23994   elif ln conf$$.file conf$$ 2>/dev/null; then
23995     as_ln_s=ln
23996   else
23997     as_ln_s='cp -p'
23998   fi
23999 else
24000   as_ln_s='cp -p'
24001 fi
24002 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24003 rmdir conf$$.dir 2>/dev/null
24004
24005
24006 # as_fn_mkdir_p
24007 # -------------
24008 # Create "$as_dir" as a directory, including parents if necessary.
24009 as_fn_mkdir_p ()
24010 {
24011
24012   case $as_dir in #(
24013   -*) as_dir=./$as_dir;;
24014   esac
24015   test -d "$as_dir" || eval $as_mkdir_p || {
24016     as_dirs=
24017     while :; do
24018       case $as_dir in #(
24019       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24020       *) as_qdir=$as_dir;;
24021       esac
24022       as_dirs="'$as_qdir' $as_dirs"
24023       as_dir=`$as_dirname -- "$as_dir" ||
24024 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24025          X"$as_dir" : 'X\(//\)[^/]' \| \
24026          X"$as_dir" : 'X\(//\)$' \| \
24027          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24028 $as_echo X"$as_dir" |
24029     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24030             s//\1/
24031             q
24032           }
24033           /^X\(\/\/\)[^/].*/{
24034             s//\1/
24035             q
24036           }
24037           /^X\(\/\/\)$/{
24038             s//\1/
24039             q
24040           }
24041           /^X\(\/\).*/{
24042             s//\1/
24043             q
24044           }
24045           s/.*/./; q'`
24046       test -d "$as_dir" && break
24047     done
24048     test -z "$as_dirs" || eval "mkdir $as_dirs"
24049   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
24050
24051
24052 } # as_fn_mkdir_p
24053 if mkdir -p . 2>/dev/null; then
24054   as_mkdir_p='mkdir -p "$as_dir"'
24055 else
24056   test -d ./-p && rmdir ./-p
24057   as_mkdir_p=false
24058 fi
24059
24060 if test -x / >/dev/null 2>&1; then
24061   as_test_x='test -x'
24062 else
24063   if ls -dL / >/dev/null 2>&1; then
24064     as_ls_L_option=L
24065   else
24066     as_ls_L_option=
24067   fi
24068   as_test_x='
24069     eval sh -c '\''
24070       if test -d "$1"; then
24071         test -d "$1/.";
24072       else
24073         case $1 in #(
24074         -*)set "./$1";;
24075         esac;
24076         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24077         ???[sx]*):;;*)false;;esac;fi
24078     '\'' sh
24079   '
24080 fi
24081 as_executable_p=$as_test_x
24082
24083 # Sed expression to map a string onto a valid CPP name.
24084 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24085
24086 # Sed expression to map a string onto a valid variable name.
24087 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24088
24089
24090 exec 6>&1
24091 ## ----------------------------------- ##
24092 ## Main body of $CONFIG_STATUS script. ##
24093 ## ----------------------------------- ##
24094 _ASEOF
24095 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24096
24097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24098 # Save the log message, to keep $0 and so on meaningful, and to
24099 # report actual input values of CONFIG_FILES etc. instead of their
24100 # values after options handling.
24101 ac_log="
24102 This file was extended by syncevolution $as_me 1.2.99+20120606+SE+ff65aef+SYSYNC+2728cb4, which was
24103 generated by GNU Autoconf 2.65.  Invocation command line was
24104
24105   CONFIG_FILES    = $CONFIG_FILES
24106   CONFIG_HEADERS  = $CONFIG_HEADERS
24107   CONFIG_LINKS    = $CONFIG_LINKS
24108   CONFIG_COMMANDS = $CONFIG_COMMANDS
24109   $ $0 $@
24110
24111 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24112 "
24113
24114 _ACEOF
24115
24116 case $ac_config_files in *"
24117 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24118 esac
24119
24120 case $ac_config_headers in *"
24121 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24122 esac
24123
24124
24125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24126 # Files that config.status was made for.
24127 config_files="$ac_config_files"
24128 config_headers="$ac_config_headers"
24129 config_commands="$ac_config_commands"
24130
24131 _ACEOF
24132
24133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24134 ac_cs_usage="\
24135 \`$as_me' instantiates files and other configuration actions
24136 from templates according to the current configuration.  Unless the files
24137 and actions are specified as TAGs, all are instantiated by default.
24138
24139 Usage: $0 [OPTION]... [TAG]...
24140
24141   -h, --help       print this help, then exit
24142   -V, --version    print version number and configuration settings, then exit
24143       --config     print configuration, then exit
24144   -q, --quiet, --silent
24145                    do not print progress messages
24146   -d, --debug      don't remove temporary files
24147       --recheck    update $as_me by reconfiguring in the same conditions
24148       --file=FILE[:TEMPLATE]
24149                    instantiate the configuration file FILE
24150       --header=FILE[:TEMPLATE]
24151                    instantiate the configuration header FILE
24152
24153 Configuration files:
24154 $config_files
24155
24156 Configuration headers:
24157 $config_headers
24158
24159 Configuration commands:
24160 $config_commands
24161
24162 Report bugs to the package provider."
24163
24164 _ACEOF
24165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24166 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24167 ac_cs_version="\\
24168 syncevolution config.status 1.2.99+20120606+SE+ff65aef+SYSYNC+2728cb4
24169 configured by $0, generated by GNU Autoconf 2.65,
24170   with options \\"\$ac_cs_config\\"
24171
24172 Copyright (C) 2009 Free Software Foundation, Inc.
24173 This config.status script is free software; the Free Software Foundation
24174 gives unlimited permission to copy, distribute and modify it."
24175
24176 ac_pwd='$ac_pwd'
24177 srcdir='$srcdir'
24178 INSTALL='$INSTALL'
24179 MKDIR_P='$MKDIR_P'
24180 AWK='$AWK'
24181 test -n "\$AWK" || AWK=awk
24182 _ACEOF
24183
24184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24185 # The default lists apply if the user does not specify any file.
24186 ac_need_defaults=:
24187 while test $# != 0
24188 do
24189   case $1 in
24190   --*=*)
24191     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24192     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24193     ac_shift=:
24194     ;;
24195   *)
24196     ac_option=$1
24197     ac_optarg=$2
24198     ac_shift=shift
24199     ;;
24200   esac
24201
24202   case $ac_option in
24203   # Handling of the options.
24204   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24205     ac_cs_recheck=: ;;
24206   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24207     $as_echo "$ac_cs_version"; exit ;;
24208   --config | --confi | --conf | --con | --co | --c )
24209     $as_echo "$ac_cs_config"; exit ;;
24210   --debug | --debu | --deb | --de | --d | -d )
24211     debug=: ;;
24212   --file | --fil | --fi | --f )
24213     $ac_shift
24214     case $ac_optarg in
24215     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24216     esac
24217     as_fn_append CONFIG_FILES " '$ac_optarg'"
24218     ac_need_defaults=false;;
24219   --header | --heade | --head | --hea )
24220     $ac_shift
24221     case $ac_optarg in
24222     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24223     esac
24224     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24225     ac_need_defaults=false;;
24226   --he | --h)
24227     # Conflict between --help and --header
24228     as_fn_error "ambiguous option: \`$1'
24229 Try \`$0 --help' for more information.";;
24230   --help | --hel | -h )
24231     $as_echo "$ac_cs_usage"; exit ;;
24232   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24233   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24234     ac_cs_silent=: ;;
24235
24236   # This is an error.
24237   -*) as_fn_error "unrecognized option: \`$1'
24238 Try \`$0 --help' for more information." ;;
24239
24240   *) as_fn_append ac_config_targets " $1"
24241      ac_need_defaults=false ;;
24242
24243   esac
24244   shift
24245 done
24246
24247 ac_configure_extra_args=
24248
24249 if $ac_cs_silent; then
24250   exec 6>/dev/null
24251   ac_configure_extra_args="$ac_configure_extra_args --silent"
24252 fi
24253
24254 _ACEOF
24255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24256 if \$ac_cs_recheck; then
24257   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24258   shift
24259   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24260   CONFIG_SHELL='$SHELL'
24261   export CONFIG_SHELL
24262   exec "\$@"
24263 fi
24264
24265 _ACEOF
24266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24267 exec 5>>config.log
24268 {
24269   echo
24270   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24271 ## Running $as_me. ##
24272 _ASBOX
24273   $as_echo "$ac_log"
24274 } >&5
24275
24276 _ACEOF
24277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24278 #
24279 # INIT-COMMANDS
24280 #
24281 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24282
24283
24284 # The HP-UX ksh and POSIX shell print the target directory to stdout
24285 # if CDPATH is set.
24286 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24287
24288 sed_quote_subst='$sed_quote_subst'
24289 double_quote_subst='$double_quote_subst'
24290 delay_variable_subst='$delay_variable_subst'
24291 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
24292 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
24293 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
24294 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
24295 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
24296 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
24297 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
24298 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
24299 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
24300 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
24301 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
24302 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
24303 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
24304 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
24305 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
24306 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
24307 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
24308 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
24309 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
24310 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
24311 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
24312 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
24313 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
24314 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
24315 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
24316 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
24317 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
24318 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24319 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
24320 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
24321 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
24322 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
24323 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
24324 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
24325 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
24326 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24327 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24328 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24329 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
24330 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
24331 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
24332 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
24333 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
24334 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
24335 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"`'
24336 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"`'
24337 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
24338 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
24339 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
24340 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
24341 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
24342 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
24343 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
24344 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
24345 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
24346 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
24347 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
24348 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
24349 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
24350 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
24351 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
24352 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
24353 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24354 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24355 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
24356 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
24357 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
24358 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
24359 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
24360 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24361 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24362 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24363 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24364 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24365 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24366 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
24367 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
24368 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
24369 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
24370 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
24371 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
24372 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
24373 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
24374 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
24375 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
24376 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
24377 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
24378 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
24379 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
24380 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
24381 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24382 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
24383 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
24384 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24385 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
24386 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
24387 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
24388 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
24389 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
24390 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
24391 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
24392 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
24393 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
24394 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
24395 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
24396 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24397 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24398 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24399 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
24400 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
24401 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
24402 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
24403 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
24404 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
24405 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
24406 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
24407 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
24408 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
24409 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
24410 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
24411 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
24412 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
24413 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
24414 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
24415 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24416 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24417 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24418 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24419 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24420 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24421 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24422 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24423 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24424 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24425 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24426 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24427 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24428 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24429 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24430 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24431 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24432 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24433 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24434 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24435 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24436 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24437 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24438 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24439 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24440 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24441 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24442 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24443 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24444 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24445 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24446 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24447 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24448 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24449 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24450 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24451 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24452 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24453 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24454 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24455 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24456 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24457 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24458 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24459 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24460 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24461 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24462
24463 LTCC='$LTCC'
24464 LTCFLAGS='$LTCFLAGS'
24465 compiler='$compiler_DEFAULT'
24466
24467 # Quote evaled strings.
24468 for var in SED \
24469 GREP \
24470 EGREP \
24471 FGREP \
24472 LD \
24473 NM \
24474 LN_S \
24475 lt_SP2NL \
24476 lt_NL2SP \
24477 reload_flag \
24478 OBJDUMP \
24479 deplibs_check_method \
24480 file_magic_cmd \
24481 AR \
24482 AR_FLAGS \
24483 STRIP \
24484 RANLIB \
24485 CC \
24486 CFLAGS \
24487 compiler \
24488 lt_cv_sys_global_symbol_pipe \
24489 lt_cv_sys_global_symbol_to_cdecl \
24490 lt_cv_sys_global_symbol_to_c_name_address \
24491 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24492 SHELL \
24493 ECHO \
24494 lt_prog_compiler_no_builtin_flag \
24495 lt_prog_compiler_wl \
24496 lt_prog_compiler_pic \
24497 lt_prog_compiler_static \
24498 lt_cv_prog_compiler_c_o \
24499 need_locks \
24500 DSYMUTIL \
24501 NMEDIT \
24502 LIPO \
24503 OTOOL \
24504 OTOOL64 \
24505 shrext_cmds \
24506 export_dynamic_flag_spec \
24507 whole_archive_flag_spec \
24508 compiler_needs_object \
24509 with_gnu_ld \
24510 allow_undefined_flag \
24511 no_undefined_flag \
24512 hardcode_libdir_flag_spec \
24513 hardcode_libdir_flag_spec_ld \
24514 hardcode_libdir_separator \
24515 fix_srcfile_path \
24516 exclude_expsyms \
24517 include_expsyms \
24518 file_list_spec \
24519 variables_saved_for_relink \
24520 libname_spec \
24521 library_names_spec \
24522 soname_spec \
24523 finish_eval \
24524 old_striplib \
24525 striplib \
24526 compiler_lib_search_dirs \
24527 predep_objects \
24528 postdep_objects \
24529 predeps \
24530 postdeps \
24531 compiler_lib_search_path \
24532 LD_CXX \
24533 compiler_CXX \
24534 lt_prog_compiler_no_builtin_flag_CXX \
24535 lt_prog_compiler_wl_CXX \
24536 lt_prog_compiler_pic_CXX \
24537 lt_prog_compiler_static_CXX \
24538 lt_cv_prog_compiler_c_o_CXX \
24539 export_dynamic_flag_spec_CXX \
24540 whole_archive_flag_spec_CXX \
24541 compiler_needs_object_CXX \
24542 with_gnu_ld_CXX \
24543 allow_undefined_flag_CXX \
24544 no_undefined_flag_CXX \
24545 hardcode_libdir_flag_spec_CXX \
24546 hardcode_libdir_flag_spec_ld_CXX \
24547 hardcode_libdir_separator_CXX \
24548 fix_srcfile_path_CXX \
24549 exclude_expsyms_CXX \
24550 include_expsyms_CXX \
24551 file_list_spec_CXX \
24552 compiler_lib_search_dirs_CXX \
24553 predep_objects_CXX \
24554 postdep_objects_CXX \
24555 predeps_CXX \
24556 postdeps_CXX \
24557 compiler_lib_search_path_CXX; do
24558     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
24559     *[\\\\\\\`\\"\\\$]*)
24560       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
24561       ;;
24562     *)
24563       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24564       ;;
24565     esac
24566 done
24567
24568 # Double-quote double-evaled strings.
24569 for var in reload_cmds \
24570 old_postinstall_cmds \
24571 old_postuninstall_cmds \
24572 old_archive_cmds \
24573 extract_expsyms_cmds \
24574 old_archive_from_new_cmds \
24575 old_archive_from_expsyms_cmds \
24576 archive_cmds \
24577 archive_expsym_cmds \
24578 module_cmds \
24579 module_expsym_cmds \
24580 export_symbols_cmds \
24581 prelink_cmds \
24582 postinstall_cmds \
24583 postuninstall_cmds \
24584 finish_cmds \
24585 sys_lib_search_path_spec \
24586 sys_lib_dlsearch_path_spec \
24587 old_archive_cmds_CXX \
24588 old_archive_from_new_cmds_CXX \
24589 old_archive_from_expsyms_cmds_CXX \
24590 archive_cmds_CXX \
24591 archive_expsym_cmds_CXX \
24592 module_cmds_CXX \
24593 module_expsym_cmds_CXX \
24594 export_symbols_cmds_CXX \
24595 prelink_cmds_CXX; do
24596     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
24597     *[\\\\\\\`\\"\\\$]*)
24598       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
24599       ;;
24600     *)
24601       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24602       ;;
24603     esac
24604 done
24605
24606 # Fix-up fallback echo if it was mangled by the above quoting rules.
24607 case \$lt_ECHO in
24608 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
24609   ;;
24610 esac
24611
24612 ac_aux_dir='$ac_aux_dir'
24613 xsi_shell='$xsi_shell'
24614 lt_shell_append='$lt_shell_append'
24615
24616 # See if we are running on zsh, and set the options which allow our
24617 # commands through without removal of \ escapes INIT.
24618 if test -n "\${ZSH_VERSION+set}" ; then
24619    setopt NO_GLOB_SUBST
24620 fi
24621
24622
24623     PACKAGE='$PACKAGE'
24624     VERSION='$VERSION'
24625     TIMESTAMP='$TIMESTAMP'
24626     RM='$RM'
24627     ofile='$ofile'
24628
24629
24630
24631
24632
24633
24634
24635 _ACEOF
24636
24637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24638
24639 # Handling of arguments.
24640 for ac_config_target in $ac_config_targets
24641 do
24642   case $ac_config_target in
24643     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24644     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24645     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24646     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24647     "src/dbus/qt/syncevolution-qt-dbus.pc") CONFIG_FILES="$CONFIG_FILES src/dbus/qt/syncevolution-qt-dbus.pc" ;;
24648     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24649     "src/syncevo/syncevolution.pc") CONFIG_FILES="$CONFIG_FILES src/syncevo/syncevolution.pc" ;;
24650     "src/synthesis-includes/Makefile") CONFIG_FILES="$CONFIG_FILES src/synthesis-includes/Makefile" ;;
24651     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24652     "src/dbus/glib/syncevo-dbus.pc") CONFIG_FILES="$CONFIG_FILES src/dbus/glib/syncevo-dbus.pc" ;;
24653     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
24654
24655   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24656   esac
24657 done
24658
24659
24660 # If the user did not use the arguments to specify the items to instantiate,
24661 # then the envvar interface is used.  Set only those that are not.
24662 # We use the long form for the default assignment because of an extremely
24663 # bizarre bug on SunOS 4.1.3.
24664 if $ac_need_defaults; then
24665   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24666   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24667   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24668 fi
24669
24670 # Have a temporary directory for convenience.  Make it in the build tree
24671 # simply because there is no reason against having it here, and in addition,
24672 # creating and moving files from /tmp can sometimes cause problems.
24673 # Hook for its removal unless debugging.
24674 # Note that there is a small window in which the directory will not be cleaned:
24675 # after its creation but before its name has been assigned to `$tmp'.
24676 $debug ||
24677 {
24678   tmp=
24679   trap 'exit_status=$?
24680   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24681 ' 0
24682   trap 'as_fn_exit 1' 1 2 13 15
24683 }
24684 # Create a (secure) tmp directory for tmp files.
24685
24686 {
24687   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24688   test -n "$tmp" && test -d "$tmp"
24689 }  ||
24690 {
24691   tmp=./conf$$-$RANDOM
24692   (umask 077 && mkdir "$tmp")
24693 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
24694
24695 # Set up the scripts for CONFIG_FILES section.
24696 # No need to generate them if there are no CONFIG_FILES.
24697 # This happens for instance with `./config.status config.h'.
24698 if test -n "$CONFIG_FILES"; then
24699
24700
24701 ac_cr=`echo X | tr X '\015'`
24702 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24703 # But we know of no other shell where ac_cr would be empty at this
24704 # point, so we can use a bashism as a fallback.
24705 if test "x$ac_cr" = x; then
24706   eval ac_cr=\$\'\\r\'
24707 fi
24708 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24709 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24710   ac_cs_awk_cr='\r'
24711 else
24712   ac_cs_awk_cr=$ac_cr
24713 fi
24714
24715 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24716 _ACEOF
24717
24718
24719 {
24720   echo "cat >conf$$subs.awk <<_ACEOF" &&
24721   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24722   echo "_ACEOF"
24723 } >conf$$subs.sh ||
24724   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24725 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24726 ac_delim='%!_!# '
24727 for ac_last_try in false false false false false :; do
24728   . ./conf$$subs.sh ||
24729     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24730
24731   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24732   if test $ac_delim_n = $ac_delim_num; then
24733     break
24734   elif $ac_last_try; then
24735     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24736   else
24737     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24738   fi
24739 done
24740 rm -f conf$$subs.sh
24741
24742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24743 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24744 _ACEOF
24745 sed -n '
24746 h
24747 s/^/S["/; s/!.*/"]=/
24748 p
24749 g
24750 s/^[^!]*!//
24751 :repl
24752 t repl
24753 s/'"$ac_delim"'$//
24754 t delim
24755 :nl
24756 h
24757 s/\(.\{148\}\)..*/\1/
24758 t more1
24759 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24760 p
24761 n
24762 b repl
24763 :more1
24764 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24765 p
24766 g
24767 s/.\{148\}//
24768 t nl
24769 :delim
24770 h
24771 s/\(.\{148\}\)..*/\1/
24772 t more2
24773 s/["\\]/\\&/g; s/^/"/; s/$/"/
24774 p
24775 b
24776 :more2
24777 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24778 p
24779 g
24780 s/.\{148\}//
24781 t delim
24782 ' <conf$$subs.awk | sed '
24783 /^[^""]/{
24784   N
24785   s/\n//
24786 }
24787 ' >>$CONFIG_STATUS || ac_write_fail=1
24788 rm -f conf$$subs.awk
24789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24790 _ACAWK
24791 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24792   for (key in S) S_is_set[key] = 1
24793   FS = "\a"
24794
24795 }
24796 {
24797   line = $ 0
24798   nfields = split(line, field, "@")
24799   substed = 0
24800   len = length(field[1])
24801   for (i = 2; i < nfields; i++) {
24802     key = field[i]
24803     keylen = length(key)
24804     if (S_is_set[key]) {
24805       value = S[key]
24806       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24807       len += length(value) + length(field[++i])
24808       substed = 1
24809     } else
24810       len += 1 + keylen
24811   }
24812
24813   print line
24814 }
24815
24816 _ACAWK
24817 _ACEOF
24818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24819 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24820   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24821 else
24822   cat
24823 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24824   || as_fn_error "could not setup config files machinery" "$LINENO" 5
24825 _ACEOF
24826
24827 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24828 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24829 # trailing colons and then remove the whole line if VPATH becomes empty
24830 # (actually we leave an empty line to preserve line numbers).
24831 if test "x$srcdir" = x.; then
24832   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24833 s/:*\$(srcdir):*/:/
24834 s/:*\${srcdir}:*/:/
24835 s/:*@srcdir@:*/:/
24836 s/^\([^=]*=[     ]*\):*/\1/
24837 s/:*$//
24838 s/^[^=]*=[       ]*$//
24839 }'
24840 fi
24841
24842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24843 fi # test -n "$CONFIG_FILES"
24844
24845 # Set up the scripts for CONFIG_HEADERS section.
24846 # No need to generate them if there are no CONFIG_HEADERS.
24847 # This happens for instance with `./config.status Makefile'.
24848 if test -n "$CONFIG_HEADERS"; then
24849 cat >"$tmp/defines.awk" <<\_ACAWK ||
24850 BEGIN {
24851 _ACEOF
24852
24853 # Transform confdefs.h into an awk script `defines.awk', embedded as
24854 # here-document in config.status, that substitutes the proper values into
24855 # config.h.in to produce config.h.
24856
24857 # Create a delimiter string that does not exist in confdefs.h, to ease
24858 # handling of long lines.
24859 ac_delim='%!_!# '
24860 for ac_last_try in false false :; do
24861   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24862   if test -z "$ac_t"; then
24863     break
24864   elif $ac_last_try; then
24865     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
24866   else
24867     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24868   fi
24869 done
24870
24871 # For the awk script, D is an array of macro values keyed by name,
24872 # likewise P contains macro parameters if any.  Preserve backslash
24873 # newline sequences.
24874
24875 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24876 sed -n '
24877 s/.\{148\}/&'"$ac_delim"'/g
24878 t rset
24879 :rset
24880 s/^[     ]*#[    ]*define[       ][      ]*/ /
24881 t def
24882 d
24883 :def
24884 s/\\$//
24885 t bsnl
24886 s/["\\]/\\&/g
24887 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
24888 D["\1"]=" \3"/p
24889 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
24890 d
24891 :bsnl
24892 s/["\\]/\\&/g
24893 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
24894 D["\1"]=" \3\\\\\\n"\\/p
24895 t cont
24896 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24897 t cont
24898 d
24899 :cont
24900 n
24901 s/.\{148\}/&'"$ac_delim"'/g
24902 t clear
24903 :clear
24904 s/\\$//
24905 t bsnlc
24906 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24907 d
24908 :bsnlc
24909 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24910 b cont
24911 ' <confdefs.h | sed '
24912 s/'"$ac_delim"'/"\\\
24913 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24914
24915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24916   for (key in D) D_is_set[key] = 1
24917   FS = "\a"
24918 }
24919 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24920   line = \$ 0
24921   split(line, arg, " ")
24922   if (arg[1] == "#") {
24923     defundef = arg[2]
24924     mac1 = arg[3]
24925   } else {
24926     defundef = substr(arg[1], 2)
24927     mac1 = arg[2]
24928   }
24929   split(mac1, mac2, "(") #)
24930   macro = mac2[1]
24931   prefix = substr(line, 1, index(line, defundef) - 1)
24932   if (D_is_set[macro]) {
24933     # Preserve the white space surrounding the "#".
24934     print prefix "define", macro P[macro] D[macro]
24935     next
24936   } else {
24937     # Replace #undef with comments.  This is necessary, for example,
24938     # in the case of _POSIX_SOURCE, which is predefined and required
24939     # on some systems where configure will not decide to define it.
24940     if (defundef == "undef") {
24941       print "/*", prefix defundef, macro, "*/"
24942       next
24943     }
24944   }
24945 }
24946 { print }
24947 _ACAWK
24948 _ACEOF
24949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24950   as_fn_error "could not setup config headers machinery" "$LINENO" 5
24951 fi # test -n "$CONFIG_HEADERS"
24952
24953
24954 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
24955 shift
24956 for ac_tag
24957 do
24958   case $ac_tag in
24959   :[FHLC]) ac_mode=$ac_tag; continue;;
24960   esac
24961   case $ac_mode$ac_tag in
24962   :[FHL]*:*);;
24963   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
24964   :[FH]-) ac_tag=-:-;;
24965   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24966   esac
24967   ac_save_IFS=$IFS
24968   IFS=:
24969   set x $ac_tag
24970   IFS=$ac_save_IFS
24971   shift
24972   ac_file=$1
24973   shift
24974
24975   case $ac_mode in
24976   :L) ac_source=$1;;
24977   :[FH])
24978     ac_file_inputs=
24979     for ac_f
24980     do
24981       case $ac_f in
24982       -) ac_f="$tmp/stdin";;
24983       *) # Look for the file first in the build tree, then in the source tree
24984          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24985          # because $ac_f cannot contain `:'.
24986          test -f "$ac_f" ||
24987            case $ac_f in
24988            [\\/$]*) false;;
24989            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24990            esac ||
24991            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24992       esac
24993       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24994       as_fn_append ac_file_inputs " '$ac_f'"
24995     done
24996
24997     # Let's still pretend it is `configure' which instantiates (i.e., don't
24998     # use $as_me), people would be surprised to read:
24999     #    /* config.h.  Generated by config.status.  */
25000     configure_input='Generated from '`
25001           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25002         `' by configure.'
25003     if test x"$ac_file" != x-; then
25004       configure_input="$ac_file.  $configure_input"
25005       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25006 $as_echo "$as_me: creating $ac_file" >&6;}
25007     fi
25008     # Neutralize special characters interpreted by sed in replacement strings.
25009     case $configure_input in #(
25010     *\&* | *\|* | *\\* )
25011        ac_sed_conf_input=`$as_echo "$configure_input" |
25012        sed 's/[\\\\&|]/\\\\&/g'`;; #(
25013     *) ac_sed_conf_input=$configure_input;;
25014     esac
25015
25016     case $ac_tag in
25017     *:-:* | *:-) cat >"$tmp/stdin" \
25018       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25019     esac
25020     ;;
25021   esac
25022
25023   ac_dir=`$as_dirname -- "$ac_file" ||
25024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25025          X"$ac_file" : 'X\(//\)[^/]' \| \
25026          X"$ac_file" : 'X\(//\)$' \| \
25027          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25028 $as_echo X"$ac_file" |
25029     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25030             s//\1/
25031             q
25032           }
25033           /^X\(\/\/\)[^/].*/{
25034             s//\1/
25035             q
25036           }
25037           /^X\(\/\/\)$/{
25038             s//\1/
25039             q
25040           }
25041           /^X\(\/\).*/{
25042             s//\1/
25043             q
25044           }
25045           s/.*/./; q'`
25046   as_dir="$ac_dir"; as_fn_mkdir_p
25047   ac_builddir=.
25048
25049 case "$ac_dir" in
25050 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25051 *)
25052   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25053   # A ".." for each directory in $ac_dir_suffix.
25054   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25055   case $ac_top_builddir_sub in
25056   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25057   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25058   esac ;;
25059 esac
25060 ac_abs_top_builddir=$ac_pwd
25061 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25062 # for backward compatibility:
25063 ac_top_builddir=$ac_top_build_prefix
25064
25065 case $srcdir in
25066   .)  # We are building in place.
25067     ac_srcdir=.
25068     ac_top_srcdir=$ac_top_builddir_sub
25069     ac_abs_top_srcdir=$ac_pwd ;;
25070   [\\/]* | ?:[\\/]* )  # Absolute name.
25071     ac_srcdir=$srcdir$ac_dir_suffix;
25072     ac_top_srcdir=$srcdir
25073     ac_abs_top_srcdir=$srcdir ;;
25074   *) # Relative name.
25075     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25076     ac_top_srcdir=$ac_top_build_prefix$srcdir
25077     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25078 esac
25079 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25080
25081
25082   case $ac_mode in
25083   :F)
25084   #
25085   # CONFIG_FILE
25086   #
25087
25088   case $INSTALL in
25089   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25090   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25091   esac
25092   ac_MKDIR_P=$MKDIR_P
25093   case $MKDIR_P in
25094   [\\/$]* | ?:[\\/]* ) ;;
25095   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25096   esac
25097 _ACEOF
25098
25099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25100 # If the template does not know about datarootdir, expand it.
25101 # FIXME: This hack should be removed a few years after 2.60.
25102 ac_datarootdir_hack=; ac_datarootdir_seen=
25103 ac_sed_dataroot='
25104 /datarootdir/ {
25105   p
25106   q
25107 }
25108 /@datadir@/p
25109 /@docdir@/p
25110 /@infodir@/p
25111 /@localedir@/p
25112 /@mandir@/p'
25113 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25114 *datarootdir*) ac_datarootdir_seen=yes;;
25115 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25116   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25117 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25118 _ACEOF
25119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25120   ac_datarootdir_hack='
25121   s&@datadir@&$datadir&g
25122   s&@docdir@&$docdir&g
25123   s&@infodir@&$infodir&g
25124   s&@localedir@&$localedir&g
25125   s&@mandir@&$mandir&g
25126   s&\\\${datarootdir}&$datarootdir&g' ;;
25127 esac
25128 _ACEOF
25129
25130 # Neutralize VPATH when `$srcdir' = `.'.
25131 # Shell code in configure.ac might set extrasub.
25132 # FIXME: do we really want to maintain this feature?
25133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25134 ac_sed_extra="$ac_vpsub
25135 $extrasub
25136 _ACEOF
25137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25138 :t
25139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25140 s|@configure_input@|$ac_sed_conf_input|;t t
25141 s&@top_builddir@&$ac_top_builddir_sub&;t t
25142 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25143 s&@srcdir@&$ac_srcdir&;t t
25144 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25145 s&@top_srcdir@&$ac_top_srcdir&;t t
25146 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25147 s&@builddir@&$ac_builddir&;t t
25148 s&@abs_builddir@&$ac_abs_builddir&;t t
25149 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25150 s&@INSTALL@&$ac_INSTALL&;t t
25151 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25152 $ac_datarootdir_hack
25153 "
25154 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
25155   || as_fn_error "could not create $ac_file" "$LINENO" 5
25156
25157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25158   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25159   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25160   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25161 which seems to be undefined.  Please make sure it is defined." >&5
25162 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25163 which seems to be undefined.  Please make sure it is defined." >&2;}
25164
25165   rm -f "$tmp/stdin"
25166   case $ac_file in
25167   -) cat "$tmp/out" && rm -f "$tmp/out";;
25168   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25169   esac \
25170   || as_fn_error "could not create $ac_file" "$LINENO" 5
25171  ;;
25172   :H)
25173   #
25174   # CONFIG_HEADER
25175   #
25176   if test x"$ac_file" != x-; then
25177     {
25178       $as_echo "/* $configure_input  */" \
25179       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25180     } >"$tmp/config.h" \
25181       || as_fn_error "could not create $ac_file" "$LINENO" 5
25182     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25183       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25184 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25185     else
25186       rm -f "$ac_file"
25187       mv "$tmp/config.h" "$ac_file" \
25188         || as_fn_error "could not create $ac_file" "$LINENO" 5
25189     fi
25190   else
25191     $as_echo "/* $configure_input  */" \
25192       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25193       || as_fn_error "could not create -" "$LINENO" 5
25194   fi
25195 # Compute "$ac_file"'s index in $config_headers.
25196 _am_arg="$ac_file"
25197 _am_stamp_count=1
25198 for _am_header in $config_headers :; do
25199   case $_am_header in
25200     $_am_arg | $_am_arg:* )
25201       break ;;
25202     * )
25203       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25204   esac
25205 done
25206 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25207 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25208          X"$_am_arg" : 'X\(//\)[^/]' \| \
25209          X"$_am_arg" : 'X\(//\)$' \| \
25210          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25211 $as_echo X"$_am_arg" |
25212     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25213             s//\1/
25214             q
25215           }
25216           /^X\(\/\/\)[^/].*/{
25217             s//\1/
25218             q
25219           }
25220           /^X\(\/\/\)$/{
25221             s//\1/
25222             q
25223           }
25224           /^X\(\/\).*/{
25225             s//\1/
25226             q
25227           }
25228           s/.*/./; q'`/stamp-h$_am_stamp_count
25229  ;;
25230
25231   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25232 $as_echo "$as_me: executing $ac_file commands" >&6;}
25233  ;;
25234   esac
25235
25236
25237   case $ac_file$ac_mode in
25238     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25239   # Autoconf 2.62 quotes --file arguments for eval, but not when files
25240   # are listed without --file.  Let's play safe and only enable the eval
25241   # if we detect the quoting.
25242   case $CONFIG_FILES in
25243   *\'*) eval set x "$CONFIG_FILES" ;;
25244   *)   set x $CONFIG_FILES ;;
25245   esac
25246   shift
25247   for mf
25248   do
25249     # Strip MF so we end up with the name of the file.
25250     mf=`echo "$mf" | sed -e 's/:.*$//'`
25251     # Check whether this is an Automake generated Makefile or not.
25252     # We used to match only the files named `Makefile.in', but
25253     # some people rename them; so instead we look at the file content.
25254     # Grep'ing the first line is not enough: some people post-process
25255     # each Makefile.in and add a new line on top of each file to say so.
25256     # Grep'ing the whole file is not good either: AIX grep has a line
25257     # limit of 2048, but all sed's we know have understand at least 4000.
25258     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25259       dirpart=`$as_dirname -- "$mf" ||
25260 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25261          X"$mf" : 'X\(//\)[^/]' \| \
25262          X"$mf" : 'X\(//\)$' \| \
25263          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25264 $as_echo X"$mf" |
25265     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25266             s//\1/
25267             q
25268           }
25269           /^X\(\/\/\)[^/].*/{
25270             s//\1/
25271             q
25272           }
25273           /^X\(\/\/\)$/{
25274             s//\1/
25275             q
25276           }
25277           /^X\(\/\).*/{
25278             s//\1/
25279             q
25280           }
25281           s/.*/./; q'`
25282     else
25283       continue
25284     fi
25285     # Extract the definition of DEPDIR, am__include, and am__quote
25286     # from the Makefile without running `make'.
25287     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25288     test -z "$DEPDIR" && continue
25289     am__include=`sed -n 's/^am__include = //p' < "$mf"`
25290     test -z "am__include" && continue
25291     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25292     # When using ansi2knr, U may be empty or an underscore; expand it
25293     U=`sed -n 's/^U = //p' < "$mf"`
25294     # Find all dependency output files, they are included files with
25295     # $(DEPDIR) in their names.  We invoke sed twice because it is the
25296     # simplest approach to changing $(DEPDIR) to its actual value in the
25297     # expansion.
25298     for file in `sed -n "
25299       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25300          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25301       # Make sure the directory exists.
25302       test -f "$dirpart/$file" && continue
25303       fdir=`$as_dirname -- "$file" ||
25304 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25305          X"$file" : 'X\(//\)[^/]' \| \
25306          X"$file" : 'X\(//\)$' \| \
25307          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25308 $as_echo X"$file" |
25309     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25310             s//\1/
25311             q
25312           }
25313           /^X\(\/\/\)[^/].*/{
25314             s//\1/
25315             q
25316           }
25317           /^X\(\/\/\)$/{
25318             s//\1/
25319             q
25320           }
25321           /^X\(\/\).*/{
25322             s//\1/
25323             q
25324           }
25325           s/.*/./; q'`
25326       as_dir=$dirpart/$fdir; as_fn_mkdir_p
25327       # echo "creating $dirpart/$file"
25328       echo '# dummy' > "$dirpart/$file"
25329     done
25330   done
25331 }
25332  ;;
25333     "libtool":C)
25334
25335     # See if we are running on zsh, and set the options which allow our
25336     # commands through without removal of \ escapes.
25337     if test -n "${ZSH_VERSION+set}" ; then
25338       setopt NO_GLOB_SUBST
25339     fi
25340
25341     cfgfile="${ofile}T"
25342     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25343     $RM "$cfgfile"
25344
25345     cat <<_LT_EOF >> "$cfgfile"
25346 #! $SHELL
25347
25348 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
25349 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
25350 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25351 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
25352 #
25353 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25354 #                 2006, 2007, 2008 Free Software Foundation, Inc.
25355 #   Written by Gordon Matzigkeit, 1996
25356 #
25357 #   This file is part of GNU Libtool.
25358 #
25359 # GNU Libtool is free software; you can redistribute it and/or
25360 # modify it under the terms of the GNU General Public License as
25361 # published by the Free Software Foundation; either version 2 of
25362 # the License, or (at your option) any later version.
25363 #
25364 # As a special exception to the GNU General Public License,
25365 # if you distribute this file as part of a program or library that
25366 # is built using GNU Libtool, you may include this file under the
25367 # same distribution terms that you use for the rest of that program.
25368 #
25369 # GNU Libtool is distributed in the hope that it will be useful,
25370 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25371 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25372 # GNU General Public License for more details.
25373 #
25374 # You should have received a copy of the GNU General Public License
25375 # along with GNU Libtool; see the file COPYING.  If not, a copy
25376 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
25377 # obtained by writing to the Free Software Foundation, Inc.,
25378 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25379
25380
25381 # The names of the tagged configurations supported by this script.
25382 available_tags="CXX "
25383
25384 # ### BEGIN LIBTOOL CONFIG
25385
25386 # Which release of libtool.m4 was used?
25387 macro_version=$macro_version
25388 macro_revision=$macro_revision
25389
25390 # Whether or not to build shared libraries.
25391 build_libtool_libs=$enable_shared
25392
25393 # Whether or not to build static libraries.
25394 build_old_libs=$enable_static
25395
25396 # What type of objects to build.
25397 pic_mode=$pic_mode
25398
25399 # Whether or not to optimize for fast installation.
25400 fast_install=$enable_fast_install
25401
25402 # The host system.
25403 host_alias=$host_alias
25404 host=$host
25405 host_os=$host_os
25406
25407 # The build system.
25408 build_alias=$build_alias
25409 build=$build
25410 build_os=$build_os
25411
25412 # A sed program that does not truncate output.
25413 SED=$lt_SED
25414
25415 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25416 Xsed="\$SED -e 1s/^X//"
25417
25418 # A grep program that handles long lines.
25419 GREP=$lt_GREP
25420
25421 # An ERE matcher.
25422 EGREP=$lt_EGREP
25423
25424 # A literal string matcher.
25425 FGREP=$lt_FGREP
25426
25427 # A BSD- or MS-compatible name lister.
25428 NM=$lt_NM
25429
25430 # Whether we need soft or hard links.
25431 LN_S=$lt_LN_S
25432
25433 # What is the maximum length of a command?
25434 max_cmd_len=$max_cmd_len
25435
25436 # Object file suffix (normally "o").
25437 objext=$ac_objext
25438
25439 # Executable file suffix (normally "").
25440 exeext=$exeext
25441
25442 # whether the shell understands "unset".
25443 lt_unset=$lt_unset
25444
25445 # turn spaces into newlines.
25446 SP2NL=$lt_lt_SP2NL
25447
25448 # turn newlines into spaces.
25449 NL2SP=$lt_lt_NL2SP
25450
25451 # How to create reloadable object files.
25452 reload_flag=$lt_reload_flag
25453 reload_cmds=$lt_reload_cmds
25454
25455 # An object symbol dumper.
25456 OBJDUMP=$lt_OBJDUMP
25457
25458 # Method to check whether dependent libraries are shared objects.
25459 deplibs_check_method=$lt_deplibs_check_method
25460
25461 # Command to use when deplibs_check_method == "file_magic".
25462 file_magic_cmd=$lt_file_magic_cmd
25463
25464 # The archiver.
25465 AR=$lt_AR
25466 AR_FLAGS=$lt_AR_FLAGS
25467
25468 # A symbol stripping program.
25469 STRIP=$lt_STRIP
25470
25471 # Commands used to install an old-style archive.
25472 RANLIB=$lt_RANLIB
25473 old_postinstall_cmds=$lt_old_postinstall_cmds
25474 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25475
25476 # A C compiler.
25477 LTCC=$lt_CC
25478
25479 # LTCC compiler flags.
25480 LTCFLAGS=$lt_CFLAGS
25481
25482 # Take the output of nm and produce a listing of raw symbols and C names.
25483 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25484
25485 # Transform the output of nm in a proper C declaration.
25486 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25487
25488 # Transform the output of nm in a C name address pair.
25489 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25490
25491 # Transform the output of nm in a C name address pair when lib prefix is needed.
25492 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25493
25494 # The name of the directory that contains temporary libtool files.
25495 objdir=$objdir
25496
25497 # Shell to use when invoking shell scripts.
25498 SHELL=$lt_SHELL
25499
25500 # An echo program that does not interpret backslashes.
25501 ECHO=$lt_ECHO
25502
25503 # Used to examine libraries when file_magic_cmd begins with "file".
25504 MAGIC_CMD=$MAGIC_CMD
25505
25506 # Must we lock files when doing compilation?
25507 need_locks=$lt_need_locks
25508
25509 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25510 DSYMUTIL=$lt_DSYMUTIL
25511
25512 # Tool to change global to local symbols on Mac OS X.
25513 NMEDIT=$lt_NMEDIT
25514
25515 # Tool to manipulate fat objects and archives on Mac OS X.
25516 LIPO=$lt_LIPO
25517
25518 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25519 OTOOL=$lt_OTOOL
25520
25521 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25522 OTOOL64=$lt_OTOOL64
25523
25524 # Old archive suffix (normally "a").
25525 libext=$libext
25526
25527 # Shared library suffix (normally ".so").
25528 shrext_cmds=$lt_shrext_cmds
25529
25530 # The commands to extract the exported symbol list from a shared archive.
25531 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25532
25533 # Variables whose values should be saved in libtool wrapper scripts and
25534 # restored at link time.
25535 variables_saved_for_relink=$lt_variables_saved_for_relink
25536
25537 # Do we need the "lib" prefix for modules?
25538 need_lib_prefix=$need_lib_prefix
25539
25540 # Do we need a version for libraries?
25541 need_version=$need_version
25542
25543 # Library versioning type.
25544 version_type=$version_type
25545
25546 # Shared library runtime path variable.
25547 runpath_var=$runpath_var
25548
25549 # Shared library path variable.
25550 shlibpath_var=$shlibpath_var
25551
25552 # Is shlibpath searched before the hard-coded library search path?
25553 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25554
25555 # Format of library name prefix.
25556 libname_spec=$lt_libname_spec
25557
25558 # List of archive names.  First name is the real one, the rest are links.
25559 # The last name is the one that the linker finds with -lNAME
25560 library_names_spec=$lt_library_names_spec
25561
25562 # The coded name of the library, if different from the real name.
25563 soname_spec=$lt_soname_spec
25564
25565 # Command to use after installation of a shared archive.
25566 postinstall_cmds=$lt_postinstall_cmds
25567
25568 # Command to use after uninstallation of a shared archive.
25569 postuninstall_cmds=$lt_postuninstall_cmds
25570
25571 # Commands used to finish a libtool library installation in a directory.
25572 finish_cmds=$lt_finish_cmds
25573
25574 # As "finish_cmds", except a single script fragment to be evaled but
25575 # not shown.
25576 finish_eval=$lt_finish_eval
25577
25578 # Whether we should hardcode library paths into libraries.
25579 hardcode_into_libs=$hardcode_into_libs
25580
25581 # Compile-time system search path for libraries.
25582 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25583
25584 # Run-time system search path for libraries.
25585 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25586
25587 # Whether dlopen is supported.
25588 dlopen_support=$enable_dlopen
25589
25590 # Whether dlopen of programs is supported.
25591 dlopen_self=$enable_dlopen_self
25592
25593 # Whether dlopen of statically linked programs is supported.
25594 dlopen_self_static=$enable_dlopen_self_static
25595
25596 # Commands to strip libraries.
25597 old_striplib=$lt_old_striplib
25598 striplib=$lt_striplib
25599
25600
25601 # The linker used to build libraries.
25602 LD=$lt_LD
25603
25604 # Commands used to build an old-style archive.
25605 old_archive_cmds=$lt_old_archive_cmds
25606
25607 # A language specific compiler.
25608 CC=$lt_compiler
25609
25610 # Is the compiler the GNU compiler?
25611 with_gcc=$GCC
25612
25613 # Compiler flag to turn off builtin functions.
25614 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25615
25616 # How to pass a linker flag through the compiler.
25617 wl=$lt_lt_prog_compiler_wl
25618
25619 # Additional compiler flags for building library objects.
25620 pic_flag=$lt_lt_prog_compiler_pic
25621
25622 # Compiler flag to prevent dynamic linking.
25623 link_static_flag=$lt_lt_prog_compiler_static
25624
25625 # Does compiler simultaneously support -c and -o options?
25626 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25627
25628 # Whether or not to add -lc for building shared libraries.
25629 build_libtool_need_lc=$archive_cmds_need_lc
25630
25631 # Whether or not to disallow shared libs when runtime libs are static.
25632 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25633
25634 # Compiler flag to allow reflexive dlopens.
25635 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25636
25637 # Compiler flag to generate shared objects directly from archives.
25638 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25639
25640 # Whether the compiler copes with passing no objects directly.
25641 compiler_needs_object=$lt_compiler_needs_object
25642
25643 # Create an old-style archive from a shared archive.
25644 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25645
25646 # Create a temporary old-style archive to link instead of a shared archive.
25647 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25648
25649 # Commands used to build a shared archive.
25650 archive_cmds=$lt_archive_cmds
25651 archive_expsym_cmds=$lt_archive_expsym_cmds
25652
25653 # Commands used to build a loadable module if different from building
25654 # a shared archive.
25655 module_cmds=$lt_module_cmds
25656 module_expsym_cmds=$lt_module_expsym_cmds
25657
25658 # Whether we are building with GNU ld or not.
25659 with_gnu_ld=$lt_with_gnu_ld
25660
25661 # Flag that allows shared libraries with undefined symbols to be built.
25662 allow_undefined_flag=$lt_allow_undefined_flag
25663
25664 # Flag that enforces no undefined symbols.
25665 no_undefined_flag=$lt_no_undefined_flag
25666
25667 # Flag to hardcode \$libdir into a binary during linking.
25668 # This must work even if \$libdir does not exist
25669 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25670
25671 # If ld is used when linking, flag to hardcode \$libdir into a binary
25672 # during linking.  This must work even if \$libdir does not exist.
25673 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
25674
25675 # Whether we need a single "-rpath" flag with a separated argument.
25676 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25677
25678 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25679 # DIR into the resulting binary.
25680 hardcode_direct=$hardcode_direct
25681
25682 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25683 # DIR into the resulting binary and the resulting library dependency is
25684 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25685 # library is relocated.
25686 hardcode_direct_absolute=$hardcode_direct_absolute
25687
25688 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25689 # into the resulting binary.
25690 hardcode_minus_L=$hardcode_minus_L
25691
25692 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25693 # into the resulting binary.
25694 hardcode_shlibpath_var=$hardcode_shlibpath_var
25695
25696 # Set to "yes" if building a shared library automatically hardcodes DIR
25697 # into the library and all subsequent libraries and executables linked
25698 # against it.
25699 hardcode_automatic=$hardcode_automatic
25700
25701 # Set to yes if linker adds runtime paths of dependent libraries
25702 # to runtime path list.
25703 inherit_rpath=$inherit_rpath
25704
25705 # Whether libtool must link a program against all its dependency libraries.
25706 link_all_deplibs=$link_all_deplibs
25707
25708 # Fix the shell variable \$srcfile for the compiler.
25709 fix_srcfile_path=$lt_fix_srcfile_path
25710
25711 # Set to "yes" if exported symbols are required.
25712 always_export_symbols=$always_export_symbols
25713
25714 # The commands to list exported symbols.
25715 export_symbols_cmds=$lt_export_symbols_cmds
25716
25717 # Symbols that should not be listed in the preloaded symbols.
25718 exclude_expsyms=$lt_exclude_expsyms
25719
25720 # Symbols that must always be exported.
25721 include_expsyms=$lt_include_expsyms
25722
25723 # Commands necessary for linking programs (against libraries) with templates.
25724 prelink_cmds=$lt_prelink_cmds
25725
25726 # Specify filename containing input files.
25727 file_list_spec=$lt_file_list_spec
25728
25729 # How to hardcode a shared library path into an executable.
25730 hardcode_action=$hardcode_action
25731
25732 # The directories searched by this compiler when creating a shared library.
25733 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25734
25735 # Dependencies to place before and after the objects being linked to
25736 # create a shared library.
25737 predep_objects=$lt_predep_objects
25738 postdep_objects=$lt_postdep_objects
25739 predeps=$lt_predeps
25740 postdeps=$lt_postdeps
25741
25742 # The library search path used internally by the compiler when linking
25743 # a shared library.
25744 compiler_lib_search_path=$lt_compiler_lib_search_path
25745
25746 # ### END LIBTOOL CONFIG
25747
25748 _LT_EOF
25749
25750   case $host_os in
25751   aix3*)
25752     cat <<\_LT_EOF >> "$cfgfile"
25753 # AIX sometimes has problems with the GCC collect2 program.  For some
25754 # reason, if we set the COLLECT_NAMES environment variable, the problems
25755 # vanish in a puff of smoke.
25756 if test "X${COLLECT_NAMES+set}" != Xset; then
25757   COLLECT_NAMES=
25758   export COLLECT_NAMES
25759 fi
25760 _LT_EOF
25761     ;;
25762   esac
25763
25764
25765 ltmain="$ac_aux_dir/ltmain.sh"
25766
25767
25768   # We use sed instead of cat because bash on DJGPP gets confused if
25769   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
25770   # text mode, it properly converts lines to CR/LF.  This bash problem
25771   # is reportedly fixed, but why not run on old versions too?
25772   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
25773     || (rm -f "$cfgfile"; exit 1)
25774
25775   case $xsi_shell in
25776   yes)
25777     cat << \_LT_EOF >> "$cfgfile"
25778
25779 # func_dirname file append nondir_replacement
25780 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
25781 # otherwise set result to NONDIR_REPLACEMENT.
25782 func_dirname ()
25783 {
25784   case ${1} in
25785     */*) func_dirname_result="${1%/*}${2}" ;;
25786     *  ) func_dirname_result="${3}" ;;
25787   esac
25788 }
25789
25790 # func_basename file
25791 func_basename ()
25792 {
25793   func_basename_result="${1##*/}"
25794 }
25795
25796 # func_dirname_and_basename file append nondir_replacement
25797 # perform func_basename and func_dirname in a single function
25798 # call:
25799 #   dirname:  Compute the dirname of FILE.  If nonempty,
25800 #             add APPEND to the result, otherwise set result
25801 #             to NONDIR_REPLACEMENT.
25802 #             value returned in "$func_dirname_result"
25803 #   basename: Compute filename of FILE.
25804 #             value retuned in "$func_basename_result"
25805 # Implementation must be kept synchronized with func_dirname
25806 # and func_basename. For efficiency, we do not delegate to
25807 # those functions but instead duplicate the functionality here.
25808 func_dirname_and_basename ()
25809 {
25810   case ${1} in
25811     */*) func_dirname_result="${1%/*}${2}" ;;
25812     *  ) func_dirname_result="${3}" ;;
25813   esac
25814   func_basename_result="${1##*/}"
25815 }
25816
25817 # func_stripname prefix suffix name
25818 # strip PREFIX and SUFFIX off of NAME.
25819 # PREFIX and SUFFIX must not contain globbing or regex special
25820 # characters, hashes, percent signs, but SUFFIX may contain a leading
25821 # dot (in which case that matches only a dot).
25822 func_stripname ()
25823 {
25824   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
25825   # positional parameters, so assign one to ordinary parameter first.
25826   func_stripname_result=${3}
25827   func_stripname_result=${func_stripname_result#"${1}"}
25828   func_stripname_result=${func_stripname_result%"${2}"}
25829 }
25830
25831 # func_opt_split
25832 func_opt_split ()
25833 {
25834   func_opt_split_opt=${1%%=*}
25835   func_opt_split_arg=${1#*=}
25836 }
25837
25838 # func_lo2o object
25839 func_lo2o ()
25840 {
25841   case ${1} in
25842     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
25843     *)    func_lo2o_result=${1} ;;
25844   esac
25845 }
25846
25847 # func_xform libobj-or-source
25848 func_xform ()
25849 {
25850   func_xform_result=${1%.*}.lo
25851 }
25852
25853 # func_arith arithmetic-term...
25854 func_arith ()
25855 {
25856   func_arith_result=$(( $* ))
25857 }
25858
25859 # func_len string
25860 # STRING may not start with a hyphen.
25861 func_len ()
25862 {
25863   func_len_result=${#1}
25864 }
25865
25866 _LT_EOF
25867     ;;
25868   *) # Bourne compatible functions.
25869     cat << \_LT_EOF >> "$cfgfile"
25870
25871 # func_dirname file append nondir_replacement
25872 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
25873 # otherwise set result to NONDIR_REPLACEMENT.
25874 func_dirname ()
25875 {
25876   # Extract subdirectory from the argument.
25877   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
25878   if test "X$func_dirname_result" = "X${1}"; then
25879     func_dirname_result="${3}"
25880   else
25881     func_dirname_result="$func_dirname_result${2}"
25882   fi
25883 }
25884
25885 # func_basename file
25886 func_basename ()
25887 {
25888   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
25889 }
25890
25891
25892 # func_stripname prefix suffix name
25893 # strip PREFIX and SUFFIX off of NAME.
25894 # PREFIX and SUFFIX must not contain globbing or regex special
25895 # characters, hashes, percent signs, but SUFFIX may contain a leading
25896 # dot (in which case that matches only a dot).
25897 # func_strip_suffix prefix name
25898 func_stripname ()
25899 {
25900   case ${2} in
25901     .*) func_stripname_result=`$ECHO "X${3}" \
25902            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
25903     *)  func_stripname_result=`$ECHO "X${3}" \
25904            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
25905   esac
25906 }
25907
25908 # sed scripts:
25909 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
25910 my_sed_long_arg='1s/^-[^=]*=//'
25911
25912 # func_opt_split
25913 func_opt_split ()
25914 {
25915   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
25916   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
25917 }
25918
25919 # func_lo2o object
25920 func_lo2o ()
25921 {
25922   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
25923 }
25924
25925 # func_xform libobj-or-source
25926 func_xform ()
25927 {
25928   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
25929 }
25930
25931 # func_arith arithmetic-term...
25932 func_arith ()
25933 {
25934   func_arith_result=`expr "$@"`
25935 }
25936
25937 # func_len string
25938 # STRING may not start with a hyphen.
25939 func_len ()
25940 {
25941   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
25942 }
25943
25944 _LT_EOF
25945 esac
25946
25947 case $lt_shell_append in
25948   yes)
25949     cat << \_LT_EOF >> "$cfgfile"
25950
25951 # func_append var value
25952 # Append VALUE to the end of shell variable VAR.
25953 func_append ()
25954 {
25955   eval "$1+=\$2"
25956 }
25957 _LT_EOF
25958     ;;
25959   *)
25960     cat << \_LT_EOF >> "$cfgfile"
25961
25962 # func_append var value
25963 # Append VALUE to the end of shell variable VAR.
25964 func_append ()
25965 {
25966   eval "$1=\$$1\$2"
25967 }
25968
25969 _LT_EOF
25970     ;;
25971   esac
25972
25973
25974   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
25975     || (rm -f "$cfgfile"; exit 1)
25976
25977   mv -f "$cfgfile" "$ofile" ||
25978     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25979   chmod +x "$ofile"
25980
25981
25982     cat <<_LT_EOF >> "$ofile"
25983
25984 # ### BEGIN LIBTOOL TAG CONFIG: CXX
25985
25986 # The linker used to build libraries.
25987 LD=$lt_LD_CXX
25988
25989 # Commands used to build an old-style archive.
25990 old_archive_cmds=$lt_old_archive_cmds_CXX
25991
25992 # A language specific compiler.
25993 CC=$lt_compiler_CXX
25994
25995 # Is the compiler the GNU compiler?
25996 with_gcc=$GCC_CXX
25997
25998 # Compiler flag to turn off builtin functions.
25999 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
26000
26001 # How to pass a linker flag through the compiler.
26002 wl=$lt_lt_prog_compiler_wl_CXX
26003
26004 # Additional compiler flags for building library objects.
26005 pic_flag=$lt_lt_prog_compiler_pic_CXX
26006
26007 # Compiler flag to prevent dynamic linking.
26008 link_static_flag=$lt_lt_prog_compiler_static_CXX
26009
26010 # Does compiler simultaneously support -c and -o options?
26011 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
26012
26013 # Whether or not to add -lc for building shared libraries.
26014 build_libtool_need_lc=$archive_cmds_need_lc_CXX
26015
26016 # Whether or not to disallow shared libs when runtime libs are static.
26017 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
26018
26019 # Compiler flag to allow reflexive dlopens.
26020 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
26021
26022 # Compiler flag to generate shared objects directly from archives.
26023 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
26024
26025 # Whether the compiler copes with passing no objects directly.
26026 compiler_needs_object=$lt_compiler_needs_object_CXX
26027
26028 # Create an old-style archive from a shared archive.
26029 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
26030
26031 # Create a temporary old-style archive to link instead of a shared archive.
26032 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
26033
26034 # Commands used to build a shared archive.
26035 archive_cmds=$lt_archive_cmds_CXX
26036 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
26037
26038 # Commands used to build a loadable module if different from building
26039 # a shared archive.
26040 module_cmds=$lt_module_cmds_CXX
26041 module_expsym_cmds=$lt_module_expsym_cmds_CXX
26042
26043 # Whether we are building with GNU ld or not.
26044 with_gnu_ld=$lt_with_gnu_ld_CXX
26045
26046 # Flag that allows shared libraries with undefined symbols to be built.
26047 allow_undefined_flag=$lt_allow_undefined_flag_CXX
26048
26049 # Flag that enforces no undefined symbols.
26050 no_undefined_flag=$lt_no_undefined_flag_CXX
26051
26052 # Flag to hardcode \$libdir into a binary during linking.
26053 # This must work even if \$libdir does not exist
26054 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
26055
26056 # If ld is used when linking, flag to hardcode \$libdir into a binary
26057 # during linking.  This must work even if \$libdir does not exist.
26058 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
26059
26060 # Whether we need a single "-rpath" flag with a separated argument.
26061 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
26062
26063 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26064 # DIR into the resulting binary.
26065 hardcode_direct=$hardcode_direct_CXX
26066
26067 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26068 # DIR into the resulting binary and the resulting library dependency is
26069 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26070 # library is relocated.
26071 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
26072
26073 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26074 # into the resulting binary.
26075 hardcode_minus_L=$hardcode_minus_L_CXX
26076
26077 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26078 # into the resulting binary.
26079 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
26080
26081 # Set to "yes" if building a shared library automatically hardcodes DIR
26082 # into the library and all subsequent libraries and executables linked
26083 # against it.
26084 hardcode_automatic=$hardcode_automatic_CXX
26085
26086 # Set to yes if linker adds runtime paths of dependent libraries
26087 # to runtime path list.
26088 inherit_rpath=$inherit_rpath_CXX
26089
26090 # Whether libtool must link a program against all its dependency libraries.
26091 link_all_deplibs=$link_all_deplibs_CXX
26092
26093 # Fix the shell variable \$srcfile for the compiler.
26094 fix_srcfile_path=$lt_fix_srcfile_path_CXX
26095
26096 # Set to "yes" if exported symbols are required.
26097 always_export_symbols=$always_export_symbols_CXX
26098
26099 # The commands to list exported symbols.
26100 export_symbols_cmds=$lt_export_symbols_cmds_CXX
26101
26102 # Symbols that should not be listed in the preloaded symbols.
26103 exclude_expsyms=$lt_exclude_expsyms_CXX
26104
26105 # Symbols that must always be exported.
26106 include_expsyms=$lt_include_expsyms_CXX
26107
26108 # Commands necessary for linking programs (against libraries) with templates.
26109 prelink_cmds=$lt_prelink_cmds_CXX
26110
26111 # Specify filename containing input files.
26112 file_list_spec=$lt_file_list_spec_CXX
26113
26114 # How to hardcode a shared library path into an executable.
26115 hardcode_action=$hardcode_action_CXX
26116
26117 # The directories searched by this compiler when creating a shared library.
26118 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
26119
26120 # Dependencies to place before and after the objects being linked to
26121 # create a shared library.
26122 predep_objects=$lt_predep_objects_CXX
26123 postdep_objects=$lt_postdep_objects_CXX
26124 predeps=$lt_predeps_CXX
26125 postdeps=$lt_postdeps_CXX
26126
26127 # The library search path used internally by the compiler when linking
26128 # a shared library.
26129 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
26130
26131 # ### END LIBTOOL TAG CONFIG: CXX
26132 _LT_EOF
26133
26134  ;;
26135     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
26136         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
26137       esac ;;
26138     "po/stamp-it":C)
26139     if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
26140        as_fn_error "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
26141     fi
26142     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
26143     >"po/stamp-it.tmp"
26144     sed '/^#/d
26145          s/^[[].*] *//
26146          /^[    ]*$/d
26147         '"s|^|  $ac_top_srcdir/|" \
26148       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
26149
26150     sed '/^POTFILES =/,/[^\\]$/ {
26151                 /^POTFILES =/!d
26152                 r po/POTFILES
26153           }
26154          ' "po/Makefile.in" >"po/Makefile"
26155     rm -f "po/Makefile.tmp"
26156     mv "po/stamp-it.tmp" "po/stamp-it"
26157    ;;
26158
26159   esac
26160 done # for ac_tag
26161
26162
26163 as_fn_exit 0
26164 _ACEOF
26165 ac_clean_files=$ac_clean_files_save
26166
26167 test $ac_write_fail = 0 ||
26168   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26169
26170
26171 # configure is writing to config.log, and then calls config.status.
26172 # config.status does its own redirection, appending to config.log.
26173 # Unfortunately, on DOS this fails, as config.log is still kept open
26174 # by configure, so config.status won't be able to write to it; its
26175 # output is simply discarded.  So we exec the FD to /dev/null,
26176 # effectively closing config.log, so it can be properly (re)opened and
26177 # appended to by config.status.  When coming back to configure, we
26178 # need to make the FD available again.
26179 if test "$no_create" != yes; then
26180   ac_cs_success=:
26181   ac_config_status_args=
26182   test "$silent" = yes &&
26183     ac_config_status_args="$ac_config_status_args --quiet"
26184   exec 5>/dev/null
26185   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26186   exec 5>>config.log
26187   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26188   # would make configure fail if this is the last instruction.
26189   $ac_cs_success || as_fn_exit $?
26190 fi
26191 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26192   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26193 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26194 fi
26195
26196
26197 echo
26198 echo CONFIGURATION SUMMARY
26199 echo "Core SyncEvolution: $enable_core"
26200 for backend in $BACKENDS; do
26201     eval echo $backend: \${enable_${backend}}
26202 done
26203 echo "DBus service: $enable_dbus_service"
26204 echo "Notifications: $enable_notify"
26205 echo "GIO GDBus: $with_gio_gdbus"
26206 echo "GNOME keyring: $enable_gnome_keyring"
26207 if test "$enable_gui" = "no"; then
26208     echo "UI (DBus client): no"
26209 else
26210     echo "UI (DBus client): $enable_gui (using $gtk_version)"
26211 fi
26212 echo "Bluetooth transport: $have_bluetooth"
26213 echo "GNOME Bluetooth panel plugin: $enable_gnome_bluetooth_panel"
26214 echo "SHA-256: $have_sha"
26215 echo "API documentation: $enable_doc"
26216 echo "D-Bus Timeout Hack: $enable_dbus_timeout_hack"
26217 echo