Imported Upstream version 1.4.1
[platform/upstream/syncevolution.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for syncevolution 1.4.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     PATH=/empty FPATH=/empty; export PATH FPATH
205     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='syncevolution'
589 PACKAGE_TARNAME='syncevolution'
590 PACKAGE_VERSION='1.4.1'
591 PACKAGE_STRING='syncevolution 1.4.1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 #  include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 #  include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 COND_CROSS_COMPILING_FALSE
636 COND_CROSS_COMPILING_TRUE
637 SYNCEVOLUTION_LIBS
638 SYNCEVOLUTION_CFLAGS
639 syncevo_backenddir
640 BACKENDS_SEARCH_DIRECTORY
641 BACKENDS_DIRECTORY
642 LIBICAL_AVAILABLE_LIBS
643 LIBICAL_AVAILABLE_CFLAGS
644 ENABLE_EVOLUTION_COMPATIBILITY_FALSE
645 ENABLE_EVOLUTION_COMPATIBILITY_TRUE
646 SYNCEVOLUTION_CXXFLAGS
647 SYNCEVOLUTION_LDADD
648 ENABLE_MODULES_FALSE
649 ENABLE_MODULES_TRUE
650 NSS_LIBS
651 NSS_CFLAGS
652 GLIB216_LIBS
653 GLIB216_CFLAGS
654 QT_LIBS
655 QT_LDFLAGS
656 QT_LFLAGS
657 QT_CPPFLAGS
658 QT_INCPATH
659 QT_CXXFLAGS
660 QT_CFLAGS
661 QT_DEFINES
662 QT_VERSION_MAJOR
663 RCC
664 UIC
665 MOC
666 QT_PATH
667 ENABLE_ICAL_FALSE
668 ENABLE_ICAL_TRUE
669 LIBICAL_LIBS
670 LIBICAL_CFLAGS
671 GIO_LIBS
672 GIO_CFLAGS
673 GOBJECT_LIBS
674 GOBJECT_CFLAGS
675 GTHREAD_LIBS
676 GTHREAD_CFLAGS
677 GLIB_LIBS
678 GLIB_CFLAGS
679 QT_DBUS_LIBS
680 ENABLE_QT_DBUS_FALSE
681 ENABLE_QT_DBUS_TRUE
682 QDBUSXML_TO_CPP
683 XMLRPC_LIBS
684 XMLRPC_CFLAGS
685 XMLRPC_C_CONFIG
686 NEON_COMPATIBILITY_FALSE
687 NEON_COMPATIBILITY_TRUE
688 NEON_LIBS
689 NEON_CFLAGS
690 SQLITE_LIBS
691 SQLITE_CFLAGS
692 GOOGLE_CLIENT_SECRET_CARDDAV
693 GOOGLE_CLIENT_ID_CARDDAV
694 GOOGLE_CLIENT_SECRET_CALDAV
695 GOOGLE_CLIENT_ID_CALDAV
696 GOOGLE_CLIENT_SECRET
697 GOOGLE_CLIENT_ID
698 USE_UOA_FALSE
699 USE_UOA_TRUE
700 UOA_LIBS
701 UOA_CFLAGS
702 USE_GSSO_FALSE
703 USE_GSSO_TRUE
704 GOOGLE_MECHANISM
705 GOOGLE_METHOD
706 GSSO_LIBS
707 GSSO_CFLAGS
708 QT_CONTACTS_LIBS
709 BAP_LIBS
710 PBAP_CFLAGS
711 MCALB_LIBS
712 MCALB_CFLAGS
713 USE_KDE_KWALLET_FALSE
714 USE_KDE_KWALLET_TRUE
715 KDE_KWALLET_CFLAGS
716 KDE_KWALLET_LIBS
717 KDE4_CONFIG
718 KCALEXTENDED_LIBS
719 KCALEXTENDED_CFLAGS
720 USE_GOA_FALSE
721 USE_GOA_TRUE
722 KEYRING_LIBS
723 KEYRING_CFLAGS
724 FILE_LIBS
725 FILE_CFLAGS
726 EDS_VERSION_LIBS
727 EDS_VERSION_CFLAGS
728 ENABLE_ECAL_FALSE
729 ENABLE_ECAL_TRUE
730 EBOOK_VERSION_LIBS
731 EBOOK_VERSION_CFLAGS
732 EBOOK_LIBS
733 EBOOK_CFLAGS
734 ECAL_LIBS
735 ECAL_CFLAGS
736 EPACKAGE_LIBS
737 EPACKAGE_CFLAGS
738 ENABLE_AKONADI_FALSE
739 ENABLE_AKONADI_TRUE
740 KDEPIM_CFLAGS
741 KDEPIM_LIBS
742 QMAKE
743 ADDRESSBOOK_LIBS
744 ADDRESSBOOK_CFLAGS
745 EASCLIENT_CFLAGS
746 EASCLIENT_DEPENDENCIES
747 EASCLIENT_LIBS
748 LIBEASCLIENT_LA_DEPENDENCIES
749 BUILD_ACTIVESYNCD_FALSE
750 BUILD_ACTIVESYNCD_TRUE
751 BACKEND_DEFINES
752 SYNCSOURCES
753 COND_DOC_FALSE
754 COND_DOC_TRUE
755 ENABLE_GNOME_BLUETOOTH_PANEL_FALSE
756 ENABLE_GNOME_BLUETOOTH_PANEL_TRUE
757 GNOMEBLUETOOTH_DIR
758 GNOMEBLUETOOTH_LIBS
759 GNOMEBLUETOOTH_CFLAGS
760 BACKEND_CPPFLAGS
761 SYNTHESISSRC
762 SYNTHESIS_LIB
763 SYNTHESIS_ENGINE
764 SYNTHESIS_DEP
765 SYNTHESIS_SUBDIR_INCLUDES
766 SYNTHESIS_SUBDIR
767 SYNTHESIS
768 WITH_SYNTHESIS_SRC_LIBS
769 WITH_SYNTHESIS_SRC_CFLAGS
770 SYNTHESIS_LIBS
771 SYNTHESIS_CFLAGS
772 SYNTHESIS_SRC
773 COND_HTML_README_FALSE
774 COND_HTML_README_TRUE
775 RST2HTML
776 COND_MAN_PAGES_FALSE
777 COND_MAN_PAGES_TRUE
778 RST2MAN
779 PCRECPP_CFLAGS
780 PCRECPP_LIBS
781 GUI_DESKTOP_FILES
782 GUI_PROGRAMS
783 GETTEXT_PACKAGE
784 SYNCEVOLUTION_LOCALEDIR
785 GUI_LIBS
786 GUI_CFLAGS
787 GTK_2_18_LIBS
788 GTK_2_18_CFLAGS
789 UNIQUE_LIBS
790 UNIQUE_CFLAGS
791 MX_GTK_0_99_1_LIBS
792 MX_GTK_0_99_1_CFLAGS
793 GLIB_GENMARSHAL
794 DBUS_BINDING_TOOL
795 MKINSTALLDIRS
796 POSUB
797 POFILES
798 PO_IN_DATADIR_FALSE
799 PO_IN_DATADIR_TRUE
800 INTLLIBS
801 INSTOBJEXT
802 GMOFILES
803 CATOBJEXT
804 CATALOGS
805 MSGFMT_OPTS
806 DATADIRNAME
807 ALL_LINGUAS
808 INTLTOOL_PERL
809 GMSGFMT
810 MSGFMT
811 MSGMERGE
812 XGETTEXT
813 INTLTOOL_POLICY_RULE
814 INTLTOOL_SERVICE_RULE
815 INTLTOOL_THEME_RULE
816 INTLTOOL_SCHEMAS_RULE
817 INTLTOOL_CAVES_RULE
818 INTLTOOL_XML_NOMERGE_RULE
819 INTLTOOL_XML_RULE
820 INTLTOOL_KBD_RULE
821 INTLTOOL_XAM_RULE
822 INTLTOOL_UI_RULE
823 INTLTOOL_SOUNDLIST_RULE
824 INTLTOOL_SHEET_RULE
825 INTLTOOL_SERVER_RULE
826 INTLTOOL_PONG_RULE
827 INTLTOOL_OAF_RULE
828 INTLTOOL_PROP_RULE
829 INTLTOOL_KEYS_RULE
830 INTLTOOL_DIRECTORY_RULE
831 INTLTOOL_DESKTOP_RULE
832 intltool__v_merge_options_0
833 intltool__v_merge_options_
834 INTLTOOL_V_MERGE_OPTIONS
835 INTLTOOL__v_MERGE_0
836 INTLTOOL__v_MERGE_
837 INTLTOOL_V_MERGE
838 INTLTOOL_EXTRACT
839 INTLTOOL_MERGE
840 INTLTOOL_UPDATE
841 USE_NLS
842 DBUS_SERVICES_DIR
843 LIBEXECDIR
844 DBUS_GLIB_LIBS
845 DBUS_GLIB_CFLAGS
846 COND_DBUS_PIM_FALSE
847 COND_DBUS_PIM_TRUE
848 NOTIFY_COMPATIBILITY_FALSE
849 NOTIFY_COMPATIBILITY_TRUE
850 PHONENUMBERS_LIBS
851 PHONENUMBERS_CFLAGS
852 DBUS_PIM_PLUGIN_LDFLAGS
853 DBUS_PIM_PLUGIN_LIBS
854 DBUS_PIM_PLUGIN_CFLAGS
855 ICU_LIBS
856 ICU_CFLAGS
857 BOOST_LOCALE_LIB
858 DBUS_PIM_PLUGIN
859 FOLKS_LIBS
860 FOLKS_CFLAGS
861 MLITE_LIBS
862 MLITE_CFLAGS
863 LIBNOTIFY_LIBS
864 LIBNOTIFY_CFLAGS
865 DBUS_LIBS
866 DBUS_CFLAGS
867 COND_GIO_GDBUS_FALSE
868 COND_GIO_GDBUS_TRUE
869 SYNCEVO_DBUS_SERVER_ARGS
870 COND_DBUS_FALSE
871 COND_DBUS_TRUE
872 COND_CORE_FALSE
873 COND_CORE_TRUE
874 COND_GUI_FALSE
875 COND_GUI_TRUE
876 COND_GTK2_FALSE
877 COND_GTK2_TRUE
878 XSLT
879 TRANSPORT_CFLAGS
880 TRANSPORT_LIBS
881 ENABLE_BLUETOOTH_FALSE
882 ENABLE_BLUETOOTH_TRUE
883 ENABLE_OBEX_FALSE
884 ENABLE_OBEX_TRUE
885 DLT_LIBS
886 DLT_CFLAGS
887 BLUEZ_LIBS
888 BLUEZ_CFLAGS
889 LIBOPENOBEX_LIBS
890 LIBOPENOBEX_CFLAGS
891 LIBSOUP_LIBS
892 LIBSOUP_CFLAGS
893 PKG_CONFIG_LIBDIR
894 PKG_CONFIG_PATH
895 PKG_CONFIG
896 CORE_LDADD_DEP
897 ENABLE_TESTING_FALSE
898 ENABLE_TESTING_TRUE
899 ENABLE_UNIT_TESTS_FALSE
900 ENABLE_UNIT_TESTS_TRUE
901 CPPUNIT_LDFLAGS
902 CPPUNIT_CXXFLAGS
903 CPPUNIT_CONFIG
904 MODIFY_SYNCCOMPARE
905 ENABLE_ICALTZ_UTIL_FALSE
906 ENABLE_ICALTZ_UTIL_TRUE
907 SYNCEVO_WFLAGS
908 BOOST_LDFLAGS
909 BOOST_CPPFLAGS
910 CXXCPP
911 am__fastdepCXX_FALSE
912 am__fastdepCXX_TRUE
913 CXXDEPMODE
914 ac_ct_CXX
915 CXXFLAGS
916 CXX
917 CPP
918 OTOOL64
919 OTOOL
920 LIPO
921 NMEDIT
922 DSYMUTIL
923 MANIFEST_TOOL
924 RANLIB
925 ac_ct_AR
926 AR
927 DLLTOOL
928 OBJDUMP
929 LN_S
930 NM
931 ac_ct_DUMPBIN
932 DUMPBIN
933 LD
934 FGREP
935 EGREP
936 GREP
937 SED
938 host_os
939 host_vendor
940 host_cpu
941 host
942 build_os
943 build_vendor
944 build_cpu
945 build
946 LIBTOOL
947 MAINT
948 MAINTAINER_MODE_FALSE
949 MAINTAINER_MODE_TRUE
950 am__fastdepCC_FALSE
951 am__fastdepCC_TRUE
952 CCDEPMODE
953 am__nodep
954 AMDEPBACKSLASH
955 AMDEP_FALSE
956 AMDEP_TRUE
957 am__quote
958 am__include
959 DEPDIR
960 OBJEXT
961 EXEEXT
962 ac_ct_CC
963 CPPFLAGS
964 LDFLAGS
965 CFLAGS
966 CC
967 AM_BACKSLASH
968 AM_DEFAULT_VERBOSITY
969 AM_DEFAULT_V
970 AM_V
971 am__untar
972 am__tar
973 AMTAR
974 am__leading_dot
975 SET_MAKE
976 AWK
977 mkdir_p
978 MKDIR_P
979 INSTALL_STRIP_PROGRAM
980 STRIP
981 install_sh
982 MAKEINFO
983 AUTOHEADER
984 AUTOMAKE
985 AUTOCONF
986 ACLOCAL
987 VERSION
988 PACKAGE
989 CYGPATH_W
990 am__isrc
991 INSTALL_DATA
992 INSTALL_SCRIPT
993 INSTALL_PROGRAM
994 STABLE_VERSION
995 target_alias
996 host_alias
997 build_alias
998 LIBS
999 ECHO_T
1000 ECHO_N
1001 ECHO_C
1002 DEFS
1003 mandir
1004 localedir
1005 libdir
1006 psdir
1007 pdfdir
1008 dvidir
1009 htmldir
1010 infodir
1011 docdir
1012 oldincludedir
1013 includedir
1014 localstatedir
1015 sharedstatedir
1016 sysconfdir
1017 datadir
1018 datarootdir
1019 libexecdir
1020 sbindir
1021 bindir
1022 program_transform_name
1023 prefix
1024 exec_prefix
1025 PACKAGE_URL
1026 PACKAGE_BUGREPORT
1027 PACKAGE_STRING
1028 PACKAGE_VERSION
1029 PACKAGE_TARNAME
1030 PACKAGE_NAME
1031 PATH_SEPARATOR
1032 SHELL'
1033 ac_subst_files=''
1034 ac_user_opts='
1035 enable_option_checking
1036 enable_release_mode
1037 enable_silent_rules
1038 enable_dependency_tracking
1039 enable_maintainer_mode
1040 enable_shared
1041 enable_static
1042 with_pic
1043 enable_fast_install
1044 with_gnu_ld
1045 with_sysroot
1046 enable_libtool_lock
1047 with_boost
1048 with_boost_libdir
1049 enable_warnings
1050 with_synthesis_src
1051 with_syncml_engines
1052 with_synthesis_username
1053 with_synthesis_revision
1054 enable_unit_tests
1055 enable_integration_tests
1056 enable_static_cxx
1057 enable_evolution_compatibility
1058 enable_internal_icaltz
1059 enable_developer_mode
1060 enable_maemo
1061 with_ca_certificates
1062 enable_libcurl
1063 enable_libsoup
1064 enable_dlt
1065 with_dlt_syncevolution
1066 enable_bluetooth
1067 enable_ssl_certificate_check
1068 enable_gtk
1069 enable_gui
1070 enable_core
1071 enable_dbus_service
1072 with_gio_gdbus
1073 enable_notify
1074 enable_notify_compatibility
1075 enable_mlite
1076 enable_dbus_service_pim
1077 with_boost_locale
1078 enable_nls
1079 with_rst2man
1080 with_rst2html
1081 enable_gnome_bluetooth_panel_plugin
1082 enable_doc
1083 enable_activesync
1084 with_activesyncd_src
1085 enable_addressbook
1086 enable_akonadi
1087 enable_ebook
1088 enable_ecal
1089 enable_file
1090 enable_gnome_keyring
1091 enable_goa
1092 enable_kcalextended
1093 enable_kwallet
1094 enable_maemocal
1095 enable_pbap
1096 enable_qtcontacts
1097 enable_gsso
1098 enable_uoa
1099 with_google_client_id
1100 with_google_client_secret
1101 with_google_client_id_caldav
1102 with_google_client_secret_caldav
1103 with_google_client_id_carddav
1104 with_google_client_secret_carddav
1105 enable_sqlite
1106 enable_dav
1107 enable_neon_compatibility
1108 enable_xmlrpc
1109 enable_qt_dbus
1110 with_qt
1111 enable_dbus_timeout_hack
1112 '
1113       ac_precious_vars='build_alias
1114 host_alias
1115 target_alias
1116 CC
1117 CFLAGS
1118 LDFLAGS
1119 LIBS
1120 CPPFLAGS
1121 CPP
1122 CXX
1123 CXXFLAGS
1124 CCC
1125 CXXCPP
1126 PKG_CONFIG
1127 PKG_CONFIG_PATH
1128 PKG_CONFIG_LIBDIR
1129 LIBSOUP_CFLAGS
1130 LIBSOUP_LIBS
1131 LIBOPENOBEX_CFLAGS
1132 LIBOPENOBEX_LIBS
1133 BLUEZ_CFLAGS
1134 BLUEZ_LIBS
1135 DLT_CFLAGS
1136 DLT_LIBS
1137 DBUS_CFLAGS
1138 DBUS_LIBS
1139 LIBNOTIFY_CFLAGS
1140 LIBNOTIFY_LIBS
1141 MLITE_CFLAGS
1142 MLITE_LIBS
1143 FOLKS_CFLAGS
1144 FOLKS_LIBS
1145 ICU_CFLAGS
1146 ICU_LIBS
1147 DBUS_GLIB_CFLAGS
1148 DBUS_GLIB_LIBS
1149 MX_GTK_0_99_1_CFLAGS
1150 MX_GTK_0_99_1_LIBS
1151 UNIQUE_CFLAGS
1152 UNIQUE_LIBS
1153 GTK_2_18_CFLAGS
1154 GTK_2_18_LIBS
1155 GUI_CFLAGS
1156 GUI_LIBS
1157 PCRECPP_CFLAGS
1158 PCRECPP_LIBS
1159 SYNTHESIS_CFLAGS
1160 SYNTHESIS_LIBS
1161 WITH_SYNTHESIS_SRC_CFLAGS
1162 WITH_SYNTHESIS_SRC_LIBS
1163 GNOMEBLUETOOTH_CFLAGS
1164 GNOMEBLUETOOTH_LIBS
1165 EASCLIENT_CFLAGS
1166 EASCLIENT_LIBS
1167 EPACKAGE_CFLAGS
1168 EPACKAGE_LIBS
1169 ECAL_CFLAGS
1170 ECAL_LIBS
1171 EBOOK_CFLAGS
1172 EBOOK_LIBS
1173 EBOOK_VERSION_CFLAGS
1174 EBOOK_VERSION_LIBS
1175 EDS_VERSION_CFLAGS
1176 EDS_VERSION_LIBS
1177 KEYRING_CFLAGS
1178 KEYRING_LIBS
1179 KCALEXTENDED_CFLAGS
1180 KCALEXTENDED_LIBS
1181 MCALB_CFLAGS
1182 MCALB_LIBS
1183 GSSO_CFLAGS
1184 GSSO_LIBS
1185 UOA_CFLAGS
1186 UOA_LIBS
1187 SQLITE_CFLAGS
1188 SQLITE_LIBS
1189 NEON_CFLAGS
1190 NEON_LIBS
1191 GLIB_CFLAGS
1192 GLIB_LIBS
1193 GTHREAD_CFLAGS
1194 GTHREAD_LIBS
1195 GOBJECT_CFLAGS
1196 GOBJECT_LIBS
1197 GIO_CFLAGS
1198 GIO_LIBS
1199 LIBICAL_CFLAGS
1200 LIBICAL_LIBS
1201 QT_PATH
1202 QMAKE
1203 MOC
1204 UIC
1205 RCC
1206 GLIB216_CFLAGS
1207 GLIB216_LIBS
1208 NSS_CFLAGS
1209 NSS_LIBS
1210 LIBICAL_AVAILABLE_CFLAGS
1211 LIBICAL_AVAILABLE_LIBS'
1212
1213
1214 # Initialize some variables set by options.
1215 ac_init_help=
1216 ac_init_version=false
1217 ac_unrecognized_opts=
1218 ac_unrecognized_sep=
1219 # The variables have the same names as the options, with
1220 # dashes changed to underlines.
1221 cache_file=/dev/null
1222 exec_prefix=NONE
1223 no_create=
1224 no_recursion=
1225 prefix=NONE
1226 program_prefix=NONE
1227 program_suffix=NONE
1228 program_transform_name=s,x,x,
1229 silent=
1230 site=
1231 srcdir=
1232 verbose=
1233 x_includes=NONE
1234 x_libraries=NONE
1235
1236 # Installation directory options.
1237 # These are left unexpanded so users can "make install exec_prefix=/foo"
1238 # and all the variables that are supposed to be based on exec_prefix
1239 # by default will actually change.
1240 # Use braces instead of parens because sh, perl, etc. also accept them.
1241 # (The list follows the same order as the GNU Coding Standards.)
1242 bindir='${exec_prefix}/bin'
1243 sbindir='${exec_prefix}/sbin'
1244 libexecdir='${exec_prefix}/libexec'
1245 datarootdir='${prefix}/share'
1246 datadir='${datarootdir}'
1247 sysconfdir='${prefix}/etc'
1248 sharedstatedir='${prefix}/com'
1249 localstatedir='${prefix}/var'
1250 includedir='${prefix}/include'
1251 oldincludedir='/usr/include'
1252 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1253 infodir='${datarootdir}/info'
1254 htmldir='${docdir}'
1255 dvidir='${docdir}'
1256 pdfdir='${docdir}'
1257 psdir='${docdir}'
1258 libdir='${exec_prefix}/lib'
1259 localedir='${datarootdir}/locale'
1260 mandir='${datarootdir}/man'
1261
1262 ac_prev=
1263 ac_dashdash=
1264 for ac_option
1265 do
1266   # If the previous option needs an argument, assign it.
1267   if test -n "$ac_prev"; then
1268     eval $ac_prev=\$ac_option
1269     ac_prev=
1270     continue
1271   fi
1272
1273   case $ac_option in
1274   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1275   *=)   ac_optarg= ;;
1276   *)    ac_optarg=yes ;;
1277   esac
1278
1279   # Accept the important Cygnus configure options, so we can diagnose typos.
1280
1281   case $ac_dashdash$ac_option in
1282   --)
1283     ac_dashdash=yes ;;
1284
1285   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1286     ac_prev=bindir ;;
1287   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1288     bindir=$ac_optarg ;;
1289
1290   -build | --build | --buil | --bui | --bu)
1291     ac_prev=build_alias ;;
1292   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1293     build_alias=$ac_optarg ;;
1294
1295   -cache-file | --cache-file | --cache-fil | --cache-fi \
1296   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1297     ac_prev=cache_file ;;
1298   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1299   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1300     cache_file=$ac_optarg ;;
1301
1302   --config-cache | -C)
1303     cache_file=config.cache ;;
1304
1305   -datadir | --datadir | --datadi | --datad)
1306     ac_prev=datadir ;;
1307   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1308     datadir=$ac_optarg ;;
1309
1310   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1311   | --dataroo | --dataro | --datar)
1312     ac_prev=datarootdir ;;
1313   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1314   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1315     datarootdir=$ac_optarg ;;
1316
1317   -disable-* | --disable-*)
1318     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1319     # Reject names that are not valid shell variable names.
1320     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321       as_fn_error $? "invalid feature name: $ac_useropt"
1322     ac_useropt_orig=$ac_useropt
1323     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324     case $ac_user_opts in
1325       *"
1326 "enable_$ac_useropt"
1327 "*) ;;
1328       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1329          ac_unrecognized_sep=', ';;
1330     esac
1331     eval enable_$ac_useropt=no ;;
1332
1333   -docdir | --docdir | --docdi | --doc | --do)
1334     ac_prev=docdir ;;
1335   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1336     docdir=$ac_optarg ;;
1337
1338   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1339     ac_prev=dvidir ;;
1340   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1341     dvidir=$ac_optarg ;;
1342
1343   -enable-* | --enable-*)
1344     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1345     # Reject names that are not valid shell variable names.
1346     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347       as_fn_error $? "invalid feature name: $ac_useropt"
1348     ac_useropt_orig=$ac_useropt
1349     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350     case $ac_user_opts in
1351       *"
1352 "enable_$ac_useropt"
1353 "*) ;;
1354       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1355          ac_unrecognized_sep=', ';;
1356     esac
1357     eval enable_$ac_useropt=\$ac_optarg ;;
1358
1359   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1360   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1361   | --exec | --exe | --ex)
1362     ac_prev=exec_prefix ;;
1363   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1364   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1365   | --exec=* | --exe=* | --ex=*)
1366     exec_prefix=$ac_optarg ;;
1367
1368   -gas | --gas | --ga | --g)
1369     # Obsolete; use --with-gas.
1370     with_gas=yes ;;
1371
1372   -help | --help | --hel | --he | -h)
1373     ac_init_help=long ;;
1374   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1375     ac_init_help=recursive ;;
1376   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1377     ac_init_help=short ;;
1378
1379   -host | --host | --hos | --ho)
1380     ac_prev=host_alias ;;
1381   -host=* | --host=* | --hos=* | --ho=*)
1382     host_alias=$ac_optarg ;;
1383
1384   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1385     ac_prev=htmldir ;;
1386   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1387   | --ht=*)
1388     htmldir=$ac_optarg ;;
1389
1390   -includedir | --includedir | --includedi | --included | --include \
1391   | --includ | --inclu | --incl | --inc)
1392     ac_prev=includedir ;;
1393   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1394   | --includ=* | --inclu=* | --incl=* | --inc=*)
1395     includedir=$ac_optarg ;;
1396
1397   -infodir | --infodir | --infodi | --infod | --info | --inf)
1398     ac_prev=infodir ;;
1399   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1400     infodir=$ac_optarg ;;
1401
1402   -libdir | --libdir | --libdi | --libd)
1403     ac_prev=libdir ;;
1404   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1405     libdir=$ac_optarg ;;
1406
1407   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1408   | --libexe | --libex | --libe)
1409     ac_prev=libexecdir ;;
1410   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1411   | --libexe=* | --libex=* | --libe=*)
1412     libexecdir=$ac_optarg ;;
1413
1414   -localedir | --localedir | --localedi | --localed | --locale)
1415     ac_prev=localedir ;;
1416   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1417     localedir=$ac_optarg ;;
1418
1419   -localstatedir | --localstatedir | --localstatedi | --localstated \
1420   | --localstate | --localstat | --localsta | --localst | --locals)
1421     ac_prev=localstatedir ;;
1422   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1423   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1424     localstatedir=$ac_optarg ;;
1425
1426   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1427     ac_prev=mandir ;;
1428   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1429     mandir=$ac_optarg ;;
1430
1431   -nfp | --nfp | --nf)
1432     # Obsolete; use --without-fp.
1433     with_fp=no ;;
1434
1435   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1436   | --no-cr | --no-c | -n)
1437     no_create=yes ;;
1438
1439   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1440   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1441     no_recursion=yes ;;
1442
1443   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1444   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1445   | --oldin | --oldi | --old | --ol | --o)
1446     ac_prev=oldincludedir ;;
1447   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1448   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1449   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1450     oldincludedir=$ac_optarg ;;
1451
1452   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1453     ac_prev=prefix ;;
1454   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1455     prefix=$ac_optarg ;;
1456
1457   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1458   | --program-pre | --program-pr | --program-p)
1459     ac_prev=program_prefix ;;
1460   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1461   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1462     program_prefix=$ac_optarg ;;
1463
1464   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1465   | --program-suf | --program-su | --program-s)
1466     ac_prev=program_suffix ;;
1467   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1468   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1469     program_suffix=$ac_optarg ;;
1470
1471   -program-transform-name | --program-transform-name \
1472   | --program-transform-nam | --program-transform-na \
1473   | --program-transform-n | --program-transform- \
1474   | --program-transform | --program-transfor \
1475   | --program-transfo | --program-transf \
1476   | --program-trans | --program-tran \
1477   | --progr-tra | --program-tr | --program-t)
1478     ac_prev=program_transform_name ;;
1479   -program-transform-name=* | --program-transform-name=* \
1480   | --program-transform-nam=* | --program-transform-na=* \
1481   | --program-transform-n=* | --program-transform-=* \
1482   | --program-transform=* | --program-transfor=* \
1483   | --program-transfo=* | --program-transf=* \
1484   | --program-trans=* | --program-tran=* \
1485   | --progr-tra=* | --program-tr=* | --program-t=*)
1486     program_transform_name=$ac_optarg ;;
1487
1488   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1489     ac_prev=pdfdir ;;
1490   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1491     pdfdir=$ac_optarg ;;
1492
1493   -psdir | --psdir | --psdi | --psd | --ps)
1494     ac_prev=psdir ;;
1495   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1496     psdir=$ac_optarg ;;
1497
1498   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1499   | -silent | --silent | --silen | --sile | --sil)
1500     silent=yes ;;
1501
1502   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1503     ac_prev=sbindir ;;
1504   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1505   | --sbi=* | --sb=*)
1506     sbindir=$ac_optarg ;;
1507
1508   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1509   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1510   | --sharedst | --shareds | --shared | --share | --shar \
1511   | --sha | --sh)
1512     ac_prev=sharedstatedir ;;
1513   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1514   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1515   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1516   | --sha=* | --sh=*)
1517     sharedstatedir=$ac_optarg ;;
1518
1519   -site | --site | --sit)
1520     ac_prev=site ;;
1521   -site=* | --site=* | --sit=*)
1522     site=$ac_optarg ;;
1523
1524   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1525     ac_prev=srcdir ;;
1526   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1527     srcdir=$ac_optarg ;;
1528
1529   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1530   | --syscon | --sysco | --sysc | --sys | --sy)
1531     ac_prev=sysconfdir ;;
1532   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1533   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1534     sysconfdir=$ac_optarg ;;
1535
1536   -target | --target | --targe | --targ | --tar | --ta | --t)
1537     ac_prev=target_alias ;;
1538   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1539     target_alias=$ac_optarg ;;
1540
1541   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1542     verbose=yes ;;
1543
1544   -version | --version | --versio | --versi | --vers | -V)
1545     ac_init_version=: ;;
1546
1547   -with-* | --with-*)
1548     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1549     # Reject names that are not valid shell variable names.
1550     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1551       as_fn_error $? "invalid package name: $ac_useropt"
1552     ac_useropt_orig=$ac_useropt
1553     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1554     case $ac_user_opts in
1555       *"
1556 "with_$ac_useropt"
1557 "*) ;;
1558       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1559          ac_unrecognized_sep=', ';;
1560     esac
1561     eval with_$ac_useropt=\$ac_optarg ;;
1562
1563   -without-* | --without-*)
1564     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1565     # Reject names that are not valid shell variable names.
1566     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1567       as_fn_error $? "invalid package name: $ac_useropt"
1568     ac_useropt_orig=$ac_useropt
1569     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1570     case $ac_user_opts in
1571       *"
1572 "with_$ac_useropt"
1573 "*) ;;
1574       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1575          ac_unrecognized_sep=', ';;
1576     esac
1577     eval with_$ac_useropt=no ;;
1578
1579   --x)
1580     # Obsolete; use --with-x.
1581     with_x=yes ;;
1582
1583   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1584   | --x-incl | --x-inc | --x-in | --x-i)
1585     ac_prev=x_includes ;;
1586   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1587   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1588     x_includes=$ac_optarg ;;
1589
1590   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1591   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1592     ac_prev=x_libraries ;;
1593   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1594   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1595     x_libraries=$ac_optarg ;;
1596
1597   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1598 Try \`$0 --help' for more information"
1599     ;;
1600
1601   *=*)
1602     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1603     # Reject names that are not valid shell variable names.
1604     case $ac_envvar in #(
1605       '' | [0-9]* | *[!_$as_cr_alnum]* )
1606       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1607     esac
1608     eval $ac_envvar=\$ac_optarg
1609     export $ac_envvar ;;
1610
1611   *)
1612     # FIXME: should be removed in autoconf 3.0.
1613     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1614     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1615       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1616     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1617     ;;
1618
1619   esac
1620 done
1621
1622 if test -n "$ac_prev"; then
1623   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1624   as_fn_error $? "missing argument to $ac_option"
1625 fi
1626
1627 if test -n "$ac_unrecognized_opts"; then
1628   case $enable_option_checking in
1629     no) ;;
1630     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1631     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1632   esac
1633 fi
1634
1635 # Check all directory arguments for consistency.
1636 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1637                 datadir sysconfdir sharedstatedir localstatedir includedir \
1638                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1639                 libdir localedir mandir
1640 do
1641   eval ac_val=\$$ac_var
1642   # Remove trailing slashes.
1643   case $ac_val in
1644     */ )
1645       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1646       eval $ac_var=\$ac_val;;
1647   esac
1648   # Be sure to have absolute directory names.
1649   case $ac_val in
1650     [\\/$]* | ?:[\\/]* )  continue;;
1651     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1652   esac
1653   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1654 done
1655
1656 # There might be people who depend on the old broken behavior: `$host'
1657 # used to hold the argument of --host etc.
1658 # FIXME: To remove some day.
1659 build=$build_alias
1660 host=$host_alias
1661 target=$target_alias
1662
1663 # FIXME: To remove some day.
1664 if test "x$host_alias" != x; then
1665   if test "x$build_alias" = x; then
1666     cross_compiling=maybe
1667   elif test "x$build_alias" != "x$host_alias"; then
1668     cross_compiling=yes
1669   fi
1670 fi
1671
1672 ac_tool_prefix=
1673 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1674
1675 test "$silent" = yes && exec 6>/dev/null
1676
1677
1678 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1679 ac_ls_di=`ls -di .` &&
1680 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1681   as_fn_error $? "working directory cannot be determined"
1682 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1683   as_fn_error $? "pwd does not report name of working directory"
1684
1685
1686 # Find the source files, if location was not specified.
1687 if test -z "$srcdir"; then
1688   ac_srcdir_defaulted=yes
1689   # Try the directory containing this script, then the parent directory.
1690   ac_confdir=`$as_dirname -- "$as_myself" ||
1691 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1692          X"$as_myself" : 'X\(//\)[^/]' \| \
1693          X"$as_myself" : 'X\(//\)$' \| \
1694          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1695 $as_echo X"$as_myself" |
1696     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1697             s//\1/
1698             q
1699           }
1700           /^X\(\/\/\)[^/].*/{
1701             s//\1/
1702             q
1703           }
1704           /^X\(\/\/\)$/{
1705             s//\1/
1706             q
1707           }
1708           /^X\(\/\).*/{
1709             s//\1/
1710             q
1711           }
1712           s/.*/./; q'`
1713   srcdir=$ac_confdir
1714   if test ! -r "$srcdir/$ac_unique_file"; then
1715     srcdir=..
1716   fi
1717 else
1718   ac_srcdir_defaulted=no
1719 fi
1720 if test ! -r "$srcdir/$ac_unique_file"; then
1721   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1722   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1723 fi
1724 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1725 ac_abs_confdir=`(
1726         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1727         pwd)`
1728 # When building in place, set srcdir=.
1729 if test "$ac_abs_confdir" = "$ac_pwd"; then
1730   srcdir=.
1731 fi
1732 # Remove unnecessary trailing slashes from srcdir.
1733 # Double slashes in file names in object file debugging info
1734 # mess up M-x gdb in Emacs.
1735 case $srcdir in
1736 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1737 esac
1738 for ac_var in $ac_precious_vars; do
1739   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1740   eval ac_env_${ac_var}_value=\$${ac_var}
1741   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1742   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1743 done
1744
1745 #
1746 # Report the --help message.
1747 #
1748 if test "$ac_init_help" = "long"; then
1749   # Omit some internal or obsolete options to make the list less imposing.
1750   # This message is too long to be a string in the A/UX 3.1 sh.
1751   cat <<_ACEOF
1752 \`configure' configures syncevolution 1.4.1 to adapt to many kinds of systems.
1753
1754 Usage: $0 [OPTION]... [VAR=VALUE]...
1755
1756 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1757 VAR=VALUE.  See below for descriptions of some of the useful variables.
1758
1759 Defaults for the options are specified in brackets.
1760
1761 Configuration:
1762   -h, --help              display this help and exit
1763       --help=short        display options specific to this package
1764       --help=recursive    display the short help of all the included packages
1765   -V, --version           display version information and exit
1766   -q, --quiet, --silent   do not print \`checking ...' messages
1767       --cache-file=FILE   cache test results in FILE [disabled]
1768   -C, --config-cache      alias for \`--cache-file=config.cache'
1769   -n, --no-create         do not create output files
1770       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1771
1772 Installation directories:
1773   --prefix=PREFIX         install architecture-independent files in PREFIX
1774                           [$ac_default_prefix]
1775   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1776                           [PREFIX]
1777
1778 By default, \`make install' will install all the files in
1779 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1780 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1781 for instance \`--prefix=\$HOME'.
1782
1783 For better control, use the options below.
1784
1785 Fine tuning of the installation directories:
1786   --bindir=DIR            user executables [EPREFIX/bin]
1787   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1788   --libexecdir=DIR        program executables [EPREFIX/libexec]
1789   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1790   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1791   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1792   --libdir=DIR            object code libraries [EPREFIX/lib]
1793   --includedir=DIR        C header files [PREFIX/include]
1794   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1795   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1796   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1797   --infodir=DIR           info documentation [DATAROOTDIR/info]
1798   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1799   --mandir=DIR            man documentation [DATAROOTDIR/man]
1800   --docdir=DIR            documentation root [DATAROOTDIR/doc/syncevolution]
1801   --htmldir=DIR           html documentation [DOCDIR]
1802   --dvidir=DIR            dvi documentation [DOCDIR]
1803   --pdfdir=DIR            pdf documentation [DOCDIR]
1804   --psdir=DIR             ps documentation [DOCDIR]
1805 _ACEOF
1806
1807   cat <<\_ACEOF
1808
1809 Program names:
1810   --program-prefix=PREFIX            prepend PREFIX to installed program names
1811   --program-suffix=SUFFIX            append SUFFIX to installed program names
1812   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1813
1814 System types:
1815   --build=BUILD     configure for building on BUILD [guessed]
1816   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1817 _ACEOF
1818 fi
1819
1820 if test -n "$ac_init_help"; then
1821   case $ac_init_help in
1822      short | recursive ) echo "Configuration of syncevolution 1.4.1:";;
1823    esac
1824   cat <<\_ACEOF
1825
1826 Optional Features:
1827   --disable-option-checking  ignore unrecognized --enable/--with options
1828   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1829   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1830   --disable-release-mode  Controls whether resulting binary is for end-users
1831                           or testers/developers. For example, stable releases
1832                           automatically migrate on-disk files without asking,
1833                           whereas other releases ask before making downgrades
1834                           impossible (or difficult). Default in this source
1835                           code is "stable release: yes"
1836   --enable-silent-rules          less verbose build output (undo: `make V=1')
1837   --disable-silent-rules         verbose build output (undo: `make V=0')
1838   --disable-dependency-tracking  speeds up one-time build
1839   --enable-dependency-tracking   do not reject slow dependency extractors
1840   --disable-maintainer-mode  disable make rules and dependencies not useful
1841                           (and sometimes confusing) to the casual installer
1842   --enable-shared[=PKGS]  build shared libraries [default=yes]
1843   --enable-static[=PKGS]  build static libraries [default=yes]
1844   --enable-fast-install[=PKGS]
1845                           optimize for fast installation [default=yes]
1846   --disable-libtool-lock  avoid locking (might break parallel builds)
1847   --enable-warnings=[min|max|fatal|no]
1848                           control compiler pickyness [min]
1849   --enable-shared         build backends as dynamically loadable modules
1850   --enable-static         build backends also as static libraries
1851   --enable-unit-tests     enables tests embedded in the source code of the
1852                           library (changes content of executable)
1853   --enable-integration-tests
1854                           enables tests outside of the library (can be used
1855                           together with normal builds of the library)
1856   --enable-static-cxx     build executables which contain libstdc++ instead of
1857                           requiring suitable libstdc++.so to run
1858   --enable-evolution-compatibility
1859                           build executables which only call Evolution via
1860                           dlopen/dlsym: this avoids all hard dependencies on
1861                           EDS shared objects, but might lead to crashes when
1862                           their ABI changes; use
1863                           --enable-evolution-compatibility=ical to enable a
1864                           weaker mode where linking is done normally and only
1865                           libical.so.0/1 enum differences are worked around
1866                           (allows patching resulting executables to use either
1867                           of these two)
1868   --disable-internal-icaltz
1869                           libical 1.0 updated its system zone data parsing
1870                           code so that it produces VTIMEZONEs which are
1871                           unsuitable for syncing. SyncEvolution ships with a
1872                           copy of the older code and uses it by default.
1873   --enable-developer-mode The dynamic loadble backend libraries is loaded from
1874                           current build directory instead of the standard
1875                           library path
1876   --enable-maemo          enables some hacks which work around problems with
1877                           the Maemo 2.0 until at least 3.0 EDS-Dbus
1878   --enable-libcurl        enable libcurl as transport layer
1879   --enable-libsoup        enable libsoup as transport layer
1880   --enable-dlt            enable logging via GENIVI Diagnostic Log and Trace
1881                           (DLT)
1882   --enable-bluetooth      enable bluetooth transport support
1883   --disable-ssl-certificate-check
1884                           Disable SSL certificate checking in all server
1885                           *templates*. Users can still choose to enable or
1886                           disable it in their configuration. This is necessary
1887                           on platforms where the transport library has
1888                           problems verifying the server's certificate (libsoup
1889                           + Google,
1890                           http://bugzilla.moblin.org/show_bug.cgi?id=4551)
1891   --enable-gtk=major version
1892                           Selects the gtk+ version ("2" or "3") to use for the
1893                           UI. If this option is used, --enable-gui should be
1894                           used as well. "3" is the default option if
1895                           available, otherwise "2".
1896   --enable-gui=gui type   enables building the GTK+ UI that uses the
1897                           SyncEvolution DBus API. Options: gtk, moblin, all
1898                           (builds sync-ui-gtk and sync-ui-moblin) "gtk" is the
1899                           default for --enable-gui without type. No GUI is
1900                           built when --enable-gui is not used.
1901   --enable-core           enables building the core SyncEvolution (library,
1902                           backends)
1903   --enable-dbus-service=args
1904                           Enables building the dbus service executable and all
1905                           related features (the DBus wrapper library, command
1906                           line usage of server, etc). The optional arguments
1907                           are syncevo-dbus-server command line arguments that
1908                           are used when auto-starting via D-Bus or .desktop
1909                           file. By default, the daemon logs to syslog. This
1910                           can be changed via command line arguments.
1911   --enable-notify         send notifications for automatic sync events, using
1912                           libnotify
1913   --enable-notify-compatibility
1914                           increase compatibility with binary libnotify
1915                           installations by loading libnotify.so.1..4
1916                           dynamically instead of linking against it
1917   --enable-mlite          send notifications for automatic sync events, using
1918                           mlite (off by default)
1919   --enable-dbus-service-pim=<locale>
1920                           Enable implementation of org._01.pim D-Bus APIs
1921                           (depends on libfolks), using
1922                           src/dbus/server/pim/locale-factory-<locale>.cpp to
1923                           implement sorting and searching. The default is
1924                           <locale>=boost, which uses boost::locale.
1925   --disable-nls           do not use Native Language Support
1926   --enable-gnome-bluetooth-panel-plugin
1927                           GNOME Bluetooth panel plugin adding a "sync" button
1928                           for paired devices (off by default)
1929   --enable-doc            generate backend and DBus API documentation
1930   --enable-activesync     enable access to servers via ActiveSync (default
1931                           off)
1932   --enable-addressbook    enable access to Mac OS X address book (default off)
1933   --disable-akonadi       disable access to Akonadi (default is to use it if
1934                           akonadi.pc is found)
1935   --disable-ebook         disable access to Evolution addressbooks (must be
1936                           used to compile without it)
1937   --disable-ecal          disable access to Evolution calendars and tasks
1938                           (must be used to compile without it)
1939   --disable-file          disable file-based backend which stores items in
1940                           separate files in a fixed directory (default on)
1941   --enable-gnome-keyring  enables or disables support for the GNOME keyring;
1942                           default is on if development files are available
1943   --disable-goa           enables or disables support for the GNOME Online
1944                           Account single-sign-on system; default is on
1945   --enable-kcalextended   enable support for Maemo's KCalExtended storage
1946   --enable-kwallet        enable access to KWallet
1947   --enable-maemocal       enable access to PIM data stored in Maemo 5 calendar
1948                           application (default off)
1949   --enable-pbap           enable Phone Book Access Protocol (PBAP) based
1950                           backend which provides one-way synchronization
1951                           (default off)
1952   --enable-qtcontacts     enable support for QtMobility's QtContacts storage
1953   --enable-gsso           enables or disables support for the gSSO
1954                           single-sign-on system; default is on if development
1955                           files are available
1956   --enable-uoa            enables or disables support for the UOA
1957                           single-sign-on system; default is on if development
1958                           files are available
1959   --enable-sqlite         enable access to PIM data stored in SQLite files
1960                           (experimental, default off)
1961   --enable-dav            enable WebDAV based backends (CalDAV) (default off)
1962   --enable-neon-compatibility
1963                           increase compatibility with binary libneon
1964                           installations by loading libneon[-gnutls].27.so
1965                           dynamically instead of linking against it
1966   --enable-xmlrpc         enable XMLRPC-based backend which stores items on a
1967                           central web service (default off)
1968   --enable-qt-dbus        build Qt bindings for D-Bus
1969   --enable-dbus-timeout-hack
1970                           Enables code which overrides the default timeout in
1971                           dbus_connection_send_with_reply() so that the method
1972                           call never times out. Needed for libecal/ebook >=
1973                           2.30, so enabled by default if either of these is
1974                           enabled.
1975
1976 Optional Packages:
1977   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1978   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1979   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1980                           both]
1981   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1982   --with-sysroot=DIR Search for dependent libraries within DIR
1983                         (or the compiler's sysroot if not specified).
1984   --with-boost[=ARG]      use Boost library from a standard location
1985                           (ARG=yes), from the specified location (ARG=<path>),
1986                           or disable it (ARG=no) [ARG=yes]
1987   --with-boost-libdir=LIB_DIR
1988                           Force given directory for boost libraries. Note that
1989                           this will override library path detection, so use
1990                           this parameter only if default library detection
1991                           fails and you know exactly where your boost
1992                           libraries are located.
1993   --with-synthesis-src=<base directory|svn URL|git URL>
1994                           Specifies location of the Synthesis root directory.
1995                           Use this when the Synthesis library is to be
1996                           compiled as part of the SyncEvolution compilation.
1997                           In release versions of SyncEvolution, a copy of the
1998                           Synthesis code is bundled under 'src/synthesis' and
1999                           compiled unless something else is specified.
2000                           --with-synthesis-src can be given a path to sources
2001                           checked out already, a Subversion repository URL or
2002                           a git repository URL. When given a repository URL,
2003                           then the configure script will checkout the sources
2004                           into 'src/synthesis-workdir' or update that working
2005                           copy if the directory already exists. Default:
2006                           bundled source in src/synthesis (in released
2007                           SyncEvolution sources),  otherwise.
2008   --with-syncml-engines=client|server|both
2009                           Determines which kind of support for SyncML is
2010                           compiled and linked into SyncEvolution. Default is
2011                           both. Currently has no effect.
2012   --with-synthesis-username=<svn username>
2013                           username to use when checking out
2014                           --with-synthesis-src sources from Subversion,
2015                           default 'guest'
2016   --with-synthesis-revision=<git tag/branch/hash or Subversion revision>
2017                           Identifies which source revision to use from
2018                           --with-synthesis-src repository, empty string stands
2019                           for latest. Default for default --synthesis-src:
2020                           syncevolution-0.9
2021   --with-ca-certificates=<colon separated list of files>
2022                           Specifies location of one or more CA certificate
2023                           files. This sets the default value for the
2024                           SSLServerCertificates option. Default: empty when
2025                           using libcurl (because it has its own default), a
2026                           list of paths known to work for Debian and Red Hat
2027                           otherwise.
2028   --with-dlt-syncevolution=SYNS,SYNH,SYNL
2029                           controls the application IDs used by
2030                           syncevo-dbus-server, syncevo-dbus-helper and
2031                           syncevo-local-sync
2032   --with-gio-gdbus        enables use of GIO's GDBus instead of the in-tree,
2033                           Bluez gdbus.
2034   --with-boost-locale[=special-lib]
2035                           use the Locale library from boost - it is possible
2036                           to specify a certain library for the linker e.g.
2037                           --with-boost-locale=boost_locale-gcc-mt
2038   --with-rst2man=<path to reStructuredText to man converter>
2039                           Specifies an explicit path to the utility if not
2040                           found in PATH. An explicit --without-rst2man or not
2041                           having it installed turn off building of man pages.
2042   --with-rst2html=<path to reStructuredText to HTML converter>
2043                           Specifies an explicit path to the utility if not
2044                           found in PATH. An explicit --without-rst2html or not
2045                           having it installed turn off building of README in
2046                           HTML format.
2047   --with-activesyncd-src=<base directory>
2048                           Specifies location of the activesyncd source root
2049                           directory. Use this when activesyncd is to be
2050                           compiled as part of the SyncEvolution compilation.
2051   --with-google-client-id=...
2052                           OAuth2 client ID for google.provider
2053   --with-google-client-secret=...
2054                           OAuth2 client secret for google.provider
2055   --with-google-client-id-caldav=...
2056                           OAuth2 client ID for google-caldav.service
2057   --with-google-client-secret-caldav=...
2058                           OAuth2 client secret for google-caldav.service
2059   --with-google-client-id-carddav=...
2060                           OAuth2 client ID for google-carddav.service
2061   --with-google-client-secret-carddav=...
2062                           OAuth2 client secret for google-carddav.service
2063   --with-qt               Path to Qt [Look in PATH and /usr/local/Trolltech]
2064
2065 Some influential environment variables:
2066   CC          C compiler command
2067   CFLAGS      C compiler flags
2068   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2069               nonstandard directory <lib dir>
2070   LIBS        libraries to pass to the linker, e.g. -l<library>
2071   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2072               you have headers in a nonstandard directory <include dir>
2073   CPP         C preprocessor
2074   CXX         C++ compiler command
2075   CXXFLAGS    C++ compiler flags
2076   CXXCPP      C++ preprocessor
2077   PKG_CONFIG  path to pkg-config utility
2078   PKG_CONFIG_PATH
2079               directories to add to pkg-config's search path
2080   PKG_CONFIG_LIBDIR
2081               path overriding pkg-config's built-in search path
2082   LIBSOUP_CFLAGS
2083               C compiler flags for LIBSOUP, overriding pkg-config
2084   LIBSOUP_LIBS
2085               linker flags for LIBSOUP, overriding pkg-config
2086   LIBOPENOBEX_CFLAGS
2087               C compiler flags for LIBOPENOBEX, overriding pkg-config
2088   LIBOPENOBEX_LIBS
2089               linker flags for LIBOPENOBEX, overriding pkg-config
2090   BLUEZ_CFLAGS
2091               C compiler flags for BLUEZ, overriding pkg-config
2092   BLUEZ_LIBS  linker flags for BLUEZ, overriding pkg-config
2093   DLT_CFLAGS  C compiler flags for DLT, overriding pkg-config
2094   DLT_LIBS    linker flags for DLT, overriding pkg-config
2095   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2096   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
2097   LIBNOTIFY_CFLAGS
2098               C compiler flags for LIBNOTIFY, overriding pkg-config
2099   LIBNOTIFY_LIBS
2100               linker flags for LIBNOTIFY, overriding pkg-config
2101   MLITE_CFLAGS
2102               C compiler flags for MLITE, overriding pkg-config
2103   MLITE_LIBS  linker flags for MLITE, overriding pkg-config
2104   FOLKS_CFLAGS
2105               C compiler flags for FOLKS, overriding pkg-config
2106   FOLKS_LIBS  linker flags for FOLKS, overriding pkg-config
2107   ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
2108   ICU_LIBS    linker flags for ICU, overriding pkg-config
2109   DBUS_GLIB_CFLAGS
2110               C compiler flags for DBUS_GLIB, overriding pkg-config
2111   DBUS_GLIB_LIBS
2112               linker flags for DBUS_GLIB, overriding pkg-config
2113   MX_GTK_0_99_1_CFLAGS
2114               C compiler flags for MX_GTK_0_99_1, overriding pkg-config
2115   MX_GTK_0_99_1_LIBS
2116               linker flags for MX_GTK_0_99_1, overriding pkg-config
2117   UNIQUE_CFLAGS
2118               C compiler flags for UNIQUE, overriding pkg-config
2119   UNIQUE_LIBS linker flags for UNIQUE, overriding pkg-config
2120   GTK_2_18_CFLAGS
2121               C compiler flags for GTK_2_18, overriding pkg-config
2122   GTK_2_18_LIBS
2123               linker flags for GTK_2_18, overriding pkg-config
2124   GUI_CFLAGS  C compiler flags for GUI, overriding pkg-config
2125   GUI_LIBS    linker flags for GUI, overriding pkg-config
2126   PCRECPP_CFLAGS
2127               C compiler flags for PCRECPP, overriding pkg-config
2128   PCRECPP_LIBS
2129               linker flags for PCRECPP, overriding pkg-config
2130   SYNTHESIS_CFLAGS
2131               C compiler flags for SYNTHESIS, overriding pkg-config
2132   SYNTHESIS_LIBS
2133               linker flags for SYNTHESIS, overriding pkg-config
2134   WITH_SYNTHESIS_SRC_CFLAGS
2135               C compiler flags for WITH_SYNTHESIS_SRC, overriding pkg-config
2136   WITH_SYNTHESIS_SRC_LIBS
2137               linker flags for WITH_SYNTHESIS_SRC, overriding pkg-config
2138   GNOMEBLUETOOTH_CFLAGS
2139               C compiler flags for GNOMEBLUETOOTH, overriding pkg-config
2140   GNOMEBLUETOOTH_LIBS
2141               linker flags for GNOMEBLUETOOTH, overriding pkg-config
2142   EASCLIENT_CFLAGS
2143               C compiler flags for EASCLIENT, overriding pkg-config
2144   EASCLIENT_LIBS
2145               linker flags for EASCLIENT, overriding pkg-config
2146   EPACKAGE_CFLAGS
2147               C compiler flags for EPACKAGE, overriding pkg-config
2148   EPACKAGE_LIBS
2149               linker flags for EPACKAGE, overriding pkg-config
2150   ECAL_CFLAGS C compiler flags for ECAL, overriding pkg-config
2151   ECAL_LIBS   linker flags for ECAL, overriding pkg-config
2152   EBOOK_CFLAGS
2153               C compiler flags for EBOOK, overriding pkg-config
2154   EBOOK_LIBS  linker flags for EBOOK, overriding pkg-config
2155   EBOOK_VERSION_CFLAGS
2156               C compiler flags for EBOOK_VERSION, overriding pkg-config
2157   EBOOK_VERSION_LIBS
2158               linker flags for EBOOK_VERSION, overriding pkg-config
2159   EDS_VERSION_CFLAGS
2160               C compiler flags for EDS_VERSION, overriding pkg-config
2161   EDS_VERSION_LIBS
2162               linker flags for EDS_VERSION, overriding pkg-config
2163   KEYRING_CFLAGS
2164               C compiler flags for KEYRING, overriding pkg-config
2165   KEYRING_LIBS
2166               linker flags for KEYRING, overriding pkg-config
2167   KCALEXTENDED_CFLAGS
2168               C compiler flags for KCALEXTENDED, overriding pkg-config
2169   KCALEXTENDED_LIBS
2170               linker flags for KCALEXTENDED, overriding pkg-config
2171   MCALB_CFLAGS
2172               C compiler flags for MCALB, overriding pkg-config
2173   MCALB_LIBS  linker flags for MCALB, overriding pkg-config
2174   GSSO_CFLAGS C compiler flags for GSSO, overriding pkg-config
2175   GSSO_LIBS   linker flags for GSSO, overriding pkg-config
2176   UOA_CFLAGS  C compiler flags for UOA, overriding pkg-config
2177   UOA_LIBS    linker flags for UOA, overriding pkg-config
2178   SQLITE_CFLAGS
2179               C compiler flags for SQLITE, overriding pkg-config
2180   SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
2181   NEON_CFLAGS C compiler flags for NEON, overriding pkg-config
2182   NEON_LIBS   linker flags for NEON, overriding pkg-config
2183   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
2184   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
2185   GTHREAD_CFLAGS
2186               C compiler flags for GTHREAD, overriding pkg-config
2187   GTHREAD_LIBS
2188               linker flags for GTHREAD, overriding pkg-config
2189   GOBJECT_CFLAGS
2190               C compiler flags for GOBJECT, overriding pkg-config
2191   GOBJECT_LIBS
2192               linker flags for GOBJECT, overriding pkg-config
2193   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
2194   GIO_LIBS    linker flags for GIO, overriding pkg-config
2195   LIBICAL_CFLAGS
2196               C compiler flags for LIBICAL, overriding pkg-config
2197   LIBICAL_LIBS
2198               linker flags for LIBICAL, overriding pkg-config
2199   QT_PATH     Path to the Qt installation
2200   QMAKE       Qt Makefile generator command
2201   MOC         Qt Meta Object Compiler command
2202   UIC         Qt User Interface Compiler command
2203   RCC         Qt Resource Compiler command
2204   GLIB216_CFLAGS
2205               C compiler flags for GLIB216, overriding pkg-config
2206   GLIB216_LIBS
2207               linker flags for GLIB216, overriding pkg-config
2208   NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
2209   NSS_LIBS    linker flags for NSS, overriding pkg-config
2210   LIBICAL_AVAILABLE_CFLAGS
2211               C compiler flags for LIBICAL_AVAILABLE, overriding pkg-config
2212   LIBICAL_AVAILABLE_LIBS
2213               linker flags for LIBICAL_AVAILABLE, overriding pkg-config
2214
2215 Use these variables to override the choices made by `configure' or to help
2216 it to find libraries and programs with nonstandard names/locations.
2217
2218 Report bugs to the package provider.
2219 _ACEOF
2220 ac_status=$?
2221 fi
2222
2223 if test "$ac_init_help" = "recursive"; then
2224   # If there are subdirs, report their specific --help.
2225   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2226     test -d "$ac_dir" ||
2227       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2228       continue
2229     ac_builddir=.
2230
2231 case "$ac_dir" in
2232 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2233 *)
2234   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2235   # A ".." for each directory in $ac_dir_suffix.
2236   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2237   case $ac_top_builddir_sub in
2238   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2239   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2240   esac ;;
2241 esac
2242 ac_abs_top_builddir=$ac_pwd
2243 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2244 # for backward compatibility:
2245 ac_top_builddir=$ac_top_build_prefix
2246
2247 case $srcdir in
2248   .)  # We are building in place.
2249     ac_srcdir=.
2250     ac_top_srcdir=$ac_top_builddir_sub
2251     ac_abs_top_srcdir=$ac_pwd ;;
2252   [\\/]* | ?:[\\/]* )  # Absolute name.
2253     ac_srcdir=$srcdir$ac_dir_suffix;
2254     ac_top_srcdir=$srcdir
2255     ac_abs_top_srcdir=$srcdir ;;
2256   *) # Relative name.
2257     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2258     ac_top_srcdir=$ac_top_build_prefix$srcdir
2259     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2260 esac
2261 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2262
2263     cd "$ac_dir" || { ac_status=$?; continue; }
2264     # Check for guested configure.
2265     if test -f "$ac_srcdir/configure.gnu"; then
2266       echo &&
2267       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2268     elif test -f "$ac_srcdir/configure"; then
2269       echo &&
2270       $SHELL "$ac_srcdir/configure" --help=recursive
2271     else
2272       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2273     fi || ac_status=$?
2274     cd "$ac_pwd" || { ac_status=$?; break; }
2275   done
2276 fi
2277
2278 test -n "$ac_init_help" && exit $ac_status
2279 if $ac_init_version; then
2280   cat <<\_ACEOF
2281 syncevolution configure 1.4.1
2282 generated by GNU Autoconf 2.69
2283
2284 Copyright (C) 2012 Free Software Foundation, Inc.
2285 This configure script is free software; the Free Software Foundation
2286 gives unlimited permission to copy, distribute and modify it.
2287 _ACEOF
2288   exit
2289 fi
2290
2291 ## ------------------------ ##
2292 ## Autoconf initialization. ##
2293 ## ------------------------ ##
2294
2295 # ac_fn_c_try_compile LINENO
2296 # --------------------------
2297 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2298 ac_fn_c_try_compile ()
2299 {
2300   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301   rm -f conftest.$ac_objext
2302   if { { ac_try="$ac_compile"
2303 case "(($ac_try" in
2304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305   *) ac_try_echo=$ac_try;;
2306 esac
2307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2308 $as_echo "$ac_try_echo"; } >&5
2309   (eval "$ac_compile") 2>conftest.err
2310   ac_status=$?
2311   if test -s conftest.err; then
2312     grep -v '^ *+' conftest.err >conftest.er1
2313     cat conftest.er1 >&5
2314     mv -f conftest.er1 conftest.err
2315   fi
2316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317   test $ac_status = 0; } && {
2318          test -z "$ac_c_werror_flag" ||
2319          test ! -s conftest.err
2320        } && test -s conftest.$ac_objext; then :
2321   ac_retval=0
2322 else
2323   $as_echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325
2326         ac_retval=1
2327 fi
2328   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2329   as_fn_set_status $ac_retval
2330
2331 } # ac_fn_c_try_compile
2332
2333 # ac_fn_c_try_link LINENO
2334 # -----------------------
2335 # Try to link conftest.$ac_ext, and return whether this succeeded.
2336 ac_fn_c_try_link ()
2337 {
2338   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2339   rm -f conftest.$ac_objext conftest$ac_exeext
2340   if { { ac_try="$ac_link"
2341 case "(($ac_try" in
2342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2343   *) ac_try_echo=$ac_try;;
2344 esac
2345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2346 $as_echo "$ac_try_echo"; } >&5
2347   (eval "$ac_link") 2>conftest.err
2348   ac_status=$?
2349   if test -s conftest.err; then
2350     grep -v '^ *+' conftest.err >conftest.er1
2351     cat conftest.er1 >&5
2352     mv -f conftest.er1 conftest.err
2353   fi
2354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2355   test $ac_status = 0; } && {
2356          test -z "$ac_c_werror_flag" ||
2357          test ! -s conftest.err
2358        } && test -s conftest$ac_exeext && {
2359          test "$cross_compiling" = yes ||
2360          test -x conftest$ac_exeext
2361        }; then :
2362   ac_retval=0
2363 else
2364   $as_echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2366
2367         ac_retval=1
2368 fi
2369   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2370   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2371   # interfere with the next link command; also delete a directory that is
2372   # left behind by Apple's compiler.  We do this before executing the actions.
2373   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2374   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2375   as_fn_set_status $ac_retval
2376
2377 } # ac_fn_c_try_link
2378
2379 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2380 # -------------------------------------------------------
2381 # Tests whether HEADER exists and can be compiled using the include files in
2382 # INCLUDES, setting the cache variable VAR accordingly.
2383 ac_fn_c_check_header_compile ()
2384 {
2385   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2387 $as_echo_n "checking for $2... " >&6; }
2388 if eval \${$3+:} false; then :
2389   $as_echo_n "(cached) " >&6
2390 else
2391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h.  */
2393 $4
2394 #include <$2>
2395 _ACEOF
2396 if ac_fn_c_try_compile "$LINENO"; then :
2397   eval "$3=yes"
2398 else
2399   eval "$3=no"
2400 fi
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 fi
2403 eval ac_res=\$$3
2404                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2405 $as_echo "$ac_res" >&6; }
2406   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2407
2408 } # ac_fn_c_check_header_compile
2409
2410 # ac_fn_c_try_cpp LINENO
2411 # ----------------------
2412 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2413 ac_fn_c_try_cpp ()
2414 {
2415   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416   if { { ac_try="$ac_cpp conftest.$ac_ext"
2417 case "(($ac_try" in
2418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419   *) ac_try_echo=$ac_try;;
2420 esac
2421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2422 $as_echo "$ac_try_echo"; } >&5
2423   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2424   ac_status=$?
2425   if test -s conftest.err; then
2426     grep -v '^ *+' conftest.err >conftest.er1
2427     cat conftest.er1 >&5
2428     mv -f conftest.er1 conftest.err
2429   fi
2430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2431   test $ac_status = 0; } > conftest.i && {
2432          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2433          test ! -s conftest.err
2434        }; then :
2435   ac_retval=0
2436 else
2437   $as_echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2439
2440     ac_retval=1
2441 fi
2442   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2443   as_fn_set_status $ac_retval
2444
2445 } # ac_fn_c_try_cpp
2446
2447 # ac_fn_c_try_run LINENO
2448 # ----------------------
2449 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2450 # that executables *can* be run.
2451 ac_fn_c_try_run ()
2452 {
2453   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454   if { { ac_try="$ac_link"
2455 case "(($ac_try" in
2456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457   *) ac_try_echo=$ac_try;;
2458 esac
2459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2460 $as_echo "$ac_try_echo"; } >&5
2461   (eval "$ac_link") 2>&5
2462   ac_status=$?
2463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2464   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2465   { { case "(($ac_try" in
2466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467   *) ac_try_echo=$ac_try;;
2468 esac
2469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2470 $as_echo "$ac_try_echo"; } >&5
2471   (eval "$ac_try") 2>&5
2472   ac_status=$?
2473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2474   test $ac_status = 0; }; }; then :
2475   ac_retval=0
2476 else
2477   $as_echo "$as_me: program exited with status $ac_status" >&5
2478        $as_echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2480
2481        ac_retval=$ac_status
2482 fi
2483   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2484   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2485   as_fn_set_status $ac_retval
2486
2487 } # ac_fn_c_try_run
2488
2489 # ac_fn_c_check_func LINENO FUNC VAR
2490 # ----------------------------------
2491 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2492 ac_fn_c_check_func ()
2493 {
2494   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2496 $as_echo_n "checking for $2... " >&6; }
2497 if eval \${$3+:} false; then :
2498   $as_echo_n "(cached) " >&6
2499 else
2500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h.  */
2502 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2504 #define $2 innocuous_$2
2505
2506 /* System header to define __stub macros and hopefully few prototypes,
2507     which can conflict with char $2 (); below.
2508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2509     <limits.h> exists even on freestanding compilers.  */
2510
2511 #ifdef __STDC__
2512 # include <limits.h>
2513 #else
2514 # include <assert.h>
2515 #endif
2516
2517 #undef $2
2518
2519 /* Override any GCC internal prototype to avoid an error.
2520    Use char because int might match the return type of a GCC
2521    builtin and then its argument prototype would still apply.  */
2522 #ifdef __cplusplus
2523 extern "C"
2524 #endif
2525 char $2 ();
2526 /* The GNU C library defines this for functions which it implements
2527     to always fail with ENOSYS.  Some functions are actually named
2528     something starting with __ and the normal name is an alias.  */
2529 #if defined __stub_$2 || defined __stub___$2
2530 choke me
2531 #endif
2532
2533 int
2534 main ()
2535 {
2536 return $2 ();
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 if ac_fn_c_try_link "$LINENO"; then :
2542   eval "$3=yes"
2543 else
2544   eval "$3=no"
2545 fi
2546 rm -f core conftest.err conftest.$ac_objext \
2547     conftest$ac_exeext conftest.$ac_ext
2548 fi
2549 eval ac_res=\$$3
2550                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2551 $as_echo "$ac_res" >&6; }
2552   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2553
2554 } # ac_fn_c_check_func
2555
2556 # ac_fn_cxx_try_compile LINENO
2557 # ----------------------------
2558 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2559 ac_fn_cxx_try_compile ()
2560 {
2561   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2562   rm -f conftest.$ac_objext
2563   if { { ac_try="$ac_compile"
2564 case "(($ac_try" in
2565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566   *) ac_try_echo=$ac_try;;
2567 esac
2568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2569 $as_echo "$ac_try_echo"; } >&5
2570   (eval "$ac_compile") 2>conftest.err
2571   ac_status=$?
2572   if test -s conftest.err; then
2573     grep -v '^ *+' conftest.err >conftest.er1
2574     cat conftest.er1 >&5
2575     mv -f conftest.er1 conftest.err
2576   fi
2577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2578   test $ac_status = 0; } && {
2579          test -z "$ac_cxx_werror_flag" ||
2580          test ! -s conftest.err
2581        } && test -s conftest.$ac_objext; then :
2582   ac_retval=0
2583 else
2584   $as_echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2586
2587         ac_retval=1
2588 fi
2589   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2590   as_fn_set_status $ac_retval
2591
2592 } # ac_fn_cxx_try_compile
2593
2594 # ac_fn_cxx_try_cpp LINENO
2595 # ------------------------
2596 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2597 ac_fn_cxx_try_cpp ()
2598 {
2599   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2600   if { { ac_try="$ac_cpp conftest.$ac_ext"
2601 case "(($ac_try" in
2602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603   *) ac_try_echo=$ac_try;;
2604 esac
2605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2606 $as_echo "$ac_try_echo"; } >&5
2607   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2608   ac_status=$?
2609   if test -s conftest.err; then
2610     grep -v '^ *+' conftest.err >conftest.er1
2611     cat conftest.er1 >&5
2612     mv -f conftest.er1 conftest.err
2613   fi
2614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2615   test $ac_status = 0; } > conftest.i && {
2616          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2617          test ! -s conftest.err
2618        }; then :
2619   ac_retval=0
2620 else
2621   $as_echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.$ac_ext >&5
2623
2624     ac_retval=1
2625 fi
2626   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2627   as_fn_set_status $ac_retval
2628
2629 } # ac_fn_cxx_try_cpp
2630
2631 # ac_fn_cxx_try_link LINENO
2632 # -------------------------
2633 # Try to link conftest.$ac_ext, and return whether this succeeded.
2634 ac_fn_cxx_try_link ()
2635 {
2636   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2637   rm -f conftest.$ac_objext conftest$ac_exeext
2638   if { { ac_try="$ac_link"
2639 case "(($ac_try" in
2640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641   *) ac_try_echo=$ac_try;;
2642 esac
2643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2644 $as_echo "$ac_try_echo"; } >&5
2645   (eval "$ac_link") 2>conftest.err
2646   ac_status=$?
2647   if test -s conftest.err; then
2648     grep -v '^ *+' conftest.err >conftest.er1
2649     cat conftest.er1 >&5
2650     mv -f conftest.er1 conftest.err
2651   fi
2652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2653   test $ac_status = 0; } && {
2654          test -z "$ac_cxx_werror_flag" ||
2655          test ! -s conftest.err
2656        } && test -s conftest$ac_exeext && {
2657          test "$cross_compiling" = yes ||
2658          test -x conftest$ac_exeext
2659        }; then :
2660   ac_retval=0
2661 else
2662   $as_echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.$ac_ext >&5
2664
2665         ac_retval=1
2666 fi
2667   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2668   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2669   # interfere with the next link command; also delete a directory that is
2670   # left behind by Apple's compiler.  We do this before executing the actions.
2671   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2672   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2673   as_fn_set_status $ac_retval
2674
2675 } # ac_fn_cxx_try_link
2676
2677 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2678 # -------------------------------------------------------
2679 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2680 # the include files in INCLUDES and setting the cache variable VAR
2681 # accordingly.
2682 ac_fn_c_check_header_mongrel ()
2683 {
2684   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2685   if eval \${$3+:} false; then :
2686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2687 $as_echo_n "checking for $2... " >&6; }
2688 if eval \${$3+:} false; then :
2689   $as_echo_n "(cached) " >&6
2690 fi
2691 eval ac_res=\$$3
2692                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2693 $as_echo "$ac_res" >&6; }
2694 else
2695   # Is the header compilable?
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2697 $as_echo_n "checking $2 usability... " >&6; }
2698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2699 /* end confdefs.h.  */
2700 $4
2701 #include <$2>
2702 _ACEOF
2703 if ac_fn_c_try_compile "$LINENO"; then :
2704   ac_header_compiler=yes
2705 else
2706   ac_header_compiler=no
2707 fi
2708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2710 $as_echo "$ac_header_compiler" >&6; }
2711
2712 # Is the header present?
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2714 $as_echo_n "checking $2 presence... " >&6; }
2715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2716 /* end confdefs.h.  */
2717 #include <$2>
2718 _ACEOF
2719 if ac_fn_c_try_cpp "$LINENO"; then :
2720   ac_header_preproc=yes
2721 else
2722   ac_header_preproc=no
2723 fi
2724 rm -f conftest.err conftest.i conftest.$ac_ext
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2726 $as_echo "$ac_header_preproc" >&6; }
2727
2728 # So?  What about this header?
2729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2730   yes:no: )
2731     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2732 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2733     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2734 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2735     ;;
2736   no:yes:* )
2737     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2738 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2739     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2740 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2741     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2742 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2743     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2744 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2745     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2746 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2747     ;;
2748 esac
2749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2750 $as_echo_n "checking for $2... " >&6; }
2751 if eval \${$3+:} false; then :
2752   $as_echo_n "(cached) " >&6
2753 else
2754   eval "$3=\$ac_header_compiler"
2755 fi
2756 eval ac_res=\$$3
2757                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2758 $as_echo "$ac_res" >&6; }
2759 fi
2760   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2761
2762 } # ac_fn_c_check_header_mongrel
2763
2764 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2765 # ---------------------------------------------------------
2766 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2767 # the include files in INCLUDES and setting the cache variable VAR
2768 # accordingly.
2769 ac_fn_cxx_check_header_mongrel ()
2770 {
2771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2772   if eval \${$3+:} false; then :
2773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2774 $as_echo_n "checking for $2... " >&6; }
2775 if eval \${$3+:} false; then :
2776   $as_echo_n "(cached) " >&6
2777 fi
2778 eval ac_res=\$$3
2779                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2780 $as_echo "$ac_res" >&6; }
2781 else
2782   # Is the header compilable?
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2784 $as_echo_n "checking $2 usability... " >&6; }
2785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2786 /* end confdefs.h.  */
2787 $4
2788 #include <$2>
2789 _ACEOF
2790 if ac_fn_cxx_try_compile "$LINENO"; then :
2791   ac_header_compiler=yes
2792 else
2793   ac_header_compiler=no
2794 fi
2795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2797 $as_echo "$ac_header_compiler" >&6; }
2798
2799 # Is the header present?
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2801 $as_echo_n "checking $2 presence... " >&6; }
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803 /* end confdefs.h.  */
2804 #include <$2>
2805 _ACEOF
2806 if ac_fn_cxx_try_cpp "$LINENO"; then :
2807   ac_header_preproc=yes
2808 else
2809   ac_header_preproc=no
2810 fi
2811 rm -f conftest.err conftest.i conftest.$ac_ext
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2813 $as_echo "$ac_header_preproc" >&6; }
2814
2815 # So?  What about this header?
2816 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2817   yes:no: )
2818     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2819 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2820     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2822     ;;
2823   no:yes:* )
2824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2825 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2826     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2827 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2828     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2829 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2830     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2831 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2832     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2833 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2834     ;;
2835 esac
2836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2837 $as_echo_n "checking for $2... " >&6; }
2838 if eval \${$3+:} false; then :
2839   $as_echo_n "(cached) " >&6
2840 else
2841   eval "$3=\$ac_header_compiler"
2842 fi
2843 eval ac_res=\$$3
2844                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2845 $as_echo "$ac_res" >&6; }
2846 fi
2847   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2848
2849 } # ac_fn_cxx_check_header_mongrel
2850
2851 # ac_fn_cxx_check_func LINENO FUNC VAR
2852 # ------------------------------------
2853 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2854 ac_fn_cxx_check_func ()
2855 {
2856   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2858 $as_echo_n "checking for $2... " >&6; }
2859 if eval \${$3+:} false; then :
2860   $as_echo_n "(cached) " >&6
2861 else
2862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863 /* end confdefs.h.  */
2864 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2866 #define $2 innocuous_$2
2867
2868 /* System header to define __stub macros and hopefully few prototypes,
2869     which can conflict with char $2 (); below.
2870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2871     <limits.h> exists even on freestanding compilers.  */
2872
2873 #ifdef __STDC__
2874 # include <limits.h>
2875 #else
2876 # include <assert.h>
2877 #endif
2878
2879 #undef $2
2880
2881 /* Override any GCC internal prototype to avoid an error.
2882    Use char because int might match the return type of a GCC
2883    builtin and then its argument prototype would still apply.  */
2884 #ifdef __cplusplus
2885 extern "C"
2886 #endif
2887 char $2 ();
2888 /* The GNU C library defines this for functions which it implements
2889     to always fail with ENOSYS.  Some functions are actually named
2890     something starting with __ and the normal name is an alias.  */
2891 #if defined __stub_$2 || defined __stub___$2
2892 choke me
2893 #endif
2894
2895 int
2896 main ()
2897 {
2898 return $2 ();
2899   ;
2900   return 0;
2901 }
2902 _ACEOF
2903 if ac_fn_cxx_try_link "$LINENO"; then :
2904   eval "$3=yes"
2905 else
2906   eval "$3=no"
2907 fi
2908 rm -f core conftest.err conftest.$ac_objext \
2909     conftest$ac_exeext conftest.$ac_ext
2910 fi
2911 eval ac_res=\$$3
2912                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2913 $as_echo "$ac_res" >&6; }
2914   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2915
2916 } # ac_fn_cxx_check_func
2917 cat >config.log <<_ACEOF
2918 This file contains any messages produced by compilers while
2919 running configure, to aid debugging if configure makes a mistake.
2920
2921 It was created by syncevolution $as_me 1.4.1, which was
2922 generated by GNU Autoconf 2.69.  Invocation command line was
2923
2924   $ $0 $@
2925
2926 _ACEOF
2927 exec 5>>config.log
2928 {
2929 cat <<_ASUNAME
2930 ## --------- ##
2931 ## Platform. ##
2932 ## --------- ##
2933
2934 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2935 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2936 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2937 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2938 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2939
2940 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2941 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2942
2943 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2944 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2945 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2946 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2947 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2948 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2949 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2950
2951 _ASUNAME
2952
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956   IFS=$as_save_IFS
2957   test -z "$as_dir" && as_dir=.
2958     $as_echo "PATH: $as_dir"
2959   done
2960 IFS=$as_save_IFS
2961
2962 } >&5
2963
2964 cat >&5 <<_ACEOF
2965
2966
2967 ## ----------- ##
2968 ## Core tests. ##
2969 ## ----------- ##
2970
2971 _ACEOF
2972
2973
2974 # Keep a trace of the command line.
2975 # Strip out --no-create and --no-recursion so they do not pile up.
2976 # Strip out --silent because we don't want to record it for future runs.
2977 # Also quote any args containing shell meta-characters.
2978 # Make two passes to allow for proper duplicate-argument suppression.
2979 ac_configure_args=
2980 ac_configure_args0=
2981 ac_configure_args1=
2982 ac_must_keep_next=false
2983 for ac_pass in 1 2
2984 do
2985   for ac_arg
2986   do
2987     case $ac_arg in
2988     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2989     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2990     | -silent | --silent | --silen | --sile | --sil)
2991       continue ;;
2992     *\'*)
2993       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2994     esac
2995     case $ac_pass in
2996     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2997     2)
2998       as_fn_append ac_configure_args1 " '$ac_arg'"
2999       if test $ac_must_keep_next = true; then
3000         ac_must_keep_next=false # Got value, back to normal.
3001       else
3002         case $ac_arg in
3003           *=* | --config-cache | -C | -disable-* | --disable-* \
3004           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3005           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3006           | -with-* | --with-* | -without-* | --without-* | --x)
3007             case "$ac_configure_args0 " in
3008               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3009             esac
3010             ;;
3011           -* ) ac_must_keep_next=true ;;
3012         esac
3013       fi
3014       as_fn_append ac_configure_args " '$ac_arg'"
3015       ;;
3016     esac
3017   done
3018 done
3019 { ac_configure_args0=; unset ac_configure_args0;}
3020 { ac_configure_args1=; unset ac_configure_args1;}
3021
3022 # When interrupted or exit'd, cleanup temporary files, and complete
3023 # config.log.  We remove comments because anyway the quotes in there
3024 # would cause problems or look ugly.
3025 # WARNING: Use '\'' to represent an apostrophe within the trap.
3026 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3027 trap 'exit_status=$?
3028   # Save into config.log some information that might help in debugging.
3029   {
3030     echo
3031
3032     $as_echo "## ---------------- ##
3033 ## Cache variables. ##
3034 ## ---------------- ##"
3035     echo
3036     # The following way of writing the cache mishandles newlines in values,
3037 (
3038   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3039     eval ac_val=\$$ac_var
3040     case $ac_val in #(
3041     *${as_nl}*)
3042       case $ac_var in #(
3043       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3044 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3045       esac
3046       case $ac_var in #(
3047       _ | IFS | as_nl) ;; #(
3048       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3049       *) { eval $ac_var=; unset $ac_var;} ;;
3050       esac ;;
3051     esac
3052   done
3053   (set) 2>&1 |
3054     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3055     *${as_nl}ac_space=\ *)
3056       sed -n \
3057         "s/'\''/'\''\\\\'\'''\''/g;
3058           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3059       ;; #(
3060     *)
3061       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3062       ;;
3063     esac |
3064     sort
3065 )
3066     echo
3067
3068     $as_echo "## ----------------- ##
3069 ## Output variables. ##
3070 ## ----------------- ##"
3071     echo
3072     for ac_var in $ac_subst_vars
3073     do
3074       eval ac_val=\$$ac_var
3075       case $ac_val in
3076       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3077       esac
3078       $as_echo "$ac_var='\''$ac_val'\''"
3079     done | sort
3080     echo
3081
3082     if test -n "$ac_subst_files"; then
3083       $as_echo "## ------------------- ##
3084 ## File substitutions. ##
3085 ## ------------------- ##"
3086       echo
3087       for ac_var in $ac_subst_files
3088       do
3089         eval ac_val=\$$ac_var
3090         case $ac_val in
3091         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3092         esac
3093         $as_echo "$ac_var='\''$ac_val'\''"
3094       done | sort
3095       echo
3096     fi
3097
3098     if test -s confdefs.h; then
3099       $as_echo "## ----------- ##
3100 ## confdefs.h. ##
3101 ## ----------- ##"
3102       echo
3103       cat confdefs.h
3104       echo
3105     fi
3106     test "$ac_signal" != 0 &&
3107       $as_echo "$as_me: caught signal $ac_signal"
3108     $as_echo "$as_me: exit $exit_status"
3109   } >&5
3110   rm -f core *.core core.conftest.* &&
3111     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3112     exit $exit_status
3113 ' 0
3114 for ac_signal in 1 2 13 15; do
3115   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3116 done
3117 ac_signal=0
3118
3119 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3120 rm -f -r conftest* confdefs.h
3121
3122 $as_echo "/* confdefs.h */" > confdefs.h
3123
3124 # Predefined preprocessor variables.
3125
3126 cat >>confdefs.h <<_ACEOF
3127 #define PACKAGE_NAME "$PACKAGE_NAME"
3128 _ACEOF
3129
3130 cat >>confdefs.h <<_ACEOF
3131 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3132 _ACEOF
3133
3134 cat >>confdefs.h <<_ACEOF
3135 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3136 _ACEOF
3137
3138 cat >>confdefs.h <<_ACEOF
3139 #define PACKAGE_STRING "$PACKAGE_STRING"
3140 _ACEOF
3141
3142 cat >>confdefs.h <<_ACEOF
3143 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3144 _ACEOF
3145
3146 cat >>confdefs.h <<_ACEOF
3147 #define PACKAGE_URL "$PACKAGE_URL"
3148 _ACEOF
3149
3150
3151 # Let the site file select an alternate cache file if it wants to.
3152 # Prefer an explicitly selected file to automatically selected ones.
3153 ac_site_file1=NONE
3154 ac_site_file2=NONE
3155 if test -n "$CONFIG_SITE"; then
3156   # We do not want a PATH search for config.site.
3157   case $CONFIG_SITE in #((
3158     -*)  ac_site_file1=./$CONFIG_SITE;;
3159     */*) ac_site_file1=$CONFIG_SITE;;
3160     *)   ac_site_file1=./$CONFIG_SITE;;
3161   esac
3162 elif test "x$prefix" != xNONE; then
3163   ac_site_file1=$prefix/share/config.site
3164   ac_site_file2=$prefix/etc/config.site
3165 else
3166   ac_site_file1=$ac_default_prefix/share/config.site
3167   ac_site_file2=$ac_default_prefix/etc/config.site
3168 fi
3169 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3170 do
3171   test "x$ac_site_file" = xNONE && continue
3172   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3173     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3174 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3175     sed 's/^/| /' "$ac_site_file" >&5
3176     . "$ac_site_file" \
3177       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 as_fn_error $? "failed to load site script $ac_site_file
3180 See \`config.log' for more details" "$LINENO" 5; }
3181   fi
3182 done
3183
3184 if test -r "$cache_file"; then
3185   # Some versions of bash will fail to source /dev/null (special files
3186   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3187   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3188     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3189 $as_echo "$as_me: loading cache $cache_file" >&6;}
3190     case $cache_file in
3191       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3192       *)                      . "./$cache_file";;
3193     esac
3194   fi
3195 else
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3197 $as_echo "$as_me: creating cache $cache_file" >&6;}
3198   >$cache_file
3199 fi
3200
3201 # Check that the precious variables saved in the cache have kept the same
3202 # value.
3203 ac_cache_corrupted=false
3204 for ac_var in $ac_precious_vars; do
3205   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3206   eval ac_new_set=\$ac_env_${ac_var}_set
3207   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3208   eval ac_new_val=\$ac_env_${ac_var}_value
3209   case $ac_old_set,$ac_new_set in
3210     set,)
3211       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3212 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3213       ac_cache_corrupted=: ;;
3214     ,set)
3215       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3216 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3217       ac_cache_corrupted=: ;;
3218     ,);;
3219     *)
3220       if test "x$ac_old_val" != "x$ac_new_val"; then
3221         # differences in whitespace do not lead to failure.
3222         ac_old_val_w=`echo x $ac_old_val`
3223         ac_new_val_w=`echo x $ac_new_val`
3224         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3225           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3226 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3227           ac_cache_corrupted=:
3228         else
3229           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3230 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3231           eval $ac_var=\$ac_old_val
3232         fi
3233         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3234 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3235         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3236 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3237       fi;;
3238   esac
3239   # Pass precious variables to config.status.
3240   if test "$ac_new_set" = set; then
3241     case $ac_new_val in
3242     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3243     *) ac_arg=$ac_var=$ac_new_val ;;
3244     esac
3245     case " $ac_configure_args " in
3246       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3247       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3248     esac
3249   fi
3250 done
3251 if $ac_cache_corrupted; then
3252   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3255 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3256   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3257 fi
3258 ## -------------------- ##
3259 ## Main body of script. ##
3260 ## -------------------- ##
3261
3262 ac_ext=c
3263 ac_cpp='$CPP $CPPFLAGS'
3264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3267
3268
3269 # STABLE_VERSION=1.0.1+
3270
3271
3272 # Generate some files.
3273
3274
3275
3276
3277
3278
3279
3280 # Default value for --enable/disable-release-mode.
3281 # Determined by gen-autotools.sh based on versioning.
3282 # Official, stable releases enable it, pre-releases
3283 # disable it.
3284 #
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308 # Minimum version of libsynthesis as defined in its
3309 # configure script and thus .pc files:
3310
3311
3312 # Line above is patched by gen-autotools.sh. Handle
3313 # both "yes" and "no".
3314
3315
3316 # Check whether --enable-release-mode was given.
3317 if test "${enable_release_mode+set}" = set; then :
3318   enableval=$enable_release_mode; enable_release_mode="$enableval"
3319 else
3320   enable_release_mode="yes"
3321 fi
3322
3323 if test "$enable_release_mode" = "yes"; then
3324
3325 $as_echo "#define SYNCEVOLUTION_STABLE_RELEASE 1" >>confdefs.h
3326
3327 fi
3328
3329 am__api_version='1.11'
3330
3331 ac_aux_dir=
3332 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3333   if test -f "$ac_dir/install-sh"; then
3334     ac_aux_dir=$ac_dir
3335     ac_install_sh="$ac_aux_dir/install-sh -c"
3336     break
3337   elif test -f "$ac_dir/install.sh"; then
3338     ac_aux_dir=$ac_dir
3339     ac_install_sh="$ac_aux_dir/install.sh -c"
3340     break
3341   elif test -f "$ac_dir/shtool"; then
3342     ac_aux_dir=$ac_dir
3343     ac_install_sh="$ac_aux_dir/shtool install -c"
3344     break
3345   fi
3346 done
3347 if test -z "$ac_aux_dir"; then
3348   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3349 fi
3350
3351 # These three variables are undocumented and unsupported,
3352 # and are intended to be withdrawn in a future Autoconf release.
3353 # They can cause serious problems if a builder's source tree is in a directory
3354 # whose full name contains unusual characters.
3355 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3356 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3357 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3358
3359
3360 # Find a good install program.  We prefer a C program (faster),
3361 # so one script is as good as another.  But avoid the broken or
3362 # incompatible versions:
3363 # SysV /etc/install, /usr/sbin/install
3364 # SunOS /usr/etc/install
3365 # IRIX /sbin/install
3366 # AIX /bin/install
3367 # AmigaOS /C/install, which installs bootblocks on floppy discs
3368 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3369 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3370 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3371 # OS/2's system install, which has a completely different semantic
3372 # ./install, which can be erroneously created by make from ./install.sh.
3373 # Reject install programs that cannot install multiple files.
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3375 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3376 if test -z "$INSTALL"; then
3377 if ${ac_cv_path_install+:} false; then :
3378   $as_echo_n "(cached) " >&6
3379 else
3380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3382 do
3383   IFS=$as_save_IFS
3384   test -z "$as_dir" && as_dir=.
3385     # Account for people who put trailing slashes in PATH elements.
3386 case $as_dir/ in #((
3387   ./ | .// | /[cC]/* | \
3388   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3389   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3390   /usr/ucb/* ) ;;
3391   *)
3392     # OSF1 and SCO ODT 3.0 have their own names for install.
3393     # Don't use installbsd from OSF since it installs stuff as root
3394     # by default.
3395     for ac_prog in ginstall scoinst install; do
3396       for ac_exec_ext in '' $ac_executable_extensions; do
3397         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3398           if test $ac_prog = install &&
3399             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3400             # AIX install.  It has an incompatible calling convention.
3401             :
3402           elif test $ac_prog = install &&
3403             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3404             # program-specific install script used by HP pwplus--don't use.
3405             :
3406           else
3407             rm -rf conftest.one conftest.two conftest.dir
3408             echo one > conftest.one
3409             echo two > conftest.two
3410             mkdir conftest.dir
3411             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3412               test -s conftest.one && test -s conftest.two &&
3413               test -s conftest.dir/conftest.one &&
3414               test -s conftest.dir/conftest.two
3415             then
3416               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3417               break 3
3418             fi
3419           fi
3420         fi
3421       done
3422     done
3423     ;;
3424 esac
3425
3426   done
3427 IFS=$as_save_IFS
3428
3429 rm -rf conftest.one conftest.two conftest.dir
3430
3431 fi
3432   if test "${ac_cv_path_install+set}" = set; then
3433     INSTALL=$ac_cv_path_install
3434   else
3435     # As a last resort, use the slow shell script.  Don't cache a
3436     # value for INSTALL within a source directory, because that will
3437     # break other packages using the cache if that directory is
3438     # removed, or if the value is a relative name.
3439     INSTALL=$ac_install_sh
3440   fi
3441 fi
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3443 $as_echo "$INSTALL" >&6; }
3444
3445 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3446 # It thinks the first close brace ends the variable substitution.
3447 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3448
3449 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3450
3451 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3452
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3454 $as_echo_n "checking whether build environment is sane... " >&6; }
3455 # Just in case
3456 sleep 1
3457 echo timestamp > conftest.file
3458 # Reject unsafe characters in $srcdir or the absolute working directory
3459 # name.  Accept space and tab only in the latter.
3460 am_lf='
3461 '
3462 case `pwd` in
3463   *[\\\"\#\$\&\'\`$am_lf]*)
3464     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3465 esac
3466 case $srcdir in
3467   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3468     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3469 esac
3470
3471 # Do `set' in a subshell so we don't clobber the current shell's
3472 # arguments.  Must try -L first in case configure is actually a
3473 # symlink; some systems play weird games with the mod time of symlinks
3474 # (eg FreeBSD returns the mod time of the symlink's containing
3475 # directory).
3476 if (
3477    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3478    if test "$*" = "X"; then
3479       # -L didn't work.
3480       set X `ls -t "$srcdir/configure" conftest.file`
3481    fi
3482    rm -f conftest.file
3483    if test "$*" != "X $srcdir/configure conftest.file" \
3484       && test "$*" != "X conftest.file $srcdir/configure"; then
3485
3486       # If neither matched, then we have a broken ls.  This can happen
3487       # if, for instance, CONFIG_SHELL is bash and it inherits a
3488       # broken ls alias from the environment.  This has actually
3489       # happened.  Such a system could not be considered "sane".
3490       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3491 alias in your environment" "$LINENO" 5
3492    fi
3493
3494    test "$2" = conftest.file
3495    )
3496 then
3497    # Ok.
3498    :
3499 else
3500    as_fn_error $? "newly created file is older than distributed files!
3501 Check your system clock" "$LINENO" 5
3502 fi
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3504 $as_echo "yes" >&6; }
3505 test "$program_prefix" != NONE &&
3506   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3507 # Use a double $ so make ignores it.
3508 test "$program_suffix" != NONE &&
3509   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3510 # Double any \ or $.
3511 # By default was `s,x,x', remove it if useless.
3512 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3513 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3514
3515 # expand $ac_aux_dir to an absolute path
3516 am_aux_dir=`cd $ac_aux_dir && pwd`
3517
3518 if test x"${MISSING+set}" != xset; then
3519   case $am_aux_dir in
3520   *\ * | *\     *)
3521     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3522   *)
3523     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3524   esac
3525 fi
3526 # Use eval to expand $SHELL
3527 if eval "$MISSING --run true"; then
3528   am_missing_run="$MISSING --run "
3529 else
3530   am_missing_run=
3531   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3532 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3533 fi
3534
3535 if test x"${install_sh}" != xset; then
3536   case $am_aux_dir in
3537   *\ * | *\     *)
3538     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3539   *)
3540     install_sh="\${SHELL} $am_aux_dir/install-sh"
3541   esac
3542 fi
3543
3544 # Installed binaries are usually stripped using `strip' when the user
3545 # run `make install-strip'.  However `strip' might not be the right
3546 # tool to use in cross-compilation environments, therefore Automake
3547 # will honor the `STRIP' environment variable to overrule this program.
3548 if test "$cross_compiling" != no; then
3549   if test -n "$ac_tool_prefix"; then
3550   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3551 set dummy ${ac_tool_prefix}strip; ac_word=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if ${ac_cv_prog_STRIP+:} false; then :
3555   $as_echo_n "(cached) " >&6
3556 else
3557   if test -n "$STRIP"; then
3558   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3559 else
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3562 do
3563   IFS=$as_save_IFS
3564   test -z "$as_dir" && as_dir=.
3565     for ac_exec_ext in '' $ac_executable_extensions; do
3566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569     break 2
3570   fi
3571 done
3572   done
3573 IFS=$as_save_IFS
3574
3575 fi
3576 fi
3577 STRIP=$ac_cv_prog_STRIP
3578 if test -n "$STRIP"; then
3579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3580 $as_echo "$STRIP" >&6; }
3581 else
3582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3584 fi
3585
3586
3587 fi
3588 if test -z "$ac_cv_prog_STRIP"; then
3589   ac_ct_STRIP=$STRIP
3590   # Extract the first word of "strip", so it can be a program name with args.
3591 set dummy strip; ac_word=$2
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3595   $as_echo_n "(cached) " >&6
3596 else
3597   if test -n "$ac_ct_STRIP"; then
3598   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3599 else
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3602 do
3603   IFS=$as_save_IFS
3604   test -z "$as_dir" && as_dir=.
3605     for ac_exec_ext in '' $ac_executable_extensions; do
3606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607     ac_cv_prog_ac_ct_STRIP="strip"
3608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609     break 2
3610   fi
3611 done
3612   done
3613 IFS=$as_save_IFS
3614
3615 fi
3616 fi
3617 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3618 if test -n "$ac_ct_STRIP"; then
3619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3620 $as_echo "$ac_ct_STRIP" >&6; }
3621 else
3622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3624 fi
3625
3626   if test "x$ac_ct_STRIP" = x; then
3627     STRIP=":"
3628   else
3629     case $cross_compiling:$ac_tool_warned in
3630 yes:)
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3633 ac_tool_warned=yes ;;
3634 esac
3635     STRIP=$ac_ct_STRIP
3636   fi
3637 else
3638   STRIP="$ac_cv_prog_STRIP"
3639 fi
3640
3641 fi
3642 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3643
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3645 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3646 if test -z "$MKDIR_P"; then
3647   if ${ac_cv_path_mkdir+:} false; then :
3648   $as_echo_n "(cached) " >&6
3649 else
3650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3652 do
3653   IFS=$as_save_IFS
3654   test -z "$as_dir" && as_dir=.
3655     for ac_prog in mkdir gmkdir; do
3656          for ac_exec_ext in '' $ac_executable_extensions; do
3657            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3658            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3659              'mkdir (GNU coreutils) '* | \
3660              'mkdir (coreutils) '* | \
3661              'mkdir (fileutils) '4.1*)
3662                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3663                break 3;;
3664            esac
3665          done
3666        done
3667   done
3668 IFS=$as_save_IFS
3669
3670 fi
3671
3672   test -d ./--version && rmdir ./--version
3673   if test "${ac_cv_path_mkdir+set}" = set; then
3674     MKDIR_P="$ac_cv_path_mkdir -p"
3675   else
3676     # As a last resort, use the slow shell script.  Don't cache a
3677     # value for MKDIR_P within a source directory, because that will
3678     # break other packages using the cache if that directory is
3679     # removed, or if the value is a relative name.
3680     MKDIR_P="$ac_install_sh -d"
3681   fi
3682 fi
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3684 $as_echo "$MKDIR_P" >&6; }
3685
3686 mkdir_p="$MKDIR_P"
3687 case $mkdir_p in
3688   [\\/$]* | ?:[\\/]*) ;;
3689   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3690 esac
3691
3692 for ac_prog in gawk mawk nawk awk
3693 do
3694   # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy $ac_prog; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if ${ac_cv_prog_AWK+:} false; then :
3699   $as_echo_n "(cached) " >&6
3700 else
3701   if test -n "$AWK"; then
3702   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3706 do
3707   IFS=$as_save_IFS
3708   test -z "$as_dir" && as_dir=.
3709     for ac_exec_ext in '' $ac_executable_extensions; do
3710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3711     ac_cv_prog_AWK="$ac_prog"
3712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713     break 2
3714   fi
3715 done
3716   done
3717 IFS=$as_save_IFS
3718
3719 fi
3720 fi
3721 AWK=$ac_cv_prog_AWK
3722 if test -n "$AWK"; then
3723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3724 $as_echo "$AWK" >&6; }
3725 else
3726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3728 fi
3729
3730
3731   test -n "$AWK" && break
3732 done
3733
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3735 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3736 set x ${MAKE-make}
3737 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3738 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3739   $as_echo_n "(cached) " >&6
3740 else
3741   cat >conftest.make <<\_ACEOF
3742 SHELL = /bin/sh
3743 all:
3744         @echo '@@@%%%=$(MAKE)=@@@%%%'
3745 _ACEOF
3746 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3747 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3748   *@@@%%%=?*=@@@%%%*)
3749     eval ac_cv_prog_make_${ac_make}_set=yes;;
3750   *)
3751     eval ac_cv_prog_make_${ac_make}_set=no;;
3752 esac
3753 rm -f conftest.make
3754 fi
3755 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3757 $as_echo "yes" >&6; }
3758   SET_MAKE=
3759 else
3760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761 $as_echo "no" >&6; }
3762   SET_MAKE="MAKE=${MAKE-make}"
3763 fi
3764
3765 rm -rf .tst 2>/dev/null
3766 mkdir .tst 2>/dev/null
3767 if test -d .tst; then
3768   am__leading_dot=.
3769 else
3770   am__leading_dot=_
3771 fi
3772 rmdir .tst 2>/dev/null
3773
3774 # Check whether --enable-silent-rules was given.
3775 if test "${enable_silent_rules+set}" = set; then :
3776   enableval=$enable_silent_rules;
3777 fi
3778
3779 case $enable_silent_rules in
3780 yes) AM_DEFAULT_VERBOSITY=0;;
3781 no)  AM_DEFAULT_VERBOSITY=1;;
3782 *)   AM_DEFAULT_VERBOSITY=1;;
3783 esac
3784 am_make=${MAKE-make}
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3786 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3787 if ${am_cv_make_support_nested_variables+:} false; then :
3788   $as_echo_n "(cached) " >&6
3789 else
3790   if $as_echo 'TRUE=$(BAR$(V))
3791 BAR0=false
3792 BAR1=true
3793 V=1
3794 am__doit:
3795         @$(TRUE)
3796 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3797   am_cv_make_support_nested_variables=yes
3798 else
3799   am_cv_make_support_nested_variables=no
3800 fi
3801 fi
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3803 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3804 if test $am_cv_make_support_nested_variables = yes; then
3805     AM_V='$(V)'
3806   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3807 else
3808   AM_V=$AM_DEFAULT_VERBOSITY
3809   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3810 fi
3811 AM_BACKSLASH='\'
3812
3813 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3814   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3815   # is not polluted with repeated "-I."
3816   am__isrc=' -I$(srcdir)'
3817   # test to see if srcdir already configured
3818   if test -f $srcdir/config.status; then
3819     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3820   fi
3821 fi
3822
3823 # test whether we have cygpath
3824 if test -z "$CYGPATH_W"; then
3825   if (cygpath --version) >/dev/null 2>/dev/null; then
3826     CYGPATH_W='cygpath -w'
3827   else
3828     CYGPATH_W=echo
3829   fi
3830 fi
3831
3832
3833 # Define the identity of the package.
3834  PACKAGE='syncevolution'
3835  VERSION='1.4.1'
3836
3837
3838 cat >>confdefs.h <<_ACEOF
3839 #define PACKAGE "$PACKAGE"
3840 _ACEOF
3841
3842
3843 cat >>confdefs.h <<_ACEOF
3844 #define VERSION "$VERSION"
3845 _ACEOF
3846
3847 # Some tools Automake needs.
3848
3849 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3850
3851
3852 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3853
3854
3855 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3856
3857
3858 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3859
3860
3861 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3862
3863 # We need awk for the "check" target.  The system "awk" is bad on
3864 # some platforms.
3865 # Always define AMTAR for backward compatibility.  Yes, it's still used
3866 # in the wild :-(  We should find a proper way to deprecate it ...
3867 AMTAR='$${TAR-tar}'
3868
3869
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3871 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3872 # Loop over all known methods to create a tar archive until one works.
3873 _am_tools='gnutar plaintar pax cpio none'
3874 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3875 # Do not fold the above two line into one, because Tru64 sh and
3876 # Solaris sh will not grok spaces in the rhs of `-'.
3877 for _am_tool in $_am_tools
3878 do
3879   case $_am_tool in
3880   gnutar)
3881     for _am_tar in tar gnutar gtar;
3882     do
3883       { echo "$as_me:$LINENO: $_am_tar --version" >&5
3884    ($_am_tar --version) >&5 2>&5
3885    ac_status=$?
3886    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887    (exit $ac_status); } && break
3888     done
3889     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3890     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3891     am__untar="$_am_tar -xf -"
3892     ;;
3893   plaintar)
3894     # Must skip GNU tar: if it does not support --format= it doesn't create
3895     # ustar tarball either.
3896     (tar --version) >/dev/null 2>&1 && continue
3897     am__tar='tar chf - "$$tardir"'
3898     am__tar_='tar chf - "$tardir"'
3899     am__untar='tar xf -'
3900     ;;
3901   pax)
3902     am__tar='pax -L -x ustar -w "$$tardir"'
3903     am__tar_='pax -L -x ustar -w "$tardir"'
3904     am__untar='pax -r'
3905     ;;
3906   cpio)
3907     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3908     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3909     am__untar='cpio -i -H ustar -d'
3910     ;;
3911   none)
3912     am__tar=false
3913     am__tar_=false
3914     am__untar=false
3915     ;;
3916   esac
3917
3918   # If the value was cached, stop now.  We just wanted to have am__tar
3919   # and am__untar set.
3920   test -n "${am_cv_prog_tar_ustar}" && break
3921
3922   # tar/untar a dummy directory, and stop if the command works
3923   rm -rf conftest.dir
3924   mkdir conftest.dir
3925   echo GrepMe > conftest.dir/file
3926   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3927    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3928    ac_status=$?
3929    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930    (exit $ac_status); }
3931   rm -rf conftest.dir
3932   if test -s conftest.tar; then
3933     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3934    ($am__untar <conftest.tar) >&5 2>&5
3935    ac_status=$?
3936    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937    (exit $ac_status); }
3938     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3939   fi
3940 done
3941 rm -rf conftest.dir
3942
3943 if ${am_cv_prog_tar_ustar+:} false; then :
3944   $as_echo_n "(cached) " >&6
3945 else
3946   am_cv_prog_tar_ustar=$_am_tool
3947 fi
3948
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3950 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3951
3952
3953
3954
3955
3956
3957 DEPDIR="${am__leading_dot}deps"
3958
3959 ac_config_commands="$ac_config_commands depfiles"
3960
3961
3962 am_make=${MAKE-make}
3963 cat > confinc << 'END'
3964 am__doit:
3965         @echo this is the am__doit target
3966 .PHONY: am__doit
3967 END
3968 # If we don't find an include directive, just comment out the code.
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3970 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3971 am__include="#"
3972 am__quote=
3973 _am_result=none
3974 # First try GNU make style include.
3975 echo "include confinc" > confmf
3976 # Ignore all kinds of additional output from `make'.
3977 case `$am_make -s -f confmf 2> /dev/null` in #(
3978 *the\ am__doit\ target*)
3979   am__include=include
3980   am__quote=
3981   _am_result=GNU
3982   ;;
3983 esac
3984 # Now try BSD make style include.
3985 if test "$am__include" = "#"; then
3986    echo '.include "confinc"' > confmf
3987    case `$am_make -s -f confmf 2> /dev/null` in #(
3988    *the\ am__doit\ target*)
3989      am__include=.include
3990      am__quote="\""
3991      _am_result=BSD
3992      ;;
3993    esac
3994 fi
3995
3996
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3998 $as_echo "$_am_result" >&6; }
3999 rm -f confinc confmf
4000
4001 # Check whether --enable-dependency-tracking was given.
4002 if test "${enable_dependency_tracking+set}" = set; then :
4003   enableval=$enable_dependency_tracking;
4004 fi
4005
4006 if test "x$enable_dependency_tracking" != xno; then
4007   am_depcomp="$ac_aux_dir/depcomp"
4008   AMDEPBACKSLASH='\'
4009   am__nodep='_no'
4010 fi
4011  if test "x$enable_dependency_tracking" != xno; then
4012   AMDEP_TRUE=
4013   AMDEP_FALSE='#'
4014 else
4015   AMDEP_TRUE='#'
4016   AMDEP_FALSE=
4017 fi
4018
4019
4020 ac_ext=c
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025 if test -n "$ac_tool_prefix"; then
4026   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4027 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 $as_echo_n "checking for $ac_word... " >&6; }
4030 if ${ac_cv_prog_CC+:} false; then :
4031   $as_echo_n "(cached) " >&6
4032 else
4033   if test -n "$CC"; then
4034   ac_cv_prog_CC="$CC" # Let the user override the test.
4035 else
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4038 do
4039   IFS=$as_save_IFS
4040   test -z "$as_dir" && as_dir=.
4041     for ac_exec_ext in '' $ac_executable_extensions; do
4042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4043     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045     break 2
4046   fi
4047 done
4048   done
4049 IFS=$as_save_IFS
4050
4051 fi
4052 fi
4053 CC=$ac_cv_prog_CC
4054 if test -n "$CC"; then
4055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056 $as_echo "$CC" >&6; }
4057 else
4058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4060 fi
4061
4062
4063 fi
4064 if test -z "$ac_cv_prog_CC"; then
4065   ac_ct_CC=$CC
4066   # Extract the first word of "gcc", so it can be a program name with args.
4067 set dummy gcc; ac_word=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4071   $as_echo_n "(cached) " >&6
4072 else
4073   if test -n "$ac_ct_CC"; then
4074   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4078 do
4079   IFS=$as_save_IFS
4080   test -z "$as_dir" && as_dir=.
4081     for ac_exec_ext in '' $ac_executable_extensions; do
4082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083     ac_cv_prog_ac_ct_CC="gcc"
4084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085     break 2
4086   fi
4087 done
4088   done
4089 IFS=$as_save_IFS
4090
4091 fi
4092 fi
4093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4094 if test -n "$ac_ct_CC"; then
4095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4096 $as_echo "$ac_ct_CC" >&6; }
4097 else
4098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4100 fi
4101
4102   if test "x$ac_ct_CC" = x; then
4103     CC=""
4104   else
4105     case $cross_compiling:$ac_tool_warned in
4106 yes:)
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4109 ac_tool_warned=yes ;;
4110 esac
4111     CC=$ac_ct_CC
4112   fi
4113 else
4114   CC="$ac_cv_prog_CC"
4115 fi
4116
4117 if test -z "$CC"; then
4118           if test -n "$ac_tool_prefix"; then
4119     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4120 set dummy ${ac_tool_prefix}cc; ac_word=$2
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 $as_echo_n "checking for $ac_word... " >&6; }
4123 if ${ac_cv_prog_CC+:} false; then :
4124   $as_echo_n "(cached) " >&6
4125 else
4126   if test -n "$CC"; then
4127   ac_cv_prog_CC="$CC" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132   IFS=$as_save_IFS
4133   test -z "$as_dir" && as_dir=.
4134     for ac_exec_ext in '' $ac_executable_extensions; do
4135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136     ac_cv_prog_CC="${ac_tool_prefix}cc"
4137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138     break 2
4139   fi
4140 done
4141   done
4142 IFS=$as_save_IFS
4143
4144 fi
4145 fi
4146 CC=$ac_cv_prog_CC
4147 if test -n "$CC"; then
4148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4149 $as_echo "$CC" >&6; }
4150 else
4151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4153 fi
4154
4155
4156   fi
4157 fi
4158 if test -z "$CC"; then
4159   # Extract the first word of "cc", so it can be a program name with args.
4160 set dummy cc; ac_word=$2
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 $as_echo_n "checking for $ac_word... " >&6; }
4163 if ${ac_cv_prog_CC+:} false; then :
4164   $as_echo_n "(cached) " >&6
4165 else
4166   if test -n "$CC"; then
4167   ac_cv_prog_CC="$CC" # Let the user override the test.
4168 else
4169   ac_prog_rejected=no
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173   IFS=$as_save_IFS
4174   test -z "$as_dir" && as_dir=.
4175     for ac_exec_ext in '' $ac_executable_extensions; do
4176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4178        ac_prog_rejected=yes
4179        continue
4180      fi
4181     ac_cv_prog_CC="cc"
4182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183     break 2
4184   fi
4185 done
4186   done
4187 IFS=$as_save_IFS
4188
4189 if test $ac_prog_rejected = yes; then
4190   # We found a bogon in the path, so make sure we never use it.
4191   set dummy $ac_cv_prog_CC
4192   shift
4193   if test $# != 0; then
4194     # We chose a different compiler from the bogus one.
4195     # However, it has the same basename, so the bogon will be chosen
4196     # first if we set CC to just the basename; use the full file name.
4197     shift
4198     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4199   fi
4200 fi
4201 fi
4202 fi
4203 CC=$ac_cv_prog_CC
4204 if test -n "$CC"; then
4205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4206 $as_echo "$CC" >&6; }
4207 else
4208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4210 fi
4211
4212
4213 fi
4214 if test -z "$CC"; then
4215   if test -n "$ac_tool_prefix"; then
4216   for ac_prog in cl.exe
4217   do
4218     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if ${ac_cv_prog_CC+:} false; then :
4223   $as_echo_n "(cached) " >&6
4224 else
4225   if test -n "$CC"; then
4226   ac_cv_prog_CC="$CC" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231   IFS=$as_save_IFS
4232   test -z "$as_dir" && as_dir=.
4233     for ac_exec_ext in '' $ac_executable_extensions; do
4234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237     break 2
4238   fi
4239 done
4240   done
4241 IFS=$as_save_IFS
4242
4243 fi
4244 fi
4245 CC=$ac_cv_prog_CC
4246 if test -n "$CC"; then
4247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4248 $as_echo "$CC" >&6; }
4249 else
4250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4252 fi
4253
4254
4255     test -n "$CC" && break
4256   done
4257 fi
4258 if test -z "$CC"; then
4259   ac_ct_CC=$CC
4260   for ac_prog in cl.exe
4261 do
4262   # Extract the first word of "$ac_prog", so it can be a program name with args.
4263 set dummy $ac_prog; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4267   $as_echo_n "(cached) " >&6
4268 else
4269   if test -n "$ac_ct_CC"; then
4270   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275   IFS=$as_save_IFS
4276   test -z "$as_dir" && as_dir=.
4277     for ac_exec_ext in '' $ac_executable_extensions; do
4278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279     ac_cv_prog_ac_ct_CC="$ac_prog"
4280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281     break 2
4282   fi
4283 done
4284   done
4285 IFS=$as_save_IFS
4286
4287 fi
4288 fi
4289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4290 if test -n "$ac_ct_CC"; then
4291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4292 $as_echo "$ac_ct_CC" >&6; }
4293 else
4294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4296 fi
4297
4298
4299   test -n "$ac_ct_CC" && break
4300 done
4301
4302   if test "x$ac_ct_CC" = x; then
4303     CC=""
4304   else
4305     case $cross_compiling:$ac_tool_warned in
4306 yes:)
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4309 ac_tool_warned=yes ;;
4310 esac
4311     CC=$ac_ct_CC
4312   fi
4313 fi
4314
4315 fi
4316
4317
4318 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320 as_fn_error $? "no acceptable C compiler found in \$PATH
4321 See \`config.log' for more details" "$LINENO" 5; }
4322
4323 # Provide some information about the compiler.
4324 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4325 set X $ac_compile
4326 ac_compiler=$2
4327 for ac_option in --version -v -V -qversion; do
4328   { { ac_try="$ac_compiler $ac_option >&5"
4329 case "(($ac_try" in
4330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331   *) ac_try_echo=$ac_try;;
4332 esac
4333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 $as_echo "$ac_try_echo"; } >&5
4335   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4336   ac_status=$?
4337   if test -s conftest.err; then
4338     sed '10a\
4339 ... rest of stderr output deleted ...
4340          10q' conftest.err >conftest.er1
4341     cat conftest.er1 >&5
4342   fi
4343   rm -f conftest.er1 conftest.err
4344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345   test $ac_status = 0; }
4346 done
4347
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h.  */
4350
4351 int
4352 main ()
4353 {
4354
4355   ;
4356   return 0;
4357 }
4358 _ACEOF
4359 ac_clean_files_save=$ac_clean_files
4360 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4361 # Try to create an executable without -o first, disregard a.out.
4362 # It will help us diagnose broken compilers, and finding out an intuition
4363 # of exeext.
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4365 $as_echo_n "checking whether the C compiler works... " >&6; }
4366 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4367
4368 # The possible output files:
4369 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4370
4371 ac_rmfiles=
4372 for ac_file in $ac_files
4373 do
4374   case $ac_file in
4375     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4376     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4377   esac
4378 done
4379 rm -f $ac_rmfiles
4380
4381 if { { ac_try="$ac_link_default"
4382 case "(($ac_try" in
4383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384   *) ac_try_echo=$ac_try;;
4385 esac
4386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387 $as_echo "$ac_try_echo"; } >&5
4388   (eval "$ac_link_default") 2>&5
4389   ac_status=$?
4390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391   test $ac_status = 0; }; then :
4392   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4393 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4394 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4395 # so that the user can short-circuit this test for compilers unknown to
4396 # Autoconf.
4397 for ac_file in $ac_files ''
4398 do
4399   test -f "$ac_file" || continue
4400   case $ac_file in
4401     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4402         ;;
4403     [ab].out )
4404         # We found the default executable, but exeext='' is most
4405         # certainly right.
4406         break;;
4407     *.* )
4408         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4409         then :; else
4410            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4411         fi
4412         # We set ac_cv_exeext here because the later test for it is not
4413         # safe: cross compilers may not add the suffix if given an `-o'
4414         # argument, so we may need to know it at that point already.
4415         # Even if this section looks crufty: it has the advantage of
4416         # actually working.
4417         break;;
4418     * )
4419         break;;
4420   esac
4421 done
4422 test "$ac_cv_exeext" = no && ac_cv_exeext=
4423
4424 else
4425   ac_file=''
4426 fi
4427 if test -z "$ac_file"; then :
4428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4430 $as_echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error 77 "C compiler cannot create executables
4436 See \`config.log' for more details" "$LINENO" 5; }
4437 else
4438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4439 $as_echo "yes" >&6; }
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4442 $as_echo_n "checking for C compiler default output file name... " >&6; }
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4444 $as_echo "$ac_file" >&6; }
4445 ac_exeext=$ac_cv_exeext
4446
4447 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4448 ac_clean_files=$ac_clean_files_save
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4450 $as_echo_n "checking for suffix of executables... " >&6; }
4451 if { { ac_try="$ac_link"
4452 case "(($ac_try" in
4453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454   *) ac_try_echo=$ac_try;;
4455 esac
4456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457 $as_echo "$ac_try_echo"; } >&5
4458   (eval "$ac_link") 2>&5
4459   ac_status=$?
4460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461   test $ac_status = 0; }; then :
4462   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4463 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4464 # work properly (i.e., refer to `conftest.exe'), while it won't with
4465 # `rm'.
4466 for ac_file in conftest.exe conftest conftest.*; do
4467   test -f "$ac_file" || continue
4468   case $ac_file in
4469     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4470     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4471           break;;
4472     * ) break;;
4473   esac
4474 done
4475 else
4476   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4478 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4479 See \`config.log' for more details" "$LINENO" 5; }
4480 fi
4481 rm -f conftest conftest$ac_cv_exeext
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4483 $as_echo "$ac_cv_exeext" >&6; }
4484
4485 rm -f conftest.$ac_ext
4486 EXEEXT=$ac_cv_exeext
4487 ac_exeext=$EXEEXT
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h.  */
4490 #include <stdio.h>
4491 int
4492 main ()
4493 {
4494 FILE *f = fopen ("conftest.out", "w");
4495  return ferror (f) || fclose (f) != 0;
4496
4497   ;
4498   return 0;
4499 }
4500 _ACEOF
4501 ac_clean_files="$ac_clean_files conftest.out"
4502 # Check that the compiler produces executables we can run.  If not, either
4503 # the compiler is broken, or we cross compile.
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4505 $as_echo_n "checking whether we are cross compiling... " >&6; }
4506 if test "$cross_compiling" != yes; then
4507   { { ac_try="$ac_link"
4508 case "(($ac_try" in
4509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510   *) ac_try_echo=$ac_try;;
4511 esac
4512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513 $as_echo "$ac_try_echo"; } >&5
4514   (eval "$ac_link") 2>&5
4515   ac_status=$?
4516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4517   test $ac_status = 0; }
4518   if { ac_try='./conftest$ac_cv_exeext'
4519   { { case "(($ac_try" in
4520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521   *) ac_try_echo=$ac_try;;
4522 esac
4523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4524 $as_echo "$ac_try_echo"; } >&5
4525   (eval "$ac_try") 2>&5
4526   ac_status=$?
4527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4528   test $ac_status = 0; }; }; then
4529     cross_compiling=no
4530   else
4531     if test "$cross_compiling" = maybe; then
4532         cross_compiling=yes
4533     else
4534         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error $? "cannot run C compiled programs.
4537 If you meant to cross compile, use \`--host'.
4538 See \`config.log' for more details" "$LINENO" 5; }
4539     fi
4540   fi
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4543 $as_echo "$cross_compiling" >&6; }
4544
4545 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4546 ac_clean_files=$ac_clean_files_save
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4548 $as_echo_n "checking for suffix of object files... " >&6; }
4549 if ${ac_cv_objext+:} false; then :
4550   $as_echo_n "(cached) " >&6
4551 else
4552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h.  */
4554
4555 int
4556 main ()
4557 {
4558
4559   ;
4560   return 0;
4561 }
4562 _ACEOF
4563 rm -f conftest.o conftest.obj
4564 if { { ac_try="$ac_compile"
4565 case "(($ac_try" in
4566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567   *) ac_try_echo=$ac_try;;
4568 esac
4569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570 $as_echo "$ac_try_echo"; } >&5
4571   (eval "$ac_compile") 2>&5
4572   ac_status=$?
4573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574   test $ac_status = 0; }; then :
4575   for ac_file in conftest.o conftest.obj conftest.*; do
4576   test -f "$ac_file" || continue;
4577   case $ac_file in
4578     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4579     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4580        break;;
4581   esac
4582 done
4583 else
4584   $as_echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4586
4587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4589 as_fn_error $? "cannot compute suffix of object files: cannot compile
4590 See \`config.log' for more details" "$LINENO" 5; }
4591 fi
4592 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4593 fi
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4595 $as_echo "$ac_cv_objext" >&6; }
4596 OBJEXT=$ac_cv_objext
4597 ac_objext=$OBJEXT
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4599 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4600 if ${ac_cv_c_compiler_gnu+:} false; then :
4601   $as_echo_n "(cached) " >&6
4602 else
4603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h.  */
4605
4606 int
4607 main ()
4608 {
4609 #ifndef __GNUC__
4610        choke me
4611 #endif
4612
4613   ;
4614   return 0;
4615 }
4616 _ACEOF
4617 if ac_fn_c_try_compile "$LINENO"; then :
4618   ac_compiler_gnu=yes
4619 else
4620   ac_compiler_gnu=no
4621 fi
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4624
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4627 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4628 if test $ac_compiler_gnu = yes; then
4629   GCC=yes
4630 else
4631   GCC=
4632 fi
4633 ac_test_CFLAGS=${CFLAGS+set}
4634 ac_save_CFLAGS=$CFLAGS
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4636 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4637 if ${ac_cv_prog_cc_g+:} false; then :
4638   $as_echo_n "(cached) " >&6
4639 else
4640   ac_save_c_werror_flag=$ac_c_werror_flag
4641    ac_c_werror_flag=yes
4642    ac_cv_prog_cc_g=no
4643    CFLAGS="-g"
4644    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h.  */
4646
4647 int
4648 main ()
4649 {
4650
4651   ;
4652   return 0;
4653 }
4654 _ACEOF
4655 if ac_fn_c_try_compile "$LINENO"; then :
4656   ac_cv_prog_cc_g=yes
4657 else
4658   CFLAGS=""
4659       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h.  */
4661
4662 int
4663 main ()
4664 {
4665
4666   ;
4667   return 0;
4668 }
4669 _ACEOF
4670 if ac_fn_c_try_compile "$LINENO"; then :
4671
4672 else
4673   ac_c_werror_flag=$ac_save_c_werror_flag
4674          CFLAGS="-g"
4675          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h.  */
4677
4678 int
4679 main ()
4680 {
4681
4682   ;
4683   return 0;
4684 }
4685 _ACEOF
4686 if ac_fn_c_try_compile "$LINENO"; then :
4687   ac_cv_prog_cc_g=yes
4688 fi
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 fi
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 fi
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694    ac_c_werror_flag=$ac_save_c_werror_flag
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4697 $as_echo "$ac_cv_prog_cc_g" >&6; }
4698 if test "$ac_test_CFLAGS" = set; then
4699   CFLAGS=$ac_save_CFLAGS
4700 elif test $ac_cv_prog_cc_g = yes; then
4701   if test "$GCC" = yes; then
4702     CFLAGS="-g -O2"
4703   else
4704     CFLAGS="-g"
4705   fi
4706 else
4707   if test "$GCC" = yes; then
4708     CFLAGS="-O2"
4709   else
4710     CFLAGS=
4711   fi
4712 fi
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4714 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4715 if ${ac_cv_prog_cc_c89+:} false; then :
4716   $as_echo_n "(cached) " >&6
4717 else
4718   ac_cv_prog_cc_c89=no
4719 ac_save_CC=$CC
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h.  */
4722 #include <stdarg.h>
4723 #include <stdio.h>
4724 struct stat;
4725 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4726 struct buf { int x; };
4727 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4728 static char *e (p, i)
4729      char **p;
4730      int i;
4731 {
4732   return p[i];
4733 }
4734 static char *f (char * (*g) (char **, int), char **p, ...)
4735 {
4736   char *s;
4737   va_list v;
4738   va_start (v,p);
4739   s = g (p, va_arg (v,int));
4740   va_end (v);
4741   return s;
4742 }
4743
4744 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4745    function prototypes and stuff, but not '\xHH' hex character constants.
4746    These don't provoke an error unfortunately, instead are silently treated
4747    as 'x'.  The following induces an error, until -std is added to get
4748    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4749    array size at least.  It's necessary to write '\x00'==0 to get something
4750    that's true only with -std.  */
4751 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4752
4753 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4754    inside strings and character constants.  */
4755 #define FOO(x) 'x'
4756 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4757
4758 int test (int i, double x);
4759 struct s1 {int (*f) (int a);};
4760 struct s2 {int (*f) (double a);};
4761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4762 int argc;
4763 char **argv;
4764 int
4765 main ()
4766 {
4767 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4768   ;
4769   return 0;
4770 }
4771 _ACEOF
4772 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4773         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4774 do
4775   CC="$ac_save_CC $ac_arg"
4776   if ac_fn_c_try_compile "$LINENO"; then :
4777   ac_cv_prog_cc_c89=$ac_arg
4778 fi
4779 rm -f core conftest.err conftest.$ac_objext
4780   test "x$ac_cv_prog_cc_c89" != "xno" && break
4781 done
4782 rm -f conftest.$ac_ext
4783 CC=$ac_save_CC
4784
4785 fi
4786 # AC_CACHE_VAL
4787 case "x$ac_cv_prog_cc_c89" in
4788   x)
4789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4790 $as_echo "none needed" >&6; } ;;
4791   xno)
4792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4793 $as_echo "unsupported" >&6; } ;;
4794   *)
4795     CC="$CC $ac_cv_prog_cc_c89"
4796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4797 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4798 esac
4799 if test "x$ac_cv_prog_cc_c89" != xno; then :
4800
4801 fi
4802
4803 ac_ext=c
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808
4809 depcc="$CC"   am_compiler_list=
4810
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4812 $as_echo_n "checking dependency style of $depcc... " >&6; }
4813 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4814   $as_echo_n "(cached) " >&6
4815 else
4816   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4817   # We make a subdir and do the tests there.  Otherwise we can end up
4818   # making bogus files that we don't know about and never remove.  For
4819   # instance it was reported that on HP-UX the gcc test will end up
4820   # making a dummy file named `D' -- because `-MD' means `put the output
4821   # in D'.
4822   rm -rf conftest.dir
4823   mkdir conftest.dir
4824   # Copy depcomp to subdir because otherwise we won't find it if we're
4825   # using a relative directory.
4826   cp "$am_depcomp" conftest.dir
4827   cd conftest.dir
4828   # We will build objects and dependencies in a subdirectory because
4829   # it helps to detect inapplicable dependency modes.  For instance
4830   # both Tru64's cc and ICC support -MD to output dependencies as a
4831   # side effect of compilation, but ICC will put the dependencies in
4832   # the current directory while Tru64 will put them in the object
4833   # directory.
4834   mkdir sub
4835
4836   am_cv_CC_dependencies_compiler_type=none
4837   if test "$am_compiler_list" = ""; then
4838      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4839   fi
4840   am__universal=false
4841   case " $depcc " in #(
4842      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4843      esac
4844
4845   for depmode in $am_compiler_list; do
4846     # Setup a source with many dependencies, because some compilers
4847     # like to wrap large dependency lists on column 80 (with \), and
4848     # we should not choose a depcomp mode which is confused by this.
4849     #
4850     # We need to recreate these files for each test, as the compiler may
4851     # overwrite some of them when testing with obscure command lines.
4852     # This happens at least with the AIX C compiler.
4853     : > sub/conftest.c
4854     for i in 1 2 3 4 5 6; do
4855       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4856       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4857       # Solaris 8's {/usr,}/bin/sh.
4858       touch sub/conftst$i.h
4859     done
4860     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4861
4862     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4863     # mode.  It turns out that the SunPro C++ compiler does not properly
4864     # handle `-M -o', and we need to detect this.  Also, some Intel
4865     # versions had trouble with output in subdirs
4866     am__obj=sub/conftest.${OBJEXT-o}
4867     am__minus_obj="-o $am__obj"
4868     case $depmode in
4869     gcc)
4870       # This depmode causes a compiler race in universal mode.
4871       test "$am__universal" = false || continue
4872       ;;
4873     nosideeffect)
4874       # after this tag, mechanisms are not by side-effect, so they'll
4875       # only be used when explicitly requested
4876       if test "x$enable_dependency_tracking" = xyes; then
4877         continue
4878       else
4879         break
4880       fi
4881       ;;
4882     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4883       # This compiler won't grok `-c -o', but also, the minuso test has
4884       # not run yet.  These depmodes are late enough in the game, and
4885       # so weak that their functioning should not be impacted.
4886       am__obj=conftest.${OBJEXT-o}
4887       am__minus_obj=
4888       ;;
4889     none) break ;;
4890     esac
4891     if depmode=$depmode \
4892        source=sub/conftest.c object=$am__obj \
4893        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4894        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4895          >/dev/null 2>conftest.err &&
4896        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4897        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4898        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4899        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4900       # icc doesn't choke on unknown options, it will just issue warnings
4901       # or remarks (even with -Werror).  So we grep stderr for any message
4902       # that says an option was ignored or not supported.
4903       # When given -MP, icc 7.0 and 7.1 complain thusly:
4904       #   icc: Command line warning: ignoring option '-M'; no argument required
4905       # The diagnosis changed in icc 8.0:
4906       #   icc: Command line remark: option '-MP' not supported
4907       if (grep 'ignoring option' conftest.err ||
4908           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4909         am_cv_CC_dependencies_compiler_type=$depmode
4910         break
4911       fi
4912     fi
4913   done
4914
4915   cd ..
4916   rm -rf conftest.dir
4917 else
4918   am_cv_CC_dependencies_compiler_type=none
4919 fi
4920
4921 fi
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4923 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4924 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4925
4926  if
4927   test "x$enable_dependency_tracking" != xno \
4928   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4929   am__fastdepCC_TRUE=
4930   am__fastdepCC_FALSE='#'
4931 else
4932   am__fastdepCC_TRUE='#'
4933   am__fastdepCC_FALSE=
4934 fi
4935
4936
4937 if test "x$CC" != xcc; then
4938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4939 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4940 else
4941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4942 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4943 fi
4944 set dummy $CC; ac_cc=`$as_echo "$2" |
4945                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4946 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4947   $as_echo_n "(cached) " >&6
4948 else
4949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h.  */
4951
4952 int
4953 main ()
4954 {
4955
4956   ;
4957   return 0;
4958 }
4959 _ACEOF
4960 # Make sure it works both with $CC and with simple cc.
4961 # We do the test twice because some compilers refuse to overwrite an
4962 # existing .o file with -o, though they will create one.
4963 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4964 rm -f conftest2.*
4965 if { { case "(($ac_try" in
4966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967   *) ac_try_echo=$ac_try;;
4968 esac
4969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4970 $as_echo "$ac_try_echo"; } >&5
4971   (eval "$ac_try") 2>&5
4972   ac_status=$?
4973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4974   test $ac_status = 0; } &&
4975    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977   *) ac_try_echo=$ac_try;;
4978 esac
4979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4980 $as_echo "$ac_try_echo"; } >&5
4981   (eval "$ac_try") 2>&5
4982   ac_status=$?
4983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4984   test $ac_status = 0; };
4985 then
4986   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4987   if test "x$CC" != xcc; then
4988     # Test first that cc exists at all.
4989     if { ac_try='cc -c conftest.$ac_ext >&5'
4990   { { case "(($ac_try" in
4991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992   *) ac_try_echo=$ac_try;;
4993 esac
4994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4995 $as_echo "$ac_try_echo"; } >&5
4996   (eval "$ac_try") 2>&5
4997   ac_status=$?
4998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4999   test $ac_status = 0; }; }; then
5000       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5001       rm -f conftest2.*
5002       if { { case "(($ac_try" in
5003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004   *) ac_try_echo=$ac_try;;
5005 esac
5006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5007 $as_echo "$ac_try_echo"; } >&5
5008   (eval "$ac_try") 2>&5
5009   ac_status=$?
5010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5011   test $ac_status = 0; } &&
5012          test -f conftest2.$ac_objext && { { case "(($ac_try" in
5013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014   *) ac_try_echo=$ac_try;;
5015 esac
5016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5017 $as_echo "$ac_try_echo"; } >&5
5018   (eval "$ac_try") 2>&5
5019   ac_status=$?
5020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5021   test $ac_status = 0; };
5022       then
5023         # cc works too.
5024         :
5025       else
5026         # cc exists but doesn't like -o.
5027         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5028       fi
5029     fi
5030   fi
5031 else
5032   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5033 fi
5034 rm -f core conftest*
5035
5036 fi
5037 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5039 $as_echo "yes" >&6; }
5040 else
5041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5043
5044 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5045
5046 fi
5047
5048 # FIXME: we rely on the cache variable name because
5049 # there is no other way.
5050 set dummy $CC
5051 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5052 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5053 if test "$am_t" != yes; then
5054    # Losing compiler, so override with the script.
5055    # FIXME: It is wrong to rewrite CC.
5056    # But if we don't then we get into trouble of one sort or another.
5057    # A longer-term fix would be to have automake use am__CC in this case,
5058    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5059    CC="$am_aux_dir/compile $CC"
5060 fi
5061
5062
5063
5064
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5066 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5067     # Check whether --enable-maintainer-mode was given.
5068 if test "${enable_maintainer_mode+set}" = set; then :
5069   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5070 else
5071   USE_MAINTAINER_MODE=yes
5072 fi
5073
5074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5075 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5076    if test $USE_MAINTAINER_MODE = yes; then
5077   MAINTAINER_MODE_TRUE=
5078   MAINTAINER_MODE_FALSE='#'
5079 else
5080   MAINTAINER_MODE_TRUE='#'
5081   MAINTAINER_MODE_FALSE=
5082 fi
5083
5084   MAINT=$MAINTAINER_MODE_TRUE
5085
5086  # needed for nightly builds where reconfiguration fails under certain chroots
5087
5088
5089
5090 ac_config_headers="$ac_config_headers config.h"
5091
5092 enable_dlopen=yes
5093
5094
5095
5096 case `pwd` in
5097   *\ * | *\     *)
5098     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5099 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5100 esac
5101
5102
5103
5104 macro_version='2.4.2'
5105 macro_revision='1.3337'
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119 ltmain="$ac_aux_dir/ltmain.sh"
5120
5121 # Make sure we can run config.sub.
5122 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5123   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5124
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5126 $as_echo_n "checking build system type... " >&6; }
5127 if ${ac_cv_build+:} false; then :
5128   $as_echo_n "(cached) " >&6
5129 else
5130   ac_build_alias=$build_alias
5131 test "x$ac_build_alias" = x &&
5132   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5133 test "x$ac_build_alias" = x &&
5134   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5135 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5136   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5137
5138 fi
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5140 $as_echo "$ac_cv_build" >&6; }
5141 case $ac_cv_build in
5142 *-*-*) ;;
5143 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5144 esac
5145 build=$ac_cv_build
5146 ac_save_IFS=$IFS; IFS='-'
5147 set x $ac_cv_build
5148 shift
5149 build_cpu=$1
5150 build_vendor=$2
5151 shift; shift
5152 # Remember, the first character of IFS is used to create $*,
5153 # except with old shells:
5154 build_os=$*
5155 IFS=$ac_save_IFS
5156 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5157
5158
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5160 $as_echo_n "checking host system type... " >&6; }
5161 if ${ac_cv_host+:} false; then :
5162   $as_echo_n "(cached) " >&6
5163 else
5164   if test "x$host_alias" = x; then
5165   ac_cv_host=$ac_cv_build
5166 else
5167   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5168     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5169 fi
5170
5171 fi
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5173 $as_echo "$ac_cv_host" >&6; }
5174 case $ac_cv_host in
5175 *-*-*) ;;
5176 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5177 esac
5178 host=$ac_cv_host
5179 ac_save_IFS=$IFS; IFS='-'
5180 set x $ac_cv_host
5181 shift
5182 host_cpu=$1
5183 host_vendor=$2
5184 shift; shift
5185 # Remember, the first character of IFS is used to create $*,
5186 # except with old shells:
5187 host_os=$*
5188 IFS=$ac_save_IFS
5189 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5190
5191
5192 # Backslashify metacharacters that are still active within
5193 # double-quoted strings.
5194 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5195
5196 # Same as above, but do not quote variable references.
5197 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5198
5199 # Sed substitution to delay expansion of an escaped shell variable in a
5200 # double_quote_subst'ed string.
5201 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5202
5203 # Sed substitution to delay expansion of an escaped single quote.
5204 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5205
5206 # Sed substitution to avoid accidental globbing in evaled expressions
5207 no_glob_subst='s/\*/\\\*/g'
5208
5209 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5210 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5211 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5212
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5214 $as_echo_n "checking how to print strings... " >&6; }
5215 # Test print first, because it will be a builtin if present.
5216 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5217    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5218   ECHO='print -r --'
5219 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5220   ECHO='printf %s\n'
5221 else
5222   # Use this function as a fallback that always works.
5223   func_fallback_echo ()
5224   {
5225     eval 'cat <<_LTECHO_EOF
5226 $1
5227 _LTECHO_EOF'
5228   }
5229   ECHO='func_fallback_echo'
5230 fi
5231
5232 # func_echo_all arg...
5233 # Invoke $ECHO with all args, space-separated.
5234 func_echo_all ()
5235 {
5236     $ECHO ""
5237 }
5238
5239 case "$ECHO" in
5240   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5241 $as_echo "printf" >&6; } ;;
5242   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5243 $as_echo "print -r" >&6; } ;;
5244   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5245 $as_echo "cat" >&6; } ;;
5246 esac
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5262 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5263 if ${ac_cv_path_SED+:} false; then :
5264   $as_echo_n "(cached) " >&6
5265 else
5266             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5267      for ac_i in 1 2 3 4 5 6 7; do
5268        ac_script="$ac_script$as_nl$ac_script"
5269      done
5270      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5271      { ac_script=; unset ac_script;}
5272      if test -z "$SED"; then
5273   ac_path_SED_found=false
5274   # Loop through the user's path and test for each of PROGNAME-LIST
5275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278   IFS=$as_save_IFS
5279   test -z "$as_dir" && as_dir=.
5280     for ac_prog in sed gsed; do
5281     for ac_exec_ext in '' $ac_executable_extensions; do
5282       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5283       as_fn_executable_p "$ac_path_SED" || continue
5284 # Check for GNU ac_path_SED and select it if it is found.
5285   # Check for GNU $ac_path_SED
5286 case `"$ac_path_SED" --version 2>&1` in
5287 *GNU*)
5288   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5289 *)
5290   ac_count=0
5291   $as_echo_n 0123456789 >"conftest.in"
5292   while :
5293   do
5294     cat "conftest.in" "conftest.in" >"conftest.tmp"
5295     mv "conftest.tmp" "conftest.in"
5296     cp "conftest.in" "conftest.nl"
5297     $as_echo '' >> "conftest.nl"
5298     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5299     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5300     as_fn_arith $ac_count + 1 && ac_count=$as_val
5301     if test $ac_count -gt ${ac_path_SED_max-0}; then
5302       # Best one so far, save it but keep looking for a better one
5303       ac_cv_path_SED="$ac_path_SED"
5304       ac_path_SED_max=$ac_count
5305     fi
5306     # 10*(2^10) chars as input seems more than enough
5307     test $ac_count -gt 10 && break
5308   done
5309   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5310 esac
5311
5312       $ac_path_SED_found && break 3
5313     done
5314   done
5315   done
5316 IFS=$as_save_IFS
5317   if test -z "$ac_cv_path_SED"; then
5318     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5319   fi
5320 else
5321   ac_cv_path_SED=$SED
5322 fi
5323
5324 fi
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5326 $as_echo "$ac_cv_path_SED" >&6; }
5327  SED="$ac_cv_path_SED"
5328   rm -f conftest.sed
5329
5330 test -z "$SED" && SED=sed
5331 Xsed="$SED -e 1s/^X//"
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5344 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5345 if ${ac_cv_path_GREP+:} false; then :
5346   $as_echo_n "(cached) " >&6
5347 else
5348   if test -z "$GREP"; then
5349   ac_path_GREP_found=false
5350   # Loop through the user's path and test for each of PROGNAME-LIST
5351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5353 do
5354   IFS=$as_save_IFS
5355   test -z "$as_dir" && as_dir=.
5356     for ac_prog in grep ggrep; do
5357     for ac_exec_ext in '' $ac_executable_extensions; do
5358       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5359       as_fn_executable_p "$ac_path_GREP" || continue
5360 # Check for GNU ac_path_GREP and select it if it is found.
5361   # Check for GNU $ac_path_GREP
5362 case `"$ac_path_GREP" --version 2>&1` in
5363 *GNU*)
5364   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5365 *)
5366   ac_count=0
5367   $as_echo_n 0123456789 >"conftest.in"
5368   while :
5369   do
5370     cat "conftest.in" "conftest.in" >"conftest.tmp"
5371     mv "conftest.tmp" "conftest.in"
5372     cp "conftest.in" "conftest.nl"
5373     $as_echo 'GREP' >> "conftest.nl"
5374     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5375     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5376     as_fn_arith $ac_count + 1 && ac_count=$as_val
5377     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5378       # Best one so far, save it but keep looking for a better one
5379       ac_cv_path_GREP="$ac_path_GREP"
5380       ac_path_GREP_max=$ac_count
5381     fi
5382     # 10*(2^10) chars as input seems more than enough
5383     test $ac_count -gt 10 && break
5384   done
5385   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5386 esac
5387
5388       $ac_path_GREP_found && break 3
5389     done
5390   done
5391   done
5392 IFS=$as_save_IFS
5393   if test -z "$ac_cv_path_GREP"; then
5394     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5395   fi
5396 else
5397   ac_cv_path_GREP=$GREP
5398 fi
5399
5400 fi
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5402 $as_echo "$ac_cv_path_GREP" >&6; }
5403  GREP="$ac_cv_path_GREP"
5404
5405
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5407 $as_echo_n "checking for egrep... " >&6; }
5408 if ${ac_cv_path_EGREP+:} false; then :
5409   $as_echo_n "(cached) " >&6
5410 else
5411   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5412    then ac_cv_path_EGREP="$GREP -E"
5413    else
5414      if test -z "$EGREP"; then
5415   ac_path_EGREP_found=false
5416   # Loop through the user's path and test for each of PROGNAME-LIST
5417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5419 do
5420   IFS=$as_save_IFS
5421   test -z "$as_dir" && as_dir=.
5422     for ac_prog in egrep; do
5423     for ac_exec_ext in '' $ac_executable_extensions; do
5424       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5425       as_fn_executable_p "$ac_path_EGREP" || continue
5426 # Check for GNU ac_path_EGREP and select it if it is found.
5427   # Check for GNU $ac_path_EGREP
5428 case `"$ac_path_EGREP" --version 2>&1` in
5429 *GNU*)
5430   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5431 *)
5432   ac_count=0
5433   $as_echo_n 0123456789 >"conftest.in"
5434   while :
5435   do
5436     cat "conftest.in" "conftest.in" >"conftest.tmp"
5437     mv "conftest.tmp" "conftest.in"
5438     cp "conftest.in" "conftest.nl"
5439     $as_echo 'EGREP' >> "conftest.nl"
5440     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5441     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5442     as_fn_arith $ac_count + 1 && ac_count=$as_val
5443     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5444       # Best one so far, save it but keep looking for a better one
5445       ac_cv_path_EGREP="$ac_path_EGREP"
5446       ac_path_EGREP_max=$ac_count
5447     fi
5448     # 10*(2^10) chars as input seems more than enough
5449     test $ac_count -gt 10 && break
5450   done
5451   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5452 esac
5453
5454       $ac_path_EGREP_found && break 3
5455     done
5456   done
5457   done
5458 IFS=$as_save_IFS
5459   if test -z "$ac_cv_path_EGREP"; then
5460     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5461   fi
5462 else
5463   ac_cv_path_EGREP=$EGREP
5464 fi
5465
5466    fi
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5469 $as_echo "$ac_cv_path_EGREP" >&6; }
5470  EGREP="$ac_cv_path_EGREP"
5471
5472
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5474 $as_echo_n "checking for fgrep... " >&6; }
5475 if ${ac_cv_path_FGREP+:} false; then :
5476   $as_echo_n "(cached) " >&6
5477 else
5478   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5479    then ac_cv_path_FGREP="$GREP -F"
5480    else
5481      if test -z "$FGREP"; then
5482   ac_path_FGREP_found=false
5483   # Loop through the user's path and test for each of PROGNAME-LIST
5484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5486 do
5487   IFS=$as_save_IFS
5488   test -z "$as_dir" && as_dir=.
5489     for ac_prog in fgrep; do
5490     for ac_exec_ext in '' $ac_executable_extensions; do
5491       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5492       as_fn_executable_p "$ac_path_FGREP" || continue
5493 # Check for GNU ac_path_FGREP and select it if it is found.
5494   # Check for GNU $ac_path_FGREP
5495 case `"$ac_path_FGREP" --version 2>&1` in
5496 *GNU*)
5497   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5498 *)
5499   ac_count=0
5500   $as_echo_n 0123456789 >"conftest.in"
5501   while :
5502   do
5503     cat "conftest.in" "conftest.in" >"conftest.tmp"
5504     mv "conftest.tmp" "conftest.in"
5505     cp "conftest.in" "conftest.nl"
5506     $as_echo 'FGREP' >> "conftest.nl"
5507     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5508     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5509     as_fn_arith $ac_count + 1 && ac_count=$as_val
5510     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5511       # Best one so far, save it but keep looking for a better one
5512       ac_cv_path_FGREP="$ac_path_FGREP"
5513       ac_path_FGREP_max=$ac_count
5514     fi
5515     # 10*(2^10) chars as input seems more than enough
5516     test $ac_count -gt 10 && break
5517   done
5518   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5519 esac
5520
5521       $ac_path_FGREP_found && break 3
5522     done
5523   done
5524   done
5525 IFS=$as_save_IFS
5526   if test -z "$ac_cv_path_FGREP"; then
5527     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5528   fi
5529 else
5530   ac_cv_path_FGREP=$FGREP
5531 fi
5532
5533    fi
5534 fi
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5536 $as_echo "$ac_cv_path_FGREP" >&6; }
5537  FGREP="$ac_cv_path_FGREP"
5538
5539
5540 test -z "$GREP" && GREP=grep
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560 # Check whether --with-gnu-ld was given.
5561 if test "${with_gnu_ld+set}" = set; then :
5562   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5563 else
5564   with_gnu_ld=no
5565 fi
5566
5567 ac_prog=ld
5568 if test "$GCC" = yes; then
5569   # Check if gcc -print-prog-name=ld gives a path.
5570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5571 $as_echo_n "checking for ld used by $CC... " >&6; }
5572   case $host in
5573   *-*-mingw*)
5574     # gcc leaves a trailing carriage return which upsets mingw
5575     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5576   *)
5577     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5578   esac
5579   case $ac_prog in
5580     # Accept absolute paths.
5581     [\\/]* | ?:[\\/]*)
5582       re_direlt='/[^/][^/]*/\.\./'
5583       # Canonicalize the pathname of ld
5584       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5585       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5586         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5587       done
5588       test -z "$LD" && LD="$ac_prog"
5589       ;;
5590   "")
5591     # If it fails, then pretend we aren't using GCC.
5592     ac_prog=ld
5593     ;;
5594   *)
5595     # If it is relative, then search for the first ld in PATH.
5596     with_gnu_ld=unknown
5597     ;;
5598   esac
5599 elif test "$with_gnu_ld" = yes; then
5600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5601 $as_echo_n "checking for GNU ld... " >&6; }
5602 else
5603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5604 $as_echo_n "checking for non-GNU ld... " >&6; }
5605 fi
5606 if ${lt_cv_path_LD+:} false; then :
5607   $as_echo_n "(cached) " >&6
5608 else
5609   if test -z "$LD"; then
5610   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5611   for ac_dir in $PATH; do
5612     IFS="$lt_save_ifs"
5613     test -z "$ac_dir" && ac_dir=.
5614     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5615       lt_cv_path_LD="$ac_dir/$ac_prog"
5616       # Check to see if the program is GNU ld.  I'd rather use --version,
5617       # but apparently some variants of GNU ld only accept -v.
5618       # Break only if it was the GNU/non-GNU ld that we prefer.
5619       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5620       *GNU* | *'with BFD'*)
5621         test "$with_gnu_ld" != no && break
5622         ;;
5623       *)
5624         test "$with_gnu_ld" != yes && break
5625         ;;
5626       esac
5627     fi
5628   done
5629   IFS="$lt_save_ifs"
5630 else
5631   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5632 fi
5633 fi
5634
5635 LD="$lt_cv_path_LD"
5636 if test -n "$LD"; then
5637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5638 $as_echo "$LD" >&6; }
5639 else
5640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5642 fi
5643 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5645 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5646 if ${lt_cv_prog_gnu_ld+:} false; then :
5647   $as_echo_n "(cached) " >&6
5648 else
5649   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5650 case `$LD -v 2>&1 </dev/null` in
5651 *GNU* | *'with BFD'*)
5652   lt_cv_prog_gnu_ld=yes
5653   ;;
5654 *)
5655   lt_cv_prog_gnu_ld=no
5656   ;;
5657 esac
5658 fi
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5660 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5661 with_gnu_ld=$lt_cv_prog_gnu_ld
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5672 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5673 if ${lt_cv_path_NM+:} false; then :
5674   $as_echo_n "(cached) " >&6
5675 else
5676   if test -n "$NM"; then
5677   # Let the user override the test.
5678   lt_cv_path_NM="$NM"
5679 else
5680   lt_nm_to_check="${ac_tool_prefix}nm"
5681   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5682     lt_nm_to_check="$lt_nm_to_check nm"
5683   fi
5684   for lt_tmp_nm in $lt_nm_to_check; do
5685     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5686     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5687       IFS="$lt_save_ifs"
5688       test -z "$ac_dir" && ac_dir=.
5689       tmp_nm="$ac_dir/$lt_tmp_nm"
5690       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5691         # Check to see if the nm accepts a BSD-compat flag.
5692         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5693         #   nm: unknown option "B" ignored
5694         # Tru64's nm complains that /dev/null is an invalid object file
5695         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5696         */dev/null* | *'Invalid file or object type'*)
5697           lt_cv_path_NM="$tmp_nm -B"
5698           break
5699           ;;
5700         *)
5701           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5702           */dev/null*)
5703             lt_cv_path_NM="$tmp_nm -p"
5704             break
5705             ;;
5706           *)
5707             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5708             continue # so that we can try to find one that supports BSD flags
5709             ;;
5710           esac
5711           ;;
5712         esac
5713       fi
5714     done
5715     IFS="$lt_save_ifs"
5716   done
5717   : ${lt_cv_path_NM=no}
5718 fi
5719 fi
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5721 $as_echo "$lt_cv_path_NM" >&6; }
5722 if test "$lt_cv_path_NM" != "no"; then
5723   NM="$lt_cv_path_NM"
5724 else
5725   # Didn't find any BSD compatible name lister, look for dumpbin.
5726   if test -n "$DUMPBIN"; then :
5727     # Let the user override the test.
5728   else
5729     if test -n "$ac_tool_prefix"; then
5730   for ac_prog in dumpbin "link -dump"
5731   do
5732     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5735 $as_echo_n "checking for $ac_word... " >&6; }
5736 if ${ac_cv_prog_DUMPBIN+:} false; then :
5737   $as_echo_n "(cached) " >&6
5738 else
5739   if test -n "$DUMPBIN"; then
5740   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5741 else
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745   IFS=$as_save_IFS
5746   test -z "$as_dir" && as_dir=.
5747     for ac_exec_ext in '' $ac_executable_extensions; do
5748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5749     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751     break 2
5752   fi
5753 done
5754   done
5755 IFS=$as_save_IFS
5756
5757 fi
5758 fi
5759 DUMPBIN=$ac_cv_prog_DUMPBIN
5760 if test -n "$DUMPBIN"; then
5761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5762 $as_echo "$DUMPBIN" >&6; }
5763 else
5764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765 $as_echo "no" >&6; }
5766 fi
5767
5768
5769     test -n "$DUMPBIN" && break
5770   done
5771 fi
5772 if test -z "$DUMPBIN"; then
5773   ac_ct_DUMPBIN=$DUMPBIN
5774   for ac_prog in dumpbin "link -dump"
5775 do
5776   # Extract the first word of "$ac_prog", so it can be a program name with args.
5777 set dummy $ac_prog; ac_word=$2
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779 $as_echo_n "checking for $ac_word... " >&6; }
5780 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5781   $as_echo_n "(cached) " >&6
5782 else
5783   if test -n "$ac_ct_DUMPBIN"; then
5784   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5785 else
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH
5788 do
5789   IFS=$as_save_IFS
5790   test -z "$as_dir" && as_dir=.
5791     for ac_exec_ext in '' $ac_executable_extensions; do
5792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5793     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795     break 2
5796   fi
5797 done
5798   done
5799 IFS=$as_save_IFS
5800
5801 fi
5802 fi
5803 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5804 if test -n "$ac_ct_DUMPBIN"; then
5805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5806 $as_echo "$ac_ct_DUMPBIN" >&6; }
5807 else
5808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809 $as_echo "no" >&6; }
5810 fi
5811
5812
5813   test -n "$ac_ct_DUMPBIN" && break
5814 done
5815
5816   if test "x$ac_ct_DUMPBIN" = x; then
5817     DUMPBIN=":"
5818   else
5819     case $cross_compiling:$ac_tool_warned in
5820 yes:)
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5823 ac_tool_warned=yes ;;
5824 esac
5825     DUMPBIN=$ac_ct_DUMPBIN
5826   fi
5827 fi
5828
5829     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5830     *COFF*)
5831       DUMPBIN="$DUMPBIN -symbols"
5832       ;;
5833     *)
5834       DUMPBIN=:
5835       ;;
5836     esac
5837   fi
5838
5839   if test "$DUMPBIN" != ":"; then
5840     NM="$DUMPBIN"
5841   fi
5842 fi
5843 test -z "$NM" && NM=nm
5844
5845
5846
5847
5848
5849
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5851 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5852 if ${lt_cv_nm_interface+:} false; then :
5853   $as_echo_n "(cached) " >&6
5854 else
5855   lt_cv_nm_interface="BSD nm"
5856   echo "int some_variable = 0;" > conftest.$ac_ext
5857   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5858   (eval "$ac_compile" 2>conftest.err)
5859   cat conftest.err >&5
5860   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5861   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5862   cat conftest.err >&5
5863   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5864   cat conftest.out >&5
5865   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5866     lt_cv_nm_interface="MS dumpbin"
5867   fi
5868   rm -f conftest*
5869 fi
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5871 $as_echo "$lt_cv_nm_interface" >&6; }
5872
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5874 $as_echo_n "checking whether ln -s works... " >&6; }
5875 LN_S=$as_ln_s
5876 if test "$LN_S" = "ln -s"; then
5877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5878 $as_echo "yes" >&6; }
5879 else
5880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5881 $as_echo "no, using $LN_S" >&6; }
5882 fi
5883
5884 # find the maximum length of command line arguments
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5886 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5887 if ${lt_cv_sys_max_cmd_len+:} false; then :
5888   $as_echo_n "(cached) " >&6
5889 else
5890     i=0
5891   teststring="ABCD"
5892
5893   case $build_os in
5894   msdosdjgpp*)
5895     # On DJGPP, this test can blow up pretty badly due to problems in libc
5896     # (any single argument exceeding 2000 bytes causes a buffer overrun
5897     # during glob expansion).  Even if it were fixed, the result of this
5898     # check would be larger than it should be.
5899     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5900     ;;
5901
5902   gnu*)
5903     # Under GNU Hurd, this test is not required because there is
5904     # no limit to the length of command line arguments.
5905     # Libtool will interpret -1 as no limit whatsoever
5906     lt_cv_sys_max_cmd_len=-1;
5907     ;;
5908
5909   cygwin* | mingw* | cegcc*)
5910     # On Win9x/ME, this test blows up -- it succeeds, but takes
5911     # about 5 minutes as the teststring grows exponentially.
5912     # Worse, since 9x/ME are not pre-emptively multitasking,
5913     # you end up with a "frozen" computer, even though with patience
5914     # the test eventually succeeds (with a max line length of 256k).
5915     # Instead, let's just punt: use the minimum linelength reported by
5916     # all of the supported platforms: 8192 (on NT/2K/XP).
5917     lt_cv_sys_max_cmd_len=8192;
5918     ;;
5919
5920   mint*)
5921     # On MiNT this can take a long time and run out of memory.
5922     lt_cv_sys_max_cmd_len=8192;
5923     ;;
5924
5925   amigaos*)
5926     # On AmigaOS with pdksh, this test takes hours, literally.
5927     # So we just punt and use a minimum line length of 8192.
5928     lt_cv_sys_max_cmd_len=8192;
5929     ;;
5930
5931   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5932     # This has been around since 386BSD, at least.  Likely further.
5933     if test -x /sbin/sysctl; then
5934       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5935     elif test -x /usr/sbin/sysctl; then
5936       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5937     else
5938       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5939     fi
5940     # And add a safety zone
5941     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5942     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5943     ;;
5944
5945   interix*)
5946     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5947     lt_cv_sys_max_cmd_len=196608
5948     ;;
5949
5950   os2*)
5951     # The test takes a long time on OS/2.
5952     lt_cv_sys_max_cmd_len=8192
5953     ;;
5954
5955   osf*)
5956     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5957     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5958     # nice to cause kernel panics so lets avoid the loop below.
5959     # First set a reasonable default.
5960     lt_cv_sys_max_cmd_len=16384
5961     #
5962     if test -x /sbin/sysconfig; then
5963       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5964         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5965       esac
5966     fi
5967     ;;
5968   sco3.2v5*)
5969     lt_cv_sys_max_cmd_len=102400
5970     ;;
5971   sysv5* | sco5v6* | sysv4.2uw2*)
5972     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5973     if test -n "$kargmax"; then
5974       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5975     else
5976       lt_cv_sys_max_cmd_len=32768
5977     fi
5978     ;;
5979   *)
5980     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5981     if test -n "$lt_cv_sys_max_cmd_len"; then
5982       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5983       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5984     else
5985       # Make teststring a little bigger before we do anything with it.
5986       # a 1K string should be a reasonable start.
5987       for i in 1 2 3 4 5 6 7 8 ; do
5988         teststring=$teststring$teststring
5989       done
5990       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5991       # If test is not a shell built-in, we'll probably end up computing a
5992       # maximum length that is only half of the actual maximum length, but
5993       # we can't tell.
5994       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5995                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5996               test $i != 17 # 1/2 MB should be enough
5997       do
5998         i=`expr $i + 1`
5999         teststring=$teststring$teststring
6000       done
6001       # Only check the string length outside the loop.
6002       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6003       teststring=
6004       # Add a significant safety factor because C++ compilers can tack on
6005       # massive amounts of additional arguments before passing them to the
6006       # linker.  It appears as though 1/2 is a usable value.
6007       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6008     fi
6009     ;;
6010   esac
6011
6012 fi
6013
6014 if test -n $lt_cv_sys_max_cmd_len ; then
6015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6016 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6017 else
6018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6019 $as_echo "none" >&6; }
6020 fi
6021 max_cmd_len=$lt_cv_sys_max_cmd_len
6022
6023
6024
6025
6026
6027
6028 : ${CP="cp -f"}
6029 : ${MV="mv -f"}
6030 : ${RM="rm -f"}
6031
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6033 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6034 # Try some XSI features
6035 xsi_shell=no
6036 ( _lt_dummy="a/b/c"
6037   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6038       = c,a/b,b/c, \
6039     && eval 'test $(( 1 + 1 )) -eq 2 \
6040     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6041   && xsi_shell=yes
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6043 $as_echo "$xsi_shell" >&6; }
6044
6045
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6047 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6048 lt_shell_append=no
6049 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6050     >/dev/null 2>&1 \
6051   && lt_shell_append=yes
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6053 $as_echo "$lt_shell_append" >&6; }
6054
6055
6056 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6057   lt_unset=unset
6058 else
6059   lt_unset=false
6060 fi
6061
6062
6063
6064
6065
6066 # test EBCDIC or ASCII
6067 case `echo X|tr X '\101'` in
6068  A) # ASCII based system
6069     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6070   lt_SP2NL='tr \040 \012'
6071   lt_NL2SP='tr \015\012 \040\040'
6072   ;;
6073  *) # EBCDIC based system
6074   lt_SP2NL='tr \100 \n'
6075   lt_NL2SP='tr \r\n \100\100'
6076   ;;
6077 esac
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6088 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6089 if ${lt_cv_to_host_file_cmd+:} false; then :
6090   $as_echo_n "(cached) " >&6
6091 else
6092   case $host in
6093   *-*-mingw* )
6094     case $build in
6095       *-*-mingw* ) # actually msys
6096         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6097         ;;
6098       *-*-cygwin* )
6099         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6100         ;;
6101       * ) # otherwise, assume *nix
6102         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6103         ;;
6104     esac
6105     ;;
6106   *-*-cygwin* )
6107     case $build in
6108       *-*-mingw* ) # actually msys
6109         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6110         ;;
6111       *-*-cygwin* )
6112         lt_cv_to_host_file_cmd=func_convert_file_noop
6113         ;;
6114       * ) # otherwise, assume *nix
6115         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6116         ;;
6117     esac
6118     ;;
6119   * ) # unhandled hosts (and "normal" native builds)
6120     lt_cv_to_host_file_cmd=func_convert_file_noop
6121     ;;
6122 esac
6123
6124 fi
6125
6126 to_host_file_cmd=$lt_cv_to_host_file_cmd
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6128 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6129
6130
6131
6132
6133
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6135 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6136 if ${lt_cv_to_tool_file_cmd+:} false; then :
6137   $as_echo_n "(cached) " >&6
6138 else
6139   #assume ordinary cross tools, or native build.
6140 lt_cv_to_tool_file_cmd=func_convert_file_noop
6141 case $host in
6142   *-*-mingw* )
6143     case $build in
6144       *-*-mingw* ) # actually msys
6145         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6146         ;;
6147     esac
6148     ;;
6149 esac
6150
6151 fi
6152
6153 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6155 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6156
6157
6158
6159
6160
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6162 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6163 if ${lt_cv_ld_reload_flag+:} false; then :
6164   $as_echo_n "(cached) " >&6
6165 else
6166   lt_cv_ld_reload_flag='-r'
6167 fi
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6169 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6170 reload_flag=$lt_cv_ld_reload_flag
6171 case $reload_flag in
6172 "" | " "*) ;;
6173 *) reload_flag=" $reload_flag" ;;
6174 esac
6175 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6176 case $host_os in
6177   cygwin* | mingw* | pw32* | cegcc*)
6178     if test "$GCC" != yes; then
6179       reload_cmds=false
6180     fi
6181     ;;
6182   darwin*)
6183     if test "$GCC" = yes; then
6184       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6185     else
6186       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6187     fi
6188     ;;
6189 esac
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199 if test -n "$ac_tool_prefix"; then
6200   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6201 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if ${ac_cv_prog_OBJDUMP+:} false; then :
6205   $as_echo_n "(cached) " >&6
6206 else
6207   if test -n "$OBJDUMP"; then
6208   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6212 do
6213   IFS=$as_save_IFS
6214   test -z "$as_dir" && as_dir=.
6215     for ac_exec_ext in '' $ac_executable_extensions; do
6216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6217     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6219     break 2
6220   fi
6221 done
6222   done
6223 IFS=$as_save_IFS
6224
6225 fi
6226 fi
6227 OBJDUMP=$ac_cv_prog_OBJDUMP
6228 if test -n "$OBJDUMP"; then
6229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6230 $as_echo "$OBJDUMP" >&6; }
6231 else
6232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 $as_echo "no" >&6; }
6234 fi
6235
6236
6237 fi
6238 if test -z "$ac_cv_prog_OBJDUMP"; then
6239   ac_ct_OBJDUMP=$OBJDUMP
6240   # Extract the first word of "objdump", so it can be a program name with args.
6241 set dummy objdump; ac_word=$2
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243 $as_echo_n "checking for $ac_word... " >&6; }
6244 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6245   $as_echo_n "(cached) " >&6
6246 else
6247   if test -n "$ac_ct_OBJDUMP"; then
6248   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6249 else
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH
6252 do
6253   IFS=$as_save_IFS
6254   test -z "$as_dir" && as_dir=.
6255     for ac_exec_ext in '' $ac_executable_extensions; do
6256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6257     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6259     break 2
6260   fi
6261 done
6262   done
6263 IFS=$as_save_IFS
6264
6265 fi
6266 fi
6267 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6268 if test -n "$ac_ct_OBJDUMP"; then
6269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6270 $as_echo "$ac_ct_OBJDUMP" >&6; }
6271 else
6272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6274 fi
6275
6276   if test "x$ac_ct_OBJDUMP" = x; then
6277     OBJDUMP="false"
6278   else
6279     case $cross_compiling:$ac_tool_warned in
6280 yes:)
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6283 ac_tool_warned=yes ;;
6284 esac
6285     OBJDUMP=$ac_ct_OBJDUMP
6286   fi
6287 else
6288   OBJDUMP="$ac_cv_prog_OBJDUMP"
6289 fi
6290
6291 test -z "$OBJDUMP" && OBJDUMP=objdump
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6302 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6303 if ${lt_cv_deplibs_check_method+:} false; then :
6304   $as_echo_n "(cached) " >&6
6305 else
6306   lt_cv_file_magic_cmd='$MAGIC_CMD'
6307 lt_cv_file_magic_test_file=
6308 lt_cv_deplibs_check_method='unknown'
6309 # Need to set the preceding variable on all platforms that support
6310 # interlibrary dependencies.
6311 # 'none' -- dependencies not supported.
6312 # `unknown' -- same as none, but documents that we really don't know.
6313 # 'pass_all' -- all dependencies passed with no checks.
6314 # 'test_compile' -- check by making test program.
6315 # 'file_magic [[regex]]' -- check by looking for files in library path
6316 # which responds to the $file_magic_cmd with a given extended regex.
6317 # If you have `file' or equivalent on your system and you're not sure
6318 # whether `pass_all' will *always* work, you probably want this one.
6319
6320 case $host_os in
6321 aix[4-9]*)
6322   lt_cv_deplibs_check_method=pass_all
6323   ;;
6324
6325 beos*)
6326   lt_cv_deplibs_check_method=pass_all
6327   ;;
6328
6329 bsdi[45]*)
6330   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6331   lt_cv_file_magic_cmd='/usr/bin/file -L'
6332   lt_cv_file_magic_test_file=/shlib/libc.so
6333   ;;
6334
6335 cygwin*)
6336   # func_win32_libid is a shell function defined in ltmain.sh
6337   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6338   lt_cv_file_magic_cmd='func_win32_libid'
6339   ;;
6340
6341 mingw* | pw32*)
6342   # Base MSYS/MinGW do not provide the 'file' command needed by
6343   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6344   # unless we find 'file', for example because we are cross-compiling.
6345   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6346   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6347     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6348     lt_cv_file_magic_cmd='func_win32_libid'
6349   else
6350     # Keep this pattern in sync with the one in func_win32_libid.
6351     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6352     lt_cv_file_magic_cmd='$OBJDUMP -f'
6353   fi
6354   ;;
6355
6356 cegcc*)
6357   # use the weaker test based on 'objdump'. See mingw*.
6358   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6359   lt_cv_file_magic_cmd='$OBJDUMP -f'
6360   ;;
6361
6362 darwin* | rhapsody*)
6363   lt_cv_deplibs_check_method=pass_all
6364   ;;
6365
6366 freebsd* | dragonfly*)
6367   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6368     case $host_cpu in
6369     i*86 )
6370       # Not sure whether the presence of OpenBSD here was a mistake.
6371       # Let's accept both of them until this is cleared up.
6372       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6373       lt_cv_file_magic_cmd=/usr/bin/file
6374       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6375       ;;
6376     esac
6377   else
6378     lt_cv_deplibs_check_method=pass_all
6379   fi
6380   ;;
6381
6382 haiku*)
6383   lt_cv_deplibs_check_method=pass_all
6384   ;;
6385
6386 hpux10.20* | hpux11*)
6387   lt_cv_file_magic_cmd=/usr/bin/file
6388   case $host_cpu in
6389   ia64*)
6390     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6391     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6392     ;;
6393   hppa*64*)
6394     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6395     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6396     ;;
6397   *)
6398     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6399     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6400     ;;
6401   esac
6402   ;;
6403
6404 interix[3-9]*)
6405   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6406   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6407   ;;
6408
6409 irix5* | irix6* | nonstopux*)
6410   case $LD in
6411   *-32|*"-32 ") libmagic=32-bit;;
6412   *-n32|*"-n32 ") libmagic=N32;;
6413   *-64|*"-64 ") libmagic=64-bit;;
6414   *) libmagic=never-match;;
6415   esac
6416   lt_cv_deplibs_check_method=pass_all
6417   ;;
6418
6419 # This must be glibc/ELF.
6420 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6421   lt_cv_deplibs_check_method=pass_all
6422   ;;
6423
6424 netbsd* | netbsdelf*-gnu)
6425   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6426     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6427   else
6428     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6429   fi
6430   ;;
6431
6432 newos6*)
6433   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6434   lt_cv_file_magic_cmd=/usr/bin/file
6435   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6436   ;;
6437
6438 *nto* | *qnx*)
6439   lt_cv_deplibs_check_method=pass_all
6440   ;;
6441
6442 openbsd*)
6443   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6444     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6445   else
6446     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6447   fi
6448   ;;
6449
6450 osf3* | osf4* | osf5*)
6451   lt_cv_deplibs_check_method=pass_all
6452   ;;
6453
6454 rdos*)
6455   lt_cv_deplibs_check_method=pass_all
6456   ;;
6457
6458 solaris*)
6459   lt_cv_deplibs_check_method=pass_all
6460   ;;
6461
6462 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6463   lt_cv_deplibs_check_method=pass_all
6464   ;;
6465
6466 sysv4 | sysv4.3*)
6467   case $host_vendor in
6468   motorola)
6469     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]'
6470     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6471     ;;
6472   ncr)
6473     lt_cv_deplibs_check_method=pass_all
6474     ;;
6475   sequent)
6476     lt_cv_file_magic_cmd='/bin/file'
6477     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6478     ;;
6479   sni)
6480     lt_cv_file_magic_cmd='/bin/file'
6481     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6482     lt_cv_file_magic_test_file=/lib/libc.so
6483     ;;
6484   siemens)
6485     lt_cv_deplibs_check_method=pass_all
6486     ;;
6487   pc)
6488     lt_cv_deplibs_check_method=pass_all
6489     ;;
6490   esac
6491   ;;
6492
6493 tpf*)
6494   lt_cv_deplibs_check_method=pass_all
6495   ;;
6496 esac
6497
6498 fi
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6500 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6501
6502 file_magic_glob=
6503 want_nocaseglob=no
6504 if test "$build" = "$host"; then
6505   case $host_os in
6506   mingw* | pw32*)
6507     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6508       want_nocaseglob=yes
6509     else
6510       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6511     fi
6512     ;;
6513   esac
6514 fi
6515
6516 file_magic_cmd=$lt_cv_file_magic_cmd
6517 deplibs_check_method=$lt_cv_deplibs_check_method
6518 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541 if test -n "$ac_tool_prefix"; then
6542   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6543 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_prog_DLLTOOL+:} false; then :
6547   $as_echo_n "(cached) " >&6
6548 else
6549   if test -n "$DLLTOOL"; then
6550   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6551 else
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555   IFS=$as_save_IFS
6556   test -z "$as_dir" && as_dir=.
6557     for ac_exec_ext in '' $ac_executable_extensions; do
6558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6559     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561     break 2
6562   fi
6563 done
6564   done
6565 IFS=$as_save_IFS
6566
6567 fi
6568 fi
6569 DLLTOOL=$ac_cv_prog_DLLTOOL
6570 if test -n "$DLLTOOL"; then
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6572 $as_echo "$DLLTOOL" >&6; }
6573 else
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6576 fi
6577
6578
6579 fi
6580 if test -z "$ac_cv_prog_DLLTOOL"; then
6581   ac_ct_DLLTOOL=$DLLTOOL
6582   # Extract the first word of "dlltool", so it can be a program name with args.
6583 set dummy dlltool; ac_word=$2
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6585 $as_echo_n "checking for $ac_word... " >&6; }
6586 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6587   $as_echo_n "(cached) " >&6
6588 else
6589   if test -n "$ac_ct_DLLTOOL"; then
6590   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6591 else
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6594 do
6595   IFS=$as_save_IFS
6596   test -z "$as_dir" && as_dir=.
6597     for ac_exec_ext in '' $ac_executable_extensions; do
6598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6599     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601     break 2
6602   fi
6603 done
6604   done
6605 IFS=$as_save_IFS
6606
6607 fi
6608 fi
6609 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6610 if test -n "$ac_ct_DLLTOOL"; then
6611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6612 $as_echo "$ac_ct_DLLTOOL" >&6; }
6613 else
6614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615 $as_echo "no" >&6; }
6616 fi
6617
6618   if test "x$ac_ct_DLLTOOL" = x; then
6619     DLLTOOL="false"
6620   else
6621     case $cross_compiling:$ac_tool_warned in
6622 yes:)
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6625 ac_tool_warned=yes ;;
6626 esac
6627     DLLTOOL=$ac_ct_DLLTOOL
6628   fi
6629 else
6630   DLLTOOL="$ac_cv_prog_DLLTOOL"
6631 fi
6632
6633 test -z "$DLLTOOL" && DLLTOOL=dlltool
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6645 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6646 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6647   $as_echo_n "(cached) " >&6
6648 else
6649   lt_cv_sharedlib_from_linklib_cmd='unknown'
6650
6651 case $host_os in
6652 cygwin* | mingw* | pw32* | cegcc*)
6653   # two different shell functions defined in ltmain.sh
6654   # decide which to use based on capabilities of $DLLTOOL
6655   case `$DLLTOOL --help 2>&1` in
6656   *--identify-strict*)
6657     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6658     ;;
6659   *)
6660     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6661     ;;
6662   esac
6663   ;;
6664 *)
6665   # fallback: assume linklib IS sharedlib
6666   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6667   ;;
6668 esac
6669
6670 fi
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6672 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6673 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6674 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6675
6676
6677
6678
6679
6680
6681
6682
6683 if test -n "$ac_tool_prefix"; then
6684   for ac_prog in ar
6685   do
6686     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6687 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689 $as_echo_n "checking for $ac_word... " >&6; }
6690 if ${ac_cv_prog_AR+:} false; then :
6691   $as_echo_n "(cached) " >&6
6692 else
6693   if test -n "$AR"; then
6694   ac_cv_prog_AR="$AR" # Let the user override the test.
6695 else
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in $PATH
6698 do
6699   IFS=$as_save_IFS
6700   test -z "$as_dir" && as_dir=.
6701     for ac_exec_ext in '' $ac_executable_extensions; do
6702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6703     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705     break 2
6706   fi
6707 done
6708   done
6709 IFS=$as_save_IFS
6710
6711 fi
6712 fi
6713 AR=$ac_cv_prog_AR
6714 if test -n "$AR"; then
6715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6716 $as_echo "$AR" >&6; }
6717 else
6718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 $as_echo "no" >&6; }
6720 fi
6721
6722
6723     test -n "$AR" && break
6724   done
6725 fi
6726 if test -z "$AR"; then
6727   ac_ct_AR=$AR
6728   for ac_prog in ar
6729 do
6730   # Extract the first word of "$ac_prog", so it can be a program name with args.
6731 set dummy $ac_prog; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6735   $as_echo_n "(cached) " >&6
6736 else
6737   if test -n "$ac_ct_AR"; then
6738   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743   IFS=$as_save_IFS
6744   test -z "$as_dir" && as_dir=.
6745     for ac_exec_ext in '' $ac_executable_extensions; do
6746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6747     ac_cv_prog_ac_ct_AR="$ac_prog"
6748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749     break 2
6750   fi
6751 done
6752   done
6753 IFS=$as_save_IFS
6754
6755 fi
6756 fi
6757 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6758 if test -n "$ac_ct_AR"; then
6759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6760 $as_echo "$ac_ct_AR" >&6; }
6761 else
6762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6764 fi
6765
6766
6767   test -n "$ac_ct_AR" && break
6768 done
6769
6770   if test "x$ac_ct_AR" = x; then
6771     AR="false"
6772   else
6773     case $cross_compiling:$ac_tool_warned in
6774 yes:)
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6777 ac_tool_warned=yes ;;
6778 esac
6779     AR=$ac_ct_AR
6780   fi
6781 fi
6782
6783 : ${AR=ar}
6784 : ${AR_FLAGS=cru}
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6797 $as_echo_n "checking for archiver @FILE support... " >&6; }
6798 if ${lt_cv_ar_at_file+:} false; then :
6799   $as_echo_n "(cached) " >&6
6800 else
6801   lt_cv_ar_at_file=no
6802    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h.  */
6804
6805 int
6806 main ()
6807 {
6808
6809   ;
6810   return 0;
6811 }
6812 _ACEOF
6813 if ac_fn_c_try_compile "$LINENO"; then :
6814   echo conftest.$ac_objext > conftest.lst
6815       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6816       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6817   (eval $lt_ar_try) 2>&5
6818   ac_status=$?
6819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6820   test $ac_status = 0; }
6821       if test "$ac_status" -eq 0; then
6822         # Ensure the archiver fails upon bogus file names.
6823         rm -f conftest.$ac_objext libconftest.a
6824         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6825   (eval $lt_ar_try) 2>&5
6826   ac_status=$?
6827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6828   test $ac_status = 0; }
6829         if test "$ac_status" -ne 0; then
6830           lt_cv_ar_at_file=@
6831         fi
6832       fi
6833       rm -f conftest.* libconftest.a
6834
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837
6838 fi
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6840 $as_echo "$lt_cv_ar_at_file" >&6; }
6841
6842 if test "x$lt_cv_ar_at_file" = xno; then
6843   archiver_list_spec=
6844 else
6845   archiver_list_spec=$lt_cv_ar_at_file
6846 fi
6847
6848
6849
6850
6851
6852
6853
6854 if test -n "$ac_tool_prefix"; then
6855   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}strip; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if ${ac_cv_prog_STRIP+:} false; then :
6860   $as_echo_n "(cached) " >&6
6861 else
6862   if test -n "$STRIP"; then
6863   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868   IFS=$as_save_IFS
6869   test -z "$as_dir" && as_dir=.
6870     for ac_exec_ext in '' $ac_executable_extensions; do
6871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874     break 2
6875   fi
6876 done
6877   done
6878 IFS=$as_save_IFS
6879
6880 fi
6881 fi
6882 STRIP=$ac_cv_prog_STRIP
6883 if test -n "$STRIP"; then
6884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6885 $as_echo "$STRIP" >&6; }
6886 else
6887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6889 fi
6890
6891
6892 fi
6893 if test -z "$ac_cv_prog_STRIP"; then
6894   ac_ct_STRIP=$STRIP
6895   # Extract the first word of "strip", so it can be a program name with args.
6896 set dummy strip; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 $as_echo_n "checking for $ac_word... " >&6; }
6899 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6900   $as_echo_n "(cached) " >&6
6901 else
6902   if test -n "$ac_ct_STRIP"; then
6903   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6904 else
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 for as_dir in $PATH
6907 do
6908   IFS=$as_save_IFS
6909   test -z "$as_dir" && as_dir=.
6910     for ac_exec_ext in '' $ac_executable_extensions; do
6911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6912     ac_cv_prog_ac_ct_STRIP="strip"
6913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6914     break 2
6915   fi
6916 done
6917   done
6918 IFS=$as_save_IFS
6919
6920 fi
6921 fi
6922 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6923 if test -n "$ac_ct_STRIP"; then
6924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6925 $as_echo "$ac_ct_STRIP" >&6; }
6926 else
6927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928 $as_echo "no" >&6; }
6929 fi
6930
6931   if test "x$ac_ct_STRIP" = x; then
6932     STRIP=":"
6933   else
6934     case $cross_compiling:$ac_tool_warned in
6935 yes:)
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6938 ac_tool_warned=yes ;;
6939 esac
6940     STRIP=$ac_ct_STRIP
6941   fi
6942 else
6943   STRIP="$ac_cv_prog_STRIP"
6944 fi
6945
6946 test -z "$STRIP" && STRIP=:
6947
6948
6949
6950
6951
6952
6953 if test -n "$ac_tool_prefix"; then
6954   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6955 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957 $as_echo_n "checking for $ac_word... " >&6; }
6958 if ${ac_cv_prog_RANLIB+:} false; then :
6959   $as_echo_n "(cached) " >&6
6960 else
6961   if test -n "$RANLIB"; then
6962   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6963 else
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6966 do
6967   IFS=$as_save_IFS
6968   test -z "$as_dir" && as_dir=.
6969     for ac_exec_ext in '' $ac_executable_extensions; do
6970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6971     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6973     break 2
6974   fi
6975 done
6976   done
6977 IFS=$as_save_IFS
6978
6979 fi
6980 fi
6981 RANLIB=$ac_cv_prog_RANLIB
6982 if test -n "$RANLIB"; then
6983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6984 $as_echo "$RANLIB" >&6; }
6985 else
6986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987 $as_echo "no" >&6; }
6988 fi
6989
6990
6991 fi
6992 if test -z "$ac_cv_prog_RANLIB"; then
6993   ac_ct_RANLIB=$RANLIB
6994   # Extract the first word of "ranlib", so it can be a program name with args.
6995 set dummy ranlib; ac_word=$2
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997 $as_echo_n "checking for $ac_word... " >&6; }
6998 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6999   $as_echo_n "(cached) " >&6
7000 else
7001   if test -n "$ac_ct_RANLIB"; then
7002   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7003 else
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 for as_dir in $PATH
7006 do
7007   IFS=$as_save_IFS
7008   test -z "$as_dir" && as_dir=.
7009     for ac_exec_ext in '' $ac_executable_extensions; do
7010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7011     ac_cv_prog_ac_ct_RANLIB="ranlib"
7012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7013     break 2
7014   fi
7015 done
7016   done
7017 IFS=$as_save_IFS
7018
7019 fi
7020 fi
7021 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7022 if test -n "$ac_ct_RANLIB"; then
7023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7024 $as_echo "$ac_ct_RANLIB" >&6; }
7025 else
7026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027 $as_echo "no" >&6; }
7028 fi
7029
7030   if test "x$ac_ct_RANLIB" = x; then
7031     RANLIB=":"
7032   else
7033     case $cross_compiling:$ac_tool_warned in
7034 yes:)
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7037 ac_tool_warned=yes ;;
7038 esac
7039     RANLIB=$ac_ct_RANLIB
7040   fi
7041 else
7042   RANLIB="$ac_cv_prog_RANLIB"
7043 fi
7044
7045 test -z "$RANLIB" && RANLIB=:
7046
7047
7048
7049
7050
7051
7052 # Determine commands to create old-style static archives.
7053 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7054 old_postinstall_cmds='chmod 644 $oldlib'
7055 old_postuninstall_cmds=
7056
7057 if test -n "$RANLIB"; then
7058   case $host_os in
7059   openbsd*)
7060     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7061     ;;
7062   *)
7063     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7064     ;;
7065   esac
7066   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7067 fi
7068
7069 case $host_os in
7070   darwin*)
7071     lock_old_archive_extraction=yes ;;
7072   *)
7073     lock_old_archive_extraction=no ;;
7074 esac
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114 # If no C compiler was specified, use CC.
7115 LTCC=${LTCC-"$CC"}
7116
7117 # If no C compiler flags were specified, use CFLAGS.
7118 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7119
7120 # Allow CC to be a program name with arguments.
7121 compiler=$CC
7122
7123
7124 # Check for command to grab the raw symbol name followed by C symbol from nm.
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7126 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7127 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7128   $as_echo_n "(cached) " >&6
7129 else
7130
7131 # These are sane defaults that work on at least a few old systems.
7132 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7133
7134 # Character class describing NM global symbol codes.
7135 symcode='[BCDEGRST]'
7136
7137 # Regexp to match symbols that can be accessed directly from C.
7138 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7139
7140 # Define system-specific variables.
7141 case $host_os in
7142 aix*)
7143   symcode='[BCDT]'
7144   ;;
7145 cygwin* | mingw* | pw32* | cegcc*)
7146   symcode='[ABCDGISTW]'
7147   ;;
7148 hpux*)
7149   if test "$host_cpu" = ia64; then
7150     symcode='[ABCDEGRST]'
7151   fi
7152   ;;
7153 irix* | nonstopux*)
7154   symcode='[BCDEGRST]'
7155   ;;
7156 osf*)
7157   symcode='[BCDEGQRST]'
7158   ;;
7159 solaris*)
7160   symcode='[BDRT]'
7161   ;;
7162 sco3.2v5*)
7163   symcode='[DT]'
7164   ;;
7165 sysv4.2uw2*)
7166   symcode='[DT]'
7167   ;;
7168 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7169   symcode='[ABDT]'
7170   ;;
7171 sysv4)
7172   symcode='[DFNSTU]'
7173   ;;
7174 esac
7175
7176 # If we're using GNU nm, then use its standard symbol codes.
7177 case `$NM -V 2>&1` in
7178 *GNU* | *'with BFD'*)
7179   symcode='[ABCDGIRSTW]' ;;
7180 esac
7181
7182 # Transform an extracted symbol line into a proper C declaration.
7183 # Some systems (esp. on ia64) link data and code symbols differently,
7184 # so use this general approach.
7185 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7186
7187 # Transform an extracted symbol line into symbol name and symbol address
7188 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7189 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'"
7190
7191 # Handle CRLF in mingw tool chain
7192 opt_cr=
7193 case $build_os in
7194 mingw*)
7195   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7196   ;;
7197 esac
7198
7199 # Try without a prefix underscore, then with it.
7200 for ac_symprfx in "" "_"; do
7201
7202   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7203   symxfrm="\\1 $ac_symprfx\\2 \\2"
7204
7205   # Write the raw and C identifiers.
7206   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7207     # Fake it for dumpbin and say T for any non-static function
7208     # and D for any global variable.
7209     # Also find C++ and __fastcall symbols from MSVC++,
7210     # which start with @ or ?.
7211     lt_cv_sys_global_symbol_pipe="$AWK '"\
7212 "     {last_section=section; section=\$ 3};"\
7213 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7214 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7215 "     \$ 0!~/External *\|/{next};"\
7216 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7217 "     {if(hide[section]) next};"\
7218 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7219 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7220 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7221 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7222 "     ' prfx=^$ac_symprfx"
7223   else
7224     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7225   fi
7226   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7227
7228   # Check to see that the pipe works correctly.
7229   pipe_works=no
7230
7231   rm -f conftest*
7232   cat > conftest.$ac_ext <<_LT_EOF
7233 #ifdef __cplusplus
7234 extern "C" {
7235 #endif
7236 char nm_test_var;
7237 void nm_test_func(void);
7238 void nm_test_func(void){}
7239 #ifdef __cplusplus
7240 }
7241 #endif
7242 int main(){nm_test_var='a';nm_test_func();return(0);}
7243 _LT_EOF
7244
7245   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7246   (eval $ac_compile) 2>&5
7247   ac_status=$?
7248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7249   test $ac_status = 0; }; then
7250     # Now try to grab the symbols.
7251     nlist=conftest.nm
7252     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7253   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7254   ac_status=$?
7255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7256   test $ac_status = 0; } && test -s "$nlist"; then
7257       # Try sorting and uniquifying the output.
7258       if sort "$nlist" | uniq > "$nlist"T; then
7259         mv -f "$nlist"T "$nlist"
7260       else
7261         rm -f "$nlist"T
7262       fi
7263
7264       # Make sure that we snagged all the symbols we need.
7265       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7266         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7267           cat <<_LT_EOF > conftest.$ac_ext
7268 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7269 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7270 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7271    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7272 # define LT_DLSYM_CONST
7273 #elif defined(__osf__)
7274 /* This system does not cope well with relocations in const data.  */
7275 # define LT_DLSYM_CONST
7276 #else
7277 # define LT_DLSYM_CONST const
7278 #endif
7279
7280 #ifdef __cplusplus
7281 extern "C" {
7282 #endif
7283
7284 _LT_EOF
7285           # Now generate the symbol file.
7286           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7287
7288           cat <<_LT_EOF >> conftest.$ac_ext
7289
7290 /* The mapping between symbol names and symbols.  */
7291 LT_DLSYM_CONST struct {
7292   const char *name;
7293   void       *address;
7294 }
7295 lt__PROGRAM__LTX_preloaded_symbols[] =
7296 {
7297   { "@PROGRAM@", (void *) 0 },
7298 _LT_EOF
7299           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7300           cat <<\_LT_EOF >> conftest.$ac_ext
7301   {0, (void *) 0}
7302 };
7303
7304 /* This works around a problem in FreeBSD linker */
7305 #ifdef FREEBSD_WORKAROUND
7306 static const void *lt_preloaded_setup() {
7307   return lt__PROGRAM__LTX_preloaded_symbols;
7308 }
7309 #endif
7310
7311 #ifdef __cplusplus
7312 }
7313 #endif
7314 _LT_EOF
7315           # Now try linking the two files.
7316           mv conftest.$ac_objext conftstm.$ac_objext
7317           lt_globsym_save_LIBS=$LIBS
7318           lt_globsym_save_CFLAGS=$CFLAGS
7319           LIBS="conftstm.$ac_objext"
7320           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7321           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7322   (eval $ac_link) 2>&5
7323   ac_status=$?
7324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7325   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7326             pipe_works=yes
7327           fi
7328           LIBS=$lt_globsym_save_LIBS
7329           CFLAGS=$lt_globsym_save_CFLAGS
7330         else
7331           echo "cannot find nm_test_func in $nlist" >&5
7332         fi
7333       else
7334         echo "cannot find nm_test_var in $nlist" >&5
7335       fi
7336     else
7337       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7338     fi
7339   else
7340     echo "$progname: failed program was:" >&5
7341     cat conftest.$ac_ext >&5
7342   fi
7343   rm -rf conftest* conftst*
7344
7345   # Do not use the global_symbol_pipe unless it works.
7346   if test "$pipe_works" = yes; then
7347     break
7348   else
7349     lt_cv_sys_global_symbol_pipe=
7350   fi
7351 done
7352
7353 fi
7354
7355 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7356   lt_cv_sys_global_symbol_to_cdecl=
7357 fi
7358 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7360 $as_echo "failed" >&6; }
7361 else
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7363 $as_echo "ok" >&6; }
7364 fi
7365
7366 # Response file support.
7367 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7368   nm_file_list_spec='@'
7369 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7370   nm_file_list_spec='@'
7371 fi
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7400 $as_echo_n "checking for sysroot... " >&6; }
7401
7402 # Check whether --with-sysroot was given.
7403 if test "${with_sysroot+set}" = set; then :
7404   withval=$with_sysroot;
7405 else
7406   with_sysroot=no
7407 fi
7408
7409
7410 lt_sysroot=
7411 case ${with_sysroot} in #(
7412  yes)
7413    if test "$GCC" = yes; then
7414      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7415    fi
7416    ;; #(
7417  /*)
7418    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7419    ;; #(
7420  no|'')
7421    ;; #(
7422  *)
7423    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7424 $as_echo "${with_sysroot}" >&6; }
7425    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7426    ;;
7427 esac
7428
7429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7430 $as_echo "${lt_sysroot:-no}" >&6; }
7431
7432
7433
7434
7435
7436 # Check whether --enable-libtool-lock was given.
7437 if test "${enable_libtool_lock+set}" = set; then :
7438   enableval=$enable_libtool_lock;
7439 fi
7440
7441 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7442
7443 # Some flags need to be propagated to the compiler or linker for good
7444 # libtool support.
7445 case $host in
7446 ia64-*-hpux*)
7447   # Find out which ABI we are using.
7448   echo 'int i;' > conftest.$ac_ext
7449   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7450   (eval $ac_compile) 2>&5
7451   ac_status=$?
7452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7453   test $ac_status = 0; }; then
7454     case `/usr/bin/file conftest.$ac_objext` in
7455       *ELF-32*)
7456         HPUX_IA64_MODE="32"
7457         ;;
7458       *ELF-64*)
7459         HPUX_IA64_MODE="64"
7460         ;;
7461     esac
7462   fi
7463   rm -rf conftest*
7464   ;;
7465 *-*-irix6*)
7466   # Find out which ABI we are using.
7467   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7468   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7469   (eval $ac_compile) 2>&5
7470   ac_status=$?
7471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7472   test $ac_status = 0; }; then
7473     if test "$lt_cv_prog_gnu_ld" = yes; then
7474       case `/usr/bin/file conftest.$ac_objext` in
7475         *32-bit*)
7476           LD="${LD-ld} -melf32bsmip"
7477           ;;
7478         *N32*)
7479           LD="${LD-ld} -melf32bmipn32"
7480           ;;
7481         *64-bit*)
7482           LD="${LD-ld} -melf64bmip"
7483         ;;
7484       esac
7485     else
7486       case `/usr/bin/file conftest.$ac_objext` in
7487         *32-bit*)
7488           LD="${LD-ld} -32"
7489           ;;
7490         *N32*)
7491           LD="${LD-ld} -n32"
7492           ;;
7493         *64-bit*)
7494           LD="${LD-ld} -64"
7495           ;;
7496       esac
7497     fi
7498   fi
7499   rm -rf conftest*
7500   ;;
7501
7502 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7503 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7504   # Find out which ABI we are using.
7505   echo 'int i;' > conftest.$ac_ext
7506   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7507   (eval $ac_compile) 2>&5
7508   ac_status=$?
7509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7510   test $ac_status = 0; }; then
7511     case `/usr/bin/file conftest.o` in
7512       *32-bit*)
7513         case $host in
7514           x86_64-*kfreebsd*-gnu)
7515             LD="${LD-ld} -m elf_i386_fbsd"
7516             ;;
7517           x86_64-*linux*)
7518             LD="${LD-ld} -m elf_i386"
7519             ;;
7520           ppc64-*linux*|powerpc64-*linux*)
7521             LD="${LD-ld} -m elf32ppclinux"
7522             ;;
7523           s390x-*linux*)
7524             LD="${LD-ld} -m elf_s390"
7525             ;;
7526           sparc64-*linux*)
7527             LD="${LD-ld} -m elf32_sparc"
7528             ;;
7529         esac
7530         ;;
7531       *64-bit*)
7532         case $host in
7533           x86_64-*kfreebsd*-gnu)
7534             LD="${LD-ld} -m elf_x86_64_fbsd"
7535             ;;
7536           x86_64-*linux*)
7537             LD="${LD-ld} -m elf_x86_64"
7538             ;;
7539           ppc*-*linux*|powerpc*-*linux*)
7540             LD="${LD-ld} -m elf64ppc"
7541             ;;
7542           s390*-*linux*|s390*-*tpf*)
7543             LD="${LD-ld} -m elf64_s390"
7544             ;;
7545           sparc*-*linux*)
7546             LD="${LD-ld} -m elf64_sparc"
7547             ;;
7548         esac
7549         ;;
7550     esac
7551   fi
7552   rm -rf conftest*
7553   ;;
7554
7555 *-*-sco3.2v5*)
7556   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7557   SAVE_CFLAGS="$CFLAGS"
7558   CFLAGS="$CFLAGS -belf"
7559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7560 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7561 if ${lt_cv_cc_needs_belf+:} false; then :
7562   $as_echo_n "(cached) " >&6
7563 else
7564   ac_ext=c
7565 ac_cpp='$CPP $CPPFLAGS'
7566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7569
7570      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h.  */
7572
7573 int
7574 main ()
7575 {
7576
7577   ;
7578   return 0;
7579 }
7580 _ACEOF
7581 if ac_fn_c_try_link "$LINENO"; then :
7582   lt_cv_cc_needs_belf=yes
7583 else
7584   lt_cv_cc_needs_belf=no
7585 fi
7586 rm -f core conftest.err conftest.$ac_objext \
7587     conftest$ac_exeext conftest.$ac_ext
7588      ac_ext=c
7589 ac_cpp='$CPP $CPPFLAGS'
7590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7593
7594 fi
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7596 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7597   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7598     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7599     CFLAGS="$SAVE_CFLAGS"
7600   fi
7601   ;;
7602 *-*solaris*)
7603   # Find out which ABI we are using.
7604   echo 'int i;' > conftest.$ac_ext
7605   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7606   (eval $ac_compile) 2>&5
7607   ac_status=$?
7608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7609   test $ac_status = 0; }; then
7610     case `/usr/bin/file conftest.o` in
7611     *64-bit*)
7612       case $lt_cv_prog_gnu_ld in
7613       yes*)
7614         case $host in
7615         i?86-*-solaris*)
7616           LD="${LD-ld} -m elf_x86_64"
7617           ;;
7618         sparc*-*-solaris*)
7619           LD="${LD-ld} -m elf64_sparc"
7620           ;;
7621         esac
7622         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7623         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7624           LD="${LD-ld}_sol2"
7625         fi
7626         ;;
7627       *)
7628         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7629           LD="${LD-ld} -64"
7630         fi
7631         ;;
7632       esac
7633       ;;
7634     esac
7635   fi
7636   rm -rf conftest*
7637   ;;
7638 esac
7639
7640 need_locks="$enable_libtool_lock"
7641
7642 if test -n "$ac_tool_prefix"; then
7643   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7644 set dummy ${ac_tool_prefix}mt; ac_word=$2
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646 $as_echo_n "checking for $ac_word... " >&6; }
7647 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7648   $as_echo_n "(cached) " >&6
7649 else
7650   if test -n "$MANIFEST_TOOL"; then
7651   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7652 else
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7655 do
7656   IFS=$as_save_IFS
7657   test -z "$as_dir" && as_dir=.
7658     for ac_exec_ext in '' $ac_executable_extensions; do
7659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7660     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662     break 2
7663   fi
7664 done
7665   done
7666 IFS=$as_save_IFS
7667
7668 fi
7669 fi
7670 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7671 if test -n "$MANIFEST_TOOL"; then
7672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7673 $as_echo "$MANIFEST_TOOL" >&6; }
7674 else
7675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7677 fi
7678
7679
7680 fi
7681 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7682   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7683   # Extract the first word of "mt", so it can be a program name with args.
7684 set dummy mt; ac_word=$2
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7686 $as_echo_n "checking for $ac_word... " >&6; }
7687 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7688   $as_echo_n "(cached) " >&6
7689 else
7690   if test -n "$ac_ct_MANIFEST_TOOL"; then
7691   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7692 else
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 for as_dir in $PATH
7695 do
7696   IFS=$as_save_IFS
7697   test -z "$as_dir" && as_dir=.
7698     for ac_exec_ext in '' $ac_executable_extensions; do
7699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7700     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7702     break 2
7703   fi
7704 done
7705   done
7706 IFS=$as_save_IFS
7707
7708 fi
7709 fi
7710 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7711 if test -n "$ac_ct_MANIFEST_TOOL"; then
7712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7713 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7714 else
7715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7717 fi
7718
7719   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7720     MANIFEST_TOOL=":"
7721   else
7722     case $cross_compiling:$ac_tool_warned in
7723 yes:)
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7726 ac_tool_warned=yes ;;
7727 esac
7728     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7729   fi
7730 else
7731   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7732 fi
7733
7734 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7736 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7737 if ${lt_cv_path_mainfest_tool+:} false; then :
7738   $as_echo_n "(cached) " >&6
7739 else
7740   lt_cv_path_mainfest_tool=no
7741   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7742   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7743   cat conftest.err >&5
7744   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7745     lt_cv_path_mainfest_tool=yes
7746   fi
7747   rm -f conftest*
7748 fi
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7750 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7751 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7752   MANIFEST_TOOL=:
7753 fi
7754
7755
7756
7757
7758
7759
7760   case $host_os in
7761     rhapsody* | darwin*)
7762     if test -n "$ac_tool_prefix"; then
7763   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7764 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 $as_echo_n "checking for $ac_word... " >&6; }
7767 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7768   $as_echo_n "(cached) " >&6
7769 else
7770   if test -n "$DSYMUTIL"; then
7771   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7772 else
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7775 do
7776   IFS=$as_save_IFS
7777   test -z "$as_dir" && as_dir=.
7778     for ac_exec_ext in '' $ac_executable_extensions; do
7779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7780     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782     break 2
7783   fi
7784 done
7785   done
7786 IFS=$as_save_IFS
7787
7788 fi
7789 fi
7790 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7791 if test -n "$DSYMUTIL"; then
7792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7793 $as_echo "$DSYMUTIL" >&6; }
7794 else
7795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7797 fi
7798
7799
7800 fi
7801 if test -z "$ac_cv_prog_DSYMUTIL"; then
7802   ac_ct_DSYMUTIL=$DSYMUTIL
7803   # Extract the first word of "dsymutil", so it can be a program name with args.
7804 set dummy dsymutil; ac_word=$2
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806 $as_echo_n "checking for $ac_word... " >&6; }
7807 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7808   $as_echo_n "(cached) " >&6
7809 else
7810   if test -n "$ac_ct_DSYMUTIL"; then
7811   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7812 else
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7815 do
7816   IFS=$as_save_IFS
7817   test -z "$as_dir" && as_dir=.
7818     for ac_exec_ext in '' $ac_executable_extensions; do
7819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7820     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822     break 2
7823   fi
7824 done
7825   done
7826 IFS=$as_save_IFS
7827
7828 fi
7829 fi
7830 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7831 if test -n "$ac_ct_DSYMUTIL"; then
7832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7833 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7834 else
7835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7837 fi
7838
7839   if test "x$ac_ct_DSYMUTIL" = x; then
7840     DSYMUTIL=":"
7841   else
7842     case $cross_compiling:$ac_tool_warned in
7843 yes:)
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7846 ac_tool_warned=yes ;;
7847 esac
7848     DSYMUTIL=$ac_ct_DSYMUTIL
7849   fi
7850 else
7851   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7852 fi
7853
7854     if test -n "$ac_tool_prefix"; then
7855   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7856 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7858 $as_echo_n "checking for $ac_word... " >&6; }
7859 if ${ac_cv_prog_NMEDIT+:} false; then :
7860   $as_echo_n "(cached) " >&6
7861 else
7862   if test -n "$NMEDIT"; then
7863   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7864 else
7865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866 for as_dir in $PATH
7867 do
7868   IFS=$as_save_IFS
7869   test -z "$as_dir" && as_dir=.
7870     for ac_exec_ext in '' $ac_executable_extensions; do
7871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7872     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7874     break 2
7875   fi
7876 done
7877   done
7878 IFS=$as_save_IFS
7879
7880 fi
7881 fi
7882 NMEDIT=$ac_cv_prog_NMEDIT
7883 if test -n "$NMEDIT"; then
7884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7885 $as_echo "$NMEDIT" >&6; }
7886 else
7887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 $as_echo "no" >&6; }
7889 fi
7890
7891
7892 fi
7893 if test -z "$ac_cv_prog_NMEDIT"; then
7894   ac_ct_NMEDIT=$NMEDIT
7895   # Extract the first word of "nmedit", so it can be a program name with args.
7896 set dummy nmedit; ac_word=$2
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898 $as_echo_n "checking for $ac_word... " >&6; }
7899 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7900   $as_echo_n "(cached) " >&6
7901 else
7902   if test -n "$ac_ct_NMEDIT"; then
7903   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7904 else
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 for as_dir in $PATH
7907 do
7908   IFS=$as_save_IFS
7909   test -z "$as_dir" && as_dir=.
7910     for ac_exec_ext in '' $ac_executable_extensions; do
7911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914     break 2
7915   fi
7916 done
7917   done
7918 IFS=$as_save_IFS
7919
7920 fi
7921 fi
7922 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7923 if test -n "$ac_ct_NMEDIT"; then
7924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7925 $as_echo "$ac_ct_NMEDIT" >&6; }
7926 else
7927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 $as_echo "no" >&6; }
7929 fi
7930
7931   if test "x$ac_ct_NMEDIT" = x; then
7932     NMEDIT=":"
7933   else
7934     case $cross_compiling:$ac_tool_warned in
7935 yes:)
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7938 ac_tool_warned=yes ;;
7939 esac
7940     NMEDIT=$ac_ct_NMEDIT
7941   fi
7942 else
7943   NMEDIT="$ac_cv_prog_NMEDIT"
7944 fi
7945
7946     if test -n "$ac_tool_prefix"; then
7947   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7948 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7950 $as_echo_n "checking for $ac_word... " >&6; }
7951 if ${ac_cv_prog_LIPO+:} false; then :
7952   $as_echo_n "(cached) " >&6
7953 else
7954   if test -n "$LIPO"; then
7955   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7956 else
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 for as_dir in $PATH
7959 do
7960   IFS=$as_save_IFS
7961   test -z "$as_dir" && as_dir=.
7962     for ac_exec_ext in '' $ac_executable_extensions; do
7963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7964     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7966     break 2
7967   fi
7968 done
7969   done
7970 IFS=$as_save_IFS
7971
7972 fi
7973 fi
7974 LIPO=$ac_cv_prog_LIPO
7975 if test -n "$LIPO"; then
7976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7977 $as_echo "$LIPO" >&6; }
7978 else
7979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980 $as_echo "no" >&6; }
7981 fi
7982
7983
7984 fi
7985 if test -z "$ac_cv_prog_LIPO"; then
7986   ac_ct_LIPO=$LIPO
7987   # Extract the first word of "lipo", so it can be a program name with args.
7988 set dummy lipo; ac_word=$2
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 $as_echo_n "checking for $ac_word... " >&6; }
7991 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7992   $as_echo_n "(cached) " >&6
7993 else
7994   if test -n "$ac_ct_LIPO"; then
7995   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7996 else
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
7999 do
8000   IFS=$as_save_IFS
8001   test -z "$as_dir" && as_dir=.
8002     for ac_exec_ext in '' $ac_executable_extensions; do
8003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8004     ac_cv_prog_ac_ct_LIPO="lipo"
8005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8006     break 2
8007   fi
8008 done
8009   done
8010 IFS=$as_save_IFS
8011
8012 fi
8013 fi
8014 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8015 if test -n "$ac_ct_LIPO"; then
8016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8017 $as_echo "$ac_ct_LIPO" >&6; }
8018 else
8019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020 $as_echo "no" >&6; }
8021 fi
8022
8023   if test "x$ac_ct_LIPO" = x; then
8024     LIPO=":"
8025   else
8026     case $cross_compiling:$ac_tool_warned in
8027 yes:)
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8030 ac_tool_warned=yes ;;
8031 esac
8032     LIPO=$ac_ct_LIPO
8033   fi
8034 else
8035   LIPO="$ac_cv_prog_LIPO"
8036 fi
8037
8038     if test -n "$ac_tool_prefix"; then
8039   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8040 set dummy ${ac_tool_prefix}otool; ac_word=$2
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8042 $as_echo_n "checking for $ac_word... " >&6; }
8043 if ${ac_cv_prog_OTOOL+:} false; then :
8044   $as_echo_n "(cached) " >&6
8045 else
8046   if test -n "$OTOOL"; then
8047   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8048 else
8049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 for as_dir in $PATH
8051 do
8052   IFS=$as_save_IFS
8053   test -z "$as_dir" && as_dir=.
8054     for ac_exec_ext in '' $ac_executable_extensions; do
8055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8056     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8058     break 2
8059   fi
8060 done
8061   done
8062 IFS=$as_save_IFS
8063
8064 fi
8065 fi
8066 OTOOL=$ac_cv_prog_OTOOL
8067 if test -n "$OTOOL"; then
8068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8069 $as_echo "$OTOOL" >&6; }
8070 else
8071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072 $as_echo "no" >&6; }
8073 fi
8074
8075
8076 fi
8077 if test -z "$ac_cv_prog_OTOOL"; then
8078   ac_ct_OTOOL=$OTOOL
8079   # Extract the first word of "otool", so it can be a program name with args.
8080 set dummy otool; ac_word=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8084   $as_echo_n "(cached) " >&6
8085 else
8086   if test -n "$ac_ct_OTOOL"; then
8087   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8088 else
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8091 do
8092   IFS=$as_save_IFS
8093   test -z "$as_dir" && as_dir=.
8094     for ac_exec_ext in '' $ac_executable_extensions; do
8095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8096     ac_cv_prog_ac_ct_OTOOL="otool"
8097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098     break 2
8099   fi
8100 done
8101   done
8102 IFS=$as_save_IFS
8103
8104 fi
8105 fi
8106 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8107 if test -n "$ac_ct_OTOOL"; then
8108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8109 $as_echo "$ac_ct_OTOOL" >&6; }
8110 else
8111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 $as_echo "no" >&6; }
8113 fi
8114
8115   if test "x$ac_ct_OTOOL" = x; then
8116     OTOOL=":"
8117   else
8118     case $cross_compiling:$ac_tool_warned in
8119 yes:)
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8122 ac_tool_warned=yes ;;
8123 esac
8124     OTOOL=$ac_ct_OTOOL
8125   fi
8126 else
8127   OTOOL="$ac_cv_prog_OTOOL"
8128 fi
8129
8130     if test -n "$ac_tool_prefix"; then
8131   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8132 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if ${ac_cv_prog_OTOOL64+:} false; then :
8136   $as_echo_n "(cached) " >&6
8137 else
8138   if test -n "$OTOOL64"; then
8139   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8140 else
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8143 do
8144   IFS=$as_save_IFS
8145   test -z "$as_dir" && as_dir=.
8146     for ac_exec_ext in '' $ac_executable_extensions; do
8147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8148     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150     break 2
8151   fi
8152 done
8153   done
8154 IFS=$as_save_IFS
8155
8156 fi
8157 fi
8158 OTOOL64=$ac_cv_prog_OTOOL64
8159 if test -n "$OTOOL64"; then
8160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8161 $as_echo "$OTOOL64" >&6; }
8162 else
8163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8165 fi
8166
8167
8168 fi
8169 if test -z "$ac_cv_prog_OTOOL64"; then
8170   ac_ct_OTOOL64=$OTOOL64
8171   # Extract the first word of "otool64", so it can be a program name with args.
8172 set dummy otool64; ac_word=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8176   $as_echo_n "(cached) " >&6
8177 else
8178   if test -n "$ac_ct_OTOOL64"; then
8179   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8180 else
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8183 do
8184   IFS=$as_save_IFS
8185   test -z "$as_dir" && as_dir=.
8186     for ac_exec_ext in '' $ac_executable_extensions; do
8187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8188     ac_cv_prog_ac_ct_OTOOL64="otool64"
8189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190     break 2
8191   fi
8192 done
8193   done
8194 IFS=$as_save_IFS
8195
8196 fi
8197 fi
8198 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8199 if test -n "$ac_ct_OTOOL64"; then
8200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8201 $as_echo "$ac_ct_OTOOL64" >&6; }
8202 else
8203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8205 fi
8206
8207   if test "x$ac_ct_OTOOL64" = x; then
8208     OTOOL64=":"
8209   else
8210     case $cross_compiling:$ac_tool_warned in
8211 yes:)
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8214 ac_tool_warned=yes ;;
8215 esac
8216     OTOOL64=$ac_ct_OTOOL64
8217   fi
8218 else
8219   OTOOL64="$ac_cv_prog_OTOOL64"
8220 fi
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8249 $as_echo_n "checking for -single_module linker flag... " >&6; }
8250 if ${lt_cv_apple_cc_single_mod+:} false; then :
8251   $as_echo_n "(cached) " >&6
8252 else
8253   lt_cv_apple_cc_single_mod=no
8254       if test -z "${LT_MULTI_MODULE}"; then
8255         # By default we will add the -single_module flag. You can override
8256         # by either setting the environment variable LT_MULTI_MODULE
8257         # non-empty at configure time, or by adding -multi_module to the
8258         # link flags.
8259         rm -rf libconftest.dylib*
8260         echo "int foo(void){return 1;}" > conftest.c
8261         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8262 -dynamiclib -Wl,-single_module conftest.c" >&5
8263         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8264           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8265         _lt_result=$?
8266         # If there is a non-empty error log, and "single_module"
8267         # appears in it, assume the flag caused a linker warning
8268         if test -s conftest.err && $GREP single_module conftest.err; then
8269           cat conftest.err >&5
8270         # Otherwise, if the output was created with a 0 exit code from
8271         # the compiler, it worked.
8272         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8273           lt_cv_apple_cc_single_mod=yes
8274         else
8275           cat conftest.err >&5
8276         fi
8277         rm -rf libconftest.dylib*
8278         rm -f conftest.*
8279       fi
8280 fi
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8282 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8283
8284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8285 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8286 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8287   $as_echo_n "(cached) " >&6
8288 else
8289   lt_cv_ld_exported_symbols_list=no
8290       save_LDFLAGS=$LDFLAGS
8291       echo "_main" > conftest.sym
8292       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8293       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h.  */
8295
8296 int
8297 main ()
8298 {
8299
8300   ;
8301   return 0;
8302 }
8303 _ACEOF
8304 if ac_fn_c_try_link "$LINENO"; then :
8305   lt_cv_ld_exported_symbols_list=yes
8306 else
8307   lt_cv_ld_exported_symbols_list=no
8308 fi
8309 rm -f core conftest.err conftest.$ac_objext \
8310     conftest$ac_exeext conftest.$ac_ext
8311         LDFLAGS="$save_LDFLAGS"
8312
8313 fi
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8315 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8316
8317     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8318 $as_echo_n "checking for -force_load linker flag... " >&6; }
8319 if ${lt_cv_ld_force_load+:} false; then :
8320   $as_echo_n "(cached) " >&6
8321 else
8322   lt_cv_ld_force_load=no
8323       cat > conftest.c << _LT_EOF
8324 int forced_loaded() { return 2;}
8325 _LT_EOF
8326       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8327       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8328       echo "$AR cru libconftest.a conftest.o" >&5
8329       $AR cru libconftest.a conftest.o 2>&5
8330       echo "$RANLIB libconftest.a" >&5
8331       $RANLIB libconftest.a 2>&5
8332       cat > conftest.c << _LT_EOF
8333 int main() { return 0;}
8334 _LT_EOF
8335       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8336       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8337       _lt_result=$?
8338       if test -s conftest.err && $GREP force_load conftest.err; then
8339         cat conftest.err >&5
8340       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8341         lt_cv_ld_force_load=yes
8342       else
8343         cat conftest.err >&5
8344       fi
8345         rm -f conftest.err libconftest.a conftest conftest.c
8346         rm -rf conftest.dSYM
8347
8348 fi
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8350 $as_echo "$lt_cv_ld_force_load" >&6; }
8351     case $host_os in
8352     rhapsody* | darwin1.[012])
8353       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8354     darwin1.*)
8355       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8356     darwin*) # darwin 5.x on
8357       # if running on 10.5 or later, the deployment target defaults
8358       # to the OS version, if on x86, and 10.4, the deployment
8359       # target defaults to 10.4. Don't you love it?
8360       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8361         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8362           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8363         10.[012]*)
8364           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8365         10.*)
8366           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8367       esac
8368     ;;
8369   esac
8370     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8371       _lt_dar_single_mod='$single_module'
8372     fi
8373     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8374       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8375     else
8376       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8377     fi
8378     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8379       _lt_dsymutil='~$DSYMUTIL $lib || :'
8380     else
8381       _lt_dsymutil=
8382     fi
8383     ;;
8384   esac
8385
8386 ac_ext=c
8387 ac_cpp='$CPP $CPPFLAGS'
8388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8392 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8393 # On Suns, sometimes $CPP names a directory.
8394 if test -n "$CPP" && test -d "$CPP"; then
8395   CPP=
8396 fi
8397 if test -z "$CPP"; then
8398   if ${ac_cv_prog_CPP+:} false; then :
8399   $as_echo_n "(cached) " >&6
8400 else
8401       # Double quotes because CPP needs to be expanded
8402     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8403     do
8404       ac_preproc_ok=false
8405 for ac_c_preproc_warn_flag in '' yes
8406 do
8407   # Use a header file that comes with gcc, so configuring glibc
8408   # with a fresh cross-compiler works.
8409   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8410   # <limits.h> exists even on freestanding compilers.
8411   # On the NeXT, cc -E runs the code through the compiler's parser,
8412   # not just through cpp. "Syntax error" is here to catch this case.
8413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h.  */
8415 #ifdef __STDC__
8416 # include <limits.h>
8417 #else
8418 # include <assert.h>
8419 #endif
8420                      Syntax error
8421 _ACEOF
8422 if ac_fn_c_try_cpp "$LINENO"; then :
8423
8424 else
8425   # Broken: fails on valid input.
8426 continue
8427 fi
8428 rm -f conftest.err conftest.i conftest.$ac_ext
8429
8430   # OK, works on sane cases.  Now check whether nonexistent headers
8431   # can be detected and how.
8432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h.  */
8434 #include <ac_nonexistent.h>
8435 _ACEOF
8436 if ac_fn_c_try_cpp "$LINENO"; then :
8437   # Broken: success on invalid input.
8438 continue
8439 else
8440   # Passes both tests.
8441 ac_preproc_ok=:
8442 break
8443 fi
8444 rm -f conftest.err conftest.i conftest.$ac_ext
8445
8446 done
8447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8448 rm -f conftest.i conftest.err conftest.$ac_ext
8449 if $ac_preproc_ok; then :
8450   break
8451 fi
8452
8453     done
8454     ac_cv_prog_CPP=$CPP
8455
8456 fi
8457   CPP=$ac_cv_prog_CPP
8458 else
8459   ac_cv_prog_CPP=$CPP
8460 fi
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8462 $as_echo "$CPP" >&6; }
8463 ac_preproc_ok=false
8464 for ac_c_preproc_warn_flag in '' yes
8465 do
8466   # Use a header file that comes with gcc, so configuring glibc
8467   # with a fresh cross-compiler works.
8468   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8469   # <limits.h> exists even on freestanding compilers.
8470   # On the NeXT, cc -E runs the code through the compiler's parser,
8471   # not just through cpp. "Syntax error" is here to catch this case.
8472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h.  */
8474 #ifdef __STDC__
8475 # include <limits.h>
8476 #else
8477 # include <assert.h>
8478 #endif
8479                      Syntax error
8480 _ACEOF
8481 if ac_fn_c_try_cpp "$LINENO"; then :
8482
8483 else
8484   # Broken: fails on valid input.
8485 continue
8486 fi
8487 rm -f conftest.err conftest.i conftest.$ac_ext
8488
8489   # OK, works on sane cases.  Now check whether nonexistent headers
8490   # can be detected and how.
8491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h.  */
8493 #include <ac_nonexistent.h>
8494 _ACEOF
8495 if ac_fn_c_try_cpp "$LINENO"; then :
8496   # Broken: success on invalid input.
8497 continue
8498 else
8499   # Passes both tests.
8500 ac_preproc_ok=:
8501 break
8502 fi
8503 rm -f conftest.err conftest.i conftest.$ac_ext
8504
8505 done
8506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8507 rm -f conftest.i conftest.err conftest.$ac_ext
8508 if $ac_preproc_ok; then :
8509
8510 else
8511   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8513 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8514 See \`config.log' for more details" "$LINENO" 5; }
8515 fi
8516
8517 ac_ext=c
8518 ac_cpp='$CPP $CPPFLAGS'
8519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8522
8523
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8525 $as_echo_n "checking for ANSI C header files... " >&6; }
8526 if ${ac_cv_header_stdc+:} false; then :
8527   $as_echo_n "(cached) " >&6
8528 else
8529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530 /* end confdefs.h.  */
8531 #include <stdlib.h>
8532 #include <stdarg.h>
8533 #include <string.h>
8534 #include <float.h>
8535
8536 int
8537 main ()
8538 {
8539
8540   ;
8541   return 0;
8542 }
8543 _ACEOF
8544 if ac_fn_c_try_compile "$LINENO"; then :
8545   ac_cv_header_stdc=yes
8546 else
8547   ac_cv_header_stdc=no
8548 fi
8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8550
8551 if test $ac_cv_header_stdc = yes; then
8552   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h.  */
8555 #include <string.h>
8556
8557 _ACEOF
8558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8559   $EGREP "memchr" >/dev/null 2>&1; then :
8560
8561 else
8562   ac_cv_header_stdc=no
8563 fi
8564 rm -f conftest*
8565
8566 fi
8567
8568 if test $ac_cv_header_stdc = yes; then
8569   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h.  */
8572 #include <stdlib.h>
8573
8574 _ACEOF
8575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8576   $EGREP "free" >/dev/null 2>&1; then :
8577
8578 else
8579   ac_cv_header_stdc=no
8580 fi
8581 rm -f conftest*
8582
8583 fi
8584
8585 if test $ac_cv_header_stdc = yes; then
8586   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8587   if test "$cross_compiling" = yes; then :
8588   :
8589 else
8590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h.  */
8592 #include <ctype.h>
8593 #include <stdlib.h>
8594 #if ((' ' & 0x0FF) == 0x020)
8595 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8596 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8597 #else
8598 # define ISLOWER(c) \
8599                    (('a' <= (c) && (c) <= 'i') \
8600                      || ('j' <= (c) && (c) <= 'r') \
8601                      || ('s' <= (c) && (c) <= 'z'))
8602 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8603 #endif
8604
8605 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8606 int
8607 main ()
8608 {
8609   int i;
8610   for (i = 0; i < 256; i++)
8611     if (XOR (islower (i), ISLOWER (i))
8612         || toupper (i) != TOUPPER (i))
8613       return 2;
8614   return 0;
8615 }
8616 _ACEOF
8617 if ac_fn_c_try_run "$LINENO"; then :
8618
8619 else
8620   ac_cv_header_stdc=no
8621 fi
8622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8623   conftest.$ac_objext conftest.beam conftest.$ac_ext
8624 fi
8625
8626 fi
8627 fi
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8629 $as_echo "$ac_cv_header_stdc" >&6; }
8630 if test $ac_cv_header_stdc = yes; then
8631
8632 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8633
8634 fi
8635
8636 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8637 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8638                   inttypes.h stdint.h unistd.h
8639 do :
8640   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8641 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8642 "
8643 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8644   cat >>confdefs.h <<_ACEOF
8645 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8646 _ACEOF
8647
8648 fi
8649
8650 done
8651
8652
8653 for ac_header in dlfcn.h
8654 do :
8655   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8656 "
8657 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8658   cat >>confdefs.h <<_ACEOF
8659 #define HAVE_DLFCN_H 1
8660 _ACEOF
8661
8662 fi
8663
8664 done
8665
8666
8667
8668
8669
8670 # Set options
8671
8672
8673
8674
8675   enable_win32_dll=no
8676
8677
8678             # Check whether --enable-shared was given.
8679 if test "${enable_shared+set}" = set; then :
8680   enableval=$enable_shared; p=${PACKAGE-default}
8681     case $enableval in
8682     yes) enable_shared=yes ;;
8683     no) enable_shared=no ;;
8684     *)
8685       enable_shared=no
8686       # Look at the argument we got.  We use all the common list separators.
8687       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8688       for pkg in $enableval; do
8689         IFS="$lt_save_ifs"
8690         if test "X$pkg" = "X$p"; then
8691           enable_shared=yes
8692         fi
8693       done
8694       IFS="$lt_save_ifs"
8695       ;;
8696     esac
8697 else
8698   enable_shared=yes
8699 fi
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709   # Check whether --enable-static was given.
8710 if test "${enable_static+set}" = set; then :
8711   enableval=$enable_static; p=${PACKAGE-default}
8712     case $enableval in
8713     yes) enable_static=yes ;;
8714     no) enable_static=no ;;
8715     *)
8716      enable_static=no
8717       # Look at the argument we got.  We use all the common list separators.
8718       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8719       for pkg in $enableval; do
8720         IFS="$lt_save_ifs"
8721         if test "X$pkg" = "X$p"; then
8722           enable_static=yes
8723         fi
8724       done
8725       IFS="$lt_save_ifs"
8726       ;;
8727     esac
8728 else
8729   enable_static=yes
8730 fi
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741 # Check whether --with-pic was given.
8742 if test "${with_pic+set}" = set; then :
8743   withval=$with_pic; lt_p=${PACKAGE-default}
8744     case $withval in
8745     yes|no) pic_mode=$withval ;;
8746     *)
8747       pic_mode=default
8748       # Look at the argument we got.  We use all the common list separators.
8749       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8750       for lt_pkg in $withval; do
8751         IFS="$lt_save_ifs"
8752         if test "X$lt_pkg" = "X$lt_p"; then
8753           pic_mode=yes
8754         fi
8755       done
8756       IFS="$lt_save_ifs"
8757       ;;
8758     esac
8759 else
8760   pic_mode=default
8761 fi
8762
8763
8764 test -z "$pic_mode" && pic_mode=default
8765
8766
8767
8768
8769
8770
8771
8772   # Check whether --enable-fast-install was given.
8773 if test "${enable_fast_install+set}" = set; then :
8774   enableval=$enable_fast_install; p=${PACKAGE-default}
8775     case $enableval in
8776     yes) enable_fast_install=yes ;;
8777     no) enable_fast_install=no ;;
8778     *)
8779       enable_fast_install=no
8780       # Look at the argument we got.  We use all the common list separators.
8781       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8782       for pkg in $enableval; do
8783         IFS="$lt_save_ifs"
8784         if test "X$pkg" = "X$p"; then
8785           enable_fast_install=yes
8786         fi
8787       done
8788       IFS="$lt_save_ifs"
8789       ;;
8790     esac
8791 else
8792   enable_fast_install=yes
8793 fi
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805 # This can be used to rebuild libtool when needed
8806 LIBTOOL_DEPS="$ltmain"
8807
8808 # Always use our own libtool.
8809 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840 test -z "$LN_S" && LN_S="ln -s"
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855 if test -n "${ZSH_VERSION+set}" ; then
8856    setopt NO_GLOB_SUBST
8857 fi
8858
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8860 $as_echo_n "checking for objdir... " >&6; }
8861 if ${lt_cv_objdir+:} false; then :
8862   $as_echo_n "(cached) " >&6
8863 else
8864   rm -f .libs 2>/dev/null
8865 mkdir .libs 2>/dev/null
8866 if test -d .libs; then
8867   lt_cv_objdir=.libs
8868 else
8869   # MS-DOS does not allow filenames that begin with a dot.
8870   lt_cv_objdir=_libs
8871 fi
8872 rmdir .libs 2>/dev/null
8873 fi
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8875 $as_echo "$lt_cv_objdir" >&6; }
8876 objdir=$lt_cv_objdir
8877
8878
8879
8880
8881
8882 cat >>confdefs.h <<_ACEOF
8883 #define LT_OBJDIR "$lt_cv_objdir/"
8884 _ACEOF
8885
8886
8887
8888
8889 case $host_os in
8890 aix3*)
8891   # AIX sometimes has problems with the GCC collect2 program.  For some
8892   # reason, if we set the COLLECT_NAMES environment variable, the problems
8893   # vanish in a puff of smoke.
8894   if test "X${COLLECT_NAMES+set}" != Xset; then
8895     COLLECT_NAMES=
8896     export COLLECT_NAMES
8897   fi
8898   ;;
8899 esac
8900
8901 # Global variables:
8902 ofile=libtool
8903 can_build_shared=yes
8904
8905 # All known linkers require a `.a' archive for static linking (except MSVC,
8906 # which needs '.lib').
8907 libext=a
8908
8909 with_gnu_ld="$lt_cv_prog_gnu_ld"
8910
8911 old_CC="$CC"
8912 old_CFLAGS="$CFLAGS"
8913
8914 # Set sane defaults for various variables
8915 test -z "$CC" && CC=cc
8916 test -z "$LTCC" && LTCC=$CC
8917 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8918 test -z "$LD" && LD=ld
8919 test -z "$ac_objext" && ac_objext=o
8920
8921 for cc_temp in $compiler""; do
8922   case $cc_temp in
8923     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8924     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8925     \-*) ;;
8926     *) break;;
8927   esac
8928 done
8929 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8930
8931
8932 # Only perform the check for file, if the check method requires it
8933 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8934 case $deplibs_check_method in
8935 file_magic*)
8936   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8938 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8939 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8940   $as_echo_n "(cached) " >&6
8941 else
8942   case $MAGIC_CMD in
8943 [\\/*] |  ?:[\\/]*)
8944   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8945   ;;
8946 *)
8947   lt_save_MAGIC_CMD="$MAGIC_CMD"
8948   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8949   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8950   for ac_dir in $ac_dummy; do
8951     IFS="$lt_save_ifs"
8952     test -z "$ac_dir" && ac_dir=.
8953     if test -f $ac_dir/${ac_tool_prefix}file; then
8954       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8955       if test -n "$file_magic_test_file"; then
8956         case $deplibs_check_method in
8957         "file_magic "*)
8958           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8959           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8960           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8961             $EGREP "$file_magic_regex" > /dev/null; then
8962             :
8963           else
8964             cat <<_LT_EOF 1>&2
8965
8966 *** Warning: the command libtool uses to detect shared libraries,
8967 *** $file_magic_cmd, produces output that libtool cannot recognize.
8968 *** The result is that libtool may fail to recognize shared libraries
8969 *** as such.  This will affect the creation of libtool libraries that
8970 *** depend on shared libraries, but programs linked with such libtool
8971 *** libraries will work regardless of this problem.  Nevertheless, you
8972 *** may want to report the problem to your system manager and/or to
8973 *** bug-libtool@gnu.org
8974
8975 _LT_EOF
8976           fi ;;
8977         esac
8978       fi
8979       break
8980     fi
8981   done
8982   IFS="$lt_save_ifs"
8983   MAGIC_CMD="$lt_save_MAGIC_CMD"
8984   ;;
8985 esac
8986 fi
8987
8988 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8989 if test -n "$MAGIC_CMD"; then
8990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8991 $as_echo "$MAGIC_CMD" >&6; }
8992 else
8993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994 $as_echo "no" >&6; }
8995 fi
8996
8997
8998
8999
9000
9001 if test -z "$lt_cv_path_MAGIC_CMD"; then
9002   if test -n "$ac_tool_prefix"; then
9003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9004 $as_echo_n "checking for file... " >&6; }
9005 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9006   $as_echo_n "(cached) " >&6
9007 else
9008   case $MAGIC_CMD in
9009 [\\/*] |  ?:[\\/]*)
9010   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9011   ;;
9012 *)
9013   lt_save_MAGIC_CMD="$MAGIC_CMD"
9014   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9015   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9016   for ac_dir in $ac_dummy; do
9017     IFS="$lt_save_ifs"
9018     test -z "$ac_dir" && ac_dir=.
9019     if test -f $ac_dir/file; then
9020       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9021       if test -n "$file_magic_test_file"; then
9022         case $deplibs_check_method in
9023         "file_magic "*)
9024           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9025           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9026           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9027             $EGREP "$file_magic_regex" > /dev/null; then
9028             :
9029           else
9030             cat <<_LT_EOF 1>&2
9031
9032 *** Warning: the command libtool uses to detect shared libraries,
9033 *** $file_magic_cmd, produces output that libtool cannot recognize.
9034 *** The result is that libtool may fail to recognize shared libraries
9035 *** as such.  This will affect the creation of libtool libraries that
9036 *** depend on shared libraries, but programs linked with such libtool
9037 *** libraries will work regardless of this problem.  Nevertheless, you
9038 *** may want to report the problem to your system manager and/or to
9039 *** bug-libtool@gnu.org
9040
9041 _LT_EOF
9042           fi ;;
9043         esac
9044       fi
9045       break
9046     fi
9047   done
9048   IFS="$lt_save_ifs"
9049   MAGIC_CMD="$lt_save_MAGIC_CMD"
9050   ;;
9051 esac
9052 fi
9053
9054 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9055 if test -n "$MAGIC_CMD"; then
9056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9057 $as_echo "$MAGIC_CMD" >&6; }
9058 else
9059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060 $as_echo "no" >&6; }
9061 fi
9062
9063
9064   else
9065     MAGIC_CMD=:
9066   fi
9067 fi
9068
9069   fi
9070   ;;
9071 esac
9072
9073 # Use C for the default configuration in the libtool script
9074
9075 lt_save_CC="$CC"
9076 ac_ext=c
9077 ac_cpp='$CPP $CPPFLAGS'
9078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9081
9082
9083 # Source file extension for C test sources.
9084 ac_ext=c
9085
9086 # Object file extension for compiled C test sources.
9087 objext=o
9088 objext=$objext
9089
9090 # Code to be used in simple compile tests
9091 lt_simple_compile_test_code="int some_variable = 0;"
9092
9093 # Code to be used in simple link tests
9094 lt_simple_link_test_code='int main(){return(0);}'
9095
9096
9097
9098
9099
9100
9101
9102 # If no C compiler was specified, use CC.
9103 LTCC=${LTCC-"$CC"}
9104
9105 # If no C compiler flags were specified, use CFLAGS.
9106 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9107
9108 # Allow CC to be a program name with arguments.
9109 compiler=$CC
9110
9111 # Save the default compiler, since it gets overwritten when the other
9112 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9113 compiler_DEFAULT=$CC
9114
9115 # save warnings/boilerplate of simple test code
9116 ac_outfile=conftest.$ac_objext
9117 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9118 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9119 _lt_compiler_boilerplate=`cat conftest.err`
9120 $RM conftest*
9121
9122 ac_outfile=conftest.$ac_objext
9123 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9124 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9125 _lt_linker_boilerplate=`cat conftest.err`
9126 $RM -r conftest*
9127
9128
9129 ## CAVEAT EMPTOR:
9130 ## There is no encapsulation within the following macros, do not change
9131 ## the running order or otherwise move them around unless you know exactly
9132 ## what you are doing...
9133 if test -n "$compiler"; then
9134
9135 lt_prog_compiler_no_builtin_flag=
9136
9137 if test "$GCC" = yes; then
9138   case $cc_basename in
9139   nvcc*)
9140     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9141   *)
9142     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9143   esac
9144
9145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9146 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9147 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9148   $as_echo_n "(cached) " >&6
9149 else
9150   lt_cv_prog_compiler_rtti_exceptions=no
9151    ac_outfile=conftest.$ac_objext
9152    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9153    lt_compiler_flag="-fno-rtti -fno-exceptions"
9154    # Insert the option either (1) after the last *FLAGS variable, or
9155    # (2) before a word containing "conftest.", or (3) at the end.
9156    # Note that $ac_compile itself does not contain backslashes and begins
9157    # with a dollar sign (not a hyphen), so the echo should work correctly.
9158    # The option is referenced via a variable to avoid confusing sed.
9159    lt_compile=`echo "$ac_compile" | $SED \
9160    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9161    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9162    -e 's:$: $lt_compiler_flag:'`
9163    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9164    (eval "$lt_compile" 2>conftest.err)
9165    ac_status=$?
9166    cat conftest.err >&5
9167    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168    if (exit $ac_status) && test -s "$ac_outfile"; then
9169      # The compiler can only warn and ignore the option if not recognized
9170      # So say no if there are warnings other than the usual output.
9171      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9172      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9173      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9174        lt_cv_prog_compiler_rtti_exceptions=yes
9175      fi
9176    fi
9177    $RM conftest*
9178
9179 fi
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9181 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9182
9183 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9184     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9185 else
9186     :
9187 fi
9188
9189 fi
9190
9191
9192
9193
9194
9195
9196   lt_prog_compiler_wl=
9197 lt_prog_compiler_pic=
9198 lt_prog_compiler_static=
9199
9200
9201   if test "$GCC" = yes; then
9202     lt_prog_compiler_wl='-Wl,'
9203     lt_prog_compiler_static='-static'
9204
9205     case $host_os in
9206       aix*)
9207       # All AIX code is PIC.
9208       if test "$host_cpu" = ia64; then
9209         # AIX 5 now supports IA64 processor
9210         lt_prog_compiler_static='-Bstatic'
9211       fi
9212       ;;
9213
9214     amigaos*)
9215       case $host_cpu in
9216       powerpc)
9217             # see comment about AmigaOS4 .so support
9218             lt_prog_compiler_pic='-fPIC'
9219         ;;
9220       m68k)
9221             # FIXME: we need at least 68020 code to build shared libraries, but
9222             # adding the `-m68020' flag to GCC prevents building anything better,
9223             # like `-m68040'.
9224             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9225         ;;
9226       esac
9227       ;;
9228
9229     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9230       # PIC is the default for these OSes.
9231       ;;
9232
9233     mingw* | cygwin* | pw32* | os2* | cegcc*)
9234       # This hack is so that the source file can tell whether it is being
9235       # built for inclusion in a dll (and should export symbols for example).
9236       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9237       # (--disable-auto-import) libraries
9238       lt_prog_compiler_pic='-DDLL_EXPORT'
9239       ;;
9240
9241     darwin* | rhapsody*)
9242       # PIC is the default on this platform
9243       # Common symbols not allowed in MH_DYLIB files
9244       lt_prog_compiler_pic='-fno-common'
9245       ;;
9246
9247     haiku*)
9248       # PIC is the default for Haiku.
9249       # The "-static" flag exists, but is broken.
9250       lt_prog_compiler_static=
9251       ;;
9252
9253     hpux*)
9254       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9255       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9256       # sets the default TLS model and affects inlining.
9257       case $host_cpu in
9258       hppa*64*)
9259         # +Z the default
9260         ;;
9261       *)
9262         lt_prog_compiler_pic='-fPIC'
9263         ;;
9264       esac
9265       ;;
9266
9267     interix[3-9]*)
9268       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9269       # Instead, we relocate shared libraries at runtime.
9270       ;;
9271
9272     msdosdjgpp*)
9273       # Just because we use GCC doesn't mean we suddenly get shared libraries
9274       # on systems that don't support them.
9275       lt_prog_compiler_can_build_shared=no
9276       enable_shared=no
9277       ;;
9278
9279     *nto* | *qnx*)
9280       # QNX uses GNU C++, but need to define -shared option too, otherwise
9281       # it will coredump.
9282       lt_prog_compiler_pic='-fPIC -shared'
9283       ;;
9284
9285     sysv4*MP*)
9286       if test -d /usr/nec; then
9287         lt_prog_compiler_pic=-Kconform_pic
9288       fi
9289       ;;
9290
9291     *)
9292       lt_prog_compiler_pic='-fPIC'
9293       ;;
9294     esac
9295
9296     case $cc_basename in
9297     nvcc*) # Cuda Compiler Driver 2.2
9298       lt_prog_compiler_wl='-Xlinker '
9299       if test -n "$lt_prog_compiler_pic"; then
9300         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9301       fi
9302       ;;
9303     esac
9304   else
9305     # PORTME Check for flag to pass linker flags through the system compiler.
9306     case $host_os in
9307     aix*)
9308       lt_prog_compiler_wl='-Wl,'
9309       if test "$host_cpu" = ia64; then
9310         # AIX 5 now supports IA64 processor
9311         lt_prog_compiler_static='-Bstatic'
9312       else
9313         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9314       fi
9315       ;;
9316
9317     mingw* | cygwin* | pw32* | os2* | cegcc*)
9318       # This hack is so that the source file can tell whether it is being
9319       # built for inclusion in a dll (and should export symbols for example).
9320       lt_prog_compiler_pic='-DDLL_EXPORT'
9321       ;;
9322
9323     hpux9* | hpux10* | hpux11*)
9324       lt_prog_compiler_wl='-Wl,'
9325       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9326       # not for PA HP-UX.
9327       case $host_cpu in
9328       hppa*64*|ia64*)
9329         # +Z the default
9330         ;;
9331       *)
9332         lt_prog_compiler_pic='+Z'
9333         ;;
9334       esac
9335       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9336       lt_prog_compiler_static='${wl}-a ${wl}archive'
9337       ;;
9338
9339     irix5* | irix6* | nonstopux*)
9340       lt_prog_compiler_wl='-Wl,'
9341       # PIC (with -KPIC) is the default.
9342       lt_prog_compiler_static='-non_shared'
9343       ;;
9344
9345     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9346       case $cc_basename in
9347       # old Intel for x86_64 which still supported -KPIC.
9348       ecc*)
9349         lt_prog_compiler_wl='-Wl,'
9350         lt_prog_compiler_pic='-KPIC'
9351         lt_prog_compiler_static='-static'
9352         ;;
9353       # icc used to be incompatible with GCC.
9354       # ICC 10 doesn't accept -KPIC any more.
9355       icc* | ifort*)
9356         lt_prog_compiler_wl='-Wl,'
9357         lt_prog_compiler_pic='-fPIC'
9358         lt_prog_compiler_static='-static'
9359         ;;
9360       # Lahey Fortran 8.1.
9361       lf95*)
9362         lt_prog_compiler_wl='-Wl,'
9363         lt_prog_compiler_pic='--shared'
9364         lt_prog_compiler_static='--static'
9365         ;;
9366       nagfor*)
9367         # NAG Fortran compiler
9368         lt_prog_compiler_wl='-Wl,-Wl,,'
9369         lt_prog_compiler_pic='-PIC'
9370         lt_prog_compiler_static='-Bstatic'
9371         ;;
9372       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9373         # Portland Group compilers (*not* the Pentium gcc compiler,
9374         # which looks to be a dead project)
9375         lt_prog_compiler_wl='-Wl,'
9376         lt_prog_compiler_pic='-fpic'
9377         lt_prog_compiler_static='-Bstatic'
9378         ;;
9379       ccc*)
9380         lt_prog_compiler_wl='-Wl,'
9381         # All Alpha code is PIC.
9382         lt_prog_compiler_static='-non_shared'
9383         ;;
9384       xl* | bgxl* | bgf* | mpixl*)
9385         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9386         lt_prog_compiler_wl='-Wl,'
9387         lt_prog_compiler_pic='-qpic'
9388         lt_prog_compiler_static='-qstaticlink'
9389         ;;
9390       *)
9391         case `$CC -V 2>&1 | sed 5q` in
9392         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9393           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9394           lt_prog_compiler_pic='-KPIC'
9395           lt_prog_compiler_static='-Bstatic'
9396           lt_prog_compiler_wl=''
9397           ;;
9398         *Sun\ F* | *Sun*Fortran*)
9399           lt_prog_compiler_pic='-KPIC'
9400           lt_prog_compiler_static='-Bstatic'
9401           lt_prog_compiler_wl='-Qoption ld '
9402           ;;
9403         *Sun\ C*)
9404           # Sun C 5.9
9405           lt_prog_compiler_pic='-KPIC'
9406           lt_prog_compiler_static='-Bstatic'
9407           lt_prog_compiler_wl='-Wl,'
9408           ;;
9409         *Intel*\ [CF]*Compiler*)
9410           lt_prog_compiler_wl='-Wl,'
9411           lt_prog_compiler_pic='-fPIC'
9412           lt_prog_compiler_static='-static'
9413           ;;
9414         *Portland\ Group*)
9415           lt_prog_compiler_wl='-Wl,'
9416           lt_prog_compiler_pic='-fpic'
9417           lt_prog_compiler_static='-Bstatic'
9418           ;;
9419         esac
9420         ;;
9421       esac
9422       ;;
9423
9424     newsos6)
9425       lt_prog_compiler_pic='-KPIC'
9426       lt_prog_compiler_static='-Bstatic'
9427       ;;
9428
9429     *nto* | *qnx*)
9430       # QNX uses GNU C++, but need to define -shared option too, otherwise
9431       # it will coredump.
9432       lt_prog_compiler_pic='-fPIC -shared'
9433       ;;
9434
9435     osf3* | osf4* | osf5*)
9436       lt_prog_compiler_wl='-Wl,'
9437       # All OSF/1 code is PIC.
9438       lt_prog_compiler_static='-non_shared'
9439       ;;
9440
9441     rdos*)
9442       lt_prog_compiler_static='-non_shared'
9443       ;;
9444
9445     solaris*)
9446       lt_prog_compiler_pic='-KPIC'
9447       lt_prog_compiler_static='-Bstatic'
9448       case $cc_basename in
9449       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9450         lt_prog_compiler_wl='-Qoption ld ';;
9451       *)
9452         lt_prog_compiler_wl='-Wl,';;
9453       esac
9454       ;;
9455
9456     sunos4*)
9457       lt_prog_compiler_wl='-Qoption ld '
9458       lt_prog_compiler_pic='-PIC'
9459       lt_prog_compiler_static='-Bstatic'
9460       ;;
9461
9462     sysv4 | sysv4.2uw2* | sysv4.3*)
9463       lt_prog_compiler_wl='-Wl,'
9464       lt_prog_compiler_pic='-KPIC'
9465       lt_prog_compiler_static='-Bstatic'
9466       ;;
9467
9468     sysv4*MP*)
9469       if test -d /usr/nec ;then
9470         lt_prog_compiler_pic='-Kconform_pic'
9471         lt_prog_compiler_static='-Bstatic'
9472       fi
9473       ;;
9474
9475     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9476       lt_prog_compiler_wl='-Wl,'
9477       lt_prog_compiler_pic='-KPIC'
9478       lt_prog_compiler_static='-Bstatic'
9479       ;;
9480
9481     unicos*)
9482       lt_prog_compiler_wl='-Wl,'
9483       lt_prog_compiler_can_build_shared=no
9484       ;;
9485
9486     uts4*)
9487       lt_prog_compiler_pic='-pic'
9488       lt_prog_compiler_static='-Bstatic'
9489       ;;
9490
9491     *)
9492       lt_prog_compiler_can_build_shared=no
9493       ;;
9494     esac
9495   fi
9496
9497 case $host_os in
9498   # For platforms which do not support PIC, -DPIC is meaningless:
9499   *djgpp*)
9500     lt_prog_compiler_pic=
9501     ;;
9502   *)
9503     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9504     ;;
9505 esac
9506
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9508 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9509 if ${lt_cv_prog_compiler_pic+:} false; then :
9510   $as_echo_n "(cached) " >&6
9511 else
9512   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9513 fi
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9515 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9516 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9517
9518 #
9519 # Check to make sure the PIC flag actually works.
9520 #
9521 if test -n "$lt_prog_compiler_pic"; then
9522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9523 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9524 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9525   $as_echo_n "(cached) " >&6
9526 else
9527   lt_cv_prog_compiler_pic_works=no
9528    ac_outfile=conftest.$ac_objext
9529    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9530    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9531    # Insert the option either (1) after the last *FLAGS variable, or
9532    # (2) before a word containing "conftest.", or (3) at the end.
9533    # Note that $ac_compile itself does not contain backslashes and begins
9534    # with a dollar sign (not a hyphen), so the echo should work correctly.
9535    # The option is referenced via a variable to avoid confusing sed.
9536    lt_compile=`echo "$ac_compile" | $SED \
9537    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9538    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9539    -e 's:$: $lt_compiler_flag:'`
9540    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9541    (eval "$lt_compile" 2>conftest.err)
9542    ac_status=$?
9543    cat conftest.err >&5
9544    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545    if (exit $ac_status) && test -s "$ac_outfile"; then
9546      # The compiler can only warn and ignore the option if not recognized
9547      # So say no if there are warnings other than the usual output.
9548      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9549      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9550      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9551        lt_cv_prog_compiler_pic_works=yes
9552      fi
9553    fi
9554    $RM conftest*
9555
9556 fi
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9558 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9559
9560 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9561     case $lt_prog_compiler_pic in
9562      "" | " "*) ;;
9563      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9564      esac
9565 else
9566     lt_prog_compiler_pic=
9567      lt_prog_compiler_can_build_shared=no
9568 fi
9569
9570 fi
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582 #
9583 # Check to make sure the static flag actually works.
9584 #
9585 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9587 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9588 if ${lt_cv_prog_compiler_static_works+:} false; then :
9589   $as_echo_n "(cached) " >&6
9590 else
9591   lt_cv_prog_compiler_static_works=no
9592    save_LDFLAGS="$LDFLAGS"
9593    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9594    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9595    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9596      # The linker can only warn and ignore the option if not recognized
9597      # So say no if there are warnings
9598      if test -s conftest.err; then
9599        # Append any errors to the config.log.
9600        cat conftest.err 1>&5
9601        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9602        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9603        if diff conftest.exp conftest.er2 >/dev/null; then
9604          lt_cv_prog_compiler_static_works=yes
9605        fi
9606      else
9607        lt_cv_prog_compiler_static_works=yes
9608      fi
9609    fi
9610    $RM -r conftest*
9611    LDFLAGS="$save_LDFLAGS"
9612
9613 fi
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9615 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9616
9617 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9618     :
9619 else
9620     lt_prog_compiler_static=
9621 fi
9622
9623
9624
9625
9626
9627
9628
9629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9630 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9631 if ${lt_cv_prog_compiler_c_o+:} false; then :
9632   $as_echo_n "(cached) " >&6
9633 else
9634   lt_cv_prog_compiler_c_o=no
9635    $RM -r conftest 2>/dev/null
9636    mkdir conftest
9637    cd conftest
9638    mkdir out
9639    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9640
9641    lt_compiler_flag="-o out/conftest2.$ac_objext"
9642    # Insert the option either (1) after the last *FLAGS variable, or
9643    # (2) before a word containing "conftest.", or (3) at the end.
9644    # Note that $ac_compile itself does not contain backslashes and begins
9645    # with a dollar sign (not a hyphen), so the echo should work correctly.
9646    lt_compile=`echo "$ac_compile" | $SED \
9647    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9648    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9649    -e 's:$: $lt_compiler_flag:'`
9650    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9651    (eval "$lt_compile" 2>out/conftest.err)
9652    ac_status=$?
9653    cat out/conftest.err >&5
9654    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9656    then
9657      # The compiler can only warn and ignore the option if not recognized
9658      # So say no if there are warnings
9659      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9660      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9661      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9662        lt_cv_prog_compiler_c_o=yes
9663      fi
9664    fi
9665    chmod u+w . 2>&5
9666    $RM conftest*
9667    # SGI C++ compiler will create directory out/ii_files/ for
9668    # template instantiation
9669    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9670    $RM out/* && rmdir out
9671    cd ..
9672    $RM -r conftest
9673    $RM conftest*
9674
9675 fi
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9677 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9678
9679
9680
9681
9682
9683
9684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9685 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9686 if ${lt_cv_prog_compiler_c_o+:} false; then :
9687   $as_echo_n "(cached) " >&6
9688 else
9689   lt_cv_prog_compiler_c_o=no
9690    $RM -r conftest 2>/dev/null
9691    mkdir conftest
9692    cd conftest
9693    mkdir out
9694    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9695
9696    lt_compiler_flag="-o out/conftest2.$ac_objext"
9697    # Insert the option either (1) after the last *FLAGS variable, or
9698    # (2) before a word containing "conftest.", or (3) at the end.
9699    # Note that $ac_compile itself does not contain backslashes and begins
9700    # with a dollar sign (not a hyphen), so the echo should work correctly.
9701    lt_compile=`echo "$ac_compile" | $SED \
9702    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9703    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9704    -e 's:$: $lt_compiler_flag:'`
9705    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9706    (eval "$lt_compile" 2>out/conftest.err)
9707    ac_status=$?
9708    cat out/conftest.err >&5
9709    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9711    then
9712      # The compiler can only warn and ignore the option if not recognized
9713      # So say no if there are warnings
9714      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9715      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9716      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9717        lt_cv_prog_compiler_c_o=yes
9718      fi
9719    fi
9720    chmod u+w . 2>&5
9721    $RM conftest*
9722    # SGI C++ compiler will create directory out/ii_files/ for
9723    # template instantiation
9724    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9725    $RM out/* && rmdir out
9726    cd ..
9727    $RM -r conftest
9728    $RM conftest*
9729
9730 fi
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9732 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9733
9734
9735
9736
9737 hard_links="nottested"
9738 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9739   # do not overwrite the value of need_locks provided by the user
9740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9741 $as_echo_n "checking if we can lock with hard links... " >&6; }
9742   hard_links=yes
9743   $RM conftest*
9744   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9745   touch conftest.a
9746   ln conftest.a conftest.b 2>&5 || hard_links=no
9747   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9749 $as_echo "$hard_links" >&6; }
9750   if test "$hard_links" = no; then
9751     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9752 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9753     need_locks=warn
9754   fi
9755 else
9756   need_locks=no
9757 fi
9758
9759
9760
9761
9762
9763
9764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9765 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9766
9767   runpath_var=
9768   allow_undefined_flag=
9769   always_export_symbols=no
9770   archive_cmds=
9771   archive_expsym_cmds=
9772   compiler_needs_object=no
9773   enable_shared_with_static_runtimes=no
9774   export_dynamic_flag_spec=
9775   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9776   hardcode_automatic=no
9777   hardcode_direct=no
9778   hardcode_direct_absolute=no
9779   hardcode_libdir_flag_spec=
9780   hardcode_libdir_separator=
9781   hardcode_minus_L=no
9782   hardcode_shlibpath_var=unsupported
9783   inherit_rpath=no
9784   link_all_deplibs=unknown
9785   module_cmds=
9786   module_expsym_cmds=
9787   old_archive_from_new_cmds=
9788   old_archive_from_expsyms_cmds=
9789   thread_safe_flag_spec=
9790   whole_archive_flag_spec=
9791   # include_expsyms should be a list of space-separated symbols to be *always*
9792   # included in the symbol list
9793   include_expsyms=
9794   # exclude_expsyms can be an extended regexp of symbols to exclude
9795   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9796   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9797   # as well as any symbol that contains `d'.
9798   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9799   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9800   # platforms (ab)use it in PIC code, but their linkers get confused if
9801   # the symbol is explicitly referenced.  Since portable code cannot
9802   # rely on this symbol name, it's probably fine to never include it in
9803   # preloaded symbol tables.
9804   # Exclude shared library initialization/finalization symbols.
9805   extract_expsyms_cmds=
9806
9807   case $host_os in
9808   cygwin* | mingw* | pw32* | cegcc*)
9809     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9810     # When not using gcc, we currently assume that we are using
9811     # Microsoft Visual C++.
9812     if test "$GCC" != yes; then
9813       with_gnu_ld=no
9814     fi
9815     ;;
9816   interix*)
9817     # we just hope/assume this is gcc and not c89 (= MSVC++)
9818     with_gnu_ld=yes
9819     ;;
9820   openbsd*)
9821     with_gnu_ld=no
9822     ;;
9823   linux* | k*bsd*-gnu | gnu*)
9824     link_all_deplibs=no
9825     ;;
9826   esac
9827
9828   ld_shlibs=yes
9829
9830   # On some targets, GNU ld is compatible enough with the native linker
9831   # that we're better off using the native interface for both.
9832   lt_use_gnu_ld_interface=no
9833   if test "$with_gnu_ld" = yes; then
9834     case $host_os in
9835       aix*)
9836         # The AIX port of GNU ld has always aspired to compatibility
9837         # with the native linker.  However, as the warning in the GNU ld
9838         # block says, versions before 2.19.5* couldn't really create working
9839         # shared libraries, regardless of the interface used.
9840         case `$LD -v 2>&1` in
9841           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9842           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9843           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9844           *)
9845             lt_use_gnu_ld_interface=yes
9846             ;;
9847         esac
9848         ;;
9849       *)
9850         lt_use_gnu_ld_interface=yes
9851         ;;
9852     esac
9853   fi
9854
9855   if test "$lt_use_gnu_ld_interface" = yes; then
9856     # If archive_cmds runs LD, not CC, wlarc should be empty
9857     wlarc='${wl}'
9858
9859     # Set some defaults for GNU ld with shared library support. These
9860     # are reset later if shared libraries are not supported. Putting them
9861     # here allows them to be overridden if necessary.
9862     runpath_var=LD_RUN_PATH
9863     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9864     export_dynamic_flag_spec='${wl}--export-dynamic'
9865     # ancient GNU ld didn't support --whole-archive et. al.
9866     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9867       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9868     else
9869       whole_archive_flag_spec=
9870     fi
9871     supports_anon_versioning=no
9872     case `$LD -v 2>&1` in
9873       *GNU\ gold*) supports_anon_versioning=yes ;;
9874       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9875       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9876       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9877       *\ 2.11.*) ;; # other 2.11 versions
9878       *) supports_anon_versioning=yes ;;
9879     esac
9880
9881     # See if GNU ld supports shared libraries.
9882     case $host_os in
9883     aix[3-9]*)
9884       # On AIX/PPC, the GNU linker is very broken
9885       if test "$host_cpu" != ia64; then
9886         ld_shlibs=no
9887         cat <<_LT_EOF 1>&2
9888
9889 *** Warning: the GNU linker, at least up to release 2.19, is reported
9890 *** to be unable to reliably create shared libraries on AIX.
9891 *** Therefore, libtool is disabling shared libraries support.  If you
9892 *** really care for shared libraries, you may want to install binutils
9893 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9894 *** You will then need to restart the configuration process.
9895
9896 _LT_EOF
9897       fi
9898       ;;
9899
9900     amigaos*)
9901       case $host_cpu in
9902       powerpc)
9903             # see comment about AmigaOS4 .so support
9904             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9905             archive_expsym_cmds=''
9906         ;;
9907       m68k)
9908             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)'
9909             hardcode_libdir_flag_spec='-L$libdir'
9910             hardcode_minus_L=yes
9911         ;;
9912       esac
9913       ;;
9914
9915     beos*)
9916       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9917         allow_undefined_flag=unsupported
9918         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9919         # support --undefined.  This deserves some investigation.  FIXME
9920         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9921       else
9922         ld_shlibs=no
9923       fi
9924       ;;
9925
9926     cygwin* | mingw* | pw32* | cegcc*)
9927       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9928       # as there is no search path for DLLs.
9929       hardcode_libdir_flag_spec='-L$libdir'
9930       export_dynamic_flag_spec='${wl}--export-all-symbols'
9931       allow_undefined_flag=unsupported
9932       always_export_symbols=no
9933       enable_shared_with_static_runtimes=yes
9934       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9935       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9936
9937       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9938         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9939         # If the export-symbols file already is a .def file (1st line
9940         # is EXPORTS), use it as is; otherwise, prepend...
9941         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9942           cp $export_symbols $output_objdir/$soname.def;
9943         else
9944           echo EXPORTS > $output_objdir/$soname.def;
9945           cat $export_symbols >> $output_objdir/$soname.def;
9946         fi~
9947         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9948       else
9949         ld_shlibs=no
9950       fi
9951       ;;
9952
9953     haiku*)
9954       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9955       link_all_deplibs=yes
9956       ;;
9957
9958     interix[3-9]*)
9959       hardcode_direct=no
9960       hardcode_shlibpath_var=no
9961       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9962       export_dynamic_flag_spec='${wl}-E'
9963       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9964       # Instead, shared libraries are loaded at an image base (0x10000000 by
9965       # default) and relocated if they conflict, which is a slow very memory
9966       # consuming and fragmenting process.  To avoid this, we pick a random,
9967       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9968       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9969       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9970       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'
9971       ;;
9972
9973     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9974       tmp_diet=no
9975       if test "$host_os" = linux-dietlibc; then
9976         case $cc_basename in
9977           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9978         esac
9979       fi
9980       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9981          && test "$tmp_diet" = no
9982       then
9983         tmp_addflag=' $pic_flag'
9984         tmp_sharedflag='-shared'
9985         case $cc_basename,$host_cpu in
9986         pgcc*)                          # Portland Group C compiler
9987           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9988           tmp_addflag=' $pic_flag'
9989           ;;
9990         pgf77* | pgf90* | pgf95* | pgfortran*)
9991                                         # Portland Group f77 and f90 compilers
9992           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9993           tmp_addflag=' $pic_flag -Mnomain' ;;
9994         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9995           tmp_addflag=' -i_dynamic' ;;
9996         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9997           tmp_addflag=' -i_dynamic -nofor_main' ;;
9998         ifc* | ifort*)                  # Intel Fortran compiler
9999           tmp_addflag=' -nofor_main' ;;
10000         lf95*)                          # Lahey Fortran 8.1
10001           whole_archive_flag_spec=
10002           tmp_sharedflag='--shared' ;;
10003         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10004           tmp_sharedflag='-qmkshrobj'
10005           tmp_addflag= ;;
10006         nvcc*)  # Cuda Compiler Driver 2.2
10007           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10008           compiler_needs_object=yes
10009           ;;
10010         esac
10011         case `$CC -V 2>&1 | sed 5q` in
10012         *Sun\ C*)                       # Sun C 5.9
10013           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10014           compiler_needs_object=yes
10015           tmp_sharedflag='-G' ;;
10016         *Sun\ F*)                       # Sun Fortran 8.3
10017           tmp_sharedflag='-G' ;;
10018         esac
10019         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10020
10021         if test "x$supports_anon_versioning" = xyes; then
10022           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10023             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10024             echo "local: *; };" >> $output_objdir/$libname.ver~
10025             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10026         fi
10027
10028         case $cc_basename in
10029         xlf* | bgf* | bgxlf* | mpixlf*)
10030           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10031           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10032           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10033           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10034           if test "x$supports_anon_versioning" = xyes; then
10035             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10036               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10037               echo "local: *; };" >> $output_objdir/$libname.ver~
10038               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10039           fi
10040           ;;
10041         esac
10042       else
10043         ld_shlibs=no
10044       fi
10045       ;;
10046
10047     netbsd* | netbsdelf*-gnu)
10048       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10049         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10050         wlarc=
10051       else
10052         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10053         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10054       fi
10055       ;;
10056
10057     solaris*)
10058       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10059         ld_shlibs=no
10060         cat <<_LT_EOF 1>&2
10061
10062 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10063 *** create shared libraries on Solaris systems.  Therefore, libtool
10064 *** is disabling shared libraries support.  We urge you to upgrade GNU
10065 *** binutils to release 2.9.1 or newer.  Another option is to modify
10066 *** your PATH or compiler configuration so that the native linker is
10067 *** used, and then restart.
10068
10069 _LT_EOF
10070       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10071         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10072         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10073       else
10074         ld_shlibs=no
10075       fi
10076       ;;
10077
10078     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10079       case `$LD -v 2>&1` in
10080         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10081         ld_shlibs=no
10082         cat <<_LT_EOF 1>&2
10083
10084 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10085 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10086 *** is disabling shared libraries support.  We urge you to upgrade GNU
10087 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10088 *** your PATH or compiler configuration so that the native linker is
10089 *** used, and then restart.
10090
10091 _LT_EOF
10092         ;;
10093         *)
10094           # For security reasons, it is highly recommended that you always
10095           # use absolute paths for naming shared libraries, and exclude the
10096           # DT_RUNPATH tag from executables and libraries.  But doing so
10097           # requires that you compile everything twice, which is a pain.
10098           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10099             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10100             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10101             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10102           else
10103             ld_shlibs=no
10104           fi
10105         ;;
10106       esac
10107       ;;
10108
10109     sunos4*)
10110       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10111       wlarc=
10112       hardcode_direct=yes
10113       hardcode_shlibpath_var=no
10114       ;;
10115
10116     *)
10117       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10118         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10119         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10120       else
10121         ld_shlibs=no
10122       fi
10123       ;;
10124     esac
10125
10126     if test "$ld_shlibs" = no; then
10127       runpath_var=
10128       hardcode_libdir_flag_spec=
10129       export_dynamic_flag_spec=
10130       whole_archive_flag_spec=
10131     fi
10132   else
10133     # PORTME fill in a description of your system's linker (not GNU ld)
10134     case $host_os in
10135     aix3*)
10136       allow_undefined_flag=unsupported
10137       always_export_symbols=yes
10138       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'
10139       # Note: this linker hardcodes the directories in LIBPATH if there
10140       # are no directories specified by -L.
10141       hardcode_minus_L=yes
10142       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10143         # Neither direct hardcoding nor static linking is supported with a
10144         # broken collect2.
10145         hardcode_direct=unsupported
10146       fi
10147       ;;
10148
10149     aix[4-9]*)
10150       if test "$host_cpu" = ia64; then
10151         # On IA64, the linker does run time linking by default, so we don't
10152         # have to do anything special.
10153         aix_use_runtimelinking=no
10154         exp_sym_flag='-Bexport'
10155         no_entry_flag=""
10156       else
10157         # If we're using GNU nm, then we don't want the "-C" option.
10158         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10159         # Also, AIX nm treats weak defined symbols like other global
10160         # defined symbols, whereas GNU nm marks them as "W".
10161         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10162           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10163         else
10164           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'
10165         fi
10166         aix_use_runtimelinking=no
10167
10168         # Test if we are trying to use run time linking or normal
10169         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10170         # need to do runtime linking.
10171         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10172           for ld_flag in $LDFLAGS; do
10173           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10174             aix_use_runtimelinking=yes
10175             break
10176           fi
10177           done
10178           ;;
10179         esac
10180
10181         exp_sym_flag='-bexport'
10182         no_entry_flag='-bnoentry'
10183       fi
10184
10185       # When large executables or shared objects are built, AIX ld can
10186       # have problems creating the table of contents.  If linking a library
10187       # or program results in "error TOC overflow" add -mminimal-toc to
10188       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10189       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10190
10191       archive_cmds=''
10192       hardcode_direct=yes
10193       hardcode_direct_absolute=yes
10194       hardcode_libdir_separator=':'
10195       link_all_deplibs=yes
10196       file_list_spec='${wl}-f,'
10197
10198       if test "$GCC" = yes; then
10199         case $host_os in aix4.[012]|aix4.[012].*)
10200         # We only want to do this on AIX 4.2 and lower, the check
10201         # below for broken collect2 doesn't work under 4.3+
10202           collect2name=`${CC} -print-prog-name=collect2`
10203           if test -f "$collect2name" &&
10204            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10205           then
10206           # We have reworked collect2
10207           :
10208           else
10209           # We have old collect2
10210           hardcode_direct=unsupported
10211           # It fails to find uninstalled libraries when the uninstalled
10212           # path is not listed in the libpath.  Setting hardcode_minus_L
10213           # to unsupported forces relinking
10214           hardcode_minus_L=yes
10215           hardcode_libdir_flag_spec='-L$libdir'
10216           hardcode_libdir_separator=
10217           fi
10218           ;;
10219         esac
10220         shared_flag='-shared'
10221         if test "$aix_use_runtimelinking" = yes; then
10222           shared_flag="$shared_flag "'${wl}-G'
10223         fi
10224         link_all_deplibs=no
10225       else
10226         # not using gcc
10227         if test "$host_cpu" = ia64; then
10228         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10229         # chokes on -Wl,-G. The following line is correct:
10230           shared_flag='-G'
10231         else
10232           if test "$aix_use_runtimelinking" = yes; then
10233             shared_flag='${wl}-G'
10234           else
10235             shared_flag='${wl}-bM:SRE'
10236           fi
10237         fi
10238       fi
10239
10240       export_dynamic_flag_spec='${wl}-bexpall'
10241       # It seems that -bexpall does not export symbols beginning with
10242       # underscore (_), so it is better to generate a list of symbols to export.
10243       always_export_symbols=yes
10244       if test "$aix_use_runtimelinking" = yes; then
10245         # Warning - without using the other runtime loading flags (-brtl),
10246         # -berok will link without error, but may produce a broken library.
10247         allow_undefined_flag='-berok'
10248         # Determine the default libpath from the value encoded in an
10249         # empty executable.
10250         if test "${lt_cv_aix_libpath+set}" = set; then
10251   aix_libpath=$lt_cv_aix_libpath
10252 else
10253   if ${lt_cv_aix_libpath_+:} false; then :
10254   $as_echo_n "(cached) " >&6
10255 else
10256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h.  */
10258
10259 int
10260 main ()
10261 {
10262
10263   ;
10264   return 0;
10265 }
10266 _ACEOF
10267 if ac_fn_c_try_link "$LINENO"; then :
10268
10269   lt_aix_libpath_sed='
10270       /Import File Strings/,/^$/ {
10271           /^0/ {
10272               s/^0  *\([^ ]*\) *$/\1/
10273               p
10274           }
10275       }'
10276   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10277   # Check for a 64-bit object if we didn't find anything.
10278   if test -z "$lt_cv_aix_libpath_"; then
10279     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10280   fi
10281 fi
10282 rm -f core conftest.err conftest.$ac_objext \
10283     conftest$ac_exeext conftest.$ac_ext
10284   if test -z "$lt_cv_aix_libpath_"; then
10285     lt_cv_aix_libpath_="/usr/lib:/lib"
10286   fi
10287
10288 fi
10289
10290   aix_libpath=$lt_cv_aix_libpath_
10291 fi
10292
10293         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10294         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10295       else
10296         if test "$host_cpu" = ia64; then
10297           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10298           allow_undefined_flag="-z nodefs"
10299           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"
10300         else
10301          # Determine the default libpath from the value encoded in an
10302          # empty executable.
10303          if test "${lt_cv_aix_libpath+set}" = set; then
10304   aix_libpath=$lt_cv_aix_libpath
10305 else
10306   if ${lt_cv_aix_libpath_+:} false; then :
10307   $as_echo_n "(cached) " >&6
10308 else
10309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h.  */
10311
10312 int
10313 main ()
10314 {
10315
10316   ;
10317   return 0;
10318 }
10319 _ACEOF
10320 if ac_fn_c_try_link "$LINENO"; then :
10321
10322   lt_aix_libpath_sed='
10323       /Import File Strings/,/^$/ {
10324           /^0/ {
10325               s/^0  *\([^ ]*\) *$/\1/
10326               p
10327           }
10328       }'
10329   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10330   # Check for a 64-bit object if we didn't find anything.
10331   if test -z "$lt_cv_aix_libpath_"; then
10332     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10333   fi
10334 fi
10335 rm -f core conftest.err conftest.$ac_objext \
10336     conftest$ac_exeext conftest.$ac_ext
10337   if test -z "$lt_cv_aix_libpath_"; then
10338     lt_cv_aix_libpath_="/usr/lib:/lib"
10339   fi
10340
10341 fi
10342
10343   aix_libpath=$lt_cv_aix_libpath_
10344 fi
10345
10346          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10347           # Warning - without using the other run time loading flags,
10348           # -berok will link without error, but may produce a broken library.
10349           no_undefined_flag=' ${wl}-bernotok'
10350           allow_undefined_flag=' ${wl}-berok'
10351           if test "$with_gnu_ld" = yes; then
10352             # We only use this code for GNU lds that support --whole-archive.
10353             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10354           else
10355             # Exported symbols can be pulled into shared objects from archives
10356             whole_archive_flag_spec='$convenience'
10357           fi
10358           archive_cmds_need_lc=yes
10359           # This is similar to how AIX traditionally builds its shared libraries.
10360           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'
10361         fi
10362       fi
10363       ;;
10364
10365     amigaos*)
10366       case $host_cpu in
10367       powerpc)
10368             # see comment about AmigaOS4 .so support
10369             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10370             archive_expsym_cmds=''
10371         ;;
10372       m68k)
10373             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)'
10374             hardcode_libdir_flag_spec='-L$libdir'
10375             hardcode_minus_L=yes
10376         ;;
10377       esac
10378       ;;
10379
10380     bsdi[45]*)
10381       export_dynamic_flag_spec=-rdynamic
10382       ;;
10383
10384     cygwin* | mingw* | pw32* | cegcc*)
10385       # When not using gcc, we currently assume that we are using
10386       # Microsoft Visual C++.
10387       # hardcode_libdir_flag_spec is actually meaningless, as there is
10388       # no search path for DLLs.
10389       case $cc_basename in
10390       cl*)
10391         # Native MSVC
10392         hardcode_libdir_flag_spec=' '
10393         allow_undefined_flag=unsupported
10394         always_export_symbols=yes
10395         file_list_spec='@'
10396         # Tell ltmain to make .lib files, not .a files.
10397         libext=lib
10398         # Tell ltmain to make .dll files, not .so files.
10399         shrext_cmds=".dll"
10400         # FIXME: Setting linknames here is a bad hack.
10401         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10402         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10403             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10404           else
10405             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10406           fi~
10407           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10408           linknames='
10409         # The linker will not automatically build a static lib if we build a DLL.
10410         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10411         enable_shared_with_static_runtimes=yes
10412         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10413         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10414         # Don't use ranlib
10415         old_postinstall_cmds='chmod 644 $oldlib'
10416         postlink_cmds='lt_outputfile="@OUTPUT@"~
10417           lt_tool_outputfile="@TOOL_OUTPUT@"~
10418           case $lt_outputfile in
10419             *.exe|*.EXE) ;;
10420             *)
10421               lt_outputfile="$lt_outputfile.exe"
10422               lt_tool_outputfile="$lt_tool_outputfile.exe"
10423               ;;
10424           esac~
10425           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10426             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10427             $RM "$lt_outputfile.manifest";
10428           fi'
10429         ;;
10430       *)
10431         # Assume MSVC wrapper
10432         hardcode_libdir_flag_spec=' '
10433         allow_undefined_flag=unsupported
10434         # Tell ltmain to make .lib files, not .a files.
10435         libext=lib
10436         # Tell ltmain to make .dll files, not .so files.
10437         shrext_cmds=".dll"
10438         # FIXME: Setting linknames here is a bad hack.
10439         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10440         # The linker will automatically build a .lib file if we build a DLL.
10441         old_archive_from_new_cmds='true'
10442         # FIXME: Should let the user specify the lib program.
10443         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10444         enable_shared_with_static_runtimes=yes
10445         ;;
10446       esac
10447       ;;
10448
10449     darwin* | rhapsody*)
10450
10451
10452   archive_cmds_need_lc=no
10453   hardcode_direct=no
10454   hardcode_automatic=yes
10455   hardcode_shlibpath_var=unsupported
10456   if test "$lt_cv_ld_force_load" = "yes"; then
10457     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10458
10459   else
10460     whole_archive_flag_spec=''
10461   fi
10462   link_all_deplibs=yes
10463   allow_undefined_flag="$_lt_dar_allow_undefined"
10464   case $cc_basename in
10465      ifort*) _lt_dar_can_shared=yes ;;
10466      *) _lt_dar_can_shared=$GCC ;;
10467   esac
10468   if test "$_lt_dar_can_shared" = "yes"; then
10469     output_verbose_link_cmd=func_echo_all
10470     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10471     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10472     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}"
10473     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}"
10474
10475   else
10476   ld_shlibs=no
10477   fi
10478
10479       ;;
10480
10481     dgux*)
10482       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10483       hardcode_libdir_flag_spec='-L$libdir'
10484       hardcode_shlibpath_var=no
10485       ;;
10486
10487     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10488     # support.  Future versions do this automatically, but an explicit c++rt0.o
10489     # does not break anything, and helps significantly (at the cost of a little
10490     # extra space).
10491     freebsd2.2*)
10492       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10493       hardcode_libdir_flag_spec='-R$libdir'
10494       hardcode_direct=yes
10495       hardcode_shlibpath_var=no
10496       ;;
10497
10498     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10499     freebsd2.*)
10500       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10501       hardcode_direct=yes
10502       hardcode_minus_L=yes
10503       hardcode_shlibpath_var=no
10504       ;;
10505
10506     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10507     freebsd* | dragonfly*)
10508       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10509       hardcode_libdir_flag_spec='-R$libdir'
10510       hardcode_direct=yes
10511       hardcode_shlibpath_var=no
10512       ;;
10513
10514     hpux9*)
10515       if test "$GCC" = yes; then
10516         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10517       else
10518         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'
10519       fi
10520       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10521       hardcode_libdir_separator=:
10522       hardcode_direct=yes
10523
10524       # hardcode_minus_L: Not really in the search PATH,
10525       # but as the default location of the library.
10526       hardcode_minus_L=yes
10527       export_dynamic_flag_spec='${wl}-E'
10528       ;;
10529
10530     hpux10*)
10531       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10532         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10533       else
10534         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10535       fi
10536       if test "$with_gnu_ld" = no; then
10537         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10538         hardcode_libdir_separator=:
10539         hardcode_direct=yes
10540         hardcode_direct_absolute=yes
10541         export_dynamic_flag_spec='${wl}-E'
10542         # hardcode_minus_L: Not really in the search PATH,
10543         # but as the default location of the library.
10544         hardcode_minus_L=yes
10545       fi
10546       ;;
10547
10548     hpux11*)
10549       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10550         case $host_cpu in
10551         hppa*64*)
10552           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10553           ;;
10554         ia64*)
10555           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10556           ;;
10557         *)
10558           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10559           ;;
10560         esac
10561       else
10562         case $host_cpu in
10563         hppa*64*)
10564           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10565           ;;
10566         ia64*)
10567           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10568           ;;
10569         *)
10570
10571           # Older versions of the 11.00 compiler do not understand -b yet
10572           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10573           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10574 $as_echo_n "checking if $CC understands -b... " >&6; }
10575 if ${lt_cv_prog_compiler__b+:} false; then :
10576   $as_echo_n "(cached) " >&6
10577 else
10578   lt_cv_prog_compiler__b=no
10579    save_LDFLAGS="$LDFLAGS"
10580    LDFLAGS="$LDFLAGS -b"
10581    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10582    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10583      # The linker can only warn and ignore the option if not recognized
10584      # So say no if there are warnings
10585      if test -s conftest.err; then
10586        # Append any errors to the config.log.
10587        cat conftest.err 1>&5
10588        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10589        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10590        if diff conftest.exp conftest.er2 >/dev/null; then
10591          lt_cv_prog_compiler__b=yes
10592        fi
10593      else
10594        lt_cv_prog_compiler__b=yes
10595      fi
10596    fi
10597    $RM -r conftest*
10598    LDFLAGS="$save_LDFLAGS"
10599
10600 fi
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10602 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10603
10604 if test x"$lt_cv_prog_compiler__b" = xyes; then
10605     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10606 else
10607     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10608 fi
10609
10610           ;;
10611         esac
10612       fi
10613       if test "$with_gnu_ld" = no; then
10614         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10615         hardcode_libdir_separator=:
10616
10617         case $host_cpu in
10618         hppa*64*|ia64*)
10619           hardcode_direct=no
10620           hardcode_shlibpath_var=no
10621           ;;
10622         *)
10623           hardcode_direct=yes
10624           hardcode_direct_absolute=yes
10625           export_dynamic_flag_spec='${wl}-E'
10626
10627           # hardcode_minus_L: Not really in the search PATH,
10628           # but as the default location of the library.
10629           hardcode_minus_L=yes
10630           ;;
10631         esac
10632       fi
10633       ;;
10634
10635     irix5* | irix6* | nonstopux*)
10636       if test "$GCC" = yes; then
10637         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10638         # Try to use the -exported_symbol ld option, if it does not
10639         # work, assume that -exports_file does not work either and
10640         # implicitly export all symbols.
10641         # This should be the same for all languages, so no per-tag cache variable.
10642         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10643 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10644 if ${lt_cv_irix_exported_symbol+:} false; then :
10645   $as_echo_n "(cached) " >&6
10646 else
10647   save_LDFLAGS="$LDFLAGS"
10648            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10649            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650 /* end confdefs.h.  */
10651 int foo (void) { return 0; }
10652 _ACEOF
10653 if ac_fn_c_try_link "$LINENO"; then :
10654   lt_cv_irix_exported_symbol=yes
10655 else
10656   lt_cv_irix_exported_symbol=no
10657 fi
10658 rm -f core conftest.err conftest.$ac_objext \
10659     conftest$ac_exeext conftest.$ac_ext
10660            LDFLAGS="$save_LDFLAGS"
10661 fi
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10663 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10664         if test "$lt_cv_irix_exported_symbol" = yes; then
10665           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10666         fi
10667       else
10668         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10669         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10670       fi
10671       archive_cmds_need_lc='no'
10672       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10673       hardcode_libdir_separator=:
10674       inherit_rpath=yes
10675       link_all_deplibs=yes
10676       ;;
10677
10678     netbsd* | netbsdelf*-gnu)
10679       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10680         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10681       else
10682         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10683       fi
10684       hardcode_libdir_flag_spec='-R$libdir'
10685       hardcode_direct=yes
10686       hardcode_shlibpath_var=no
10687       ;;
10688
10689     newsos6)
10690       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10691       hardcode_direct=yes
10692       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10693       hardcode_libdir_separator=:
10694       hardcode_shlibpath_var=no
10695       ;;
10696
10697     *nto* | *qnx*)
10698       ;;
10699
10700     openbsd*)
10701       if test -f /usr/libexec/ld.so; then
10702         hardcode_direct=yes
10703         hardcode_shlibpath_var=no
10704         hardcode_direct_absolute=yes
10705         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10706           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10707           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10708           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10709           export_dynamic_flag_spec='${wl}-E'
10710         else
10711           case $host_os in
10712            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10713              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10714              hardcode_libdir_flag_spec='-R$libdir'
10715              ;;
10716            *)
10717              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10718              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10719              ;;
10720           esac
10721         fi
10722       else
10723         ld_shlibs=no
10724       fi
10725       ;;
10726
10727     os2*)
10728       hardcode_libdir_flag_spec='-L$libdir'
10729       hardcode_minus_L=yes
10730       allow_undefined_flag=unsupported
10731       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'
10732       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10733       ;;
10734
10735     osf3*)
10736       if test "$GCC" = yes; then
10737         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10738         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10739       else
10740         allow_undefined_flag=' -expect_unresolved \*'
10741         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10742       fi
10743       archive_cmds_need_lc='no'
10744       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10745       hardcode_libdir_separator=:
10746       ;;
10747
10748     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10749       if test "$GCC" = yes; then
10750         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10751         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10752         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10753       else
10754         allow_undefined_flag=' -expect_unresolved \*'
10755         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10756         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~
10757         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10758
10759         # Both c and cxx compiler support -rpath directly
10760         hardcode_libdir_flag_spec='-rpath $libdir'
10761       fi
10762       archive_cmds_need_lc='no'
10763       hardcode_libdir_separator=:
10764       ;;
10765
10766     solaris*)
10767       no_undefined_flag=' -z defs'
10768       if test "$GCC" = yes; then
10769         wlarc='${wl}'
10770         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10771         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10772           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10773       else
10774         case `$CC -V 2>&1` in
10775         *"Compilers 5.0"*)
10776           wlarc=''
10777           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10778           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10779           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10780           ;;
10781         *)
10782           wlarc='${wl}'
10783           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10784           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10785           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10786           ;;
10787         esac
10788       fi
10789       hardcode_libdir_flag_spec='-R$libdir'
10790       hardcode_shlibpath_var=no
10791       case $host_os in
10792       solaris2.[0-5] | solaris2.[0-5].*) ;;
10793       *)
10794         # The compiler driver will combine and reorder linker options,
10795         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10796         # but is careful enough not to reorder.
10797         # Supported since Solaris 2.6 (maybe 2.5.1?)
10798         if test "$GCC" = yes; then
10799           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10800         else
10801           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10802         fi
10803         ;;
10804       esac
10805       link_all_deplibs=yes
10806       ;;
10807
10808     sunos4*)
10809       if test "x$host_vendor" = xsequent; then
10810         # Use $CC to link under sequent, because it throws in some extra .o
10811         # files that make .init and .fini sections work.
10812         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10813       else
10814         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10815       fi
10816       hardcode_libdir_flag_spec='-L$libdir'
10817       hardcode_direct=yes
10818       hardcode_minus_L=yes
10819       hardcode_shlibpath_var=no
10820       ;;
10821
10822     sysv4)
10823       case $host_vendor in
10824         sni)
10825           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10826           hardcode_direct=yes # is this really true???
10827         ;;
10828         siemens)
10829           ## LD is ld it makes a PLAMLIB
10830           ## CC just makes a GrossModule.
10831           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10832           reload_cmds='$CC -r -o $output$reload_objs'
10833           hardcode_direct=no
10834         ;;
10835         motorola)
10836           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10837           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10838         ;;
10839       esac
10840       runpath_var='LD_RUN_PATH'
10841       hardcode_shlibpath_var=no
10842       ;;
10843
10844     sysv4.3*)
10845       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10846       hardcode_shlibpath_var=no
10847       export_dynamic_flag_spec='-Bexport'
10848       ;;
10849
10850     sysv4*MP*)
10851       if test -d /usr/nec; then
10852         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10853         hardcode_shlibpath_var=no
10854         runpath_var=LD_RUN_PATH
10855         hardcode_runpath_var=yes
10856         ld_shlibs=yes
10857       fi
10858       ;;
10859
10860     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10861       no_undefined_flag='${wl}-z,text'
10862       archive_cmds_need_lc=no
10863       hardcode_shlibpath_var=no
10864       runpath_var='LD_RUN_PATH'
10865
10866       if test "$GCC" = yes; then
10867         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10868         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10869       else
10870         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10871         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10872       fi
10873       ;;
10874
10875     sysv5* | sco3.2v5* | sco5v6*)
10876       # Note: We can NOT use -z defs as we might desire, because we do not
10877       # link with -lc, and that would cause any symbols used from libc to
10878       # always be unresolved, which means just about no library would
10879       # ever link correctly.  If we're not using GNU ld we use -z text
10880       # though, which does catch some bad symbols but isn't as heavy-handed
10881       # as -z defs.
10882       no_undefined_flag='${wl}-z,text'
10883       allow_undefined_flag='${wl}-z,nodefs'
10884       archive_cmds_need_lc=no
10885       hardcode_shlibpath_var=no
10886       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10887       hardcode_libdir_separator=':'
10888       link_all_deplibs=yes
10889       export_dynamic_flag_spec='${wl}-Bexport'
10890       runpath_var='LD_RUN_PATH'
10891
10892       if test "$GCC" = yes; then
10893         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10894         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10895       else
10896         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10897         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10898       fi
10899       ;;
10900
10901     uts4*)
10902       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10903       hardcode_libdir_flag_spec='-L$libdir'
10904       hardcode_shlibpath_var=no
10905       ;;
10906
10907     *)
10908       ld_shlibs=no
10909       ;;
10910     esac
10911
10912     if test x$host_vendor = xsni; then
10913       case $host in
10914       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10915         export_dynamic_flag_spec='${wl}-Blargedynsym'
10916         ;;
10917       esac
10918     fi
10919   fi
10920
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10922 $as_echo "$ld_shlibs" >&6; }
10923 test "$ld_shlibs" = no && can_build_shared=no
10924
10925 with_gnu_ld=$with_gnu_ld
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941 #
10942 # Do we need to explicitly link libc?
10943 #
10944 case "x$archive_cmds_need_lc" in
10945 x|xyes)
10946   # Assume -lc should be added
10947   archive_cmds_need_lc=yes
10948
10949   if test "$enable_shared" = yes && test "$GCC" = yes; then
10950     case $archive_cmds in
10951     *'~'*)
10952       # FIXME: we may have to deal with multi-command sequences.
10953       ;;
10954     '$CC '*)
10955       # Test whether the compiler implicitly links with -lc since on some
10956       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10957       # to ld, don't add -lc before -lgcc.
10958       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10959 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10960 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10961   $as_echo_n "(cached) " >&6
10962 else
10963   $RM conftest*
10964         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10965
10966         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10967   (eval $ac_compile) 2>&5
10968   ac_status=$?
10969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10970   test $ac_status = 0; } 2>conftest.err; then
10971           soname=conftest
10972           lib=conftest
10973           libobjs=conftest.$ac_objext
10974           deplibs=
10975           wl=$lt_prog_compiler_wl
10976           pic_flag=$lt_prog_compiler_pic
10977           compiler_flags=-v
10978           linker_flags=-v
10979           verstring=
10980           output_objdir=.
10981           libname=conftest
10982           lt_save_allow_undefined_flag=$allow_undefined_flag
10983           allow_undefined_flag=
10984           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10985   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10986   ac_status=$?
10987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10988   test $ac_status = 0; }
10989           then
10990             lt_cv_archive_cmds_need_lc=no
10991           else
10992             lt_cv_archive_cmds_need_lc=yes
10993           fi
10994           allow_undefined_flag=$lt_save_allow_undefined_flag
10995         else
10996           cat conftest.err 1>&5
10997         fi
10998         $RM conftest*
10999
11000 fi
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11002 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11003       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11004       ;;
11005     esac
11006   fi
11007   ;;
11008 esac
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11162 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11163
11164 if test "$GCC" = yes; then
11165   case $host_os in
11166     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11167     *) lt_awk_arg="/^libraries:/" ;;
11168   esac
11169   case $host_os in
11170     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11171     *) lt_sed_strip_eq="s,=/,/,g" ;;
11172   esac
11173   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11174   case $lt_search_path_spec in
11175   *\;*)
11176     # if the path contains ";" then we assume it to be the separator
11177     # otherwise default to the standard path separator (i.e. ":") - it is
11178     # assumed that no part of a normal pathname contains ";" but that should
11179     # okay in the real world where ";" in dirpaths is itself problematic.
11180     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11181     ;;
11182   *)
11183     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11184     ;;
11185   esac
11186   # Ok, now we have the path, separated by spaces, we can step through it
11187   # and add multilib dir if necessary.
11188   lt_tmp_lt_search_path_spec=
11189   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11190   for lt_sys_path in $lt_search_path_spec; do
11191     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11192       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11193     else
11194       test -d "$lt_sys_path" && \
11195         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11196     fi
11197   done
11198   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11199 BEGIN {RS=" "; FS="/|\n";} {
11200   lt_foo="";
11201   lt_count=0;
11202   for (lt_i = NF; lt_i > 0; lt_i--) {
11203     if ($lt_i != "" && $lt_i != ".") {
11204       if ($lt_i == "..") {
11205         lt_count++;
11206       } else {
11207         if (lt_count == 0) {
11208           lt_foo="/" $lt_i lt_foo;
11209         } else {
11210           lt_count--;
11211         }
11212       }
11213     }
11214   }
11215   if (lt_foo != "") { lt_freq[lt_foo]++; }
11216   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11217 }'`
11218   # AWK program above erroneously prepends '/' to C:/dos/paths
11219   # for these hosts.
11220   case $host_os in
11221     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11222       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11223   esac
11224   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11225 else
11226   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11227 fi
11228 library_names_spec=
11229 libname_spec='lib$name'
11230 soname_spec=
11231 shrext_cmds=".so"
11232 postinstall_cmds=
11233 postuninstall_cmds=
11234 finish_cmds=
11235 finish_eval=
11236 shlibpath_var=
11237 shlibpath_overrides_runpath=unknown
11238 version_type=none
11239 dynamic_linker="$host_os ld.so"
11240 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11241 need_lib_prefix=unknown
11242 hardcode_into_libs=no
11243
11244 # when you set need_version to no, make sure it does not cause -set_version
11245 # flags to be left without arguments
11246 need_version=unknown
11247
11248 case $host_os in
11249 aix3*)
11250   version_type=linux # correct to gnu/linux during the next big refactor
11251   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11252   shlibpath_var=LIBPATH
11253
11254   # AIX 3 has no versioning support, so we append a major version to the name.
11255   soname_spec='${libname}${release}${shared_ext}$major'
11256   ;;
11257
11258 aix[4-9]*)
11259   version_type=linux # correct to gnu/linux during the next big refactor
11260   need_lib_prefix=no
11261   need_version=no
11262   hardcode_into_libs=yes
11263   if test "$host_cpu" = ia64; then
11264     # AIX 5 supports IA64
11265     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11266     shlibpath_var=LD_LIBRARY_PATH
11267   else
11268     # With GCC up to 2.95.x, collect2 would create an import file
11269     # for dependence libraries.  The import file would start with
11270     # the line `#! .'.  This would cause the generated library to
11271     # depend on `.', always an invalid library.  This was fixed in
11272     # development snapshots of GCC prior to 3.0.
11273     case $host_os in
11274       aix4 | aix4.[01] | aix4.[01].*)
11275       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11276            echo ' yes '
11277            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11278         :
11279       else
11280         can_build_shared=no
11281       fi
11282       ;;
11283     esac
11284     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11285     # soname into executable. Probably we can add versioning support to
11286     # collect2, so additional links can be useful in future.
11287     if test "$aix_use_runtimelinking" = yes; then
11288       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11289       # instead of lib<name>.a to let people know that these are not
11290       # typical AIX shared libraries.
11291       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11292     else
11293       # We preserve .a as extension for shared libraries through AIX4.2
11294       # and later when we are not doing run time linking.
11295       library_names_spec='${libname}${release}.a $libname.a'
11296       soname_spec='${libname}${release}${shared_ext}$major'
11297     fi
11298     shlibpath_var=LIBPATH
11299   fi
11300   ;;
11301
11302 amigaos*)
11303   case $host_cpu in
11304   powerpc)
11305     # Since July 2007 AmigaOS4 officially supports .so libraries.
11306     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11307     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11308     ;;
11309   m68k)
11310     library_names_spec='$libname.ixlibrary $libname.a'
11311     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11312     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
11313     ;;
11314   esac
11315   ;;
11316
11317 beos*)
11318   library_names_spec='${libname}${shared_ext}'
11319   dynamic_linker="$host_os ld.so"
11320   shlibpath_var=LIBRARY_PATH
11321   ;;
11322
11323 bsdi[45]*)
11324   version_type=linux # correct to gnu/linux during the next big refactor
11325   need_version=no
11326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11327   soname_spec='${libname}${release}${shared_ext}$major'
11328   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11329   shlibpath_var=LD_LIBRARY_PATH
11330   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11331   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11332   # the default ld.so.conf also contains /usr/contrib/lib and
11333   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11334   # libtool to hard-code these into programs
11335   ;;
11336
11337 cygwin* | mingw* | pw32* | cegcc*)
11338   version_type=windows
11339   shrext_cmds=".dll"
11340   need_version=no
11341   need_lib_prefix=no
11342
11343   case $GCC,$cc_basename in
11344   yes,*)
11345     # gcc
11346     library_names_spec='$libname.dll.a'
11347     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11348     postinstall_cmds='base_file=`basename \${file}`~
11349       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11350       dldir=$destdir/`dirname \$dlpath`~
11351       test -d \$dldir || mkdir -p \$dldir~
11352       $install_prog $dir/$dlname \$dldir/$dlname~
11353       chmod a+x \$dldir/$dlname~
11354       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11355         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11356       fi'
11357     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11358       dlpath=$dir/\$dldll~
11359        $RM \$dlpath'
11360     shlibpath_overrides_runpath=yes
11361
11362     case $host_os in
11363     cygwin*)
11364       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11365       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11366
11367       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11368       ;;
11369     mingw* | cegcc*)
11370       # MinGW DLLs use traditional 'lib' prefix
11371       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11372       ;;
11373     pw32*)
11374       # pw32 DLLs use 'pw' prefix rather than 'lib'
11375       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11376       ;;
11377     esac
11378     dynamic_linker='Win32 ld.exe'
11379     ;;
11380
11381   *,cl*)
11382     # Native MSVC
11383     libname_spec='$name'
11384     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11385     library_names_spec='${libname}.dll.lib'
11386
11387     case $build_os in
11388     mingw*)
11389       sys_lib_search_path_spec=
11390       lt_save_ifs=$IFS
11391       IFS=';'
11392       for lt_path in $LIB
11393       do
11394         IFS=$lt_save_ifs
11395         # Let DOS variable expansion print the short 8.3 style file name.
11396         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11397         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11398       done
11399       IFS=$lt_save_ifs
11400       # Convert to MSYS style.
11401       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11402       ;;
11403     cygwin*)
11404       # Convert to unix form, then to dos form, then back to unix form
11405       # but this time dos style (no spaces!) so that the unix form looks
11406       # like /cygdrive/c/PROGRA~1:/cygdr...
11407       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11408       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11409       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11410       ;;
11411     *)
11412       sys_lib_search_path_spec="$LIB"
11413       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11414         # It is most probably a Windows format PATH.
11415         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11416       else
11417         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11418       fi
11419       # FIXME: find the short name or the path components, as spaces are
11420       # common. (e.g. "Program Files" -> "PROGRA~1")
11421       ;;
11422     esac
11423
11424     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11425     postinstall_cmds='base_file=`basename \${file}`~
11426       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11427       dldir=$destdir/`dirname \$dlpath`~
11428       test -d \$dldir || mkdir -p \$dldir~
11429       $install_prog $dir/$dlname \$dldir/$dlname'
11430     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11431       dlpath=$dir/\$dldll~
11432        $RM \$dlpath'
11433     shlibpath_overrides_runpath=yes
11434     dynamic_linker='Win32 link.exe'
11435     ;;
11436
11437   *)
11438     # Assume MSVC wrapper
11439     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11440     dynamic_linker='Win32 ld.exe'
11441     ;;
11442   esac
11443   # FIXME: first we should search . and the directory the executable is in
11444   shlibpath_var=PATH
11445   ;;
11446
11447 darwin* | rhapsody*)
11448   dynamic_linker="$host_os dyld"
11449   version_type=darwin
11450   need_lib_prefix=no
11451   need_version=no
11452   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11453   soname_spec='${libname}${release}${major}$shared_ext'
11454   shlibpath_overrides_runpath=yes
11455   shlibpath_var=DYLD_LIBRARY_PATH
11456   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11457
11458   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11459   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11460   ;;
11461
11462 dgux*)
11463   version_type=linux # correct to gnu/linux during the next big refactor
11464   need_lib_prefix=no
11465   need_version=no
11466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11467   soname_spec='${libname}${release}${shared_ext}$major'
11468   shlibpath_var=LD_LIBRARY_PATH
11469   ;;
11470
11471 freebsd* | dragonfly*)
11472   # DragonFly does not have aout.  When/if they implement a new
11473   # versioning mechanism, adjust this.
11474   if test -x /usr/bin/objformat; then
11475     objformat=`/usr/bin/objformat`
11476   else
11477     case $host_os in
11478     freebsd[23].*) objformat=aout ;;
11479     *) objformat=elf ;;
11480     esac
11481   fi
11482   version_type=freebsd-$objformat
11483   case $version_type in
11484     freebsd-elf*)
11485       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11486       need_version=no
11487       need_lib_prefix=no
11488       ;;
11489     freebsd-*)
11490       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11491       need_version=yes
11492       ;;
11493   esac
11494   shlibpath_var=LD_LIBRARY_PATH
11495   case $host_os in
11496   freebsd2.*)
11497     shlibpath_overrides_runpath=yes
11498     ;;
11499   freebsd3.[01]* | freebsdelf3.[01]*)
11500     shlibpath_overrides_runpath=yes
11501     hardcode_into_libs=yes
11502     ;;
11503   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11504   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11505     shlibpath_overrides_runpath=no
11506     hardcode_into_libs=yes
11507     ;;
11508   *) # from 4.6 on, and DragonFly
11509     shlibpath_overrides_runpath=yes
11510     hardcode_into_libs=yes
11511     ;;
11512   esac
11513   ;;
11514
11515 haiku*)
11516   version_type=linux # correct to gnu/linux during the next big refactor
11517   need_lib_prefix=no
11518   need_version=no
11519   dynamic_linker="$host_os runtime_loader"
11520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11521   soname_spec='${libname}${release}${shared_ext}$major'
11522   shlibpath_var=LIBRARY_PATH
11523   shlibpath_overrides_runpath=yes
11524   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11525   hardcode_into_libs=yes
11526   ;;
11527
11528 hpux9* | hpux10* | hpux11*)
11529   # Give a soname corresponding to the major version so that dld.sl refuses to
11530   # link against other versions.
11531   version_type=sunos
11532   need_lib_prefix=no
11533   need_version=no
11534   case $host_cpu in
11535   ia64*)
11536     shrext_cmds='.so'
11537     hardcode_into_libs=yes
11538     dynamic_linker="$host_os dld.so"
11539     shlibpath_var=LD_LIBRARY_PATH
11540     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11541     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11542     soname_spec='${libname}${release}${shared_ext}$major'
11543     if test "X$HPUX_IA64_MODE" = X32; then
11544       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11545     else
11546       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11547     fi
11548     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11549     ;;
11550   hppa*64*)
11551     shrext_cmds='.sl'
11552     hardcode_into_libs=yes
11553     dynamic_linker="$host_os dld.sl"
11554     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11555     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11556     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557     soname_spec='${libname}${release}${shared_ext}$major'
11558     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11559     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11560     ;;
11561   *)
11562     shrext_cmds='.sl'
11563     dynamic_linker="$host_os dld.sl"
11564     shlibpath_var=SHLIB_PATH
11565     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11566     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11567     soname_spec='${libname}${release}${shared_ext}$major'
11568     ;;
11569   esac
11570   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11571   postinstall_cmds='chmod 555 $lib'
11572   # or fails outright, so override atomically:
11573   install_override_mode=555
11574   ;;
11575
11576 interix[3-9]*)
11577   version_type=linux # correct to gnu/linux during the next big refactor
11578   need_lib_prefix=no
11579   need_version=no
11580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11581   soname_spec='${libname}${release}${shared_ext}$major'
11582   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11583   shlibpath_var=LD_LIBRARY_PATH
11584   shlibpath_overrides_runpath=no
11585   hardcode_into_libs=yes
11586   ;;
11587
11588 irix5* | irix6* | nonstopux*)
11589   case $host_os in
11590     nonstopux*) version_type=nonstopux ;;
11591     *)
11592         if test "$lt_cv_prog_gnu_ld" = yes; then
11593                 version_type=linux # correct to gnu/linux during the next big refactor
11594         else
11595                 version_type=irix
11596         fi ;;
11597   esac
11598   need_lib_prefix=no
11599   need_version=no
11600   soname_spec='${libname}${release}${shared_ext}$major'
11601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11602   case $host_os in
11603   irix5* | nonstopux*)
11604     libsuff= shlibsuff=
11605     ;;
11606   *)
11607     case $LD in # libtool.m4 will add one of these switches to LD
11608     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11609       libsuff= shlibsuff= libmagic=32-bit;;
11610     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11611       libsuff=32 shlibsuff=N32 libmagic=N32;;
11612     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11613       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11614     *) libsuff= shlibsuff= libmagic=never-match;;
11615     esac
11616     ;;
11617   esac
11618   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11619   shlibpath_overrides_runpath=no
11620   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11621   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11622   hardcode_into_libs=yes
11623   ;;
11624
11625 # No shared lib support for Linux oldld, aout, or coff.
11626 linux*oldld* | linux*aout* | linux*coff*)
11627   dynamic_linker=no
11628   ;;
11629
11630 # This must be glibc/ELF.
11631 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11632   version_type=linux # correct to gnu/linux during the next big refactor
11633   need_lib_prefix=no
11634   need_version=no
11635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636   soname_spec='${libname}${release}${shared_ext}$major'
11637   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11638   shlibpath_var=LD_LIBRARY_PATH
11639   shlibpath_overrides_runpath=no
11640
11641   # Some binutils ld are patched to set DT_RUNPATH
11642   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11643   $as_echo_n "(cached) " >&6
11644 else
11645   lt_cv_shlibpath_overrides_runpath=no
11646     save_LDFLAGS=$LDFLAGS
11647     save_libdir=$libdir
11648     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11649          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11650     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651 /* end confdefs.h.  */
11652
11653 int
11654 main ()
11655 {
11656
11657   ;
11658   return 0;
11659 }
11660 _ACEOF
11661 if ac_fn_c_try_link "$LINENO"; then :
11662   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11663   lt_cv_shlibpath_overrides_runpath=yes
11664 fi
11665 fi
11666 rm -f core conftest.err conftest.$ac_objext \
11667     conftest$ac_exeext conftest.$ac_ext
11668     LDFLAGS=$save_LDFLAGS
11669     libdir=$save_libdir
11670
11671 fi
11672
11673   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11674
11675   # This implies no fast_install, which is unacceptable.
11676   # Some rework will be needed to allow for fast_install
11677   # before this can be enabled.
11678   hardcode_into_libs=yes
11679
11680   # Append ld.so.conf contents to the search path
11681   if test -f /etc/ld.so.conf; then
11682     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;s/"//g;/^$/d' | tr '\n' ' '`
11683     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11684   fi
11685
11686   # We used to test for /lib/ld.so.1 and disable shared libraries on
11687   # powerpc, because MkLinux only supported shared libraries with the
11688   # GNU dynamic linker.  Since this was broken with cross compilers,
11689   # most powerpc-linux boxes support dynamic linking these days and
11690   # people can always --disable-shared, the test was removed, and we
11691   # assume the GNU/Linux dynamic linker is in use.
11692   dynamic_linker='GNU/Linux ld.so'
11693   ;;
11694
11695 netbsdelf*-gnu)
11696   version_type=linux
11697   need_lib_prefix=no
11698   need_version=no
11699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11700   soname_spec='${libname}${release}${shared_ext}$major'
11701   shlibpath_var=LD_LIBRARY_PATH
11702   shlibpath_overrides_runpath=no
11703   hardcode_into_libs=yes
11704   dynamic_linker='NetBSD ld.elf_so'
11705   ;;
11706
11707 netbsd*)
11708   version_type=sunos
11709   need_lib_prefix=no
11710   need_version=no
11711   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11712     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11713     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11714     dynamic_linker='NetBSD (a.out) ld.so'
11715   else
11716     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11717     soname_spec='${libname}${release}${shared_ext}$major'
11718     dynamic_linker='NetBSD ld.elf_so'
11719   fi
11720   shlibpath_var=LD_LIBRARY_PATH
11721   shlibpath_overrides_runpath=yes
11722   hardcode_into_libs=yes
11723   ;;
11724
11725 newsos6)
11726   version_type=linux # correct to gnu/linux during the next big refactor
11727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11728   shlibpath_var=LD_LIBRARY_PATH
11729   shlibpath_overrides_runpath=yes
11730   ;;
11731
11732 *nto* | *qnx*)
11733   version_type=qnx
11734   need_lib_prefix=no
11735   need_version=no
11736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11737   soname_spec='${libname}${release}${shared_ext}$major'
11738   shlibpath_var=LD_LIBRARY_PATH
11739   shlibpath_overrides_runpath=no
11740   hardcode_into_libs=yes
11741   dynamic_linker='ldqnx.so'
11742   ;;
11743
11744 openbsd*)
11745   version_type=sunos
11746   sys_lib_dlsearch_path_spec="/usr/lib"
11747   need_lib_prefix=no
11748   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11749   case $host_os in
11750     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11751     *)                          need_version=no  ;;
11752   esac
11753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11754   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11755   shlibpath_var=LD_LIBRARY_PATH
11756   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11757     case $host_os in
11758       openbsd2.[89] | openbsd2.[89].*)
11759         shlibpath_overrides_runpath=no
11760         ;;
11761       *)
11762         shlibpath_overrides_runpath=yes
11763         ;;
11764       esac
11765   else
11766     shlibpath_overrides_runpath=yes
11767   fi
11768   ;;
11769
11770 os2*)
11771   libname_spec='$name'
11772   shrext_cmds=".dll"
11773   need_lib_prefix=no
11774   library_names_spec='$libname${shared_ext} $libname.a'
11775   dynamic_linker='OS/2 ld.exe'
11776   shlibpath_var=LIBPATH
11777   ;;
11778
11779 osf3* | osf4* | osf5*)
11780   version_type=osf
11781   need_lib_prefix=no
11782   need_version=no
11783   soname_spec='${libname}${release}${shared_ext}$major'
11784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11785   shlibpath_var=LD_LIBRARY_PATH
11786   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11787   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11788   ;;
11789
11790 rdos*)
11791   dynamic_linker=no
11792   ;;
11793
11794 solaris*)
11795   version_type=linux # correct to gnu/linux during the next big refactor
11796   need_lib_prefix=no
11797   need_version=no
11798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11799   soname_spec='${libname}${release}${shared_ext}$major'
11800   shlibpath_var=LD_LIBRARY_PATH
11801   shlibpath_overrides_runpath=yes
11802   hardcode_into_libs=yes
11803   # ldd complains unless libraries are executable
11804   postinstall_cmds='chmod +x $lib'
11805   ;;
11806
11807 sunos4*)
11808   version_type=sunos
11809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11810   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11811   shlibpath_var=LD_LIBRARY_PATH
11812   shlibpath_overrides_runpath=yes
11813   if test "$with_gnu_ld" = yes; then
11814     need_lib_prefix=no
11815   fi
11816   need_version=yes
11817   ;;
11818
11819 sysv4 | sysv4.3*)
11820   version_type=linux # correct to gnu/linux during the next big refactor
11821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11822   soname_spec='${libname}${release}${shared_ext}$major'
11823   shlibpath_var=LD_LIBRARY_PATH
11824   case $host_vendor in
11825     sni)
11826       shlibpath_overrides_runpath=no
11827       need_lib_prefix=no
11828       runpath_var=LD_RUN_PATH
11829       ;;
11830     siemens)
11831       need_lib_prefix=no
11832       ;;
11833     motorola)
11834       need_lib_prefix=no
11835       need_version=no
11836       shlibpath_overrides_runpath=no
11837       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11838       ;;
11839   esac
11840   ;;
11841
11842 sysv4*MP*)
11843   if test -d /usr/nec ;then
11844     version_type=linux # correct to gnu/linux during the next big refactor
11845     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11846     soname_spec='$libname${shared_ext}.$major'
11847     shlibpath_var=LD_LIBRARY_PATH
11848   fi
11849   ;;
11850
11851 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11852   version_type=freebsd-elf
11853   need_lib_prefix=no
11854   need_version=no
11855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11856   soname_spec='${libname}${release}${shared_ext}$major'
11857   shlibpath_var=LD_LIBRARY_PATH
11858   shlibpath_overrides_runpath=yes
11859   hardcode_into_libs=yes
11860   if test "$with_gnu_ld" = yes; then
11861     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11862   else
11863     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11864     case $host_os in
11865       sco3.2v5*)
11866         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11867         ;;
11868     esac
11869   fi
11870   sys_lib_dlsearch_path_spec='/usr/lib'
11871   ;;
11872
11873 tpf*)
11874   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11875   version_type=linux # correct to gnu/linux during the next big refactor
11876   need_lib_prefix=no
11877   need_version=no
11878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11879   shlibpath_var=LD_LIBRARY_PATH
11880   shlibpath_overrides_runpath=no
11881   hardcode_into_libs=yes
11882   ;;
11883
11884 uts4*)
11885   version_type=linux # correct to gnu/linux during the next big refactor
11886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11887   soname_spec='${libname}${release}${shared_ext}$major'
11888   shlibpath_var=LD_LIBRARY_PATH
11889   ;;
11890
11891 *)
11892   dynamic_linker=no
11893   ;;
11894 esac
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11896 $as_echo "$dynamic_linker" >&6; }
11897 test "$dynamic_linker" = no && can_build_shared=no
11898
11899 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11900 if test "$GCC" = yes; then
11901   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11902 fi
11903
11904 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11905   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11906 fi
11907 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11908   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11909 fi
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12003 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12004 hardcode_action=
12005 if test -n "$hardcode_libdir_flag_spec" ||
12006    test -n "$runpath_var" ||
12007    test "X$hardcode_automatic" = "Xyes" ; then
12008
12009   # We can hardcode non-existent directories.
12010   if test "$hardcode_direct" != no &&
12011      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12012      # have to relink, otherwise we might link with an installed library
12013      # when we should be linking with a yet-to-be-installed one
12014      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12015      test "$hardcode_minus_L" != no; then
12016     # Linking always hardcodes the temporary library directory.
12017     hardcode_action=relink
12018   else
12019     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12020     hardcode_action=immediate
12021   fi
12022 else
12023   # We cannot hardcode anything, or else we can only hardcode existing
12024   # directories.
12025   hardcode_action=unsupported
12026 fi
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12028 $as_echo "$hardcode_action" >&6; }
12029
12030 if test "$hardcode_action" = relink ||
12031    test "$inherit_rpath" = yes; then
12032   # Fast installation is not supported
12033   enable_fast_install=no
12034 elif test "$shlibpath_overrides_runpath" = yes ||
12035      test "$enable_shared" = no; then
12036   # Fast installation is not necessary
12037   enable_fast_install=needless
12038 fi
12039
12040
12041
12042
12043
12044
12045   if test "x$enable_dlopen" != xyes; then
12046   enable_dlopen=unknown
12047   enable_dlopen_self=unknown
12048   enable_dlopen_self_static=unknown
12049 else
12050   lt_cv_dlopen=no
12051   lt_cv_dlopen_libs=
12052
12053   case $host_os in
12054   beos*)
12055     lt_cv_dlopen="load_add_on"
12056     lt_cv_dlopen_libs=
12057     lt_cv_dlopen_self=yes
12058     ;;
12059
12060   mingw* | pw32* | cegcc*)
12061     lt_cv_dlopen="LoadLibrary"
12062     lt_cv_dlopen_libs=
12063     ;;
12064
12065   cygwin*)
12066     lt_cv_dlopen="dlopen"
12067     lt_cv_dlopen_libs=
12068     ;;
12069
12070   darwin*)
12071   # if libdl is installed we need to link against it
12072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12073 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12074 if ${ac_cv_lib_dl_dlopen+:} false; then :
12075   $as_echo_n "(cached) " >&6
12076 else
12077   ac_check_lib_save_LIBS=$LIBS
12078 LIBS="-ldl  $LIBS"
12079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h.  */
12081
12082 /* Override any GCC internal prototype to avoid an error.
12083    Use char because int might match the return type of a GCC
12084    builtin and then its argument prototype would still apply.  */
12085 #ifdef __cplusplus
12086 extern "C"
12087 #endif
12088 char dlopen ();
12089 int
12090 main ()
12091 {
12092 return dlopen ();
12093   ;
12094   return 0;
12095 }
12096 _ACEOF
12097 if ac_fn_c_try_link "$LINENO"; then :
12098   ac_cv_lib_dl_dlopen=yes
12099 else
12100   ac_cv_lib_dl_dlopen=no
12101 fi
12102 rm -f core conftest.err conftest.$ac_objext \
12103     conftest$ac_exeext conftest.$ac_ext
12104 LIBS=$ac_check_lib_save_LIBS
12105 fi
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12107 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12108 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12109   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12110 else
12111
12112     lt_cv_dlopen="dyld"
12113     lt_cv_dlopen_libs=
12114     lt_cv_dlopen_self=yes
12115
12116 fi
12117
12118     ;;
12119
12120   *)
12121     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12122 if test "x$ac_cv_func_shl_load" = xyes; then :
12123   lt_cv_dlopen="shl_load"
12124 else
12125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12126 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12127 if ${ac_cv_lib_dld_shl_load+:} false; then :
12128   $as_echo_n "(cached) " >&6
12129 else
12130   ac_check_lib_save_LIBS=$LIBS
12131 LIBS="-ldld  $LIBS"
12132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133 /* end confdefs.h.  */
12134
12135 /* Override any GCC internal prototype to avoid an error.
12136    Use char because int might match the return type of a GCC
12137    builtin and then its argument prototype would still apply.  */
12138 #ifdef __cplusplus
12139 extern "C"
12140 #endif
12141 char shl_load ();
12142 int
12143 main ()
12144 {
12145 return shl_load ();
12146   ;
12147   return 0;
12148 }
12149 _ACEOF
12150 if ac_fn_c_try_link "$LINENO"; then :
12151   ac_cv_lib_dld_shl_load=yes
12152 else
12153   ac_cv_lib_dld_shl_load=no
12154 fi
12155 rm -f core conftest.err conftest.$ac_objext \
12156     conftest$ac_exeext conftest.$ac_ext
12157 LIBS=$ac_check_lib_save_LIBS
12158 fi
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12160 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12161 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12162   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12163 else
12164   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12165 if test "x$ac_cv_func_dlopen" = xyes; then :
12166   lt_cv_dlopen="dlopen"
12167 else
12168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12169 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12170 if ${ac_cv_lib_dl_dlopen+:} false; then :
12171   $as_echo_n "(cached) " >&6
12172 else
12173   ac_check_lib_save_LIBS=$LIBS
12174 LIBS="-ldl  $LIBS"
12175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h.  */
12177
12178 /* Override any GCC internal prototype to avoid an error.
12179    Use char because int might match the return type of a GCC
12180    builtin and then its argument prototype would still apply.  */
12181 #ifdef __cplusplus
12182 extern "C"
12183 #endif
12184 char dlopen ();
12185 int
12186 main ()
12187 {
12188 return dlopen ();
12189   ;
12190   return 0;
12191 }
12192 _ACEOF
12193 if ac_fn_c_try_link "$LINENO"; then :
12194   ac_cv_lib_dl_dlopen=yes
12195 else
12196   ac_cv_lib_dl_dlopen=no
12197 fi
12198 rm -f core conftest.err conftest.$ac_objext \
12199     conftest$ac_exeext conftest.$ac_ext
12200 LIBS=$ac_check_lib_save_LIBS
12201 fi
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12203 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12204 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12205   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12206 else
12207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12208 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12209 if ${ac_cv_lib_svld_dlopen+:} false; then :
12210   $as_echo_n "(cached) " >&6
12211 else
12212   ac_check_lib_save_LIBS=$LIBS
12213 LIBS="-lsvld  $LIBS"
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h.  */
12216
12217 /* Override any GCC internal prototype to avoid an error.
12218    Use char because int might match the return type of a GCC
12219    builtin and then its argument prototype would still apply.  */
12220 #ifdef __cplusplus
12221 extern "C"
12222 #endif
12223 char dlopen ();
12224 int
12225 main ()
12226 {
12227 return dlopen ();
12228   ;
12229   return 0;
12230 }
12231 _ACEOF
12232 if ac_fn_c_try_link "$LINENO"; then :
12233   ac_cv_lib_svld_dlopen=yes
12234 else
12235   ac_cv_lib_svld_dlopen=no
12236 fi
12237 rm -f core conftest.err conftest.$ac_objext \
12238     conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12240 fi
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12242 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12243 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12244   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12245 else
12246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12247 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12248 if ${ac_cv_lib_dld_dld_link+:} false; then :
12249   $as_echo_n "(cached) " >&6
12250 else
12251   ac_check_lib_save_LIBS=$LIBS
12252 LIBS="-ldld  $LIBS"
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h.  */
12255
12256 /* Override any GCC internal prototype to avoid an error.
12257    Use char because int might match the return type of a GCC
12258    builtin and then its argument prototype would still apply.  */
12259 #ifdef __cplusplus
12260 extern "C"
12261 #endif
12262 char dld_link ();
12263 int
12264 main ()
12265 {
12266 return dld_link ();
12267   ;
12268   return 0;
12269 }
12270 _ACEOF
12271 if ac_fn_c_try_link "$LINENO"; then :
12272   ac_cv_lib_dld_dld_link=yes
12273 else
12274   ac_cv_lib_dld_dld_link=no
12275 fi
12276 rm -f core conftest.err conftest.$ac_objext \
12277     conftest$ac_exeext conftest.$ac_ext
12278 LIBS=$ac_check_lib_save_LIBS
12279 fi
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12281 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12282 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12283   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12284 fi
12285
12286
12287 fi
12288
12289
12290 fi
12291
12292
12293 fi
12294
12295
12296 fi
12297
12298
12299 fi
12300
12301     ;;
12302   esac
12303
12304   if test "x$lt_cv_dlopen" != xno; then
12305     enable_dlopen=yes
12306   else
12307     enable_dlopen=no
12308   fi
12309
12310   case $lt_cv_dlopen in
12311   dlopen)
12312     save_CPPFLAGS="$CPPFLAGS"
12313     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12314
12315     save_LDFLAGS="$LDFLAGS"
12316     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12317
12318     save_LIBS="$LIBS"
12319     LIBS="$lt_cv_dlopen_libs $LIBS"
12320
12321     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12322 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12323 if ${lt_cv_dlopen_self+:} false; then :
12324   $as_echo_n "(cached) " >&6
12325 else
12326           if test "$cross_compiling" = yes; then :
12327   lt_cv_dlopen_self=cross
12328 else
12329   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12330   lt_status=$lt_dlunknown
12331   cat > conftest.$ac_ext <<_LT_EOF
12332 #line $LINENO "configure"
12333 #include "confdefs.h"
12334
12335 #if HAVE_DLFCN_H
12336 #include <dlfcn.h>
12337 #endif
12338
12339 #include <stdio.h>
12340
12341 #ifdef RTLD_GLOBAL
12342 #  define LT_DLGLOBAL           RTLD_GLOBAL
12343 #else
12344 #  ifdef DL_GLOBAL
12345 #    define LT_DLGLOBAL         DL_GLOBAL
12346 #  else
12347 #    define LT_DLGLOBAL         0
12348 #  endif
12349 #endif
12350
12351 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12352    find out it does not work in some platform. */
12353 #ifndef LT_DLLAZY_OR_NOW
12354 #  ifdef RTLD_LAZY
12355 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12356 #  else
12357 #    ifdef DL_LAZY
12358 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12359 #    else
12360 #      ifdef RTLD_NOW
12361 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12362 #      else
12363 #        ifdef DL_NOW
12364 #          define LT_DLLAZY_OR_NOW      DL_NOW
12365 #        else
12366 #          define LT_DLLAZY_OR_NOW      0
12367 #        endif
12368 #      endif
12369 #    endif
12370 #  endif
12371 #endif
12372
12373 /* When -fvisbility=hidden is used, assume the code has been annotated
12374    correspondingly for the symbols needed.  */
12375 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12376 int fnord () __attribute__((visibility("default")));
12377 #endif
12378
12379 int fnord () { return 42; }
12380 int main ()
12381 {
12382   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12383   int status = $lt_dlunknown;
12384
12385   if (self)
12386     {
12387       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12388       else
12389         {
12390           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12391           else puts (dlerror ());
12392         }
12393       /* dlclose (self); */
12394     }
12395   else
12396     puts (dlerror ());
12397
12398   return status;
12399 }
12400 _LT_EOF
12401   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12402   (eval $ac_link) 2>&5
12403   ac_status=$?
12404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12405   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12406     (./conftest; exit; ) >&5 2>/dev/null
12407     lt_status=$?
12408     case x$lt_status in
12409       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12410       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12411       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12412     esac
12413   else :
12414     # compilation failed
12415     lt_cv_dlopen_self=no
12416   fi
12417 fi
12418 rm -fr conftest*
12419
12420
12421 fi
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12423 $as_echo "$lt_cv_dlopen_self" >&6; }
12424
12425     if test "x$lt_cv_dlopen_self" = xyes; then
12426       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12427       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12428 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12429 if ${lt_cv_dlopen_self_static+:} false; then :
12430   $as_echo_n "(cached) " >&6
12431 else
12432           if test "$cross_compiling" = yes; then :
12433   lt_cv_dlopen_self_static=cross
12434 else
12435   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12436   lt_status=$lt_dlunknown
12437   cat > conftest.$ac_ext <<_LT_EOF
12438 #line $LINENO "configure"
12439 #include "confdefs.h"
12440
12441 #if HAVE_DLFCN_H
12442 #include <dlfcn.h>
12443 #endif
12444
12445 #include <stdio.h>
12446
12447 #ifdef RTLD_GLOBAL
12448 #  define LT_DLGLOBAL           RTLD_GLOBAL
12449 #else
12450 #  ifdef DL_GLOBAL
12451 #    define LT_DLGLOBAL         DL_GLOBAL
12452 #  else
12453 #    define LT_DLGLOBAL         0
12454 #  endif
12455 #endif
12456
12457 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12458    find out it does not work in some platform. */
12459 #ifndef LT_DLLAZY_OR_NOW
12460 #  ifdef RTLD_LAZY
12461 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12462 #  else
12463 #    ifdef DL_LAZY
12464 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12465 #    else
12466 #      ifdef RTLD_NOW
12467 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12468 #      else
12469 #        ifdef DL_NOW
12470 #          define LT_DLLAZY_OR_NOW      DL_NOW
12471 #        else
12472 #          define LT_DLLAZY_OR_NOW      0
12473 #        endif
12474 #      endif
12475 #    endif
12476 #  endif
12477 #endif
12478
12479 /* When -fvisbility=hidden is used, assume the code has been annotated
12480    correspondingly for the symbols needed.  */
12481 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12482 int fnord () __attribute__((visibility("default")));
12483 #endif
12484
12485 int fnord () { return 42; }
12486 int main ()
12487 {
12488   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12489   int status = $lt_dlunknown;
12490
12491   if (self)
12492     {
12493       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12494       else
12495         {
12496           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12497           else puts (dlerror ());
12498         }
12499       /* dlclose (self); */
12500     }
12501   else
12502     puts (dlerror ());
12503
12504   return status;
12505 }
12506 _LT_EOF
12507   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12508   (eval $ac_link) 2>&5
12509   ac_status=$?
12510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12511   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12512     (./conftest; exit; ) >&5 2>/dev/null
12513     lt_status=$?
12514     case x$lt_status in
12515       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12516       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12517       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12518     esac
12519   else :
12520     # compilation failed
12521     lt_cv_dlopen_self_static=no
12522   fi
12523 fi
12524 rm -fr conftest*
12525
12526
12527 fi
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12529 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12530     fi
12531
12532     CPPFLAGS="$save_CPPFLAGS"
12533     LDFLAGS="$save_LDFLAGS"
12534     LIBS="$save_LIBS"
12535     ;;
12536   esac
12537
12538   case $lt_cv_dlopen_self in
12539   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12540   *) enable_dlopen_self=unknown ;;
12541   esac
12542
12543   case $lt_cv_dlopen_self_static in
12544   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12545   *) enable_dlopen_self_static=unknown ;;
12546   esac
12547 fi
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565 striplib=
12566 old_striplib=
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12568 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12569 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12570   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12571   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12573 $as_echo "yes" >&6; }
12574 else
12575 # FIXME - insert some real tests, host_os isn't really good enough
12576   case $host_os in
12577   darwin*)
12578     if test -n "$STRIP" ; then
12579       striplib="$STRIP -x"
12580       old_striplib="$STRIP -S"
12581       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12582 $as_echo "yes" >&6; }
12583     else
12584       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 $as_echo "no" >&6; }
12586     fi
12587     ;;
12588   *)
12589     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590 $as_echo "no" >&6; }
12591     ;;
12592   esac
12593 fi
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606   # Report which library types will actually be built
12607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12608 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12610 $as_echo "$can_build_shared" >&6; }
12611
12612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12613 $as_echo_n "checking whether to build shared libraries... " >&6; }
12614   test "$can_build_shared" = "no" && enable_shared=no
12615
12616   # On AIX, shared libraries and static libraries use the same namespace, and
12617   # are all built from PIC.
12618   case $host_os in
12619   aix3*)
12620     test "$enable_shared" = yes && enable_static=no
12621     if test -n "$RANLIB"; then
12622       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12623       postinstall_cmds='$RANLIB $lib'
12624     fi
12625     ;;
12626
12627   aix[4-9]*)
12628     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12629       test "$enable_shared" = yes && enable_static=no
12630     fi
12631     ;;
12632   esac
12633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12634 $as_echo "$enable_shared" >&6; }
12635
12636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12637 $as_echo_n "checking whether to build static libraries... " >&6; }
12638   # Make sure either enable_shared or enable_static is yes.
12639   test "$enable_shared" = yes || enable_static=yes
12640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12641 $as_echo "$enable_static" >&6; }
12642
12643
12644
12645
12646 fi
12647 ac_ext=c
12648 ac_cpp='$CPP $CPPFLAGS'
12649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12652
12653 CC="$lt_save_CC"
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669         ac_config_commands="$ac_config_commands libtool"
12670
12671
12672
12673
12674 # Only expand once:
12675
12676
12677
12678 ac_ext=cpp
12679 ac_cpp='$CXXCPP $CPPFLAGS'
12680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12683 if test -z "$CXX"; then
12684   if test -n "$CCC"; then
12685     CXX=$CCC
12686   else
12687     if test -n "$ac_tool_prefix"; then
12688   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12689   do
12690     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693 $as_echo_n "checking for $ac_word... " >&6; }
12694 if ${ac_cv_prog_CXX+:} false; then :
12695   $as_echo_n "(cached) " >&6
12696 else
12697   if test -n "$CXX"; then
12698   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12699 else
12700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701 for as_dir in $PATH
12702 do
12703   IFS=$as_save_IFS
12704   test -z "$as_dir" && as_dir=.
12705     for ac_exec_ext in '' $ac_executable_extensions; do
12706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12707     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12709     break 2
12710   fi
12711 done
12712   done
12713 IFS=$as_save_IFS
12714
12715 fi
12716 fi
12717 CXX=$ac_cv_prog_CXX
12718 if test -n "$CXX"; then
12719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12720 $as_echo "$CXX" >&6; }
12721 else
12722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723 $as_echo "no" >&6; }
12724 fi
12725
12726
12727     test -n "$CXX" && break
12728   done
12729 fi
12730 if test -z "$CXX"; then
12731   ac_ct_CXX=$CXX
12732   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12733 do
12734   # Extract the first word of "$ac_prog", so it can be a program name with args.
12735 set dummy $ac_prog; ac_word=$2
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12737 $as_echo_n "checking for $ac_word... " >&6; }
12738 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12739   $as_echo_n "(cached) " >&6
12740 else
12741   if test -n "$ac_ct_CXX"; then
12742   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12743 else
12744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12745 for as_dir in $PATH
12746 do
12747   IFS=$as_save_IFS
12748   test -z "$as_dir" && as_dir=.
12749     for ac_exec_ext in '' $ac_executable_extensions; do
12750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12751     ac_cv_prog_ac_ct_CXX="$ac_prog"
12752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12753     break 2
12754   fi
12755 done
12756   done
12757 IFS=$as_save_IFS
12758
12759 fi
12760 fi
12761 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12762 if test -n "$ac_ct_CXX"; then
12763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12764 $as_echo "$ac_ct_CXX" >&6; }
12765 else
12766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767 $as_echo "no" >&6; }
12768 fi
12769
12770
12771   test -n "$ac_ct_CXX" && break
12772 done
12773
12774   if test "x$ac_ct_CXX" = x; then
12775     CXX="g++"
12776   else
12777     case $cross_compiling:$ac_tool_warned in
12778 yes:)
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12781 ac_tool_warned=yes ;;
12782 esac
12783     CXX=$ac_ct_CXX
12784   fi
12785 fi
12786
12787   fi
12788 fi
12789 # Provide some information about the compiler.
12790 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12791 set X $ac_compile
12792 ac_compiler=$2
12793 for ac_option in --version -v -V -qversion; do
12794   { { ac_try="$ac_compiler $ac_option >&5"
12795 case "(($ac_try" in
12796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797   *) ac_try_echo=$ac_try;;
12798 esac
12799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12800 $as_echo "$ac_try_echo"; } >&5
12801   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12802   ac_status=$?
12803   if test -s conftest.err; then
12804     sed '10a\
12805 ... rest of stderr output deleted ...
12806          10q' conftest.err >conftest.er1
12807     cat conftest.er1 >&5
12808   fi
12809   rm -f conftest.er1 conftest.err
12810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12811   test $ac_status = 0; }
12812 done
12813
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12815 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12816 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12817   $as_echo_n "(cached) " >&6
12818 else
12819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h.  */
12821
12822 int
12823 main ()
12824 {
12825 #ifndef __GNUC__
12826        choke me
12827 #endif
12828
12829   ;
12830   return 0;
12831 }
12832 _ACEOF
12833 if ac_fn_cxx_try_compile "$LINENO"; then :
12834   ac_compiler_gnu=yes
12835 else
12836   ac_compiler_gnu=no
12837 fi
12838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12839 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12840
12841 fi
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12843 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12844 if test $ac_compiler_gnu = yes; then
12845   GXX=yes
12846 else
12847   GXX=
12848 fi
12849 ac_test_CXXFLAGS=${CXXFLAGS+set}
12850 ac_save_CXXFLAGS=$CXXFLAGS
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12852 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12853 if ${ac_cv_prog_cxx_g+:} false; then :
12854   $as_echo_n "(cached) " >&6
12855 else
12856   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12857    ac_cxx_werror_flag=yes
12858    ac_cv_prog_cxx_g=no
12859    CXXFLAGS="-g"
12860    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h.  */
12862
12863 int
12864 main ()
12865 {
12866
12867   ;
12868   return 0;
12869 }
12870 _ACEOF
12871 if ac_fn_cxx_try_compile "$LINENO"; then :
12872   ac_cv_prog_cxx_g=yes
12873 else
12874   CXXFLAGS=""
12875       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h.  */
12877
12878 int
12879 main ()
12880 {
12881
12882   ;
12883   return 0;
12884 }
12885 _ACEOF
12886 if ac_fn_cxx_try_compile "$LINENO"; then :
12887
12888 else
12889   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12890          CXXFLAGS="-g"
12891          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892 /* end confdefs.h.  */
12893
12894 int
12895 main ()
12896 {
12897
12898   ;
12899   return 0;
12900 }
12901 _ACEOF
12902 if ac_fn_cxx_try_compile "$LINENO"; then :
12903   ac_cv_prog_cxx_g=yes
12904 fi
12905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12906 fi
12907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12908 fi
12909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12910    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12911 fi
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12913 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12914 if test "$ac_test_CXXFLAGS" = set; then
12915   CXXFLAGS=$ac_save_CXXFLAGS
12916 elif test $ac_cv_prog_cxx_g = yes; then
12917   if test "$GXX" = yes; then
12918     CXXFLAGS="-g -O2"
12919   else
12920     CXXFLAGS="-g"
12921   fi
12922 else
12923   if test "$GXX" = yes; then
12924     CXXFLAGS="-O2"
12925   else
12926     CXXFLAGS=
12927   fi
12928 fi
12929 ac_ext=c
12930 ac_cpp='$CPP $CPPFLAGS'
12931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12934
12935 depcc="$CXX"  am_compiler_list=
12936
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12938 $as_echo_n "checking dependency style of $depcc... " >&6; }
12939 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12940   $as_echo_n "(cached) " >&6
12941 else
12942   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12943   # We make a subdir and do the tests there.  Otherwise we can end up
12944   # making bogus files that we don't know about and never remove.  For
12945   # instance it was reported that on HP-UX the gcc test will end up
12946   # making a dummy file named `D' -- because `-MD' means `put the output
12947   # in D'.
12948   rm -rf conftest.dir
12949   mkdir conftest.dir
12950   # Copy depcomp to subdir because otherwise we won't find it if we're
12951   # using a relative directory.
12952   cp "$am_depcomp" conftest.dir
12953   cd conftest.dir
12954   # We will build objects and dependencies in a subdirectory because
12955   # it helps to detect inapplicable dependency modes.  For instance
12956   # both Tru64's cc and ICC support -MD to output dependencies as a
12957   # side effect of compilation, but ICC will put the dependencies in
12958   # the current directory while Tru64 will put them in the object
12959   # directory.
12960   mkdir sub
12961
12962   am_cv_CXX_dependencies_compiler_type=none
12963   if test "$am_compiler_list" = ""; then
12964      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12965   fi
12966   am__universal=false
12967   case " $depcc " in #(
12968      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12969      esac
12970
12971   for depmode in $am_compiler_list; do
12972     # Setup a source with many dependencies, because some compilers
12973     # like to wrap large dependency lists on column 80 (with \), and
12974     # we should not choose a depcomp mode which is confused by this.
12975     #
12976     # We need to recreate these files for each test, as the compiler may
12977     # overwrite some of them when testing with obscure command lines.
12978     # This happens at least with the AIX C compiler.
12979     : > sub/conftest.c
12980     for i in 1 2 3 4 5 6; do
12981       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12982       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12983       # Solaris 8's {/usr,}/bin/sh.
12984       touch sub/conftst$i.h
12985     done
12986     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12987
12988     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12989     # mode.  It turns out that the SunPro C++ compiler does not properly
12990     # handle `-M -o', and we need to detect this.  Also, some Intel
12991     # versions had trouble with output in subdirs
12992     am__obj=sub/conftest.${OBJEXT-o}
12993     am__minus_obj="-o $am__obj"
12994     case $depmode in
12995     gcc)
12996       # This depmode causes a compiler race in universal mode.
12997       test "$am__universal" = false || continue
12998       ;;
12999     nosideeffect)
13000       # after this tag, mechanisms are not by side-effect, so they'll
13001       # only be used when explicitly requested
13002       if test "x$enable_dependency_tracking" = xyes; then
13003         continue
13004       else
13005         break
13006       fi
13007       ;;
13008     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13009       # This compiler won't grok `-c -o', but also, the minuso test has
13010       # not run yet.  These depmodes are late enough in the game, and
13011       # so weak that their functioning should not be impacted.
13012       am__obj=conftest.${OBJEXT-o}
13013       am__minus_obj=
13014       ;;
13015     none) break ;;
13016     esac
13017     if depmode=$depmode \
13018        source=sub/conftest.c object=$am__obj \
13019        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13020        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13021          >/dev/null 2>conftest.err &&
13022        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13023        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13024        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13025        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13026       # icc doesn't choke on unknown options, it will just issue warnings
13027       # or remarks (even with -Werror).  So we grep stderr for any message
13028       # that says an option was ignored or not supported.
13029       # When given -MP, icc 7.0 and 7.1 complain thusly:
13030       #   icc: Command line warning: ignoring option '-M'; no argument required
13031       # The diagnosis changed in icc 8.0:
13032       #   icc: Command line remark: option '-MP' not supported
13033       if (grep 'ignoring option' conftest.err ||
13034           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13035         am_cv_CXX_dependencies_compiler_type=$depmode
13036         break
13037       fi
13038     fi
13039   done
13040
13041   cd ..
13042   rm -rf conftest.dir
13043 else
13044   am_cv_CXX_dependencies_compiler_type=none
13045 fi
13046
13047 fi
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13049 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13050 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13051
13052  if
13053   test "x$enable_dependency_tracking" != xno \
13054   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13055   am__fastdepCXX_TRUE=
13056   am__fastdepCXX_FALSE='#'
13057 else
13058   am__fastdepCXX_TRUE='#'
13059   am__fastdepCXX_FALSE=
13060 fi
13061
13062
13063
13064
13065 func_stripname_cnf ()
13066 {
13067   case ${2} in
13068   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13069   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13070   esac
13071 } # func_stripname_cnf
13072
13073       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13074     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13075     (test "X$CXX" != "Xg++"))) ; then
13076   ac_ext=cpp
13077 ac_cpp='$CXXCPP $CPPFLAGS'
13078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13082 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13083 if test -z "$CXXCPP"; then
13084   if ${ac_cv_prog_CXXCPP+:} false; then :
13085   $as_echo_n "(cached) " >&6
13086 else
13087       # Double quotes because CXXCPP needs to be expanded
13088     for CXXCPP in "$CXX -E" "/lib/cpp"
13089     do
13090       ac_preproc_ok=false
13091 for ac_cxx_preproc_warn_flag in '' yes
13092 do
13093   # Use a header file that comes with gcc, so configuring glibc
13094   # with a fresh cross-compiler works.
13095   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13096   # <limits.h> exists even on freestanding compilers.
13097   # On the NeXT, cc -E runs the code through the compiler's parser,
13098   # not just through cpp. "Syntax error" is here to catch this case.
13099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h.  */
13101 #ifdef __STDC__
13102 # include <limits.h>
13103 #else
13104 # include <assert.h>
13105 #endif
13106                      Syntax error
13107 _ACEOF
13108 if ac_fn_cxx_try_cpp "$LINENO"; then :
13109
13110 else
13111   # Broken: fails on valid input.
13112 continue
13113 fi
13114 rm -f conftest.err conftest.i conftest.$ac_ext
13115
13116   # OK, works on sane cases.  Now check whether nonexistent headers
13117   # can be detected and how.
13118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h.  */
13120 #include <ac_nonexistent.h>
13121 _ACEOF
13122 if ac_fn_cxx_try_cpp "$LINENO"; then :
13123   # Broken: success on invalid input.
13124 continue
13125 else
13126   # Passes both tests.
13127 ac_preproc_ok=:
13128 break
13129 fi
13130 rm -f conftest.err conftest.i conftest.$ac_ext
13131
13132 done
13133 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13134 rm -f conftest.i conftest.err conftest.$ac_ext
13135 if $ac_preproc_ok; then :
13136   break
13137 fi
13138
13139     done
13140     ac_cv_prog_CXXCPP=$CXXCPP
13141
13142 fi
13143   CXXCPP=$ac_cv_prog_CXXCPP
13144 else
13145   ac_cv_prog_CXXCPP=$CXXCPP
13146 fi
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13148 $as_echo "$CXXCPP" >&6; }
13149 ac_preproc_ok=false
13150 for ac_cxx_preproc_warn_flag in '' yes
13151 do
13152   # Use a header file that comes with gcc, so configuring glibc
13153   # with a fresh cross-compiler works.
13154   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13155   # <limits.h> exists even on freestanding compilers.
13156   # On the NeXT, cc -E runs the code through the compiler's parser,
13157   # not just through cpp. "Syntax error" is here to catch this case.
13158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h.  */
13160 #ifdef __STDC__
13161 # include <limits.h>
13162 #else
13163 # include <assert.h>
13164 #endif
13165                      Syntax error
13166 _ACEOF
13167 if ac_fn_cxx_try_cpp "$LINENO"; then :
13168
13169 else
13170   # Broken: fails on valid input.
13171 continue
13172 fi
13173 rm -f conftest.err conftest.i conftest.$ac_ext
13174
13175   # OK, works on sane cases.  Now check whether nonexistent headers
13176   # can be detected and how.
13177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h.  */
13179 #include <ac_nonexistent.h>
13180 _ACEOF
13181 if ac_fn_cxx_try_cpp "$LINENO"; then :
13182   # Broken: success on invalid input.
13183 continue
13184 else
13185   # Passes both tests.
13186 ac_preproc_ok=:
13187 break
13188 fi
13189 rm -f conftest.err conftest.i conftest.$ac_ext
13190
13191 done
13192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13193 rm -f conftest.i conftest.err conftest.$ac_ext
13194 if $ac_preproc_ok; then :
13195
13196 else
13197   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13199 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13200 See \`config.log' for more details" "$LINENO" 5; }
13201 fi
13202
13203 ac_ext=c
13204 ac_cpp='$CPP $CPPFLAGS'
13205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13208
13209 else
13210   _lt_caught_CXX_error=yes
13211 fi
13212
13213 ac_ext=cpp
13214 ac_cpp='$CXXCPP $CPPFLAGS'
13215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13218
13219 archive_cmds_need_lc_CXX=no
13220 allow_undefined_flag_CXX=
13221 always_export_symbols_CXX=no
13222 archive_expsym_cmds_CXX=
13223 compiler_needs_object_CXX=no
13224 export_dynamic_flag_spec_CXX=
13225 hardcode_direct_CXX=no
13226 hardcode_direct_absolute_CXX=no
13227 hardcode_libdir_flag_spec_CXX=
13228 hardcode_libdir_separator_CXX=
13229 hardcode_minus_L_CXX=no
13230 hardcode_shlibpath_var_CXX=unsupported
13231 hardcode_automatic_CXX=no
13232 inherit_rpath_CXX=no
13233 module_cmds_CXX=
13234 module_expsym_cmds_CXX=
13235 link_all_deplibs_CXX=unknown
13236 old_archive_cmds_CXX=$old_archive_cmds
13237 reload_flag_CXX=$reload_flag
13238 reload_cmds_CXX=$reload_cmds
13239 no_undefined_flag_CXX=
13240 whole_archive_flag_spec_CXX=
13241 enable_shared_with_static_runtimes_CXX=no
13242
13243 # Source file extension for C++ test sources.
13244 ac_ext=cpp
13245
13246 # Object file extension for compiled C++ test sources.
13247 objext=o
13248 objext_CXX=$objext
13249
13250 # No sense in running all these tests if we already determined that
13251 # the CXX compiler isn't working.  Some variables (like enable_shared)
13252 # are currently assumed to apply to all compilers on this platform,
13253 # and will be corrupted by setting them based on a non-working compiler.
13254 if test "$_lt_caught_CXX_error" != yes; then
13255   # Code to be used in simple compile tests
13256   lt_simple_compile_test_code="int some_variable = 0;"
13257
13258   # Code to be used in simple link tests
13259   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13260
13261   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13262
13263
13264
13265
13266
13267
13268 # If no C compiler was specified, use CC.
13269 LTCC=${LTCC-"$CC"}
13270
13271 # If no C compiler flags were specified, use CFLAGS.
13272 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13273
13274 # Allow CC to be a program name with arguments.
13275 compiler=$CC
13276
13277
13278   # save warnings/boilerplate of simple test code
13279   ac_outfile=conftest.$ac_objext
13280 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13281 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13282 _lt_compiler_boilerplate=`cat conftest.err`
13283 $RM conftest*
13284
13285   ac_outfile=conftest.$ac_objext
13286 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13287 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13288 _lt_linker_boilerplate=`cat conftest.err`
13289 $RM -r conftest*
13290
13291
13292   # Allow CC to be a program name with arguments.
13293   lt_save_CC=$CC
13294   lt_save_CFLAGS=$CFLAGS
13295   lt_save_LD=$LD
13296   lt_save_GCC=$GCC
13297   GCC=$GXX
13298   lt_save_with_gnu_ld=$with_gnu_ld
13299   lt_save_path_LD=$lt_cv_path_LD
13300   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13301     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13302   else
13303     $as_unset lt_cv_prog_gnu_ld
13304   fi
13305   if test -n "${lt_cv_path_LDCXX+set}"; then
13306     lt_cv_path_LD=$lt_cv_path_LDCXX
13307   else
13308     $as_unset lt_cv_path_LD
13309   fi
13310   test -z "${LDCXX+set}" || LD=$LDCXX
13311   CC=${CXX-"c++"}
13312   CFLAGS=$CXXFLAGS
13313   compiler=$CC
13314   compiler_CXX=$CC
13315   for cc_temp in $compiler""; do
13316   case $cc_temp in
13317     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13318     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13319     \-*) ;;
13320     *) break;;
13321   esac
13322 done
13323 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13324
13325
13326   if test -n "$compiler"; then
13327     # We don't want -fno-exception when compiling C++ code, so set the
13328     # no_builtin_flag separately
13329     if test "$GXX" = yes; then
13330       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13331     else
13332       lt_prog_compiler_no_builtin_flag_CXX=
13333     fi
13334
13335     if test "$GXX" = yes; then
13336       # Set up default GNU C++ configuration
13337
13338
13339
13340 # Check whether --with-gnu-ld was given.
13341 if test "${with_gnu_ld+set}" = set; then :
13342   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13343 else
13344   with_gnu_ld=no
13345 fi
13346
13347 ac_prog=ld
13348 if test "$GCC" = yes; then
13349   # Check if gcc -print-prog-name=ld gives a path.
13350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13351 $as_echo_n "checking for ld used by $CC... " >&6; }
13352   case $host in
13353   *-*-mingw*)
13354     # gcc leaves a trailing carriage return which upsets mingw
13355     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13356   *)
13357     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13358   esac
13359   case $ac_prog in
13360     # Accept absolute paths.
13361     [\\/]* | ?:[\\/]*)
13362       re_direlt='/[^/][^/]*/\.\./'
13363       # Canonicalize the pathname of ld
13364       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13365       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13366         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13367       done
13368       test -z "$LD" && LD="$ac_prog"
13369       ;;
13370   "")
13371     # If it fails, then pretend we aren't using GCC.
13372     ac_prog=ld
13373     ;;
13374   *)
13375     # If it is relative, then search for the first ld in PATH.
13376     with_gnu_ld=unknown
13377     ;;
13378   esac
13379 elif test "$with_gnu_ld" = yes; then
13380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13381 $as_echo_n "checking for GNU ld... " >&6; }
13382 else
13383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13384 $as_echo_n "checking for non-GNU ld... " >&6; }
13385 fi
13386 if ${lt_cv_path_LD+:} false; then :
13387   $as_echo_n "(cached) " >&6
13388 else
13389   if test -z "$LD"; then
13390   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13391   for ac_dir in $PATH; do
13392     IFS="$lt_save_ifs"
13393     test -z "$ac_dir" && ac_dir=.
13394     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13395       lt_cv_path_LD="$ac_dir/$ac_prog"
13396       # Check to see if the program is GNU ld.  I'd rather use --version,
13397       # but apparently some variants of GNU ld only accept -v.
13398       # Break only if it was the GNU/non-GNU ld that we prefer.
13399       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13400       *GNU* | *'with BFD'*)
13401         test "$with_gnu_ld" != no && break
13402         ;;
13403       *)
13404         test "$with_gnu_ld" != yes && break
13405         ;;
13406       esac
13407     fi
13408   done
13409   IFS="$lt_save_ifs"
13410 else
13411   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13412 fi
13413 fi
13414
13415 LD="$lt_cv_path_LD"
13416 if test -n "$LD"; then
13417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13418 $as_echo "$LD" >&6; }
13419 else
13420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13421 $as_echo "no" >&6; }
13422 fi
13423 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13425 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13426 if ${lt_cv_prog_gnu_ld+:} false; then :
13427   $as_echo_n "(cached) " >&6
13428 else
13429   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13430 case `$LD -v 2>&1 </dev/null` in
13431 *GNU* | *'with BFD'*)
13432   lt_cv_prog_gnu_ld=yes
13433   ;;
13434 *)
13435   lt_cv_prog_gnu_ld=no
13436   ;;
13437 esac
13438 fi
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13440 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13441 with_gnu_ld=$lt_cv_prog_gnu_ld
13442
13443
13444
13445
13446
13447
13448
13449       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13450       # archiving commands below assume that GNU ld is being used.
13451       if test "$with_gnu_ld" = yes; then
13452         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13453         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13454
13455         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13456         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13457
13458         # If archive_cmds runs LD, not CC, wlarc should be empty
13459         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13460         #     investigate it a little bit more. (MM)
13461         wlarc='${wl}'
13462
13463         # ancient GNU ld didn't support --whole-archive et. al.
13464         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13465           $GREP 'no-whole-archive' > /dev/null; then
13466           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13467         else
13468           whole_archive_flag_spec_CXX=
13469         fi
13470       else
13471         with_gnu_ld=no
13472         wlarc=
13473
13474         # A generic and very simple default shared library creation
13475         # command for GNU C++ for the case where it uses the native
13476         # linker, instead of GNU ld.  If possible, this setting should
13477         # overridden to take advantage of the native linker features on
13478         # the platform it is being used on.
13479         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13480       fi
13481
13482       # Commands to make compiler produce verbose output that lists
13483       # what "hidden" libraries, object files and flags are used when
13484       # linking a shared library.
13485       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13486
13487     else
13488       GXX=no
13489       with_gnu_ld=no
13490       wlarc=
13491     fi
13492
13493     # PORTME: fill in a description of your system's C++ link characteristics
13494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13495 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13496     ld_shlibs_CXX=yes
13497     case $host_os in
13498       aix3*)
13499         # FIXME: insert proper C++ library support
13500         ld_shlibs_CXX=no
13501         ;;
13502       aix[4-9]*)
13503         if test "$host_cpu" = ia64; then
13504           # On IA64, the linker does run time linking by default, so we don't
13505           # have to do anything special.
13506           aix_use_runtimelinking=no
13507           exp_sym_flag='-Bexport'
13508           no_entry_flag=""
13509         else
13510           aix_use_runtimelinking=no
13511
13512           # Test if we are trying to use run time linking or normal
13513           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13514           # need to do runtime linking.
13515           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13516             for ld_flag in $LDFLAGS; do
13517               case $ld_flag in
13518               *-brtl*)
13519                 aix_use_runtimelinking=yes
13520                 break
13521                 ;;
13522               esac
13523             done
13524             ;;
13525           esac
13526
13527           exp_sym_flag='-bexport'
13528           no_entry_flag='-bnoentry'
13529         fi
13530
13531         # When large executables or shared objects are built, AIX ld can
13532         # have problems creating the table of contents.  If linking a library
13533         # or program results in "error TOC overflow" add -mminimal-toc to
13534         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13535         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13536
13537         archive_cmds_CXX=''
13538         hardcode_direct_CXX=yes
13539         hardcode_direct_absolute_CXX=yes
13540         hardcode_libdir_separator_CXX=':'
13541         link_all_deplibs_CXX=yes
13542         file_list_spec_CXX='${wl}-f,'
13543
13544         if test "$GXX" = yes; then
13545           case $host_os in aix4.[012]|aix4.[012].*)
13546           # We only want to do this on AIX 4.2 and lower, the check
13547           # below for broken collect2 doesn't work under 4.3+
13548           collect2name=`${CC} -print-prog-name=collect2`
13549           if test -f "$collect2name" &&
13550              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13551           then
13552             # We have reworked collect2
13553             :
13554           else
13555             # We have old collect2
13556             hardcode_direct_CXX=unsupported
13557             # It fails to find uninstalled libraries when the uninstalled
13558             # path is not listed in the libpath.  Setting hardcode_minus_L
13559             # to unsupported forces relinking
13560             hardcode_minus_L_CXX=yes
13561             hardcode_libdir_flag_spec_CXX='-L$libdir'
13562             hardcode_libdir_separator_CXX=
13563           fi
13564           esac
13565           shared_flag='-shared'
13566           if test "$aix_use_runtimelinking" = yes; then
13567             shared_flag="$shared_flag "'${wl}-G'
13568           fi
13569         else
13570           # not using gcc
13571           if test "$host_cpu" = ia64; then
13572           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13573           # chokes on -Wl,-G. The following line is correct:
13574           shared_flag='-G'
13575           else
13576             if test "$aix_use_runtimelinking" = yes; then
13577               shared_flag='${wl}-G'
13578             else
13579               shared_flag='${wl}-bM:SRE'
13580             fi
13581           fi
13582         fi
13583
13584         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13585         # It seems that -bexpall does not export symbols beginning with
13586         # underscore (_), so it is better to generate a list of symbols to
13587         # export.
13588         always_export_symbols_CXX=yes
13589         if test "$aix_use_runtimelinking" = yes; then
13590           # Warning - without using the other runtime loading flags (-brtl),
13591           # -berok will link without error, but may produce a broken library.
13592           allow_undefined_flag_CXX='-berok'
13593           # Determine the default libpath from the value encoded in an empty
13594           # executable.
13595           if test "${lt_cv_aix_libpath+set}" = set; then
13596   aix_libpath=$lt_cv_aix_libpath
13597 else
13598   if ${lt_cv_aix_libpath__CXX+:} false; then :
13599   $as_echo_n "(cached) " >&6
13600 else
13601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h.  */
13603
13604 int
13605 main ()
13606 {
13607
13608   ;
13609   return 0;
13610 }
13611 _ACEOF
13612 if ac_fn_cxx_try_link "$LINENO"; then :
13613
13614   lt_aix_libpath_sed='
13615       /Import File Strings/,/^$/ {
13616           /^0/ {
13617               s/^0  *\([^ ]*\) *$/\1/
13618               p
13619           }
13620       }'
13621   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13622   # Check for a 64-bit object if we didn't find anything.
13623   if test -z "$lt_cv_aix_libpath__CXX"; then
13624     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13625   fi
13626 fi
13627 rm -f core conftest.err conftest.$ac_objext \
13628     conftest$ac_exeext conftest.$ac_ext
13629   if test -z "$lt_cv_aix_libpath__CXX"; then
13630     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13631   fi
13632
13633 fi
13634
13635   aix_libpath=$lt_cv_aix_libpath__CXX
13636 fi
13637
13638           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13639
13640           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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13641         else
13642           if test "$host_cpu" = ia64; then
13643             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13644             allow_undefined_flag_CXX="-z nodefs"
13645             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"
13646           else
13647             # Determine the default libpath from the value encoded in an
13648             # empty executable.
13649             if test "${lt_cv_aix_libpath+set}" = set; then
13650   aix_libpath=$lt_cv_aix_libpath
13651 else
13652   if ${lt_cv_aix_libpath__CXX+:} false; then :
13653   $as_echo_n "(cached) " >&6
13654 else
13655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656 /* end confdefs.h.  */
13657
13658 int
13659 main ()
13660 {
13661
13662   ;
13663   return 0;
13664 }
13665 _ACEOF
13666 if ac_fn_cxx_try_link "$LINENO"; then :
13667
13668   lt_aix_libpath_sed='
13669       /Import File Strings/,/^$/ {
13670           /^0/ {
13671               s/^0  *\([^ ]*\) *$/\1/
13672               p
13673           }
13674       }'
13675   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13676   # Check for a 64-bit object if we didn't find anything.
13677   if test -z "$lt_cv_aix_libpath__CXX"; then
13678     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13679   fi
13680 fi
13681 rm -f core conftest.err conftest.$ac_objext \
13682     conftest$ac_exeext conftest.$ac_ext
13683   if test -z "$lt_cv_aix_libpath__CXX"; then
13684     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13685   fi
13686
13687 fi
13688
13689   aix_libpath=$lt_cv_aix_libpath__CXX
13690 fi
13691
13692             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13693             # Warning - without using the other run time loading flags,
13694             # -berok will link without error, but may produce a broken library.
13695             no_undefined_flag_CXX=' ${wl}-bernotok'
13696             allow_undefined_flag_CXX=' ${wl}-berok'
13697             if test "$with_gnu_ld" = yes; then
13698               # We only use this code for GNU lds that support --whole-archive.
13699               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13700             else
13701               # Exported symbols can be pulled into shared objects from archives
13702               whole_archive_flag_spec_CXX='$convenience'
13703             fi
13704             archive_cmds_need_lc_CXX=yes
13705             # This is similar to how AIX traditionally builds its shared
13706             # libraries.
13707             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'
13708           fi
13709         fi
13710         ;;
13711
13712       beos*)
13713         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13714           allow_undefined_flag_CXX=unsupported
13715           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13716           # support --undefined.  This deserves some investigation.  FIXME
13717           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13718         else
13719           ld_shlibs_CXX=no
13720         fi
13721         ;;
13722
13723       chorus*)
13724         case $cc_basename in
13725           *)
13726           # FIXME: insert proper C++ library support
13727           ld_shlibs_CXX=no
13728           ;;
13729         esac
13730         ;;
13731
13732       cygwin* | mingw* | pw32* | cegcc*)
13733         case $GXX,$cc_basename in
13734         ,cl* | no,cl*)
13735           # Native MSVC
13736           # hardcode_libdir_flag_spec is actually meaningless, as there is
13737           # no search path for DLLs.
13738           hardcode_libdir_flag_spec_CXX=' '
13739           allow_undefined_flag_CXX=unsupported
13740           always_export_symbols_CXX=yes
13741           file_list_spec_CXX='@'
13742           # Tell ltmain to make .lib files, not .a files.
13743           libext=lib
13744           # Tell ltmain to make .dll files, not .so files.
13745           shrext_cmds=".dll"
13746           # FIXME: Setting linknames here is a bad hack.
13747           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13748           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13749               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13750             else
13751               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13752             fi~
13753             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13754             linknames='
13755           # The linker will not automatically build a static lib if we build a DLL.
13756           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13757           enable_shared_with_static_runtimes_CXX=yes
13758           # Don't use ranlib
13759           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13760           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13761             lt_tool_outputfile="@TOOL_OUTPUT@"~
13762             case $lt_outputfile in
13763               *.exe|*.EXE) ;;
13764               *)
13765                 lt_outputfile="$lt_outputfile.exe"
13766                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13767                 ;;
13768             esac~
13769             func_to_tool_file "$lt_outputfile"~
13770             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13771               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13772               $RM "$lt_outputfile.manifest";
13773             fi'
13774           ;;
13775         *)
13776           # g++
13777           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13778           # as there is no search path for DLLs.
13779           hardcode_libdir_flag_spec_CXX='-L$libdir'
13780           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13781           allow_undefined_flag_CXX=unsupported
13782           always_export_symbols_CXX=no
13783           enable_shared_with_static_runtimes_CXX=yes
13784
13785           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13786             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'
13787             # If the export-symbols file already is a .def file (1st line
13788             # is EXPORTS), use it as is; otherwise, prepend...
13789             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13790               cp $export_symbols $output_objdir/$soname.def;
13791             else
13792               echo EXPORTS > $output_objdir/$soname.def;
13793               cat $export_symbols >> $output_objdir/$soname.def;
13794             fi~
13795             $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'
13796           else
13797             ld_shlibs_CXX=no
13798           fi
13799           ;;
13800         esac
13801         ;;
13802       darwin* | rhapsody*)
13803
13804
13805   archive_cmds_need_lc_CXX=no
13806   hardcode_direct_CXX=no
13807   hardcode_automatic_CXX=yes
13808   hardcode_shlibpath_var_CXX=unsupported
13809   if test "$lt_cv_ld_force_load" = "yes"; then
13810     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13811
13812   else
13813     whole_archive_flag_spec_CXX=''
13814   fi
13815   link_all_deplibs_CXX=yes
13816   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13817   case $cc_basename in
13818      ifort*) _lt_dar_can_shared=yes ;;
13819      *) _lt_dar_can_shared=$GCC ;;
13820   esac
13821   if test "$_lt_dar_can_shared" = "yes"; then
13822     output_verbose_link_cmd=func_echo_all
13823     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}"
13824     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13825     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}"
13826     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}"
13827        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13828       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}"
13829       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}"
13830     fi
13831
13832   else
13833   ld_shlibs_CXX=no
13834   fi
13835
13836         ;;
13837
13838       dgux*)
13839         case $cc_basename in
13840           ec++*)
13841             # FIXME: insert proper C++ library support
13842             ld_shlibs_CXX=no
13843             ;;
13844           ghcx*)
13845             # Green Hills C++ Compiler
13846             # FIXME: insert proper C++ library support
13847             ld_shlibs_CXX=no
13848             ;;
13849           *)
13850             # FIXME: insert proper C++ library support
13851             ld_shlibs_CXX=no
13852             ;;
13853         esac
13854         ;;
13855
13856       freebsd2.*)
13857         # C++ shared libraries reported to be fairly broken before
13858         # switch to ELF
13859         ld_shlibs_CXX=no
13860         ;;
13861
13862       freebsd-elf*)
13863         archive_cmds_need_lc_CXX=no
13864         ;;
13865
13866       freebsd* | dragonfly*)
13867         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13868         # conventions
13869         ld_shlibs_CXX=yes
13870         ;;
13871
13872       haiku*)
13873         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13874         link_all_deplibs_CXX=yes
13875         ;;
13876
13877       hpux9*)
13878         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13879         hardcode_libdir_separator_CXX=:
13880         export_dynamic_flag_spec_CXX='${wl}-E'
13881         hardcode_direct_CXX=yes
13882         hardcode_minus_L_CXX=yes # Not in the search PATH,
13883                                              # but as the default
13884                                              # location of the library.
13885
13886         case $cc_basename in
13887           CC*)
13888             # FIXME: insert proper C++ library support
13889             ld_shlibs_CXX=no
13890             ;;
13891           aCC*)
13892             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'
13893             # Commands to make compiler produce verbose output that lists
13894             # what "hidden" libraries, object files and flags are used when
13895             # linking a shared library.
13896             #
13897             # There doesn't appear to be a way to prevent this compiler from
13898             # explicitly linking system object files so we need to strip them
13899             # from the output so that they don't get included in the library
13900             # dependencies.
13901             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; func_echo_all "$list"'
13902             ;;
13903           *)
13904             if test "$GXX" = yes; then
13905               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13906             else
13907               # FIXME: insert proper C++ library support
13908               ld_shlibs_CXX=no
13909             fi
13910             ;;
13911         esac
13912         ;;
13913
13914       hpux10*|hpux11*)
13915         if test $with_gnu_ld = no; then
13916           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13917           hardcode_libdir_separator_CXX=:
13918
13919           case $host_cpu in
13920             hppa*64*|ia64*)
13921               ;;
13922             *)
13923               export_dynamic_flag_spec_CXX='${wl}-E'
13924               ;;
13925           esac
13926         fi
13927         case $host_cpu in
13928           hppa*64*|ia64*)
13929             hardcode_direct_CXX=no
13930             hardcode_shlibpath_var_CXX=no
13931             ;;
13932           *)
13933             hardcode_direct_CXX=yes
13934             hardcode_direct_absolute_CXX=yes
13935             hardcode_minus_L_CXX=yes # Not in the search PATH,
13936                                                  # but as the default
13937                                                  # location of the library.
13938             ;;
13939         esac
13940
13941         case $cc_basename in
13942           CC*)
13943             # FIXME: insert proper C++ library support
13944             ld_shlibs_CXX=no
13945             ;;
13946           aCC*)
13947             case $host_cpu in
13948               hppa*64*)
13949                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13950                 ;;
13951               ia64*)
13952                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13953                 ;;
13954               *)
13955                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13956                 ;;
13957             esac
13958             # Commands to make compiler produce verbose output that lists
13959             # what "hidden" libraries, object files and flags are used when
13960             # linking a shared library.
13961             #
13962             # There doesn't appear to be a way to prevent this compiler from
13963             # explicitly linking system object files so we need to strip them
13964             # from the output so that they don't get included in the library
13965             # dependencies.
13966             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; func_echo_all "$list"'
13967             ;;
13968           *)
13969             if test "$GXX" = yes; then
13970               if test $with_gnu_ld = no; then
13971                 case $host_cpu in
13972                   hppa*64*)
13973                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13974                     ;;
13975                   ia64*)
13976                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13977                     ;;
13978                   *)
13979                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13980                     ;;
13981                 esac
13982               fi
13983             else
13984               # FIXME: insert proper C++ library support
13985               ld_shlibs_CXX=no
13986             fi
13987             ;;
13988         esac
13989         ;;
13990
13991       interix[3-9]*)
13992         hardcode_direct_CXX=no
13993         hardcode_shlibpath_var_CXX=no
13994         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13995         export_dynamic_flag_spec_CXX='${wl}-E'
13996         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13997         # Instead, shared libraries are loaded at an image base (0x10000000 by
13998         # default) and relocated if they conflict, which is a slow very memory
13999         # consuming and fragmenting process.  To avoid this, we pick a random,
14000         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14001         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14002         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'
14003         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'
14004         ;;
14005       irix5* | irix6*)
14006         case $cc_basename in
14007           CC*)
14008             # SGI C++
14009             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14010
14011             # Archives containing C++ object files must be created using
14012             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14013             # necessary to make sure instantiated templates are included
14014             # in the archive.
14015             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14016             ;;
14017           *)
14018             if test "$GXX" = yes; then
14019               if test "$with_gnu_ld" = no; then
14020                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14021               else
14022                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14023               fi
14024             fi
14025             link_all_deplibs_CXX=yes
14026             ;;
14027         esac
14028         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14029         hardcode_libdir_separator_CXX=:
14030         inherit_rpath_CXX=yes
14031         ;;
14032
14033       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14034         case $cc_basename in
14035           KCC*)
14036             # Kuck and Associates, Inc. (KAI) C++ Compiler
14037
14038             # KCC will only create a shared library if the output file
14039             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14040             # to its proper name (with version) after linking.
14041             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'
14042             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'
14043             # Commands to make compiler produce verbose output that lists
14044             # what "hidden" libraries, object files and flags are used when
14045             # linking a shared library.
14046             #
14047             # There doesn't appear to be a way to prevent this compiler from
14048             # explicitly linking system object files so we need to strip them
14049             # from the output so that they don't get included in the library
14050             # dependencies.
14051             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; func_echo_all "$list"'
14052
14053             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14054             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14055
14056             # Archives containing C++ object files must be created using
14057             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14058             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14059             ;;
14060           icpc* | ecpc* )
14061             # Intel C++
14062             with_gnu_ld=yes
14063             # version 8.0 and above of icpc choke on multiply defined symbols
14064             # if we add $predep_objects and $postdep_objects, however 7.1 and
14065             # earlier do not add the objects themselves.
14066             case `$CC -V 2>&1` in
14067               *"Version 7."*)
14068                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14069                 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'
14070                 ;;
14071               *)  # Version 8.0 or newer
14072                 tmp_idyn=
14073                 case $host_cpu in
14074                   ia64*) tmp_idyn=' -i_dynamic';;
14075                 esac
14076                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14077                 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'
14078                 ;;
14079             esac
14080             archive_cmds_need_lc_CXX=no
14081             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14082             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14083             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14084             ;;
14085           pgCC* | pgcpp*)
14086             # Portland Group C++ compiler
14087             case `$CC -V` in
14088             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14089               prelink_cmds_CXX='tpldir=Template.dir~
14090                 rm -rf $tpldir~
14091                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14092                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14093               old_archive_cmds_CXX='tpldir=Template.dir~
14094                 rm -rf $tpldir~
14095                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14096                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14097                 $RANLIB $oldlib'
14098               archive_cmds_CXX='tpldir=Template.dir~
14099                 rm -rf $tpldir~
14100                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14101                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14102               archive_expsym_cmds_CXX='tpldir=Template.dir~
14103                 rm -rf $tpldir~
14104                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14105                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14106               ;;
14107             *) # Version 6 and above use weak symbols
14108               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14109               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'
14110               ;;
14111             esac
14112
14113             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14114             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14115             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14116             ;;
14117           cxx*)
14118             # Compaq C++
14119             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14120             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'
14121
14122             runpath_var=LD_RUN_PATH
14123             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14124             hardcode_libdir_separator_CXX=:
14125
14126             # Commands to make compiler produce verbose output that lists
14127             # what "hidden" libraries, object files and flags are used when
14128             # linking a shared library.
14129             #
14130             # There doesn't appear to be a way to prevent this compiler from
14131             # explicitly linking system object files so we need to strip them
14132             # from the output so that they don't get included in the library
14133             # dependencies.
14134             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14135             ;;
14136           xl* | mpixl* | bgxl*)
14137             # IBM XL 8.0 on PPC, with GNU ld
14138             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14139             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14140             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14141             if test "x$supports_anon_versioning" = xyes; then
14142               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14143                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14144                 echo "local: *; };" >> $output_objdir/$libname.ver~
14145                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14146             fi
14147             ;;
14148           *)
14149             case `$CC -V 2>&1 | sed 5q` in
14150             *Sun\ C*)
14151               # Sun C++ 5.9
14152               no_undefined_flag_CXX=' -zdefs'
14153               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14154               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'
14155               hardcode_libdir_flag_spec_CXX='-R$libdir'
14156               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14157               compiler_needs_object_CXX=yes
14158
14159               # Not sure whether something based on
14160               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14161               # would be better.
14162               output_verbose_link_cmd='func_echo_all'
14163
14164               # Archives containing C++ object files must be created using
14165               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14166               # necessary to make sure instantiated templates are included
14167               # in the archive.
14168               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14169               ;;
14170             esac
14171             ;;
14172         esac
14173         ;;
14174
14175       lynxos*)
14176         # FIXME: insert proper C++ library support
14177         ld_shlibs_CXX=no
14178         ;;
14179
14180       m88k*)
14181         # FIXME: insert proper C++ library support
14182         ld_shlibs_CXX=no
14183         ;;
14184
14185       mvs*)
14186         case $cc_basename in
14187           cxx*)
14188             # FIXME: insert proper C++ library support
14189             ld_shlibs_CXX=no
14190             ;;
14191           *)
14192             # FIXME: insert proper C++ library support
14193             ld_shlibs_CXX=no
14194             ;;
14195         esac
14196         ;;
14197
14198       netbsd*)
14199         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14200           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14201           wlarc=
14202           hardcode_libdir_flag_spec_CXX='-R$libdir'
14203           hardcode_direct_CXX=yes
14204           hardcode_shlibpath_var_CXX=no
14205         fi
14206         # Workaround some broken pre-1.5 toolchains
14207         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14208         ;;
14209
14210       *nto* | *qnx*)
14211         ld_shlibs_CXX=yes
14212         ;;
14213
14214       openbsd2*)
14215         # C++ shared libraries are fairly broken
14216         ld_shlibs_CXX=no
14217         ;;
14218
14219       openbsd*)
14220         if test -f /usr/libexec/ld.so; then
14221           hardcode_direct_CXX=yes
14222           hardcode_shlibpath_var_CXX=no
14223           hardcode_direct_absolute_CXX=yes
14224           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14225           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14226           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14227             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14228             export_dynamic_flag_spec_CXX='${wl}-E'
14229             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14230           fi
14231           output_verbose_link_cmd=func_echo_all
14232         else
14233           ld_shlibs_CXX=no
14234         fi
14235         ;;
14236
14237       osf3* | osf4* | osf5*)
14238         case $cc_basename in
14239           KCC*)
14240             # Kuck and Associates, Inc. (KAI) C++ Compiler
14241
14242             # KCC will only create a shared library if the output file
14243             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14244             # to its proper name (with version) after linking.
14245             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'
14246
14247             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14248             hardcode_libdir_separator_CXX=:
14249
14250             # Archives containing C++ object files must be created using
14251             # the KAI C++ compiler.
14252             case $host in
14253               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14254               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14255             esac
14256             ;;
14257           RCC*)
14258             # Rational C++ 2.4.1
14259             # FIXME: insert proper C++ library support
14260             ld_shlibs_CXX=no
14261             ;;
14262           cxx*)
14263             case $host in
14264               osf3*)
14265                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14266                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14267                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14268                 ;;
14269               *)
14270                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14271                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14272                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14273                   echo "-hidden">> $lib.exp~
14274                   $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 "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14275                   $RM $lib.exp'
14276                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14277                 ;;
14278             esac
14279
14280             hardcode_libdir_separator_CXX=:
14281
14282             # Commands to make compiler produce verbose output that lists
14283             # what "hidden" libraries, object files and flags are used when
14284             # linking a shared library.
14285             #
14286             # There doesn't appear to be a way to prevent this compiler from
14287             # explicitly linking system object files so we need to strip them
14288             # from the output so that they don't get included in the library
14289             # dependencies.
14290             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14291             ;;
14292           *)
14293             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14294               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14295               case $host in
14296                 osf3*)
14297                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14298                   ;;
14299                 *)
14300                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14301                   ;;
14302               esac
14303
14304               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14305               hardcode_libdir_separator_CXX=:
14306
14307               # Commands to make compiler produce verbose output that lists
14308               # what "hidden" libraries, object files and flags are used when
14309               # linking a shared library.
14310               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14311
14312             else
14313               # FIXME: insert proper C++ library support
14314               ld_shlibs_CXX=no
14315             fi
14316             ;;
14317         esac
14318         ;;
14319
14320       psos*)
14321         # FIXME: insert proper C++ library support
14322         ld_shlibs_CXX=no
14323         ;;
14324
14325       sunos4*)
14326         case $cc_basename in
14327           CC*)
14328             # Sun C++ 4.x
14329             # FIXME: insert proper C++ library support
14330             ld_shlibs_CXX=no
14331             ;;
14332           lcc*)
14333             # Lucid
14334             # FIXME: insert proper C++ library support
14335             ld_shlibs_CXX=no
14336             ;;
14337           *)
14338             # FIXME: insert proper C++ library support
14339             ld_shlibs_CXX=no
14340             ;;
14341         esac
14342         ;;
14343
14344       solaris*)
14345         case $cc_basename in
14346           CC* | sunCC*)
14347             # Sun C++ 4.2, 5.x and Centerline C++
14348             archive_cmds_need_lc_CXX=yes
14349             no_undefined_flag_CXX=' -zdefs'
14350             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14351             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14352               $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'
14353
14354             hardcode_libdir_flag_spec_CXX='-R$libdir'
14355             hardcode_shlibpath_var_CXX=no
14356             case $host_os in
14357               solaris2.[0-5] | solaris2.[0-5].*) ;;
14358               *)
14359                 # The compiler driver will combine and reorder linker options,
14360                 # but understands `-z linker_flag'.
14361                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14362                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14363                 ;;
14364             esac
14365             link_all_deplibs_CXX=yes
14366
14367             output_verbose_link_cmd='func_echo_all'
14368
14369             # Archives containing C++ object files must be created using
14370             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14371             # necessary to make sure instantiated templates are included
14372             # in the archive.
14373             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14374             ;;
14375           gcx*)
14376             # Green Hills C++ Compiler
14377             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14378
14379             # The C++ compiler must be used to create the archive.
14380             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14381             ;;
14382           *)
14383             # GNU C++ compiler with Solaris linker
14384             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14385               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14386               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14387                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14388                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14389                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14390
14391                 # Commands to make compiler produce verbose output that lists
14392                 # what "hidden" libraries, object files and flags are used when
14393                 # linking a shared library.
14394                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14395               else
14396                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14397                 # platform.
14398                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14399                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14400                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14401
14402                 # Commands to make compiler produce verbose output that lists
14403                 # what "hidden" libraries, object files and flags are used when
14404                 # linking a shared library.
14405                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14406               fi
14407
14408               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14409               case $host_os in
14410                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14411                 *)
14412                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14413                   ;;
14414               esac
14415             fi
14416             ;;
14417         esac
14418         ;;
14419
14420     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14421       no_undefined_flag_CXX='${wl}-z,text'
14422       archive_cmds_need_lc_CXX=no
14423       hardcode_shlibpath_var_CXX=no
14424       runpath_var='LD_RUN_PATH'
14425
14426       case $cc_basename in
14427         CC*)
14428           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14429           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14430           ;;
14431         *)
14432           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14433           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14434           ;;
14435       esac
14436       ;;
14437
14438       sysv5* | sco3.2v5* | sco5v6*)
14439         # Note: We can NOT use -z defs as we might desire, because we do not
14440         # link with -lc, and that would cause any symbols used from libc to
14441         # always be unresolved, which means just about no library would
14442         # ever link correctly.  If we're not using GNU ld we use -z text
14443         # though, which does catch some bad symbols but isn't as heavy-handed
14444         # as -z defs.
14445         no_undefined_flag_CXX='${wl}-z,text'
14446         allow_undefined_flag_CXX='${wl}-z,nodefs'
14447         archive_cmds_need_lc_CXX=no
14448         hardcode_shlibpath_var_CXX=no
14449         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14450         hardcode_libdir_separator_CXX=':'
14451         link_all_deplibs_CXX=yes
14452         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14453         runpath_var='LD_RUN_PATH'
14454
14455         case $cc_basename in
14456           CC*)
14457             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14458             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14459             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14460               '"$old_archive_cmds_CXX"
14461             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14462               '"$reload_cmds_CXX"
14463             ;;
14464           *)
14465             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14466             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14467             ;;
14468         esac
14469       ;;
14470
14471       tandem*)
14472         case $cc_basename in
14473           NCC*)
14474             # NonStop-UX NCC 3.20
14475             # FIXME: insert proper C++ library support
14476             ld_shlibs_CXX=no
14477             ;;
14478           *)
14479             # FIXME: insert proper C++ library support
14480             ld_shlibs_CXX=no
14481             ;;
14482         esac
14483         ;;
14484
14485       vxworks*)
14486         # FIXME: insert proper C++ library support
14487         ld_shlibs_CXX=no
14488         ;;
14489
14490       *)
14491         # FIXME: insert proper C++ library support
14492         ld_shlibs_CXX=no
14493         ;;
14494     esac
14495
14496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14497 $as_echo "$ld_shlibs_CXX" >&6; }
14498     test "$ld_shlibs_CXX" = no && can_build_shared=no
14499
14500     GCC_CXX="$GXX"
14501     LD_CXX="$LD"
14502
14503     ## CAVEAT EMPTOR:
14504     ## There is no encapsulation within the following macros, do not change
14505     ## the running order or otherwise move them around unless you know exactly
14506     ## what you are doing...
14507     # Dependencies to place before and after the object being linked:
14508 predep_objects_CXX=
14509 postdep_objects_CXX=
14510 predeps_CXX=
14511 postdeps_CXX=
14512 compiler_lib_search_path_CXX=
14513
14514 cat > conftest.$ac_ext <<_LT_EOF
14515 class Foo
14516 {
14517 public:
14518   Foo (void) { a = 0; }
14519 private:
14520   int a;
14521 };
14522 _LT_EOF
14523
14524
14525 _lt_libdeps_save_CFLAGS=$CFLAGS
14526 case "$CC $CFLAGS " in #(
14527 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14528 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14529 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14530 esac
14531
14532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14533   (eval $ac_compile) 2>&5
14534   ac_status=$?
14535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14536   test $ac_status = 0; }; then
14537   # Parse the compiler output and extract the necessary
14538   # objects, libraries and library flags.
14539
14540   # Sentinel used to keep track of whether or not we are before
14541   # the conftest object file.
14542   pre_test_object_deps_done=no
14543
14544   for p in `eval "$output_verbose_link_cmd"`; do
14545     case ${prev}${p} in
14546
14547     -L* | -R* | -l*)
14548        # Some compilers place space between "-{L,R}" and the path.
14549        # Remove the space.
14550        if test $p = "-L" ||
14551           test $p = "-R"; then
14552          prev=$p
14553          continue
14554        fi
14555
14556        # Expand the sysroot to ease extracting the directories later.
14557        if test -z "$prev"; then
14558          case $p in
14559          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14560          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14561          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14562          esac
14563        fi
14564        case $p in
14565        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14566        esac
14567        if test "$pre_test_object_deps_done" = no; then
14568          case ${prev} in
14569          -L | -R)
14570            # Internal compiler library paths should come after those
14571            # provided the user.  The postdeps already come after the
14572            # user supplied libs so there is no need to process them.
14573            if test -z "$compiler_lib_search_path_CXX"; then
14574              compiler_lib_search_path_CXX="${prev}${p}"
14575            else
14576              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14577            fi
14578            ;;
14579          # The "-l" case would never come before the object being
14580          # linked, so don't bother handling this case.
14581          esac
14582        else
14583          if test -z "$postdeps_CXX"; then
14584            postdeps_CXX="${prev}${p}"
14585          else
14586            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14587          fi
14588        fi
14589        prev=
14590        ;;
14591
14592     *.lto.$objext) ;; # Ignore GCC LTO objects
14593     *.$objext)
14594        # This assumes that the test object file only shows up
14595        # once in the compiler output.
14596        if test "$p" = "conftest.$objext"; then
14597          pre_test_object_deps_done=yes
14598          continue
14599        fi
14600
14601        if test "$pre_test_object_deps_done" = no; then
14602          if test -z "$predep_objects_CXX"; then
14603            predep_objects_CXX="$p"
14604          else
14605            predep_objects_CXX="$predep_objects_CXX $p"
14606          fi
14607        else
14608          if test -z "$postdep_objects_CXX"; then
14609            postdep_objects_CXX="$p"
14610          else
14611            postdep_objects_CXX="$postdep_objects_CXX $p"
14612          fi
14613        fi
14614        ;;
14615
14616     *) ;; # Ignore the rest.
14617
14618     esac
14619   done
14620
14621   # Clean up.
14622   rm -f a.out a.exe
14623 else
14624   echo "libtool.m4: error: problem compiling CXX test program"
14625 fi
14626
14627 $RM -f confest.$objext
14628 CFLAGS=$_lt_libdeps_save_CFLAGS
14629
14630 # PORTME: override above test on systems where it is broken
14631 case $host_os in
14632 interix[3-9]*)
14633   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14634   # hack all around it, let's just trust "g++" to DTRT.
14635   predep_objects_CXX=
14636   postdep_objects_CXX=
14637   postdeps_CXX=
14638   ;;
14639
14640 linux*)
14641   case `$CC -V 2>&1 | sed 5q` in
14642   *Sun\ C*)
14643     # Sun C++ 5.9
14644
14645     # The more standards-conforming stlport4 library is
14646     # incompatible with the Cstd library. Avoid specifying
14647     # it if it's in CXXFLAGS. Ignore libCrun as
14648     # -library=stlport4 depends on it.
14649     case " $CXX $CXXFLAGS " in
14650     *" -library=stlport4 "*)
14651       solaris_use_stlport4=yes
14652       ;;
14653     esac
14654
14655     if test "$solaris_use_stlport4" != yes; then
14656       postdeps_CXX='-library=Cstd -library=Crun'
14657     fi
14658     ;;
14659   esac
14660   ;;
14661
14662 solaris*)
14663   case $cc_basename in
14664   CC* | sunCC*)
14665     # The more standards-conforming stlport4 library is
14666     # incompatible with the Cstd library. Avoid specifying
14667     # it if it's in CXXFLAGS. Ignore libCrun as
14668     # -library=stlport4 depends on it.
14669     case " $CXX $CXXFLAGS " in
14670     *" -library=stlport4 "*)
14671       solaris_use_stlport4=yes
14672       ;;
14673     esac
14674
14675     # Adding this requires a known-good setup of shared libraries for
14676     # Sun compiler versions before 5.6, else PIC objects from an old
14677     # archive will be linked into the output, leading to subtle bugs.
14678     if test "$solaris_use_stlport4" != yes; then
14679       postdeps_CXX='-library=Cstd -library=Crun'
14680     fi
14681     ;;
14682   esac
14683   ;;
14684 esac
14685
14686
14687 case " $postdeps_CXX " in
14688 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14689 esac
14690  compiler_lib_search_dirs_CXX=
14691 if test -n "${compiler_lib_search_path_CXX}"; then
14692  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14693 fi
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725     lt_prog_compiler_wl_CXX=
14726 lt_prog_compiler_pic_CXX=
14727 lt_prog_compiler_static_CXX=
14728
14729
14730   # C++ specific cases for pic, static, wl, etc.
14731   if test "$GXX" = yes; then
14732     lt_prog_compiler_wl_CXX='-Wl,'
14733     lt_prog_compiler_static_CXX='-static'
14734
14735     case $host_os in
14736     aix*)
14737       # All AIX code is PIC.
14738       if test "$host_cpu" = ia64; then
14739         # AIX 5 now supports IA64 processor
14740         lt_prog_compiler_static_CXX='-Bstatic'
14741       fi
14742       ;;
14743
14744     amigaos*)
14745       case $host_cpu in
14746       powerpc)
14747             # see comment about AmigaOS4 .so support
14748             lt_prog_compiler_pic_CXX='-fPIC'
14749         ;;
14750       m68k)
14751             # FIXME: we need at least 68020 code to build shared libraries, but
14752             # adding the `-m68020' flag to GCC prevents building anything better,
14753             # like `-m68040'.
14754             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14755         ;;
14756       esac
14757       ;;
14758
14759     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14760       # PIC is the default for these OSes.
14761       ;;
14762     mingw* | cygwin* | os2* | pw32* | cegcc*)
14763       # This hack is so that the source file can tell whether it is being
14764       # built for inclusion in a dll (and should export symbols for example).
14765       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14766       # (--disable-auto-import) libraries
14767       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14768       ;;
14769     darwin* | rhapsody*)
14770       # PIC is the default on this platform
14771       # Common symbols not allowed in MH_DYLIB files
14772       lt_prog_compiler_pic_CXX='-fno-common'
14773       ;;
14774     *djgpp*)
14775       # DJGPP does not support shared libraries at all
14776       lt_prog_compiler_pic_CXX=
14777       ;;
14778     haiku*)
14779       # PIC is the default for Haiku.
14780       # The "-static" flag exists, but is broken.
14781       lt_prog_compiler_static_CXX=
14782       ;;
14783     interix[3-9]*)
14784       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14785       # Instead, we relocate shared libraries at runtime.
14786       ;;
14787     sysv4*MP*)
14788       if test -d /usr/nec; then
14789         lt_prog_compiler_pic_CXX=-Kconform_pic
14790       fi
14791       ;;
14792     hpux*)
14793       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14794       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14795       # sets the default TLS model and affects inlining.
14796       case $host_cpu in
14797       hppa*64*)
14798         ;;
14799       *)
14800         lt_prog_compiler_pic_CXX='-fPIC'
14801         ;;
14802       esac
14803       ;;
14804     *qnx* | *nto*)
14805       # QNX uses GNU C++, but need to define -shared option too, otherwise
14806       # it will coredump.
14807       lt_prog_compiler_pic_CXX='-fPIC -shared'
14808       ;;
14809     *)
14810       lt_prog_compiler_pic_CXX='-fPIC'
14811       ;;
14812     esac
14813   else
14814     case $host_os in
14815       aix[4-9]*)
14816         # All AIX code is PIC.
14817         if test "$host_cpu" = ia64; then
14818           # AIX 5 now supports IA64 processor
14819           lt_prog_compiler_static_CXX='-Bstatic'
14820         else
14821           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14822         fi
14823         ;;
14824       chorus*)
14825         case $cc_basename in
14826         cxch68*)
14827           # Green Hills C++ Compiler
14828           # _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"
14829           ;;
14830         esac
14831         ;;
14832       mingw* | cygwin* | os2* | pw32* | cegcc*)
14833         # This hack is so that the source file can tell whether it is being
14834         # built for inclusion in a dll (and should export symbols for example).
14835         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14836         ;;
14837       dgux*)
14838         case $cc_basename in
14839           ec++*)
14840             lt_prog_compiler_pic_CXX='-KPIC'
14841             ;;
14842           ghcx*)
14843             # Green Hills C++ Compiler
14844             lt_prog_compiler_pic_CXX='-pic'
14845             ;;
14846           *)
14847             ;;
14848         esac
14849         ;;
14850       freebsd* | dragonfly*)
14851         # FreeBSD uses GNU C++
14852         ;;
14853       hpux9* | hpux10* | hpux11*)
14854         case $cc_basename in
14855           CC*)
14856             lt_prog_compiler_wl_CXX='-Wl,'
14857             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14858             if test "$host_cpu" != ia64; then
14859               lt_prog_compiler_pic_CXX='+Z'
14860             fi
14861             ;;
14862           aCC*)
14863             lt_prog_compiler_wl_CXX='-Wl,'
14864             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14865             case $host_cpu in
14866             hppa*64*|ia64*)
14867               # +Z the default
14868               ;;
14869             *)
14870               lt_prog_compiler_pic_CXX='+Z'
14871               ;;
14872             esac
14873             ;;
14874           *)
14875             ;;
14876         esac
14877         ;;
14878       interix*)
14879         # This is c89, which is MS Visual C++ (no shared libs)
14880         # Anyone wants to do a port?
14881         ;;
14882       irix5* | irix6* | nonstopux*)
14883         case $cc_basename in
14884           CC*)
14885             lt_prog_compiler_wl_CXX='-Wl,'
14886             lt_prog_compiler_static_CXX='-non_shared'
14887             # CC pic flag -KPIC is the default.
14888             ;;
14889           *)
14890             ;;
14891         esac
14892         ;;
14893       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14894         case $cc_basename in
14895           KCC*)
14896             # KAI C++ Compiler
14897             lt_prog_compiler_wl_CXX='--backend -Wl,'
14898             lt_prog_compiler_pic_CXX='-fPIC'
14899             ;;
14900           ecpc* )
14901             # old Intel C++ for x86_64 which still supported -KPIC.
14902             lt_prog_compiler_wl_CXX='-Wl,'
14903             lt_prog_compiler_pic_CXX='-KPIC'
14904             lt_prog_compiler_static_CXX='-static'
14905             ;;
14906           icpc* )
14907             # Intel C++, used to be incompatible with GCC.
14908             # ICC 10 doesn't accept -KPIC any more.
14909             lt_prog_compiler_wl_CXX='-Wl,'
14910             lt_prog_compiler_pic_CXX='-fPIC'
14911             lt_prog_compiler_static_CXX='-static'
14912             ;;
14913           pgCC* | pgcpp*)
14914             # Portland Group C++ compiler
14915             lt_prog_compiler_wl_CXX='-Wl,'
14916             lt_prog_compiler_pic_CXX='-fpic'
14917             lt_prog_compiler_static_CXX='-Bstatic'
14918             ;;
14919           cxx*)
14920             # Compaq C++
14921             # Make sure the PIC flag is empty.  It appears that all Alpha
14922             # Linux and Compaq Tru64 Unix objects are PIC.
14923             lt_prog_compiler_pic_CXX=
14924             lt_prog_compiler_static_CXX='-non_shared'
14925             ;;
14926           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14927             # IBM XL 8.0, 9.0 on PPC and BlueGene
14928             lt_prog_compiler_wl_CXX='-Wl,'
14929             lt_prog_compiler_pic_CXX='-qpic'
14930             lt_prog_compiler_static_CXX='-qstaticlink'
14931             ;;
14932           *)
14933             case `$CC -V 2>&1 | sed 5q` in
14934             *Sun\ C*)
14935               # Sun C++ 5.9
14936               lt_prog_compiler_pic_CXX='-KPIC'
14937               lt_prog_compiler_static_CXX='-Bstatic'
14938               lt_prog_compiler_wl_CXX='-Qoption ld '
14939               ;;
14940             esac
14941             ;;
14942         esac
14943         ;;
14944       lynxos*)
14945         ;;
14946       m88k*)
14947         ;;
14948       mvs*)
14949         case $cc_basename in
14950           cxx*)
14951             lt_prog_compiler_pic_CXX='-W c,exportall'
14952             ;;
14953           *)
14954             ;;
14955         esac
14956         ;;
14957       netbsd* | netbsdelf*-gnu)
14958         ;;
14959       *qnx* | *nto*)
14960         # QNX uses GNU C++, but need to define -shared option too, otherwise
14961         # it will coredump.
14962         lt_prog_compiler_pic_CXX='-fPIC -shared'
14963         ;;
14964       osf3* | osf4* | osf5*)
14965         case $cc_basename in
14966           KCC*)
14967             lt_prog_compiler_wl_CXX='--backend -Wl,'
14968             ;;
14969           RCC*)
14970             # Rational C++ 2.4.1
14971             lt_prog_compiler_pic_CXX='-pic'
14972             ;;
14973           cxx*)
14974             # Digital/Compaq C++
14975             lt_prog_compiler_wl_CXX='-Wl,'
14976             # Make sure the PIC flag is empty.  It appears that all Alpha
14977             # Linux and Compaq Tru64 Unix objects are PIC.
14978             lt_prog_compiler_pic_CXX=
14979             lt_prog_compiler_static_CXX='-non_shared'
14980             ;;
14981           *)
14982             ;;
14983         esac
14984         ;;
14985       psos*)
14986         ;;
14987       solaris*)
14988         case $cc_basename in
14989           CC* | sunCC*)
14990             # Sun C++ 4.2, 5.x and Centerline C++
14991             lt_prog_compiler_pic_CXX='-KPIC'
14992             lt_prog_compiler_static_CXX='-Bstatic'
14993             lt_prog_compiler_wl_CXX='-Qoption ld '
14994             ;;
14995           gcx*)
14996             # Green Hills C++ Compiler
14997             lt_prog_compiler_pic_CXX='-PIC'
14998             ;;
14999           *)
15000             ;;
15001         esac
15002         ;;
15003       sunos4*)
15004         case $cc_basename in
15005           CC*)
15006             # Sun C++ 4.x
15007             lt_prog_compiler_pic_CXX='-pic'
15008             lt_prog_compiler_static_CXX='-Bstatic'
15009             ;;
15010           lcc*)
15011             # Lucid
15012             lt_prog_compiler_pic_CXX='-pic'
15013             ;;
15014           *)
15015             ;;
15016         esac
15017         ;;
15018       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15019         case $cc_basename in
15020           CC*)
15021             lt_prog_compiler_wl_CXX='-Wl,'
15022             lt_prog_compiler_pic_CXX='-KPIC'
15023             lt_prog_compiler_static_CXX='-Bstatic'
15024             ;;
15025         esac
15026         ;;
15027       tandem*)
15028         case $cc_basename in
15029           NCC*)
15030             # NonStop-UX NCC 3.20
15031             lt_prog_compiler_pic_CXX='-KPIC'
15032             ;;
15033           *)
15034             ;;
15035         esac
15036         ;;
15037       vxworks*)
15038         ;;
15039       *)
15040         lt_prog_compiler_can_build_shared_CXX=no
15041         ;;
15042     esac
15043   fi
15044
15045 case $host_os in
15046   # For platforms which do not support PIC, -DPIC is meaningless:
15047   *djgpp*)
15048     lt_prog_compiler_pic_CXX=
15049     ;;
15050   *)
15051     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15052     ;;
15053 esac
15054
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15056 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15057 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15058   $as_echo_n "(cached) " >&6
15059 else
15060   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15061 fi
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15063 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15064 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15065
15066 #
15067 # Check to make sure the PIC flag actually works.
15068 #
15069 if test -n "$lt_prog_compiler_pic_CXX"; then
15070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15071 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15072 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15073   $as_echo_n "(cached) " >&6
15074 else
15075   lt_cv_prog_compiler_pic_works_CXX=no
15076    ac_outfile=conftest.$ac_objext
15077    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15078    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15079    # Insert the option either (1) after the last *FLAGS variable, or
15080    # (2) before a word containing "conftest.", or (3) at the end.
15081    # Note that $ac_compile itself does not contain backslashes and begins
15082    # with a dollar sign (not a hyphen), so the echo should work correctly.
15083    # The option is referenced via a variable to avoid confusing sed.
15084    lt_compile=`echo "$ac_compile" | $SED \
15085    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15086    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15087    -e 's:$: $lt_compiler_flag:'`
15088    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15089    (eval "$lt_compile" 2>conftest.err)
15090    ac_status=$?
15091    cat conftest.err >&5
15092    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093    if (exit $ac_status) && test -s "$ac_outfile"; then
15094      # The compiler can only warn and ignore the option if not recognized
15095      # So say no if there are warnings other than the usual output.
15096      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15097      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15098      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15099        lt_cv_prog_compiler_pic_works_CXX=yes
15100      fi
15101    fi
15102    $RM conftest*
15103
15104 fi
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15106 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15107
15108 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15109     case $lt_prog_compiler_pic_CXX in
15110      "" | " "*) ;;
15111      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15112      esac
15113 else
15114     lt_prog_compiler_pic_CXX=
15115      lt_prog_compiler_can_build_shared_CXX=no
15116 fi
15117
15118 fi
15119
15120
15121
15122
15123
15124 #
15125 # Check to make sure the static flag actually works.
15126 #
15127 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15129 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15130 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15131   $as_echo_n "(cached) " >&6
15132 else
15133   lt_cv_prog_compiler_static_works_CXX=no
15134    save_LDFLAGS="$LDFLAGS"
15135    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15136    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15137    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15138      # The linker can only warn and ignore the option if not recognized
15139      # So say no if there are warnings
15140      if test -s conftest.err; then
15141        # Append any errors to the config.log.
15142        cat conftest.err 1>&5
15143        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15144        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15145        if diff conftest.exp conftest.er2 >/dev/null; then
15146          lt_cv_prog_compiler_static_works_CXX=yes
15147        fi
15148      else
15149        lt_cv_prog_compiler_static_works_CXX=yes
15150      fi
15151    fi
15152    $RM -r conftest*
15153    LDFLAGS="$save_LDFLAGS"
15154
15155 fi
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15157 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15158
15159 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15160     :
15161 else
15162     lt_prog_compiler_static_CXX=
15163 fi
15164
15165
15166
15167
15168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15169 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15170 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15171   $as_echo_n "(cached) " >&6
15172 else
15173   lt_cv_prog_compiler_c_o_CXX=no
15174    $RM -r conftest 2>/dev/null
15175    mkdir conftest
15176    cd conftest
15177    mkdir out
15178    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15179
15180    lt_compiler_flag="-o out/conftest2.$ac_objext"
15181    # Insert the option either (1) after the last *FLAGS variable, or
15182    # (2) before a word containing "conftest.", or (3) at the end.
15183    # Note that $ac_compile itself does not contain backslashes and begins
15184    # with a dollar sign (not a hyphen), so the echo should work correctly.
15185    lt_compile=`echo "$ac_compile" | $SED \
15186    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15187    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15188    -e 's:$: $lt_compiler_flag:'`
15189    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15190    (eval "$lt_compile" 2>out/conftest.err)
15191    ac_status=$?
15192    cat out/conftest.err >&5
15193    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15195    then
15196      # The compiler can only warn and ignore the option if not recognized
15197      # So say no if there are warnings
15198      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15199      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15200      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15201        lt_cv_prog_compiler_c_o_CXX=yes
15202      fi
15203    fi
15204    chmod u+w . 2>&5
15205    $RM conftest*
15206    # SGI C++ compiler will create directory out/ii_files/ for
15207    # template instantiation
15208    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15209    $RM out/* && rmdir out
15210    cd ..
15211    $RM -r conftest
15212    $RM conftest*
15213
15214 fi
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15216 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15217
15218
15219
15220     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15221 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15222 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15223   $as_echo_n "(cached) " >&6
15224 else
15225   lt_cv_prog_compiler_c_o_CXX=no
15226    $RM -r conftest 2>/dev/null
15227    mkdir conftest
15228    cd conftest
15229    mkdir out
15230    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15231
15232    lt_compiler_flag="-o out/conftest2.$ac_objext"
15233    # Insert the option either (1) after the last *FLAGS variable, or
15234    # (2) before a word containing "conftest.", or (3) at the end.
15235    # Note that $ac_compile itself does not contain backslashes and begins
15236    # with a dollar sign (not a hyphen), so the echo should work correctly.
15237    lt_compile=`echo "$ac_compile" | $SED \
15238    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15239    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15240    -e 's:$: $lt_compiler_flag:'`
15241    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15242    (eval "$lt_compile" 2>out/conftest.err)
15243    ac_status=$?
15244    cat out/conftest.err >&5
15245    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15247    then
15248      # The compiler can only warn and ignore the option if not recognized
15249      # So say no if there are warnings
15250      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15251      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15252      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15253        lt_cv_prog_compiler_c_o_CXX=yes
15254      fi
15255    fi
15256    chmod u+w . 2>&5
15257    $RM conftest*
15258    # SGI C++ compiler will create directory out/ii_files/ for
15259    # template instantiation
15260    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15261    $RM out/* && rmdir out
15262    cd ..
15263    $RM -r conftest
15264    $RM conftest*
15265
15266 fi
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15268 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15269
15270
15271
15272
15273 hard_links="nottested"
15274 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15275   # do not overwrite the value of need_locks provided by the user
15276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15277 $as_echo_n "checking if we can lock with hard links... " >&6; }
15278   hard_links=yes
15279   $RM conftest*
15280   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15281   touch conftest.a
15282   ln conftest.a conftest.b 2>&5 || hard_links=no
15283   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15285 $as_echo "$hard_links" >&6; }
15286   if test "$hard_links" = no; then
15287     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15288 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15289     need_locks=warn
15290   fi
15291 else
15292   need_locks=no
15293 fi
15294
15295
15296
15297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15298 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15299
15300   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15301   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15302   case $host_os in
15303   aix[4-9]*)
15304     # If we're using GNU nm, then we don't want the "-C" option.
15305     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15306     # Also, AIX nm treats weak defined symbols like other global defined
15307     # symbols, whereas GNU nm marks them as "W".
15308     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15309       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15310     else
15311       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'
15312     fi
15313     ;;
15314   pw32*)
15315     export_symbols_cmds_CXX="$ltdll_cmds"
15316     ;;
15317   cygwin* | mingw* | cegcc*)
15318     case $cc_basename in
15319     cl*)
15320       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15321       ;;
15322     *)
15323       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15324       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15325       ;;
15326     esac
15327     ;;
15328   linux* | k*bsd*-gnu | gnu*)
15329     link_all_deplibs_CXX=no
15330     ;;
15331   *)
15332     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15333     ;;
15334   esac
15335
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15337 $as_echo "$ld_shlibs_CXX" >&6; }
15338 test "$ld_shlibs_CXX" = no && can_build_shared=no
15339
15340 with_gnu_ld_CXX=$with_gnu_ld
15341
15342
15343
15344
15345
15346
15347 #
15348 # Do we need to explicitly link libc?
15349 #
15350 case "x$archive_cmds_need_lc_CXX" in
15351 x|xyes)
15352   # Assume -lc should be added
15353   archive_cmds_need_lc_CXX=yes
15354
15355   if test "$enable_shared" = yes && test "$GCC" = yes; then
15356     case $archive_cmds_CXX in
15357     *'~'*)
15358       # FIXME: we may have to deal with multi-command sequences.
15359       ;;
15360     '$CC '*)
15361       # Test whether the compiler implicitly links with -lc since on some
15362       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15363       # to ld, don't add -lc before -lgcc.
15364       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15365 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15366 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15367   $as_echo_n "(cached) " >&6
15368 else
15369   $RM conftest*
15370         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15371
15372         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15373   (eval $ac_compile) 2>&5
15374   ac_status=$?
15375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15376   test $ac_status = 0; } 2>conftest.err; then
15377           soname=conftest
15378           lib=conftest
15379           libobjs=conftest.$ac_objext
15380           deplibs=
15381           wl=$lt_prog_compiler_wl_CXX
15382           pic_flag=$lt_prog_compiler_pic_CXX
15383           compiler_flags=-v
15384           linker_flags=-v
15385           verstring=
15386           output_objdir=.
15387           libname=conftest
15388           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15389           allow_undefined_flag_CXX=
15390           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15391   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15392   ac_status=$?
15393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15394   test $ac_status = 0; }
15395           then
15396             lt_cv_archive_cmds_need_lc_CXX=no
15397           else
15398             lt_cv_archive_cmds_need_lc_CXX=yes
15399           fi
15400           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15401         else
15402           cat conftest.err 1>&5
15403         fi
15404         $RM conftest*
15405
15406 fi
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15408 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15409       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15410       ;;
15411     esac
15412   fi
15413   ;;
15414 esac
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15478 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15479
15480 library_names_spec=
15481 libname_spec='lib$name'
15482 soname_spec=
15483 shrext_cmds=".so"
15484 postinstall_cmds=
15485 postuninstall_cmds=
15486 finish_cmds=
15487 finish_eval=
15488 shlibpath_var=
15489 shlibpath_overrides_runpath=unknown
15490 version_type=none
15491 dynamic_linker="$host_os ld.so"
15492 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15493 need_lib_prefix=unknown
15494 hardcode_into_libs=no
15495
15496 # when you set need_version to no, make sure it does not cause -set_version
15497 # flags to be left without arguments
15498 need_version=unknown
15499
15500 case $host_os in
15501 aix3*)
15502   version_type=linux # correct to gnu/linux during the next big refactor
15503   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15504   shlibpath_var=LIBPATH
15505
15506   # AIX 3 has no versioning support, so we append a major version to the name.
15507   soname_spec='${libname}${release}${shared_ext}$major'
15508   ;;
15509
15510 aix[4-9]*)
15511   version_type=linux # correct to gnu/linux during the next big refactor
15512   need_lib_prefix=no
15513   need_version=no
15514   hardcode_into_libs=yes
15515   if test "$host_cpu" = ia64; then
15516     # AIX 5 supports IA64
15517     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15518     shlibpath_var=LD_LIBRARY_PATH
15519   else
15520     # With GCC up to 2.95.x, collect2 would create an import file
15521     # for dependence libraries.  The import file would start with
15522     # the line `#! .'.  This would cause the generated library to
15523     # depend on `.', always an invalid library.  This was fixed in
15524     # development snapshots of GCC prior to 3.0.
15525     case $host_os in
15526       aix4 | aix4.[01] | aix4.[01].*)
15527       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15528            echo ' yes '
15529            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15530         :
15531       else
15532         can_build_shared=no
15533       fi
15534       ;;
15535     esac
15536     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15537     # soname into executable. Probably we can add versioning support to
15538     # collect2, so additional links can be useful in future.
15539     if test "$aix_use_runtimelinking" = yes; then
15540       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15541       # instead of lib<name>.a to let people know that these are not
15542       # typical AIX shared libraries.
15543       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15544     else
15545       # We preserve .a as extension for shared libraries through AIX4.2
15546       # and later when we are not doing run time linking.
15547       library_names_spec='${libname}${release}.a $libname.a'
15548       soname_spec='${libname}${release}${shared_ext}$major'
15549     fi
15550     shlibpath_var=LIBPATH
15551   fi
15552   ;;
15553
15554 amigaos*)
15555   case $host_cpu in
15556   powerpc)
15557     # Since July 2007 AmigaOS4 officially supports .so libraries.
15558     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15560     ;;
15561   m68k)
15562     library_names_spec='$libname.ixlibrary $libname.a'
15563     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15564     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
15565     ;;
15566   esac
15567   ;;
15568
15569 beos*)
15570   library_names_spec='${libname}${shared_ext}'
15571   dynamic_linker="$host_os ld.so"
15572   shlibpath_var=LIBRARY_PATH
15573   ;;
15574
15575 bsdi[45]*)
15576   version_type=linux # correct to gnu/linux during the next big refactor
15577   need_version=no
15578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15579   soname_spec='${libname}${release}${shared_ext}$major'
15580   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15581   shlibpath_var=LD_LIBRARY_PATH
15582   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15583   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15584   # the default ld.so.conf also contains /usr/contrib/lib and
15585   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15586   # libtool to hard-code these into programs
15587   ;;
15588
15589 cygwin* | mingw* | pw32* | cegcc*)
15590   version_type=windows
15591   shrext_cmds=".dll"
15592   need_version=no
15593   need_lib_prefix=no
15594
15595   case $GCC,$cc_basename in
15596   yes,*)
15597     # gcc
15598     library_names_spec='$libname.dll.a'
15599     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15600     postinstall_cmds='base_file=`basename \${file}`~
15601       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15602       dldir=$destdir/`dirname \$dlpath`~
15603       test -d \$dldir || mkdir -p \$dldir~
15604       $install_prog $dir/$dlname \$dldir/$dlname~
15605       chmod a+x \$dldir/$dlname~
15606       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15607         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15608       fi'
15609     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15610       dlpath=$dir/\$dldll~
15611        $RM \$dlpath'
15612     shlibpath_overrides_runpath=yes
15613
15614     case $host_os in
15615     cygwin*)
15616       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15617       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15618
15619       ;;
15620     mingw* | cegcc*)
15621       # MinGW DLLs use traditional 'lib' prefix
15622       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15623       ;;
15624     pw32*)
15625       # pw32 DLLs use 'pw' prefix rather than 'lib'
15626       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15627       ;;
15628     esac
15629     dynamic_linker='Win32 ld.exe'
15630     ;;
15631
15632   *,cl*)
15633     # Native MSVC
15634     libname_spec='$name'
15635     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15636     library_names_spec='${libname}.dll.lib'
15637
15638     case $build_os in
15639     mingw*)
15640       sys_lib_search_path_spec=
15641       lt_save_ifs=$IFS
15642       IFS=';'
15643       for lt_path in $LIB
15644       do
15645         IFS=$lt_save_ifs
15646         # Let DOS variable expansion print the short 8.3 style file name.
15647         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15648         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15649       done
15650       IFS=$lt_save_ifs
15651       # Convert to MSYS style.
15652       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15653       ;;
15654     cygwin*)
15655       # Convert to unix form, then to dos form, then back to unix form
15656       # but this time dos style (no spaces!) so that the unix form looks
15657       # like /cygdrive/c/PROGRA~1:/cygdr...
15658       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15659       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15660       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15661       ;;
15662     *)
15663       sys_lib_search_path_spec="$LIB"
15664       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15665         # It is most probably a Windows format PATH.
15666         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15667       else
15668         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15669       fi
15670       # FIXME: find the short name or the path components, as spaces are
15671       # common. (e.g. "Program Files" -> "PROGRA~1")
15672       ;;
15673     esac
15674
15675     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15676     postinstall_cmds='base_file=`basename \${file}`~
15677       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15678       dldir=$destdir/`dirname \$dlpath`~
15679       test -d \$dldir || mkdir -p \$dldir~
15680       $install_prog $dir/$dlname \$dldir/$dlname'
15681     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15682       dlpath=$dir/\$dldll~
15683        $RM \$dlpath'
15684     shlibpath_overrides_runpath=yes
15685     dynamic_linker='Win32 link.exe'
15686     ;;
15687
15688   *)
15689     # Assume MSVC wrapper
15690     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15691     dynamic_linker='Win32 ld.exe'
15692     ;;
15693   esac
15694   # FIXME: first we should search . and the directory the executable is in
15695   shlibpath_var=PATH
15696   ;;
15697
15698 darwin* | rhapsody*)
15699   dynamic_linker="$host_os dyld"
15700   version_type=darwin
15701   need_lib_prefix=no
15702   need_version=no
15703   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15704   soname_spec='${libname}${release}${major}$shared_ext'
15705   shlibpath_overrides_runpath=yes
15706   shlibpath_var=DYLD_LIBRARY_PATH
15707   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15708
15709   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15710   ;;
15711
15712 dgux*)
15713   version_type=linux # correct to gnu/linux during the next big refactor
15714   need_lib_prefix=no
15715   need_version=no
15716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15717   soname_spec='${libname}${release}${shared_ext}$major'
15718   shlibpath_var=LD_LIBRARY_PATH
15719   ;;
15720
15721 freebsd* | dragonfly*)
15722   # DragonFly does not have aout.  When/if they implement a new
15723   # versioning mechanism, adjust this.
15724   if test -x /usr/bin/objformat; then
15725     objformat=`/usr/bin/objformat`
15726   else
15727     case $host_os in
15728     freebsd[23].*) objformat=aout ;;
15729     *) objformat=elf ;;
15730     esac
15731   fi
15732   version_type=freebsd-$objformat
15733   case $version_type in
15734     freebsd-elf*)
15735       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15736       need_version=no
15737       need_lib_prefix=no
15738       ;;
15739     freebsd-*)
15740       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15741       need_version=yes
15742       ;;
15743   esac
15744   shlibpath_var=LD_LIBRARY_PATH
15745   case $host_os in
15746   freebsd2.*)
15747     shlibpath_overrides_runpath=yes
15748     ;;
15749   freebsd3.[01]* | freebsdelf3.[01]*)
15750     shlibpath_overrides_runpath=yes
15751     hardcode_into_libs=yes
15752     ;;
15753   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15754   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15755     shlibpath_overrides_runpath=no
15756     hardcode_into_libs=yes
15757     ;;
15758   *) # from 4.6 on, and DragonFly
15759     shlibpath_overrides_runpath=yes
15760     hardcode_into_libs=yes
15761     ;;
15762   esac
15763   ;;
15764
15765 haiku*)
15766   version_type=linux # correct to gnu/linux during the next big refactor
15767   need_lib_prefix=no
15768   need_version=no
15769   dynamic_linker="$host_os runtime_loader"
15770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15771   soname_spec='${libname}${release}${shared_ext}$major'
15772   shlibpath_var=LIBRARY_PATH
15773   shlibpath_overrides_runpath=yes
15774   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15775   hardcode_into_libs=yes
15776   ;;
15777
15778 hpux9* | hpux10* | hpux11*)
15779   # Give a soname corresponding to the major version so that dld.sl refuses to
15780   # link against other versions.
15781   version_type=sunos
15782   need_lib_prefix=no
15783   need_version=no
15784   case $host_cpu in
15785   ia64*)
15786     shrext_cmds='.so'
15787     hardcode_into_libs=yes
15788     dynamic_linker="$host_os dld.so"
15789     shlibpath_var=LD_LIBRARY_PATH
15790     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15791     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15792     soname_spec='${libname}${release}${shared_ext}$major'
15793     if test "X$HPUX_IA64_MODE" = X32; then
15794       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15795     else
15796       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15797     fi
15798     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15799     ;;
15800   hppa*64*)
15801     shrext_cmds='.sl'
15802     hardcode_into_libs=yes
15803     dynamic_linker="$host_os dld.sl"
15804     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15805     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15806     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15807     soname_spec='${libname}${release}${shared_ext}$major'
15808     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15809     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15810     ;;
15811   *)
15812     shrext_cmds='.sl'
15813     dynamic_linker="$host_os dld.sl"
15814     shlibpath_var=SHLIB_PATH
15815     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15817     soname_spec='${libname}${release}${shared_ext}$major'
15818     ;;
15819   esac
15820   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15821   postinstall_cmds='chmod 555 $lib'
15822   # or fails outright, so override atomically:
15823   install_override_mode=555
15824   ;;
15825
15826 interix[3-9]*)
15827   version_type=linux # correct to gnu/linux during the next big refactor
15828   need_lib_prefix=no
15829   need_version=no
15830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15831   soname_spec='${libname}${release}${shared_ext}$major'
15832   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15833   shlibpath_var=LD_LIBRARY_PATH
15834   shlibpath_overrides_runpath=no
15835   hardcode_into_libs=yes
15836   ;;
15837
15838 irix5* | irix6* | nonstopux*)
15839   case $host_os in
15840     nonstopux*) version_type=nonstopux ;;
15841     *)
15842         if test "$lt_cv_prog_gnu_ld" = yes; then
15843                 version_type=linux # correct to gnu/linux during the next big refactor
15844         else
15845                 version_type=irix
15846         fi ;;
15847   esac
15848   need_lib_prefix=no
15849   need_version=no
15850   soname_spec='${libname}${release}${shared_ext}$major'
15851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15852   case $host_os in
15853   irix5* | nonstopux*)
15854     libsuff= shlibsuff=
15855     ;;
15856   *)
15857     case $LD in # libtool.m4 will add one of these switches to LD
15858     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15859       libsuff= shlibsuff= libmagic=32-bit;;
15860     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15861       libsuff=32 shlibsuff=N32 libmagic=N32;;
15862     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15863       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15864     *) libsuff= shlibsuff= libmagic=never-match;;
15865     esac
15866     ;;
15867   esac
15868   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15869   shlibpath_overrides_runpath=no
15870   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15871   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15872   hardcode_into_libs=yes
15873   ;;
15874
15875 # No shared lib support for Linux oldld, aout, or coff.
15876 linux*oldld* | linux*aout* | linux*coff*)
15877   dynamic_linker=no
15878   ;;
15879
15880 # This must be glibc/ELF.
15881 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15882   version_type=linux # correct to gnu/linux during the next big refactor
15883   need_lib_prefix=no
15884   need_version=no
15885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15886   soname_spec='${libname}${release}${shared_ext}$major'
15887   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15888   shlibpath_var=LD_LIBRARY_PATH
15889   shlibpath_overrides_runpath=no
15890
15891   # Some binutils ld are patched to set DT_RUNPATH
15892   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15893   $as_echo_n "(cached) " >&6
15894 else
15895   lt_cv_shlibpath_overrides_runpath=no
15896     save_LDFLAGS=$LDFLAGS
15897     save_libdir=$libdir
15898     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15899          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15900     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901 /* end confdefs.h.  */
15902
15903 int
15904 main ()
15905 {
15906
15907   ;
15908   return 0;
15909 }
15910 _ACEOF
15911 if ac_fn_cxx_try_link "$LINENO"; then :
15912   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15913   lt_cv_shlibpath_overrides_runpath=yes
15914 fi
15915 fi
15916 rm -f core conftest.err conftest.$ac_objext \
15917     conftest$ac_exeext conftest.$ac_ext
15918     LDFLAGS=$save_LDFLAGS
15919     libdir=$save_libdir
15920
15921 fi
15922
15923   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15924
15925   # This implies no fast_install, which is unacceptable.
15926   # Some rework will be needed to allow for fast_install
15927   # before this can be enabled.
15928   hardcode_into_libs=yes
15929
15930   # Append ld.so.conf contents to the search path
15931   if test -f /etc/ld.so.conf; then
15932     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;s/"//g;/^$/d' | tr '\n' ' '`
15933     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15934   fi
15935
15936   # We used to test for /lib/ld.so.1 and disable shared libraries on
15937   # powerpc, because MkLinux only supported shared libraries with the
15938   # GNU dynamic linker.  Since this was broken with cross compilers,
15939   # most powerpc-linux boxes support dynamic linking these days and
15940   # people can always --disable-shared, the test was removed, and we
15941   # assume the GNU/Linux dynamic linker is in use.
15942   dynamic_linker='GNU/Linux ld.so'
15943   ;;
15944
15945 netbsdelf*-gnu)
15946   version_type=linux
15947   need_lib_prefix=no
15948   need_version=no
15949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15950   soname_spec='${libname}${release}${shared_ext}$major'
15951   shlibpath_var=LD_LIBRARY_PATH
15952   shlibpath_overrides_runpath=no
15953   hardcode_into_libs=yes
15954   dynamic_linker='NetBSD ld.elf_so'
15955   ;;
15956
15957 netbsd*)
15958   version_type=sunos
15959   need_lib_prefix=no
15960   need_version=no
15961   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15963     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15964     dynamic_linker='NetBSD (a.out) ld.so'
15965   else
15966     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15967     soname_spec='${libname}${release}${shared_ext}$major'
15968     dynamic_linker='NetBSD ld.elf_so'
15969   fi
15970   shlibpath_var=LD_LIBRARY_PATH
15971   shlibpath_overrides_runpath=yes
15972   hardcode_into_libs=yes
15973   ;;
15974
15975 newsos6)
15976   version_type=linux # correct to gnu/linux during the next big refactor
15977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15978   shlibpath_var=LD_LIBRARY_PATH
15979   shlibpath_overrides_runpath=yes
15980   ;;
15981
15982 *nto* | *qnx*)
15983   version_type=qnx
15984   need_lib_prefix=no
15985   need_version=no
15986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15987   soname_spec='${libname}${release}${shared_ext}$major'
15988   shlibpath_var=LD_LIBRARY_PATH
15989   shlibpath_overrides_runpath=no
15990   hardcode_into_libs=yes
15991   dynamic_linker='ldqnx.so'
15992   ;;
15993
15994 openbsd*)
15995   version_type=sunos
15996   sys_lib_dlsearch_path_spec="/usr/lib"
15997   need_lib_prefix=no
15998   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15999   case $host_os in
16000     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16001     *)                          need_version=no  ;;
16002   esac
16003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16004   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16005   shlibpath_var=LD_LIBRARY_PATH
16006   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16007     case $host_os in
16008       openbsd2.[89] | openbsd2.[89].*)
16009         shlibpath_overrides_runpath=no
16010         ;;
16011       *)
16012         shlibpath_overrides_runpath=yes
16013         ;;
16014       esac
16015   else
16016     shlibpath_overrides_runpath=yes
16017   fi
16018   ;;
16019
16020 os2*)
16021   libname_spec='$name'
16022   shrext_cmds=".dll"
16023   need_lib_prefix=no
16024   library_names_spec='$libname${shared_ext} $libname.a'
16025   dynamic_linker='OS/2 ld.exe'
16026   shlibpath_var=LIBPATH
16027   ;;
16028
16029 osf3* | osf4* | osf5*)
16030   version_type=osf
16031   need_lib_prefix=no
16032   need_version=no
16033   soname_spec='${libname}${release}${shared_ext}$major'
16034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16035   shlibpath_var=LD_LIBRARY_PATH
16036   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16037   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16038   ;;
16039
16040 rdos*)
16041   dynamic_linker=no
16042   ;;
16043
16044 solaris*)
16045   version_type=linux # correct to gnu/linux during the next big refactor
16046   need_lib_prefix=no
16047   need_version=no
16048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16049   soname_spec='${libname}${release}${shared_ext}$major'
16050   shlibpath_var=LD_LIBRARY_PATH
16051   shlibpath_overrides_runpath=yes
16052   hardcode_into_libs=yes
16053   # ldd complains unless libraries are executable
16054   postinstall_cmds='chmod +x $lib'
16055   ;;
16056
16057 sunos4*)
16058   version_type=sunos
16059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16060   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16061   shlibpath_var=LD_LIBRARY_PATH
16062   shlibpath_overrides_runpath=yes
16063   if test "$with_gnu_ld" = yes; then
16064     need_lib_prefix=no
16065   fi
16066   need_version=yes
16067   ;;
16068
16069 sysv4 | sysv4.3*)
16070   version_type=linux # correct to gnu/linux during the next big refactor
16071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16072   soname_spec='${libname}${release}${shared_ext}$major'
16073   shlibpath_var=LD_LIBRARY_PATH
16074   case $host_vendor in
16075     sni)
16076       shlibpath_overrides_runpath=no
16077       need_lib_prefix=no
16078       runpath_var=LD_RUN_PATH
16079       ;;
16080     siemens)
16081       need_lib_prefix=no
16082       ;;
16083     motorola)
16084       need_lib_prefix=no
16085       need_version=no
16086       shlibpath_overrides_runpath=no
16087       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16088       ;;
16089   esac
16090   ;;
16091
16092 sysv4*MP*)
16093   if test -d /usr/nec ;then
16094     version_type=linux # correct to gnu/linux during the next big refactor
16095     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16096     soname_spec='$libname${shared_ext}.$major'
16097     shlibpath_var=LD_LIBRARY_PATH
16098   fi
16099   ;;
16100
16101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16102   version_type=freebsd-elf
16103   need_lib_prefix=no
16104   need_version=no
16105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16106   soname_spec='${libname}${release}${shared_ext}$major'
16107   shlibpath_var=LD_LIBRARY_PATH
16108   shlibpath_overrides_runpath=yes
16109   hardcode_into_libs=yes
16110   if test "$with_gnu_ld" = yes; then
16111     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16112   else
16113     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16114     case $host_os in
16115       sco3.2v5*)
16116         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16117         ;;
16118     esac
16119   fi
16120   sys_lib_dlsearch_path_spec='/usr/lib'
16121   ;;
16122
16123 tpf*)
16124   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16125   version_type=linux # correct to gnu/linux during the next big refactor
16126   need_lib_prefix=no
16127   need_version=no
16128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129   shlibpath_var=LD_LIBRARY_PATH
16130   shlibpath_overrides_runpath=no
16131   hardcode_into_libs=yes
16132   ;;
16133
16134 uts4*)
16135   version_type=linux # correct to gnu/linux during the next big refactor
16136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16137   soname_spec='${libname}${release}${shared_ext}$major'
16138   shlibpath_var=LD_LIBRARY_PATH
16139   ;;
16140
16141 *)
16142   dynamic_linker=no
16143   ;;
16144 esac
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16146 $as_echo "$dynamic_linker" >&6; }
16147 test "$dynamic_linker" = no && can_build_shared=no
16148
16149 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16150 if test "$GCC" = yes; then
16151   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16152 fi
16153
16154 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16155   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16156 fi
16157 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16158   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16159 fi
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16199 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16200 hardcode_action_CXX=
16201 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16202    test -n "$runpath_var_CXX" ||
16203    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16204
16205   # We can hardcode non-existent directories.
16206   if test "$hardcode_direct_CXX" != no &&
16207      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16208      # have to relink, otherwise we might link with an installed library
16209      # when we should be linking with a yet-to-be-installed one
16210      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16211      test "$hardcode_minus_L_CXX" != no; then
16212     # Linking always hardcodes the temporary library directory.
16213     hardcode_action_CXX=relink
16214   else
16215     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16216     hardcode_action_CXX=immediate
16217   fi
16218 else
16219   # We cannot hardcode anything, or else we can only hardcode existing
16220   # directories.
16221   hardcode_action_CXX=unsupported
16222 fi
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16224 $as_echo "$hardcode_action_CXX" >&6; }
16225
16226 if test "$hardcode_action_CXX" = relink ||
16227    test "$inherit_rpath_CXX" = yes; then
16228   # Fast installation is not supported
16229   enable_fast_install=no
16230 elif test "$shlibpath_overrides_runpath" = yes ||
16231      test "$enable_shared" = no; then
16232   # Fast installation is not necessary
16233   enable_fast_install=needless
16234 fi
16235
16236
16237
16238
16239
16240
16241
16242   fi # test -n "$compiler"
16243
16244   CC=$lt_save_CC
16245   CFLAGS=$lt_save_CFLAGS
16246   LDCXX=$LD
16247   LD=$lt_save_LD
16248   GCC=$lt_save_GCC
16249   with_gnu_ld=$lt_save_with_gnu_ld
16250   lt_cv_path_LDCXX=$lt_cv_path_LD
16251   lt_cv_path_LD=$lt_save_path_LD
16252   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16253   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16254 fi # test "$_lt_caught_CXX_error" != yes
16255
16256 ac_ext=c
16257 ac_cpp='$CPP $CPPFLAGS'
16258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16261
16262
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16264 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16265 set x ${MAKE-make}
16266 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16267 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16268   $as_echo_n "(cached) " >&6
16269 else
16270   cat >conftest.make <<\_ACEOF
16271 SHELL = /bin/sh
16272 all:
16273         @echo '@@@%%%=$(MAKE)=@@@%%%'
16274 _ACEOF
16275 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16276 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16277   *@@@%%%=?*=@@@%%%*)
16278     eval ac_cv_prog_make_${ac_make}_set=yes;;
16279   *)
16280     eval ac_cv_prog_make_${ac_make}_set=no;;
16281 esac
16282 rm -f conftest.make
16283 fi
16284 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16286 $as_echo "yes" >&6; }
16287   SET_MAKE=
16288 else
16289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16290 $as_echo "no" >&6; }
16291   SET_MAKE="MAKE=${MAKE-make}"
16292 fi
16293
16294
16295 # Boost headers: boost/foreach.hpp is needed (1.33/Debian Etch
16296 # doesn't have it, 1.34/Ubuntu 8.10 Hardy does). 1.35 is available
16297 # as Debian Etch backport.
16298
16299
16300 # Check whether --with-boost was given.
16301 if test "${with_boost+set}" = set; then :
16302   withval=$with_boost;
16303     if test "$withval" = "no"; then
16304         want_boost="no"
16305     elif test "$withval" = "yes"; then
16306         want_boost="yes"
16307         ac_boost_path=""
16308     else
16309         want_boost="yes"
16310         ac_boost_path="$withval"
16311     fi
16312
16313 else
16314   want_boost="yes"
16315 fi
16316
16317
16318
16319
16320 # Check whether --with-boost-libdir was given.
16321 if test "${with_boost_libdir+set}" = set; then :
16322   withval=$with_boost_libdir;
16323         if test -d "$withval"
16324         then
16325                 ac_boost_lib_path="$withval"
16326         else
16327                 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
16328         fi
16329
16330 else
16331   ac_boost_lib_path=""
16332
16333 fi
16334
16335
16336 if test "x$want_boost" = "xyes"; then
16337     boost_lib_version_req=1.34
16338     boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
16339     boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
16340     boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
16341     boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
16342     if test "x$boost_lib_version_req_sub_minor" = "x" ; then
16343         boost_lib_version_req_sub_minor="0"
16344         fi
16345     WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
16346     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
16347 $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
16348     succeeded=no
16349
16350                         libsubdirs="lib"
16351     ax_arch=`uname -m`
16352     if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
16353         libsubdirs="lib64 lib lib64"
16354     fi
16355
16356                 if test "$ac_boost_path" != ""; then
16357         BOOST_CPPFLAGS="-I$ac_boost_path/include"
16358         for ac_boost_path_tmp in $libsubdirs; do
16359                 if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
16360                         BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
16361                         break
16362                 fi
16363         done
16364     elif test "$cross_compiling" != yes; then
16365         for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
16366             if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
16367                 for libsubdir in $libsubdirs ; do
16368                     if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
16369                 done
16370                 BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
16371                 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
16372                 break;
16373             fi
16374         done
16375     fi
16376
16377             if test "$ac_boost_lib_path" != ""; then
16378        BOOST_LDFLAGS="-L$ac_boost_lib_path"
16379     fi
16380
16381     CPPFLAGS_SAVED="$CPPFLAGS"
16382     CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16383     export CPPFLAGS
16384
16385     LDFLAGS_SAVED="$LDFLAGS"
16386     LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
16387     export LDFLAGS
16388
16389
16390     ac_ext=cpp
16391 ac_cpp='$CXXCPP $CPPFLAGS'
16392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16395
16396         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16397 /* end confdefs.h.  */
16398
16399     #include <boost/version.hpp>
16400
16401 int
16402 main ()
16403 {
16404
16405     #if BOOST_VERSION >= $WANT_BOOST_VERSION
16406     // Everything is okay
16407     #else
16408     #  error Boost version is too old
16409     #endif
16410
16411   ;
16412   return 0;
16413 }
16414 _ACEOF
16415 if ac_fn_cxx_try_compile "$LINENO"; then :
16416
16417         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16418 $as_echo "yes" >&6; }
16419     succeeded=yes
16420     found_system=yes
16421
16422 fi
16423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16424     ac_ext=c
16425 ac_cpp='$CPP $CPPFLAGS'
16426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16429
16430
16431
16432
16433             if test "x$succeeded" != "xyes"; then
16434         _version=0
16435         if test "$ac_boost_path" != ""; then
16436             if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
16437                 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
16438                     _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
16439                     V_CHECK=`expr $_version_tmp \> $_version`
16440                     if test "$V_CHECK" = "1" ; then
16441                         _version=$_version_tmp
16442                     fi
16443                     VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
16444                     BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
16445                 done
16446             fi
16447         else
16448             if test "$cross_compiling" != yes; then
16449                 for ac_boost_path in /usr /usr/local /opt /opt/local ; do
16450                     if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
16451                         for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
16452                             _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
16453                             V_CHECK=`expr $_version_tmp \> $_version`
16454                             if test "$V_CHECK" = "1" ; then
16455                                 _version=$_version_tmp
16456                                 best_path=$ac_boost_path
16457                             fi
16458                         done
16459                     fi
16460                 done
16461
16462                 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
16463                 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
16464                 if test "$ac_boost_lib_path" = ""; then
16465                     for libsubdir in $libsubdirs ; do
16466                         if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
16467                     done
16468                     BOOST_LDFLAGS="-L$best_path/$libsubdir"
16469                 fi
16470             fi
16471
16472             if test "x$BOOST_ROOT" != "x"; then
16473                 for libsubdir in $libsubdirs ; do
16474                     if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
16475                 done
16476                 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
16477                     version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
16478                     stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
16479                         stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
16480                     V_CHECK=`expr $stage_version_shorten \>\= $_version`
16481                     if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
16482                         { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
16483 $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
16484                         BOOST_CPPFLAGS="-I$BOOST_ROOT"
16485                         BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
16486                     fi
16487                 fi
16488             fi
16489         fi
16490
16491         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16492         export CPPFLAGS
16493         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
16494         export LDFLAGS
16495
16496         ac_ext=cpp
16497 ac_cpp='$CXXCPP $CPPFLAGS'
16498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16501
16502             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h.  */
16504
16505         #include <boost/version.hpp>
16506
16507 int
16508 main ()
16509 {
16510
16511         #if BOOST_VERSION >= $WANT_BOOST_VERSION
16512         // Everything is okay
16513         #else
16514         #  error Boost version is too old
16515         #endif
16516
16517   ;
16518   return 0;
16519 }
16520 _ACEOF
16521 if ac_fn_cxx_try_compile "$LINENO"; then :
16522
16523             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16524 $as_echo "yes" >&6; }
16525         succeeded=yes
16526         found_system=yes
16527
16528 fi
16529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16530         ac_ext=c
16531 ac_cpp='$CPP $CPPFLAGS'
16532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16535
16536     fi
16537
16538     if test "$succeeded" != "yes" ; then
16539         if test "$_version" = "0" ; then
16540             { $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
16541 $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;}
16542         else
16543             { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
16544 $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
16545         fi
16546         # execute ACTION-IF-NOT-FOUND (if present):
16547         :
16548     else
16549
16550
16551
16552 $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
16553
16554         # execute ACTION-IF-FOUND (if present):
16555         :
16556     fi
16557
16558     CPPFLAGS="$CPPFLAGS_SAVED"
16559     LDFLAGS="$LDFLAGS_SAVED"
16560 fi
16561
16562
16563
16564 # TODO: Fix code to pass with -pedantic -Wextra.
16565 # -Wno-unknown-pragmas needed because icalstrdup.h
16566 # currently uses the "#pragma }" trick. Should remove that.
16567 # Fix code to work without deprecated methods: G GDK GDK_PIXBUF CAIRO PANGO GTK
16568 # Check whether --enable-warnings was given.
16569 if test "${enable_warnings+set}" = set; then :
16570   enableval=$enable_warnings; dk_enable_warnings=$enableval
16571 else
16572   dk_enable_warnings=min
16573 fi
16574
16575 dk_lang=
16576 case $ac_compile in
16577   *'$CXXFLAGS '*)
16578     dk_lang='C++'
16579     dk_cc=$CXX
16580     dk_conftest=conftest.${ac_ext-cc}
16581     ;;
16582   *'$CFLAGS '*)
16583     dk_lang=C
16584     dk_cc=$CC
16585     dk_conftest=conftest.${ac_ext-c}
16586     ;;
16587 esac
16588
16589 if test "x$dk_lang" != x; then :
16590
16591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which $dk_lang compiler warning flags to use" >&5
16592 $as_echo_n "checking which $dk_lang compiler warning flags to use... " >&6; }
16593
16594   case $dk_enable_warnings in
16595     no) dk_warning_flags=;;
16596     max) dk_warning_flags="-Wall -Wno-unknown-pragmas -Wno-deprecated-declarations";;
16597     fatal) dk_warning_flags="-Wall -Wno-unknown-pragmas -Wno-deprecated-declarations -Werror";;
16598     *) dk_warning_flags="-Wall -Wno-unknown-pragmas -Wno-deprecated-declarations";;
16599   esac
16600
16601   dk_deprecation_flags=
16602   dk_tested_flags=
16603
16604   if test "x$dk_warning_flags" != x; then :
16605
16606     # Keep in mind that the dummy source must be devoid of any
16607     # problems that might cause diagnostics.
16608     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16609 /* end confdefs.h.  */
16610 int main(int argc, char** argv) { return (argv != 0) ? argc : 0; }
16611 _ACEOF
16612
16613     for dk_flag in $dk_warning_flags
16614     do
16615       # Test whether the compiler accepts the flag. GCC doesn't bail
16616       # out when given an unsupported flag but prints a warning, so
16617       # check the compiler output instead.
16618       dk_cc_out=`$dk_cc $dk_tested_flags $dk_flag -c "$dk_conftest" 2>&1 || echo failed`
16619       rm -f "conftest.${OBJEXT-o}"
16620
16621       if test "x$dk_cc_out" = x; then :
16622
16623         if test "x$dk_tested_flags" = x; then :
16624   dk_tested_flags=$dk_flag
16625 else
16626   dk_tested_flags="$dk_tested_flags $dk_flag"
16627 fi
16628
16629 else
16630
16631         echo "$dk_cc_out" >&5
16632
16633 fi
16634     done
16635
16636     rm -f "$dk_conftest"
16637
16638 fi
16639   dk_all_flags=$dk_deprecation_flags$dk_tested_flags
16640   SYNCEVO_WFLAGS=$dk_all_flags
16641
16642
16643   test "x$dk_all_flags" != x || dk_all_flags=none
16644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dk_all_flags" >&5
16645 $as_echo "$dk_all_flags" >&6; }
16646
16647 fi
16648
16649
16650 DEVICE_TYPE=workstation
16651
16652
16653 # Check whether --with-synthesis-src was given.
16654 if test "${with_synthesis_src+set}" = set; then :
16655   withval=$with_synthesis_src; SYNTHESISSRC="$withval"
16656              test "$SYNTHESISSRC" != "yes" || as_fn_error $? "--with-synthesis-src requires a parameter (base directory, svn URL or git URL)" "$LINENO" 5
16657 else
16658   SYNTHESISSRC="$SYNTHESISSRC_DEF"; REVISION="syncevolution-0.9"
16659 fi
16660
16661
16662
16663 # Check whether --with-syncml-engines was given.
16664 if test "${with_syncml_engines+set}" = set; then :
16665   withval=$with_syncml_engines; SYNCML_ENGINES="$withval"
16666 else
16667   SYNCML_ENGINES=both
16668 fi
16669
16670
16671 case $SYNCML_ENGINES in both|client)
16672 $as_echo "#define ENABLE_SYNCML_CLIENT 1" >>confdefs.h
16673 ;; esac
16674 case $SYNCML_ENGINES in both|server)
16675 $as_echo "#define ENABLE_SYNCML_SERVER 1" >>confdefs.h
16676 ;; esac
16677 case $SYNCML_ENGINES in both|server|client) true;; *) as_fn_error $? "Invalid value for --with-syncml-engines: $SYNCML_ENGINES" "$LINENO" 5;; esac
16678
16679
16680 # Check whether --with-synthesis-username was given.
16681 if test "${with_synthesis_username+set}" = set; then :
16682   withval=$with_synthesis_username; USERNAME="$withval"
16683 else
16684   USERNAME="guest"
16685 fi
16686
16687
16688
16689 # Check whether --with-synthesis-revision was given.
16690 if test "${with_synthesis_revision+set}" = set; then :
16691   withval=$with_synthesis_revision; REVISION="$withval"
16692 fi
16693
16694
16695 # Check whether --enable-shared was given.
16696 if test "${enable_shared+set}" = set; then :
16697   enableval=$enable_shared; enable_shared="$enableval"
16698 else
16699   enable_shared="no"
16700 fi
16701
16702
16703 # Check whether --enable-static was given.
16704 if test "${enable_static+set}" = set; then :
16705   enableval=$enable_static; enable_static="$enableval"
16706 else
16707   enable_static="no"
16708 fi
16709
16710
16711 # Check whether --enable-unit-tests was given.
16712 if test "${enable_unit_tests+set}" = set; then :
16713   enableval=$enable_unit_tests; enable_unit_tests="$enableval"
16714 else
16715   enable_unit_tests="no"
16716 fi
16717
16718 # Check whether --enable-integration-tests was given.
16719 if test "${enable_integration_tests+set}" = set; then :
16720   enableval=$enable_integration_tests; enable_integration_tests="$enableval"
16721 else
16722   enable_integration_tests="no"
16723 fi
16724
16725
16726 # Check whether --enable-static-cxx was given.
16727 if test "${enable_static_cxx+set}" = set; then :
16728   enableval=$enable_static_cxx; enable_static_cxx="$enableval"
16729 else
16730   enable_static_cxx="no"
16731 fi
16732
16733
16734 # Check whether --enable-evolution-compatibility was given.
16735 if test "${enable_evolution_compatibility+set}" = set; then :
16736   enableval=$enable_evolution_compatibility; enable_evolution_compatibility="$enableval"
16737 else
16738   enable_evolution_compatibility="no"
16739 fi
16740
16741
16742 # Check whether --enable-internal-icaltz was given.
16743 if test "${enable_internal_icaltz+set}" = set; then :
16744   enableval=$enable_internal_icaltz; enable_icaltz_util="$enableval"
16745                test "$enable_icaltz_util" = "yes" || test "$enable_icaltz_util" = "no" || as_fn_error $? "invalid value of --disable-internal-icaltz: $enableval" "$LINENO" 5
16746 else
16747   enable_icaltz_util="yes"
16748 fi
16749
16750 if test "$enable_icaltz_util" = "yes"; then
16751
16752 $as_echo "#define ENABLE_ICALTZ_UTIL 1" >>confdefs.h
16753
16754
16755 $as_echo "#define DISABLE_ICALTZUTIL_GET_ZONE_DIRECTORY 1" >>confdefs.h
16756
16757 fi
16758  if test "$enable_icaltz_util" = "yes"; then
16759   ENABLE_ICALTZ_UTIL_TRUE=
16760   ENABLE_ICALTZ_UTIL_FALSE='#'
16761 else
16762   ENABLE_ICALTZ_UTIL_TRUE='#'
16763   ENABLE_ICALTZ_UTIL_FALSE=
16764 fi
16765
16766
16767 # Check whether --enable-developer-mode was given.
16768 if test "${enable_developer_mode+set}" = set; then :
16769   enableval=$enable_developer_mode; enable_developer_mode="$enableval"
16770 else
16771   enable_developer_mode="no"
16772 fi
16773
16774
16775 # Maemo hacks:
16776 # - wrap e_book_from_string() to fix invalid parameter
16777 # - don't use UTF-8 encoding in Perl script
16778 # Check whether --enable-maemo was given.
16779 if test "${enable_maemo+set}" = set; then :
16780   enableval=$enable_maemo;
16781 $as_echo "#define ENABLE_MAEMO 1" >>confdefs.h
16782
16783                DEVICE_TYPE=Maemo
16784                MODIFY_SYNCCOMPARE='-e "s/use encoding/#use encoding/;" -e "s/:utf8//;"'
16785 fi
16786
16787
16788
16789 for ac_header in signal.h dlfcn.h
16790 do :
16791   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16792 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16793 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16794   cat >>confdefs.h <<_ACEOF
16795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16796 _ACEOF
16797
16798 fi
16799
16800 done
16801
16802
16803 # For icaltz-util.c
16804 for ac_header in byteswap.h endian.h sys/endian.h unistd.h stdint.h
16805 do :
16806   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16807 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16808 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16809   cat >>confdefs.h <<_ACEOF
16810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16811 _ACEOF
16812
16813 fi
16814
16815 done
16816
16817
16818 # cppunit-config is used even when both unit tests and integration tests are disabled.
16819 # Extract the first word of "cppunit-config", so it can be a program name with args.
16820 set dummy cppunit-config; ac_word=$2
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16822 $as_echo_n "checking for $ac_word... " >&6; }
16823 if ${ac_cv_path_CPPUNIT_CONFIG+:} false; then :
16824   $as_echo_n "(cached) " >&6
16825 else
16826   case $CPPUNIT_CONFIG in
16827   [\\/]* | ?:[\\/]*)
16828   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
16829   ;;
16830   *)
16831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16832 for as_dir in $PATH
16833 do
16834   IFS=$as_save_IFS
16835   test -z "$as_dir" && as_dir=.
16836     for ac_exec_ext in '' $ac_executable_extensions; do
16837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16838     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16840     break 2
16841   fi
16842 done
16843   done
16844 IFS=$as_save_IFS
16845
16846   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
16847   ;;
16848 esac
16849 fi
16850 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
16851 if test -n "$CPPUNIT_CONFIG"; then
16852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
16853 $as_echo "$CPPUNIT_CONFIG" >&6; }
16854 else
16855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16856 $as_echo "no" >&6; }
16857 fi
16858
16859
16860
16861 # cppunit needed?
16862 if test "x$enable_unit_tests" = 'xyes' || test "x$enable_integration_tests" = 'xyes'; then
16863   test "x$CPPUNIT_CONFIG" != 'xno' || as_fn_error $? "\"cppunit-config not found.\"" "$LINENO" 5
16864 fi
16865 if test "x$CPPUNIT_CONFIG" != 'xno'; then
16866   # Export the flags if available, even if not enabled. This allows
16867   # "make src/client-test" in cases where "make all" would not build
16868   # client-test.
16869   CPPUNIT_CXXFLAGS=`$CPPUNIT_CONFIG --cflags`
16870   CPPUNIT_LDFLAGS=`$CPPUNIT_CONFIG --libs`
16871 fi
16872
16873
16874
16875 if test "x$enable_unit_tests" = 'xyes'; then
16876
16877 $as_echo "#define ENABLE_UNIT_TESTS 1" >>confdefs.h
16878
16879 fi
16880 if test "x$enable_integration_tests" = 'xyes'; then
16881
16882 $as_echo "#define ENABLE_INTEGRATION_TESTS 1" >>confdefs.h
16883
16884 fi
16885  if test "$enable_unit_tests" = "yes"; then
16886   ENABLE_UNIT_TESTS_TRUE=
16887   ENABLE_UNIT_TESTS_FALSE='#'
16888 else
16889   ENABLE_UNIT_TESTS_TRUE='#'
16890   ENABLE_UNIT_TESTS_FALSE=
16891 fi
16892
16893  if test "$enable_unit_tests" = "yes" || test "$enable_integration_tests" = "yes" ; then
16894   ENABLE_TESTING_TRUE=
16895   ENABLE_TESTING_FALSE='#'
16896 else
16897   ENABLE_TESTING_TRUE='#'
16898   ENABLE_TESTING_FALSE=
16899 fi
16900
16901
16902 if test $enable_static_cxx = "yes"; then
16903         LIBS="$LIBS -L."
16904         CORE_LDADD_DEP=libstdc++.a
16905 fi
16906
16907
16908 # Check for transport layer.
16909 # Both curl and libsoup can be enabled and disabled explicitly.
16910 # The default is to use libsoup if available, otherwise curl.
16911
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
16913 $as_echo_n "checking for libcurl... " >&6; }
16914 if LIBCURL_LIBS=`sh -c 'curl-config --libs' 2>&5` && \
16915     LIBCURL_CFLAGS=`sh -c 'curl-config --cflags' 2>&5`; then
16916     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16917 $as_echo "yes" >&6; }
16918     have_libcurl="yes"
16919 else
16920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16921 $as_echo "no" >&6; }
16922     have_libcurl="no"
16923 fi
16924
16925
16926
16927
16928
16929
16930
16931
16932 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16933         if test -n "$ac_tool_prefix"; then
16934   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16935 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16937 $as_echo_n "checking for $ac_word... " >&6; }
16938 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16939   $as_echo_n "(cached) " >&6
16940 else
16941   case $PKG_CONFIG in
16942   [\\/]* | ?:[\\/]*)
16943   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16944   ;;
16945   *)
16946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16947 for as_dir in $PATH
16948 do
16949   IFS=$as_save_IFS
16950   test -z "$as_dir" && as_dir=.
16951     for ac_exec_ext in '' $ac_executable_extensions; do
16952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16953     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16955     break 2
16956   fi
16957 done
16958   done
16959 IFS=$as_save_IFS
16960
16961   ;;
16962 esac
16963 fi
16964 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16965 if test -n "$PKG_CONFIG"; then
16966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16967 $as_echo "$PKG_CONFIG" >&6; }
16968 else
16969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16970 $as_echo "no" >&6; }
16971 fi
16972
16973
16974 fi
16975 if test -z "$ac_cv_path_PKG_CONFIG"; then
16976   ac_pt_PKG_CONFIG=$PKG_CONFIG
16977   # Extract the first word of "pkg-config", so it can be a program name with args.
16978 set dummy pkg-config; ac_word=$2
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16980 $as_echo_n "checking for $ac_word... " >&6; }
16981 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16982   $as_echo_n "(cached) " >&6
16983 else
16984   case $ac_pt_PKG_CONFIG in
16985   [\\/]* | ?:[\\/]*)
16986   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16987   ;;
16988   *)
16989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16990 for as_dir in $PATH
16991 do
16992   IFS=$as_save_IFS
16993   test -z "$as_dir" && as_dir=.
16994     for ac_exec_ext in '' $ac_executable_extensions; do
16995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16996     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16998     break 2
16999   fi
17000 done
17001   done
17002 IFS=$as_save_IFS
17003
17004   ;;
17005 esac
17006 fi
17007 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17008 if test -n "$ac_pt_PKG_CONFIG"; then
17009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17010 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17011 else
17012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17013 $as_echo "no" >&6; }
17014 fi
17015
17016   if test "x$ac_pt_PKG_CONFIG" = x; then
17017     PKG_CONFIG=""
17018   else
17019     case $cross_compiling:$ac_tool_warned in
17020 yes:)
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17023 ac_tool_warned=yes ;;
17024 esac
17025     PKG_CONFIG=$ac_pt_PKG_CONFIG
17026   fi
17027 else
17028   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17029 fi
17030
17031 fi
17032 if test -n "$PKG_CONFIG"; then
17033         _pkg_min_version=0.9.0
17034         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17035 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17036         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17037                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17038 $as_echo "yes" >&6; }
17039         else
17040                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17041 $as_echo "no" >&6; }
17042                 PKG_CONFIG=""
17043         fi
17044 fi
17045
17046 pkg_failed=no
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSOUP" >&5
17048 $as_echo_n "checking for LIBSOUP... " >&6; }
17049
17050 if test -n "$LIBSOUP_CFLAGS"; then
17051     pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
17052  elif test -n "$PKG_CONFIG"; then
17053     if test -n "$PKG_CONFIG" && \
17054     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4\""; } >&5
17055   ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4") 2>&5
17056   ac_status=$?
17057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17058   test $ac_status = 0; }; then
17059   pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-gnome-2.4" 2>/dev/null`
17060                       test "x$?" != "x0" && pkg_failed=yes
17061 else
17062   pkg_failed=yes
17063 fi
17064  else
17065     pkg_failed=untried
17066 fi
17067 if test -n "$LIBSOUP_LIBS"; then
17068     pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
17069  elif test -n "$PKG_CONFIG"; then
17070     if test -n "$PKG_CONFIG" && \
17071     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4\""; } >&5
17072   ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4") 2>&5
17073   ac_status=$?
17074   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17075   test $ac_status = 0; }; then
17076   pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-gnome-2.4" 2>/dev/null`
17077                       test "x$?" != "x0" && pkg_failed=yes
17078 else
17079   pkg_failed=yes
17080 fi
17081  else
17082     pkg_failed=untried
17083 fi
17084
17085
17086
17087 if test $pkg_failed = yes; then
17088         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17089 $as_echo "no" >&6; }
17090
17091 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17092         _pkg_short_errors_supported=yes
17093 else
17094         _pkg_short_errors_supported=no
17095 fi
17096         if test $_pkg_short_errors_supported = yes; then
17097                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsoup-gnome-2.4" 2>&1`
17098         else
17099                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsoup-gnome-2.4" 2>&1`
17100         fi
17101         # Put the nasty error message in config.log where it belongs
17102         echo "$LIBSOUP_PKG_ERRORS" >&5
17103
17104
17105 pkg_failed=no
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSOUP" >&5
17107 $as_echo_n "checking for LIBSOUP... " >&6; }
17108
17109 if test -n "$LIBSOUP_CFLAGS"; then
17110     pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
17111  elif test -n "$PKG_CONFIG"; then
17112     if test -n "$PKG_CONFIG" && \
17113     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
17114   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
17115   ac_status=$?
17116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17117   test $ac_status = 0; }; then
17118   pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
17119                       test "x$?" != "x0" && pkg_failed=yes
17120 else
17121   pkg_failed=yes
17122 fi
17123  else
17124     pkg_failed=untried
17125 fi
17126 if test -n "$LIBSOUP_LIBS"; then
17127     pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
17128  elif test -n "$PKG_CONFIG"; then
17129     if test -n "$PKG_CONFIG" && \
17130     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
17131   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
17132   ac_status=$?
17133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17134   test $ac_status = 0; }; then
17135   pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
17136                       test "x$?" != "x0" && pkg_failed=yes
17137 else
17138   pkg_failed=yes
17139 fi
17140  else
17141     pkg_failed=untried
17142 fi
17143
17144
17145
17146 if test $pkg_failed = yes; then
17147         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17148 $as_echo "no" >&6; }
17149
17150 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17151         _pkg_short_errors_supported=yes
17152 else
17153         _pkg_short_errors_supported=no
17154 fi
17155         if test $_pkg_short_errors_supported = yes; then
17156                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsoup-2.4" 2>&1`
17157         else
17158                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsoup-2.4" 2>&1`
17159         fi
17160         # Put the nasty error message in config.log where it belongs
17161         echo "$LIBSOUP_PKG_ERRORS" >&5
17162
17163         have_libsoup="no"
17164 elif test $pkg_failed = untried; then
17165         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17166 $as_echo "no" >&6; }
17167         have_libsoup="no"
17168 else
17169         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
17170         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
17171         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17172 $as_echo "yes" >&6; }
17173         have_libsoup="yes"
17174 fi
17175 elif test $pkg_failed = untried; then
17176         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17177 $as_echo "no" >&6; }
17178
17179 pkg_failed=no
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSOUP" >&5
17181 $as_echo_n "checking for LIBSOUP... " >&6; }
17182
17183 if test -n "$LIBSOUP_CFLAGS"; then
17184     pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
17185  elif test -n "$PKG_CONFIG"; then
17186     if test -n "$PKG_CONFIG" && \
17187     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
17188   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
17189   ac_status=$?
17190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17191   test $ac_status = 0; }; then
17192   pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
17193                       test "x$?" != "x0" && pkg_failed=yes
17194 else
17195   pkg_failed=yes
17196 fi
17197  else
17198     pkg_failed=untried
17199 fi
17200 if test -n "$LIBSOUP_LIBS"; then
17201     pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
17202  elif test -n "$PKG_CONFIG"; then
17203     if test -n "$PKG_CONFIG" && \
17204     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
17205   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
17206   ac_status=$?
17207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17208   test $ac_status = 0; }; then
17209   pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
17210                       test "x$?" != "x0" && pkg_failed=yes
17211 else
17212   pkg_failed=yes
17213 fi
17214  else
17215     pkg_failed=untried
17216 fi
17217
17218
17219
17220 if test $pkg_failed = yes; then
17221         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17222 $as_echo "no" >&6; }
17223
17224 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17225         _pkg_short_errors_supported=yes
17226 else
17227         _pkg_short_errors_supported=no
17228 fi
17229         if test $_pkg_short_errors_supported = yes; then
17230                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsoup-2.4" 2>&1`
17231         else
17232                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsoup-2.4" 2>&1`
17233         fi
17234         # Put the nasty error message in config.log where it belongs
17235         echo "$LIBSOUP_PKG_ERRORS" >&5
17236
17237         have_libsoup="no"
17238 elif test $pkg_failed = untried; then
17239         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17240 $as_echo "no" >&6; }
17241         have_libsoup="no"
17242 else
17243         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
17244         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
17245         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17246 $as_echo "yes" >&6; }
17247         have_libsoup="yes"
17248 fi
17249 else
17250         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
17251         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
17252         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17253 $as_echo "yes" >&6; }
17254         have_libsoup="yes"
17255
17256 $as_echo "#define HAVE_LIBSOUP_SOUP_GNOME_FEATURES_H 1" >>confdefs.h
17257
17258 fi
17259
17260
17261 pkg_failed=no
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENOBEX" >&5
17263 $as_echo_n "checking for LIBOPENOBEX... " >&6; }
17264
17265 if test -n "$LIBOPENOBEX_CFLAGS"; then
17266     pkg_cv_LIBOPENOBEX_CFLAGS="$LIBOPENOBEX_CFLAGS"
17267  elif test -n "$PKG_CONFIG"; then
17268     if test -n "$PKG_CONFIG" && \
17269     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openobex\""; } >&5
17270   ($PKG_CONFIG --exists --print-errors "openobex") 2>&5
17271   ac_status=$?
17272   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17273   test $ac_status = 0; }; then
17274   pkg_cv_LIBOPENOBEX_CFLAGS=`$PKG_CONFIG --cflags "openobex" 2>/dev/null`
17275                       test "x$?" != "x0" && pkg_failed=yes
17276 else
17277   pkg_failed=yes
17278 fi
17279  else
17280     pkg_failed=untried
17281 fi
17282 if test -n "$LIBOPENOBEX_LIBS"; then
17283     pkg_cv_LIBOPENOBEX_LIBS="$LIBOPENOBEX_LIBS"
17284  elif test -n "$PKG_CONFIG"; then
17285     if test -n "$PKG_CONFIG" && \
17286     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openobex\""; } >&5
17287   ($PKG_CONFIG --exists --print-errors "openobex") 2>&5
17288   ac_status=$?
17289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17290   test $ac_status = 0; }; then
17291   pkg_cv_LIBOPENOBEX_LIBS=`$PKG_CONFIG --libs "openobex" 2>/dev/null`
17292                       test "x$?" != "x0" && pkg_failed=yes
17293 else
17294   pkg_failed=yes
17295 fi
17296  else
17297     pkg_failed=untried
17298 fi
17299
17300
17301
17302 if test $pkg_failed = yes; then
17303         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17304 $as_echo "no" >&6; }
17305
17306 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17307         _pkg_short_errors_supported=yes
17308 else
17309         _pkg_short_errors_supported=no
17310 fi
17311         if test $_pkg_short_errors_supported = yes; then
17312                 LIBOPENOBEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openobex" 2>&1`
17313         else
17314                 LIBOPENOBEX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openobex" 2>&1`
17315         fi
17316         # Put the nasty error message in config.log where it belongs
17317         echo "$LIBOPENOBEX_PKG_ERRORS" >&5
17318
17319         have_obex="no"
17320 elif test $pkg_failed = untried; then
17321         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17322 $as_echo "no" >&6; }
17323         have_obex="no"
17324 else
17325         LIBOPENOBEX_CFLAGS=$pkg_cv_LIBOPENOBEX_CFLAGS
17326         LIBOPENOBEX_LIBS=$pkg_cv_LIBOPENOBEX_LIBS
17327         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17328 $as_echo "yes" >&6; }
17329         have_obex="yes"
17330 fi
17331 have_bluetooth="no"
17332 if test $have_obex = "yes"; then
17333
17334 pkg_failed=no
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLUEZ" >&5
17336 $as_echo_n "checking for BLUEZ... " >&6; }
17337
17338 if test -n "$BLUEZ_CFLAGS"; then
17339     pkg_cv_BLUEZ_CFLAGS="$BLUEZ_CFLAGS"
17340  elif test -n "$PKG_CONFIG"; then
17341     if test -n "$PKG_CONFIG" && \
17342     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez\""; } >&5
17343   ($PKG_CONFIG --exists --print-errors "bluez") 2>&5
17344   ac_status=$?
17345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17346   test $ac_status = 0; }; then
17347   pkg_cv_BLUEZ_CFLAGS=`$PKG_CONFIG --cflags "bluez" 2>/dev/null`
17348                       test "x$?" != "x0" && pkg_failed=yes
17349 else
17350   pkg_failed=yes
17351 fi
17352  else
17353     pkg_failed=untried
17354 fi
17355 if test -n "$BLUEZ_LIBS"; then
17356     pkg_cv_BLUEZ_LIBS="$BLUEZ_LIBS"
17357  elif test -n "$PKG_CONFIG"; then
17358     if test -n "$PKG_CONFIG" && \
17359     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez\""; } >&5
17360   ($PKG_CONFIG --exists --print-errors "bluez") 2>&5
17361   ac_status=$?
17362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17363   test $ac_status = 0; }; then
17364   pkg_cv_BLUEZ_LIBS=`$PKG_CONFIG --libs "bluez" 2>/dev/null`
17365                       test "x$?" != "x0" && pkg_failed=yes
17366 else
17367   pkg_failed=yes
17368 fi
17369  else
17370     pkg_failed=untried
17371 fi
17372
17373
17374
17375 if test $pkg_failed = yes; then
17376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17377 $as_echo "no" >&6; }
17378
17379 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17380         _pkg_short_errors_supported=yes
17381 else
17382         _pkg_short_errors_supported=no
17383 fi
17384         if test $_pkg_short_errors_supported = yes; then
17385                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bluez" 2>&1`
17386         else
17387                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bluez" 2>&1`
17388         fi
17389         # Put the nasty error message in config.log where it belongs
17390         echo "$BLUEZ_PKG_ERRORS" >&5
17391
17392         have_bluez="no"
17393 elif test $pkg_failed = untried; then
17394         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17395 $as_echo "no" >&6; }
17396         have_bluez="no"
17397 else
17398         BLUEZ_CFLAGS=$pkg_cv_BLUEZ_CFLAGS
17399         BLUEZ_LIBS=$pkg_cv_BLUEZ_LIBS
17400         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17401 $as_echo "yes" >&6; }
17402         have_bluez="yes"
17403 fi
17404     if test $have_bluez = "yes"; then
17405         have_bluetooth="yes"
17406     fi
17407 fi
17408
17409
17410
17411
17412
17413 TRANSPORT=
17414 TRANSPORT_LIBS=
17415 TRANSPORT_CFLAGS=
17416
17417
17418 # Check whether --with-ca-certificates was given.
17419 if test "${with_ca_certificates+set}" = set; then :
17420   withval=$with_ca_certificates; CA_CERTIFICATES="$withval"
17421 fi
17422
17423
17424
17425 # choose default http transport (mirrors code in EvolutionSyncClient::createTransportAgent())
17426 if test "$have_libsoup" = "yes"; then
17427    default_http_transport="libsoup"
17428 elif test "$have_libcurl" = "yes"; then
17429    default_http_transport="libcurl"
17430 fi
17431
17432 # Check whether --enable-libcurl was given.
17433 if test "${enable_libcurl+set}" = set; then :
17434   enableval=$enable_libcurl;  if test "$enableval" = "yes"; then
17435                    test "$have_libcurl" = "yes" || as_fn_error $? "libcurl not found" "$LINENO" 5
17436                    TRANSPORT="$TRANSPORT libcurl"
17437                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBCURL_LIBS"
17438                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBCURL_CFLAGS"
17439
17440 $as_echo "#define ENABLE_LIBCURL 1" >>confdefs.h
17441
17442                 else
17443                    libcurl_disabled="yes"
17444                 fi
17445 else
17446    if test "$have_libcurl" = "yes" && test "$default_http_transport" = "libcurl" ; then
17447                    TRANSPORT="$TRANSPORT libcurl"
17448                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBCURL_LIBS"
17449                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBCURL_CFLAGS"
17450
17451 $as_echo "#define ENABLE_LIBCURL 1" >>confdefs.h
17452
17453                 fi
17454 fi
17455
17456
17457 # Check whether --enable-libsoup was given.
17458 if test "${enable_libsoup+set}" = set; then :
17459   enableval=$enable_libsoup;  if test "$enableval" = "yes"; then
17460                    test "$have_libsoup" = "yes" || as_fn_error $? "libsoup not found" "$LINENO" 5
17461                    TRANSPORT="$TRANSPORT libsoup"
17462                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBSOUP_LIBS"
17463                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBSOUP_CFLAGS"
17464
17465 $as_echo "#define ENABLE_LIBSOUP 1" >>confdefs.h
17466
17467                 else
17468                    libsoup_disabled="yes"
17469                 fi
17470 else
17471    if test "$have_libsoup" = "yes" && test "$default_http_transport" = "libsoup"; then
17472                    TRANSPORT="$TRANSPORT libsoup"
17473                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBSOUP_LIBS"
17474                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBSOUP_CFLAGS"
17475
17476 $as_echo "#define ENABLE_LIBSOUP 1" >>confdefs.h
17477
17478                 fi
17479 fi
17480
17481
17482 # SoupTransportAgent depends on glib
17483 case "$TRANSPORT" in *libsoup*) need_glib=yes;; esac
17484
17485 # Check whether --enable-dlt was given.
17486 if test "${enable_dlt+set}" = set; then :
17487   enableval=$enable_dlt; enable_dlt=$enableval
17488                test $enable_dlt = "yes" || test $enable_dlt = "no" || as_fn_error $? "invalid value of --enable-dlt: $enableval" "$LINENO" 5
17489 else
17490   enable_dlt="no"
17491 fi
17492
17493 if test "$enable_dlt" = "yes"; then
17494
17495 pkg_failed=no
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT" >&5
17497 $as_echo_n "checking for DLT... " >&6; }
17498
17499 if test -n "$DLT_CFLAGS"; then
17500     pkg_cv_DLT_CFLAGS="$DLT_CFLAGS"
17501  elif test -n "$PKG_CONFIG"; then
17502     if test -n "$PKG_CONFIG" && \
17503     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"automotive-dlt\""; } >&5
17504   ($PKG_CONFIG --exists --print-errors "automotive-dlt") 2>&5
17505   ac_status=$?
17506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17507   test $ac_status = 0; }; then
17508   pkg_cv_DLT_CFLAGS=`$PKG_CONFIG --cflags "automotive-dlt" 2>/dev/null`
17509                       test "x$?" != "x0" && pkg_failed=yes
17510 else
17511   pkg_failed=yes
17512 fi
17513  else
17514     pkg_failed=untried
17515 fi
17516 if test -n "$DLT_LIBS"; then
17517     pkg_cv_DLT_LIBS="$DLT_LIBS"
17518  elif test -n "$PKG_CONFIG"; then
17519     if test -n "$PKG_CONFIG" && \
17520     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"automotive-dlt\""; } >&5
17521   ($PKG_CONFIG --exists --print-errors "automotive-dlt") 2>&5
17522   ac_status=$?
17523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17524   test $ac_status = 0; }; then
17525   pkg_cv_DLT_LIBS=`$PKG_CONFIG --libs "automotive-dlt" 2>/dev/null`
17526                       test "x$?" != "x0" && pkg_failed=yes
17527 else
17528   pkg_failed=yes
17529 fi
17530  else
17531     pkg_failed=untried
17532 fi
17533
17534
17535
17536 if test $pkg_failed = yes; then
17537         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17538 $as_echo "no" >&6; }
17539
17540 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17541         _pkg_short_errors_supported=yes
17542 else
17543         _pkg_short_errors_supported=no
17544 fi
17545         if test $_pkg_short_errors_supported = yes; then
17546                 DLT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "automotive-dlt" 2>&1`
17547         else
17548                 DLT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "automotive-dlt" 2>&1`
17549         fi
17550         # Put the nasty error message in config.log where it belongs
17551         echo "$DLT_PKG_ERRORS" >&5
17552
17553         as_fn_error $? "dlt not found, required for --enable-dlt" "$LINENO" 5
17554 elif test $pkg_failed = untried; then
17555         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17556 $as_echo "no" >&6; }
17557         as_fn_error $? "dlt not found, required for --enable-dlt" "$LINENO" 5
17558 else
17559         DLT_CFLAGS=$pkg_cv_DLT_CFLAGS
17560         DLT_LIBS=$pkg_cv_DLT_LIBS
17561         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17562 $as_echo "yes" >&6; }
17563         USE_DLT=1
17564 fi
17565
17566 $as_echo "#define USE_DLT 1" >>confdefs.h
17567
17568
17569 # Check whether --with-dlt-syncevolution was given.
17570 if test "${with_dlt_syncevolution+set}" = set; then :
17571   withval=$with_dlt_syncevolution; with_dlt_ids="$withval"
17572 else
17573   with_dlt_ids="SYNS,SYNH,SYNL"
17574 fi
17575
17576     syns=`echo $with_dlt_ids | cut -d , -f 1`
17577     synh=`echo $with_dlt_ids | cut -d , -f 2`
17578     synl=`echo $with_dlt_ids | cut -d , -f 3`
17579
17580 cat >>confdefs.h <<_ACEOF
17581 #define DLT_SYNCEVO_DBUS_SERVER_ID "$syns"
17582 _ACEOF
17583
17584
17585 cat >>confdefs.h <<_ACEOF
17586 #define DLT_SYNCEVO_DBUS_HELPER_ID "$synh"
17587 _ACEOF
17588
17589
17590 cat >>confdefs.h <<_ACEOF
17591 #define DLT_SYNCEVO_LOCAL_HELPER_ID "$synl"
17592 _ACEOF
17593
17594 fi
17595
17596 bluetooth_disabled=no
17597 # Check whether --enable-bluetooth was given.
17598 if test "${enable_bluetooth+set}" = set; then :
17599   enableval=$enable_bluetooth;  enable_bluetooth="$enableval"
17600                 if test "$enableval" = "no"; then
17601                     bluetooth_disabled=yes
17602                 fi
17603
17604 else
17605    enable_bluetooth="$have_bluetooth"
17606 fi
17607
17608
17609 if test "$enable_bluetooth" = "yes"; then
17610    # currently we need Bluetooth and OBEX support
17611    test "$have_bluetooth" = "yes" || as_fn_error $? "openobex or bluez not found" "$LINENO" 5
17612
17613    ac_ext=c
17614 ac_cpp='$CPP $CPPFLAGS'
17615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17618
17619    CFLAGS_old="$CFLAGS"
17620    CFLAGS="$CPPFLAGS $BLUEZ_CFLAGS"
17621    # test in this order:
17622    # - recent libbluetooth (no _safe variant, base function has bufsize)
17623    # - intermediate with _safe
17624    # - else assume old-style (no bufsize, no _safe)
17625    #
17626    # The source code checks the signature both by via pointer assignment and calling
17627    # it (better safe than sorry). One these should fail if the signature is not right.
17628    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17629 /* end confdefs.h.  */
17630
17631                       #include <bluetooth/sdp.h>
17632                       #include <bluetooth/sdp_lib.h>
17633                       sdp_record_t *(*extract_pdu)(const uint8_t *pdata, int bufsize, int *scanned) =
17634                            sdp_extract_pdu;
17635                       void foo(void) {
17636                           uint8_t *pdata = NULL;
17637                           int scanned;
17638                           sdp_extract_pdu(pdata, 100, &scanned);
17639                       }
17640
17641 _ACEOF
17642 if ac_fn_c_try_compile "$LINENO"; then :
17643
17644 $as_echo "#define HAVE_BLUEZ_BUFSIZE 1" >>confdefs.h
17645
17646 else
17647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17648 /* end confdefs.h.  */
17649
17650                                         #include <bluetooth/sdp.h>
17651                                         #include <bluetooth/sdp_lib.h>
17652                                         sdp_record_t *(*extract_pdu)(const uint8_t *pdata, int bufsize, int *scanned) =
17653                                                sdp_extract_pdu_safe;
17654                                         void foo(void) {
17655                                             uint8_t *pdata = NULL;
17656                                             int scanned;
17657                                             sdp_extract_pdu_safe(pdata, 100, &scanned);
17658                                         }
17659
17660 _ACEOF
17661 if ac_fn_c_try_compile "$LINENO"; then :
17662
17663 $as_echo "#define HAVE_BLUEZ_SAFE 1" >>confdefs.h
17664
17665 fi
17666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17667 fi
17668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17669    CFLAGS="$CFLAGS_old"
17670
17671    if test "$have_obex" = "yes"; then
17672
17673 $as_echo "#define ENABLE_OBEX 1" >>confdefs.h
17674
17675    fi
17676    if test "$have_bluez" = "yes"; then
17677
17678 $as_echo "#define ENABLE_BLUETOOTH 1" >>confdefs.h
17679
17680    fi
17681 fi
17682  if test "$have_obex" = "yes" && test "$enable_bluetooth" = "yes"; then
17683   ENABLE_OBEX_TRUE=
17684   ENABLE_OBEX_FALSE='#'
17685 else
17686   ENABLE_OBEX_TRUE='#'
17687   ENABLE_OBEX_FALSE=
17688 fi
17689
17690  if test "$have_bluetooth" = "yes" && test "$enable_bluetooth" = "yes"; then
17691   ENABLE_BLUETOOTH_TRUE=
17692   ENABLE_BLUETOOTH_FALSE='#'
17693 else
17694   ENABLE_BLUETOOTH_TRUE='#'
17695   ENABLE_BLUETOOTH_FALSE=
17696 fi
17697
17698
17699 if test ! "$TRANSPORT" &&
17700    test "$libsoup_disabled" != "yes" &&
17701    test "$libcurl_disabled" != "yes" &&
17702    test "$bluetooth_disabled" != "yes" &&
17703    test "$have_bluetooth" != "yes" ; then
17704    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
17705 fi
17706
17707 # for libsoup we must specify the SSL certificate file outself
17708 if test "$libsoup_disabled" != "yes" && test -z "$CA_CERTIFICATES"; then
17709    # Debian and Red Hat paths
17710    CA_CERTIFICATES="/etc/ssl/certs/ca-certificates.crt:/etc/pki/tls/certs/ca-bundle.crt:/usr/share/ssl/certs/ca-bundle.crt"
17711 fi
17712
17713 cat >>confdefs.h <<_ACEOF
17714 #define SYNCEVOLUTION_SSL_SERVER_CERTIFICATES "$CA_CERTIFICATES"
17715 _ACEOF
17716
17717
17718
17719
17720
17721 # Check whether --enable-ssl-certificate-check was given.
17722 if test "${enable_ssl_certificate_check+set}" = set; then :
17723   enableval=$enable_ssl_certificate_check; enable_ssl_certificate_check="$enableval"
17724 else
17725   enable_ssl_certificate_check="yes"
17726 fi
17727
17728 if test "$enable_ssl_certificate_check" = "yes"; then
17729
17730 $as_echo "#define ENABLE_SSL_CERTIFICATE_CHECK 1" >>confdefs.h
17731
17732 fi
17733
17734 # for dbus interface file mangling
17735 # Extract the first word of "xsltproc", so it can be a program name with args.
17736 set dummy xsltproc; ac_word=$2
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17738 $as_echo_n "checking for $ac_word... " >&6; }
17739 if ${ac_cv_path_XSLT+:} false; then :
17740   $as_echo_n "(cached) " >&6
17741 else
17742   case $XSLT in
17743   [\\/]* | ?:[\\/]*)
17744   ac_cv_path_XSLT="$XSLT" # Let the user override the test with a path.
17745   ;;
17746   *)
17747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17748 for as_dir in $PATH
17749 do
17750   IFS=$as_save_IFS
17751   test -z "$as_dir" && as_dir=.
17752     for ac_exec_ext in '' $ac_executable_extensions; do
17753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17754     ac_cv_path_XSLT="$as_dir/$ac_word$ac_exec_ext"
17755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17756     break 2
17757   fi
17758 done
17759   done
17760 IFS=$as_save_IFS
17761
17762   ;;
17763 esac
17764 fi
17765 XSLT=$ac_cv_path_XSLT
17766 if test -n "$XSLT"; then
17767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT" >&5
17768 $as_echo "$XSLT" >&6; }
17769 else
17770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17771 $as_echo "no" >&6; }
17772 fi
17773
17774
17775
17776
17777 # Changes in GTK3 mean that supporting both GTK3 and GTK2 in the same codebase
17778 # is difficult. We want to support GTK2 for the time being so the code is forked.
17779 # Check whether --enable-gtk was given.
17780 if test "${enable_gtk+set}" = set; then :
17781   enableval=$enable_gtk;  if test "$enableval" = "3" ; then
17782                     gtk_version=gtk+-3.0
17783                 elif test "$enableval" = "2" ; then
17784                     gtk_version=gtk+-2.0
17785                 else
17786                     as_fn_error $? "Unknown gtk version: '$enableval'" "$LINENO" 5
17787                 fi
17788
17789 else
17790    if test -n "$PKG_CONFIG" && \
17791     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
17792   ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
17793   ac_status=$?
17794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17795   test $ac_status = 0; }; then
17796   gtk_version=gtk+-3.0
17797 else
17798   gtk_version=gtk+-2.0
17799 fi
17800 fi
17801
17802
17803
17804  if test "$gtk_version" = "gtk+-2.0"; then
17805   COND_GTK2_TRUE=
17806   COND_GTK2_FALSE='#'
17807 else
17808   COND_GTK2_TRUE='#'
17809   COND_GTK2_FALSE=
17810 fi
17811
17812
17813 # Check whether --enable-gui was given.
17814 if test "${enable_gui+set}" = set; then :
17815   enableval=$enable_gui;  if test "$enableval" = "gtk" ; then
17816                     enable_gui=gtk
17817                 elif test "$enableval" = "yes" ; then
17818                     enable_gui=gtk
17819                 elif test "$enableval" = "moblin" ; then
17820                     enable_gui=moblin
17821                 elif test "$enableval" = "no" ; then
17822                     enable_gui=no
17823                 elif test "$enableval" = "all" ; then
17824                     enable_gui=all
17825                 else
17826                     as_fn_error $? "Unknown gui type: '$enableval'" "$LINENO" 5
17827                 fi
17828
17829 else
17830    enable_gui=no
17831 fi
17832
17833
17834  if test "$enable_gui" != "no"; then
17835   COND_GUI_TRUE=
17836   COND_GUI_FALSE='#'
17837 else
17838   COND_GUI_TRUE='#'
17839   COND_GUI_FALSE=
17840 fi
17841
17842
17843 # Check whether --enable-core was given.
17844 if test "${enable_core+set}" = set; then :
17845   enableval=$enable_core; enable_core="$enableval"
17846 else
17847   enable_core="yes"
17848 fi
17849
17850  if test "$enable_core" = "yes"; then
17851   COND_CORE_TRUE=
17852   COND_CORE_FALSE='#'
17853 else
17854   COND_CORE_TRUE='#'
17855   COND_CORE_FALSE=
17856 fi
17857
17858
17859 # Check whether --enable-dbus-service was given.
17860 if test "${enable_dbus_service+set}" = set; then :
17861   enableval=$enable_dbus_service; enable_dbus_service="$enableval"
17862 else
17863   if test $enable_gui = "no"; then
17864                   enable_dbus_service="no"
17865                else
17866                   enable_dbus_service="yes"
17867                fi
17868 fi
17869
17870  if test "$enable_dbus_service" != "no"; then
17871   COND_DBUS_TRUE=
17872   COND_DBUS_FALSE='#'
17873 else
17874   COND_DBUS_TRUE='#'
17875   COND_DBUS_FALSE=
17876 fi
17877
17878 if test "$enable_dbus_service" != "no" && test "$enable_dbus_service" != "yes"; then
17879    SYNCEVO_DBUS_SERVER_ARGS="$enable_dbus_service"
17880 fi
17881
17882
17883
17884 # Check whether --with-gio-gdbus was given.
17885 if test "${with_gio_gdbus+set}" = set; then :
17886   withval=$with_gio_gdbus; with_gio_gdbus="$withval"
17887 else
17888   if test -n "$PKG_CONFIG" && \
17889     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.30\""; } >&5
17890   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.30") 2>&5
17891   ac_status=$?
17892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17893   test $ac_status = 0; }; then
17894   with_gio_gdbus="yes"
17895 else
17896   with_gio_gdbus="no"
17897 fi
17898 fi
17899
17900  if test "x$with_gio_gdbus" = "xyes"; then
17901   COND_GIO_GDBUS_TRUE=
17902   COND_GIO_GDBUS_FALSE='#'
17903 else
17904   COND_GIO_GDBUS_TRUE='#'
17905   COND_GIO_GDBUS_FALSE=
17906 fi
17907
17908
17909 # We only need to check for dbus-1 if gio-gdbus is not used.
17910 #
17911 # Local sync depends on D-Bus communication between parent
17912 # and child process (works without a D-Bus daemon), and local
17913 # sync is not an optional feature. Could be made one if
17914 # someone is interested enough.
17915 #
17916 # Therefore, at the moment, either libdbus or gio-gdbus are needed
17917 # unconditionally. glib is needed in all cases now.
17918 need_glib=yes
17919 if test "x$with_gio_gdbus" = "xyes"; then :
17920
17921 pkg_failed=no
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
17923 $as_echo_n "checking for DBUS... " >&6; }
17924
17925 if test -n "$DBUS_CFLAGS"; then
17926     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
17927  elif test -n "$PKG_CONFIG"; then
17928     if test -n "$PKG_CONFIG" && \
17929     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
17930   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
17931   ac_status=$?
17932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17933   test $ac_status = 0; }; then
17934   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
17935                       test "x$?" != "x0" && pkg_failed=yes
17936 else
17937   pkg_failed=yes
17938 fi
17939  else
17940     pkg_failed=untried
17941 fi
17942 if test -n "$DBUS_LIBS"; then
17943     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
17944  elif test -n "$PKG_CONFIG"; then
17945     if test -n "$PKG_CONFIG" && \
17946     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
17947   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
17948   ac_status=$?
17949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17950   test $ac_status = 0; }; then
17951   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
17952                       test "x$?" != "x0" && pkg_failed=yes
17953 else
17954   pkg_failed=yes
17955 fi
17956  else
17957     pkg_failed=untried
17958 fi
17959
17960
17961
17962 if test $pkg_failed = yes; then
17963         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17964 $as_echo "no" >&6; }
17965
17966 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17967         _pkg_short_errors_supported=yes
17968 else
17969         _pkg_short_errors_supported=no
17970 fi
17971         if test $_pkg_short_errors_supported = yes; then
17972                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
17973         else
17974                 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
17975         fi
17976         # Put the nasty error message in config.log where it belongs
17977         echo "$DBUS_PKG_ERRORS" >&5
17978
17979         as_fn_error $? "Package requirements (gio-2.0 >= 2.26) were not met:
17980
17981 $DBUS_PKG_ERRORS
17982
17983 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17984 installed software in a non-standard prefix.
17985
17986 Alternatively, you may set the environment variables DBUS_CFLAGS
17987 and DBUS_LIBS to avoid the need to call pkg-config.
17988 See the pkg-config man page for more details." "$LINENO" 5
17989 elif test $pkg_failed = untried; then
17990         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17991 $as_echo "no" >&6; }
17992         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17994 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17995 is in your PATH or set the PKG_CONFIG environment variable to the full
17996 path to pkg-config.
17997
17998 Alternatively, you may set the environment variables DBUS_CFLAGS
17999 and DBUS_LIBS to avoid the need to call pkg-config.
18000 See the pkg-config man page for more details.
18001
18002 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18003 See \`config.log' for more details" "$LINENO" 5; }
18004 else
18005         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
18006         DBUS_LIBS=$pkg_cv_DBUS_LIBS
18007         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18008 $as_echo "yes" >&6; }
18009
18010 fi
18011
18012 $as_echo "#define WITH_GIO_GDBUS /**/" >>confdefs.h
18013
18014 else
18015
18016 pkg_failed=no
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
18018 $as_echo_n "checking for DBUS... " >&6; }
18019
18020 if test -n "$DBUS_CFLAGS"; then
18021     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
18022  elif test -n "$PKG_CONFIG"; then
18023     if test -n "$PKG_CONFIG" && \
18024     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
18025   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
18026   ac_status=$?
18027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18028   test $ac_status = 0; }; then
18029   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
18030                       test "x$?" != "x0" && pkg_failed=yes
18031 else
18032   pkg_failed=yes
18033 fi
18034  else
18035     pkg_failed=untried
18036 fi
18037 if test -n "$DBUS_LIBS"; then
18038     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
18039  elif test -n "$PKG_CONFIG"; then
18040     if test -n "$PKG_CONFIG" && \
18041     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
18042   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
18043   ac_status=$?
18044   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18045   test $ac_status = 0; }; then
18046   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
18047                       test "x$?" != "x0" && pkg_failed=yes
18048 else
18049   pkg_failed=yes
18050 fi
18051  else
18052     pkg_failed=untried
18053 fi
18054
18055
18056
18057 if test $pkg_failed = yes; then
18058         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18059 $as_echo "no" >&6; }
18060
18061 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18062         _pkg_short_errors_supported=yes
18063 else
18064         _pkg_short_errors_supported=no
18065 fi
18066         if test $_pkg_short_errors_supported = yes; then
18067                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
18068         else
18069                 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
18070         fi
18071         # Put the nasty error message in config.log where it belongs
18072         echo "$DBUS_PKG_ERRORS" >&5
18073
18074         as_fn_error $? "libdbus-1 is required" "$LINENO" 5
18075 elif test $pkg_failed = untried; then
18076         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18077 $as_echo "no" >&6; }
18078         as_fn_error $? "libdbus-1 is required" "$LINENO" 5
18079 else
18080         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
18081         DBUS_LIBS=$pkg_cv_DBUS_LIBS
18082         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18083 $as_echo "yes" >&6; }
18084         dummy=yes
18085 fi
18086        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_watch_get_unix_fd in -ldbus-1" >&5
18087 $as_echo_n "checking for dbus_watch_get_unix_fd in -ldbus-1... " >&6; }
18088 if ${ac_cv_lib_dbus_1_dbus_watch_get_unix_fd+:} false; then :
18089   $as_echo_n "(cached) " >&6
18090 else
18091   ac_check_lib_save_LIBS=$LIBS
18092 LIBS="-ldbus-1  $LIBS"
18093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18094 /* end confdefs.h.  */
18095
18096 /* Override any GCC internal prototype to avoid an error.
18097    Use char because int might match the return type of a GCC
18098    builtin and then its argument prototype would still apply.  */
18099 #ifdef __cplusplus
18100 extern "C"
18101 #endif
18102 char dbus_watch_get_unix_fd ();
18103 int
18104 main ()
18105 {
18106 return dbus_watch_get_unix_fd ();
18107   ;
18108   return 0;
18109 }
18110 _ACEOF
18111 if ac_fn_c_try_link "$LINENO"; then :
18112   ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=yes
18113 else
18114   ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=no
18115 fi
18116 rm -f core conftest.err conftest.$ac_objext \
18117     conftest$ac_exeext conftest.$ac_ext
18118 LIBS=$ac_check_lib_save_LIBS
18119 fi
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&5
18121 $as_echo "$ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&6; }
18122 if test "x$ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" = xyes; then :
18123   dummy=yes
18124 else
18125
18126 $as_echo "#define NEED_DBUS_WATCH_GET_UNIX_FD 1" >>confdefs.h
18127
18128 fi
18129
18130 fi
18131
18132 if test "$enable_dbus_service" != "no"; then
18133     if test -z "$XSLT"; then
18134        as_fn_error $? "xsltproc not found, is required for D-Bus service" "$LINENO" 5
18135     fi
18136     # Recent libnotify releases work with gtk+-2.0 and gtk+-3.0.
18137     # Check whether --enable-notify was given.
18138 if test "${enable_notify+set}" = set; then :
18139   enableval=$enable_notify; enable_notify="$enableval"
18140 else
18141   if test -n "$PKG_CONFIG" && \
18142     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify \$gtk_version\""; } >&5
18143   ($PKG_CONFIG --exists --print-errors "libnotify $gtk_version") 2>&5
18144   ac_status=$?
18145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18146   test $ac_status = 0; }; then
18147   enable_notify="yes"
18148 else
18149   enable_notify="no"
18150 fi
18151 fi
18152
18153     if test "x$enable_notify" = "xyes"; then :
18154
18155 pkg_failed=no
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
18157 $as_echo_n "checking for LIBNOTIFY... " >&6; }
18158
18159 if test -n "$LIBNOTIFY_CFLAGS"; then
18160     pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
18161  elif test -n "$PKG_CONFIG"; then
18162     if test -n "$PKG_CONFIG" && \
18163     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify \$gtk_version\""; } >&5
18164   ($PKG_CONFIG --exists --print-errors "libnotify $gtk_version") 2>&5
18165   ac_status=$?
18166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18167   test $ac_status = 0; }; then
18168   pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify $gtk_version" 2>/dev/null`
18169                       test "x$?" != "x0" && pkg_failed=yes
18170 else
18171   pkg_failed=yes
18172 fi
18173  else
18174     pkg_failed=untried
18175 fi
18176 if test -n "$LIBNOTIFY_LIBS"; then
18177     pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
18178  elif test -n "$PKG_CONFIG"; then
18179     if test -n "$PKG_CONFIG" && \
18180     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify \$gtk_version\""; } >&5
18181   ($PKG_CONFIG --exists --print-errors "libnotify $gtk_version") 2>&5
18182   ac_status=$?
18183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18184   test $ac_status = 0; }; then
18185   pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify $gtk_version" 2>/dev/null`
18186                       test "x$?" != "x0" && pkg_failed=yes
18187 else
18188   pkg_failed=yes
18189 fi
18190  else
18191     pkg_failed=untried
18192 fi
18193
18194
18195
18196 if test $pkg_failed = yes; then
18197         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18198 $as_echo "no" >&6; }
18199
18200 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18201         _pkg_short_errors_supported=yes
18202 else
18203         _pkg_short_errors_supported=no
18204 fi
18205         if test $_pkg_short_errors_supported = yes; then
18206                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify $gtk_version" 2>&1`
18207         else
18208                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify $gtk_version" 2>&1`
18209         fi
18210         # Put the nasty error message in config.log where it belongs
18211         echo "$LIBNOTIFY_PKG_ERRORS" >&5
18212
18213         as_fn_error $? "Package requirements (libnotify $gtk_version) were not met:
18214
18215 $LIBNOTIFY_PKG_ERRORS
18216
18217 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18218 installed software in a non-standard prefix.
18219
18220 Alternatively, you may set the environment variables LIBNOTIFY_CFLAGS
18221 and LIBNOTIFY_LIBS to avoid the need to call pkg-config.
18222 See the pkg-config man page for more details." "$LINENO" 5
18223 elif test $pkg_failed = untried; then
18224         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18225 $as_echo "no" >&6; }
18226         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18228 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18229 is in your PATH or set the PKG_CONFIG environment variable to the full
18230 path to pkg-config.
18231
18232 Alternatively, you may set the environment variables LIBNOTIFY_CFLAGS
18233 and LIBNOTIFY_LIBS to avoid the need to call pkg-config.
18234 See the pkg-config man page for more details.
18235
18236 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18237 See \`config.log' for more details" "$LINENO" 5; }
18238 else
18239         LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
18240         LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
18241         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18242 $as_echo "yes" >&6; }
18243
18244 fi
18245
18246 $as_echo "#define HAS_NOTIFY 1" >>confdefs.h
18247
18248 fi
18249
18250     # Check whether --enable-notify-compatibility was given.
18251 if test "${enable_notify_compatibility+set}" = set; then :
18252   enableval=$enable_notify_compatibility; enable_notify_compat="$enableval"
18253 else
18254   enable_notify_compat="no"
18255
18256 fi
18257
18258     if test "$enable_notify_compat" = "yes"; then
18259
18260 $as_echo "#define NOTIFY_COMPATIBILITY 1" >>confdefs.h
18261
18262         LIBNOTIFY_LIBS="`echo $LIBNOTIFY_LIBS | sed -e 's/\(-lnotify\|^ *libnotify.la\)/-ldl/'`"
18263     fi
18264
18265     # Here we're using QtGui too because mlite fails to depend on it,
18266     # despite using QAction.
18267
18268 pkg_failed=no
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MLITE" >&5
18270 $as_echo_n "checking for MLITE... " >&6; }
18271
18272 if test -n "$MLITE_CFLAGS"; then
18273     pkg_cv_MLITE_CFLAGS="$MLITE_CFLAGS"
18274  elif test -n "$PKG_CONFIG"; then
18275     if test -n "$PKG_CONFIG" && \
18276     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mlite QtGui\""; } >&5
18277   ($PKG_CONFIG --exists --print-errors "mlite QtGui") 2>&5
18278   ac_status=$?
18279   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18280   test $ac_status = 0; }; then
18281   pkg_cv_MLITE_CFLAGS=`$PKG_CONFIG --cflags "mlite QtGui" 2>/dev/null`
18282                       test "x$?" != "x0" && pkg_failed=yes
18283 else
18284   pkg_failed=yes
18285 fi
18286  else
18287     pkg_failed=untried
18288 fi
18289 if test -n "$MLITE_LIBS"; then
18290     pkg_cv_MLITE_LIBS="$MLITE_LIBS"
18291  elif test -n "$PKG_CONFIG"; then
18292     if test -n "$PKG_CONFIG" && \
18293     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mlite QtGui\""; } >&5
18294   ($PKG_CONFIG --exists --print-errors "mlite QtGui") 2>&5
18295   ac_status=$?
18296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18297   test $ac_status = 0; }; then
18298   pkg_cv_MLITE_LIBS=`$PKG_CONFIG --libs "mlite QtGui" 2>/dev/null`
18299                       test "x$?" != "x0" && pkg_failed=yes
18300 else
18301   pkg_failed=yes
18302 fi
18303  else
18304     pkg_failed=untried
18305 fi
18306
18307
18308
18309 if test $pkg_failed = yes; then
18310         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18311 $as_echo "no" >&6; }
18312
18313 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18314         _pkg_short_errors_supported=yes
18315 else
18316         _pkg_short_errors_supported=no
18317 fi
18318         if test $_pkg_short_errors_supported = yes; then
18319                 MLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mlite QtGui" 2>&1`
18320         else
18321                 MLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mlite QtGui" 2>&1`
18322         fi
18323         # Put the nasty error message in config.log where it belongs
18324         echo "$MLITE_PKG_ERRORS" >&5
18325
18326         HAVE_MLITE=no
18327 elif test $pkg_failed = untried; then
18328         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18329 $as_echo "no" >&6; }
18330         HAVE_MLITE=no
18331 else
18332         MLITE_CFLAGS=$pkg_cv_MLITE_CFLAGS
18333         MLITE_LIBS=$pkg_cv_MLITE_LIBS
18334         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18335 $as_echo "yes" >&6; }
18336         HAVE_MLITE=yes
18337 fi
18338     # Check whether --enable-mlite was given.
18339 if test "${enable_mlite+set}" = set; then :
18340   enableval=$enable_mlite;  enable_mlite="$enableval"
18341                     test "$enableval" = "no" || test $HAVE_MLITE = "yes" || as_fn_error $? "required mlite package not found" "$LINENO" 5
18342 else
18343    enable_mlite="no"
18344 fi
18345
18346     if test $enable_mlite = "yes"; then
18347
18348 $as_echo "#define HAS_MLITE 1" >>confdefs.h
18349
18350     else
18351         # don't use mlite, even if found
18352         MLITE_CFLAGS=
18353         MLITE_LIBS=
18354     fi
18355
18356 $as_echo "#define DBUS_SERVICE 1" >>confdefs.h
18357
18358
18359     # Check whether --enable-dbus-service-pim was given.
18360 if test "${enable_dbus_service_pim+set}" = set; then :
18361   enableval=$enable_dbus_service_pim;  enable_dbus_pim="$enableval"
18362 else
18363    enable_dbus_pim="no"
18364 fi
18365
18366     case "$enable_dbus_pim" in
18367          no) ;;
18368          *)
18369                 if test "$enable_dbus_pim" = "yes"; then
18370                     enable_dbus_pim=boost
18371                 fi
18372                 if ! test -r "$srcdir/src/dbus/server/pim/locale-factory-$enable_dbus_pim.cpp"; then
18373                     as_fn_error $? "invalid value '$enable_dbus_pim' for --enable-dbus-service-pim, $srcdir/src/dbus/server/pim/locale-factory-$enable_dbus_pim.cpp does not exist or is not readable" "$LINENO" 5
18374                 fi
18375
18376 pkg_failed=no
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOLKS" >&5
18378 $as_echo_n "checking for FOLKS... " >&6; }
18379
18380 if test -n "$FOLKS_CFLAGS"; then
18381     pkg_cv_FOLKS_CFLAGS="$FOLKS_CFLAGS"
18382  elif test -n "$PKG_CONFIG"; then
18383     if test -n "$PKG_CONFIG" && \
18384     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"folks folks-eds\""; } >&5
18385   ($PKG_CONFIG --exists --print-errors "folks folks-eds") 2>&5
18386   ac_status=$?
18387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18388   test $ac_status = 0; }; then
18389   pkg_cv_FOLKS_CFLAGS=`$PKG_CONFIG --cflags "folks folks-eds" 2>/dev/null`
18390                       test "x$?" != "x0" && pkg_failed=yes
18391 else
18392   pkg_failed=yes
18393 fi
18394  else
18395     pkg_failed=untried
18396 fi
18397 if test -n "$FOLKS_LIBS"; then
18398     pkg_cv_FOLKS_LIBS="$FOLKS_LIBS"
18399  elif test -n "$PKG_CONFIG"; then
18400     if test -n "$PKG_CONFIG" && \
18401     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"folks folks-eds\""; } >&5
18402   ($PKG_CONFIG --exists --print-errors "folks folks-eds") 2>&5
18403   ac_status=$?
18404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18405   test $ac_status = 0; }; then
18406   pkg_cv_FOLKS_LIBS=`$PKG_CONFIG --libs "folks folks-eds" 2>/dev/null`
18407                       test "x$?" != "x0" && pkg_failed=yes
18408 else
18409   pkg_failed=yes
18410 fi
18411  else
18412     pkg_failed=untried
18413 fi
18414
18415
18416
18417 if test $pkg_failed = yes; then
18418         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18419 $as_echo "no" >&6; }
18420
18421 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18422         _pkg_short_errors_supported=yes
18423 else
18424         _pkg_short_errors_supported=no
18425 fi
18426         if test $_pkg_short_errors_supported = yes; then
18427                 FOLKS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "folks folks-eds" 2>&1`
18428         else
18429                 FOLKS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "folks folks-eds" 2>&1`
18430         fi
18431         # Put the nasty error message in config.log where it belongs
18432         echo "$FOLKS_PKG_ERRORS" >&5
18433
18434         as_fn_error $? "Package requirements (folks folks-eds) were not met:
18435
18436 $FOLKS_PKG_ERRORS
18437
18438 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18439 installed software in a non-standard prefix.
18440
18441 Alternatively, you may set the environment variables FOLKS_CFLAGS
18442 and FOLKS_LIBS to avoid the need to call pkg-config.
18443 See the pkg-config man page for more details." "$LINENO" 5
18444 elif test $pkg_failed = untried; then
18445         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18446 $as_echo "no" >&6; }
18447         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18449 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18450 is in your PATH or set the PKG_CONFIG environment variable to the full
18451 path to pkg-config.
18452
18453 Alternatively, you may set the environment variables FOLKS_CFLAGS
18454 and FOLKS_LIBS to avoid the need to call pkg-config.
18455 See the pkg-config man page for more details.
18456
18457 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18458 See \`config.log' for more details" "$LINENO" 5; }
18459 else
18460         FOLKS_CFLAGS=$pkg_cv_FOLKS_CFLAGS
18461         FOLKS_LIBS=$pkg_cv_FOLKS_LIBS
18462         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18463 $as_echo "yes" >&6; }
18464
18465 fi
18466
18467 $as_echo "#define ENABLE_DBUS_PIM 1" >>confdefs.h
18468
18469                 DBUS_PIM_PLUGIN=$enable_dbus_pim
18470
18471
18472                 case "$enable_dbus_pim" in
18473                     boost)
18474
18475
18476 # Check whether --with-boost-locale was given.
18477 if test "${with_boost_locale+set}" = set; then :
18478   withval=$with_boost_locale;
18479         if test "$withval" = "no"; then
18480                         want_boost="no"
18481         elif test "$withval" = "yes"; then
18482             want_boost="yes"
18483             ax_boost_user_locale_lib=""
18484         else
18485                     want_boost="yes"
18486                 ax_boost_user_locale_lib="$withval"
18487                 fi
18488
18489 else
18490   want_boost="yes"
18491
18492 fi
18493
18494
18495         if test "x$want_boost" = "xyes"; then
18496
18497
18498                 CPPFLAGS_SAVED="$CPPFLAGS"
18499                 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18500                 export CPPFLAGS
18501
18502                 LDFLAGS_SAVED="$LDFLAGS"
18503                 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
18504                 export LDFLAGS
18505
18506         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Locale library is available" >&5
18507 $as_echo_n "checking whether the Boost::Locale library is available... " >&6; }
18508 if ${ax_cv_boost_locale+:} false; then :
18509   $as_echo_n "(cached) " >&6
18510 else
18511   ac_ext=cpp
18512 ac_cpp='$CXXCPP $CPPFLAGS'
18513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18516
18517                          CXXFLAGS_SAVE=$CXXFLAGS
18518
18519                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18520 /* end confdefs.h.  */
18521 #include <boost/locale.hpp>
18522 int
18523 main ()
18524 {
18525 boost::locale::generator gen;
18526                                    std::locale::global(gen(""));
18527   ;
18528   return 0;
18529 }
18530 _ACEOF
18531 if ac_fn_cxx_try_compile "$LINENO"; then :
18532   ax_cv_boost_locale=yes
18533 else
18534   ax_cv_boost_locale=no
18535 fi
18536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18537                          CXXFLAGS=$CXXFLAGS_SAVE
18538              ac_ext=c
18539 ac_cpp='$CPP $CPPFLAGS'
18540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18543
18544
18545 fi
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_locale" >&5
18547 $as_echo "$ax_cv_boost_locale" >&6; }
18548                 if test "x$ax_cv_boost_locale" = "xyes"; then
18549
18550
18551
18552 $as_echo "#define HAVE_BOOST_LOCALE /**/" >>confdefs.h
18553
18554             BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
18555
18556                         LDFLAGS_SAVE=$LDFLAGS
18557             if test "x$ax_boost_user_locale_lib" = "x"; then
18558                 for libextension in `ls $BOOSTLIBDIR/libboost_locale*.so* $BOOSTLIBDIR/libboost_locale*.dylib* $BOOSTLIBDIR/libboost_locale*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_locale.*\)\.so.*$;\1;' -e 's;^lib\(boost_locale.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_locale.*\)\.a.*$;\1;'` ; do
18559                      ax_lib=${libextension}
18560                                     as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
18562 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
18563 if eval \${$as_ac_Lib+:} false; then :
18564   $as_echo_n "(cached) " >&6
18565 else
18566   ac_check_lib_save_LIBS=$LIBS
18567 LIBS="-l$ax_lib  $LIBS"
18568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18569 /* end confdefs.h.  */
18570
18571 /* Override any GCC internal prototype to avoid an error.
18572    Use char because int might match the return type of a GCC
18573    builtin and then its argument prototype would still apply.  */
18574 #ifdef __cplusplus
18575 extern "C"
18576 #endif
18577 char exit ();
18578 int
18579 main ()
18580 {
18581 return exit ();
18582   ;
18583   return 0;
18584 }
18585 _ACEOF
18586 if ac_fn_c_try_link "$LINENO"; then :
18587   eval "$as_ac_Lib=yes"
18588 else
18589   eval "$as_ac_Lib=no"
18590 fi
18591 rm -f core conftest.err conftest.$ac_objext \
18592     conftest$ac_exeext conftest.$ac_ext
18593 LIBS=$ac_check_lib_save_LIBS
18594 fi
18595 eval ac_res=\$$as_ac_Lib
18596                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18597 $as_echo "$ac_res" >&6; }
18598 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18599   BOOST_LOCALE_LIB="-l$ax_lib";  link_locale="yes"; break
18600 else
18601   link_locale="no"
18602 fi
18603
18604                                 done
18605                 if test "x$link_locale" != "xyes"; then
18606                 for libextension in `ls $BOOSTLIBDIR/boost_locale*.dll* $BOOSTLIBDIR/boost_locale*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_locale.*\)\.dll.*$;\1;' -e 's;^\(boost_locale.*\)\.a.*$;\1;'` boost_locale; do
18607                      ax_lib=${libextension}
18608                                     as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
18610 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
18611 if eval \${$as_ac_Lib+:} false; then :
18612   $as_echo_n "(cached) " >&6
18613 else
18614   ac_check_lib_save_LIBS=$LIBS
18615 LIBS="-l$ax_lib  $LIBS"
18616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18617 /* end confdefs.h.  */
18618
18619 /* Override any GCC internal prototype to avoid an error.
18620    Use char because int might match the return type of a GCC
18621    builtin and then its argument prototype would still apply.  */
18622 #ifdef __cplusplus
18623 extern "C"
18624 #endif
18625 char exit ();
18626 int
18627 main ()
18628 {
18629 return exit ();
18630   ;
18631   return 0;
18632 }
18633 _ACEOF
18634 if ac_fn_c_try_link "$LINENO"; then :
18635   eval "$as_ac_Lib=yes"
18636 else
18637   eval "$as_ac_Lib=no"
18638 fi
18639 rm -f core conftest.err conftest.$ac_objext \
18640     conftest$ac_exeext conftest.$ac_ext
18641 LIBS=$ac_check_lib_save_LIBS
18642 fi
18643 eval ac_res=\$$as_ac_Lib
18644                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18645 $as_echo "$ac_res" >&6; }
18646 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18647   BOOST_LOCALE_LIB="-l$ax_lib";  link_locale="yes"; break
18648 else
18649   link_locale="no"
18650 fi
18651
18652                                 done
18653                 fi
18654
18655             else
18656                for ax_lib in $ax_boost_user_locale_lib boost_locale-$ax_boost_user_locale_lib; do
18657                                       as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
18659 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
18660 if eval \${$as_ac_Lib+:} false; then :
18661   $as_echo_n "(cached) " >&6
18662 else
18663   ac_check_lib_save_LIBS=$LIBS
18664 LIBS="-l$ax_lib  $LIBS"
18665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18666 /* end confdefs.h.  */
18667
18668 /* Override any GCC internal prototype to avoid an error.
18669    Use char because int might match the return type of a GCC
18670    builtin and then its argument prototype would still apply.  */
18671 #ifdef __cplusplus
18672 extern "C"
18673 #endif
18674 char exit ();
18675 int
18676 main ()
18677 {
18678 return exit ();
18679   ;
18680   return 0;
18681 }
18682 _ACEOF
18683 if ac_fn_c_try_link "$LINENO"; then :
18684   eval "$as_ac_Lib=yes"
18685 else
18686   eval "$as_ac_Lib=no"
18687 fi
18688 rm -f core conftest.err conftest.$ac_objext \
18689     conftest$ac_exeext conftest.$ac_ext
18690 LIBS=$ac_check_lib_save_LIBS
18691 fi
18692 eval ac_res=\$$as_ac_Lib
18693                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18694 $as_echo "$ac_res" >&6; }
18695 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18696   BOOST_LOCALE_LIB="-l$ax_lib";  link_locale="yes"; break
18697 else
18698   link_locale="no"
18699 fi
18700
18701                   done
18702
18703             fi
18704             if test "x$ax_lib" = "x"; then
18705                 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
18706             fi
18707                         if test "x$link_locale" = "xno"; then
18708                                 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
18709                         fi
18710                 fi
18711
18712                 CPPFLAGS="$CPPFLAGS_SAVED"
18713         LDFLAGS="$LDFLAGS_SAVED"
18714         fi
18715
18716                         # AX_BOOST_LOCALE incorrectly puts -L/... into LDFLAGS.
18717                         # That's broken because it then overrides the search path
18718                         # for *all* libraries in a link, not just for boost. Fix
18719                         # this by putting the LDFLAGS before the lib and leaving
18720                         # DBUS_PIM_PLUGIN_LDFLAGS empty (for now - might have to
18721                         # be revised if there ever are any boost flags which need
18722                         # to go to the start of the link line).
18723                         DBUS_PIM_PLUGIN_LIBS='$(BOOST_LDFLAGS) $(BOOST_LOCALE_LIB)'
18724                         DBUS_PIM_PLUGIN_LDFLAGS=
18725                         # We need to call ICU directly for the Han->Latin transformation.
18726
18727 pkg_failed=no
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
18729 $as_echo_n "checking for ICU... " >&6; }
18730
18731 if test -n "$ICU_CFLAGS"; then
18732     pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
18733  elif test -n "$PKG_CONFIG"; then
18734     if test -n "$PKG_CONFIG" && \
18735     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
18736   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
18737   ac_status=$?
18738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18739   test $ac_status = 0; }; then
18740   pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
18741                       test "x$?" != "x0" && pkg_failed=yes
18742 else
18743   pkg_failed=yes
18744 fi
18745  else
18746     pkg_failed=untried
18747 fi
18748 if test -n "$ICU_LIBS"; then
18749     pkg_cv_ICU_LIBS="$ICU_LIBS"
18750  elif test -n "$PKG_CONFIG"; then
18751     if test -n "$PKG_CONFIG" && \
18752     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
18753   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
18754   ac_status=$?
18755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18756   test $ac_status = 0; }; then
18757   pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
18758                       test "x$?" != "x0" && pkg_failed=yes
18759 else
18760   pkg_failed=yes
18761 fi
18762  else
18763     pkg_failed=untried
18764 fi
18765
18766
18767
18768 if test $pkg_failed = yes; then
18769         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18770 $as_echo "no" >&6; }
18771
18772 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18773         _pkg_short_errors_supported=yes
18774 else
18775         _pkg_short_errors_supported=no
18776 fi
18777         if test $_pkg_short_errors_supported = yes; then
18778                 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc" 2>&1`
18779         else
18780                 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc" 2>&1`
18781         fi
18782         # Put the nasty error message in config.log where it belongs
18783         echo "$ICU_PKG_ERRORS" >&5
18784
18785         as_fn_error $? "Package requirements (icu-uc) were not met:
18786
18787 $ICU_PKG_ERRORS
18788
18789 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18790 installed software in a non-standard prefix.
18791
18792 Alternatively, you may set the environment variables ICU_CFLAGS
18793 and ICU_LIBS to avoid the need to call pkg-config.
18794 See the pkg-config man page for more details." "$LINENO" 5
18795 elif test $pkg_failed = untried; then
18796         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18797 $as_echo "no" >&6; }
18798         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18800 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18801 is in your PATH or set the PKG_CONFIG environment variable to the full
18802 path to pkg-config.
18803
18804 Alternatively, you may set the environment variables ICU_CFLAGS
18805 and ICU_LIBS to avoid the need to call pkg-config.
18806 See the pkg-config man page for more details.
18807
18808 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18809 See \`config.log' for more details" "$LINENO" 5; }
18810 else
18811         ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
18812         ICU_LIBS=$pkg_cv_ICU_LIBS
18813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18814 $as_echo "yes" >&6; }
18815
18816 fi
18817                         ;;
18818                 esac
18819
18820
18821
18822
18823                 # http://code.google.com/p/libphonenumber/
18824                 ac_ext=cpp
18825 ac_cpp='$CXXCPP $CPPFLAGS'
18826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18829
18830                 SAVED_CPPFLAGS=$CPPFLAGS
18831                 CPPFLAGS="$CPPFLAGS ${PHONENUMBERS_CFLAGS}"
18832
18833 for ac_header in phonenumbers/phonenumberutil.h
18834 do :
18835   ac_fn_cxx_check_header_mongrel "$LINENO" "phonenumbers/phonenumberutil.h" "ac_cv_header_phonenumbers_phonenumberutil_h" "$ac_includes_default"
18836 if test "x$ac_cv_header_phonenumbers_phonenumberutil_h" = xyes; then :
18837   cat >>confdefs.h <<_ACEOF
18838 #define HAVE_PHONENUMBERS_PHONENUMBERUTIL_H 1
18839 _ACEOF
18840
18841 fi
18842
18843 done
18844
18845                 SAVED_LIBS=$LIBS
18846                 if test ! "$PHONENUMBERS_LIBS"; then
18847                       PHONENUMBERS_LIBS=-lphonenumber
18848                 fi
18849                 LIBS="$LIBS $PHONENUMBERS_LIBS"
18850                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18851 /* end confdefs.h.  */
18852 #include <phonenumbers/phonenumberutil.h>
18853 int
18854 main ()
18855 {
18856 i18n::phonenumbers::PhoneNumberUtil::GetInstance()
18857   ;
18858   return 0;
18859 }
18860 _ACEOF
18861 if ac_fn_cxx_try_link "$LINENO"; then :
18862   true
18863 else
18864   as_fn_error $? "libphonebook not found, set PHONENUMBERS_CFLAGS and PHONENUMBERS_LIBS." "$LINENO" 5
18865 fi
18866 rm -f core conftest.err conftest.$ac_objext \
18867     conftest$ac_exeext conftest.$ac_ext
18868
18869
18870                 LIBS=$SAVED_LIBS
18871                 CPPFLAGS=$SAVED_CPPFLAGS
18872                 ;;
18873     esac
18874 fi
18875  if test "$enable_notify_compat" = "yes"; then
18876   NOTIFY_COMPATIBILITY_TRUE=
18877   NOTIFY_COMPATIBILITY_FALSE='#'
18878 else
18879   NOTIFY_COMPATIBILITY_TRUE='#'
18880   NOTIFY_COMPATIBILITY_FALSE=
18881 fi
18882
18883  if test "$enable_dbus_pim" != "no"; then
18884   COND_DBUS_PIM_TRUE=
18885   COND_DBUS_PIM_FALSE='#'
18886 else
18887   COND_DBUS_PIM_TRUE='#'
18888   COND_DBUS_PIM_FALSE=
18889 fi
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900 DBUS_SERVICES_DIR="${datadir}/dbus-1/services"
18901
18902
18903 cat >>confdefs.h <<_ACEOF
18904 #define DBUS_SERVICES_DIR "$DBUS_SERVICES_DIR"
18905 _ACEOF
18906
18907
18908 if test "$enable_gui" != "no" || test "$enable_dbus_service" != "no"; then
18909
18910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18911 $as_echo_n "checking whether NLS is requested... " >&6; }
18912     # Check whether --enable-nls was given.
18913 if test "${enable_nls+set}" = set; then :
18914   enableval=$enable_nls; USE_NLS=$enableval
18915 else
18916   USE_NLS=yes
18917 fi
18918
18919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18920 $as_echo "$USE_NLS" >&6; }
18921
18922
18923
18924
18925 case "$am__api_version" in
18926     1.01234)
18927         as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
18928     ;;
18929     *)
18930     ;;
18931 esac
18932
18933 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.37.1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
18934 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
18935 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
18936 if test -n "0.37.1"; then
18937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.37.1" >&5
18938 $as_echo_n "checking for intltool >= 0.37.1... " >&6; }
18939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
18940 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
18941     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
18942         as_fn_error $? "Your intltool is too old.  You need intltool 0.37.1 or later." "$LINENO" 5
18943 fi
18944
18945 # Extract the first word of "intltool-update", so it can be a program name with args.
18946 set dummy intltool-update; ac_word=$2
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18948 $as_echo_n "checking for $ac_word... " >&6; }
18949 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
18950   $as_echo_n "(cached) " >&6
18951 else
18952   case $INTLTOOL_UPDATE in
18953   [\\/]* | ?:[\\/]*)
18954   ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
18955   ;;
18956   *)
18957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18958 for as_dir in $PATH
18959 do
18960   IFS=$as_save_IFS
18961   test -z "$as_dir" && as_dir=.
18962     for ac_exec_ext in '' $ac_executable_extensions; do
18963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18964     ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
18965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18966     break 2
18967   fi
18968 done
18969   done
18970 IFS=$as_save_IFS
18971
18972   ;;
18973 esac
18974 fi
18975 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
18976 if test -n "$INTLTOOL_UPDATE"; then
18977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
18978 $as_echo "$INTLTOOL_UPDATE" >&6; }
18979 else
18980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18981 $as_echo "no" >&6; }
18982 fi
18983
18984
18985 # Extract the first word of "intltool-merge", so it can be a program name with args.
18986 set dummy intltool-merge; ac_word=$2
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18988 $as_echo_n "checking for $ac_word... " >&6; }
18989 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
18990   $as_echo_n "(cached) " >&6
18991 else
18992   case $INTLTOOL_MERGE in
18993   [\\/]* | ?:[\\/]*)
18994   ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
18995   ;;
18996   *)
18997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18998 for as_dir in $PATH
18999 do
19000   IFS=$as_save_IFS
19001   test -z "$as_dir" && as_dir=.
19002     for ac_exec_ext in '' $ac_executable_extensions; do
19003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19004     ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
19005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19006     break 2
19007   fi
19008 done
19009   done
19010 IFS=$as_save_IFS
19011
19012   ;;
19013 esac
19014 fi
19015 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
19016 if test -n "$INTLTOOL_MERGE"; then
19017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
19018 $as_echo "$INTLTOOL_MERGE" >&6; }
19019 else
19020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19021 $as_echo "no" >&6; }
19022 fi
19023
19024
19025 # Extract the first word of "intltool-extract", so it can be a program name with args.
19026 set dummy intltool-extract; ac_word=$2
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19028 $as_echo_n "checking for $ac_word... " >&6; }
19029 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
19030   $as_echo_n "(cached) " >&6
19031 else
19032   case $INTLTOOL_EXTRACT in
19033   [\\/]* | ?:[\\/]*)
19034   ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
19035   ;;
19036   *)
19037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19038 for as_dir in $PATH
19039 do
19040   IFS=$as_save_IFS
19041   test -z "$as_dir" && as_dir=.
19042     for ac_exec_ext in '' $ac_executable_extensions; do
19043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19044     ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
19045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19046     break 2
19047   fi
19048 done
19049   done
19050 IFS=$as_save_IFS
19051
19052   ;;
19053 esac
19054 fi
19055 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
19056 if test -n "$INTLTOOL_EXTRACT"; then
19057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
19058 $as_echo "$INTLTOOL_EXTRACT" >&6; }
19059 else
19060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19061 $as_echo "no" >&6; }
19062 fi
19063
19064
19065 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
19066     as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
19067 fi
19068
19069 if test -z "$AM_DEFAULT_VERBOSITY"; then
19070   AM_DEFAULT_VERBOSITY=1
19071 fi
19072
19073
19074 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
19075 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
19076 INTLTOOL__v_MERGE_0='@echo "  ITMRG " $@;'
19077
19078
19079
19080
19081 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
19082 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
19083 intltool__v_merge_options_0='-q'
19084
19085
19086
19087
19088   INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19089 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19090      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19091      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19092       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
19093      INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19094    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19095     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19096 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19097        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19098       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19099 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
19100       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
19101 else
19102       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
19103 fi
19104       INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19105       INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19106     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19107   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19108     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19109     INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19110    INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208 # Check the gettext tools to make sure they are GNU
19209 # Extract the first word of "xgettext", so it can be a program name with args.
19210 set dummy xgettext; ac_word=$2
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19212 $as_echo_n "checking for $ac_word... " >&6; }
19213 if ${ac_cv_path_XGETTEXT+:} false; then :
19214   $as_echo_n "(cached) " >&6
19215 else
19216   case $XGETTEXT in
19217   [\\/]* | ?:[\\/]*)
19218   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19219   ;;
19220   *)
19221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19222 for as_dir in $PATH
19223 do
19224   IFS=$as_save_IFS
19225   test -z "$as_dir" && as_dir=.
19226     for ac_exec_ext in '' $ac_executable_extensions; do
19227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19228     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
19229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19230     break 2
19231   fi
19232 done
19233   done
19234 IFS=$as_save_IFS
19235
19236   ;;
19237 esac
19238 fi
19239 XGETTEXT=$ac_cv_path_XGETTEXT
19240 if test -n "$XGETTEXT"; then
19241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19242 $as_echo "$XGETTEXT" >&6; }
19243 else
19244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19245 $as_echo "no" >&6; }
19246 fi
19247
19248
19249 # Extract the first word of "msgmerge", so it can be a program name with args.
19250 set dummy msgmerge; ac_word=$2
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19252 $as_echo_n "checking for $ac_word... " >&6; }
19253 if ${ac_cv_path_MSGMERGE+:} false; then :
19254   $as_echo_n "(cached) " >&6
19255 else
19256   case $MSGMERGE in
19257   [\\/]* | ?:[\\/]*)
19258   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
19259   ;;
19260   *)
19261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19262 for as_dir in $PATH
19263 do
19264   IFS=$as_save_IFS
19265   test -z "$as_dir" && as_dir=.
19266     for ac_exec_ext in '' $ac_executable_extensions; do
19267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19268     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
19269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19270     break 2
19271   fi
19272 done
19273   done
19274 IFS=$as_save_IFS
19275
19276   ;;
19277 esac
19278 fi
19279 MSGMERGE=$ac_cv_path_MSGMERGE
19280 if test -n "$MSGMERGE"; then
19281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
19282 $as_echo "$MSGMERGE" >&6; }
19283 else
19284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19285 $as_echo "no" >&6; }
19286 fi
19287
19288
19289 # Extract the first word of "msgfmt", so it can be a program name with args.
19290 set dummy msgfmt; ac_word=$2
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19292 $as_echo_n "checking for $ac_word... " >&6; }
19293 if ${ac_cv_path_MSGFMT+:} false; then :
19294   $as_echo_n "(cached) " >&6
19295 else
19296   case $MSGFMT in
19297   [\\/]* | ?:[\\/]*)
19298   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19299   ;;
19300   *)
19301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19302 for as_dir in $PATH
19303 do
19304   IFS=$as_save_IFS
19305   test -z "$as_dir" && as_dir=.
19306     for ac_exec_ext in '' $ac_executable_extensions; do
19307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19308     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19310     break 2
19311   fi
19312 done
19313   done
19314 IFS=$as_save_IFS
19315
19316   ;;
19317 esac
19318 fi
19319 MSGFMT=$ac_cv_path_MSGFMT
19320 if test -n "$MSGFMT"; then
19321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19322 $as_echo "$MSGFMT" >&6; }
19323 else
19324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19325 $as_echo "no" >&6; }
19326 fi
19327
19328
19329 # Extract the first word of "gmsgfmt", so it can be a program name with args.
19330 set dummy gmsgfmt; ac_word=$2
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19332 $as_echo_n "checking for $ac_word... " >&6; }
19333 if ${ac_cv_path_GMSGFMT+:} false; then :
19334   $as_echo_n "(cached) " >&6
19335 else
19336   case $GMSGFMT in
19337   [\\/]* | ?:[\\/]*)
19338   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
19339   ;;
19340   *)
19341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19342 for as_dir in $PATH
19343 do
19344   IFS=$as_save_IFS
19345   test -z "$as_dir" && as_dir=.
19346     for ac_exec_ext in '' $ac_executable_extensions; do
19347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19348     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
19349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19350     break 2
19351   fi
19352 done
19353   done
19354 IFS=$as_save_IFS
19355
19356   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
19357   ;;
19358 esac
19359 fi
19360 GMSGFMT=$ac_cv_path_GMSGFMT
19361 if test -n "$GMSGFMT"; then
19362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
19363 $as_echo "$GMSGFMT" >&6; }
19364 else
19365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19366 $as_echo "no" >&6; }
19367 fi
19368
19369
19370 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
19371     as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
19372 fi
19373 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
19374 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
19375 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
19376 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
19377     as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
19378 fi
19379
19380 # Extract the first word of "perl", so it can be a program name with args.
19381 set dummy perl; ac_word=$2
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19383 $as_echo_n "checking for $ac_word... " >&6; }
19384 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
19385   $as_echo_n "(cached) " >&6
19386 else
19387   case $INTLTOOL_PERL in
19388   [\\/]* | ?:[\\/]*)
19389   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
19390   ;;
19391   *)
19392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19393 for as_dir in $PATH
19394 do
19395   IFS=$as_save_IFS
19396   test -z "$as_dir" && as_dir=.
19397     for ac_exec_ext in '' $ac_executable_extensions; do
19398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19399     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
19400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19401     break 2
19402   fi
19403 done
19404   done
19405 IFS=$as_save_IFS
19406
19407   ;;
19408 esac
19409 fi
19410 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
19411 if test -n "$INTLTOOL_PERL"; then
19412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
19413 $as_echo "$INTLTOOL_PERL" >&6; }
19414 else
19415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19416 $as_echo "no" >&6; }
19417 fi
19418
19419
19420 if test -z "$INTLTOOL_PERL"; then
19421    as_fn_error $? "perl not found" "$LINENO" 5
19422 fi
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
19424 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
19425 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
19426 if test $? -ne 0; then
19427    as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
19428 else
19429    IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
19430    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
19431 $as_echo "$IT_PERL_VERSION" >&6; }
19432 fi
19433 if test "x" != "xno-xml"; then
19434    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
19435 $as_echo_n "checking for XML::Parser... " >&6; }
19436    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
19437        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
19438 $as_echo "ok" >&6; }
19439    else
19440        as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
19441    fi
19442 fi
19443
19444 # Substitute ALL_LINGUAS so we can use it in po/Makefile
19445
19446
19447 # Set DATADIRNAME correctly if it is not set yet
19448 # (copied from glib-gettext.m4)
19449 if test -z "$DATADIRNAME"; then
19450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19451 /* end confdefs.h.  */
19452
19453 int
19454 main ()
19455 {
19456 extern int _nl_msg_cat_cntr;
19457                        return _nl_msg_cat_cntr
19458   ;
19459   return 0;
19460 }
19461 _ACEOF
19462 if ac_fn_cxx_try_link "$LINENO"; then :
19463   DATADIRNAME=share
19464 else
19465   case $host in
19466     *-*-solaris*)
19467                         ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19468 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19469   DATADIRNAME=share
19470 else
19471   DATADIRNAME=lib
19472 fi
19473
19474     ;;
19475     *)
19476     DATADIRNAME=lib
19477     ;;
19478     esac
19479 fi
19480 rm -f core conftest.err conftest.$ac_objext \
19481     conftest$ac_exeext conftest.$ac_ext
19482 fi
19483
19484
19485
19486
19487
19488     GETTEXT_PACKAGE=syncevolution
19489
19490 cat >>confdefs.h <<_ACEOF
19491 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
19492 _ACEOF
19493
19494
19495    for ac_header in locale.h
19496 do :
19497   ac_fn_cxx_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
19498 if test "x$ac_cv_header_locale_h" = xyes; then :
19499   cat >>confdefs.h <<_ACEOF
19500 #define HAVE_LOCALE_H 1
19501 _ACEOF
19502
19503 fi
19504
19505 done
19506
19507     if test $ac_cv_header_locale_h = yes; then
19508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19509 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19510 if ${am_cv_val_LC_MESSAGES+:} false; then :
19511   $as_echo_n "(cached) " >&6
19512 else
19513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19514 /* end confdefs.h.  */
19515 #include <locale.h>
19516 int
19517 main ()
19518 {
19519 return LC_MESSAGES
19520   ;
19521   return 0;
19522 }
19523 _ACEOF
19524 if ac_fn_cxx_try_link "$LINENO"; then :
19525   am_cv_val_LC_MESSAGES=yes
19526 else
19527   am_cv_val_LC_MESSAGES=no
19528 fi
19529 rm -f core conftest.err conftest.$ac_objext \
19530     conftest$ac_exeext conftest.$ac_ext
19531 fi
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
19533 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
19534     if test $am_cv_val_LC_MESSAGES = yes; then
19535
19536 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19537
19538     fi
19539   fi
19540      USE_NLS=yes
19541
19542
19543     gt_cv_have_gettext=no
19544
19545     CATOBJEXT=NONE
19546     XGETTEXT=:
19547     INTLLIBS=
19548
19549     ac_fn_cxx_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
19550 if test "x$ac_cv_header_libintl_h" = xyes; then :
19551   gt_cv_func_dgettext_libintl="no"
19552       libintl_extra_libs=""
19553
19554       #
19555       # First check in libc
19556       #
19557       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
19558 $as_echo_n "checking for ngettext in libc... " >&6; }
19559 if ${gt_cv_func_ngettext_libc+:} false; then :
19560   $as_echo_n "(cached) " >&6
19561 else
19562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19563 /* end confdefs.h.  */
19564
19565 #include <libintl.h>
19566
19567 int
19568 main ()
19569 {
19570 return !ngettext ("","", 1)
19571   ;
19572   return 0;
19573 }
19574 _ACEOF
19575 if ac_fn_cxx_try_link "$LINENO"; then :
19576   gt_cv_func_ngettext_libc=yes
19577 else
19578   gt_cv_func_ngettext_libc=no
19579 fi
19580 rm -f core conftest.err conftest.$ac_objext \
19581     conftest$ac_exeext conftest.$ac_ext
19582
19583 fi
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
19585 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
19586
19587       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
19588               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
19589 $as_echo_n "checking for dgettext in libc... " >&6; }
19590 if ${gt_cv_func_dgettext_libc+:} false; then :
19591   $as_echo_n "(cached) " >&6
19592 else
19593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19594 /* end confdefs.h.  */
19595
19596 #include <libintl.h>
19597
19598 int
19599 main ()
19600 {
19601 return !dgettext ("","")
19602   ;
19603   return 0;
19604 }
19605 _ACEOF
19606 if ac_fn_cxx_try_link "$LINENO"; then :
19607   gt_cv_func_dgettext_libc=yes
19608 else
19609   gt_cv_func_dgettext_libc=no
19610 fi
19611 rm -f core conftest.err conftest.$ac_objext \
19612     conftest$ac_exeext conftest.$ac_ext
19613
19614 fi
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
19616 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
19617       fi
19618
19619       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
19620         for ac_func in bind_textdomain_codeset
19621 do :
19622   ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19623 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19624   cat >>confdefs.h <<_ACEOF
19625 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19626 _ACEOF
19627
19628 fi
19629 done
19630
19631       fi
19632
19633       #
19634       # If we don't have everything we want, check in libintl
19635       #
19636       if test "$gt_cv_func_dgettext_libc" != "yes" \
19637          || test "$gt_cv_func_ngettext_libc" != "yes" \
19638          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
19639
19640         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
19641 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
19642 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
19643   $as_echo_n "(cached) " >&6
19644 else
19645   ac_check_lib_save_LIBS=$LIBS
19646 LIBS="-lintl  $LIBS"
19647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19648 /* end confdefs.h.  */
19649
19650 /* Override any GCC internal prototype to avoid an error.
19651    Use char because int might match the return type of a GCC
19652    builtin and then its argument prototype would still apply.  */
19653 #ifdef __cplusplus
19654 extern "C"
19655 #endif
19656 char bindtextdomain ();
19657 int
19658 main ()
19659 {
19660 return bindtextdomain ();
19661   ;
19662   return 0;
19663 }
19664 _ACEOF
19665 if ac_fn_cxx_try_link "$LINENO"; then :
19666   ac_cv_lib_intl_bindtextdomain=yes
19667 else
19668   ac_cv_lib_intl_bindtextdomain=no
19669 fi
19670 rm -f core conftest.err conftest.$ac_objext \
19671     conftest$ac_exeext conftest.$ac_ext
19672 LIBS=$ac_check_lib_save_LIBS
19673 fi
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
19675 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
19676 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
19677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
19678 $as_echo_n "checking for ngettext in -lintl... " >&6; }
19679 if ${ac_cv_lib_intl_ngettext+:} false; then :
19680   $as_echo_n "(cached) " >&6
19681 else
19682   ac_check_lib_save_LIBS=$LIBS
19683 LIBS="-lintl  $LIBS"
19684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19685 /* end confdefs.h.  */
19686
19687 /* Override any GCC internal prototype to avoid an error.
19688    Use char because int might match the return type of a GCC
19689    builtin and then its argument prototype would still apply.  */
19690 #ifdef __cplusplus
19691 extern "C"
19692 #endif
19693 char ngettext ();
19694 int
19695 main ()
19696 {
19697 return ngettext ();
19698   ;
19699   return 0;
19700 }
19701 _ACEOF
19702 if ac_fn_cxx_try_link "$LINENO"; then :
19703   ac_cv_lib_intl_ngettext=yes
19704 else
19705   ac_cv_lib_intl_ngettext=no
19706 fi
19707 rm -f core conftest.err conftest.$ac_objext \
19708     conftest$ac_exeext conftest.$ac_ext
19709 LIBS=$ac_check_lib_save_LIBS
19710 fi
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
19712 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
19713 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
19714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
19715 $as_echo_n "checking for dgettext in -lintl... " >&6; }
19716 if ${ac_cv_lib_intl_dgettext+:} false; then :
19717   $as_echo_n "(cached) " >&6
19718 else
19719   ac_check_lib_save_LIBS=$LIBS
19720 LIBS="-lintl  $LIBS"
19721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19722 /* end confdefs.h.  */
19723
19724 /* Override any GCC internal prototype to avoid an error.
19725    Use char because int might match the return type of a GCC
19726    builtin and then its argument prototype would still apply.  */
19727 #ifdef __cplusplus
19728 extern "C"
19729 #endif
19730 char dgettext ();
19731 int
19732 main ()
19733 {
19734 return dgettext ();
19735   ;
19736   return 0;
19737 }
19738 _ACEOF
19739 if ac_fn_cxx_try_link "$LINENO"; then :
19740   ac_cv_lib_intl_dgettext=yes
19741 else
19742   ac_cv_lib_intl_dgettext=no
19743 fi
19744 rm -f core conftest.err conftest.$ac_objext \
19745     conftest$ac_exeext conftest.$ac_ext
19746 LIBS=$ac_check_lib_save_LIBS
19747 fi
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
19749 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19750 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
19751   gt_cv_func_dgettext_libintl=yes
19752 fi
19753
19754 fi
19755
19756 fi
19757
19758
19759         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
19760           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
19761 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
19762           { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
19763 $as_echo "" >&6; }
19764           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
19765 $as_echo_n "checking for ngettext in -lintl... " >&6; }
19766 if ${ac_cv_lib_intl_ngettext+:} false; then :
19767   $as_echo_n "(cached) " >&6
19768 else
19769   ac_check_lib_save_LIBS=$LIBS
19770 LIBS="-lintl -liconv $LIBS"
19771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19772 /* end confdefs.h.  */
19773
19774 /* Override any GCC internal prototype to avoid an error.
19775    Use char because int might match the return type of a GCC
19776    builtin and then its argument prototype would still apply.  */
19777 #ifdef __cplusplus
19778 extern "C"
19779 #endif
19780 char ngettext ();
19781 int
19782 main ()
19783 {
19784 return ngettext ();
19785   ;
19786   return 0;
19787 }
19788 _ACEOF
19789 if ac_fn_cxx_try_link "$LINENO"; then :
19790   ac_cv_lib_intl_ngettext=yes
19791 else
19792   ac_cv_lib_intl_ngettext=no
19793 fi
19794 rm -f core conftest.err conftest.$ac_objext \
19795     conftest$ac_exeext conftest.$ac_ext
19796 LIBS=$ac_check_lib_save_LIBS
19797 fi
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
19799 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
19800 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
19801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
19802 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
19803 if ${ac_cv_lib_intl_dcgettext+:} false; then :
19804   $as_echo_n "(cached) " >&6
19805 else
19806   ac_check_lib_save_LIBS=$LIBS
19807 LIBS="-lintl -liconv $LIBS"
19808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19809 /* end confdefs.h.  */
19810
19811 /* Override any GCC internal prototype to avoid an error.
19812    Use char because int might match the return type of a GCC
19813    builtin and then its argument prototype would still apply.  */
19814 #ifdef __cplusplus
19815 extern "C"
19816 #endif
19817 char dcgettext ();
19818 int
19819 main ()
19820 {
19821 return dcgettext ();
19822   ;
19823   return 0;
19824 }
19825 _ACEOF
19826 if ac_fn_cxx_try_link "$LINENO"; then :
19827   ac_cv_lib_intl_dcgettext=yes
19828 else
19829   ac_cv_lib_intl_dcgettext=no
19830 fi
19831 rm -f core conftest.err conftest.$ac_objext \
19832     conftest$ac_exeext conftest.$ac_ext
19833 LIBS=$ac_check_lib_save_LIBS
19834 fi
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
19836 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
19837 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
19838   gt_cv_func_dgettext_libintl=yes
19839                         libintl_extra_libs=-liconv
19840 else
19841   :
19842 fi
19843
19844 else
19845   :
19846 fi
19847
19848         fi
19849
19850         #
19851         # If we found libintl, then check in it for bind_textdomain_codeset();
19852         # we'll prefer libc if neither have bind_textdomain_codeset(),
19853         # and both have dgettext and ngettext
19854         #
19855         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
19856           glib_save_LIBS="$LIBS"
19857           LIBS="$LIBS -lintl $libintl_extra_libs"
19858           unset ac_cv_func_bind_textdomain_codeset
19859           for ac_func in bind_textdomain_codeset
19860 do :
19861   ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19862 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19863   cat >>confdefs.h <<_ACEOF
19864 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19865 _ACEOF
19866
19867 fi
19868 done
19869
19870           LIBS="$glib_save_LIBS"
19871
19872           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
19873             gt_cv_func_dgettext_libc=no
19874           else
19875             if test "$gt_cv_func_dgettext_libc" = "yes" \
19876                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
19877               gt_cv_func_dgettext_libintl=no
19878             fi
19879           fi
19880         fi
19881       fi
19882
19883       if test "$gt_cv_func_dgettext_libc" = "yes" \
19884         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
19885         gt_cv_have_gettext=yes
19886       fi
19887
19888       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
19889         INTLLIBS="-lintl $libintl_extra_libs"
19890       fi
19891
19892       if test "$gt_cv_have_gettext" = "yes"; then
19893
19894 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
19895
19896         # Extract the first word of "msgfmt", so it can be a program name with args.
19897 set dummy msgfmt; ac_word=$2
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19899 $as_echo_n "checking for $ac_word... " >&6; }
19900 if ${ac_cv_path_MSGFMT+:} false; then :
19901   $as_echo_n "(cached) " >&6
19902 else
19903   case "$MSGFMT" in
19904   /*)
19905   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19906   ;;
19907   *)
19908   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
19909   for ac_dir in $PATH; do
19910     test -z "$ac_dir" && ac_dir=.
19911     if test -f $ac_dir/$ac_word; then
19912       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
19913         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
19914         break
19915       fi
19916     fi
19917   done
19918   IFS="$ac_save_ifs"
19919   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
19920   ;;
19921 esac
19922 fi
19923 MSGFMT="$ac_cv_path_MSGFMT"
19924 if test "$MSGFMT" != "no"; then
19925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19926 $as_echo "$MSGFMT" >&6; }
19927 else
19928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19929 $as_echo "no" >&6; }
19930 fi
19931         if test "$MSGFMT" != "no"; then
19932           glib_save_LIBS="$LIBS"
19933           LIBS="$LIBS $INTLLIBS"
19934           for ac_func in dcgettext
19935 do :
19936   ac_fn_cxx_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
19937 if test "x$ac_cv_func_dcgettext" = xyes; then :
19938   cat >>confdefs.h <<_ACEOF
19939 #define HAVE_DCGETTEXT 1
19940 _ACEOF
19941
19942 fi
19943 done
19944
19945           MSGFMT_OPTS=
19946           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
19947 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
19948           cat >conftest.foo <<_ACEOF
19949
19950 msgid ""
19951 msgstr ""
19952 "Content-Type: text/plain; charset=UTF-8\n"
19953 "Project-Id-Version: test 1.0\n"
19954 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
19955 "Last-Translator: test <foo@bar.xx>\n"
19956 "Language-Team: C <LL@li.org>\n"
19957 "MIME-Version: 1.0\n"
19958 "Content-Transfer-Encoding: 8bit\n"
19959
19960 _ACEOF
19961 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
19962   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
19963   ac_status=$?
19964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19965   test $ac_status = 0; }; then
19966   MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19967 $as_echo "yes" >&6; }
19968 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19969 $as_echo "no" >&6; }
19970 echo "$as_me: failed input was:" >&5
19971 sed 's/^/| /' conftest.foo >&5
19972 fi
19973
19974           # Extract the first word of "gmsgfmt", so it can be a program name with args.
19975 set dummy gmsgfmt; ac_word=$2
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19977 $as_echo_n "checking for $ac_word... " >&6; }
19978 if ${ac_cv_path_GMSGFMT+:} false; then :
19979   $as_echo_n "(cached) " >&6
19980 else
19981   case $GMSGFMT in
19982   [\\/]* | ?:[\\/]*)
19983   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
19984   ;;
19985   *)
19986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19987 for as_dir in $PATH
19988 do
19989   IFS=$as_save_IFS
19990   test -z "$as_dir" && as_dir=.
19991     for ac_exec_ext in '' $ac_executable_extensions; do
19992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19993     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
19994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19995     break 2
19996   fi
19997 done
19998   done
19999 IFS=$as_save_IFS
20000
20001   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20002   ;;
20003 esac
20004 fi
20005 GMSGFMT=$ac_cv_path_GMSGFMT
20006 if test -n "$GMSGFMT"; then
20007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
20008 $as_echo "$GMSGFMT" >&6; }
20009 else
20010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20011 $as_echo "no" >&6; }
20012 fi
20013
20014
20015           # Extract the first word of "xgettext", so it can be a program name with args.
20016 set dummy xgettext; ac_word=$2
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20018 $as_echo_n "checking for $ac_word... " >&6; }
20019 if ${ac_cv_path_XGETTEXT+:} false; then :
20020   $as_echo_n "(cached) " >&6
20021 else
20022   case "$XGETTEXT" in
20023   /*)
20024   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20025   ;;
20026   *)
20027   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
20028   for ac_dir in $PATH; do
20029     test -z "$ac_dir" && ac_dir=.
20030     if test -f $ac_dir/$ac_word; then
20031       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
20032         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
20033         break
20034       fi
20035     fi
20036   done
20037   IFS="$ac_save_ifs"
20038   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
20039   ;;
20040 esac
20041 fi
20042 XGETTEXT="$ac_cv_path_XGETTEXT"
20043 if test "$XGETTEXT" != ":"; then
20044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
20045 $as_echo "$XGETTEXT" >&6; }
20046 else
20047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20048 $as_echo "no" >&6; }
20049 fi
20050
20051           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20052 /* end confdefs.h.  */
20053
20054 int
20055 main ()
20056 {
20057 extern int _nl_msg_cat_cntr;
20058                          return _nl_msg_cat_cntr
20059   ;
20060   return 0;
20061 }
20062 _ACEOF
20063 if ac_fn_cxx_try_link "$LINENO"; then :
20064   CATOBJEXT=.gmo
20065              DATADIRNAME=share
20066 else
20067   case $host in
20068             *-*-solaris*)
20069                                                                 ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
20070 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
20071   CATOBJEXT=.gmo
20072                DATADIRNAME=share
20073 else
20074   CATOBJEXT=.mo
20075                DATADIRNAME=lib
20076 fi
20077
20078             ;;
20079             *-*-openbsd*)
20080             CATOBJEXT=.mo
20081             DATADIRNAME=share
20082             ;;
20083             *)
20084             CATOBJEXT=.mo
20085             DATADIRNAME=lib
20086             ;;
20087             esac
20088 fi
20089 rm -f core conftest.err conftest.$ac_objext \
20090     conftest$ac_exeext conftest.$ac_ext
20091           LIBS="$glib_save_LIBS"
20092           INSTOBJEXT=.mo
20093         else
20094           gt_cv_have_gettext=no
20095         fi
20096       fi
20097
20098 fi
20099
20100
20101
20102     if test "$gt_cv_have_gettext" = "yes" ; then
20103
20104 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20105
20106     fi
20107
20108         if test "$XGETTEXT" != ":"; then
20109                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
20110         : ;
20111       else
20112         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
20113 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
20114         XGETTEXT=":"
20115       fi
20116     fi
20117
20118     # We need to process the po/ directory.
20119     POSUB=po
20120
20121     ac_config_commands="$ac_config_commands default-1"
20122
20123
20124                 for lang in $ALL_LINGUAS; do
20125       GMOFILES="$GMOFILES $lang.gmo"
20126       POFILES="$POFILES $lang.po"
20127     done
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141    if test "$gt_cv_have_gettext" = "yes"; then
20142      if test "x$ALL_LINGUAS" = "x"; then
20143        LINGUAS=
20144      else
20145        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
20146 $as_echo_n "checking for catalogs to be installed... " >&6; }
20147        NEW_LINGUAS=
20148        for presentlang in $ALL_LINGUAS; do
20149          useit=no
20150          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
20151            desiredlanguages="$LINGUAS"
20152          else
20153            desiredlanguages="$ALL_LINGUAS"
20154          fi
20155          for desiredlang in $desiredlanguages; do
20156            # Use the presentlang catalog if desiredlang is
20157            #   a. equal to presentlang, or
20158            #   b. a variant of presentlang (because in this case,
20159            #      presentlang can be used as a fallback for messages
20160            #      which are not translated in the desiredlang catalog).
20161            case "$desiredlang" in
20162              "$presentlang"*) useit=yes;;
20163            esac
20164          done
20165          if test $useit = yes; then
20166            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
20167          fi
20168        done
20169        LINGUAS=$NEW_LINGUAS
20170        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
20171 $as_echo "$LINGUAS" >&6; }
20172      fi
20173
20174           if test -n "$LINGUAS"; then
20175        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
20176      fi
20177    fi
20178
20179             MKINSTALLDIRS=
20180    if test -n "$ac_aux_dir"; then
20181      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
20182    fi
20183    if test -z "$MKINSTALLDIRS"; then
20184      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
20185    fi
20186
20187
20188          test -d po || mkdir po
20189    if test "x$srcdir" != "x."; then
20190      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
20191        posrcprefix="$srcdir/"
20192      else
20193        posrcprefix="../$srcdir/"
20194      fi
20195    else
20196      posrcprefix="../"
20197    fi
20198    rm -f po/POTFILES
20199    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
20200         < $srcdir/po/POTFILES.in > po/POTFILES
20201
20202     SYNCEVOLUTION_LOCALEDIR=${datadir}/locale
20203 fi
20204
20205 # decide which sync-ui(s) we are building:
20206 # sync-ui (in either GTK or Moblin mode) or both (in separate binaries)
20207
20208 if test $gtk_version = "gtk+-3.0"; then
20209     gtk_dir=src/gtk3-ui
20210 else
20211     gtk_dir=src/gtk-ui
20212 fi
20213
20214 case $enable_gui in
20215      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";;
20216      gtk|moblin) GUI_PROGRAMS=${gtk_dir}'/sync-ui${EXEEXT}'; GUI_DESKTOP_FILES="${gtk_dir}/sync.desktop";;
20217      no) GUI_PROGRAMS=; GUI_DESKTOP_FILES=;;
20218      *) as_fn_error $? "Unknown enable_gui type: '$enable_gui'" "$LINENO" 5
20219 esac
20220
20221 if test $enable_gui != "no"; then
20222
20223 pkg_failed=no
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS_GLIB" >&5
20225 $as_echo_n "checking for DBUS_GLIB... " >&6; }
20226
20227 if test -n "$DBUS_GLIB_CFLAGS"; then
20228     pkg_cv_DBUS_GLIB_CFLAGS="$DBUS_GLIB_CFLAGS"
20229  elif test -n "$PKG_CONFIG"; then
20230     if test -n "$PKG_CONFIG" && \
20231     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 glib-2.0\""; } >&5
20232   ($PKG_CONFIG --exists --print-errors "dbus-glib-1 glib-2.0") 2>&5
20233   ac_status=$?
20234   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20235   test $ac_status = 0; }; then
20236   pkg_cv_DBUS_GLIB_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 glib-2.0" 2>/dev/null`
20237                       test "x$?" != "x0" && pkg_failed=yes
20238 else
20239   pkg_failed=yes
20240 fi
20241  else
20242     pkg_failed=untried
20243 fi
20244 if test -n "$DBUS_GLIB_LIBS"; then
20245     pkg_cv_DBUS_GLIB_LIBS="$DBUS_GLIB_LIBS"
20246  elif test -n "$PKG_CONFIG"; then
20247     if test -n "$PKG_CONFIG" && \
20248     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 glib-2.0\""; } >&5
20249   ($PKG_CONFIG --exists --print-errors "dbus-glib-1 glib-2.0") 2>&5
20250   ac_status=$?
20251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20252   test $ac_status = 0; }; then
20253   pkg_cv_DBUS_GLIB_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 glib-2.0" 2>/dev/null`
20254                       test "x$?" != "x0" && pkg_failed=yes
20255 else
20256   pkg_failed=yes
20257 fi
20258  else
20259     pkg_failed=untried
20260 fi
20261
20262
20263
20264 if test $pkg_failed = yes; then
20265         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20266 $as_echo "no" >&6; }
20267
20268 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20269         _pkg_short_errors_supported=yes
20270 else
20271         _pkg_short_errors_supported=no
20272 fi
20273         if test $_pkg_short_errors_supported = yes; then
20274                 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-glib-1 glib-2.0" 2>&1`
20275         else
20276                 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-glib-1 glib-2.0" 2>&1`
20277         fi
20278         # Put the nasty error message in config.log where it belongs
20279         echo "$DBUS_GLIB_PKG_ERRORS" >&5
20280
20281         as_fn_error $? "Package requirements (dbus-glib-1 glib-2.0) were not met:
20282
20283 $DBUS_GLIB_PKG_ERRORS
20284
20285 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20286 installed software in a non-standard prefix.
20287
20288 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
20289 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
20290 See the pkg-config man page for more details." "$LINENO" 5
20291 elif test $pkg_failed = untried; then
20292         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20293 $as_echo "no" >&6; }
20294         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20296 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20297 is in your PATH or set the PKG_CONFIG environment variable to the full
20298 path to pkg-config.
20299
20300 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
20301 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
20302 See the pkg-config man page for more details.
20303
20304 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20305 See \`config.log' for more details" "$LINENO" 5; }
20306 else
20307         DBUS_GLIB_CFLAGS=$pkg_cv_DBUS_GLIB_CFLAGS
20308         DBUS_GLIB_LIBS=$pkg_cv_DBUS_GLIB_LIBS
20309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20310 $as_echo "yes" >&6; }
20311
20312 fi
20313     # Extract the first word of "dbus-binding-tool", so it can be a program name with args.
20314 set dummy dbus-binding-tool; ac_word=$2
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20316 $as_echo_n "checking for $ac_word... " >&6; }
20317 if ${ac_cv_path_DBUS_BINDING_TOOL+:} false; then :
20318   $as_echo_n "(cached) " >&6
20319 else
20320   case $DBUS_BINDING_TOOL in
20321   [\\/]* | ?:[\\/]*)
20322   ac_cv_path_DBUS_BINDING_TOOL="$DBUS_BINDING_TOOL" # Let the user override the test with a path.
20323   ;;
20324   *)
20325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20326 for as_dir in $PATH
20327 do
20328   IFS=$as_save_IFS
20329   test -z "$as_dir" && as_dir=.
20330     for ac_exec_ext in '' $ac_executable_extensions; do
20331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20332     ac_cv_path_DBUS_BINDING_TOOL="$as_dir/$ac_word$ac_exec_ext"
20333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20334     break 2
20335   fi
20336 done
20337   done
20338 IFS=$as_save_IFS
20339
20340   ;;
20341 esac
20342 fi
20343 DBUS_BINDING_TOOL=$ac_cv_path_DBUS_BINDING_TOOL
20344 if test -n "$DBUS_BINDING_TOOL"; then
20345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_BINDING_TOOL" >&5
20346 $as_echo "$DBUS_BINDING_TOOL" >&6; }
20347 else
20348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20349 $as_echo "no" >&6; }
20350 fi
20351
20352
20353     # Extract the first word of "glib-genmarshal", so it can be a program name with args.
20354 set dummy glib-genmarshal; ac_word=$2
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20356 $as_echo_n "checking for $ac_word... " >&6; }
20357 if ${ac_cv_path_GLIB_GENMARSHAL+:} false; then :
20358   $as_echo_n "(cached) " >&6
20359 else
20360   case $GLIB_GENMARSHAL in
20361   [\\/]* | ?:[\\/]*)
20362   ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
20363   ;;
20364   *)
20365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20366 for as_dir in $PATH
20367 do
20368   IFS=$as_save_IFS
20369   test -z "$as_dir" && as_dir=.
20370     for ac_exec_ext in '' $ac_executable_extensions; do
20371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20372     ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
20373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20374     break 2
20375   fi
20376 done
20377   done
20378 IFS=$as_save_IFS
20379
20380   ;;
20381 esac
20382 fi
20383 GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
20384 if test -n "$GLIB_GENMARSHAL"; then
20385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL" >&5
20386 $as_echo "$GLIB_GENMARSHAL" >&6; }
20387 else
20388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20389 $as_echo "no" >&6; }
20390 fi
20391
20392
20393
20394     gui_modules="$gtk_version glib-2.0 dbus-glib-1 >= 0.60 gio-2.0 gio-unix-2.0"
20395     if test $enable_gui = "moblin"; then
20396
20397 $as_echo "#define USE_MOBLIN_UX 1" >>confdefs.h
20398
20399     fi
20400
20401     # gtk3 provides a switch widget, otherwise we need mx-gtk
20402     if test $gtk_version != "gtk+-3.0" &&
20403        test $enable_gui = "moblin" -o $enable_gui = "all"; then
20404         gui_modules="$gui_modules mx-gtk-1.0"
20405
20406
20407 pkg_failed=no
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MX_GTK_0_99_1" >&5
20409 $as_echo_n "checking for MX_GTK_0_99_1... " >&6; }
20410
20411 if test -n "$MX_GTK_0_99_1_CFLAGS"; then
20412     pkg_cv_MX_GTK_0_99_1_CFLAGS="$MX_GTK_0_99_1_CFLAGS"
20413  elif test -n "$PKG_CONFIG"; then
20414     if test -n "$PKG_CONFIG" && \
20415     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mx-gtk-1.0 >= 0.99.1\""; } >&5
20416   ($PKG_CONFIG --exists --print-errors "mx-gtk-1.0 >= 0.99.1") 2>&5
20417   ac_status=$?
20418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20419   test $ac_status = 0; }; then
20420   pkg_cv_MX_GTK_0_99_1_CFLAGS=`$PKG_CONFIG --cflags "mx-gtk-1.0 >= 0.99.1" 2>/dev/null`
20421                       test "x$?" != "x0" && pkg_failed=yes
20422 else
20423   pkg_failed=yes
20424 fi
20425  else
20426     pkg_failed=untried
20427 fi
20428 if test -n "$MX_GTK_0_99_1_LIBS"; then
20429     pkg_cv_MX_GTK_0_99_1_LIBS="$MX_GTK_0_99_1_LIBS"
20430  elif test -n "$PKG_CONFIG"; then
20431     if test -n "$PKG_CONFIG" && \
20432     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mx-gtk-1.0 >= 0.99.1\""; } >&5
20433   ($PKG_CONFIG --exists --print-errors "mx-gtk-1.0 >= 0.99.1") 2>&5
20434   ac_status=$?
20435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20436   test $ac_status = 0; }; then
20437   pkg_cv_MX_GTK_0_99_1_LIBS=`$PKG_CONFIG --libs "mx-gtk-1.0 >= 0.99.1" 2>/dev/null`
20438                       test "x$?" != "x0" && pkg_failed=yes
20439 else
20440   pkg_failed=yes
20441 fi
20442  else
20443     pkg_failed=untried
20444 fi
20445
20446
20447
20448 if test $pkg_failed = yes; then
20449         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20450 $as_echo "no" >&6; }
20451
20452 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20453         _pkg_short_errors_supported=yes
20454 else
20455         _pkg_short_errors_supported=no
20456 fi
20457         if test $_pkg_short_errors_supported = yes; then
20458                 MX_GTK_0_99_1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mx-gtk-1.0 >= 0.99.1" 2>&1`
20459         else
20460                 MX_GTK_0_99_1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mx-gtk-1.0 >= 0.99.1" 2>&1`
20461         fi
20462         # Put the nasty error message in config.log where it belongs
20463         echo "$MX_GTK_0_99_1_PKG_ERRORS" >&5
20464
20465         have_mx_gtk_0_99_1="no"
20466 elif test $pkg_failed = untried; then
20467         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20468 $as_echo "no" >&6; }
20469         have_mx_gtk_0_99_1="no"
20470 else
20471         MX_GTK_0_99_1_CFLAGS=$pkg_cv_MX_GTK_0_99_1_CFLAGS
20472         MX_GTK_0_99_1_LIBS=$pkg_cv_MX_GTK_0_99_1_LIBS
20473         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20474 $as_echo "yes" >&6; }
20475         have_mx_gtk_0_99_1="yes"
20476 fi
20477         if test $have_mx_gtk_0_99_1 = "yes"; then
20478
20479 $as_echo "#define MX_GTK_0_99_1 1" >>confdefs.h
20480
20481         fi
20482     fi
20483
20484
20485 pkg_failed=no
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQUE" >&5
20487 $as_echo_n "checking for UNIQUE... " >&6; }
20488
20489 if test -n "$UNIQUE_CFLAGS"; then
20490     pkg_cv_UNIQUE_CFLAGS="$UNIQUE_CFLAGS"
20491  elif test -n "$PKG_CONFIG"; then
20492     if test -n "$PKG_CONFIG" && \
20493     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unique-1.0\""; } >&5
20494   ($PKG_CONFIG --exists --print-errors "unique-1.0") 2>&5
20495   ac_status=$?
20496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20497   test $ac_status = 0; }; then
20498   pkg_cv_UNIQUE_CFLAGS=`$PKG_CONFIG --cflags "unique-1.0" 2>/dev/null`
20499                       test "x$?" != "x0" && pkg_failed=yes
20500 else
20501   pkg_failed=yes
20502 fi
20503  else
20504     pkg_failed=untried
20505 fi
20506 if test -n "$UNIQUE_LIBS"; then
20507     pkg_cv_UNIQUE_LIBS="$UNIQUE_LIBS"
20508  elif test -n "$PKG_CONFIG"; then
20509     if test -n "$PKG_CONFIG" && \
20510     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unique-1.0\""; } >&5
20511   ($PKG_CONFIG --exists --print-errors "unique-1.0") 2>&5
20512   ac_status=$?
20513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20514   test $ac_status = 0; }; then
20515   pkg_cv_UNIQUE_LIBS=`$PKG_CONFIG --libs "unique-1.0" 2>/dev/null`
20516                       test "x$?" != "x0" && pkg_failed=yes
20517 else
20518   pkg_failed=yes
20519 fi
20520  else
20521     pkg_failed=untried
20522 fi
20523
20524
20525
20526 if test $pkg_failed = yes; then
20527         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20528 $as_echo "no" >&6; }
20529
20530 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20531         _pkg_short_errors_supported=yes
20532 else
20533         _pkg_short_errors_supported=no
20534 fi
20535         if test $_pkg_short_errors_supported = yes; then
20536                 UNIQUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unique-1.0" 2>&1`
20537         else
20538                 UNIQUE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unique-1.0" 2>&1`
20539         fi
20540         # Put the nasty error message in config.log where it belongs
20541         echo "$UNIQUE_PKG_ERRORS" >&5
20542
20543         have_unique="no"
20544 elif test $pkg_failed = untried; then
20545         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20546 $as_echo "no" >&6; }
20547         have_unique="no"
20548 else
20549         UNIQUE_CFLAGS=$pkg_cv_UNIQUE_CFLAGS
20550         UNIQUE_LIBS=$pkg_cv_UNIQUE_LIBS
20551         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20552 $as_echo "yes" >&6; }
20553         have_unique="yes"
20554 fi
20555     if test $have_unique = "yes"; then
20556         gui_modules="$gui_modules unique-1.0"
20557
20558 $as_echo "#define ENABLE_UNIQUE 1" >>confdefs.h
20559
20560     fi
20561
20562
20563 pkg_failed=no
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK_2_18" >&5
20565 $as_echo_n "checking for GTK_2_18... " >&6; }
20566
20567 if test -n "$GTK_2_18_CFLAGS"; then
20568     pkg_cv_GTK_2_18_CFLAGS="$GTK_2_18_CFLAGS"
20569  elif test -n "$PKG_CONFIG"; then
20570     if test -n "$PKG_CONFIG" && \
20571     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
20572   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
20573   ac_status=$?
20574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20575   test $ac_status = 0; }; then
20576   pkg_cv_GTK_2_18_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
20577                       test "x$?" != "x0" && pkg_failed=yes
20578 else
20579   pkg_failed=yes
20580 fi
20581  else
20582     pkg_failed=untried
20583 fi
20584 if test -n "$GTK_2_18_LIBS"; then
20585     pkg_cv_GTK_2_18_LIBS="$GTK_2_18_LIBS"
20586  elif test -n "$PKG_CONFIG"; then
20587     if test -n "$PKG_CONFIG" && \
20588     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
20589   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
20590   ac_status=$?
20591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20592   test $ac_status = 0; }; then
20593   pkg_cv_GTK_2_18_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
20594                       test "x$?" != "x0" && pkg_failed=yes
20595 else
20596   pkg_failed=yes
20597 fi
20598  else
20599     pkg_failed=untried
20600 fi
20601
20602
20603
20604 if test $pkg_failed = yes; then
20605         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20606 $as_echo "no" >&6; }
20607
20608 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20609         _pkg_short_errors_supported=yes
20610 else
20611         _pkg_short_errors_supported=no
20612 fi
20613         if test $_pkg_short_errors_supported = yes; then
20614                 GTK_2_18_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
20615         else
20616                 GTK_2_18_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
20617         fi
20618         # Put the nasty error message in config.log where it belongs
20619         echo "$GTK_2_18_PKG_ERRORS" >&5
20620
20621         have_gtk_2_18="no"
20622 elif test $pkg_failed = untried; then
20623         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20624 $as_echo "no" >&6; }
20625         have_gtk_2_18="no"
20626 else
20627         GTK_2_18_CFLAGS=$pkg_cv_GTK_2_18_CFLAGS
20628         GTK_2_18_LIBS=$pkg_cv_GTK_2_18_LIBS
20629         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20630 $as_echo "yes" >&6; }
20631         have_gtk_2_18="yes"
20632 fi
20633     if test $have_gtk_2_18 = "yes"; then
20634
20635 $as_echo "#define GTK_2_18 1" >>confdefs.h
20636
20637     fi
20638
20639
20640 pkg_failed=no
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUI" >&5
20642 $as_echo_n "checking for GUI... " >&6; }
20643
20644 if test -n "$GUI_CFLAGS"; then
20645     pkg_cv_GUI_CFLAGS="$GUI_CFLAGS"
20646  elif test -n "$PKG_CONFIG"; then
20647     if test -n "$PKG_CONFIG" && \
20648     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gui_modules\""; } >&5
20649   ($PKG_CONFIG --exists --print-errors "$gui_modules") 2>&5
20650   ac_status=$?
20651   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20652   test $ac_status = 0; }; then
20653   pkg_cv_GUI_CFLAGS=`$PKG_CONFIG --cflags "$gui_modules" 2>/dev/null`
20654                       test "x$?" != "x0" && pkg_failed=yes
20655 else
20656   pkg_failed=yes
20657 fi
20658  else
20659     pkg_failed=untried
20660 fi
20661 if test -n "$GUI_LIBS"; then
20662     pkg_cv_GUI_LIBS="$GUI_LIBS"
20663  elif test -n "$PKG_CONFIG"; then
20664     if test -n "$PKG_CONFIG" && \
20665     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gui_modules\""; } >&5
20666   ($PKG_CONFIG --exists --print-errors "$gui_modules") 2>&5
20667   ac_status=$?
20668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20669   test $ac_status = 0; }; then
20670   pkg_cv_GUI_LIBS=`$PKG_CONFIG --libs "$gui_modules" 2>/dev/null`
20671                       test "x$?" != "x0" && pkg_failed=yes
20672 else
20673   pkg_failed=yes
20674 fi
20675  else
20676     pkg_failed=untried
20677 fi
20678
20679
20680
20681 if test $pkg_failed = yes; then
20682         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20683 $as_echo "no" >&6; }
20684
20685 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20686         _pkg_short_errors_supported=yes
20687 else
20688         _pkg_short_errors_supported=no
20689 fi
20690         if test $_pkg_short_errors_supported = yes; then
20691                 GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$gui_modules" 2>&1`
20692         else
20693                 GUI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$gui_modules" 2>&1`
20694         fi
20695         # Put the nasty error message in config.log where it belongs
20696         echo "$GUI_PKG_ERRORS" >&5
20697
20698         as_fn_error $? "Package requirements ($gui_modules) were not met:
20699
20700 $GUI_PKG_ERRORS
20701
20702 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20703 installed software in a non-standard prefix.
20704
20705 Alternatively, you may set the environment variables GUI_CFLAGS
20706 and GUI_LIBS to avoid the need to call pkg-config.
20707 See the pkg-config man page for more details." "$LINENO" 5
20708 elif test $pkg_failed = untried; then
20709         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20710 $as_echo "no" >&6; }
20711         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20713 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20714 is in your PATH or set the PKG_CONFIG environment variable to the full
20715 path to pkg-config.
20716
20717 Alternatively, you may set the environment variables GUI_CFLAGS
20718 and GUI_LIBS to avoid the need to call pkg-config.
20719 See the pkg-config man page for more details.
20720
20721 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20722 See \`config.log' for more details" "$LINENO" 5; }
20723 else
20724         GUI_CFLAGS=$pkg_cv_GUI_CFLAGS
20725         GUI_LIBS=$pkg_cv_GUI_LIBS
20726         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20727 $as_echo "yes" >&6; }
20728
20729 fi
20730
20731 elif test "$enable_dbus_service" != "no"; then
20732     # syncevo-dbus-server needs localization
20733     :
20734 else
20735     INTLTOOL_UPDATE="true"
20736     USE_NLS="no"
20737 fi
20738
20739
20740
20741
20742
20743
20744
20745 # C++ regular expression support is required often enough to make it
20746 # mandatory.
20747
20748 pkg_failed=no
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRECPP" >&5
20750 $as_echo_n "checking for PCRECPP... " >&6; }
20751
20752 if test -n "$PCRECPP_CFLAGS"; then
20753     pkg_cv_PCRECPP_CFLAGS="$PCRECPP_CFLAGS"
20754  elif test -n "$PKG_CONFIG"; then
20755     if test -n "$PKG_CONFIG" && \
20756     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcrecpp\""; } >&5
20757   ($PKG_CONFIG --exists --print-errors "libpcrecpp") 2>&5
20758   ac_status=$?
20759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20760   test $ac_status = 0; }; then
20761   pkg_cv_PCRECPP_CFLAGS=`$PKG_CONFIG --cflags "libpcrecpp" 2>/dev/null`
20762                       test "x$?" != "x0" && pkg_failed=yes
20763 else
20764   pkg_failed=yes
20765 fi
20766  else
20767     pkg_failed=untried
20768 fi
20769 if test -n "$PCRECPP_LIBS"; then
20770     pkg_cv_PCRECPP_LIBS="$PCRECPP_LIBS"
20771  elif test -n "$PKG_CONFIG"; then
20772     if test -n "$PKG_CONFIG" && \
20773     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcrecpp\""; } >&5
20774   ($PKG_CONFIG --exists --print-errors "libpcrecpp") 2>&5
20775   ac_status=$?
20776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20777   test $ac_status = 0; }; then
20778   pkg_cv_PCRECPP_LIBS=`$PKG_CONFIG --libs "libpcrecpp" 2>/dev/null`
20779                       test "x$?" != "x0" && pkg_failed=yes
20780 else
20781   pkg_failed=yes
20782 fi
20783  else
20784     pkg_failed=untried
20785 fi
20786
20787
20788
20789 if test $pkg_failed = yes; then
20790         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20791 $as_echo "no" >&6; }
20792
20793 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20794         _pkg_short_errors_supported=yes
20795 else
20796         _pkg_short_errors_supported=no
20797 fi
20798         if test $_pkg_short_errors_supported = yes; then
20799                 PCRECPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcrecpp" 2>&1`
20800         else
20801                 PCRECPP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcrecpp" 2>&1`
20802         fi
20803         # Put the nasty error message in config.log where it belongs
20804         echo "$PCRECPP_PKG_ERRORS" >&5
20805
20806         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpcrecpp" >&5
20807 $as_echo_n "checking for main in -lpcrecpp... " >&6; }
20808 if ${ac_cv_lib_pcrecpp_main+:} false; then :
20809   $as_echo_n "(cached) " >&6
20810 else
20811   ac_check_lib_save_LIBS=$LIBS
20812 LIBS="-lpcrecpp  $LIBS"
20813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20814 /* end confdefs.h.  */
20815
20816
20817 int
20818 main ()
20819 {
20820 return main ();
20821   ;
20822   return 0;
20823 }
20824 _ACEOF
20825 if ac_fn_cxx_try_link "$LINENO"; then :
20826   ac_cv_lib_pcrecpp_main=yes
20827 else
20828   ac_cv_lib_pcrecpp_main=no
20829 fi
20830 rm -f core conftest.err conftest.$ac_objext \
20831     conftest$ac_exeext conftest.$ac_ext
20832 LIBS=$ac_check_lib_save_LIBS
20833 fi
20834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcrecpp_main" >&5
20835 $as_echo "$ac_cv_lib_pcrecpp_main" >&6; }
20836 if test "x$ac_cv_lib_pcrecpp_main" = xyes; then :
20837   PCRECPP_LIBS=-lpcrecpp
20838
20839 else
20840   as_fn_error $? "pcrecpp not found" "$LINENO" 5
20841
20842 fi
20843
20844 elif test $pkg_failed = untried; then
20845         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20846 $as_echo "no" >&6; }
20847         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpcrecpp" >&5
20848 $as_echo_n "checking for main in -lpcrecpp... " >&6; }
20849 if ${ac_cv_lib_pcrecpp_main+:} false; then :
20850   $as_echo_n "(cached) " >&6
20851 else
20852   ac_check_lib_save_LIBS=$LIBS
20853 LIBS="-lpcrecpp  $LIBS"
20854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20855 /* end confdefs.h.  */
20856
20857
20858 int
20859 main ()
20860 {
20861 return main ();
20862   ;
20863   return 0;
20864 }
20865 _ACEOF
20866 if ac_fn_cxx_try_link "$LINENO"; then :
20867   ac_cv_lib_pcrecpp_main=yes
20868 else
20869   ac_cv_lib_pcrecpp_main=no
20870 fi
20871 rm -f core conftest.err conftest.$ac_objext \
20872     conftest$ac_exeext conftest.$ac_ext
20873 LIBS=$ac_check_lib_save_LIBS
20874 fi
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcrecpp_main" >&5
20876 $as_echo "$ac_cv_lib_pcrecpp_main" >&6; }
20877 if test "x$ac_cv_lib_pcrecpp_main" = xyes; then :
20878   PCRECPP_LIBS=-lpcrecpp
20879
20880 else
20881   as_fn_error $? "pcrecpp not found" "$LINENO" 5
20882
20883 fi
20884
20885 else
20886         PCRECPP_CFLAGS=$pkg_cv_PCRECPP_CFLAGS
20887         PCRECPP_LIBS=$pkg_cv_PCRECPP_LIBS
20888         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20889 $as_echo "yes" >&6; }
20890
20891 fi
20892
20893 # need rst2man for man pages
20894
20895 # Check whether --with-rst2man was given.
20896 if test "${with_rst2man+set}" = set; then :
20897   withval=$with_rst2man; RST2MAN=$withval
20898              if test "$RST2MAN" = "yes"; then
20899                  # Extract the first word of "rst2man", so it can be a program name with args.
20900 set dummy rst2man; ac_word=$2
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20902 $as_echo_n "checking for $ac_word... " >&6; }
20903 if ${ac_cv_path_RST2MAN+:} false; then :
20904   $as_echo_n "(cached) " >&6
20905 else
20906   case $RST2MAN in
20907   [\\/]* | ?:[\\/]*)
20908   ac_cv_path_RST2MAN="$RST2MAN" # Let the user override the test with a path.
20909   ;;
20910   *)
20911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20912 for as_dir in $PATH
20913 do
20914   IFS=$as_save_IFS
20915   test -z "$as_dir" && as_dir=.
20916     for ac_exec_ext in '' $ac_executable_extensions; do
20917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20918     ac_cv_path_RST2MAN="$as_dir/$ac_word$ac_exec_ext"
20919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20920     break 2
20921   fi
20922 done
20923   done
20924 IFS=$as_save_IFS
20925
20926   test -z "$ac_cv_path_RST2MAN" && ac_cv_path_RST2MAN=""no""
20927   ;;
20928 esac
20929 fi
20930 RST2MAN=$ac_cv_path_RST2MAN
20931 if test -n "$RST2MAN"; then
20932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2MAN" >&5
20933 $as_echo "$RST2MAN" >&6; }
20934 else
20935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20936 $as_echo "no" >&6; }
20937 fi
20938
20939
20940              fi
20941              test "$RST2MAN" = "no" || test -x "$RST2MAN" || as_fn_error $? "--with-rst2man=$RST2MAN: tool not found" "$LINENO" 5
20942 else
20943   # Extract the first word of "rst2man", so it can be a program name with args.
20944 set dummy rst2man; ac_word=$2
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20946 $as_echo_n "checking for $ac_word... " >&6; }
20947 if ${ac_cv_path_RST2MAN+:} false; then :
20948   $as_echo_n "(cached) " >&6
20949 else
20950   case $RST2MAN in
20951   [\\/]* | ?:[\\/]*)
20952   ac_cv_path_RST2MAN="$RST2MAN" # Let the user override the test with a path.
20953   ;;
20954   *)
20955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20956 for as_dir in $PATH
20957 do
20958   IFS=$as_save_IFS
20959   test -z "$as_dir" && as_dir=.
20960     for ac_exec_ext in '' $ac_executable_extensions; do
20961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20962     ac_cv_path_RST2MAN="$as_dir/$ac_word$ac_exec_ext"
20963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20964     break 2
20965   fi
20966 done
20967   done
20968 IFS=$as_save_IFS
20969
20970   test -z "$ac_cv_path_RST2MAN" && ac_cv_path_RST2MAN=""no""
20971   ;;
20972 esac
20973 fi
20974 RST2MAN=$ac_cv_path_RST2MAN
20975 if test -n "$RST2MAN"; then
20976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2MAN" >&5
20977 $as_echo "$RST2MAN" >&6; }
20978 else
20979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20980 $as_echo "no" >&6; }
20981 fi
20982
20983
20984 fi
20985
20986  if test "$RST2MAN" != "no"; then
20987   COND_MAN_PAGES_TRUE=
20988   COND_MAN_PAGES_FALSE='#'
20989 else
20990   COND_MAN_PAGES_TRUE='#'
20991   COND_MAN_PAGES_FALSE=
20992 fi
20993
20994
20995 # need rst2html for HTML version of README
20996
20997 # Check whether --with-rst2html was given.
20998 if test "${with_rst2html+set}" = set; then :
20999   withval=$with_rst2html; RST2HTML=$withval
21000              if test "$RST2HTML" = "yes"; then
21001                  # Extract the first word of "rst2html", so it can be a program name with args.
21002 set dummy rst2html; ac_word=$2
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21004 $as_echo_n "checking for $ac_word... " >&6; }
21005 if ${ac_cv_path_RST2HTML+:} false; then :
21006   $as_echo_n "(cached) " >&6
21007 else
21008   case $RST2HTML in
21009   [\\/]* | ?:[\\/]*)
21010   ac_cv_path_RST2HTML="$RST2HTML" # Let the user override the test with a path.
21011   ;;
21012   *)
21013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21014 for as_dir in $PATH
21015 do
21016   IFS=$as_save_IFS
21017   test -z "$as_dir" && as_dir=.
21018     for ac_exec_ext in '' $ac_executable_extensions; do
21019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21020     ac_cv_path_RST2HTML="$as_dir/$ac_word$ac_exec_ext"
21021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21022     break 2
21023   fi
21024 done
21025   done
21026 IFS=$as_save_IFS
21027
21028   test -z "$ac_cv_path_RST2HTML" && ac_cv_path_RST2HTML=""no""
21029   ;;
21030 esac
21031 fi
21032 RST2HTML=$ac_cv_path_RST2HTML
21033 if test -n "$RST2HTML"; then
21034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2HTML" >&5
21035 $as_echo "$RST2HTML" >&6; }
21036 else
21037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21038 $as_echo "no" >&6; }
21039 fi
21040
21041
21042              fi
21043              test "$RST2HTML" = "no" || test -x "$RST2HTML" || as_fn_error $? "--with-rst2html=$RST2HTML: tool not found" "$LINENO" 5
21044 else
21045   # Extract the first word of "rst2html", so it can be a program name with args.
21046 set dummy rst2html; ac_word=$2
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21048 $as_echo_n "checking for $ac_word... " >&6; }
21049 if ${ac_cv_path_RST2HTML+:} false; then :
21050   $as_echo_n "(cached) " >&6
21051 else
21052   case $RST2HTML in
21053   [\\/]* | ?:[\\/]*)
21054   ac_cv_path_RST2HTML="$RST2HTML" # Let the user override the test with a path.
21055   ;;
21056   *)
21057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21058 for as_dir in $PATH
21059 do
21060   IFS=$as_save_IFS
21061   test -z "$as_dir" && as_dir=.
21062     for ac_exec_ext in '' $ac_executable_extensions; do
21063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21064     ac_cv_path_RST2HTML="$as_dir/$ac_word$ac_exec_ext"
21065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21066     break 2
21067   fi
21068 done
21069   done
21070 IFS=$as_save_IFS
21071
21072   test -z "$ac_cv_path_RST2HTML" && ac_cv_path_RST2HTML=""no""
21073   ;;
21074 esac
21075 fi
21076 RST2HTML=$ac_cv_path_RST2HTML
21077 if test -n "$RST2HTML"; then
21078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2HTML" >&5
21079 $as_echo "$RST2HTML" >&6; }
21080 else
21081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21082 $as_echo "no" >&6; }
21083 fi
21084
21085
21086 fi
21087
21088  if test "$RST2HTML" != "no"; then
21089   COND_HTML_README_TRUE=
21090   COND_HTML_README_FALSE='#'
21091 else
21092   COND_HTML_README_TRUE='#'
21093   COND_HTML_README_FALSE=
21094 fi
21095
21096
21097 # absolute patch to source of Synthesis client library
21098 SYNTHESIS_SRC=no-synthesis-source
21099
21100 if test "$SYNTHESISSRC" && test "$SYNTHESISSRC" != "none"; then
21101     # default: checkout a copy of the sources, remove it during maintainer-clean and distclean
21102     CLEAN_CLIENT_SRC=synthesis-workdir
21103     SYNTHESIS_SRC=$PWD/src/synthesis-workdir
21104
21105     { $as_echo "$as_me:${as_lineno-$LINENO}: updating the content of $SYNTHESIS_SRC from $SYNTHESISSRC " >&5
21106 $as_echo "$as_me: updating the content of $SYNTHESIS_SRC from $SYNTHESISSRC " >&6;}
21107     case "$SYNTHESISSRC" in
21108         *.git) protocol=git;;
21109         *://*) protocol="`echo $SYNTHESISSRC | sed -e 's;://.*;;'`";;
21110         *) protocol="file";;
21111     esac
21112
21113     mkdir -p src
21114     case $protocol in
21115         file)
21116             # use existing copy of the sources
21117             CLEAN_CLIENT_SRC=
21118             case "$SYNTHESISSRC" in
21119                  /*) SYNTHESIS_SRC="$SYNTHESISSRC";;
21120                  *) SYNTHESIS_SRC="$PWD/$SYNTHESISSRC";;
21121             esac
21122             ;;
21123         *svn*|*http*)
21124             SYNTHESISSRCREV="$SYNTHESISSRC"
21125             if test "$REVISION"; then
21126                 revarg="-r $REVISION "
21127                 if `echo $SYNTHESISSRC | grep '@0123456789*'` >/dev/null; then
21128                     :
21129                 else
21130                     SYNTHESISSRCREV="$SYNTHESISSRC@$REVISION"
21131                 fi
21132             fi
21133             if test -d $SYNTHESIS_SRC ; then
21134                 ( set -x; cd $SYNTHESIS_SRC && svn --username=$USERNAME switch $revarg "$SYNTHESISSRC" ) || as_fn_error $? "updating from $SYNTHESISSRC failed" "$LINENO" 5
21135             else
21136                 (set -x; svn --username=$USERNAME checkout $revarg "$SYNTHESISSRCREV" $SYNTHESIS_SRC ) || as_fn_error $? "checking out $SYNTHESISSRC failed" "$LINENO" 5
21137             fi
21138             ;;
21139         *)
21140             if test -d $SYNTHESIS_SRC ; then
21141                 ( set -x; cd $SYNTHESIS_SRC && git fetch "$SYNTHESISSRC" ) || as_fn_error $? "updating from $SYNTHESISSRC failed" "$LINENO" 5
21142             else
21143                 ( set -x; git clone "$SYNTHESISSRC" $SYNTHESIS_SRC ) || as_fn_error $? "cloning $SYNTHESISSRC failed" "$LINENO" 5
21144             fi
21145             if test "$REVISION"; then
21146                 # git 1.6 finds tags and branches without explicit prefix, 1.4.4.4 doesn't
21147                 ( set -x; cd $SYNTHESIS_SRC &&
21148                   (git checkout "$REVISION" ||
21149                    git checkout "tags/$REVISION" ||
21150                    git checkout "origin/$REVISION") ) || as_fn_error $? "checking out $SYNTHESISSRC failed" "$LINENO" 5
21151             fi
21152             ;;
21153     esac
21154 elif test "$SYNTHESISSRC" != "none" && test -d $srcdir/src/synthesis; then
21155     # use existing copy of the sources; beware of
21156     # out-of-tree compilation
21157     case $srcdir in
21158          /*) SYNTHESIS_SRC="$srcdir/src/synthesis";;
21159          *) SYNTHESIS_SRC="$PWD/$srcdir/src/synthesis";;
21160     esac
21161 elif test "$enable_shared" = "no"; then
21162     # link against engine
21163
21164 pkg_failed=no
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYNTHESIS" >&5
21166 $as_echo_n "checking for SYNTHESIS... " >&6; }
21167
21168 if test -n "$SYNTHESIS_CFLAGS"; then
21169     pkg_cv_SYNTHESIS_CFLAGS="$SYNTHESIS_CFLAGS"
21170  elif test -n "$PKG_CONFIG"; then
21171     if test -n "$PKG_CONFIG" && \
21172     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4\""; } >&5
21173   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4") 2>&5
21174   ac_status=$?
21175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21176   test $ac_status = 0; }; then
21177   pkg_cv_SYNTHESIS_CFLAGS=`$PKG_CONFIG --cflags "synthesis >= 3.4" 2>/dev/null`
21178                       test "x$?" != "x0" && pkg_failed=yes
21179 else
21180   pkg_failed=yes
21181 fi
21182  else
21183     pkg_failed=untried
21184 fi
21185 if test -n "$SYNTHESIS_LIBS"; then
21186     pkg_cv_SYNTHESIS_LIBS="$SYNTHESIS_LIBS"
21187  elif test -n "$PKG_CONFIG"; then
21188     if test -n "$PKG_CONFIG" && \
21189     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4\""; } >&5
21190   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4") 2>&5
21191   ac_status=$?
21192   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21193   test $ac_status = 0; }; then
21194   pkg_cv_SYNTHESIS_LIBS=`$PKG_CONFIG --libs "synthesis >= 3.4" 2>/dev/null`
21195                       test "x$?" != "x0" && pkg_failed=yes
21196 else
21197   pkg_failed=yes
21198 fi
21199  else
21200     pkg_failed=untried
21201 fi
21202
21203
21204
21205 if test $pkg_failed = yes; then
21206         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21207 $as_echo "no" >&6; }
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                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "synthesis >= 3.4" 2>&1`
21216         else
21217                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "synthesis >= 3.4" 2>&1`
21218         fi
21219         # Put the nasty error message in config.log where it belongs
21220         echo "$SYNTHESIS_PKG_ERRORS" >&5
21221
21222         as_fn_error $? "Package requirements (synthesis >= 3.4) were not met:
21223
21224 $SYNTHESIS_PKG_ERRORS
21225
21226 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21227 installed software in a non-standard prefix.
21228
21229 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
21230 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
21231 See the pkg-config man page for more details." "$LINENO" 5
21232 elif test $pkg_failed = untried; then
21233         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21234 $as_echo "no" >&6; }
21235         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21237 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21238 is in your PATH or set the PKG_CONFIG environment variable to the full
21239 path to pkg-config.
21240
21241 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
21242 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
21243 See the pkg-config man page for more details.
21244
21245 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21246 See \`config.log' for more details" "$LINENO" 5; }
21247 else
21248         SYNTHESIS_CFLAGS=$pkg_cv_SYNTHESIS_CFLAGS
21249         SYNTHESIS_LIBS=$pkg_cv_SYNTHESIS_LIBS
21250         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21251 $as_echo "yes" >&6; }
21252
21253 fi
21254     SYNTHESIS_ENGINE="$SYNTHESIS_LIBS -lsynthesis -lsmltk"
21255 else
21256     # link against SDK alone, except in client-test
21257     #PKG_CHECK_MODULES(SYNTHESIS, "synthesis-sdk")
21258     #SYNTHESIS_ENGINE="`echo $SYNTHESIS_LIBS | sed -e 's/-lsynthesisstubs/-lsynthesis/'`"
21259
21260     # can't use the SDK alone because of sysync::SySyncDebugPuts()
21261
21262 pkg_failed=no
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYNTHESIS" >&5
21264 $as_echo_n "checking for SYNTHESIS... " >&6; }
21265
21266 if test -n "$SYNTHESIS_CFLAGS"; then
21267     pkg_cv_SYNTHESIS_CFLAGS="$SYNTHESIS_CFLAGS"
21268  elif test -n "$PKG_CONFIG"; then
21269     if test -n "$PKG_CONFIG" && \
21270     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4.0.47.1\""; } >&5
21271   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4.0.47.1") 2>&5
21272   ac_status=$?
21273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21274   test $ac_status = 0; }; then
21275   pkg_cv_SYNTHESIS_CFLAGS=`$PKG_CONFIG --cflags "synthesis >= 3.4.0.47.1" 2>/dev/null`
21276                       test "x$?" != "x0" && pkg_failed=yes
21277 else
21278   pkg_failed=yes
21279 fi
21280  else
21281     pkg_failed=untried
21282 fi
21283 if test -n "$SYNTHESIS_LIBS"; then
21284     pkg_cv_SYNTHESIS_LIBS="$SYNTHESIS_LIBS"
21285  elif test -n "$PKG_CONFIG"; then
21286     if test -n "$PKG_CONFIG" && \
21287     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4.0.47.1\""; } >&5
21288   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4.0.47.1") 2>&5
21289   ac_status=$?
21290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21291   test $ac_status = 0; }; then
21292   pkg_cv_SYNTHESIS_LIBS=`$PKG_CONFIG --libs "synthesis >= 3.4.0.47.1" 2>/dev/null`
21293                       test "x$?" != "x0" && pkg_failed=yes
21294 else
21295   pkg_failed=yes
21296 fi
21297  else
21298     pkg_failed=untried
21299 fi
21300
21301
21302
21303 if test $pkg_failed = yes; then
21304         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21305 $as_echo "no" >&6; }
21306
21307 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21308         _pkg_short_errors_supported=yes
21309 else
21310         _pkg_short_errors_supported=no
21311 fi
21312         if test $_pkg_short_errors_supported = yes; then
21313                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "synthesis >= 3.4.0.47.1" 2>&1`
21314         else
21315                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "synthesis >= 3.4.0.47.1" 2>&1`
21316         fi
21317         # Put the nasty error message in config.log where it belongs
21318         echo "$SYNTHESIS_PKG_ERRORS" >&5
21319
21320         as_fn_error $? "Package requirements (synthesis >= 3.4.0.47.1) were not met:
21321
21322 $SYNTHESIS_PKG_ERRORS
21323
21324 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21325 installed software in a non-standard prefix.
21326
21327 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
21328 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
21329 See the pkg-config man page for more details." "$LINENO" 5
21330 elif test $pkg_failed = untried; then
21331         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21332 $as_echo "no" >&6; }
21333         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21335 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21336 is in your PATH or set the PKG_CONFIG environment variable to the full
21337 path to pkg-config.
21338
21339 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
21340 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
21341 See the pkg-config man page for more details.
21342
21343 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21344 See \`config.log' for more details" "$LINENO" 5; }
21345 else
21346         SYNTHESIS_CFLAGS=$pkg_cv_SYNTHESIS_CFLAGS
21347         SYNTHESIS_LIBS=$pkg_cv_SYNTHESIS_LIBS
21348         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21349 $as_echo "yes" >&6; }
21350
21351 fi
21352     SYNTHESIS_ENGINE="$SYNTHESIS_LIBS"
21353 fi
21354
21355 if test $SYNTHESIS_SRC != "no-synthesis-source"; then
21356     ( 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
21357
21358     SYNTHESIS_CONFIGURE="$SYNTHESIS_SRC/configure"
21359     chmod u+x $SYNTHESIS_SRC/configure $SYNTHESIS_SRC/config.sub $SYNTHESIS_SRC/config.guess
21360
21361     # use local copy of the sources, with dependencies
21362     # to trigger building the synthesis library
21363     SYNTHESIS_SUBDIR=$PWD/src/build-synthesis
21364     SYNTHESIS_CFLAGS="-I$SYNTHESIS_SUBDIR/src"
21365     SYNTHESIS_LIBS="$SYNTHESIS_SUBDIR/src/libsynthesissdk.la $SYNTHESIS_SUBDIR/src/libsmltk.la"
21366
21367     if test "x$enable_core" = "xno" && test "x$enable_gui" != "xno"; then
21368        # SYNTHESIS_SUBDIR is ignored, at least build headers for GUI
21369        SYNTHESIS_SUBDIR_INCLUDES=src/synthesis-includes
21370     fi
21371
21372     if test "$enable_shared" = "no"; then
21373         # link against the engines that were enabled
21374         case $SYNCML_ENGINES in both|client|server) SYNTHESIS_LIBS="$SYNTHESIS_LIBS $SYNTHESIS_SUBDIR/src/libsynthesis.la $SYNTHESIS_SUBDIR/src/libsmltk.la";; esac
21375
21376 $as_echo "#define ENABLE_SYNCML_LINKED 1" >>confdefs.h
21377
21378     else
21379         # It would be nice if we could avoid linking against libsynthesis.la here.
21380         # This doesn't work at the moment because sysync::SySyncDebugPuts()
21381         # is called directly by the libsynthesissdk instead of going through
21382         # the normal C function pointer lookup.
21383         SYNTHESIS_LIBS="$SYNTHESIS_LIBS $SYNTHESIS_SUBDIR/src/libsynthesis.la $SYNTHESIS_SUBDIR/src/libsmltk.la"
21384     fi
21385     SYNTHESIS_DEP=$SYNTHESIS_LIBS
21386
21387     # for linking client-test
21388     SYNTHESIS_ENGINE="$SYNTHESIS_SUBDIR/src/libsynthesis.la"
21389
21390     { $as_echo "$as_me:${as_lineno-$LINENO}: configuring the Synthesis library " >&5
21391 $as_echo "$as_me: configuring the Synthesis library " >&6;}
21392     if (set -x; mkdir -p $SYNTHESIS_SUBDIR && cd $SYNTHESIS_SUBDIR && eval "\$SHELL \"\$SYNTHESIS_CONFIGURE\" $ac_configure_args \"--srcdir=\$SYNTHESIS_SRC\" " ); then true; else
21393         as_fn_error $? "configuring Synthesis library failed " "$LINENO" 5
21394     fi
21395
21396     # do the version check with the .pc files prepared by the configure step above
21397     export PKG_CONFIG_PATH=$SYNTHESIS_SUBDIR:$PKG_CONFIG_PATH
21398
21399 pkg_failed=no
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WITH_SYNTHESIS_SRC" >&5
21401 $as_echo_n "checking for WITH_SYNTHESIS_SRC... " >&6; }
21402
21403 if test -n "$WITH_SYNTHESIS_SRC_CFLAGS"; then
21404     pkg_cv_WITH_SYNTHESIS_SRC_CFLAGS="$WITH_SYNTHESIS_SRC_CFLAGS"
21405  elif test -n "$PKG_CONFIG"; then
21406     if test -n "$PKG_CONFIG" && \
21407     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4.0.47.1\""; } >&5
21408   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4.0.47.1") 2>&5
21409   ac_status=$?
21410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21411   test $ac_status = 0; }; then
21412   pkg_cv_WITH_SYNTHESIS_SRC_CFLAGS=`$PKG_CONFIG --cflags "synthesis >= 3.4.0.47.1" 2>/dev/null`
21413                       test "x$?" != "x0" && pkg_failed=yes
21414 else
21415   pkg_failed=yes
21416 fi
21417  else
21418     pkg_failed=untried
21419 fi
21420 if test -n "$WITH_SYNTHESIS_SRC_LIBS"; then
21421     pkg_cv_WITH_SYNTHESIS_SRC_LIBS="$WITH_SYNTHESIS_SRC_LIBS"
21422  elif test -n "$PKG_CONFIG"; then
21423     if test -n "$PKG_CONFIG" && \
21424     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4.0.47.1\""; } >&5
21425   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4.0.47.1") 2>&5
21426   ac_status=$?
21427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21428   test $ac_status = 0; }; then
21429   pkg_cv_WITH_SYNTHESIS_SRC_LIBS=`$PKG_CONFIG --libs "synthesis >= 3.4.0.47.1" 2>/dev/null`
21430                       test "x$?" != "x0" && pkg_failed=yes
21431 else
21432   pkg_failed=yes
21433 fi
21434  else
21435     pkg_failed=untried
21436 fi
21437
21438
21439
21440 if test $pkg_failed = yes; then
21441         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21442 $as_echo "no" >&6; }
21443
21444 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21445         _pkg_short_errors_supported=yes
21446 else
21447         _pkg_short_errors_supported=no
21448 fi
21449         if test $_pkg_short_errors_supported = yes; then
21450                 WITH_SYNTHESIS_SRC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "synthesis >= 3.4.0.47.1" 2>&1`
21451         else
21452                 WITH_SYNTHESIS_SRC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "synthesis >= 3.4.0.47.1" 2>&1`
21453         fi
21454         # Put the nasty error message in config.log where it belongs
21455         echo "$WITH_SYNTHESIS_SRC_PKG_ERRORS" >&5
21456
21457         as_fn_error $? "need at least libsynthesis >= 3.4.0.47.1; the latest libsynthesis for SyncEvolution is the one from http://cgit.freedesktop.org/SyncEvolution/" "$LINENO" 5
21458 elif test $pkg_failed = untried; then
21459         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21460 $as_echo "no" >&6; }
21461         as_fn_error $? "need at least libsynthesis >= 3.4.0.47.1; the latest libsynthesis for SyncEvolution is the one from http://cgit.freedesktop.org/SyncEvolution/" "$LINENO" 5
21462 else
21463         WITH_SYNTHESIS_SRC_CFLAGS=$pkg_cv_WITH_SYNTHESIS_SRC_CFLAGS
21464         WITH_SYNTHESIS_SRC_LIBS=$pkg_cv_WITH_SYNTHESIS_SRC_LIBS
21465         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21466 $as_echo "yes" >&6; }
21467
21468 fi
21469
21470 fi
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482 BACKEND_CPPFLAGS="$SYNTHESIS_CFLAGS $EPACKAGE_CFLAGS $EBOOK_CFLAGS $ECAL_CFLAGS $GLIB_CFLAGS $BOOST_CPPFLAGS"
21483
21484
21485 # GNOME Bluetooth Panel plugin
21486
21487 pkg_failed=no
21488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOMEBLUETOOTH" >&5
21489 $as_echo_n "checking for GNOMEBLUETOOTH... " >&6; }
21490
21491 if test -n "$GNOMEBLUETOOTH_CFLAGS"; then
21492     pkg_cv_GNOMEBLUETOOTH_CFLAGS="$GNOMEBLUETOOTH_CFLAGS"
21493  elif test -n "$PKG_CONFIG"; then
21494     if test -n "$PKG_CONFIG" && \
21495     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-bluetooth-1.0 >= 2.27.6\""; } >&5
21496   ($PKG_CONFIG --exists --print-errors "gnome-bluetooth-1.0 >= 2.27.6") 2>&5
21497   ac_status=$?
21498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21499   test $ac_status = 0; }; then
21500   pkg_cv_GNOMEBLUETOOTH_CFLAGS=`$PKG_CONFIG --cflags "gnome-bluetooth-1.0 >= 2.27.6" 2>/dev/null`
21501                       test "x$?" != "x0" && pkg_failed=yes
21502 else
21503   pkg_failed=yes
21504 fi
21505  else
21506     pkg_failed=untried
21507 fi
21508 if test -n "$GNOMEBLUETOOTH_LIBS"; then
21509     pkg_cv_GNOMEBLUETOOTH_LIBS="$GNOMEBLUETOOTH_LIBS"
21510  elif test -n "$PKG_CONFIG"; then
21511     if test -n "$PKG_CONFIG" && \
21512     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-bluetooth-1.0 >= 2.27.6\""; } >&5
21513   ($PKG_CONFIG --exists --print-errors "gnome-bluetooth-1.0 >= 2.27.6") 2>&5
21514   ac_status=$?
21515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21516   test $ac_status = 0; }; then
21517   pkg_cv_GNOMEBLUETOOTH_LIBS=`$PKG_CONFIG --libs "gnome-bluetooth-1.0 >= 2.27.6" 2>/dev/null`
21518                       test "x$?" != "x0" && pkg_failed=yes
21519 else
21520   pkg_failed=yes
21521 fi
21522  else
21523     pkg_failed=untried
21524 fi
21525
21526
21527
21528 if test $pkg_failed = yes; then
21529         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21530 $as_echo "no" >&6; }
21531
21532 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21533         _pkg_short_errors_supported=yes
21534 else
21535         _pkg_short_errors_supported=no
21536 fi
21537         if test $_pkg_short_errors_supported = yes; then
21538                 GNOMEBLUETOOTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnome-bluetooth-1.0 >= 2.27.6" 2>&1`
21539         else
21540                 GNOMEBLUETOOTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnome-bluetooth-1.0 >= 2.27.6" 2>&1`
21541         fi
21542         # Put the nasty error message in config.log where it belongs
21543         echo "$GNOMEBLUETOOTH_PKG_ERRORS" >&5
21544
21545         have_gbt="no"
21546 elif test $pkg_failed = untried; then
21547         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21548 $as_echo "no" >&6; }
21549         have_gbt="no"
21550 else
21551         GNOMEBLUETOOTH_CFLAGS=$pkg_cv_GNOMEBLUETOOTH_CFLAGS
21552         GNOMEBLUETOOTH_LIBS=$pkg_cv_GNOMEBLUETOOTH_LIBS
21553         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21554 $as_echo "yes" >&6; }
21555         have_gbt="yes"
21556                    GNOMEBLUETOOTH_DIR=`$PKG_CONFIG --variable=libdir gnome-bluetooth-1.0 2>/dev/null`/gnome-bluetooth
21557 fi
21558
21559
21560
21561 # Check whether --enable-gnome-bluetooth-panel-plugin was given.
21562 if test "${enable_gnome_bluetooth_panel_plugin+set}" = set; then :
21563   enableval=$enable_gnome_bluetooth_panel_plugin; enable_gnome_bluetooth_panel="$enableval"
21564 else
21565   enable_gnome_bluetooth_panel="no"
21566
21567 fi
21568
21569 if test "$enable_gnome_bluetooth_panel" = "yes"; then
21570    test "$have_gbt" = "yes" || as_fn_error $? "--enable-gnome-bluetooth-panel requires
21571            pkg-config information for gnome-bluetooth-1.0 >= 2.27.6 which was not found" "$LINENO" 5
21572 fi
21573  if test "$have_gbt" = "yes" && test "$enable_gnome_bluetooth_panel" = "yes"; then
21574   ENABLE_GNOME_BLUETOOTH_PANEL_TRUE=
21575   ENABLE_GNOME_BLUETOOTH_PANEL_FALSE='#'
21576 else
21577   ENABLE_GNOME_BLUETOOTH_PANEL_TRUE='#'
21578   ENABLE_GNOME_BLUETOOTH_PANEL_FALSE=
21579 fi
21580
21581
21582 # Check whether --enable-doc was given.
21583 if test "${enable_doc+set}" = set; then :
21584   enableval=$enable_doc; enable_doc="$enableval"
21585 else
21586   enable_doc="no"
21587 fi
21588
21589
21590  if test "$enable_doc" != "no"; then
21591   COND_DOC_TRUE=
21592   COND_DOC_FALSE='#'
21593 else
21594   COND_DOC_TRUE='#'
21595   COND_DOC_FALSE=
21596 fi
21597
21598
21599
21600
21601           BACKENDS=''
21602           BACKEND_DEFINES=''
21603           SYNCSOURCES=''
21604
21605 # vvvvvvvvvvvvvv src/backends/activesync/configure-sub.in vvvvvvvvvvvvvv
21606
21607
21608           # Check whether --enable-activesync was given.
21609 if test "${enable_activesync+set}" = set; then :
21610   enableval=$enable_activesync; enable_activesync="$enableval"
21611 else
21612   enable_activesync="no"
21613 fi
21614
21615           BACKENDS="$BACKENDS activesync"
21616           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_ACTIVESYNC"
21617           for source in activesync
21618           do
21619             SYNCSOURCES="$SYNCSOURCES src/backends/activesync/syncactivesync.la"
21620           done
21621
21622
21623
21624
21625 # Check whether --with-activesyncd-src was given.
21626 if test "${with_activesyncd_src+set}" = set; then :
21627   withval=$with_activesyncd_src; ACTIVESYNCDSRC="$withval"
21628              test "$ACTIVESYNCDSRC" != "yes" || as_fn_error $? "--with-synthesis-src requires a parameter (base directory, svn URL or git URL)" "$LINENO" 5
21629 else
21630   ACTIVESYNCDSRC=""
21631 fi
21632
21633
21634  if test "$enable_activesync" = "yes" && test "$ACTIVESYNCDSRC" != ""; then
21635   BUILD_ACTIVESYNCD_TRUE=
21636   BUILD_ACTIVESYNCD_FALSE='#'
21637 else
21638   BUILD_ACTIVESYNCD_TRUE='#'
21639   BUILD_ACTIVESYNCD_FALSE=
21640 fi
21641
21642
21643 if test "$enable_activesync" = "yes"; then
21644         if test "$ACTIVESYNCDSRC" != ""; then
21645                 # brute-force dependency on any file in the source repo
21646                 LIBEASCLIENT_LA_DEPENDENCIES=`find "$ACTIVESYNCDSRC"/* -type f -printf '%p ' `
21647
21648                 mkdir -p src/backends/activesync/activesyncd/build
21649                 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring activesyncd using the $ACTIVESYNCDSRC source code" >&5
21650 $as_echo "$as_me: configuring activesyncd using the $ACTIVESYNCDSRC source code" >&6;}
21651                 ( set -x; cd src/backends/activesync/activesyncd/build &&
21652                   $ACTIVESYNCDSRC/configure --disable-eplugin --disable-camel-backend --disable-qtconfig --prefix=`pwd`/../install) ||
21653                 as_fn_error $? "configuring activesyncd failed" "$LINENO" 5
21654
21655                 # hard-coded replacement for pkg-config: necessary because
21656                 # .pc file not installed yet
21657                 EASCLIENT_LIBS=src/backends/activesync/activesyncd/install/lib/libeasclient.la
21658                 EASCLIENT_DEPENDENCIES=src/backends/activesync/activesyncd/install/lib/libeasclient.la
21659                 EASCLIENT_CFLAGS=-Isrc/backends/activesync/activesyncd/install/include/eas-daemon/eas-client
21660
21661
21662
21663         else
21664
21665 pkg_failed=no
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EASCLIENT" >&5
21667 $as_echo_n "checking for EASCLIENT... " >&6; }
21668
21669 if test -n "$EASCLIENT_CFLAGS"; then
21670     pkg_cv_EASCLIENT_CFLAGS="$EASCLIENT_CFLAGS"
21671  elif test -n "$PKG_CONFIG"; then
21672     if test -n "$PKG_CONFIG" && \
21673     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeasclient\""; } >&5
21674   ($PKG_CONFIG --exists --print-errors "libeasclient") 2>&5
21675   ac_status=$?
21676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21677   test $ac_status = 0; }; then
21678   pkg_cv_EASCLIENT_CFLAGS=`$PKG_CONFIG --cflags "libeasclient" 2>/dev/null`
21679                       test "x$?" != "x0" && pkg_failed=yes
21680 else
21681   pkg_failed=yes
21682 fi
21683  else
21684     pkg_failed=untried
21685 fi
21686 if test -n "$EASCLIENT_LIBS"; then
21687     pkg_cv_EASCLIENT_LIBS="$EASCLIENT_LIBS"
21688  elif test -n "$PKG_CONFIG"; then
21689     if test -n "$PKG_CONFIG" && \
21690     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeasclient\""; } >&5
21691   ($PKG_CONFIG --exists --print-errors "libeasclient") 2>&5
21692   ac_status=$?
21693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21694   test $ac_status = 0; }; then
21695   pkg_cv_EASCLIENT_LIBS=`$PKG_CONFIG --libs "libeasclient" 2>/dev/null`
21696                       test "x$?" != "x0" && pkg_failed=yes
21697 else
21698   pkg_failed=yes
21699 fi
21700  else
21701     pkg_failed=untried
21702 fi
21703
21704
21705
21706 if test $pkg_failed = yes; then
21707         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21708 $as_echo "no" >&6; }
21709
21710 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21711         _pkg_short_errors_supported=yes
21712 else
21713         _pkg_short_errors_supported=no
21714 fi
21715         if test $_pkg_short_errors_supported = yes; then
21716                 EASCLIENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libeasclient" 2>&1`
21717         else
21718                 EASCLIENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libeasclient" 2>&1`
21719         fi
21720         # Put the nasty error message in config.log where it belongs
21721         echo "$EASCLIENT_PKG_ERRORS" >&5
21722
21723         as_fn_error $? "Package requirements (libeasclient) were not met:
21724
21725 $EASCLIENT_PKG_ERRORS
21726
21727 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21728 installed software in a non-standard prefix.
21729
21730 Alternatively, you may set the environment variables EASCLIENT_CFLAGS
21731 and EASCLIENT_LIBS to avoid the need to call pkg-config.
21732 See the pkg-config man page for more details." "$LINENO" 5
21733 elif test $pkg_failed = untried; then
21734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21735 $as_echo "no" >&6; }
21736         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21738 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21739 is in your PATH or set the PKG_CONFIG environment variable to the full
21740 path to pkg-config.
21741
21742 Alternatively, you may set the environment variables EASCLIENT_CFLAGS
21743 and EASCLIENT_LIBS to avoid the need to call pkg-config.
21744 See the pkg-config man page for more details.
21745
21746 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21747 See \`config.log' for more details" "$LINENO" 5; }
21748 else
21749         EASCLIENT_CFLAGS=$pkg_cv_EASCLIENT_CFLAGS
21750         EASCLIENT_LIBS=$pkg_cv_EASCLIENT_LIBS
21751         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21752 $as_echo "yes" >&6; }
21753
21754 fi
21755         fi
21756
21757 $as_echo "#define ENABLE_ACTIVESYNC 1" >>confdefs.h
21758
21759         need_ical="yes"
21760         need_glib="yes"
21761 fi
21762
21763 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EASCLIENT_CFLAGS"
21764 # ^^^^^^^^^^^^^^ src/backends/activesync/configure-sub.in ^^^^^^^^^^^^^^
21765
21766 # vvvvvvvvvvvvvv src/backends/addressbook/configure-sub.in vvvvvvvvvvvvvv
21767
21768 ADDRESSBOOK_CFLAGS=
21769
21770 ADDRESSBOOK_LIBS="-framework AddressBook -framework CoreFoundation"
21771
21772
21773 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $ADDRESSBOOK_CFLAGS"
21774
21775
21776           # Check whether --enable-addressbook was given.
21777 if test "${enable_addressbook+set}" = set; then :
21778   enableval=$enable_addressbook; enable_addressbook="$enableval"
21779 else
21780   enable_addressbook="no"
21781
21782 fi
21783
21784           BACKENDS="$BACKENDS addressbook"
21785           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_ADDRESSBOOK"
21786           for source in addressbook
21787           do
21788             SYNCSOURCES="$SYNCSOURCES src/backends/addressbook/syncaddressbook.la"
21789           done
21790
21791
21792
21793 if test "$enable_addressbook" = "yes"; then
21794
21795 $as_echo "#define ENABLE_ADDRESSBOOK 1" >>confdefs.h
21796
21797         DEVICE_TYPE=MacOS_X
21798         enable_any="yes"
21799 else
21800         ADDRESSBOOK_LIBS=
21801 fi
21802
21803 # ^^^^^^^^^^^^^^ src/backends/addressbook/configure-sub.in ^^^^^^^^^^^^^^
21804
21805 # vvvvvvvvvvvvvv src/backends/akonadi/configure-sub.in vvvvvvvvvvvvvv
21806
21807 for ac_prog in qmake qmake-qt4
21808 do
21809   # Extract the first word of "$ac_prog", so it can be a program name with args.
21810 set dummy $ac_prog; ac_word=$2
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21812 $as_echo_n "checking for $ac_word... " >&6; }
21813 if ${ac_cv_prog_QMAKE+:} false; then :
21814   $as_echo_n "(cached) " >&6
21815 else
21816   if test -n "$QMAKE"; then
21817   ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
21818 else
21819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21820 for as_dir in $PATH
21821 do
21822   IFS=$as_save_IFS
21823   test -z "$as_dir" && as_dir=.
21824     for ac_exec_ext in '' $ac_executable_extensions; do
21825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21826     ac_cv_prog_QMAKE="$ac_prog"
21827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21828     break 2
21829   fi
21830 done
21831   done
21832 IFS=$as_save_IFS
21833
21834 fi
21835 fi
21836 QMAKE=$ac_cv_prog_QMAKE
21837 if test -n "$QMAKE"; then
21838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
21839 $as_echo "$QMAKE" >&6; }
21840 else
21841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21842 $as_echo "no" >&6; }
21843 fi
21844
21845
21846   test -n "$QMAKE" && break
21847 done
21848
21849
21850 # Check for Akonadi. There is no .pc file for it,
21851 # so fall back to normal header file and library checking.
21852 # kdepimlibs5-dev >= 4.3 provides the necessary files.
21853 AKONADIFOUND=yes
21854 if ! test "$KDEPIM_CFLAGS"; then
21855    KDEPIM_CFLAGS="-I`kde4-config --path include` -I`kde4-config --path include`/KDE"
21856    if test "$QMAKE"; then
21857       KDEPIM_CFLAGS="$KDEPIM_CFLAGS -I`$QMAKE -query QT_INSTALL_HEADERS` -I`$QMAKE -query QT_INSTALL_HEADERS`/QtCore"
21858    fi
21859 fi
21860 if ! test "$KDEPIM_LIBS"; then
21861    KDEPIM_LIBS="-L`kde4-config --install lib` -lakonadi-kde `pkg-config --libs QtDBus` -lQtCore -lkdeui -lkdecore"
21862 fi
21863 ac_ext=cpp
21864 ac_cpp='$CXXCPP $CPPFLAGS'
21865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21868
21869 old_CPPFLAGS="$CPPFLAGS"
21870 CPPFLAGS="$CPPFLAGS $KDEPIM_CFLAGS"
21871 for ac_header in Akonadi/Collection
21872 do :
21873   ac_fn_cxx_check_header_mongrel "$LINENO" "Akonadi/Collection" "ac_cv_header_Akonadi_Collection" "$ac_includes_default"
21874 if test "x$ac_cv_header_Akonadi_Collection" = xyes; then :
21875   cat >>confdefs.h <<_ACEOF
21876 #define HAVE_AKONADI_COLLECTION 1
21877 _ACEOF
21878
21879 else
21880   AKONADIFOUND=no
21881 fi
21882
21883 done
21884
21885 CPPFLAGS="$old_CPPFLAGS"
21886 ac_ext=cpp
21887 ac_cpp='$CXXCPP $CPPFLAGS'
21888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21891
21892
21893 # In contrast to the Evolution backend, the Akonadi backend is
21894 # currently considered optional. "configure" will enable it only
21895 # if explicitly enabled (was turned on automatically previously,
21896 # for example on Ubuntu Hardy, and didn't compile).
21897
21898           # Check whether --enable-akonadi was given.
21899 if test "${enable_akonadi+set}" = set; then :
21900   enableval=$enable_akonadi; enable_akonadi="$enableval"
21901                        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
21902 else
21903   enable_akonadi=no
21904
21905 fi
21906
21907           BACKENDS="$BACKENDS akonadi"
21908           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_AKONADI"
21909           for source in akonadi
21910           do
21911             SYNCSOURCES="$SYNCSOURCES src/backends/akonadi/syncakonadi.la"
21912           done
21913
21914
21915
21916 if test "$enable_akonadi" = "yes"; then
21917         # conditional compilation in preprocessor
21918
21919 $as_echo "#define ENABLE_AKONADI 1" >>confdefs.h
21920
21921 else
21922         # avoid unneeded dependencies on Akonadi
21923         KDEPIM_CFLAGS=
21924         KDEPIM_LIBS=
21925 fi
21926
21927
21928
21929 # conditional compilation in make
21930  if test "$enable_akonadi" = "yes"; then
21931   ENABLE_AKONADI_TRUE=
21932   ENABLE_AKONADI_FALSE='#'
21933 else
21934   ENABLE_AKONADI_TRUE='#'
21935   ENABLE_AKONADI_FALSE=
21936 fi
21937
21938
21939 # let others include Akonadi backend's header file
21940 # (not strictly necessary, could be avoided by not
21941 # including Akonadi header files in public header file
21942 # of source)
21943 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $KDEPIM_CFLAGS"
21944 # ^^^^^^^^^^^^^^ src/backends/akonadi/configure-sub.in ^^^^^^^^^^^^^^
21945
21946 # vvvvvvvvvvvvvv src/backends/evolution/configure-sub.in vvvvvvvvvvvvvv
21947
21948 anymissing="
21949 Please install the development packages of Evolution and/or
21950 set the PKG_CONFIG_PATH variable so that it points towards
21951 the .pc files of libedataserver, libecal and libebook (the
21952 latter two are optional).
21953
21954 You can check that these packages are available by running
21955 pkg-config --list-all."
21956
21957 evomissing="No compatible evolution-data-server was found.
21958 $anymissing"
21959
21960
21961 pkg_failed=no
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EPACKAGE" >&5
21963 $as_echo_n "checking for EPACKAGE... " >&6; }
21964
21965 if test -n "$EPACKAGE_CFLAGS"; then
21966     pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
21967  elif test -n "$PKG_CONFIG"; then
21968     if test -n "$PKG_CONFIG" && \
21969     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedataserver-1.2\""; } >&5
21970   ($PKG_CONFIG --exists --print-errors "libedataserver-1.2") 2>&5
21971   ac_status=$?
21972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21973   test $ac_status = 0; }; then
21974   pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "libedataserver-1.2" 2>/dev/null`
21975                       test "x$?" != "x0" && pkg_failed=yes
21976 else
21977   pkg_failed=yes
21978 fi
21979  else
21980     pkg_failed=untried
21981 fi
21982 if test -n "$EPACKAGE_LIBS"; then
21983     pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
21984  elif test -n "$PKG_CONFIG"; then
21985     if test -n "$PKG_CONFIG" && \
21986     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedataserver-1.2\""; } >&5
21987   ($PKG_CONFIG --exists --print-errors "libedataserver-1.2") 2>&5
21988   ac_status=$?
21989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21990   test $ac_status = 0; }; then
21991   pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "libedataserver-1.2" 2>/dev/null`
21992                       test "x$?" != "x0" && pkg_failed=yes
21993 else
21994   pkg_failed=yes
21995 fi
21996  else
21997     pkg_failed=untried
21998 fi
21999
22000
22001
22002 if test $pkg_failed = yes; then
22003         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22004 $as_echo "no" >&6; }
22005
22006 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22007         _pkg_short_errors_supported=yes
22008 else
22009         _pkg_short_errors_supported=no
22010 fi
22011         if test $_pkg_short_errors_supported = yes; then
22012                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedataserver-1.2" 2>&1`
22013         else
22014                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedataserver-1.2" 2>&1`
22015         fi
22016         # Put the nasty error message in config.log where it belongs
22017         echo "$EPACKAGE_PKG_ERRORS" >&5
22018
22019         EDSFOUND=no
22020 elif test $pkg_failed = untried; then
22021         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22022 $as_echo "no" >&6; }
22023         EDSFOUND=no
22024 else
22025         EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
22026         EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
22027         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22028 $as_echo "yes" >&6; }
22029         EDSFOUND=yes
22030 fi
22031
22032 pkg_failed=no
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECAL" >&5
22034 $as_echo_n "checking for ECAL... " >&6; }
22035
22036 if test -n "$ECAL_CFLAGS"; then
22037     pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
22038  elif test -n "$PKG_CONFIG"; then
22039     if test -n "$PKG_CONFIG" && \
22040     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
22041   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
22042   ac_status=$?
22043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22044   test $ac_status = 0; }; then
22045   pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
22046                       test "x$?" != "x0" && pkg_failed=yes
22047 else
22048   pkg_failed=yes
22049 fi
22050  else
22051     pkg_failed=untried
22052 fi
22053 if test -n "$ECAL_LIBS"; then
22054     pkg_cv_ECAL_LIBS="$ECAL_LIBS"
22055  elif test -n "$PKG_CONFIG"; then
22056     if test -n "$PKG_CONFIG" && \
22057     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
22058   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
22059   ac_status=$?
22060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22061   test $ac_status = 0; }; then
22062   pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
22063                       test "x$?" != "x0" && pkg_failed=yes
22064 else
22065   pkg_failed=yes
22066 fi
22067  else
22068     pkg_failed=untried
22069 fi
22070
22071
22072
22073 if test $pkg_failed = yes; then
22074         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22075 $as_echo "no" >&6; }
22076
22077 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22078         _pkg_short_errors_supported=yes
22079 else
22080         _pkg_short_errors_supported=no
22081 fi
22082         if test $_pkg_short_errors_supported = yes; then
22083                 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libecal-1.2" 2>&1`
22084         else
22085                 ECAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libecal-1.2" 2>&1`
22086         fi
22087         # Put the nasty error message in config.log where it belongs
22088         echo "$ECAL_PKG_ERRORS" >&5
22089
22090         ECALFOUND=no
22091 elif test $pkg_failed = untried; then
22092         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22093 $as_echo "no" >&6; }
22094         ECALFOUND=no
22095 else
22096         ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
22097         ECAL_LIBS=$pkg_cv_ECAL_LIBS
22098         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22099 $as_echo "yes" >&6; }
22100         ECALFOUND=yes
22101 fi
22102
22103 pkg_failed=no
22104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBOOK" >&5
22105 $as_echo_n "checking for EBOOK... " >&6; }
22106
22107 if test -n "$EBOOK_CFLAGS"; then
22108     pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
22109  elif test -n "$PKG_CONFIG"; then
22110     if test -n "$PKG_CONFIG" && \
22111     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2\""; } >&5
22112   ($PKG_CONFIG --exists --print-errors "libebook-1.2") 2>&5
22113   ac_status=$?
22114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22115   test $ac_status = 0; }; then
22116   pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "libebook-1.2" 2>/dev/null`
22117                       test "x$?" != "x0" && pkg_failed=yes
22118 else
22119   pkg_failed=yes
22120 fi
22121  else
22122     pkg_failed=untried
22123 fi
22124 if test -n "$EBOOK_LIBS"; then
22125     pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
22126  elif test -n "$PKG_CONFIG"; then
22127     if test -n "$PKG_CONFIG" && \
22128     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2\""; } >&5
22129   ($PKG_CONFIG --exists --print-errors "libebook-1.2") 2>&5
22130   ac_status=$?
22131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22132   test $ac_status = 0; }; then
22133   pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "libebook-1.2" 2>/dev/null`
22134                       test "x$?" != "x0" && pkg_failed=yes
22135 else
22136   pkg_failed=yes
22137 fi
22138  else
22139     pkg_failed=untried
22140 fi
22141
22142
22143
22144 if test $pkg_failed = yes; then
22145         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22146 $as_echo "no" >&6; }
22147
22148 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22149         _pkg_short_errors_supported=yes
22150 else
22151         _pkg_short_errors_supported=no
22152 fi
22153         if test $_pkg_short_errors_supported = yes; then
22154                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libebook-1.2" 2>&1`
22155         else
22156                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libebook-1.2" 2>&1`
22157         fi
22158         # Put the nasty error message in config.log where it belongs
22159         echo "$EBOOK_PKG_ERRORS" >&5
22160
22161         EBOOKFOUND=no
22162 elif test $pkg_failed = untried; then
22163         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22164 $as_echo "no" >&6; }
22165         EBOOKFOUND=no
22166 else
22167         EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
22168         EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
22169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22170 $as_echo "yes" >&6; }
22171         EBOOKFOUND=yes
22172 fi
22173
22174
22175 pkg_failed=no
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBOOK_VERSION" >&5
22177 $as_echo_n "checking for EBOOK_VERSION... " >&6; }
22178
22179 if test -n "$EBOOK_VERSION_CFLAGS"; then
22180     pkg_cv_EBOOK_VERSION_CFLAGS="$EBOOK_VERSION_CFLAGS"
22181  elif test -n "$PKG_CONFIG"; then
22182     if test -n "$PKG_CONFIG" && \
22183     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2 >= 3.3\""; } >&5
22184   ($PKG_CONFIG --exists --print-errors "libebook-1.2 >= 3.3") 2>&5
22185   ac_status=$?
22186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22187   test $ac_status = 0; }; then
22188   pkg_cv_EBOOK_VERSION_CFLAGS=`$PKG_CONFIG --cflags "libebook-1.2 >= 3.3" 2>/dev/null`
22189                       test "x$?" != "x0" && pkg_failed=yes
22190 else
22191   pkg_failed=yes
22192 fi
22193  else
22194     pkg_failed=untried
22195 fi
22196 if test -n "$EBOOK_VERSION_LIBS"; then
22197     pkg_cv_EBOOK_VERSION_LIBS="$EBOOK_VERSION_LIBS"
22198  elif test -n "$PKG_CONFIG"; then
22199     if test -n "$PKG_CONFIG" && \
22200     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2 >= 3.3\""; } >&5
22201   ($PKG_CONFIG --exists --print-errors "libebook-1.2 >= 3.3") 2>&5
22202   ac_status=$?
22203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22204   test $ac_status = 0; }; then
22205   pkg_cv_EBOOK_VERSION_LIBS=`$PKG_CONFIG --libs "libebook-1.2 >= 3.3" 2>/dev/null`
22206                       test "x$?" != "x0" && pkg_failed=yes
22207 else
22208   pkg_failed=yes
22209 fi
22210  else
22211     pkg_failed=untried
22212 fi
22213
22214
22215
22216 if test $pkg_failed = yes; then
22217         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22218 $as_echo "no" >&6; }
22219
22220 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22221         _pkg_short_errors_supported=yes
22222 else
22223         _pkg_short_errors_supported=no
22224 fi
22225         if test $_pkg_short_errors_supported = yes; then
22226                 EBOOK_VERSION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libebook-1.2 >= 3.3" 2>&1`
22227         else
22228                 EBOOK_VERSION_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libebook-1.2 >= 3.3" 2>&1`
22229         fi
22230         # Put the nasty error message in config.log where it belongs
22231         echo "$EBOOK_VERSION_PKG_ERRORS" >&5
22232
22233         true
22234 elif test $pkg_failed = untried; then
22235         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22236 $as_echo "no" >&6; }
22237         true
22238 else
22239         EBOOK_VERSION_CFLAGS=$pkg_cv_EBOOK_VERSION_CFLAGS
22240         EBOOK_VERSION_LIBS=$pkg_cv_EBOOK_VERSION_LIBS
22241         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22242 $as_echo "yes" >&6; }
22243
22244 $as_echo "#define HAVE_E_CONTACT_INLINE_LOCAL_PHOTOS 1" >>confdefs.h
22245
22246 fi
22247
22248
22249           # Check whether --enable-ebook was given.
22250 if test "${enable_ebook+set}" = set; then :
22251   enableval=$enable_ebook; enable_ebook="$enableval"
22252 else
22253   test "$EBOOKFOUND" = "yes" && enable_ebook="yes" ||
22254                        as_fn_error $? "libebook not found. Use --disable-ebook to compile without or install the necessary development files." "$LINENO" 5
22255
22256 fi
22257
22258           BACKENDS="$BACKENDS ebook"
22259           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_EBOOK"
22260           for source in evolution
22261           do
22262             SYNCSOURCES="$SYNCSOURCES src/backends/evolution/syncebook.la"
22263           done
22264
22265
22266
22267           # Check whether --enable-ecal was given.
22268 if test "${enable_ecal+set}" = set; then :
22269   enableval=$enable_ecal; enable_ecal="$enableval"
22270 else
22271   test "$ECALFOUND" = "yes" && enable_ecal="yes" ||
22272                        as_fn_error $? "libecal not found. Use --disable-ecal to compile without or install the necessary development files." "$LINENO" 5
22273
22274 fi
22275
22276           BACKENDS="$BACKENDS ecal"
22277           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_ECAL"
22278           for source in evolution
22279           do
22280             SYNCSOURCES="$SYNCSOURCES src/backends/evolution/syncecal.la"
22281           done
22282
22283
22284
22285 enable_evo="no"
22286 if test "$enable_ebook" = "yes"; then
22287         test "x${EBOOKFOUND}" = "xyes" || as_fn_error $? "--enable-ebook requires pkg-config information for libebook, which was not found" "$LINENO" 5
22288
22289 $as_echo "#define ENABLE_EBOOK 1" >>confdefs.h
22290
22291         enable_evo="yes"
22292 else
22293         EBOOK_CFLAGS=
22294         EBOOK_LIBS=
22295 fi
22296
22297  if test "$enable_ecal" = "yes"; then
22298   ENABLE_ECAL_TRUE=
22299   ENABLE_ECAL_FALSE='#'
22300 else
22301   ENABLE_ECAL_TRUE='#'
22302   ENABLE_ECAL_FALSE=
22303 fi
22304
22305 if test "$enable_ecal" = "yes"; then
22306         need_ical="yes"
22307         test "x${ECALFOUND}" = "xyes" || as_fn_error $? "--enable-ecal requires pkg-config information for libecal, which was not found\"" "$LINENO" 5
22308
22309 $as_echo "#define ENABLE_ECAL 1" >>confdefs.h
22310
22311         enable_evo="yes"
22312 else
22313         ECAL_CFLAGS=
22314         ECAL_LIBS=
22315 fi
22316
22317 if test "$enable_evo" = "yes"; then
22318         need_glib="yes"
22319         if test "$EDSFOUND" = "yes"; then
22320
22321 $as_echo "#define HAVE_EDS 1" >>confdefs.h
22322
22323         else
22324                 as_fn_error $? "$evomissing" "$LINENO" 5
22325         fi
22326         # Only the EClient code supports the API in EDS 3.5.x.
22327
22328 pkg_failed=no
22329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EDS_VERSION" >&5
22330 $as_echo_n "checking for EDS_VERSION... " >&6; }
22331
22332 if test -n "$EDS_VERSION_CFLAGS"; then
22333     pkg_cv_EDS_VERSION_CFLAGS="$EDS_VERSION_CFLAGS"
22334  elif test -n "$PKG_CONFIG"; then
22335     if test -n "$PKG_CONFIG" && \
22336     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedataserver-1.2 >= 3.5\""; } >&5
22337   ($PKG_CONFIG --exists --print-errors "libedataserver-1.2 >= 3.5") 2>&5
22338   ac_status=$?
22339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22340   test $ac_status = 0; }; then
22341   pkg_cv_EDS_VERSION_CFLAGS=`$PKG_CONFIG --cflags "libedataserver-1.2 >= 3.5" 2>/dev/null`
22342                       test "x$?" != "x0" && pkg_failed=yes
22343 else
22344   pkg_failed=yes
22345 fi
22346  else
22347     pkg_failed=untried
22348 fi
22349 if test -n "$EDS_VERSION_LIBS"; then
22350     pkg_cv_EDS_VERSION_LIBS="$EDS_VERSION_LIBS"
22351  elif test -n "$PKG_CONFIG"; then
22352     if test -n "$PKG_CONFIG" && \
22353     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedataserver-1.2 >= 3.5\""; } >&5
22354   ($PKG_CONFIG --exists --print-errors "libedataserver-1.2 >= 3.5") 2>&5
22355   ac_status=$?
22356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22357   test $ac_status = 0; }; then
22358   pkg_cv_EDS_VERSION_LIBS=`$PKG_CONFIG --libs "libedataserver-1.2 >= 3.5" 2>/dev/null`
22359                       test "x$?" != "x0" && pkg_failed=yes
22360 else
22361   pkg_failed=yes
22362 fi
22363  else
22364     pkg_failed=untried
22365 fi
22366
22367
22368
22369 if test $pkg_failed = yes; then
22370         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22371 $as_echo "no" >&6; }
22372
22373 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22374         _pkg_short_errors_supported=yes
22375 else
22376         _pkg_short_errors_supported=no
22377 fi
22378         if test $_pkg_short_errors_supported = yes; then
22379                 EDS_VERSION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedataserver-1.2 >= 3.5" 2>&1`
22380         else
22381                 EDS_VERSION_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedataserver-1.2 >= 3.5" 2>&1`
22382         fi
22383         # Put the nasty error message in config.log where it belongs
22384         echo "$EDS_VERSION_PKG_ERRORS" >&5
22385
22386         CFLAGS_old="$CFLAGS"
22387         CFLAGS="$CFLAGS $EPACKAGE_CFLAGS"
22388         for ac_header in libedataserver/eds-version.h
22389 do :
22390   ac_fn_cxx_check_header_mongrel "$LINENO" "libedataserver/eds-version.h" "ac_cv_header_libedataserver_eds_version_h" "$ac_includes_default"
22391 if test "x$ac_cv_header_libedataserver_eds_version_h" = xyes; then :
22392   cat >>confdefs.h <<_ACEOF
22393 #define HAVE_LIBEDATASERVER_EDS_VERSION_H 1
22394 _ACEOF
22395
22396 fi
22397
22398 done
22399
22400         CFLAGS="$CFLAGS_old"
22401 elif test $pkg_failed = untried; then
22402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22403 $as_echo "no" >&6; }
22404         CFLAGS_old="$CFLAGS"
22405         CFLAGS="$CFLAGS $EPACKAGE_CFLAGS"
22406         for ac_header in libedataserver/eds-version.h
22407 do :
22408   ac_fn_cxx_check_header_mongrel "$LINENO" "libedataserver/eds-version.h" "ac_cv_header_libedataserver_eds_version_h" "$ac_includes_default"
22409 if test "x$ac_cv_header_libedataserver_eds_version_h" = xyes; then :
22410   cat >>confdefs.h <<_ACEOF
22411 #define HAVE_LIBEDATASERVER_EDS_VERSION_H 1
22412 _ACEOF
22413
22414 fi
22415
22416 done
22417
22418         CFLAGS="$CFLAGS_old"
22419 else
22420         EDS_VERSION_CFLAGS=$pkg_cv_EDS_VERSION_CFLAGS
22421         EDS_VERSION_LIBS=$pkg_cv_EDS_VERSION_LIBS
22422         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22423 $as_echo "yes" >&6; }
22424
22425 $as_echo "#define USE_EDS_CLIENT 1" >>confdefs.h
22426
22427                            # Was used for a while (ESourceBackendSummarySetup), but not anymore.
22428                            # Don't depend on it, it wasn't in 3.6 yet.
22429                            # PKG_CHECK_MODULES(EBOOKCONTACTS, libebook-contacts-1.2)
22430                            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for e_book_client_new_direct in -lebook-1.2" >&5
22431 $as_echo_n "checking for e_book_client_new_direct in -lebook-1.2... " >&6; }
22432 if ${ac_cv_lib_ebook_1_2_e_book_client_new_direct+:} false; then :
22433   $as_echo_n "(cached) " >&6
22434 else
22435   ac_check_lib_save_LIBS=$LIBS
22436 LIBS="-lebook-1.2 $EDS_VERSION_LIBS $LIBS"
22437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22438 /* end confdefs.h.  */
22439
22440 /* Override any GCC internal prototype to avoid an error.
22441    Use char because int might match the return type of a GCC
22442    builtin and then its argument prototype would still apply.  */
22443 #ifdef __cplusplus
22444 extern "C"
22445 #endif
22446 char e_book_client_new_direct ();
22447 int
22448 main ()
22449 {
22450 return e_book_client_new_direct ();
22451   ;
22452   return 0;
22453 }
22454 _ACEOF
22455 if ac_fn_cxx_try_link "$LINENO"; then :
22456   ac_cv_lib_ebook_1_2_e_book_client_new_direct=yes
22457 else
22458   ac_cv_lib_ebook_1_2_e_book_client_new_direct=no
22459 fi
22460 rm -f core conftest.err conftest.$ac_objext \
22461     conftest$ac_exeext conftest.$ac_ext
22462 LIBS=$ac_check_lib_save_LIBS
22463 fi
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebook_1_2_e_book_client_new_direct" >&5
22465 $as_echo "$ac_cv_lib_ebook_1_2_e_book_client_new_direct" >&6; }
22466 if test "x$ac_cv_lib_ebook_1_2_e_book_client_new_direct" = xyes; then :
22467
22468 $as_echo "#define HAVE_E_BOOK_CLIENT_NEW_DIRECT 1" >>confdefs.h
22469
22470 else
22471   true
22472 fi
22473
22474                            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for e_book_client_connect_direct_sync in -lebook-1.2" >&5
22475 $as_echo_n "checking for e_book_client_connect_direct_sync in -lebook-1.2... " >&6; }
22476 if ${ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync+:} false; then :
22477   $as_echo_n "(cached) " >&6
22478 else
22479   ac_check_lib_save_LIBS=$LIBS
22480 LIBS="-lebook-1.2 $EDS_VERSION_LIBS $LIBS"
22481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22482 /* end confdefs.h.  */
22483
22484 /* Override any GCC internal prototype to avoid an error.
22485    Use char because int might match the return type of a GCC
22486    builtin and then its argument prototype would still apply.  */
22487 #ifdef __cplusplus
22488 extern "C"
22489 #endif
22490 char e_book_client_connect_direct_sync ();
22491 int
22492 main ()
22493 {
22494 return e_book_client_connect_direct_sync ();
22495   ;
22496   return 0;
22497 }
22498 _ACEOF
22499 if ac_fn_cxx_try_link "$LINENO"; then :
22500   ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync=yes
22501 else
22502   ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync=no
22503 fi
22504 rm -f core conftest.err conftest.$ac_objext \
22505     conftest$ac_exeext conftest.$ac_ext
22506 LIBS=$ac_check_lib_save_LIBS
22507 fi
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync" >&5
22509 $as_echo "$ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync" >&6; }
22510 if test "x$ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync" = xyes; then :
22511
22512 $as_echo "#define HAVE_E_BOOK_CLIENT_CONNECT_DIRECT_SYNC 1" >>confdefs.h
22513
22514 else
22515   true
22516 fi
22517
22518
22519 fi
22520 else
22521         EPACKAGE_CFLAGS=
22522         EPACKAGE_LIBS=
22523 fi
22524
22525 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EPACKAGE_CFLAGS $ECAL_CFLAGS $EBOOK_CFLAGS $EBOOKCONTACTS_CFLAGS"
22526 # ^^^^^^^^^^^^^^ src/backends/evolution/configure-sub.in ^^^^^^^^^^^^^^
22527
22528 # vvvvvvvvvvvvvv src/backends/file/configure-sub.in vvvvvvvvvvvvvv
22529
22530
22531 FILE_CFLAGS=
22532 FILE_LIBS=
22533
22534
22535
22536 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $FILE_CFLAGS"
22537
22538
22539           # Check whether --enable-file was given.
22540 if test "${enable_file+set}" = set; then :
22541   enableval=$enable_file; enable_file="$enableval"
22542 else
22543   enable_file="yes"
22544
22545 fi
22546
22547           BACKENDS="$BACKENDS file"
22548           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_FILE"
22549           for source in file
22550           do
22551             SYNCSOURCES="$SYNCSOURCES src/backends/file/syncfile.la"
22552           done
22553
22554
22555
22556 if test "$enable_file" = "yes"; then
22557
22558 $as_echo "#define ENABLE_FILE 1" >>confdefs.h
22559
22560 fi
22561 # ^^^^^^^^^^^^^^ src/backends/file/configure-sub.in ^^^^^^^^^^^^^^
22562
22563 # vvvvvvvvvvvvvv src/backends/gnome/configure-sub.in vvvvvvvvvvvvvv
22564
22565 pkg_failed=no
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KEYRING" >&5
22567 $as_echo_n "checking for KEYRING... " >&6; }
22568
22569 if test -n "$KEYRING_CFLAGS"; then
22570     pkg_cv_KEYRING_CFLAGS="$KEYRING_CFLAGS"
22571  elif test -n "$PKG_CONFIG"; then
22572     if test -n "$PKG_CONFIG" && \
22573     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1 >= 2.20\""; } >&5
22574   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1 >= 2.20") 2>&5
22575   ac_status=$?
22576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22577   test $ac_status = 0; }; then
22578   pkg_cv_KEYRING_CFLAGS=`$PKG_CONFIG --cflags "gnome-keyring-1 >= 2.20" 2>/dev/null`
22579                       test "x$?" != "x0" && pkg_failed=yes
22580 else
22581   pkg_failed=yes
22582 fi
22583  else
22584     pkg_failed=untried
22585 fi
22586 if test -n "$KEYRING_LIBS"; then
22587     pkg_cv_KEYRING_LIBS="$KEYRING_LIBS"
22588  elif test -n "$PKG_CONFIG"; then
22589     if test -n "$PKG_CONFIG" && \
22590     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1 >= 2.20\""; } >&5
22591   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1 >= 2.20") 2>&5
22592   ac_status=$?
22593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22594   test $ac_status = 0; }; then
22595   pkg_cv_KEYRING_LIBS=`$PKG_CONFIG --libs "gnome-keyring-1 >= 2.20" 2>/dev/null`
22596                       test "x$?" != "x0" && pkg_failed=yes
22597 else
22598   pkg_failed=yes
22599 fi
22600  else
22601     pkg_failed=untried
22602 fi
22603
22604
22605
22606 if test $pkg_failed = yes; then
22607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22608 $as_echo "no" >&6; }
22609
22610 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22611         _pkg_short_errors_supported=yes
22612 else
22613         _pkg_short_errors_supported=no
22614 fi
22615         if test $_pkg_short_errors_supported = yes; then
22616                 KEYRING_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnome-keyring-1 >= 2.20" 2>&1`
22617         else
22618                 KEYRING_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnome-keyring-1 >= 2.20" 2>&1`
22619         fi
22620         # Put the nasty error message in config.log where it belongs
22621         echo "$KEYRING_PKG_ERRORS" >&5
22622
22623         HAVE_KEYRING=no
22624 elif test $pkg_failed = untried; then
22625         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22626 $as_echo "no" >&6; }
22627         HAVE_KEYRING=no
22628 else
22629         KEYRING_CFLAGS=$pkg_cv_KEYRING_CFLAGS
22630         KEYRING_LIBS=$pkg_cv_KEYRING_LIBS
22631         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22632 $as_echo "yes" >&6; }
22633         HAVE_KEYRING=yes
22634 fi
22635 # Check whether --enable-gnome-keyring was given.
22636 if test "${enable_gnome_keyring+set}" = set; then :
22637   enableval=$enable_gnome_keyring; enable_gnome_keyring="$enableval"
22638                test "$enable_gnome_keyring" = "yes" || test "$enable_gnome_keyring" = "no" || as_fn_error $? "invalid value for --enable-gnome-keyring: $enable_gnome_keyring" "$LINENO" 5
22639                test "$enable_gnome_keyring" = "no" || test "$HAVE_KEYRING" = "yes" || as_fn_error $? "gnome-keyring-1 pkg >= 2.20 not found, needed for --enable-gnome-keyring" "$LINENO" 5
22640 else
22641   enable_gnome_keyring="$HAVE_KEYRING"
22642 fi
22643
22644 if test $enable_gnome_keyring = "yes"; then
22645     have_keyring=yes
22646
22647 $as_echo "#define USE_GNOME_KEYRING 1" >>confdefs.h
22648
22649     # link into static executables, similar to a SyncSource
22650     SYNCSOURCES="$SYNCSOURCES src/backends/gnome/platformgnome.la"
22651 fi
22652 # ^^^^^^^^^^^^^^ src/backends/gnome/configure-sub.in ^^^^^^^^^^^^^^
22653
22654 # vvvvvvvvvvvvvv src/backends/goa/configure-sub.in vvvvvvvvvvvvvv
22655 # Check whether --enable-goa was given.
22656 if test "${enable_goa+set}" = set; then :
22657   enableval=$enable_goa; enable_goa="$enableval"
22658                test "$enable_goa" = "yes" || test "$enable_goa" = "no" || as_fn_error $? "invalid value for --enable-goa: $enable_goa" "$LINENO" 5
22659
22660 else
22661   enable_goa="yes"
22662 fi
22663
22664 if test $enable_goa = "yes"; then
22665
22666 $as_echo "#define USE_GOA 1" >>confdefs.h
22667
22668     # link into static executables, similar to a SyncSource
22669     SYNCSOURCES="$SYNCSOURCES src/backends/goa/providergoa.la"
22670 fi
22671
22672 # conditional compilation in make
22673  if test "$use_goa" = "yes"; then
22674   USE_GOA_TRUE=
22675   USE_GOA_FALSE='#'
22676 else
22677   USE_GOA_TRUE='#'
22678   USE_GOA_FALSE=
22679 fi
22680
22681 # ^^^^^^^^^^^^^^ src/backends/goa/configure-sub.in ^^^^^^^^^^^^^^
22682
22683 # vvvvvvvvvvvvvv src/backends/kcalextended/configure-sub.in vvvvvvvvvvvvvv
22684
22685 # BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS ..."
22686
22687
22688           # Check whether --enable-kcalextended was given.
22689 if test "${enable_kcalextended+set}" = set; then :
22690   enableval=$enable_kcalextended; enable_kcalextended="$enableval"
22691 else
22692   enable_kcalextended="no"
22693
22694 fi
22695
22696           BACKENDS="$BACKENDS kcalextended"
22697           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_KCALEXTENDED"
22698           for source in kcalextended
22699           do
22700             SYNCSOURCES="$SYNCSOURCES src/backends/kcalextended/synckcalextended.la"
22701           done
22702
22703
22704
22705 if test "$enable_kcalextended" = "yes"; then
22706
22707 $as_echo "#define ENABLE_KCALEXTENDED 1" >>confdefs.h
22708
22709
22710 pkg_failed=no
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KCALEXTENDED" >&5
22712 $as_echo_n "checking for KCALEXTENDED... " >&6; }
22713
22714 if test -n "$KCALEXTENDED_CFLAGS"; then
22715     pkg_cv_KCALEXTENDED_CFLAGS="$KCALEXTENDED_CFLAGS"
22716  elif test -n "$PKG_CONFIG"; then
22717     if test -n "$PKG_CONFIG" && \
22718     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmkcal libkcalcoren\""; } >&5
22719   ($PKG_CONFIG --exists --print-errors "libmkcal libkcalcoren") 2>&5
22720   ac_status=$?
22721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22722   test $ac_status = 0; }; then
22723   pkg_cv_KCALEXTENDED_CFLAGS=`$PKG_CONFIG --cflags "libmkcal libkcalcoren" 2>/dev/null`
22724                       test "x$?" != "x0" && pkg_failed=yes
22725 else
22726   pkg_failed=yes
22727 fi
22728  else
22729     pkg_failed=untried
22730 fi
22731 if test -n "$KCALEXTENDED_LIBS"; then
22732     pkg_cv_KCALEXTENDED_LIBS="$KCALEXTENDED_LIBS"
22733  elif test -n "$PKG_CONFIG"; then
22734     if test -n "$PKG_CONFIG" && \
22735     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmkcal libkcalcoren\""; } >&5
22736   ($PKG_CONFIG --exists --print-errors "libmkcal libkcalcoren") 2>&5
22737   ac_status=$?
22738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22739   test $ac_status = 0; }; then
22740   pkg_cv_KCALEXTENDED_LIBS=`$PKG_CONFIG --libs "libmkcal libkcalcoren" 2>/dev/null`
22741                       test "x$?" != "x0" && pkg_failed=yes
22742 else
22743   pkg_failed=yes
22744 fi
22745  else
22746     pkg_failed=untried
22747 fi
22748
22749
22750
22751 if test $pkg_failed = yes; then
22752         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22753 $as_echo "no" >&6; }
22754
22755 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22756         _pkg_short_errors_supported=yes
22757 else
22758         _pkg_short_errors_supported=no
22759 fi
22760         if test $_pkg_short_errors_supported = yes; then
22761                 KCALEXTENDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmkcal libkcalcoren" 2>&1`
22762         else
22763                 KCALEXTENDED_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmkcal libkcalcoren" 2>&1`
22764         fi
22765         # Put the nasty error message in config.log where it belongs
22766         echo "$KCALEXTENDED_PKG_ERRORS" >&5
22767
22768         as_fn_error $? "Package requirements (libmkcal libkcalcoren) were not met:
22769
22770 $KCALEXTENDED_PKG_ERRORS
22771
22772 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22773 installed software in a non-standard prefix.
22774
22775 Alternatively, you may set the environment variables KCALEXTENDED_CFLAGS
22776 and KCALEXTENDED_LIBS to avoid the need to call pkg-config.
22777 See the pkg-config man page for more details." "$LINENO" 5
22778 elif test $pkg_failed = untried; then
22779         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22780 $as_echo "no" >&6; }
22781         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22783 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22784 is in your PATH or set the PKG_CONFIG environment variable to the full
22785 path to pkg-config.
22786
22787 Alternatively, you may set the environment variables KCALEXTENDED_CFLAGS
22788 and KCALEXTENDED_LIBS to avoid the need to call pkg-config.
22789 See the pkg-config man page for more details.
22790
22791 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22792 See \`config.log' for more details" "$LINENO" 5; }
22793 else
22794         KCALEXTENDED_CFLAGS=$pkg_cv_KCALEXTENDED_CFLAGS
22795         KCALEXTENDED_LIBS=$pkg_cv_KCALEXTENDED_LIBS
22796         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22797 $as_echo "yes" >&6; }
22798
22799 fi
22800 fi
22801 # ^^^^^^^^^^^^^^ src/backends/kcalextended/configure-sub.in ^^^^^^^^^^^^^^
22802
22803 # vvvvvvvvvvvvvv src/backends/kde/configure-sub.in vvvvvvvvvvvvvv
22804 # first check for qmake-qt4, because qmake may point to qmake-qt3.
22805 for ac_prog in qmake-qt4 qmake
22806 do
22807   # Extract the first word of "$ac_prog", so it can be a program name with args.
22808 set dummy $ac_prog; ac_word=$2
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22810 $as_echo_n "checking for $ac_word... " >&6; }
22811 if ${ac_cv_prog_QMAKE+:} false; then :
22812   $as_echo_n "(cached) " >&6
22813 else
22814   if test -n "$QMAKE"; then
22815   ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
22816 else
22817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22818 for as_dir in $PATH
22819 do
22820   IFS=$as_save_IFS
22821   test -z "$as_dir" && as_dir=.
22822     for ac_exec_ext in '' $ac_executable_extensions; do
22823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22824     ac_cv_prog_QMAKE="$ac_prog"
22825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22826     break 2
22827   fi
22828 done
22829   done
22830 IFS=$as_save_IFS
22831
22832 fi
22833 fi
22834 QMAKE=$ac_cv_prog_QMAKE
22835 if test -n "$QMAKE"; then
22836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
22837 $as_echo "$QMAKE" >&6; }
22838 else
22839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22840 $as_echo "no" >&6; }
22841 fi
22842
22843
22844   test -n "$QMAKE" && break
22845 done
22846
22847
22848 if test "x$QMAKE" != 'x'
22849 then
22850   # Extract the first word of "kde4-config", so it can be a program name with args.
22851 set dummy kde4-config; ac_word=$2
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22853 $as_echo_n "checking for $ac_word... " >&6; }
22854 if ${ac_cv_path_KDE4_CONFIG+:} false; then :
22855   $as_echo_n "(cached) " >&6
22856 else
22857   case $KDE4_CONFIG in
22858   [\\/]* | ?:[\\/]*)
22859   ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
22860   ;;
22861   *)
22862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22863 for as_dir in $PATH
22864 do
22865   IFS=$as_save_IFS
22866   test -z "$as_dir" && as_dir=.
22867     for ac_exec_ext in '' $ac_executable_extensions; do
22868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22869     ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22871     break 2
22872   fi
22873 done
22874   done
22875 IFS=$as_save_IFS
22876
22877   test -z "$ac_cv_path_KDE4_CONFIG" && ac_cv_path_KDE4_CONFIG="no"
22878   ;;
22879 esac
22880 fi
22881 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
22882 if test -n "$KDE4_CONFIG"; then
22883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
22884 $as_echo "$KDE4_CONFIG" >&6; }
22885 else
22886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22887 $as_echo "no" >&6; }
22888 fi
22889
22890
22891
22892   if test "x$KDE4_CONFIG" != 'xno'
22893   then
22894     KDEKWALLETFOUND=yes
22895     if ! test "$KDE_KWALLET_CFLAGS"; then
22896       KDE_KWALLET_CFLAGS="-I`$KDE4_CONFIG --path include` -I`$KDE4_CONFIG --path include`/KDE `pkg-config --cflags QtDBus QtCore`"
22897     fi
22898     if ! test "$KDE_KWALLET_LIBS"; then
22899       KDE_KWALLET_LIBS="-lkdeui -lkdecore -L`kde4-config --install lib` `pkg-config --libs QtDBus QtCore`"
22900     fi
22901     ac_ext=cpp
22902 ac_cpp='$CXXCPP $CPPFLAGS'
22903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22906
22907     old_CPPFLAGS="$CPPFLAGS"
22908     CPPFLAGS="$CPPFLAGS $KDE_KWALLET_CFLAGS"
22909     for ac_header in kwallet.h
22910 do :
22911   ac_fn_cxx_check_header_mongrel "$LINENO" "kwallet.h" "ac_cv_header_kwallet_h" "$ac_includes_default"
22912 if test "x$ac_cv_header_kwallet_h" = xyes; then :
22913   cat >>confdefs.h <<_ACEOF
22914 #define HAVE_KWALLET_H 1
22915 _ACEOF
22916
22917 else
22918   KDEKWALLETFOUND=no
22919 fi
22920
22921 done
22922
22923     CPPFLAGS="$old_CPPFLAGS"
22924     ac_ext=cpp
22925 ac_cpp='$CXXCPP $CPPFLAGS'
22926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22929
22930   else
22931     KDEKWALLETFOUND=no
22932   fi
22933 else
22934   KDEKWALLETFOUND=no
22935 fi
22936
22937 # In contrast to the GNOME KEYRING, the KWallet is
22938 # currently considered optional. "configure" will never enable
22939 # by default, because that is a change that might not be
22940 # expected by traditional users.
22941 # Check whether --enable-kwallet was given.
22942 if test "${enable_kwallet+set}" = set; then :
22943   enableval=$enable_kwallet; use_kde_kwallet="$enableval"
22944               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
22945 else
22946   use_kde_kwallet="no"
22947 fi
22948
22949
22950 if test "$use_kde_kwallet" = "yes"; then
22951     have_keyring=yes
22952     # conditional compilation in preprocessor
22953
22954 $as_echo "#define USE_KDE_KWALLET 1" >>confdefs.h
22955
22956     # link into static executables, similar to a SyncSource
22957     SYNCSOURCES="$SYNCSOURCES src/backends/kde/platformkde.la"
22958     # TODO: KWallet needs Qt. Enable the Qt check in
22959     # configure-post.in, otherwise it fails to compiler
22960     # when none of the backends ask for Qt.
22961 else
22962     # avoid unneeded dependencies on KWallet
22963     KDE_KWALLET_CFLAGS=
22964     KDE_KWALLET_LIBS=
22965 fi
22966
22967
22968
22969 # conditional compilation in make
22970  if test "$use_kde_kwallet" = "yes"; then
22971   USE_KDE_KWALLET_TRUE=
22972   USE_KDE_KWALLET_FALSE='#'
22973 else
22974   USE_KDE_KWALLET_TRUE='#'
22975   USE_KDE_KWALLET_FALSE=
22976 fi
22977
22978 # ^^^^^^^^^^^^^^ src/backends/kde/configure-sub.in ^^^^^^^^^^^^^^
22979
22980 # vvvvvvvvvvvvvv src/backends/maemo/configure-sub.in vvvvvvvvvvvvvv
22981
22982
22983 pkg_failed=no
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCALB" >&5
22985 $as_echo_n "checking for MCALB... " >&6; }
22986
22987 if test -n "$MCALB_CFLAGS"; then
22988     pkg_cv_MCALB_CFLAGS="$MCALB_CFLAGS"
22989  elif test -n "$PKG_CONFIG"; then
22990     if test -n "$PKG_CONFIG" && \
22991     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"calendar-backend\""; } >&5
22992   ($PKG_CONFIG --exists --print-errors "calendar-backend") 2>&5
22993   ac_status=$?
22994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22995   test $ac_status = 0; }; then
22996   pkg_cv_MCALB_CFLAGS=`$PKG_CONFIG --cflags "calendar-backend" 2>/dev/null`
22997                       test "x$?" != "x0" && pkg_failed=yes
22998 else
22999   pkg_failed=yes
23000 fi
23001  else
23002     pkg_failed=untried
23003 fi
23004 if test -n "$MCALB_LIBS"; then
23005     pkg_cv_MCALB_LIBS="$MCALB_LIBS"
23006  elif test -n "$PKG_CONFIG"; then
23007     if test -n "$PKG_CONFIG" && \
23008     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"calendar-backend\""; } >&5
23009   ($PKG_CONFIG --exists --print-errors "calendar-backend") 2>&5
23010   ac_status=$?
23011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23012   test $ac_status = 0; }; then
23013   pkg_cv_MCALB_LIBS=`$PKG_CONFIG --libs "calendar-backend" 2>/dev/null`
23014                       test "x$?" != "x0" && pkg_failed=yes
23015 else
23016   pkg_failed=yes
23017 fi
23018  else
23019     pkg_failed=untried
23020 fi
23021
23022
23023
23024 if test $pkg_failed = yes; then
23025         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23026 $as_echo "no" >&6; }
23027
23028 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23029         _pkg_short_errors_supported=yes
23030 else
23031         _pkg_short_errors_supported=no
23032 fi
23033         if test $_pkg_short_errors_supported = yes; then
23034                 MCALB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "calendar-backend" 2>&1`
23035         else
23036                 MCALB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "calendar-backend" 2>&1`
23037         fi
23038         # Put the nasty error message in config.log where it belongs
23039         echo "$MCALB_PKG_ERRORS" >&5
23040
23041         MCALBFOUND=no
23042 elif test $pkg_failed = untried; then
23043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23044 $as_echo "no" >&6; }
23045         MCALBFOUND=no
23046 else
23047         MCALB_CFLAGS=$pkg_cv_MCALB_CFLAGS
23048         MCALB_LIBS=$pkg_cv_MCALB_LIBS
23049         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23050 $as_echo "yes" >&6; }
23051         MCALBFOUND=yes
23052 fi
23053
23054
23055 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $MCALB_CFLAGS"
23056
23057
23058           # Check whether --enable-maemocal was given.
23059 if test "${enable_maemocal+set}" = set; then :
23060   enableval=$enable_maemocal; enable_maemocal="$enableval"
23061 else
23062   enable_maemocal="no"
23063
23064 fi
23065
23066           BACKENDS="$BACKENDS maemocal"
23067           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_MAEMOCAL"
23068           for source in maemo
23069           do
23070             SYNCSOURCES="$SYNCSOURCES src/backends/maemo/syncmaemocal.la"
23071           done
23072
23073
23074
23075 if test "$enable_maemocal" = "yes"; then
23076         test "x${MCALBFOUND}" = "xyes" || as_fn_error $? "--enable-maemocal requires pkg-config information for calendar-backend, which was not found" "$LINENO" 5
23077
23078 $as_echo "#define ENABLE_MAEMO_CALENDAR 1" >>confdefs.h
23079
23080 fi
23081 # ^^^^^^^^^^^^^^ src/backends/maemo/configure-sub.in ^^^^^^^^^^^^^^
23082
23083 # vvvvvvvvvvvvvv src/backends/pbap/configure-sub.in vvvvvvvvvvvvvv
23084
23085
23086 PBAP_CFLAGS=
23087 PBAP_LIBS=
23088
23089
23090
23091 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $PBAP_CFLAGS"
23092
23093
23094           # Check whether --enable-pbap was given.
23095 if test "${enable_pbap+set}" = set; then :
23096   enableval=$enable_pbap; enable_pbap="$enableval"
23097 else
23098   enable_pbap="no"
23099
23100 fi
23101
23102           BACKENDS="$BACKENDS pbap"
23103           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_PBAP"
23104           for source in pbap
23105           do
23106             SYNCSOURCES="$SYNCSOURCES src/backends/pbap/syncpbap.la"
23107           done
23108
23109
23110
23111 if test "$enable_pbap" = "yes"; then
23112
23113 $as_echo "#define ENABLE_PBAP 1" >>confdefs.h
23114
23115                 need_glib="yes"
23116 fi
23117 # ^^^^^^^^^^^^^^ src/backends/pbap/configure-sub.in ^^^^^^^^^^^^^^
23118
23119 # vvvvvvvvvvvvvv src/backends/qtcontacts/configure-sub.in vvvvvvvvvvvvvv
23120
23121 # BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS ..."
23122
23123
23124           # Check whether --enable-qtcontacts was given.
23125 if test "${enable_qtcontacts+set}" = set; then :
23126   enableval=$enable_qtcontacts; enable_qtcontacts="$enableval"
23127 else
23128   enable_qtcontacts="no"
23129
23130 fi
23131
23132           BACKENDS="$BACKENDS qtcontacts"
23133           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_QTCONTACTS"
23134           for source in qtcontacts
23135           do
23136             SYNCSOURCES="$SYNCSOURCES src/backends/qtcontacts/syncqtcontacts.la"
23137           done
23138
23139
23140
23141 if test "$enable_qtcontacts" = "yes"; then
23142
23143 $as_echo "#define ENABLE_QTCONTACTS 1" >>confdefs.h
23144
23145         # AC_WITH_QT() will be called in configure-post if need_qt_modules is not empty,
23146         # setting QT_* flags.
23147         need_qt_modules="$need_qt_modules +gui" # GUI needed for QVersit
23148         qt_config="$qt_config +mobility"
23149         qt_misc="$qt_misc
23150 MOBILITY += contacts versit"
23151 fi
23152
23153 # ^^^^^^^^^^^^^^ src/backends/qtcontacts/configure-sub.in ^^^^^^^^^^^^^^
23154
23155 # vvvvvvvvvvvvvv src/backends/signon/configure-sub.in vvvvvvvvvvvvvv
23156
23157 pkg_failed=no
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSO" >&5
23159 $as_echo_n "checking for GSSO... " >&6; }
23160
23161 if test -n "$GSSO_CFLAGS"; then
23162     pkg_cv_GSSO_CFLAGS="$GSSO_CFLAGS"
23163  elif test -n "$PKG_CONFIG"; then
23164     if test -n "$PKG_CONFIG" && \
23165     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgsignon-glib libaccounts-glib\""; } >&5
23166   ($PKG_CONFIG --exists --print-errors "libgsignon-glib libaccounts-glib") 2>&5
23167   ac_status=$?
23168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23169   test $ac_status = 0; }; then
23170   pkg_cv_GSSO_CFLAGS=`$PKG_CONFIG --cflags "libgsignon-glib libaccounts-glib" 2>/dev/null`
23171                       test "x$?" != "x0" && pkg_failed=yes
23172 else
23173   pkg_failed=yes
23174 fi
23175  else
23176     pkg_failed=untried
23177 fi
23178 if test -n "$GSSO_LIBS"; then
23179     pkg_cv_GSSO_LIBS="$GSSO_LIBS"
23180  elif test -n "$PKG_CONFIG"; then
23181     if test -n "$PKG_CONFIG" && \
23182     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgsignon-glib libaccounts-glib\""; } >&5
23183   ($PKG_CONFIG --exists --print-errors "libgsignon-glib libaccounts-glib") 2>&5
23184   ac_status=$?
23185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23186   test $ac_status = 0; }; then
23187   pkg_cv_GSSO_LIBS=`$PKG_CONFIG --libs "libgsignon-glib libaccounts-glib" 2>/dev/null`
23188                       test "x$?" != "x0" && pkg_failed=yes
23189 else
23190   pkg_failed=yes
23191 fi
23192  else
23193     pkg_failed=untried
23194 fi
23195
23196
23197
23198 if test $pkg_failed = yes; then
23199         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23200 $as_echo "no" >&6; }
23201
23202 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23203         _pkg_short_errors_supported=yes
23204 else
23205         _pkg_short_errors_supported=no
23206 fi
23207         if test $_pkg_short_errors_supported = yes; then
23208                 GSSO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgsignon-glib libaccounts-glib" 2>&1`
23209         else
23210                 GSSO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgsignon-glib libaccounts-glib" 2>&1`
23211         fi
23212         # Put the nasty error message in config.log where it belongs
23213         echo "$GSSO_PKG_ERRORS" >&5
23214
23215         HAVE_GSSO=no
23216 elif test $pkg_failed = untried; then
23217         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23218 $as_echo "no" >&6; }
23219         HAVE_GSSO=no
23220 else
23221         GSSO_CFLAGS=$pkg_cv_GSSO_CFLAGS
23222         GSSO_LIBS=$pkg_cv_GSSO_LIBS
23223         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23224 $as_echo "yes" >&6; }
23225         HAVE_GSSO=yes
23226 fi
23227
23228 # Check whether --enable-gsso was given.
23229 if test "${enable_gsso+set}" = set; then :
23230   enableval=$enable_gsso; enable_gsso="$enableval"
23231                test "$enable_gsso" = "yes" || test "$enable_gsso" = "no" || as_fn_error $? "invalid value for --enable-gsso: $enable_gsso" "$LINENO" 5
23232                test "$enable_gsso" = "no" || test "$HAVE_GSSO" = "yes" || as_fn_error $? "required pkg(s) not found that are needed for --enable-gsso" "$LINENO" 5
23233 else
23234   enable_gsso="$HAVE_GSSO"
23235 fi
23236
23237 if test $enable_gsso = "yes"; then
23238
23239 $as_echo "#define USE_GSSO 1" >>confdefs.h
23240
23241     # link into static executables, similar to a SyncSource
23242     SYNCSOURCES="$SYNCSOURCES src/backends/gsso/providergsso.la"
23243     GOOGLE_METHOD="oauth"
23244     GOOGLE_MECHANISM="oauth2"
23245
23246
23247 fi
23248
23249 # conditional compilation in make
23250  if test "$use_gsso" = "yes"; then
23251   USE_GSSO_TRUE=
23252   USE_GSSO_FALSE='#'
23253 else
23254   USE_GSSO_TRUE='#'
23255   USE_GSSO_FALSE=
23256 fi
23257
23258
23259
23260 pkg_failed=no
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UOA" >&5
23262 $as_echo_n "checking for UOA... " >&6; }
23263
23264 if test -n "$UOA_CFLAGS"; then
23265     pkg_cv_UOA_CFLAGS="$UOA_CFLAGS"
23266  elif test -n "$PKG_CONFIG"; then
23267     if test -n "$PKG_CONFIG" && \
23268     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsignon-glib >= 1.7 libaccounts-glib >= 1.8\""; } >&5
23269   ($PKG_CONFIG --exists --print-errors "libsignon-glib >= 1.7 libaccounts-glib >= 1.8") 2>&5
23270   ac_status=$?
23271   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23272   test $ac_status = 0; }; then
23273   pkg_cv_UOA_CFLAGS=`$PKG_CONFIG --cflags "libsignon-glib >= 1.7 libaccounts-glib >= 1.8" 2>/dev/null`
23274                       test "x$?" != "x0" && pkg_failed=yes
23275 else
23276   pkg_failed=yes
23277 fi
23278  else
23279     pkg_failed=untried
23280 fi
23281 if test -n "$UOA_LIBS"; then
23282     pkg_cv_UOA_LIBS="$UOA_LIBS"
23283  elif test -n "$PKG_CONFIG"; then
23284     if test -n "$PKG_CONFIG" && \
23285     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsignon-glib >= 1.7 libaccounts-glib >= 1.8\""; } >&5
23286   ($PKG_CONFIG --exists --print-errors "libsignon-glib >= 1.7 libaccounts-glib >= 1.8") 2>&5
23287   ac_status=$?
23288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23289   test $ac_status = 0; }; then
23290   pkg_cv_UOA_LIBS=`$PKG_CONFIG --libs "libsignon-glib >= 1.7 libaccounts-glib >= 1.8" 2>/dev/null`
23291                       test "x$?" != "x0" && pkg_failed=yes
23292 else
23293   pkg_failed=yes
23294 fi
23295  else
23296     pkg_failed=untried
23297 fi
23298
23299
23300
23301 if test $pkg_failed = yes; then
23302         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23303 $as_echo "no" >&6; }
23304
23305 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23306         _pkg_short_errors_supported=yes
23307 else
23308         _pkg_short_errors_supported=no
23309 fi
23310         if test $_pkg_short_errors_supported = yes; then
23311                 UOA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsignon-glib >= 1.7 libaccounts-glib >= 1.8" 2>&1`
23312         else
23313                 UOA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsignon-glib >= 1.7 libaccounts-glib >= 1.8" 2>&1`
23314         fi
23315         # Put the nasty error message in config.log where it belongs
23316         echo "$UOA_PKG_ERRORS" >&5
23317
23318         HAVE_UOA=no
23319 elif test $pkg_failed = untried; then
23320         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23321 $as_echo "no" >&6; }
23322         HAVE_UOA=no
23323 else
23324         UOA_CFLAGS=$pkg_cv_UOA_CFLAGS
23325         UOA_LIBS=$pkg_cv_UOA_LIBS
23326         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23327 $as_echo "yes" >&6; }
23328         HAVE_UOA=yes
23329 fi
23330
23331 # Check whether --enable-uoa was given.
23332 if test "${enable_uoa+set}" = set; then :
23333   enableval=$enable_uoa; enable_uoa="$enableval"
23334                test "$enable_uoa" = "yes" || test "$enable_uoa" = "no" || as_fn_error $? "invalid value for --enable-uoa: $enable_uoa" "$LINENO" 5
23335                test "$enable_uoa" = "no" || test "$HAVE_UOA" = "yes" || as_fn_error $? "required pkg(s) not found that are needed for --enable-uoa" "$LINENO" 5
23336 else
23337   enable_uoa="$HAVE_UOA"
23338 fi
23339
23340 if test $enable_uoa = "yes"; then
23341
23342 $as_echo "#define USE_UOA 1" >>confdefs.h
23343
23344     # link into static executables, similar to a SyncSource
23345     SYNCSOURCES="$SYNCSOURCES src/backends/uoa/provideruoa.la"
23346     GOOGLE_METHOD="oauth2"
23347     GOOGLE_MECHANISM="web_server"
23348
23349
23350 fi
23351
23352 # conditional compilation in make
23353  if test "$enable_uoa" = "yes"; then
23354   USE_UOA_TRUE=
23355   USE_UOA_FALSE='#'
23356 else
23357   USE_UOA_TRUE='#'
23358   USE_UOA_FALSE=
23359 fi
23360
23361
23362
23363 # Check whether --with-google-client-id was given.
23364 if test "${with_google_client_id+set}" = set; then :
23365   withval=$with_google_client_id; GOOGLE_CLIENT_ID=$withval
23366 else
23367   GOOGLE_CLIENT_ID=insert-your-client-id-here
23368 fi
23369
23370
23371 # Check whether --with-google-client-secret was given.
23372 if test "${with_google_client_secret+set}" = set; then :
23373   withval=$with_google_client_secret; GOOGLE_CLIENT_SECRET=$withval
23374 else
23375   GOOGLE_CLIENT_SECRET=insert-your-client-secret-here
23376 fi
23377
23378
23379
23380
23381
23382 # Check whether --with-google-client-id-caldav was given.
23383 if test "${with_google_client_id_caldav+set}" = set; then :
23384   withval=$with_google_client_id_caldav; GOOGLE_CLIENT_ID_CALDAV=$withval
23385 else
23386   GOOGLE_CLIENT_ID_CALDAV=insert-your-client-id-here
23387 fi
23388
23389
23390 # Check whether --with-google-client-secret-caldav was given.
23391 if test "${with_google_client_secret_caldav+set}" = set; then :
23392   withval=$with_google_client_secret_caldav; GOOGLE_CLIENT_SECRET_CALDAV=$withval
23393 else
23394   GOOGLE_CLIENT_SECRET_CALDAV=insert-your-client-secret-here
23395 fi
23396
23397
23398
23399
23400
23401 # Check whether --with-google-client-id-carddav was given.
23402 if test "${with_google_client_id_carddav+set}" = set; then :
23403   withval=$with_google_client_id_carddav; GOOGLE_CLIENT_ID_CARDDAV=$withval
23404 else
23405   GOOGLE_CLIENT_ID_CARDDAV=insert-your-client-id-here
23406 fi
23407
23408
23409 # Check whether --with-google-client-secret-carddav was given.
23410 if test "${with_google_client_secret_carddav+set}" = set; then :
23411   withval=$with_google_client_secret_carddav; GOOGLE_CLIENT_SECRET_CARDDAV=$withval
23412 else
23413   GOOGLE_CLIENT_SECRET_CARDDAV=insert-your-client-secret-here
23414 fi
23415
23416
23417
23418
23419 ac_config_files="$ac_config_files src/backends/signon/accounts/google-caldav.service src/backends/signon/accounts/google-carddav.service src/backends/signon/accounts/google.provider"
23420
23421 # ^^^^^^^^^^^^^^ src/backends/signon/configure-sub.in ^^^^^^^^^^^^^^
23422
23423 # vvvvvvvvvvvvvv src/backends/sqlite/configure-sub.in vvvvvvvvvvvvvv
23424
23425
23426 pkg_failed=no
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
23428 $as_echo_n "checking for SQLITE... " >&6; }
23429
23430 if test -n "$SQLITE_CFLAGS"; then
23431     pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
23432  elif test -n "$PKG_CONFIG"; then
23433     if test -n "$PKG_CONFIG" && \
23434     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
23435   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
23436   ac_status=$?
23437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23438   test $ac_status = 0; }; then
23439   pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
23440                       test "x$?" != "x0" && pkg_failed=yes
23441 else
23442   pkg_failed=yes
23443 fi
23444  else
23445     pkg_failed=untried
23446 fi
23447 if test -n "$SQLITE_LIBS"; then
23448     pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
23449  elif test -n "$PKG_CONFIG"; then
23450     if test -n "$PKG_CONFIG" && \
23451     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
23452   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
23453   ac_status=$?
23454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23455   test $ac_status = 0; }; then
23456   pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
23457                       test "x$?" != "x0" && pkg_failed=yes
23458 else
23459   pkg_failed=yes
23460 fi
23461  else
23462     pkg_failed=untried
23463 fi
23464
23465
23466
23467 if test $pkg_failed = yes; then
23468         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23469 $as_echo "no" >&6; }
23470
23471 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23472         _pkg_short_errors_supported=yes
23473 else
23474         _pkg_short_errors_supported=no
23475 fi
23476         if test $_pkg_short_errors_supported = yes; then
23477                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
23478         else
23479                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
23480         fi
23481         # Put the nasty error message in config.log where it belongs
23482         echo "$SQLITE_PKG_ERRORS" >&5
23483
23484         SQLITEFOUND=no
23485 elif test $pkg_failed = untried; then
23486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23487 $as_echo "no" >&6; }
23488         SQLITEFOUND=no
23489 else
23490         SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
23491         SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
23492         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23493 $as_echo "yes" >&6; }
23494         SQLITEFOUND=yes
23495 fi
23496
23497
23498 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $SQLITE_CFLAGS"
23499
23500
23501           # Check whether --enable-sqlite was given.
23502 if test "${enable_sqlite+set}" = set; then :
23503   enableval=$enable_sqlite; enable_sqlite="$enableval"
23504 else
23505   enable_sqlite="no"
23506
23507 fi
23508
23509           BACKENDS="$BACKENDS sqlite"
23510           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_SQLITE"
23511           for source in sqlite
23512           do
23513             SYNCSOURCES="$SYNCSOURCES src/backends/sqlite/syncsqlite.la"
23514           done
23515
23516
23517
23518 if test "$enable_sqlite" = "yes"; then
23519         test "x${SQLITEFOUND}" = "xyes" || as_fn_error $? "--enable-sqlite requires pkg-config information for sqlite3, which was not found" "$LINENO" 5
23520
23521 $as_echo "#define ENABLE_SQLITE 1" >>confdefs.h
23522
23523 else
23524         # avoid linking against it if not needed
23525         SQLITE_CFLAGS=
23526         SQLITE_LIBS=
23527 fi
23528 # ^^^^^^^^^^^^^^ src/backends/sqlite/configure-sub.in ^^^^^^^^^^^^^^
23529
23530 # vvvvvvvvvvvvvv src/backends/webdav/configure-sub.in vvvvvvvvvvvvvv
23531
23532
23533           # Check whether --enable-dav was given.
23534 if test "${enable_dav+set}" = set; then :
23535   enableval=$enable_dav; enable_dav="$enableval"
23536 else
23537   enable_dav="no"
23538
23539 fi
23540
23541           BACKENDS="$BACKENDS dav"
23542           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_DAV"
23543           for source in webdav
23544           do
23545             SYNCSOURCES="$SYNCSOURCES src/backends/webdav/syncdav.la"
23546           done
23547
23548
23549
23550 if test "$enable_dav" = "yes"; then
23551         need_ical="yes"
23552
23553 pkg_failed=no
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEON" >&5
23555 $as_echo_n "checking for NEON... " >&6; }
23556
23557 if test -n "$NEON_CFLAGS"; then
23558     pkg_cv_NEON_CFLAGS="$NEON_CFLAGS"
23559  elif test -n "$PKG_CONFIG"; then
23560     if test -n "$PKG_CONFIG" && \
23561     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.29\""; } >&5
23562   ($PKG_CONFIG --exists --print-errors "neon >= 0.29") 2>&5
23563   ac_status=$?
23564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23565   test $ac_status = 0; }; then
23566   pkg_cv_NEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.29" 2>/dev/null`
23567                       test "x$?" != "x0" && pkg_failed=yes
23568 else
23569   pkg_failed=yes
23570 fi
23571  else
23572     pkg_failed=untried
23573 fi
23574 if test -n "$NEON_LIBS"; then
23575     pkg_cv_NEON_LIBS="$NEON_LIBS"
23576  elif test -n "$PKG_CONFIG"; then
23577     if test -n "$PKG_CONFIG" && \
23578     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.29\""; } >&5
23579   ($PKG_CONFIG --exists --print-errors "neon >= 0.29") 2>&5
23580   ac_status=$?
23581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23582   test $ac_status = 0; }; then
23583   pkg_cv_NEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.29" 2>/dev/null`
23584                       test "x$?" != "x0" && pkg_failed=yes
23585 else
23586   pkg_failed=yes
23587 fi
23588  else
23589     pkg_failed=untried
23590 fi
23591
23592
23593
23594 if test $pkg_failed = yes; then
23595         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23596 $as_echo "no" >&6; }
23597
23598 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23599         _pkg_short_errors_supported=yes
23600 else
23601         _pkg_short_errors_supported=no
23602 fi
23603         if test $_pkg_short_errors_supported = yes; then
23604                 NEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "neon >= 0.29" 2>&1`
23605         else
23606                 NEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "neon >= 0.29" 2>&1`
23607         fi
23608         # Put the nasty error message in config.log where it belongs
23609         echo "$NEON_PKG_ERRORS" >&5
23610
23611
23612 pkg_failed=no
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEON" >&5
23614 $as_echo_n "checking for NEON... " >&6; }
23615
23616 if test -n "$NEON_CFLAGS"; then
23617     pkg_cv_NEON_CFLAGS="$NEON_CFLAGS"
23618  elif test -n "$PKG_CONFIG"; then
23619     if test -n "$PKG_CONFIG" && \
23620     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27\""; } >&5
23621   ($PKG_CONFIG --exists --print-errors "neon >= 0.27") 2>&5
23622   ac_status=$?
23623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23624   test $ac_status = 0; }; then
23625   pkg_cv_NEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.27" 2>/dev/null`
23626                       test "x$?" != "x0" && pkg_failed=yes
23627 else
23628   pkg_failed=yes
23629 fi
23630  else
23631     pkg_failed=untried
23632 fi
23633 if test -n "$NEON_LIBS"; then
23634     pkg_cv_NEON_LIBS="$NEON_LIBS"
23635  elif test -n "$PKG_CONFIG"; then
23636     if test -n "$PKG_CONFIG" && \
23637     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27\""; } >&5
23638   ($PKG_CONFIG --exists --print-errors "neon >= 0.27") 2>&5
23639   ac_status=$?
23640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23641   test $ac_status = 0; }; then
23642   pkg_cv_NEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.27" 2>/dev/null`
23643                       test "x$?" != "x0" && pkg_failed=yes
23644 else
23645   pkg_failed=yes
23646 fi
23647  else
23648     pkg_failed=untried
23649 fi
23650
23651
23652
23653 if test $pkg_failed = yes; then
23654         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23655 $as_echo "no" >&6; }
23656
23657 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23658         _pkg_short_errors_supported=yes
23659 else
23660         _pkg_short_errors_supported=no
23661 fi
23662         if test $_pkg_short_errors_supported = yes; then
23663                 NEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "neon >= 0.27" 2>&1`
23664         else
23665                 NEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "neon >= 0.27" 2>&1`
23666         fi
23667         # Put the nasty error message in config.log where it belongs
23668         echo "$NEON_PKG_ERRORS" >&5
23669
23670         as_fn_error $? "Package requirements (neon >= 0.27) were not met:
23671
23672 $NEON_PKG_ERRORS
23673
23674 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23675 installed software in a non-standard prefix.
23676
23677 Alternatively, you may set the environment variables NEON_CFLAGS
23678 and NEON_LIBS to avoid the need to call pkg-config.
23679 See the pkg-config man page for more details." "$LINENO" 5
23680 elif test $pkg_failed = untried; then
23681         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23682 $as_echo "no" >&6; }
23683         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23685 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23686 is in your PATH or set the PKG_CONFIG environment variable to the full
23687 path to pkg-config.
23688
23689 Alternatively, you may set the environment variables NEON_CFLAGS
23690 and NEON_LIBS to avoid the need to call pkg-config.
23691 See the pkg-config man page for more details.
23692
23693 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23694 See \`config.log' for more details" "$LINENO" 5; }
23695 else
23696         NEON_CFLAGS=$pkg_cv_NEON_CFLAGS
23697         NEON_LIBS=$pkg_cv_NEON_LIBS
23698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23699 $as_echo "yes" >&6; }
23700
23701 fi
23702 elif test $pkg_failed = untried; then
23703         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23704 $as_echo "no" >&6; }
23705
23706 pkg_failed=no
23707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEON" >&5
23708 $as_echo_n "checking for NEON... " >&6; }
23709
23710 if test -n "$NEON_CFLAGS"; then
23711     pkg_cv_NEON_CFLAGS="$NEON_CFLAGS"
23712  elif test -n "$PKG_CONFIG"; then
23713     if test -n "$PKG_CONFIG" && \
23714     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27\""; } >&5
23715   ($PKG_CONFIG --exists --print-errors "neon >= 0.27") 2>&5
23716   ac_status=$?
23717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23718   test $ac_status = 0; }; then
23719   pkg_cv_NEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.27" 2>/dev/null`
23720                       test "x$?" != "x0" && pkg_failed=yes
23721 else
23722   pkg_failed=yes
23723 fi
23724  else
23725     pkg_failed=untried
23726 fi
23727 if test -n "$NEON_LIBS"; then
23728     pkg_cv_NEON_LIBS="$NEON_LIBS"
23729  elif test -n "$PKG_CONFIG"; then
23730     if test -n "$PKG_CONFIG" && \
23731     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27\""; } >&5
23732   ($PKG_CONFIG --exists --print-errors "neon >= 0.27") 2>&5
23733   ac_status=$?
23734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23735   test $ac_status = 0; }; then
23736   pkg_cv_NEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.27" 2>/dev/null`
23737                       test "x$?" != "x0" && pkg_failed=yes
23738 else
23739   pkg_failed=yes
23740 fi
23741  else
23742     pkg_failed=untried
23743 fi
23744
23745
23746
23747 if test $pkg_failed = yes; then
23748         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23749 $as_echo "no" >&6; }
23750
23751 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23752         _pkg_short_errors_supported=yes
23753 else
23754         _pkg_short_errors_supported=no
23755 fi
23756         if test $_pkg_short_errors_supported = yes; then
23757                 NEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "neon >= 0.27" 2>&1`
23758         else
23759                 NEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "neon >= 0.27" 2>&1`
23760         fi
23761         # Put the nasty error message in config.log where it belongs
23762         echo "$NEON_PKG_ERRORS" >&5
23763
23764         as_fn_error $? "Package requirements (neon >= 0.27) were not met:
23765
23766 $NEON_PKG_ERRORS
23767
23768 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23769 installed software in a non-standard prefix.
23770
23771 Alternatively, you may set the environment variables NEON_CFLAGS
23772 and NEON_LIBS to avoid the need to call pkg-config.
23773 See the pkg-config man page for more details." "$LINENO" 5
23774 elif test $pkg_failed = untried; then
23775         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23776 $as_echo "no" >&6; }
23777         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23779 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23780 is in your PATH or set the PKG_CONFIG environment variable to the full
23781 path to pkg-config.
23782
23783 Alternatively, you may set the environment variables NEON_CFLAGS
23784 and NEON_LIBS to avoid the need to call pkg-config.
23785 See the pkg-config man page for more details.
23786
23787 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23788 See \`config.log' for more details" "$LINENO" 5; }
23789 else
23790         NEON_CFLAGS=$pkg_cv_NEON_CFLAGS
23791         NEON_LIBS=$pkg_cv_NEON_LIBS
23792         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23793 $as_echo "yes" >&6; }
23794
23795 fi
23796 else
23797         NEON_CFLAGS=$pkg_cv_NEON_CFLAGS
23798         NEON_LIBS=$pkg_cv_NEON_LIBS
23799         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23800 $as_echo "yes" >&6; }
23801
23802 $as_echo "#define HAVE_LIBNEON_SYSTEM_PROXY 1" >>confdefs.h
23803
23804
23805 $as_echo "#define HAVE_LIBNEON_OPTIONS 1" >>confdefs.h
23806
23807 fi
23808
23809 $as_echo "#define ENABLE_DAV 1" >>confdefs.h
23810
23811
23812 $as_echo "#define ENABLE_ICAL 1" >>confdefs.h
23813
23814         BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $NEON_CFLAGS"
23815 fi
23816
23817 # Check whether --enable-neon-compatibility was given.
23818 if test "${enable_neon_compatibility+set}" = set; then :
23819   enableval=$enable_neon_compatibility; enable_neon_compat="$enableval"
23820 else
23821   enable_neon_compat="no"
23822
23823 fi
23824
23825 if test "$enable_neon_compat" = "yes"; then
23826
23827 $as_echo "#define NEON_COMPATIBILITY 1" >>confdefs.h
23828
23829         NEON_LIBS="`echo $NEON_LIBS | sed -e 's/\(-lneon\(-gnutls\)*\|^ *libneon\(-gnutls\)*.la\)/-ldl/'`"
23830 fi
23831  if test "$enable_neon_compat" = "yes"; then
23832   NEON_COMPATIBILITY_TRUE=
23833   NEON_COMPATIBILITY_FALSE='#'
23834 else
23835   NEON_COMPATIBILITY_TRUE='#'
23836   NEON_COMPATIBILITY_FALSE=
23837 fi
23838
23839 # ^^^^^^^^^^^^^^ src/backends/webdav/configure-sub.in ^^^^^^^^^^^^^^
23840
23841 # vvvvvvvvvvvvvv src/backends/xmlrpc/configure-sub.in vvvvvvvvvvvvvv
23842
23843
23844
23845
23846           # Check whether --enable-xmlrpc was given.
23847 if test "${enable_xmlrpc+set}" = set; then :
23848   enableval=$enable_xmlrpc; enable_xmlrpc="$enableval"
23849 else
23850   enable_xmlrpc="no"
23851
23852 fi
23853
23854           BACKENDS="$BACKENDS xmlrpc"
23855           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_XMLRPC"
23856           for source in xmlrpc
23857           do
23858             SYNCSOURCES="$SYNCSOURCES src/backends/xmlrpc/syncxmlrpc.la"
23859           done
23860
23861
23862
23863 if test "$enable_xmlrpc" = "yes"; then
23864
23865         # Extract the first word of "xmlrpc-c-config", so it can be a program name with args.
23866 set dummy xmlrpc-c-config; ac_word=$2
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23868 $as_echo_n "checking for $ac_word... " >&6; }
23869 if ${ac_cv_path_XMLRPC_C_CONFIG+:} false; then :
23870   $as_echo_n "(cached) " >&6
23871 else
23872   case $XMLRPC_C_CONFIG in
23873   [\\/]* | ?:[\\/]*)
23874   ac_cv_path_XMLRPC_C_CONFIG="$XMLRPC_C_CONFIG" # Let the user override the test with a path.
23875   ;;
23876   *)
23877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23878 for as_dir in $PATH
23879 do
23880   IFS=$as_save_IFS
23881   test -z "$as_dir" && as_dir=.
23882     for ac_exec_ext in '' $ac_executable_extensions; do
23883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23884     ac_cv_path_XMLRPC_C_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23886     break 2
23887   fi
23888 done
23889   done
23890 IFS=$as_save_IFS
23891
23892   test -z "$ac_cv_path_XMLRPC_C_CONFIG" && ac_cv_path_XMLRPC_C_CONFIG="no"
23893   ;;
23894 esac
23895 fi
23896 XMLRPC_C_CONFIG=$ac_cv_path_XMLRPC_C_CONFIG
23897 if test -n "$XMLRPC_C_CONFIG"; then
23898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLRPC_C_CONFIG" >&5
23899 $as_echo "$XMLRPC_C_CONFIG" >&6; }
23900 else
23901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23902 $as_echo "no" >&6; }
23903 fi
23904
23905
23906
23907         test "x$XMLRPC_C_CONFIG" != 'xno' || as_fn_error $? "--enable-xmlrpc requires xmlrpc-c-config, which was not found" "$LINENO" 5
23908
23909         XMLRPC_CFLAGS=`$XMLRPC_C_CONFIG c++2 client --cflags`
23910         XMLRPC_LIBS=`$XMLRPC_C_CONFIG c++2 client --libs`
23911
23912
23913
23914                         BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $XMLRPC_CFLAGS"
23915
23916
23917 $as_echo "#define ENABLE_XMLRPC 1" >>confdefs.h
23918
23919 fi
23920 # ^^^^^^^^^^^^^^ src/backends/xmlrpc/configure-sub.in ^^^^^^^^^^^^^^
23921
23922
23923
23924
23925
23926
23927 # Check whether --enable-qt-dbus was given.
23928 if test "${enable_qt_dbus+set}" = set; then :
23929   enableval=$enable_qt_dbus; enable_qt_dbus="$enableval"
23930 else
23931   enable_qt_dbus="no"
23932 fi
23933
23934
23935 if test "$enable_qt_dbus" = "yes"; then
23936
23937 $as_echo "#define ENABLE_QT_DBUS 1" >>confdefs.h
23938
23939         need_qt_modules="$need_qt_modules +dbus"
23940         # Extract the first word of "qdbusxml2cpp", so it can be a program name with args.
23941 set dummy qdbusxml2cpp; ac_word=$2
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23943 $as_echo_n "checking for $ac_word... " >&6; }
23944 if ${ac_cv_path_QDBUSXML_TO_CPP+:} false; then :
23945   $as_echo_n "(cached) " >&6
23946 else
23947   case $QDBUSXML_TO_CPP in
23948   [\\/]* | ?:[\\/]*)
23949   ac_cv_path_QDBUSXML_TO_CPP="$QDBUSXML_TO_CPP" # Let the user override the test with a path.
23950   ;;
23951   *)
23952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23953 for as_dir in $PATH
23954 do
23955   IFS=$as_save_IFS
23956   test -z "$as_dir" && as_dir=.
23957     for ac_exec_ext in '' $ac_executable_extensions; do
23958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23959     ac_cv_path_QDBUSXML_TO_CPP="$as_dir/$ac_word$ac_exec_ext"
23960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23961     break 2
23962   fi
23963 done
23964   done
23965 IFS=$as_save_IFS
23966
23967   test -z "$ac_cv_path_QDBUSXML_TO_CPP" && ac_cv_path_QDBUSXML_TO_CPP="no"
23968   ;;
23969 esac
23970 fi
23971 QDBUSXML_TO_CPP=$ac_cv_path_QDBUSXML_TO_CPP
23972 if test -n "$QDBUSXML_TO_CPP"; then
23973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QDBUSXML_TO_CPP" >&5
23974 $as_echo "$QDBUSXML_TO_CPP" >&6; }
23975 else
23976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23977 $as_echo "no" >&6; }
23978 fi
23979
23980
23981         test "x$QDBUSXML_TO_CPP" != 'xno' || as_fn_error $? "--enable-qt-dbus requires qdbusxml2cpp, which was not found" "$LINENO" 5
23982 fi
23983
23984  if test "$enable_qt_dbus" = "yes"; then
23985   ENABLE_QT_DBUS_TRUE=
23986   ENABLE_QT_DBUS_FALSE='#'
23987 else
23988   ENABLE_QT_DBUS_TRUE='#'
23989   ENABLE_QT_DBUS_FALSE=
23990 fi
23991
23992
23993
23994 ac_config_files="$ac_config_files src/dbus/qt/syncevolution-qt-dbus.pc"
23995
23996
23997
23998
23999
24000 enable_any="no"
24001 backend_is_enabled () {
24002     eval echo \${enable_${1}}
24003 }
24004 for backend in $BACKENDS; do
24005     if test `backend_is_enabled $backend` = "yes"; then
24006        enable_any="yes"
24007        SYNCEVOLUTION_MODULES="$SYNCEVOLUTION_MODULES src/backends/sync${backend}.la"
24008     fi
24009 done
24010
24011 if test "$enable_any" = "no"; then
24012         as_fn_error $? "no backend enabled - refusing to continue: $anymissing" "$LINENO" 5
24013 fi
24014
24015 if test "$need_glib" = "yes"; then
24016         # HAVE_GLIB (aka GLIBFOUND) are a catch-all for these
24017         # three GNOME libs. Assume we have all three unless one of
24018         # the checks fails.
24019         GLIBFOUND=yes
24020
24021
24022 pkg_failed=no
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
24024 $as_echo_n "checking for GLIB... " >&6; }
24025
24026 if test -n "$GLIB_CFLAGS"; then
24027     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
24028  elif test -n "$PKG_CONFIG"; then
24029     if test -n "$PKG_CONFIG" && \
24030     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\""; } >&5
24031   ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
24032   ac_status=$?
24033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24034   test $ac_status = 0; }; then
24035   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags ""glib-2.0"" 2>/dev/null`
24036                       test "x$?" != "x0" && pkg_failed=yes
24037 else
24038   pkg_failed=yes
24039 fi
24040  else
24041     pkg_failed=untried
24042 fi
24043 if test -n "$GLIB_LIBS"; then
24044     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
24045  elif test -n "$PKG_CONFIG"; then
24046     if test -n "$PKG_CONFIG" && \
24047     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\""; } >&5
24048   ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
24049   ac_status=$?
24050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24051   test $ac_status = 0; }; then
24052   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs ""glib-2.0"" 2>/dev/null`
24053                       test "x$?" != "x0" && pkg_failed=yes
24054 else
24055   pkg_failed=yes
24056 fi
24057  else
24058     pkg_failed=untried
24059 fi
24060
24061
24062
24063 if test $pkg_failed = yes; then
24064         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24065 $as_echo "no" >&6; }
24066
24067 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24068         _pkg_short_errors_supported=yes
24069 else
24070         _pkg_short_errors_supported=no
24071 fi
24072         if test $_pkg_short_errors_supported = yes; then
24073                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""glib-2.0"" 2>&1`
24074         else
24075                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""glib-2.0"" 2>&1`
24076         fi
24077         # Put the nasty error message in config.log where it belongs
24078         echo "$GLIB_PKG_ERRORS" >&5
24079
24080         GLIBFOUND=no
24081 elif test $pkg_failed = untried; then
24082         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24083 $as_echo "no" >&6; }
24084         GLIBFOUND=no
24085 else
24086         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
24087         GLIB_LIBS=$pkg_cv_GLIB_LIBS
24088         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24089 $as_echo "yes" >&6; }
24090
24091 fi
24092         # This check here is broken on Ubuntu 8.04: it calls glib-config,
24093         # which isn't found, but the error is not detected by configure.
24094         #if test "x${GLIBFOUND}" = "xno"; then
24095         #       PKG_CHECK_MODULES(GLIB, "glib", GLIBFOUND=yes, GLIBFOUND=no)
24096         #fi
24097
24098
24099 pkg_failed=no
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
24101 $as_echo_n "checking for GTHREAD... " >&6; }
24102
24103 if test -n "$GTHREAD_CFLAGS"; then
24104     pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
24105  elif test -n "$PKG_CONFIG"; then
24106     if test -n "$PKG_CONFIG" && \
24107     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gthread-2.0\"\""; } >&5
24108   ($PKG_CONFIG --exists --print-errors ""gthread-2.0"") 2>&5
24109   ac_status=$?
24110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24111   test $ac_status = 0; }; then
24112   pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags ""gthread-2.0"" 2>/dev/null`
24113                       test "x$?" != "x0" && pkg_failed=yes
24114 else
24115   pkg_failed=yes
24116 fi
24117  else
24118     pkg_failed=untried
24119 fi
24120 if test -n "$GTHREAD_LIBS"; then
24121     pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
24122  elif test -n "$PKG_CONFIG"; then
24123     if test -n "$PKG_CONFIG" && \
24124     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gthread-2.0\"\""; } >&5
24125   ($PKG_CONFIG --exists --print-errors ""gthread-2.0"") 2>&5
24126   ac_status=$?
24127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24128   test $ac_status = 0; }; then
24129   pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs ""gthread-2.0"" 2>/dev/null`
24130                       test "x$?" != "x0" && pkg_failed=yes
24131 else
24132   pkg_failed=yes
24133 fi
24134  else
24135     pkg_failed=untried
24136 fi
24137
24138
24139
24140 if test $pkg_failed = yes; then
24141         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24142 $as_echo "no" >&6; }
24143
24144 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24145         _pkg_short_errors_supported=yes
24146 else
24147         _pkg_short_errors_supported=no
24148 fi
24149         if test $_pkg_short_errors_supported = yes; then
24150                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""gthread-2.0"" 2>&1`
24151         else
24152                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""gthread-2.0"" 2>&1`
24153         fi
24154         # Put the nasty error message in config.log where it belongs
24155         echo "$GTHREAD_PKG_ERRORS" >&5
24156
24157         GLIBFOUND=no
24158 elif test $pkg_failed = untried; then
24159         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24160 $as_echo "no" >&6; }
24161         GLIBFOUND=no
24162 else
24163         GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
24164         GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
24165         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24166 $as_echo "yes" >&6; }
24167
24168 fi
24169
24170 pkg_failed=no
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
24172 $as_echo_n "checking for GOBJECT... " >&6; }
24173
24174 if test -n "$GOBJECT_CFLAGS"; then
24175     pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
24176  elif test -n "$PKG_CONFIG"; then
24177     if test -n "$PKG_CONFIG" && \
24178     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gobject-2.0\"\""; } >&5
24179   ($PKG_CONFIG --exists --print-errors ""gobject-2.0"") 2>&5
24180   ac_status=$?
24181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24182   test $ac_status = 0; }; then
24183   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags ""gobject-2.0"" 2>/dev/null`
24184                       test "x$?" != "x0" && pkg_failed=yes
24185 else
24186   pkg_failed=yes
24187 fi
24188  else
24189     pkg_failed=untried
24190 fi
24191 if test -n "$GOBJECT_LIBS"; then
24192     pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
24193  elif test -n "$PKG_CONFIG"; then
24194     if test -n "$PKG_CONFIG" && \
24195     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gobject-2.0\"\""; } >&5
24196   ($PKG_CONFIG --exists --print-errors ""gobject-2.0"") 2>&5
24197   ac_status=$?
24198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24199   test $ac_status = 0; }; then
24200   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs ""gobject-2.0"" 2>/dev/null`
24201                       test "x$?" != "x0" && pkg_failed=yes
24202 else
24203   pkg_failed=yes
24204 fi
24205  else
24206     pkg_failed=untried
24207 fi
24208
24209
24210
24211 if test $pkg_failed = yes; then
24212         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24213 $as_echo "no" >&6; }
24214
24215 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24216         _pkg_short_errors_supported=yes
24217 else
24218         _pkg_short_errors_supported=no
24219 fi
24220         if test $_pkg_short_errors_supported = yes; then
24221                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""gobject-2.0"" 2>&1`
24222         else
24223                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""gobject-2.0"" 2>&1`
24224         fi
24225         # Put the nasty error message in config.log where it belongs
24226         echo "$GOBJECT_PKG_ERRORS" >&5
24227
24228         GLIBFOUND=no
24229 elif test $pkg_failed = untried; then
24230         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24231 $as_echo "no" >&6; }
24232         GLIBFOUND=no
24233 else
24234         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
24235         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
24236         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24237 $as_echo "yes" >&6; }
24238
24239 fi
24240
24241 pkg_failed=no
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
24243 $as_echo_n "checking for GIO... " >&6; }
24244
24245 if test -n "$GIO_CFLAGS"; then
24246     pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
24247  elif test -n "$PKG_CONFIG"; then
24248     if test -n "$PKG_CONFIG" && \
24249     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gio-2.0\"\""; } >&5
24250   ($PKG_CONFIG --exists --print-errors ""gio-2.0"") 2>&5
24251   ac_status=$?
24252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24253   test $ac_status = 0; }; then
24254   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags ""gio-2.0"" 2>/dev/null`
24255                       test "x$?" != "x0" && pkg_failed=yes
24256 else
24257   pkg_failed=yes
24258 fi
24259  else
24260     pkg_failed=untried
24261 fi
24262 if test -n "$GIO_LIBS"; then
24263     pkg_cv_GIO_LIBS="$GIO_LIBS"
24264  elif test -n "$PKG_CONFIG"; then
24265     if test -n "$PKG_CONFIG" && \
24266     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gio-2.0\"\""; } >&5
24267   ($PKG_CONFIG --exists --print-errors ""gio-2.0"") 2>&5
24268   ac_status=$?
24269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24270   test $ac_status = 0; }; then
24271   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs ""gio-2.0"" 2>/dev/null`
24272                       test "x$?" != "x0" && pkg_failed=yes
24273 else
24274   pkg_failed=yes
24275 fi
24276  else
24277     pkg_failed=untried
24278 fi
24279
24280
24281
24282 if test $pkg_failed = yes; then
24283         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24284 $as_echo "no" >&6; }
24285
24286 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24287         _pkg_short_errors_supported=yes
24288 else
24289         _pkg_short_errors_supported=no
24290 fi
24291         if test $_pkg_short_errors_supported = yes; then
24292                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""gio-2.0"" 2>&1`
24293         else
24294                 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""gio-2.0"" 2>&1`
24295         fi
24296         # Put the nasty error message in config.log where it belongs
24297         echo "$GIO_PKG_ERRORS" >&5
24298
24299         GLIBFOUND=no
24300 elif test $pkg_failed = untried; then
24301         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24302 $as_echo "no" >&6; }
24303         GLIBFOUND=no
24304 else
24305         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
24306         GIO_LIBS=$pkg_cv_GIO_LIBS
24307         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24308 $as_echo "yes" >&6; }
24309
24310 fi
24311
24312         if  test "x${GLIBFOUND}" = "xyes"; then
24313
24314 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
24315
24316         else
24317             as_fn_error $? "not all GNOME libraries found" "$LINENO" 5
24318         fi
24319         BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $GLIB_CFLAGS $GTHREAD_CFLAGS $GOBJECT_CFLAGS"
24320 fi
24321
24322 if test "$need_ical" = "yes" || test "$enable_icaltz_util" = "yes"; then
24323
24324 pkg_failed=no
24325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL" >&5
24326 $as_echo_n "checking for LIBICAL... " >&6; }
24327
24328 if test -n "$LIBICAL_CFLAGS"; then
24329     pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
24330  elif test -n "$PKG_CONFIG"; then
24331     if test -n "$PKG_CONFIG" && \
24332     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
24333   ($PKG_CONFIG --exists --print-errors "libical") 2>&5
24334   ac_status=$?
24335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24336   test $ac_status = 0; }; then
24337   pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libical" 2>/dev/null`
24338                       test "x$?" != "x0" && pkg_failed=yes
24339 else
24340   pkg_failed=yes
24341 fi
24342  else
24343     pkg_failed=untried
24344 fi
24345 if test -n "$LIBICAL_LIBS"; then
24346     pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
24347  elif test -n "$PKG_CONFIG"; then
24348     if test -n "$PKG_CONFIG" && \
24349     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
24350   ($PKG_CONFIG --exists --print-errors "libical") 2>&5
24351   ac_status=$?
24352   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24353   test $ac_status = 0; }; then
24354   pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libical" 2>/dev/null`
24355                       test "x$?" != "x0" && pkg_failed=yes
24356 else
24357   pkg_failed=yes
24358 fi
24359  else
24360     pkg_failed=untried
24361 fi
24362
24363
24364
24365 if test $pkg_failed = yes; then
24366         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24367 $as_echo "no" >&6; }
24368
24369 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24370         _pkg_short_errors_supported=yes
24371 else
24372         _pkg_short_errors_supported=no
24373 fi
24374         if test $_pkg_short_errors_supported = yes; then
24375                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libical" 2>&1`
24376         else
24377                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libical" 2>&1`
24378         fi
24379         # Put the nasty error message in config.log where it belongs
24380         echo "$LIBICAL_PKG_ERRORS" >&5
24381
24382
24383 pkg_failed=no
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL" >&5
24385 $as_echo_n "checking for LIBICAL... " >&6; }
24386
24387 if test -n "$LIBICAL_CFLAGS"; then
24388     pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
24389  elif test -n "$PKG_CONFIG"; then
24390     if test -n "$PKG_CONFIG" && \
24391     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
24392   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
24393   ac_status=$?
24394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24395   test $ac_status = 0; }; then
24396   pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
24397                       test "x$?" != "x0" && pkg_failed=yes
24398 else
24399   pkg_failed=yes
24400 fi
24401  else
24402     pkg_failed=untried
24403 fi
24404 if test -n "$LIBICAL_LIBS"; then
24405     pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
24406  elif test -n "$PKG_CONFIG"; then
24407     if test -n "$PKG_CONFIG" && \
24408     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
24409   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
24410   ac_status=$?
24411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24412   test $ac_status = 0; }; then
24413   pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
24414                       test "x$?" != "x0" && pkg_failed=yes
24415 else
24416   pkg_failed=yes
24417 fi
24418  else
24419     pkg_failed=untried
24420 fi
24421
24422
24423
24424 if test $pkg_failed = yes; then
24425         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24426 $as_echo "no" >&6; }
24427
24428 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24429         _pkg_short_errors_supported=yes
24430 else
24431         _pkg_short_errors_supported=no
24432 fi
24433         if test $_pkg_short_errors_supported = yes; then
24434                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libecal-1.2" 2>&1`
24435         else
24436                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libecal-1.2" 2>&1`
24437         fi
24438         # Put the nasty error message in config.log where it belongs
24439         echo "$LIBICAL_PKG_ERRORS" >&5
24440
24441         as_fn_error $? "Package requirements (libecal-1.2) were not met:
24442
24443 $LIBICAL_PKG_ERRORS
24444
24445 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24446 installed software in a non-standard prefix.
24447
24448 Alternatively, you may set the environment variables LIBICAL_CFLAGS
24449 and LIBICAL_LIBS to avoid the need to call pkg-config.
24450 See the pkg-config man page for more details." "$LINENO" 5
24451 elif test $pkg_failed = untried; then
24452         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24453 $as_echo "no" >&6; }
24454         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24456 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24457 is in your PATH or set the PKG_CONFIG environment variable to the full
24458 path to pkg-config.
24459
24460 Alternatively, you may set the environment variables LIBICAL_CFLAGS
24461 and LIBICAL_LIBS to avoid the need to call pkg-config.
24462 See the pkg-config man page for more details.
24463
24464 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24465 See \`config.log' for more details" "$LINENO" 5; }
24466 else
24467         LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
24468         LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
24469         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24470 $as_echo "yes" >&6; }
24471
24472 fi
24473 elif test $pkg_failed = untried; then
24474         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24475 $as_echo "no" >&6; }
24476
24477 pkg_failed=no
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL" >&5
24479 $as_echo_n "checking for LIBICAL... " >&6; }
24480
24481 if test -n "$LIBICAL_CFLAGS"; then
24482     pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
24483  elif test -n "$PKG_CONFIG"; then
24484     if test -n "$PKG_CONFIG" && \
24485     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
24486   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
24487   ac_status=$?
24488   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24489   test $ac_status = 0; }; then
24490   pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
24491                       test "x$?" != "x0" && pkg_failed=yes
24492 else
24493   pkg_failed=yes
24494 fi
24495  else
24496     pkg_failed=untried
24497 fi
24498 if test -n "$LIBICAL_LIBS"; then
24499     pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
24500  elif test -n "$PKG_CONFIG"; then
24501     if test -n "$PKG_CONFIG" && \
24502     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
24503   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
24504   ac_status=$?
24505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24506   test $ac_status = 0; }; then
24507   pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
24508                       test "x$?" != "x0" && pkg_failed=yes
24509 else
24510   pkg_failed=yes
24511 fi
24512  else
24513     pkg_failed=untried
24514 fi
24515
24516
24517
24518 if test $pkg_failed = yes; then
24519         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24520 $as_echo "no" >&6; }
24521
24522 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24523         _pkg_short_errors_supported=yes
24524 else
24525         _pkg_short_errors_supported=no
24526 fi
24527         if test $_pkg_short_errors_supported = yes; then
24528                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libecal-1.2" 2>&1`
24529         else
24530                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libecal-1.2" 2>&1`
24531         fi
24532         # Put the nasty error message in config.log where it belongs
24533         echo "$LIBICAL_PKG_ERRORS" >&5
24534
24535         as_fn_error $? "Package requirements (libecal-1.2) were not met:
24536
24537 $LIBICAL_PKG_ERRORS
24538
24539 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24540 installed software in a non-standard prefix.
24541
24542 Alternatively, you may set the environment variables LIBICAL_CFLAGS
24543 and LIBICAL_LIBS to avoid the need to call pkg-config.
24544 See the pkg-config man page for more details." "$LINENO" 5
24545 elif test $pkg_failed = untried; then
24546         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24547 $as_echo "no" >&6; }
24548         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24550 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24551 is in your PATH or set the PKG_CONFIG environment variable to the full
24552 path to pkg-config.
24553
24554 Alternatively, you may set the environment variables LIBICAL_CFLAGS
24555 and LIBICAL_LIBS to avoid the need to call pkg-config.
24556 See the pkg-config man page for more details.
24557
24558 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24559 See \`config.log' for more details" "$LINENO" 5; }
24560 else
24561         LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
24562         LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
24563         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24564 $as_echo "yes" >&6; }
24565
24566 fi
24567 else
24568         LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
24569         LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
24570         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24571 $as_echo "yes" >&6; }
24572         true
24573 fi
24574 fi
24575
24576 if test "$need_ical" = "yes"; then
24577
24578 $as_echo "#define ENABLE_ICAL 1" >>confdefs.h
24579
24580 fi
24581  if test "$need_ical" = "yes"; then
24582   ENABLE_ICAL_TRUE=
24583   ENABLE_ICAL_FALSE='#'
24584 else
24585   ENABLE_ICAL_TRUE='#'
24586   ENABLE_ICAL_FALSE=
24587 fi
24588
24589
24590 # Check for Qt if some backend needs it.
24591 if test "$need_qt_modules"; then
24592    echo "$as_me: this is autotroll.m4 serial 5" >&5
24593
24594   test x"$TROLL" != x && echo 'ViM rox emacs.'
24595
24596
24597 # Check whether --with-qt was given.
24598 if test "${with_qt+set}" = set; then :
24599   withval=$with_qt; QT_PATH=$withval
24600 fi
24601
24602
24603   # this is a hack to get decent flow control with 'break'
24604   for _qt_ignored in once; do
24605
24606   # Find Qt.
24607
24608   if test -d /usr/local/Trolltech; then
24609     # Try to find the latest version.
24610     tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
24611                                               | xargs | sed 's/  */:/g'`
24612   fi
24613   # Path to which recent MacPorts (~v1.7) install Qt4.
24614   test -d /opt/local/libexec/qt4-mac/bin \
24615     && tmp_qt_paths="$tmp_qt_paths:/opt/local/libexec/qt4-mac/bin"
24616
24617   # Find qmake.
24618
24619   for ac_prog in qmake qmake-qt4 qmake-qt3
24620 do
24621   # Extract the first word of "$ac_prog", so it can be a program name with args.
24622 set dummy $ac_prog; ac_word=$2
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24624 $as_echo_n "checking for $ac_word... " >&6; }
24625 if ${ac_cv_path_QMAKE+:} false; then :
24626   $as_echo_n "(cached) " >&6
24627 else
24628   case $QMAKE in
24629   [\\/]* | ?:[\\/]*)
24630   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
24631   ;;
24632   *)
24633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24634 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
24635 for as_dir in $as_dummy
24636 do
24637   IFS=$as_save_IFS
24638   test -z "$as_dir" && as_dir=.
24639     for ac_exec_ext in '' $ac_executable_extensions; do
24640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24641     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
24642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24643     break 2
24644   fi
24645 done
24646   done
24647 IFS=$as_save_IFS
24648
24649   ;;
24650 esac
24651 fi
24652 QMAKE=$ac_cv_path_QMAKE
24653 if test -n "$QMAKE"; then
24654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
24655 $as_echo "$QMAKE" >&6; }
24656 else
24657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24658 $as_echo "no" >&6; }
24659 fi
24660
24661
24662   test -n "$QMAKE" && break
24663 done
24664 test -n "$QMAKE" || QMAKE="missing"
24665
24666   if test x"$QMAKE" = xmissing; then
24667     as_fn_error $? "Cannot find qmake in your PATH. Try using --with-qt." "$LINENO" 5
24668     break
24669   fi
24670
24671   # Find moc (Meta Object Compiler).
24672
24673   for ac_prog in moc moc-qt4 moc-qt3
24674 do
24675   # Extract the first word of "$ac_prog", so it can be a program name with args.
24676 set dummy $ac_prog; ac_word=$2
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24678 $as_echo_n "checking for $ac_word... " >&6; }
24679 if ${ac_cv_path_MOC+:} false; then :
24680   $as_echo_n "(cached) " >&6
24681 else
24682   case $MOC in
24683   [\\/]* | ?:[\\/]*)
24684   ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
24685   ;;
24686   *)
24687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24688 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
24689 for as_dir in $as_dummy
24690 do
24691   IFS=$as_save_IFS
24692   test -z "$as_dir" && as_dir=.
24693     for ac_exec_ext in '' $ac_executable_extensions; do
24694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24695     ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
24696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24697     break 2
24698   fi
24699 done
24700   done
24701 IFS=$as_save_IFS
24702
24703   ;;
24704 esac
24705 fi
24706 MOC=$ac_cv_path_MOC
24707 if test -n "$MOC"; then
24708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
24709 $as_echo "$MOC" >&6; }
24710 else
24711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24712 $as_echo "no" >&6; }
24713 fi
24714
24715
24716   test -n "$MOC" && break
24717 done
24718 test -n "$MOC" || MOC="missing"
24719
24720   if test x"$MOC" = xmissing; then
24721     as_fn_error $? "Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
24722     break
24723   fi
24724
24725   # Find uic (User Interface Compiler).
24726
24727   for ac_prog in uic uic-qt4 uic-qt3 uic3
24728 do
24729   # Extract the first word of "$ac_prog", so it can be a program name with args.
24730 set dummy $ac_prog; ac_word=$2
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24732 $as_echo_n "checking for $ac_word... " >&6; }
24733 if ${ac_cv_path_UIC+:} false; then :
24734   $as_echo_n "(cached) " >&6
24735 else
24736   case $UIC in
24737   [\\/]* | ?:[\\/]*)
24738   ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
24739   ;;
24740   *)
24741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24742 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
24743 for as_dir in $as_dummy
24744 do
24745   IFS=$as_save_IFS
24746   test -z "$as_dir" && as_dir=.
24747     for ac_exec_ext in '' $ac_executable_extensions; do
24748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24749     ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
24750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24751     break 2
24752   fi
24753 done
24754   done
24755 IFS=$as_save_IFS
24756
24757   ;;
24758 esac
24759 fi
24760 UIC=$ac_cv_path_UIC
24761 if test -n "$UIC"; then
24762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
24763 $as_echo "$UIC" >&6; }
24764 else
24765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24766 $as_echo "no" >&6; }
24767 fi
24768
24769
24770   test -n "$UIC" && break
24771 done
24772 test -n "$UIC" || UIC="missing"
24773
24774   if test x"$UIC" = xmissing; then
24775     as_fn_error $? "Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
24776     break
24777   fi
24778
24779   # Find rcc (Qt Resource Compiler).
24780
24781   for ac_prog in rcc
24782 do
24783   # Extract the first word of "$ac_prog", so it can be a program name with args.
24784 set dummy $ac_prog; ac_word=$2
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24786 $as_echo_n "checking for $ac_word... " >&6; }
24787 if ${ac_cv_path_RCC+:} false; then :
24788   $as_echo_n "(cached) " >&6
24789 else
24790   case $RCC in
24791   [\\/]* | ?:[\\/]*)
24792   ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
24793   ;;
24794   *)
24795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24796 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
24797 for as_dir in $as_dummy
24798 do
24799   IFS=$as_save_IFS
24800   test -z "$as_dir" && as_dir=.
24801     for ac_exec_ext in '' $ac_executable_extensions; do
24802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24803     ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
24804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24805     break 2
24806   fi
24807 done
24808   done
24809 IFS=$as_save_IFS
24810
24811   ;;
24812 esac
24813 fi
24814 RCC=$ac_cv_path_RCC
24815 if test -n "$RCC"; then
24816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5
24817 $as_echo "$RCC" >&6; }
24818 else
24819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24820 $as_echo "no" >&6; }
24821 fi
24822
24823
24824   test -n "$RCC" && break
24825 done
24826 test -n "$RCC" || RCC="false"
24827
24828   if test x"$UIC" = xfalse; then
24829     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH.\
24830   Try using --with-qt." >&5
24831 $as_echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH.\
24832   Try using --with-qt." >&2;}
24833   fi
24834
24835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host operating system is Darwin" >&5
24836 $as_echo_n "checking whether host operating system is Darwin... " >&6; }
24837   at_darwin=no
24838   at_qmake_args=
24839   case $host_os in
24840     darwin*)
24841       at_darwin=yes
24842       at_qmake_args='-spec macx-g++'
24843       ;;
24844   esac
24845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_darwin" >&5
24846 $as_echo "$at_darwin" >&6; }
24847
24848   # If we don't know the path to Qt, guess it from the path to qmake.
24849   if test x"$QT_PATH" = x; then
24850     QT_PATH=`dirname "$QMAKE"`
24851   fi
24852   if test x"$QT_PATH" = x; then
24853     as_fn_error $? "Cannot find the path to your Qt install. Use --with-qt." "$LINENO" 5
24854     break
24855   fi
24856
24857
24858   # Get ready to build a test-app with Qt.
24859   if mkdir conftest.dir && cd conftest.dir; then :; else
24860     as_fn_error $? "Cannot mkdir conftest.dir or cd to that directory." "$LINENO" 5
24861     break
24862   fi
24863
24864   cat >conftest.h <<_ASEOF
24865 #include <QObject>
24866
24867 class Foo: public QObject
24868 {
24869   Q_OBJECT;
24870 public:
24871   Foo();
24872   ~Foo() {}
24873 public Q_SLOTS:
24874   void setValue(int value);
24875 Q_SIGNALS:
24876   void valueChanged(int newValue);
24877 private:
24878   int value_;
24879 };
24880 _ASEOF
24881
24882   cat >conftest.cpp <<_ASEOF
24883 #include "conftest.h"
24884 Foo::Foo()
24885   : value_ (42)
24886 {
24887   connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
24888 }
24889
24890 void Foo::setValue(int value)
24891 {
24892   value_ = value;
24893 }
24894
24895 int main()
24896 {
24897   Foo f;
24898 }
24899 _ASEOF
24900   if $QMAKE -project; then :; else
24901     as_fn_error $? "Calling $QMAKE -project failed." "$LINENO" 5
24902     break
24903   fi
24904
24905   # Find the .pro file generated by qmake.
24906   pro_file='conftest.dir.pro'
24907   test -f $pro_file || pro_file=`echo *.pro`
24908   if test -f "$pro_file"; then :; else
24909     as_fn_error $? "Can't find the .pro file generated by Qmake." "$LINENO" 5
24910     break
24911   fi
24912
24913  # Tweak the value of QT in the .pro file for -gui $need_qt_modules.
24914
24915   qt_conf=''
24916   for at_mod in -gui $need_qt_modules; do
24917     at_mod=`echo "$at_mod" | sed 's/^-//; tough
24918                                   s/^+//; beef
24919                                   :ough
24920                                   s/^/QT -= /;n
24921                                   :eef
24922                                   s/^/QT += /'`
24923     qt_conf="$qt_conf
24924 $at_mod"
24925   done
24926   echo "$qt_conf" | sed 1d >>"$pro_file"
24927
24928
24929  # Tweak the value of CONFIG in the .pro file for $qt_config.
24930
24931   qt_conf=''
24932   for at_mod in $qt_config; do
24933     at_mod=`echo "$at_mod" | sed 's/^-//; tough
24934                                   s/^+//; beef
24935                                   :ough
24936                                   s/^/CONFIG -= /;n
24937                                   :eef
24938                                   s/^/CONFIG += /'`
24939     qt_conf="$qt_conf
24940 $at_mod"
24941   done
24942   echo "$qt_conf" | sed 1d >>"$pro_file"
24943
24944
24945  # Add the extra-settings the user wants to set in the .pro
24946   echo "$qt_misc" >>"$pro_file"
24947
24948
24949   echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
24950   sed 's/^/| /' "$pro_file" >&5
24951
24952   if $QMAKE $at_qmake_args; then :; else
24953     as_fn_error $? "Calling $QMAKE $at_qmake_args failed." "$LINENO" 5
24954     break
24955   fi
24956
24957   # QMake has a very annoying misfeature: sometimes it generates Makefiles
24958   # where all the references to the files from the Qt installation are
24959   # relative.  We can't use them as-is because if we take, say, a
24960   # -I../../usr/include/Qt from that Makefile, the flag is invalid as soon
24961   # as we use it in another (sub) directory.  So what this perl pass does is
24962   # that it rewrite all relative paths to absolute paths.  Another problem
24963   # when building on Cygwin is that QMake mixes paths with blackslashes and
24964   # forward slashes and paths must be handled with extra care because of the
24965   # stupid Windows drive letters.
24966   echo "$as_me:$LINENO: fixing the Makefiles:" Makefile* >&5
24967   cat >fixmk.pl <<\EOF
24968 use strict;
24969 use Cwd qw(cwd abs_path);
24970 # This variable is useful on Cygwin for the following reason: Say that you are
24971 # in `/' (that is, in fact you are in C:/cygwin, or something like that) if you
24972 # `cd ..' then obviously you remain in `/' (that is in C:/cygwin).  QMake
24973 # generates paths that are relative to C:/ (or another driver letter, whatever)
24974 # so the trick to get the `..' resolved properly is to prepend the absolute
24975 # path of the current working directory in a Windows-style.  C:/cygwin/../ will
24976 # properly become C:/.
24977 my $d = "";
24978 my $r2a = 0;
24979 my $b2f = 0;
24980
24981 my $cygwin = 0;
24982 if ($^O eq "cygwin") {
24983   $cygwin = 1;
24984   $d = cwd();
24985   $d = `cygpath --mixed '$d'`;
24986   chomp($d);
24987   $d .= "/";
24988 }
24989
24990 sub rel2abs($)
24991 {
24992   my $p = $d . shift;
24993   # print "r2a p=$p";
24994   -e $p || return $p;
24995   if ($cygwin) {
24996     $p = `cygpath --mixed '$p'`;
24997     chomp($p);
24998   }
24999   else {
25000     # Do not use abs_path on Cygwin: it incorrectly resolves the paths that are
25001     # relative to C:/ rather than `/'.
25002     $p = abs_path($p);
25003   }
25004   # print " -> $p\n";
25005   ++$r2a;
25006   return $p;
25007 }
25008
25009 # Only useful on Cygwin.
25010 sub back2forward($)
25011 {
25012   my $p = shift;
25013   # print "b2f p=$p";
25014   -e $p || return $p;
25015   $p = `cygpath --mixed '$p'`;
25016   chomp($p);
25017   # print " -> $p\n";
25018   ++$b2f;
25019   return $p;
25020 }
25021
25022 foreach my $mk (@ARGV)
25023 {
25024   next if $mk =~ /~$/;
25025   open(MK, $mk) or die("open $mk: $!");
25026   # print "mk=$mk\n";
25027   my $file = join("", <MK>);
25028   close(MK) or die("close $mk: $!");
25029   rename $mk, $mk . "~" or die("rename $mk: $!");
25030   $file =~ s{(?:\.\.[\\/])+(?:[^"'\s:]+)}{rel2abs($&)}gse;
25031   $file =~ s{(?:[a-zA-Z]:[\\/])?(?:[^"\s]+\\[^"\s:]+)+}
25032             {back2forward($&)}gse if $cygwin;
25033   open(MK, ">", $mk) or die("open >$mk: $!");
25034   print MK $file;
25035   close(MK) or die("close >$mk: $!");
25036   print "$mk: updated $r2a relative paths and $b2f backslash-style paths\n";
25037   $r2a = 0;
25038   $b2f = 0;
25039 }
25040 EOF
25041
25042   perl >&5 -w fixmk.pl Makefile* ||
25043   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to fix the Makefiles generated by $QMAKE" >&5
25044 $as_echo "$as_me: WARNING: failed to fix the Makefiles generated by $QMAKE" >&2;}
25045   rm -f fixmk.pl
25046
25047   # Try to compile a simple Qt app.
25048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a simple Qt app" >&5
25049 $as_echo_n "checking whether we can build a simple Qt app... " >&6; }
25050 if ${at_cv_qt_build+:} false; then :
25051   $as_echo_n "(cached) " >&6
25052 else
25053   at_cv_qt_build=ko
25054   : ${MAKE=make}
25055
25056   if $MAKE >&5 2>&1; then
25057     at_cv_qt_build='ok, looks like Qt 4'
25058   else
25059     echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
25060 instead" >&5
25061     sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
25062     if $MAKE >&5 2>&1; then
25063       at_cv_qt_build='ok, looks like Qt 3'
25064     else
25065       # Sometimes (such as on Debian) build will fail because Qt hasn't been
25066       # installed in debug mode and qmake tries (by default) to build apps in
25067       # debug mode => Try again in release mode.
25068       echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
25069             >&5
25070
25071        # Tweak the value of CONFIG in the .pro file for +release.
25072
25073   qt_conf=''
25074   for at_mod in +release; do
25075     at_mod=`echo "$at_mod" | sed 's/^-//; tough
25076                                   s/^+//; beef
25077                                   :ough
25078                                   s/^/CONFIG -= /;n
25079                                   :eef
25080                                   s/^/CONFIG += /'`
25081     qt_conf="$qt_conf
25082 $at_mod"
25083   done
25084   echo "$qt_conf" | sed 1d >>"$pro_file"
25085
25086
25087       sed 's/<qobject.h>/<QObject>/' conftest.h > tmp.h && mv tmp.h conftest.h
25088       if $MAKE >&5 2>&1; then
25089         at_cv_qt_build='ok, looks like Qt 4, release mode forced'
25090       else
25091         echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
25092 instead" >&5
25093         sed 's/<QObject>/<qobject.h>/' conftest.h >tmp.h && mv tmp.h conftest.h
25094         if $MAKE >&5 2>&1; then
25095           at_cv_qt_build='ok, looks like Qt 3, release mode forced'
25096         else
25097           at_cv_qt_build=ko
25098           echo "$as_me:$LINENO: failed program was:" >&5
25099           sed 's/^/| /' conftest.h >&5
25100           echo "$as_me:$LINENO: failed program was:" >&5
25101           sed 's/^/| /' conftest.cpp >&5
25102         fi # if make with Qt3-style #include and release mode forced.
25103       fi # if make with Qt4-style #include and release mode forced.
25104     fi # if make with Qt3-style #include.
25105   fi # if make with Qt4-style #include.
25106
25107 fi
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_qt_build" >&5
25109 $as_echo "$at_cv_qt_build" >&6; }
25110   if test x"$at_cv_qt_build" = xko; then
25111     as_fn_error $? "Cannot build a test Qt program" "$LINENO" 5
25112     cd ..
25113     break
25114   fi
25115   QT_VERSION_MAJOR=`echo "$at_cv_qt_build" | sed 's/[^0-9]*//g'`
25116
25117
25118   # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
25119   # It starts by removing the beginning of the line, removing references to
25120   # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
25121   # all variable uses by QT_.
25122   qt_sed_filter='s///;
25123                  s/$(SUBLIBS)//g;
25124                  s/^ *//;
25125                  s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
25126
25127   # Find the Makefile (qmake happens to generate a fake Makefile which invokes
25128   # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
25129   # Makefile.Release. The reason is that the main difference is that release
25130   # uses -Os and debug -g. We can override -Os by passing another -O but we
25131   # usually don't override -g.
25132   if test -f Makefile.Release; then
25133     at_mfile='Makefile.Release'
25134   else
25135     at_mfile='Makefile'
25136   fi
25137   if test -f $at_mfile; then :; else
25138     as_fn_error $? "Cannot find the Makefile generated by qmake." "$LINENO" 5
25139     cd ..
25140     break
25141   fi
25142
25143   # Find the DEFINES of Qt (should have been named CPPFLAGS).
25144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the DEFINES to use with Qt" >&5
25145 $as_echo_n "checking for the DEFINES to use with Qt... " >&6; }
25146 if ${at_cv_env_QT_DEFINES+:} false; then :
25147   $as_echo_n "(cached) " >&6
25148 else
25149   at_cv_env_QT_DEFINES=`sed "/^DEFINES[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
25150 fi
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_DEFINES" >&5
25152 $as_echo "$at_cv_env_QT_DEFINES" >&6; }
25153   QT_DEFINES=$at_cv_env_QT_DEFINES
25154
25155
25156   # Find the CFLAGS of Qt (We can use Qt in C?!)
25157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CFLAGS to use with Qt" >&5
25158 $as_echo_n "checking for the CFLAGS to use with Qt... " >&6; }
25159 if ${at_cv_env_QT_CFLAGS+:} false; then :
25160   $as_echo_n "(cached) " >&6
25161 else
25162   at_cv_env_QT_CFLAGS=`sed "/^CFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
25163 fi
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CFLAGS" >&5
25165 $as_echo "$at_cv_env_QT_CFLAGS" >&6; }
25166   QT_CFLAGS=$at_cv_env_QT_CFLAGS
25167
25168
25169   # Find the CXXFLAGS of Qt.
25170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CXXFLAGS to use with Qt" >&5
25171 $as_echo_n "checking for the CXXFLAGS to use with Qt... " >&6; }
25172 if ${at_cv_env_QT_CXXFLAGS+:} false; then :
25173   $as_echo_n "(cached) " >&6
25174 else
25175   at_cv_env_QT_CXXFLAGS=`sed "/^CXXFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
25176 fi
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CXXFLAGS" >&5
25178 $as_echo "$at_cv_env_QT_CXXFLAGS" >&6; }
25179   QT_CXXFLAGS=$at_cv_env_QT_CXXFLAGS
25180
25181
25182   # Find the INCPATH of Qt.
25183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the INCPATH to use with Qt" >&5
25184 $as_echo_n "checking for the INCPATH to use with Qt... " >&6; }
25185 if ${at_cv_env_QT_INCPATH+:} false; then :
25186   $as_echo_n "(cached) " >&6
25187 else
25188   at_cv_env_QT_INCPATH=`sed "/^INCPATH[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
25189 fi
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_INCPATH" >&5
25191 $as_echo "$at_cv_env_QT_INCPATH" >&6; }
25192   QT_INCPATH=$at_cv_env_QT_INCPATH
25193
25194
25195   QT_CPPFLAGS="$at_cv_env_QT_DEFINES $at_cv_env_QT_INCPATH"
25196
25197
25198   # Find the LFLAGS of Qt (Should have been named LDFLAGS)
25199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LDFLAGS to use with Qt" >&5
25200 $as_echo_n "checking for the LDFLAGS to use with Qt... " >&6; }
25201 if ${at_cv_env_QT_LDFLAGS+:} false; then :
25202   $as_echo_n "(cached) " >&6
25203 else
25204   at_cv_env_QT_LDFLAGS=`sed "/^LFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
25205 fi
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LDFLAGS" >&5
25207 $as_echo "$at_cv_env_QT_LDFLAGS" >&6; }
25208   QT_LFLAGS=$at_cv_env_QT_LDFLAGS
25209
25210   QT_LDFLAGS=$at_cv_env_QT_LDFLAGS
25211
25212
25213   # Find the LIBS of Qt.
25214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LIBS to use with Qt" >&5
25215 $as_echo_n "checking for the LIBS to use with Qt... " >&6; }
25216 if ${at_cv_env_QT_LIBS+:} false; then :
25217   $as_echo_n "(cached) " >&6
25218 else
25219   at_cv_env_QT_LIBS=`sed "/^LIBS[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
25220    if test x$at_darwin = xyes; then
25221      # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
25222      # -F properly. The "bug" has been fixed on 22 October 2006
25223      # by Peter O'Gorman but we provide backward compatibility here.
25224      at_cv_env_QT_LIBS=`echo "$at_cv_env_QT_LIBS" \
25225                              | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
25226    fi
25227
25228 fi
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LIBS" >&5
25230 $as_echo "$at_cv_env_QT_LIBS" >&6; }
25231   QT_LIBS=$at_cv_env_QT_LIBS
25232
25233
25234   cd .. && rm -rf conftest.dir
25235
25236   # Run the user code
25237
25238
25239   done  # end hack (useless for to be able to use break)
25240
25241 fi
25242
25243 # determine from where we can get a SHA-256 implementation
25244 have_sha="no"
25245 if test "$GLIBFOUND" = "yes"; then
25246    # only use glib if we need it anyway, also has to be at lease 2.16
25247
25248 pkg_failed=no
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB216" >&5
25250 $as_echo_n "checking for GLIB216... " >&6; }
25251
25252 if test -n "$GLIB216_CFLAGS"; then
25253     pkg_cv_GLIB216_CFLAGS="$GLIB216_CFLAGS"
25254  elif test -n "$PKG_CONFIG"; then
25255     if test -n "$PKG_CONFIG" && \
25256     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
25257   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
25258   ac_status=$?
25259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25260   test $ac_status = 0; }; then
25261   pkg_cv_GLIB216_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 2>/dev/null`
25262                       test "x$?" != "x0" && pkg_failed=yes
25263 else
25264   pkg_failed=yes
25265 fi
25266  else
25267     pkg_failed=untried
25268 fi
25269 if test -n "$GLIB216_LIBS"; then
25270     pkg_cv_GLIB216_LIBS="$GLIB216_LIBS"
25271  elif test -n "$PKG_CONFIG"; then
25272     if test -n "$PKG_CONFIG" && \
25273     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
25274   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
25275   ac_status=$?
25276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25277   test $ac_status = 0; }; then
25278   pkg_cv_GLIB216_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null`
25279                       test "x$?" != "x0" && pkg_failed=yes
25280 else
25281   pkg_failed=yes
25282 fi
25283  else
25284     pkg_failed=untried
25285 fi
25286
25287
25288
25289 if test $pkg_failed = yes; then
25290         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25291 $as_echo "no" >&6; }
25292
25293 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25294         _pkg_short_errors_supported=yes
25295 else
25296         _pkg_short_errors_supported=no
25297 fi
25298         if test $_pkg_short_errors_supported = yes; then
25299                 GLIB216_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1`
25300         else
25301                 GLIB216_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1`
25302         fi
25303         # Put the nasty error message in config.log where it belongs
25304         echo "$GLIB216_PKG_ERRORS" >&5
25305
25306         true
25307 elif test $pkg_failed = untried; then
25308         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25309 $as_echo "no" >&6; }
25310         true
25311 else
25312         GLIB216_CFLAGS=$pkg_cv_GLIB216_CFLAGS
25313         GLIB216_LIBS=$pkg_cv_GLIB216_LIBS
25314         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25315 $as_echo "yes" >&6; }
25316
25317 $as_echo "#define USE_SHA256 1" >>confdefs.h
25318
25319                       have_sha="glib"
25320 fi
25321 fi
25322 if test "$have_sha" = "no"; then
25323    # Fallback is Mozilla NSS. In contrast to libgcrypt it has a .pc
25324    # file and a simple API.
25325
25326 pkg_failed=no
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
25328 $as_echo_n "checking for NSS... " >&6; }
25329
25330 if test -n "$NSS_CFLAGS"; then
25331     pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
25332  elif test -n "$PKG_CONFIG"; then
25333     if test -n "$PKG_CONFIG" && \
25334     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"nss\"\""; } >&5
25335   ($PKG_CONFIG --exists --print-errors ""nss"") 2>&5
25336   ac_status=$?
25337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25338   test $ac_status = 0; }; then
25339   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags ""nss"" 2>/dev/null`
25340                       test "x$?" != "x0" && pkg_failed=yes
25341 else
25342   pkg_failed=yes
25343 fi
25344  else
25345     pkg_failed=untried
25346 fi
25347 if test -n "$NSS_LIBS"; then
25348     pkg_cv_NSS_LIBS="$NSS_LIBS"
25349  elif test -n "$PKG_CONFIG"; then
25350     if test -n "$PKG_CONFIG" && \
25351     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"nss\"\""; } >&5
25352   ($PKG_CONFIG --exists --print-errors ""nss"") 2>&5
25353   ac_status=$?
25354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25355   test $ac_status = 0; }; then
25356   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs ""nss"" 2>/dev/null`
25357                       test "x$?" != "x0" && pkg_failed=yes
25358 else
25359   pkg_failed=yes
25360 fi
25361  else
25362     pkg_failed=untried
25363 fi
25364
25365
25366
25367 if test $pkg_failed = yes; then
25368         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25369 $as_echo "no" >&6; }
25370
25371 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25372         _pkg_short_errors_supported=yes
25373 else
25374         _pkg_short_errors_supported=no
25375 fi
25376         if test $_pkg_short_errors_supported = yes; then
25377                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""nss"" 2>&1`
25378         else
25379                 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""nss"" 2>&1`
25380         fi
25381         # Put the nasty error message in config.log where it belongs
25382         echo "$NSS_PKG_ERRORS" >&5
25383
25384         true
25385 elif test $pkg_failed = untried; then
25386         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25387 $as_echo "no" >&6; }
25388         true
25389 else
25390         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
25391         NSS_LIBS=$pkg_cv_NSS_LIBS
25392         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25393 $as_echo "yes" >&6; }
25394
25395 $as_echo "#define USE_SHA256 2" >>confdefs.h
25396
25397                       have_sha="nss"
25398 fi
25399 fi
25400
25401  if test "$enable_shared" = "yes"; then
25402   ENABLE_MODULES_TRUE=
25403   ENABLE_MODULES_FALSE='#'
25404 else
25405   ENABLE_MODULES_TRUE='#'
25406   ENABLE_MODULES_FALSE=
25407 fi
25408
25409 if test "$enable_shared" = "yes"; then
25410
25411 $as_echo "#define ENABLE_MODULES 1" >>confdefs.h
25412
25413 fi
25414
25415
25416
25417
25418 if test "$host" = "arm-apple-darwin"; then
25419
25420 $as_echo "#define IPHONE 1" >>confdefs.h
25421
25422    DEVICE_TYPE=iPhone
25423 fi
25424
25425 if test "$enable_evolution_compatibility" = "yes"; then
25426
25427 $as_echo "#define EVOLUTION_COMPATIBILITY 1" >>confdefs.h
25428
25429    # don't link against libs wrapped by eds_abi_wrapper (no longer limited to EDS alone...)
25430    ECAL_LIBS=
25431    EBOOK_LIBS=
25432    EPACKAGE_LIBS=
25433    BLUEZ_LIBS=
25434 fi
25435 if test "$enable_evolution_compatibility" = "ical" || test "$enable_evolution_compatibility" = "yes"; then
25436
25437 $as_echo "#define EVOLUTION_ICAL_COMPATIBILITY 1" >>confdefs.h
25438
25439 fi
25440  if test "$enable_evolution_compatibility" = "yes"; then
25441   ENABLE_EVOLUTION_COMPATIBILITY_TRUE=
25442   ENABLE_EVOLUTION_COMPATIBILITY_FALSE='#'
25443 else
25444   ENABLE_EVOLUTION_COMPATIBILITY_TRUE='#'
25445   ENABLE_EVOLUTION_COMPATIBILITY_FALSE=
25446 fi
25447
25448
25449 pkg_failed=no
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL_AVAILABLE" >&5
25451 $as_echo_n "checking for LIBICAL_AVAILABLE... " >&6; }
25452
25453 if test -n "$LIBICAL_AVAILABLE_CFLAGS"; then
25454     pkg_cv_LIBICAL_AVAILABLE_CFLAGS="$LIBICAL_AVAILABLE_CFLAGS"
25455  elif test -n "$PKG_CONFIG"; then
25456     if test -n "$PKG_CONFIG" && \
25457     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical >= 0.43\""; } >&5
25458   ($PKG_CONFIG --exists --print-errors "libical >= 0.43") 2>&5
25459   ac_status=$?
25460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25461   test $ac_status = 0; }; then
25462   pkg_cv_LIBICAL_AVAILABLE_CFLAGS=`$PKG_CONFIG --cflags "libical >= 0.43" 2>/dev/null`
25463                       test "x$?" != "x0" && pkg_failed=yes
25464 else
25465   pkg_failed=yes
25466 fi
25467  else
25468     pkg_failed=untried
25469 fi
25470 if test -n "$LIBICAL_AVAILABLE_LIBS"; then
25471     pkg_cv_LIBICAL_AVAILABLE_LIBS="$LIBICAL_AVAILABLE_LIBS"
25472  elif test -n "$PKG_CONFIG"; then
25473     if test -n "$PKG_CONFIG" && \
25474     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical >= 0.43\""; } >&5
25475   ($PKG_CONFIG --exists --print-errors "libical >= 0.43") 2>&5
25476   ac_status=$?
25477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25478   test $ac_status = 0; }; then
25479   pkg_cv_LIBICAL_AVAILABLE_LIBS=`$PKG_CONFIG --libs "libical >= 0.43" 2>/dev/null`
25480                       test "x$?" != "x0" && pkg_failed=yes
25481 else
25482   pkg_failed=yes
25483 fi
25484  else
25485     pkg_failed=untried
25486 fi
25487
25488
25489
25490 if test $pkg_failed = yes; then
25491         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25492 $as_echo "no" >&6; }
25493
25494 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25495         _pkg_short_errors_supported=yes
25496 else
25497         _pkg_short_errors_supported=no
25498 fi
25499         if test $_pkg_short_errors_supported = yes; then
25500                 LIBICAL_AVAILABLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libical >= 0.43" 2>&1`
25501         else
25502                 LIBICAL_AVAILABLE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libical >= 0.43" 2>&1`
25503         fi
25504         # Put the nasty error message in config.log where it belongs
25505         echo "$LIBICAL_AVAILABLE_PKG_ERRORS" >&5
25506
25507         pass
25508 elif test $pkg_failed = untried; then
25509         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25510 $as_echo "no" >&6; }
25511         pass
25512 else
25513         LIBICAL_AVAILABLE_CFLAGS=$pkg_cv_LIBICAL_AVAILABLE_CFLAGS
25514         LIBICAL_AVAILABLE_LIBS=$pkg_cv_LIBICAL_AVAILABLE_LIBS
25515         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25516 $as_echo "yes" >&6; }
25517
25518 $as_echo "#define HAVE_LIBICAL_R 1" >>confdefs.h
25519
25520 fi
25521
25522 if test "$enable_developer_mode" = "yes"; then
25523 BACKENDS_SEARCH_DIRECTORY="`pwd`/src/backends/"
25524 else
25525 BACKENDS_SEARCH_DIRECTORY='$(libdir)/syncevolution/backends/'
25526 fi
25527
25528 BACKENDS_DIRECTORY='$(libdir)/syncevolution/backends'
25529
25530
25531
25532 # for ActiveSync backend
25533 syncevo_backenddir='$(libdir)'/syncevolution/backends
25534
25535
25536
25537 cat >>confdefs.h <<_ACEOF
25538 #define DEVICE_TYPE "$DEVICE_TYPE"
25539 _ACEOF
25540
25541
25542 for ac_header in stdarg.h valgrind/valgrind.h execinfo.h
25543 do :
25544   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25545 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25546 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25547   cat >>confdefs.h <<_ACEOF
25548 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25549 _ACEOF
25550
25551 fi
25552
25553 done
25554
25555
25556
25557 $as_echo "#define SYNTHESIS 1" >>confdefs.h
25558
25559
25560 # fallback for lack of --with-docdir support in older automake
25561 if test ! "$docdir"; then
25562    docdir = ${datadir}/doc/syncevolution
25563
25564 fi
25565
25566 # Check whether --enable-dbus-timeout-hack was given.
25567 if test "${enable_dbus_timeout_hack+set}" = set; then :
25568   enableval=$enable_dbus_timeout_hack; enable_dbus_timeout_hack=$enableval
25569 else
25570   if test $enable_ebook = "yes" || test $enable_ecal = "yes"; then
25571                   enable_dbus_timeout_hack="yes"
25572                fi
25573 fi
25574
25575 if test "$enable_dbus_timeout_hack" = "yes"; then
25576
25577 $as_echo "#define ENABLE_DBUS_TIMEOUT_HACK 1" >>confdefs.h
25578
25579 fi
25580
25581 # Avoid hard-coding paths in backends. These names are chosen so
25582 # that a backend can alternatively use its own top-level configure
25583 # with PKG_CHECK_MODULES(SYNCEVOLUTION, "syncevolution") to set them.
25584 # need absolute path, use pwd instead of relative $srcdir
25585 #
25586 # When adding something here, remember to also update syncevolution.pc.in.
25587 # -lrt is for clock_gettime() in the Timespec.h inline functions.
25588 SYNCEVOLUTION_CFLAGS=-I`cd $srcdir && pwd`/src
25589 # Linker flags including libsyncevolution.la and some libs.
25590 SYNCEVOLUTION_LIBS="src/syncevo/libsyncevolution.la -lrt"
25591
25592
25593
25594 # invoking syncevolution binary is allowed to fail when cross-compiling
25595  if test "$cross_compiling" = "yes"; then
25596   COND_CROSS_COMPILING_TRUE=
25597   COND_CROSS_COMPILING_FALSE='#'
25598 else
25599   COND_CROSS_COMPILING_TRUE='#'
25600   COND_CROSS_COMPILING_FALSE=
25601 fi
25602
25603
25604 # Set by any of the backends providing a keyring, determines the
25605 # default for the "keyring" option.
25606 if test "$have_keyring" = "yes"; then
25607
25608 $as_echo "#define HAVE_KEYRING 1" >>confdefs.h
25609
25610 fi
25611
25612 ac_config_files="$ac_config_files Makefile src/syncevo/syncevolution.pc src/synthesis-includes/Makefile po/Makefile.in src/dbus/glib/syncevo-dbus.pc"
25613
25614 cat >confcache <<\_ACEOF
25615 # This file is a shell script that caches the results of configure
25616 # tests run on this system so they can be shared between configure
25617 # scripts and configure runs, see configure's option --config-cache.
25618 # It is not useful on other systems.  If it contains results you don't
25619 # want to keep, you may remove or edit it.
25620 #
25621 # config.status only pays attention to the cache file if you give it
25622 # the --recheck option to rerun configure.
25623 #
25624 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25625 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25626 # following values.
25627
25628 _ACEOF
25629
25630 # The following way of writing the cache mishandles newlines in values,
25631 # but we know of no workaround that is simple, portable, and efficient.
25632 # So, we kill variables containing newlines.
25633 # Ultrix sh set writes to stderr and can't be redirected directly,
25634 # and sets the high bit in the cache file unless we assign to the vars.
25635 (
25636   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25637     eval ac_val=\$$ac_var
25638     case $ac_val in #(
25639     *${as_nl}*)
25640       case $ac_var in #(
25641       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25642 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25643       esac
25644       case $ac_var in #(
25645       _ | IFS | as_nl) ;; #(
25646       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25647       *) { eval $ac_var=; unset $ac_var;} ;;
25648       esac ;;
25649     esac
25650   done
25651
25652   (set) 2>&1 |
25653     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25654     *${as_nl}ac_space=\ *)
25655       # `set' does not quote correctly, so add quotes: double-quote
25656       # substitution turns \\\\ into \\, and sed turns \\ into \.
25657       sed -n \
25658         "s/'/'\\\\''/g;
25659           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25660       ;; #(
25661     *)
25662       # `set' quotes correctly as required by POSIX, so do not add quotes.
25663       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25664       ;;
25665     esac |
25666     sort
25667 ) |
25668   sed '
25669      /^ac_cv_env_/b end
25670      t clear
25671      :clear
25672      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25673      t end
25674      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25675      :end' >>confcache
25676 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25677   if test -w "$cache_file"; then
25678     if test "x$cache_file" != "x/dev/null"; then
25679       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25680 $as_echo "$as_me: updating cache $cache_file" >&6;}
25681       if test ! -f "$cache_file" || test -h "$cache_file"; then
25682         cat confcache >"$cache_file"
25683       else
25684         case $cache_file in #(
25685         */* | ?:*)
25686           mv -f confcache "$cache_file"$$ &&
25687           mv -f "$cache_file"$$ "$cache_file" ;; #(
25688         *)
25689           mv -f confcache "$cache_file" ;;
25690         esac
25691       fi
25692     fi
25693   else
25694     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25695 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25696   fi
25697 fi
25698 rm -f confcache
25699
25700 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25701 # Let make expand exec_prefix.
25702 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25703
25704 DEFS=-DHAVE_CONFIG_H
25705
25706 ac_libobjs=
25707 ac_ltlibobjs=
25708 U=
25709 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25710   # 1. Remove the extension, and $U if already installed.
25711   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25712   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25713   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25714   #    will be set to the directory where LIBOBJS objects are built.
25715   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25716   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25717 done
25718 LIBOBJS=$ac_libobjs
25719
25720 LTLIBOBJS=$ac_ltlibobjs
25721
25722
25723  if test -n "$EXEEXT"; then
25724   am__EXEEXT_TRUE=
25725   am__EXEEXT_FALSE='#'
25726 else
25727   am__EXEEXT_TRUE='#'
25728   am__EXEEXT_FALSE=
25729 fi
25730
25731 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25732   as_fn_error $? "conditional \"AMDEP\" was never defined.
25733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25734 fi
25735 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25736   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25738 fi
25739 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25740   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
25741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25742 fi
25743 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25744   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
25745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25746 fi
25747 if test -z "${ENABLE_ICALTZ_UTIL_TRUE}" && test -z "${ENABLE_ICALTZ_UTIL_FALSE}"; then
25748   as_fn_error $? "conditional \"ENABLE_ICALTZ_UTIL\" was never defined.
25749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25750 fi
25751 if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
25752   as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
25753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25754 fi
25755 if test -z "${ENABLE_TESTING_TRUE}" && test -z "${ENABLE_TESTING_FALSE}"; then
25756   as_fn_error $? "conditional \"ENABLE_TESTING\" was never defined.
25757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25758 fi
25759 if test -z "${ENABLE_OBEX_TRUE}" && test -z "${ENABLE_OBEX_FALSE}"; then
25760   as_fn_error $? "conditional \"ENABLE_OBEX\" was never defined.
25761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25762 fi
25763 if test -z "${ENABLE_BLUETOOTH_TRUE}" && test -z "${ENABLE_BLUETOOTH_FALSE}"; then
25764   as_fn_error $? "conditional \"ENABLE_BLUETOOTH\" was never defined.
25765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25766 fi
25767 if test -z "${COND_GTK2_TRUE}" && test -z "${COND_GTK2_FALSE}"; then
25768   as_fn_error $? "conditional \"COND_GTK2\" was never defined.
25769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25770 fi
25771 if test -z "${COND_GUI_TRUE}" && test -z "${COND_GUI_FALSE}"; then
25772   as_fn_error $? "conditional \"COND_GUI\" was never defined.
25773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25774 fi
25775 if test -z "${COND_CORE_TRUE}" && test -z "${COND_CORE_FALSE}"; then
25776   as_fn_error $? "conditional \"COND_CORE\" was never defined.
25777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25778 fi
25779 if test -z "${COND_DBUS_TRUE}" && test -z "${COND_DBUS_FALSE}"; then
25780   as_fn_error $? "conditional \"COND_DBUS\" was never defined.
25781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25782 fi
25783 if test -z "${COND_GIO_GDBUS_TRUE}" && test -z "${COND_GIO_GDBUS_FALSE}"; then
25784   as_fn_error $? "conditional \"COND_GIO_GDBUS\" was never defined.
25785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25786 fi
25787 if test -z "${NOTIFY_COMPATIBILITY_TRUE}" && test -z "${NOTIFY_COMPATIBILITY_FALSE}"; then
25788   as_fn_error $? "conditional \"NOTIFY_COMPATIBILITY\" was never defined.
25789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25790 fi
25791 if test -z "${COND_DBUS_PIM_TRUE}" && test -z "${COND_DBUS_PIM_FALSE}"; then
25792   as_fn_error $? "conditional \"COND_DBUS_PIM\" was never defined.
25793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25794 fi
25795
25796   ac_config_commands="$ac_config_commands po/stamp-it"
25797
25798
25799 if test -z "${COND_MAN_PAGES_TRUE}" && test -z "${COND_MAN_PAGES_FALSE}"; then
25800   as_fn_error $? "conditional \"COND_MAN_PAGES\" was never defined.
25801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25802 fi
25803 if test -z "${COND_HTML_README_TRUE}" && test -z "${COND_HTML_README_FALSE}"; then
25804   as_fn_error $? "conditional \"COND_HTML_README\" was never defined.
25805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25806 fi
25807 if test -z "${ENABLE_GNOME_BLUETOOTH_PANEL_TRUE}" && test -z "${ENABLE_GNOME_BLUETOOTH_PANEL_FALSE}"; then
25808   as_fn_error $? "conditional \"ENABLE_GNOME_BLUETOOTH_PANEL\" was never defined.
25809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25810 fi
25811 if test -z "${COND_DOC_TRUE}" && test -z "${COND_DOC_FALSE}"; then
25812   as_fn_error $? "conditional \"COND_DOC\" was never defined.
25813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25814 fi
25815 if test -z "${BUILD_ACTIVESYNCD_TRUE}" && test -z "${BUILD_ACTIVESYNCD_FALSE}"; then
25816   as_fn_error $? "conditional \"BUILD_ACTIVESYNCD\" was never defined.
25817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25818 fi
25819 if test -z "${ENABLE_AKONADI_TRUE}" && test -z "${ENABLE_AKONADI_FALSE}"; then
25820   as_fn_error $? "conditional \"ENABLE_AKONADI\" was never defined.
25821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25822 fi
25823 if test -z "${ENABLE_ECAL_TRUE}" && test -z "${ENABLE_ECAL_FALSE}"; then
25824   as_fn_error $? "conditional \"ENABLE_ECAL\" was never defined.
25825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25826 fi
25827 if test -z "${USE_GOA_TRUE}" && test -z "${USE_GOA_FALSE}"; then
25828   as_fn_error $? "conditional \"USE_GOA\" was never defined.
25829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25830 fi
25831 if test -z "${USE_KDE_KWALLET_TRUE}" && test -z "${USE_KDE_KWALLET_FALSE}"; then
25832   as_fn_error $? "conditional \"USE_KDE_KWALLET\" was never defined.
25833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25834 fi
25835 if test -z "${USE_GSSO_TRUE}" && test -z "${USE_GSSO_FALSE}"; then
25836   as_fn_error $? "conditional \"USE_GSSO\" was never defined.
25837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25838 fi
25839 if test -z "${USE_UOA_TRUE}" && test -z "${USE_UOA_FALSE}"; then
25840   as_fn_error $? "conditional \"USE_UOA\" was never defined.
25841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25842 fi
25843 if test -z "${NEON_COMPATIBILITY_TRUE}" && test -z "${NEON_COMPATIBILITY_FALSE}"; then
25844   as_fn_error $? "conditional \"NEON_COMPATIBILITY\" was never defined.
25845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25846 fi
25847 if test -z "${ENABLE_QT_DBUS_TRUE}" && test -z "${ENABLE_QT_DBUS_FALSE}"; then
25848   as_fn_error $? "conditional \"ENABLE_QT_DBUS\" was never defined.
25849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25850 fi
25851 if test -z "${ENABLE_ICAL_TRUE}" && test -z "${ENABLE_ICAL_FALSE}"; then
25852   as_fn_error $? "conditional \"ENABLE_ICAL\" was never defined.
25853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25854 fi
25855 if test -z "${ENABLE_MODULES_TRUE}" && test -z "${ENABLE_MODULES_FALSE}"; then
25856   as_fn_error $? "conditional \"ENABLE_MODULES\" was never defined.
25857 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25858 fi
25859 if test -z "${ENABLE_EVOLUTION_COMPATIBILITY_TRUE}" && test -z "${ENABLE_EVOLUTION_COMPATIBILITY_FALSE}"; then
25860   as_fn_error $? "conditional \"ENABLE_EVOLUTION_COMPATIBILITY\" was never defined.
25861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25862 fi
25863 if test -z "${COND_CROSS_COMPILING_TRUE}" && test -z "${COND_CROSS_COMPILING_FALSE}"; then
25864   as_fn_error $? "conditional \"COND_CROSS_COMPILING\" was never defined.
25865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25866 fi
25867
25868 : "${CONFIG_STATUS=./config.status}"
25869 ac_write_fail=0
25870 ac_clean_files_save=$ac_clean_files
25871 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25873 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25874 as_write_fail=0
25875 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25876 #! $SHELL
25877 # Generated by $as_me.
25878 # Run this file to recreate the current configuration.
25879 # Compiler output produced by configure, useful for debugging
25880 # configure, is in config.log if it exists.
25881
25882 debug=false
25883 ac_cs_recheck=false
25884 ac_cs_silent=false
25885
25886 SHELL=\${CONFIG_SHELL-$SHELL}
25887 export SHELL
25888 _ASEOF
25889 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25890 ## -------------------- ##
25891 ## M4sh Initialization. ##
25892 ## -------------------- ##
25893
25894 # Be more Bourne compatible
25895 DUALCASE=1; export DUALCASE # for MKS sh
25896 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25897   emulate sh
25898   NULLCMD=:
25899   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25900   # is contrary to our usage.  Disable this feature.
25901   alias -g '${1+"$@"}'='"$@"'
25902   setopt NO_GLOB_SUBST
25903 else
25904   case `(set -o) 2>/dev/null` in #(
25905   *posix*) :
25906     set -o posix ;; #(
25907   *) :
25908      ;;
25909 esac
25910 fi
25911
25912
25913 as_nl='
25914 '
25915 export as_nl
25916 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25917 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25918 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25919 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25920 # Prefer a ksh shell builtin over an external printf program on Solaris,
25921 # but without wasting forks for bash or zsh.
25922 if test -z "$BASH_VERSION$ZSH_VERSION" \
25923     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25924   as_echo='print -r --'
25925   as_echo_n='print -rn --'
25926 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25927   as_echo='printf %s\n'
25928   as_echo_n='printf %s'
25929 else
25930   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25931     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25932     as_echo_n='/usr/ucb/echo -n'
25933   else
25934     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25935     as_echo_n_body='eval
25936       arg=$1;
25937       case $arg in #(
25938       *"$as_nl"*)
25939         expr "X$arg" : "X\\(.*\\)$as_nl";
25940         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25941       esac;
25942       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25943     '
25944     export as_echo_n_body
25945     as_echo_n='sh -c $as_echo_n_body as_echo'
25946   fi
25947   export as_echo_body
25948   as_echo='sh -c $as_echo_body as_echo'
25949 fi
25950
25951 # The user is always right.
25952 if test "${PATH_SEPARATOR+set}" != set; then
25953   PATH_SEPARATOR=:
25954   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25955     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25956       PATH_SEPARATOR=';'
25957   }
25958 fi
25959
25960
25961 # IFS
25962 # We need space, tab and new line, in precisely that order.  Quoting is
25963 # there to prevent editors from complaining about space-tab.
25964 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25965 # splitting by setting IFS to empty value.)
25966 IFS=" ""        $as_nl"
25967
25968 # Find who we are.  Look in the path if we contain no directory separator.
25969 as_myself=
25970 case $0 in #((
25971   *[\\/]* ) as_myself=$0 ;;
25972   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25973 for as_dir in $PATH
25974 do
25975   IFS=$as_save_IFS
25976   test -z "$as_dir" && as_dir=.
25977     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25978   done
25979 IFS=$as_save_IFS
25980
25981      ;;
25982 esac
25983 # We did not find ourselves, most probably we were run as `sh COMMAND'
25984 # in which case we are not to be found in the path.
25985 if test "x$as_myself" = x; then
25986   as_myself=$0
25987 fi
25988 if test ! -f "$as_myself"; then
25989   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25990   exit 1
25991 fi
25992
25993 # Unset variables that we do not need and which cause bugs (e.g. in
25994 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25995 # suppresses any "Segmentation fault" message there.  '((' could
25996 # trigger a bug in pdksh 5.2.14.
25997 for as_var in BASH_ENV ENV MAIL MAILPATH
25998 do eval test x\${$as_var+set} = xset \
25999   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26000 done
26001 PS1='$ '
26002 PS2='> '
26003 PS4='+ '
26004
26005 # NLS nuisances.
26006 LC_ALL=C
26007 export LC_ALL
26008 LANGUAGE=C
26009 export LANGUAGE
26010
26011 # CDPATH.
26012 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26013
26014
26015 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26016 # ----------------------------------------
26017 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26018 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26019 # script with STATUS, using 1 if that was 0.
26020 as_fn_error ()
26021 {
26022   as_status=$1; test $as_status -eq 0 && as_status=1
26023   if test "$4"; then
26024     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26025     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26026   fi
26027   $as_echo "$as_me: error: $2" >&2
26028   as_fn_exit $as_status
26029 } # as_fn_error
26030
26031
26032 # as_fn_set_status STATUS
26033 # -----------------------
26034 # Set $? to STATUS, without forking.
26035 as_fn_set_status ()
26036 {
26037   return $1
26038 } # as_fn_set_status
26039
26040 # as_fn_exit STATUS
26041 # -----------------
26042 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26043 as_fn_exit ()
26044 {
26045   set +e
26046   as_fn_set_status $1
26047   exit $1
26048 } # as_fn_exit
26049
26050 # as_fn_unset VAR
26051 # ---------------
26052 # Portably unset VAR.
26053 as_fn_unset ()
26054 {
26055   { eval $1=; unset $1;}
26056 }
26057 as_unset=as_fn_unset
26058 # as_fn_append VAR VALUE
26059 # ----------------------
26060 # Append the text in VALUE to the end of the definition contained in VAR. Take
26061 # advantage of any shell optimizations that allow amortized linear growth over
26062 # repeated appends, instead of the typical quadratic growth present in naive
26063 # implementations.
26064 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26065   eval 'as_fn_append ()
26066   {
26067     eval $1+=\$2
26068   }'
26069 else
26070   as_fn_append ()
26071   {
26072     eval $1=\$$1\$2
26073   }
26074 fi # as_fn_append
26075
26076 # as_fn_arith ARG...
26077 # ------------------
26078 # Perform arithmetic evaluation on the ARGs, and store the result in the
26079 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26080 # must be portable across $(()) and expr.
26081 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26082   eval 'as_fn_arith ()
26083   {
26084     as_val=$(( $* ))
26085   }'
26086 else
26087   as_fn_arith ()
26088   {
26089     as_val=`expr "$@" || test $? -eq 1`
26090   }
26091 fi # as_fn_arith
26092
26093
26094 if expr a : '\(a\)' >/dev/null 2>&1 &&
26095    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26096   as_expr=expr
26097 else
26098   as_expr=false
26099 fi
26100
26101 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26102   as_basename=basename
26103 else
26104   as_basename=false
26105 fi
26106
26107 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26108   as_dirname=dirname
26109 else
26110   as_dirname=false
26111 fi
26112
26113 as_me=`$as_basename -- "$0" ||
26114 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26115          X"$0" : 'X\(//\)$' \| \
26116          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26117 $as_echo X/"$0" |
26118     sed '/^.*\/\([^/][^/]*\)\/*$/{
26119             s//\1/
26120             q
26121           }
26122           /^X\/\(\/\/\)$/{
26123             s//\1/
26124             q
26125           }
26126           /^X\/\(\/\).*/{
26127             s//\1/
26128             q
26129           }
26130           s/.*/./; q'`
26131
26132 # Avoid depending upon Character Ranges.
26133 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26134 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26135 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26136 as_cr_digits='0123456789'
26137 as_cr_alnum=$as_cr_Letters$as_cr_digits
26138
26139 ECHO_C= ECHO_N= ECHO_T=
26140 case `echo -n x` in #(((((
26141 -n*)
26142   case `echo 'xy\c'` in
26143   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26144   xy)  ECHO_C='\c';;
26145   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26146        ECHO_T=' ';;
26147   esac;;
26148 *)
26149   ECHO_N='-n';;
26150 esac
26151
26152 rm -f conf$$ conf$$.exe conf$$.file
26153 if test -d conf$$.dir; then
26154   rm -f conf$$.dir/conf$$.file
26155 else
26156   rm -f conf$$.dir
26157   mkdir conf$$.dir 2>/dev/null
26158 fi
26159 if (echo >conf$$.file) 2>/dev/null; then
26160   if ln -s conf$$.file conf$$ 2>/dev/null; then
26161     as_ln_s='ln -s'
26162     # ... but there are two gotchas:
26163     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26164     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26165     # In both cases, we have to default to `cp -pR'.
26166     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26167       as_ln_s='cp -pR'
26168   elif ln conf$$.file conf$$ 2>/dev/null; then
26169     as_ln_s=ln
26170   else
26171     as_ln_s='cp -pR'
26172   fi
26173 else
26174   as_ln_s='cp -pR'
26175 fi
26176 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26177 rmdir conf$$.dir 2>/dev/null
26178
26179
26180 # as_fn_mkdir_p
26181 # -------------
26182 # Create "$as_dir" as a directory, including parents if necessary.
26183 as_fn_mkdir_p ()
26184 {
26185
26186   case $as_dir in #(
26187   -*) as_dir=./$as_dir;;
26188   esac
26189   test -d "$as_dir" || eval $as_mkdir_p || {
26190     as_dirs=
26191     while :; do
26192       case $as_dir in #(
26193       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26194       *) as_qdir=$as_dir;;
26195       esac
26196       as_dirs="'$as_qdir' $as_dirs"
26197       as_dir=`$as_dirname -- "$as_dir" ||
26198 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26199          X"$as_dir" : 'X\(//\)[^/]' \| \
26200          X"$as_dir" : 'X\(//\)$' \| \
26201          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26202 $as_echo X"$as_dir" |
26203     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26204             s//\1/
26205             q
26206           }
26207           /^X\(\/\/\)[^/].*/{
26208             s//\1/
26209             q
26210           }
26211           /^X\(\/\/\)$/{
26212             s//\1/
26213             q
26214           }
26215           /^X\(\/\).*/{
26216             s//\1/
26217             q
26218           }
26219           s/.*/./; q'`
26220       test -d "$as_dir" && break
26221     done
26222     test -z "$as_dirs" || eval "mkdir $as_dirs"
26223   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26224
26225
26226 } # as_fn_mkdir_p
26227 if mkdir -p . 2>/dev/null; then
26228   as_mkdir_p='mkdir -p "$as_dir"'
26229 else
26230   test -d ./-p && rmdir ./-p
26231   as_mkdir_p=false
26232 fi
26233
26234
26235 # as_fn_executable_p FILE
26236 # -----------------------
26237 # Test if FILE is an executable regular file.
26238 as_fn_executable_p ()
26239 {
26240   test -f "$1" && test -x "$1"
26241 } # as_fn_executable_p
26242 as_test_x='test -x'
26243 as_executable_p=as_fn_executable_p
26244
26245 # Sed expression to map a string onto a valid CPP name.
26246 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26247
26248 # Sed expression to map a string onto a valid variable name.
26249 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26250
26251
26252 exec 6>&1
26253 ## ----------------------------------- ##
26254 ## Main body of $CONFIG_STATUS script. ##
26255 ## ----------------------------------- ##
26256 _ASEOF
26257 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26258
26259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26260 # Save the log message, to keep $0 and so on meaningful, and to
26261 # report actual input values of CONFIG_FILES etc. instead of their
26262 # values after options handling.
26263 ac_log="
26264 This file was extended by syncevolution $as_me 1.4.1, which was
26265 generated by GNU Autoconf 2.69.  Invocation command line was
26266
26267   CONFIG_FILES    = $CONFIG_FILES
26268   CONFIG_HEADERS  = $CONFIG_HEADERS
26269   CONFIG_LINKS    = $CONFIG_LINKS
26270   CONFIG_COMMANDS = $CONFIG_COMMANDS
26271   $ $0 $@
26272
26273 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26274 "
26275
26276 _ACEOF
26277
26278 case $ac_config_files in *"
26279 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26280 esac
26281
26282 case $ac_config_headers in *"
26283 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26284 esac
26285
26286
26287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26288 # Files that config.status was made for.
26289 config_files="$ac_config_files"
26290 config_headers="$ac_config_headers"
26291 config_commands="$ac_config_commands"
26292
26293 _ACEOF
26294
26295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26296 ac_cs_usage="\
26297 \`$as_me' instantiates files and other configuration actions
26298 from templates according to the current configuration.  Unless the files
26299 and actions are specified as TAGs, all are instantiated by default.
26300
26301 Usage: $0 [OPTION]... [TAG]...
26302
26303   -h, --help       print this help, then exit
26304   -V, --version    print version number and configuration settings, then exit
26305       --config     print configuration, then exit
26306   -q, --quiet, --silent
26307                    do not print progress messages
26308   -d, --debug      don't remove temporary files
26309       --recheck    update $as_me by reconfiguring in the same conditions
26310       --file=FILE[:TEMPLATE]
26311                    instantiate the configuration file FILE
26312       --header=FILE[:TEMPLATE]
26313                    instantiate the configuration header FILE
26314
26315 Configuration files:
26316 $config_files
26317
26318 Configuration headers:
26319 $config_headers
26320
26321 Configuration commands:
26322 $config_commands
26323
26324 Report bugs to the package provider."
26325
26326 _ACEOF
26327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26328 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26329 ac_cs_version="\\
26330 syncevolution config.status 1.4.1
26331 configured by $0, generated by GNU Autoconf 2.69,
26332   with options \\"\$ac_cs_config\\"
26333
26334 Copyright (C) 2012 Free Software Foundation, Inc.
26335 This config.status script is free software; the Free Software Foundation
26336 gives unlimited permission to copy, distribute and modify it."
26337
26338 ac_pwd='$ac_pwd'
26339 srcdir='$srcdir'
26340 INSTALL='$INSTALL'
26341 MKDIR_P='$MKDIR_P'
26342 AWK='$AWK'
26343 test -n "\$AWK" || AWK=awk
26344 _ACEOF
26345
26346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26347 # The default lists apply if the user does not specify any file.
26348 ac_need_defaults=:
26349 while test $# != 0
26350 do
26351   case $1 in
26352   --*=?*)
26353     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26354     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26355     ac_shift=:
26356     ;;
26357   --*=)
26358     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26359     ac_optarg=
26360     ac_shift=:
26361     ;;
26362   *)
26363     ac_option=$1
26364     ac_optarg=$2
26365     ac_shift=shift
26366     ;;
26367   esac
26368
26369   case $ac_option in
26370   # Handling of the options.
26371   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26372     ac_cs_recheck=: ;;
26373   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26374     $as_echo "$ac_cs_version"; exit ;;
26375   --config | --confi | --conf | --con | --co | --c )
26376     $as_echo "$ac_cs_config"; exit ;;
26377   --debug | --debu | --deb | --de | --d | -d )
26378     debug=: ;;
26379   --file | --fil | --fi | --f )
26380     $ac_shift
26381     case $ac_optarg in
26382     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26383     '') as_fn_error $? "missing file argument" ;;
26384     esac
26385     as_fn_append CONFIG_FILES " '$ac_optarg'"
26386     ac_need_defaults=false;;
26387   --header | --heade | --head | --hea )
26388     $ac_shift
26389     case $ac_optarg in
26390     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26391     esac
26392     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26393     ac_need_defaults=false;;
26394   --he | --h)
26395     # Conflict between --help and --header
26396     as_fn_error $? "ambiguous option: \`$1'
26397 Try \`$0 --help' for more information.";;
26398   --help | --hel | -h )
26399     $as_echo "$ac_cs_usage"; exit ;;
26400   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26401   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26402     ac_cs_silent=: ;;
26403
26404   # This is an error.
26405   -*) as_fn_error $? "unrecognized option: \`$1'
26406 Try \`$0 --help' for more information." ;;
26407
26408   *) as_fn_append ac_config_targets " $1"
26409      ac_need_defaults=false ;;
26410
26411   esac
26412   shift
26413 done
26414
26415 ac_configure_extra_args=
26416
26417 if $ac_cs_silent; then
26418   exec 6>/dev/null
26419   ac_configure_extra_args="$ac_configure_extra_args --silent"
26420 fi
26421
26422 _ACEOF
26423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26424 if \$ac_cs_recheck; then
26425   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26426   shift
26427   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26428   CONFIG_SHELL='$SHELL'
26429   export CONFIG_SHELL
26430   exec "\$@"
26431 fi
26432
26433 _ACEOF
26434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26435 exec 5>>config.log
26436 {
26437   echo
26438   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26439 ## Running $as_me. ##
26440 _ASBOX
26441   $as_echo "$ac_log"
26442 } >&5
26443
26444 _ACEOF
26445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26446 #
26447 # INIT-COMMANDS
26448 #
26449 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26450
26451
26452 # The HP-UX ksh and POSIX shell print the target directory to stdout
26453 # if CDPATH is set.
26454 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26455
26456 sed_quote_subst='$sed_quote_subst'
26457 double_quote_subst='$double_quote_subst'
26458 delay_variable_subst='$delay_variable_subst'
26459 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26460 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26461 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26462 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26463 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26464 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26465 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26466 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26467 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26468 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26469 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26470 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26471 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26472 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26473 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26474 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26475 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26476 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26477 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26478 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26479 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26480 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26481 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26482 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26483 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26484 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26485 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26486 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26487 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26488 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26489 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26490 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26491 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26492 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26493 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26494 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26495 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26496 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26497 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26498 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26499 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26500 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26501 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26502 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26503 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26504 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26505 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26506 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26507 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26508 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26509 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26510 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26511 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26512 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26513 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26514 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26515 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
26516 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26517 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26518 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26519 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26520 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26521 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26522 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26523 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26524 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26525 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26526 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26527 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26528 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26529 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26530 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26531 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26532 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26533 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26534 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26535 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26536 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26537 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26538 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26539 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26540 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26541 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26542 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26543 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26544 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26545 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26546 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26547 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26548 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26549 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26550 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26551 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26552 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26553 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26554 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26555 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26556 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26557 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26558 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26559 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26560 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26561 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26562 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26563 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26564 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26565 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26566 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26567 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26568 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26569 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26570 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26571 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26572 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26573 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26574 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26575 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26576 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26577 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26578 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26579 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26580 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26581 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26582 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26583 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26584 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26585 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26586 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26587 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26588 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26589 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26590 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26591 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26592 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26593 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26594 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26595 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26596 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26597 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26598 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26599 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26600 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26601 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26602 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26603 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26604 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26605 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26606 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26607 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26608 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26609 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26610 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26611 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26612 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26613 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26614 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26615 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26616 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26617 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26618 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26619 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26620 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26621 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26622 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26623 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26624 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26625 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26626 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26627 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26628 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26629 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26630 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26631 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26632 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26633 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26634 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26635 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26636 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26637 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26638 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26639 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26640 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26641 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26642 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26643
26644 LTCC='$LTCC'
26645 LTCFLAGS='$LTCFLAGS'
26646 compiler='$compiler_DEFAULT'
26647
26648 # A function that is used when there is no print builtin or printf.
26649 func_fallback_echo ()
26650 {
26651   eval 'cat <<_LTECHO_EOF
26652 \$1
26653 _LTECHO_EOF'
26654 }
26655
26656 # Quote evaled strings.
26657 for var in SHELL \
26658 ECHO \
26659 PATH_SEPARATOR \
26660 SED \
26661 GREP \
26662 EGREP \
26663 FGREP \
26664 LD \
26665 NM \
26666 LN_S \
26667 lt_SP2NL \
26668 lt_NL2SP \
26669 reload_flag \
26670 OBJDUMP \
26671 deplibs_check_method \
26672 file_magic_cmd \
26673 file_magic_glob \
26674 want_nocaseglob \
26675 DLLTOOL \
26676 sharedlib_from_linklib_cmd \
26677 AR \
26678 AR_FLAGS \
26679 archiver_list_spec \
26680 STRIP \
26681 RANLIB \
26682 CC \
26683 CFLAGS \
26684 compiler \
26685 lt_cv_sys_global_symbol_pipe \
26686 lt_cv_sys_global_symbol_to_cdecl \
26687 lt_cv_sys_global_symbol_to_c_name_address \
26688 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26689 nm_file_list_spec \
26690 lt_prog_compiler_no_builtin_flag \
26691 lt_prog_compiler_pic \
26692 lt_prog_compiler_wl \
26693 lt_prog_compiler_static \
26694 lt_cv_prog_compiler_c_o \
26695 need_locks \
26696 MANIFEST_TOOL \
26697 DSYMUTIL \
26698 NMEDIT \
26699 LIPO \
26700 OTOOL \
26701 OTOOL64 \
26702 shrext_cmds \
26703 export_dynamic_flag_spec \
26704 whole_archive_flag_spec \
26705 compiler_needs_object \
26706 with_gnu_ld \
26707 allow_undefined_flag \
26708 no_undefined_flag \
26709 hardcode_libdir_flag_spec \
26710 hardcode_libdir_separator \
26711 exclude_expsyms \
26712 include_expsyms \
26713 file_list_spec \
26714 variables_saved_for_relink \
26715 libname_spec \
26716 library_names_spec \
26717 soname_spec \
26718 install_override_mode \
26719 finish_eval \
26720 old_striplib \
26721 striplib \
26722 compiler_lib_search_dirs \
26723 predep_objects \
26724 postdep_objects \
26725 predeps \
26726 postdeps \
26727 compiler_lib_search_path \
26728 LD_CXX \
26729 reload_flag_CXX \
26730 compiler_CXX \
26731 lt_prog_compiler_no_builtin_flag_CXX \
26732 lt_prog_compiler_pic_CXX \
26733 lt_prog_compiler_wl_CXX \
26734 lt_prog_compiler_static_CXX \
26735 lt_cv_prog_compiler_c_o_CXX \
26736 export_dynamic_flag_spec_CXX \
26737 whole_archive_flag_spec_CXX \
26738 compiler_needs_object_CXX \
26739 with_gnu_ld_CXX \
26740 allow_undefined_flag_CXX \
26741 no_undefined_flag_CXX \
26742 hardcode_libdir_flag_spec_CXX \
26743 hardcode_libdir_separator_CXX \
26744 exclude_expsyms_CXX \
26745 include_expsyms_CXX \
26746 file_list_spec_CXX \
26747 compiler_lib_search_dirs_CXX \
26748 predep_objects_CXX \
26749 postdep_objects_CXX \
26750 predeps_CXX \
26751 postdeps_CXX \
26752 compiler_lib_search_path_CXX; do
26753     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26754     *[\\\\\\\`\\"\\\$]*)
26755       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26756       ;;
26757     *)
26758       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26759       ;;
26760     esac
26761 done
26762
26763 # Double-quote double-evaled strings.
26764 for var in reload_cmds \
26765 old_postinstall_cmds \
26766 old_postuninstall_cmds \
26767 old_archive_cmds \
26768 extract_expsyms_cmds \
26769 old_archive_from_new_cmds \
26770 old_archive_from_expsyms_cmds \
26771 archive_cmds \
26772 archive_expsym_cmds \
26773 module_cmds \
26774 module_expsym_cmds \
26775 export_symbols_cmds \
26776 prelink_cmds \
26777 postlink_cmds \
26778 postinstall_cmds \
26779 postuninstall_cmds \
26780 finish_cmds \
26781 sys_lib_search_path_spec \
26782 sys_lib_dlsearch_path_spec \
26783 reload_cmds_CXX \
26784 old_archive_cmds_CXX \
26785 old_archive_from_new_cmds_CXX \
26786 old_archive_from_expsyms_cmds_CXX \
26787 archive_cmds_CXX \
26788 archive_expsym_cmds_CXX \
26789 module_cmds_CXX \
26790 module_expsym_cmds_CXX \
26791 export_symbols_cmds_CXX \
26792 prelink_cmds_CXX \
26793 postlink_cmds_CXX; do
26794     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26795     *[\\\\\\\`\\"\\\$]*)
26796       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26797       ;;
26798     *)
26799       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26800       ;;
26801     esac
26802 done
26803
26804 ac_aux_dir='$ac_aux_dir'
26805 xsi_shell='$xsi_shell'
26806 lt_shell_append='$lt_shell_append'
26807
26808 # See if we are running on zsh, and set the options which allow our
26809 # commands through without removal of \ escapes INIT.
26810 if test -n "\${ZSH_VERSION+set}" ; then
26811    setopt NO_GLOB_SUBST
26812 fi
26813
26814
26815     PACKAGE='$PACKAGE'
26816     VERSION='$VERSION'
26817     TIMESTAMP='$TIMESTAMP'
26818     RM='$RM'
26819     ofile='$ofile'
26820
26821
26822
26823
26824
26825
26826
26827 _ACEOF
26828
26829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26830
26831 # Handling of arguments.
26832 for ac_config_target in $ac_config_targets
26833 do
26834   case $ac_config_target in
26835     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26836     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26837     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26838     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26839     "src/backends/signon/accounts/google-caldav.service") CONFIG_FILES="$CONFIG_FILES src/backends/signon/accounts/google-caldav.service" ;;
26840     "src/backends/signon/accounts/google-carddav.service") CONFIG_FILES="$CONFIG_FILES src/backends/signon/accounts/google-carddav.service" ;;
26841     "src/backends/signon/accounts/google.provider") CONFIG_FILES="$CONFIG_FILES src/backends/signon/accounts/google.provider" ;;
26842     "src/dbus/qt/syncevolution-qt-dbus.pc") CONFIG_FILES="$CONFIG_FILES src/dbus/qt/syncevolution-qt-dbus.pc" ;;
26843     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26844     "src/syncevo/syncevolution.pc") CONFIG_FILES="$CONFIG_FILES src/syncevo/syncevolution.pc" ;;
26845     "src/synthesis-includes/Makefile") CONFIG_FILES="$CONFIG_FILES src/synthesis-includes/Makefile" ;;
26846     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
26847     "src/dbus/glib/syncevo-dbus.pc") CONFIG_FILES="$CONFIG_FILES src/dbus/glib/syncevo-dbus.pc" ;;
26848     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
26849
26850   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26851   esac
26852 done
26853
26854
26855 # If the user did not use the arguments to specify the items to instantiate,
26856 # then the envvar interface is used.  Set only those that are not.
26857 # We use the long form for the default assignment because of an extremely
26858 # bizarre bug on SunOS 4.1.3.
26859 if $ac_need_defaults; then
26860   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26861   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26862   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26863 fi
26864
26865 # Have a temporary directory for convenience.  Make it in the build tree
26866 # simply because there is no reason against having it here, and in addition,
26867 # creating and moving files from /tmp can sometimes cause problems.
26868 # Hook for its removal unless debugging.
26869 # Note that there is a small window in which the directory will not be cleaned:
26870 # after its creation but before its name has been assigned to `$tmp'.
26871 $debug ||
26872 {
26873   tmp= ac_tmp=
26874   trap 'exit_status=$?
26875   : "${ac_tmp:=$tmp}"
26876   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26877 ' 0
26878   trap 'as_fn_exit 1' 1 2 13 15
26879 }
26880 # Create a (secure) tmp directory for tmp files.
26881
26882 {
26883   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26884   test -d "$tmp"
26885 }  ||
26886 {
26887   tmp=./conf$$-$RANDOM
26888   (umask 077 && mkdir "$tmp")
26889 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26890 ac_tmp=$tmp
26891
26892 # Set up the scripts for CONFIG_FILES section.
26893 # No need to generate them if there are no CONFIG_FILES.
26894 # This happens for instance with `./config.status config.h'.
26895 if test -n "$CONFIG_FILES"; then
26896
26897
26898 ac_cr=`echo X | tr X '\015'`
26899 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26900 # But we know of no other shell where ac_cr would be empty at this
26901 # point, so we can use a bashism as a fallback.
26902 if test "x$ac_cr" = x; then
26903   eval ac_cr=\$\'\\r\'
26904 fi
26905 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26906 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26907   ac_cs_awk_cr='\\r'
26908 else
26909   ac_cs_awk_cr=$ac_cr
26910 fi
26911
26912 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26913 _ACEOF
26914
26915
26916 {
26917   echo "cat >conf$$subs.awk <<_ACEOF" &&
26918   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26919   echo "_ACEOF"
26920 } >conf$$subs.sh ||
26921   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26922 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26923 ac_delim='%!_!# '
26924 for ac_last_try in false false false false false :; do
26925   . ./conf$$subs.sh ||
26926     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26927
26928   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26929   if test $ac_delim_n = $ac_delim_num; then
26930     break
26931   elif $ac_last_try; then
26932     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26933   else
26934     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26935   fi
26936 done
26937 rm -f conf$$subs.sh
26938
26939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26940 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26941 _ACEOF
26942 sed -n '
26943 h
26944 s/^/S["/; s/!.*/"]=/
26945 p
26946 g
26947 s/^[^!]*!//
26948 :repl
26949 t repl
26950 s/'"$ac_delim"'$//
26951 t delim
26952 :nl
26953 h
26954 s/\(.\{148\}\)..*/\1/
26955 t more1
26956 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26957 p
26958 n
26959 b repl
26960 :more1
26961 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26962 p
26963 g
26964 s/.\{148\}//
26965 t nl
26966 :delim
26967 h
26968 s/\(.\{148\}\)..*/\1/
26969 t more2
26970 s/["\\]/\\&/g; s/^/"/; s/$/"/
26971 p
26972 b
26973 :more2
26974 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26975 p
26976 g
26977 s/.\{148\}//
26978 t delim
26979 ' <conf$$subs.awk | sed '
26980 /^[^""]/{
26981   N
26982   s/\n//
26983 }
26984 ' >>$CONFIG_STATUS || ac_write_fail=1
26985 rm -f conf$$subs.awk
26986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26987 _ACAWK
26988 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26989   for (key in S) S_is_set[key] = 1
26990   FS = "\a"
26991
26992 }
26993 {
26994   line = $ 0
26995   nfields = split(line, field, "@")
26996   substed = 0
26997   len = length(field[1])
26998   for (i = 2; i < nfields; i++) {
26999     key = field[i]
27000     keylen = length(key)
27001     if (S_is_set[key]) {
27002       value = S[key]
27003       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27004       len += length(value) + length(field[++i])
27005       substed = 1
27006     } else
27007       len += 1 + keylen
27008   }
27009
27010   print line
27011 }
27012
27013 _ACAWK
27014 _ACEOF
27015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27016 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27017   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27018 else
27019   cat
27020 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27021   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27022 _ACEOF
27023
27024 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27025 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27026 # trailing colons and then remove the whole line if VPATH becomes empty
27027 # (actually we leave an empty line to preserve line numbers).
27028 if test "x$srcdir" = x.; then
27029   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
27030 h
27031 s///
27032 s/^/:/
27033 s/[      ]*$/:/
27034 s/:\$(srcdir):/:/g
27035 s/:\${srcdir}:/:/g
27036 s/:@srcdir@:/:/g
27037 s/^:*//
27038 s/:*$//
27039 x
27040 s/\(=[   ]*\).*/\1/
27041 G
27042 s/\n//
27043 s/^[^=]*=[       ]*$//
27044 }'
27045 fi
27046
27047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27048 fi # test -n "$CONFIG_FILES"
27049
27050 # Set up the scripts for CONFIG_HEADERS section.
27051 # No need to generate them if there are no CONFIG_HEADERS.
27052 # This happens for instance with `./config.status Makefile'.
27053 if test -n "$CONFIG_HEADERS"; then
27054 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27055 BEGIN {
27056 _ACEOF
27057
27058 # Transform confdefs.h into an awk script `defines.awk', embedded as
27059 # here-document in config.status, that substitutes the proper values into
27060 # config.h.in to produce config.h.
27061
27062 # Create a delimiter string that does not exist in confdefs.h, to ease
27063 # handling of long lines.
27064 ac_delim='%!_!# '
27065 for ac_last_try in false false :; do
27066   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27067   if test -z "$ac_tt"; then
27068     break
27069   elif $ac_last_try; then
27070     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27071   else
27072     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27073   fi
27074 done
27075
27076 # For the awk script, D is an array of macro values keyed by name,
27077 # likewise P contains macro parameters if any.  Preserve backslash
27078 # newline sequences.
27079
27080 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27081 sed -n '
27082 s/.\{148\}/&'"$ac_delim"'/g
27083 t rset
27084 :rset
27085 s/^[     ]*#[    ]*define[       ][      ]*/ /
27086 t def
27087 d
27088 :def
27089 s/\\$//
27090 t bsnl
27091 s/["\\]/\\&/g
27092 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27093 D["\1"]=" \3"/p
27094 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27095 d
27096 :bsnl
27097 s/["\\]/\\&/g
27098 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27099 D["\1"]=" \3\\\\\\n"\\/p
27100 t cont
27101 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27102 t cont
27103 d
27104 :cont
27105 n
27106 s/.\{148\}/&'"$ac_delim"'/g
27107 t clear
27108 :clear
27109 s/\\$//
27110 t bsnlc
27111 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27112 d
27113 :bsnlc
27114 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27115 b cont
27116 ' <confdefs.h | sed '
27117 s/'"$ac_delim"'/"\\\
27118 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27119
27120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27121   for (key in D) D_is_set[key] = 1
27122   FS = "\a"
27123 }
27124 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27125   line = \$ 0
27126   split(line, arg, " ")
27127   if (arg[1] == "#") {
27128     defundef = arg[2]
27129     mac1 = arg[3]
27130   } else {
27131     defundef = substr(arg[1], 2)
27132     mac1 = arg[2]
27133   }
27134   split(mac1, mac2, "(") #)
27135   macro = mac2[1]
27136   prefix = substr(line, 1, index(line, defundef) - 1)
27137   if (D_is_set[macro]) {
27138     # Preserve the white space surrounding the "#".
27139     print prefix "define", macro P[macro] D[macro]
27140     next
27141   } else {
27142     # Replace #undef with comments.  This is necessary, for example,
27143     # in the case of _POSIX_SOURCE, which is predefined and required
27144     # on some systems where configure will not decide to define it.
27145     if (defundef == "undef") {
27146       print "/*", prefix defundef, macro, "*/"
27147       next
27148     }
27149   }
27150 }
27151 { print }
27152 _ACAWK
27153 _ACEOF
27154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27155   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27156 fi # test -n "$CONFIG_HEADERS"
27157
27158
27159 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27160 shift
27161 for ac_tag
27162 do
27163   case $ac_tag in
27164   :[FHLC]) ac_mode=$ac_tag; continue;;
27165   esac
27166   case $ac_mode$ac_tag in
27167   :[FHL]*:*);;
27168   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27169   :[FH]-) ac_tag=-:-;;
27170   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27171   esac
27172   ac_save_IFS=$IFS
27173   IFS=:
27174   set x $ac_tag
27175   IFS=$ac_save_IFS
27176   shift
27177   ac_file=$1
27178   shift
27179
27180   case $ac_mode in
27181   :L) ac_source=$1;;
27182   :[FH])
27183     ac_file_inputs=
27184     for ac_f
27185     do
27186       case $ac_f in
27187       -) ac_f="$ac_tmp/stdin";;
27188       *) # Look for the file first in the build tree, then in the source tree
27189          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27190          # because $ac_f cannot contain `:'.
27191          test -f "$ac_f" ||
27192            case $ac_f in
27193            [\\/$]*) false;;
27194            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27195            esac ||
27196            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27197       esac
27198       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27199       as_fn_append ac_file_inputs " '$ac_f'"
27200     done
27201
27202     # Let's still pretend it is `configure' which instantiates (i.e., don't
27203     # use $as_me), people would be surprised to read:
27204     #    /* config.h.  Generated by config.status.  */
27205     configure_input='Generated from '`
27206           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27207         `' by configure.'
27208     if test x"$ac_file" != x-; then
27209       configure_input="$ac_file.  $configure_input"
27210       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27211 $as_echo "$as_me: creating $ac_file" >&6;}
27212     fi
27213     # Neutralize special characters interpreted by sed in replacement strings.
27214     case $configure_input in #(
27215     *\&* | *\|* | *\\* )
27216        ac_sed_conf_input=`$as_echo "$configure_input" |
27217        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27218     *) ac_sed_conf_input=$configure_input;;
27219     esac
27220
27221     case $ac_tag in
27222     *:-:* | *:-) cat >"$ac_tmp/stdin" \
27223       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27224     esac
27225     ;;
27226   esac
27227
27228   ac_dir=`$as_dirname -- "$ac_file" ||
27229 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27230          X"$ac_file" : 'X\(//\)[^/]' \| \
27231          X"$ac_file" : 'X\(//\)$' \| \
27232          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27233 $as_echo X"$ac_file" |
27234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27235             s//\1/
27236             q
27237           }
27238           /^X\(\/\/\)[^/].*/{
27239             s//\1/
27240             q
27241           }
27242           /^X\(\/\/\)$/{
27243             s//\1/
27244             q
27245           }
27246           /^X\(\/\).*/{
27247             s//\1/
27248             q
27249           }
27250           s/.*/./; q'`
27251   as_dir="$ac_dir"; as_fn_mkdir_p
27252   ac_builddir=.
27253
27254 case "$ac_dir" in
27255 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27256 *)
27257   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27258   # A ".." for each directory in $ac_dir_suffix.
27259   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27260   case $ac_top_builddir_sub in
27261   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27262   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27263   esac ;;
27264 esac
27265 ac_abs_top_builddir=$ac_pwd
27266 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27267 # for backward compatibility:
27268 ac_top_builddir=$ac_top_build_prefix
27269
27270 case $srcdir in
27271   .)  # We are building in place.
27272     ac_srcdir=.
27273     ac_top_srcdir=$ac_top_builddir_sub
27274     ac_abs_top_srcdir=$ac_pwd ;;
27275   [\\/]* | ?:[\\/]* )  # Absolute name.
27276     ac_srcdir=$srcdir$ac_dir_suffix;
27277     ac_top_srcdir=$srcdir
27278     ac_abs_top_srcdir=$srcdir ;;
27279   *) # Relative name.
27280     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27281     ac_top_srcdir=$ac_top_build_prefix$srcdir
27282     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27283 esac
27284 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27285
27286
27287   case $ac_mode in
27288   :F)
27289   #
27290   # CONFIG_FILE
27291   #
27292
27293   case $INSTALL in
27294   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27295   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27296   esac
27297   ac_MKDIR_P=$MKDIR_P
27298   case $MKDIR_P in
27299   [\\/$]* | ?:[\\/]* ) ;;
27300   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27301   esac
27302 _ACEOF
27303
27304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27305 # If the template does not know about datarootdir, expand it.
27306 # FIXME: This hack should be removed a few years after 2.60.
27307 ac_datarootdir_hack=; ac_datarootdir_seen=
27308 ac_sed_dataroot='
27309 /datarootdir/ {
27310   p
27311   q
27312 }
27313 /@datadir@/p
27314 /@docdir@/p
27315 /@infodir@/p
27316 /@localedir@/p
27317 /@mandir@/p'
27318 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27319 *datarootdir*) ac_datarootdir_seen=yes;;
27320 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27321   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27322 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27323 _ACEOF
27324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27325   ac_datarootdir_hack='
27326   s&@datadir@&$datadir&g
27327   s&@docdir@&$docdir&g
27328   s&@infodir@&$infodir&g
27329   s&@localedir@&$localedir&g
27330   s&@mandir@&$mandir&g
27331   s&\\\${datarootdir}&$datarootdir&g' ;;
27332 esac
27333 _ACEOF
27334
27335 # Neutralize VPATH when `$srcdir' = `.'.
27336 # Shell code in configure.ac might set extrasub.
27337 # FIXME: do we really want to maintain this feature?
27338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27339 ac_sed_extra="$ac_vpsub
27340 $extrasub
27341 _ACEOF
27342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27343 :t
27344 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27345 s|@configure_input@|$ac_sed_conf_input|;t t
27346 s&@top_builddir@&$ac_top_builddir_sub&;t t
27347 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27348 s&@srcdir@&$ac_srcdir&;t t
27349 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27350 s&@top_srcdir@&$ac_top_srcdir&;t t
27351 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27352 s&@builddir@&$ac_builddir&;t t
27353 s&@abs_builddir@&$ac_abs_builddir&;t t
27354 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27355 s&@INSTALL@&$ac_INSTALL&;t t
27356 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27357 $ac_datarootdir_hack
27358 "
27359 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27360   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27361
27362 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27363   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27364   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
27365       "$ac_tmp/out"`; test -z "$ac_out"; } &&
27366   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27367 which seems to be undefined.  Please make sure it is defined" >&5
27368 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27369 which seems to be undefined.  Please make sure it is defined" >&2;}
27370
27371   rm -f "$ac_tmp/stdin"
27372   case $ac_file in
27373   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27374   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27375   esac \
27376   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27377  ;;
27378   :H)
27379   #
27380   # CONFIG_HEADER
27381   #
27382   if test x"$ac_file" != x-; then
27383     {
27384       $as_echo "/* $configure_input  */" \
27385       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27386     } >"$ac_tmp/config.h" \
27387       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27388     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27389       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27390 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27391     else
27392       rm -f "$ac_file"
27393       mv "$ac_tmp/config.h" "$ac_file" \
27394         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27395     fi
27396   else
27397     $as_echo "/* $configure_input  */" \
27398       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27399       || as_fn_error $? "could not create -" "$LINENO" 5
27400   fi
27401 # Compute "$ac_file"'s index in $config_headers.
27402 _am_arg="$ac_file"
27403 _am_stamp_count=1
27404 for _am_header in $config_headers :; do
27405   case $_am_header in
27406     $_am_arg | $_am_arg:* )
27407       break ;;
27408     * )
27409       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27410   esac
27411 done
27412 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27413 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27414          X"$_am_arg" : 'X\(//\)[^/]' \| \
27415          X"$_am_arg" : 'X\(//\)$' \| \
27416          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27417 $as_echo X"$_am_arg" |
27418     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27419             s//\1/
27420             q
27421           }
27422           /^X\(\/\/\)[^/].*/{
27423             s//\1/
27424             q
27425           }
27426           /^X\(\/\/\)$/{
27427             s//\1/
27428             q
27429           }
27430           /^X\(\/\).*/{
27431             s//\1/
27432             q
27433           }
27434           s/.*/./; q'`/stamp-h$_am_stamp_count
27435  ;;
27436
27437   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27438 $as_echo "$as_me: executing $ac_file commands" >&6;}
27439  ;;
27440   esac
27441
27442
27443   case $ac_file$ac_mode in
27444     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27445   # Autoconf 2.62 quotes --file arguments for eval, but not when files
27446   # are listed without --file.  Let's play safe and only enable the eval
27447   # if we detect the quoting.
27448   case $CONFIG_FILES in
27449   *\'*) eval set x "$CONFIG_FILES" ;;
27450   *)   set x $CONFIG_FILES ;;
27451   esac
27452   shift
27453   for mf
27454   do
27455     # Strip MF so we end up with the name of the file.
27456     mf=`echo "$mf" | sed -e 's/:.*$//'`
27457     # Check whether this is an Automake generated Makefile or not.
27458     # We used to match only the files named `Makefile.in', but
27459     # some people rename them; so instead we look at the file content.
27460     # Grep'ing the first line is not enough: some people post-process
27461     # each Makefile.in and add a new line on top of each file to say so.
27462     # Grep'ing the whole file is not good either: AIX grep has a line
27463     # limit of 2048, but all sed's we know have understand at least 4000.
27464     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27465       dirpart=`$as_dirname -- "$mf" ||
27466 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27467          X"$mf" : 'X\(//\)[^/]' \| \
27468          X"$mf" : 'X\(//\)$' \| \
27469          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27470 $as_echo X"$mf" |
27471     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27472             s//\1/
27473             q
27474           }
27475           /^X\(\/\/\)[^/].*/{
27476             s//\1/
27477             q
27478           }
27479           /^X\(\/\/\)$/{
27480             s//\1/
27481             q
27482           }
27483           /^X\(\/\).*/{
27484             s//\1/
27485             q
27486           }
27487           s/.*/./; q'`
27488     else
27489       continue
27490     fi
27491     # Extract the definition of DEPDIR, am__include, and am__quote
27492     # from the Makefile without running `make'.
27493     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27494     test -z "$DEPDIR" && continue
27495     am__include=`sed -n 's/^am__include = //p' < "$mf"`
27496     test -z "am__include" && continue
27497     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27498     # When using ansi2knr, U may be empty or an underscore; expand it
27499     U=`sed -n 's/^U = //p' < "$mf"`
27500     # Find all dependency output files, they are included files with
27501     # $(DEPDIR) in their names.  We invoke sed twice because it is the
27502     # simplest approach to changing $(DEPDIR) to its actual value in the
27503     # expansion.
27504     for file in `sed -n "
27505       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27506          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27507       # Make sure the directory exists.
27508       test -f "$dirpart/$file" && continue
27509       fdir=`$as_dirname -- "$file" ||
27510 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27511          X"$file" : 'X\(//\)[^/]' \| \
27512          X"$file" : 'X\(//\)$' \| \
27513          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27514 $as_echo X"$file" |
27515     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27516             s//\1/
27517             q
27518           }
27519           /^X\(\/\/\)[^/].*/{
27520             s//\1/
27521             q
27522           }
27523           /^X\(\/\/\)$/{
27524             s//\1/
27525             q
27526           }
27527           /^X\(\/\).*/{
27528             s//\1/
27529             q
27530           }
27531           s/.*/./; q'`
27532       as_dir=$dirpart/$fdir; as_fn_mkdir_p
27533       # echo "creating $dirpart/$file"
27534       echo '# dummy' > "$dirpart/$file"
27535     done
27536   done
27537 }
27538  ;;
27539     "libtool":C)
27540
27541     # See if we are running on zsh, and set the options which allow our
27542     # commands through without removal of \ escapes.
27543     if test -n "${ZSH_VERSION+set}" ; then
27544       setopt NO_GLOB_SUBST
27545     fi
27546
27547     cfgfile="${ofile}T"
27548     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27549     $RM "$cfgfile"
27550
27551     cat <<_LT_EOF >> "$cfgfile"
27552 #! $SHELL
27553
27554 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27555 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27556 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27557 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27558 #
27559 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27560 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
27561 #                 Foundation, Inc.
27562 #   Written by Gordon Matzigkeit, 1996
27563 #
27564 #   This file is part of GNU Libtool.
27565 #
27566 # GNU Libtool is free software; you can redistribute it and/or
27567 # modify it under the terms of the GNU General Public License as
27568 # published by the Free Software Foundation; either version 2 of
27569 # the License, or (at your option) any later version.
27570 #
27571 # As a special exception to the GNU General Public License,
27572 # if you distribute this file as part of a program or library that
27573 # is built using GNU Libtool, you may include this file under the
27574 # same distribution terms that you use for the rest of that program.
27575 #
27576 # GNU Libtool is distributed in the hope that it will be useful,
27577 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27578 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27579 # GNU General Public License for more details.
27580 #
27581 # You should have received a copy of the GNU General Public License
27582 # along with GNU Libtool; see the file COPYING.  If not, a copy
27583 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27584 # obtained by writing to the Free Software Foundation, Inc.,
27585 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27586
27587
27588 # The names of the tagged configurations supported by this script.
27589 available_tags="CXX "
27590
27591 # ### BEGIN LIBTOOL CONFIG
27592
27593 # Which release of libtool.m4 was used?
27594 macro_version=$macro_version
27595 macro_revision=$macro_revision
27596
27597 # Whether or not to build shared libraries.
27598 build_libtool_libs=$enable_shared
27599
27600 # Whether or not to build static libraries.
27601 build_old_libs=$enable_static
27602
27603 # What type of objects to build.
27604 pic_mode=$pic_mode
27605
27606 # Whether or not to optimize for fast installation.
27607 fast_install=$enable_fast_install
27608
27609 # Shell to use when invoking shell scripts.
27610 SHELL=$lt_SHELL
27611
27612 # An echo program that protects backslashes.
27613 ECHO=$lt_ECHO
27614
27615 # The PATH separator for the build system.
27616 PATH_SEPARATOR=$lt_PATH_SEPARATOR
27617
27618 # The host system.
27619 host_alias=$host_alias
27620 host=$host
27621 host_os=$host_os
27622
27623 # The build system.
27624 build_alias=$build_alias
27625 build=$build
27626 build_os=$build_os
27627
27628 # A sed program that does not truncate output.
27629 SED=$lt_SED
27630
27631 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27632 Xsed="\$SED -e 1s/^X//"
27633
27634 # A grep program that handles long lines.
27635 GREP=$lt_GREP
27636
27637 # An ERE matcher.
27638 EGREP=$lt_EGREP
27639
27640 # A literal string matcher.
27641 FGREP=$lt_FGREP
27642
27643 # A BSD- or MS-compatible name lister.
27644 NM=$lt_NM
27645
27646 # Whether we need soft or hard links.
27647 LN_S=$lt_LN_S
27648
27649 # What is the maximum length of a command?
27650 max_cmd_len=$max_cmd_len
27651
27652 # Object file suffix (normally "o").
27653 objext=$ac_objext
27654
27655 # Executable file suffix (normally "").
27656 exeext=$exeext
27657
27658 # whether the shell understands "unset".
27659 lt_unset=$lt_unset
27660
27661 # turn spaces into newlines.
27662 SP2NL=$lt_lt_SP2NL
27663
27664 # turn newlines into spaces.
27665 NL2SP=$lt_lt_NL2SP
27666
27667 # convert \$build file names to \$host format.
27668 to_host_file_cmd=$lt_cv_to_host_file_cmd
27669
27670 # convert \$build files to toolchain format.
27671 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27672
27673 # An object symbol dumper.
27674 OBJDUMP=$lt_OBJDUMP
27675
27676 # Method to check whether dependent libraries are shared objects.
27677 deplibs_check_method=$lt_deplibs_check_method
27678
27679 # Command to use when deplibs_check_method = "file_magic".
27680 file_magic_cmd=$lt_file_magic_cmd
27681
27682 # How to find potential files when deplibs_check_method = "file_magic".
27683 file_magic_glob=$lt_file_magic_glob
27684
27685 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27686 want_nocaseglob=$lt_want_nocaseglob
27687
27688 # DLL creation program.
27689 DLLTOOL=$lt_DLLTOOL
27690
27691 # Command to associate shared and link libraries.
27692 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27693
27694 # The archiver.
27695 AR=$lt_AR
27696
27697 # Flags to create an archive.
27698 AR_FLAGS=$lt_AR_FLAGS
27699
27700 # How to feed a file listing to the archiver.
27701 archiver_list_spec=$lt_archiver_list_spec
27702
27703 # A symbol stripping program.
27704 STRIP=$lt_STRIP
27705
27706 # Commands used to install an old-style archive.
27707 RANLIB=$lt_RANLIB
27708 old_postinstall_cmds=$lt_old_postinstall_cmds
27709 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27710
27711 # Whether to use a lock for old archive extraction.
27712 lock_old_archive_extraction=$lock_old_archive_extraction
27713
27714 # A C compiler.
27715 LTCC=$lt_CC
27716
27717 # LTCC compiler flags.
27718 LTCFLAGS=$lt_CFLAGS
27719
27720 # Take the output of nm and produce a listing of raw symbols and C names.
27721 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27722
27723 # Transform the output of nm in a proper C declaration.
27724 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27725
27726 # Transform the output of nm in a C name address pair.
27727 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27728
27729 # Transform the output of nm in a C name address pair when lib prefix is needed.
27730 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27731
27732 # Specify filename containing input files for \$NM.
27733 nm_file_list_spec=$lt_nm_file_list_spec
27734
27735 # The root where to search for dependent libraries,and in which our libraries should be installed.
27736 lt_sysroot=$lt_sysroot
27737
27738 # The name of the directory that contains temporary libtool files.
27739 objdir=$objdir
27740
27741 # Used to examine libraries when file_magic_cmd begins with "file".
27742 MAGIC_CMD=$MAGIC_CMD
27743
27744 # Must we lock files when doing compilation?
27745 need_locks=$lt_need_locks
27746
27747 # Manifest tool.
27748 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27749
27750 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27751 DSYMUTIL=$lt_DSYMUTIL
27752
27753 # Tool to change global to local symbols on Mac OS X.
27754 NMEDIT=$lt_NMEDIT
27755
27756 # Tool to manipulate fat objects and archives on Mac OS X.
27757 LIPO=$lt_LIPO
27758
27759 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27760 OTOOL=$lt_OTOOL
27761
27762 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27763 OTOOL64=$lt_OTOOL64
27764
27765 # Old archive suffix (normally "a").
27766 libext=$libext
27767
27768 # Shared library suffix (normally ".so").
27769 shrext_cmds=$lt_shrext_cmds
27770
27771 # The commands to extract the exported symbol list from a shared archive.
27772 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27773
27774 # Variables whose values should be saved in libtool wrapper scripts and
27775 # restored at link time.
27776 variables_saved_for_relink=$lt_variables_saved_for_relink
27777
27778 # Do we need the "lib" prefix for modules?
27779 need_lib_prefix=$need_lib_prefix
27780
27781 # Do we need a version for libraries?
27782 need_version=$need_version
27783
27784 # Library versioning type.
27785 version_type=$version_type
27786
27787 # Shared library runtime path variable.
27788 runpath_var=$runpath_var
27789
27790 # Shared library path variable.
27791 shlibpath_var=$shlibpath_var
27792
27793 # Is shlibpath searched before the hard-coded library search path?
27794 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27795
27796 # Format of library name prefix.
27797 libname_spec=$lt_libname_spec
27798
27799 # List of archive names.  First name is the real one, the rest are links.
27800 # The last name is the one that the linker finds with -lNAME
27801 library_names_spec=$lt_library_names_spec
27802
27803 # The coded name of the library, if different from the real name.
27804 soname_spec=$lt_soname_spec
27805
27806 # Permission mode override for installation of shared libraries.
27807 install_override_mode=$lt_install_override_mode
27808
27809 # Command to use after installation of a shared archive.
27810 postinstall_cmds=$lt_postinstall_cmds
27811
27812 # Command to use after uninstallation of a shared archive.
27813 postuninstall_cmds=$lt_postuninstall_cmds
27814
27815 # Commands used to finish a libtool library installation in a directory.
27816 finish_cmds=$lt_finish_cmds
27817
27818 # As "finish_cmds", except a single script fragment to be evaled but
27819 # not shown.
27820 finish_eval=$lt_finish_eval
27821
27822 # Whether we should hardcode library paths into libraries.
27823 hardcode_into_libs=$hardcode_into_libs
27824
27825 # Compile-time system search path for libraries.
27826 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27827
27828 # Run-time system search path for libraries.
27829 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27830
27831 # Whether dlopen is supported.
27832 dlopen_support=$enable_dlopen
27833
27834 # Whether dlopen of programs is supported.
27835 dlopen_self=$enable_dlopen_self
27836
27837 # Whether dlopen of statically linked programs is supported.
27838 dlopen_self_static=$enable_dlopen_self_static
27839
27840 # Commands to strip libraries.
27841 old_striplib=$lt_old_striplib
27842 striplib=$lt_striplib
27843
27844
27845 # The linker used to build libraries.
27846 LD=$lt_LD
27847
27848 # How to create reloadable object files.
27849 reload_flag=$lt_reload_flag
27850 reload_cmds=$lt_reload_cmds
27851
27852 # Commands used to build an old-style archive.
27853 old_archive_cmds=$lt_old_archive_cmds
27854
27855 # A language specific compiler.
27856 CC=$lt_compiler
27857
27858 # Is the compiler the GNU compiler?
27859 with_gcc=$GCC
27860
27861 # Compiler flag to turn off builtin functions.
27862 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27863
27864 # Additional compiler flags for building library objects.
27865 pic_flag=$lt_lt_prog_compiler_pic
27866
27867 # How to pass a linker flag through the compiler.
27868 wl=$lt_lt_prog_compiler_wl
27869
27870 # Compiler flag to prevent dynamic linking.
27871 link_static_flag=$lt_lt_prog_compiler_static
27872
27873 # Does compiler simultaneously support -c and -o options?
27874 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27875
27876 # Whether or not to add -lc for building shared libraries.
27877 build_libtool_need_lc=$archive_cmds_need_lc
27878
27879 # Whether or not to disallow shared libs when runtime libs are static.
27880 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27881
27882 # Compiler flag to allow reflexive dlopens.
27883 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27884
27885 # Compiler flag to generate shared objects directly from archives.
27886 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27887
27888 # Whether the compiler copes with passing no objects directly.
27889 compiler_needs_object=$lt_compiler_needs_object
27890
27891 # Create an old-style archive from a shared archive.
27892 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27893
27894 # Create a temporary old-style archive to link instead of a shared archive.
27895 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27896
27897 # Commands used to build a shared archive.
27898 archive_cmds=$lt_archive_cmds
27899 archive_expsym_cmds=$lt_archive_expsym_cmds
27900
27901 # Commands used to build a loadable module if different from building
27902 # a shared archive.
27903 module_cmds=$lt_module_cmds
27904 module_expsym_cmds=$lt_module_expsym_cmds
27905
27906 # Whether we are building with GNU ld or not.
27907 with_gnu_ld=$lt_with_gnu_ld
27908
27909 # Flag that allows shared libraries with undefined symbols to be built.
27910 allow_undefined_flag=$lt_allow_undefined_flag
27911
27912 # Flag that enforces no undefined symbols.
27913 no_undefined_flag=$lt_no_undefined_flag
27914
27915 # Flag to hardcode \$libdir into a binary during linking.
27916 # This must work even if \$libdir does not exist
27917 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27918
27919 # Whether we need a single "-rpath" flag with a separated argument.
27920 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27921
27922 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27923 # DIR into the resulting binary.
27924 hardcode_direct=$hardcode_direct
27925
27926 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27927 # DIR into the resulting binary and the resulting library dependency is
27928 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27929 # library is relocated.
27930 hardcode_direct_absolute=$hardcode_direct_absolute
27931
27932 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27933 # into the resulting binary.
27934 hardcode_minus_L=$hardcode_minus_L
27935
27936 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27937 # into the resulting binary.
27938 hardcode_shlibpath_var=$hardcode_shlibpath_var
27939
27940 # Set to "yes" if building a shared library automatically hardcodes DIR
27941 # into the library and all subsequent libraries and executables linked
27942 # against it.
27943 hardcode_automatic=$hardcode_automatic
27944
27945 # Set to yes if linker adds runtime paths of dependent libraries
27946 # to runtime path list.
27947 inherit_rpath=$inherit_rpath
27948
27949 # Whether libtool must link a program against all its dependency libraries.
27950 link_all_deplibs=$link_all_deplibs
27951
27952 # Set to "yes" if exported symbols are required.
27953 always_export_symbols=$always_export_symbols
27954
27955 # The commands to list exported symbols.
27956 export_symbols_cmds=$lt_export_symbols_cmds
27957
27958 # Symbols that should not be listed in the preloaded symbols.
27959 exclude_expsyms=$lt_exclude_expsyms
27960
27961 # Symbols that must always be exported.
27962 include_expsyms=$lt_include_expsyms
27963
27964 # Commands necessary for linking programs (against libraries) with templates.
27965 prelink_cmds=$lt_prelink_cmds
27966
27967 # Commands necessary for finishing linking programs.
27968 postlink_cmds=$lt_postlink_cmds
27969
27970 # Specify filename containing input files.
27971 file_list_spec=$lt_file_list_spec
27972
27973 # How to hardcode a shared library path into an executable.
27974 hardcode_action=$hardcode_action
27975
27976 # The directories searched by this compiler when creating a shared library.
27977 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27978
27979 # Dependencies to place before and after the objects being linked to
27980 # create a shared library.
27981 predep_objects=$lt_predep_objects
27982 postdep_objects=$lt_postdep_objects
27983 predeps=$lt_predeps
27984 postdeps=$lt_postdeps
27985
27986 # The library search path used internally by the compiler when linking
27987 # a shared library.
27988 compiler_lib_search_path=$lt_compiler_lib_search_path
27989
27990 # ### END LIBTOOL CONFIG
27991
27992 _LT_EOF
27993
27994   case $host_os in
27995   aix3*)
27996     cat <<\_LT_EOF >> "$cfgfile"
27997 # AIX sometimes has problems with the GCC collect2 program.  For some
27998 # reason, if we set the COLLECT_NAMES environment variable, the problems
27999 # vanish in a puff of smoke.
28000 if test "X${COLLECT_NAMES+set}" != Xset; then
28001   COLLECT_NAMES=
28002   export COLLECT_NAMES
28003 fi
28004 _LT_EOF
28005     ;;
28006   esac
28007
28008
28009 ltmain="$ac_aux_dir/ltmain.sh"
28010
28011
28012   # We use sed instead of cat because bash on DJGPP gets confused if
28013   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28014   # text mode, it properly converts lines to CR/LF.  This bash problem
28015   # is reportedly fixed, but why not run on old versions too?
28016   sed '$q' "$ltmain" >> "$cfgfile" \
28017      || (rm -f "$cfgfile"; exit 1)
28018
28019   if test x"$xsi_shell" = xyes; then
28020   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
28021 func_dirname ()\
28022 {\
28023 \    case ${1} in\
28024 \      */*) func_dirname_result="${1%/*}${2}" ;;\
28025 \      *  ) func_dirname_result="${3}" ;;\
28026 \    esac\
28027 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
28028   && mv -f "$cfgfile.tmp" "$cfgfile" \
28029     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28030 test 0 -eq $? || _lt_function_replace_fail=:
28031
28032
28033   sed -e '/^func_basename ()$/,/^} # func_basename /c\
28034 func_basename ()\
28035 {\
28036 \    func_basename_result="${1##*/}"\
28037 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
28038   && mv -f "$cfgfile.tmp" "$cfgfile" \
28039     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28040 test 0 -eq $? || _lt_function_replace_fail=:
28041
28042
28043   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
28044 func_dirname_and_basename ()\
28045 {\
28046 \    case ${1} in\
28047 \      */*) func_dirname_result="${1%/*}${2}" ;;\
28048 \      *  ) func_dirname_result="${3}" ;;\
28049 \    esac\
28050 \    func_basename_result="${1##*/}"\
28051 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
28052   && mv -f "$cfgfile.tmp" "$cfgfile" \
28053     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28054 test 0 -eq $? || _lt_function_replace_fail=:
28055
28056
28057   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
28058 func_stripname ()\
28059 {\
28060 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
28061 \    # positional parameters, so assign one to ordinary parameter first.\
28062 \    func_stripname_result=${3}\
28063 \    func_stripname_result=${func_stripname_result#"${1}"}\
28064 \    func_stripname_result=${func_stripname_result%"${2}"}\
28065 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
28066   && mv -f "$cfgfile.tmp" "$cfgfile" \
28067     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28068 test 0 -eq $? || _lt_function_replace_fail=:
28069
28070
28071   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
28072 func_split_long_opt ()\
28073 {\
28074 \    func_split_long_opt_name=${1%%=*}\
28075 \    func_split_long_opt_arg=${1#*=}\
28076 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
28077   && mv -f "$cfgfile.tmp" "$cfgfile" \
28078     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28079 test 0 -eq $? || _lt_function_replace_fail=:
28080
28081
28082   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
28083 func_split_short_opt ()\
28084 {\
28085 \    func_split_short_opt_arg=${1#??}\
28086 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
28087 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
28088   && mv -f "$cfgfile.tmp" "$cfgfile" \
28089     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28090 test 0 -eq $? || _lt_function_replace_fail=:
28091
28092
28093   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
28094 func_lo2o ()\
28095 {\
28096 \    case ${1} in\
28097 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
28098 \      *)    func_lo2o_result=${1} ;;\
28099 \    esac\
28100 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
28101   && mv -f "$cfgfile.tmp" "$cfgfile" \
28102     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28103 test 0 -eq $? || _lt_function_replace_fail=:
28104
28105
28106   sed -e '/^func_xform ()$/,/^} # func_xform /c\
28107 func_xform ()\
28108 {\
28109     func_xform_result=${1%.*}.lo\
28110 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
28111   && mv -f "$cfgfile.tmp" "$cfgfile" \
28112     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28113 test 0 -eq $? || _lt_function_replace_fail=:
28114
28115
28116   sed -e '/^func_arith ()$/,/^} # func_arith /c\
28117 func_arith ()\
28118 {\
28119     func_arith_result=$(( $* ))\
28120 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
28121   && mv -f "$cfgfile.tmp" "$cfgfile" \
28122     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28123 test 0 -eq $? || _lt_function_replace_fail=:
28124
28125
28126   sed -e '/^func_len ()$/,/^} # func_len /c\
28127 func_len ()\
28128 {\
28129     func_len_result=${#1}\
28130 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
28131   && mv -f "$cfgfile.tmp" "$cfgfile" \
28132     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28133 test 0 -eq $? || _lt_function_replace_fail=:
28134
28135 fi
28136
28137 if test x"$lt_shell_append" = xyes; then
28138   sed -e '/^func_append ()$/,/^} # func_append /c\
28139 func_append ()\
28140 {\
28141     eval "${1}+=\\${2}"\
28142 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
28143   && mv -f "$cfgfile.tmp" "$cfgfile" \
28144     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28145 test 0 -eq $? || _lt_function_replace_fail=:
28146
28147
28148   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
28149 func_append_quoted ()\
28150 {\
28151 \    func_quote_for_eval "${2}"\
28152 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
28153 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
28154   && mv -f "$cfgfile.tmp" "$cfgfile" \
28155     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28156 test 0 -eq $? || _lt_function_replace_fail=:
28157
28158
28159   # Save a `func_append' function call where possible by direct use of '+='
28160   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
28161     && mv -f "$cfgfile.tmp" "$cfgfile" \
28162       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28163   test 0 -eq $? || _lt_function_replace_fail=:
28164 else
28165   # Save a `func_append' function call even when '+=' is not available
28166   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
28167     && mv -f "$cfgfile.tmp" "$cfgfile" \
28168       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28169   test 0 -eq $? || _lt_function_replace_fail=:
28170 fi
28171
28172 if test x"$_lt_function_replace_fail" = x":"; then
28173   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
28174 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
28175 fi
28176
28177
28178    mv -f "$cfgfile" "$ofile" ||
28179     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28180   chmod +x "$ofile"
28181
28182
28183     cat <<_LT_EOF >> "$ofile"
28184
28185 # ### BEGIN LIBTOOL TAG CONFIG: CXX
28186
28187 # The linker used to build libraries.
28188 LD=$lt_LD_CXX
28189
28190 # How to create reloadable object files.
28191 reload_flag=$lt_reload_flag_CXX
28192 reload_cmds=$lt_reload_cmds_CXX
28193
28194 # Commands used to build an old-style archive.
28195 old_archive_cmds=$lt_old_archive_cmds_CXX
28196
28197 # A language specific compiler.
28198 CC=$lt_compiler_CXX
28199
28200 # Is the compiler the GNU compiler?
28201 with_gcc=$GCC_CXX
28202
28203 # Compiler flag to turn off builtin functions.
28204 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28205
28206 # Additional compiler flags for building library objects.
28207 pic_flag=$lt_lt_prog_compiler_pic_CXX
28208
28209 # How to pass a linker flag through the compiler.
28210 wl=$lt_lt_prog_compiler_wl_CXX
28211
28212 # Compiler flag to prevent dynamic linking.
28213 link_static_flag=$lt_lt_prog_compiler_static_CXX
28214
28215 # Does compiler simultaneously support -c and -o options?
28216 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28217
28218 # Whether or not to add -lc for building shared libraries.
28219 build_libtool_need_lc=$archive_cmds_need_lc_CXX
28220
28221 # Whether or not to disallow shared libs when runtime libs are static.
28222 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28223
28224 # Compiler flag to allow reflexive dlopens.
28225 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28226
28227 # Compiler flag to generate shared objects directly from archives.
28228 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28229
28230 # Whether the compiler copes with passing no objects directly.
28231 compiler_needs_object=$lt_compiler_needs_object_CXX
28232
28233 # Create an old-style archive from a shared archive.
28234 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
28235
28236 # Create a temporary old-style archive to link instead of a shared archive.
28237 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
28238
28239 # Commands used to build a shared archive.
28240 archive_cmds=$lt_archive_cmds_CXX
28241 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28242
28243 # Commands used to build a loadable module if different from building
28244 # a shared archive.
28245 module_cmds=$lt_module_cmds_CXX
28246 module_expsym_cmds=$lt_module_expsym_cmds_CXX
28247
28248 # Whether we are building with GNU ld or not.
28249 with_gnu_ld=$lt_with_gnu_ld_CXX
28250
28251 # Flag that allows shared libraries with undefined symbols to be built.
28252 allow_undefined_flag=$lt_allow_undefined_flag_CXX
28253
28254 # Flag that enforces no undefined symbols.
28255 no_undefined_flag=$lt_no_undefined_flag_CXX
28256
28257 # Flag to hardcode \$libdir into a binary during linking.
28258 # This must work even if \$libdir does not exist
28259 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28260
28261 # Whether we need a single "-rpath" flag with a separated argument.
28262 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28263
28264 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28265 # DIR into the resulting binary.
28266 hardcode_direct=$hardcode_direct_CXX
28267
28268 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28269 # DIR into the resulting binary and the resulting library dependency is
28270 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28271 # library is relocated.
28272 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28273
28274 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28275 # into the resulting binary.
28276 hardcode_minus_L=$hardcode_minus_L_CXX
28277
28278 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28279 # into the resulting binary.
28280 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28281
28282 # Set to "yes" if building a shared library automatically hardcodes DIR
28283 # into the library and all subsequent libraries and executables linked
28284 # against it.
28285 hardcode_automatic=$hardcode_automatic_CXX
28286
28287 # Set to yes if linker adds runtime paths of dependent libraries
28288 # to runtime path list.
28289 inherit_rpath=$inherit_rpath_CXX
28290
28291 # Whether libtool must link a program against all its dependency libraries.
28292 link_all_deplibs=$link_all_deplibs_CXX
28293
28294 # Set to "yes" if exported symbols are required.
28295 always_export_symbols=$always_export_symbols_CXX
28296
28297 # The commands to list exported symbols.
28298 export_symbols_cmds=$lt_export_symbols_cmds_CXX
28299
28300 # Symbols that should not be listed in the preloaded symbols.
28301 exclude_expsyms=$lt_exclude_expsyms_CXX
28302
28303 # Symbols that must always be exported.
28304 include_expsyms=$lt_include_expsyms_CXX
28305
28306 # Commands necessary for linking programs (against libraries) with templates.
28307 prelink_cmds=$lt_prelink_cmds_CXX
28308
28309 # Commands necessary for finishing linking programs.
28310 postlink_cmds=$lt_postlink_cmds_CXX
28311
28312 # Specify filename containing input files.
28313 file_list_spec=$lt_file_list_spec_CXX
28314
28315 # How to hardcode a shared library path into an executable.
28316 hardcode_action=$hardcode_action_CXX
28317
28318 # The directories searched by this compiler when creating a shared library.
28319 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28320
28321 # Dependencies to place before and after the objects being linked to
28322 # create a shared library.
28323 predep_objects=$lt_predep_objects_CXX
28324 postdep_objects=$lt_postdep_objects_CXX
28325 predeps=$lt_predeps_CXX
28326 postdeps=$lt_postdeps_CXX
28327
28328 # The library search path used internally by the compiler when linking
28329 # a shared library.
28330 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28331
28332 # ### END LIBTOOL TAG CONFIG: CXX
28333 _LT_EOF
28334
28335  ;;
28336     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
28337         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
28338       esac ;;
28339     "po/stamp-it":C)
28340     if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
28341        as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
28342     fi
28343     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
28344     >"po/stamp-it.tmp"
28345     sed '/^#/d
28346          s/^[[].*] *//
28347          /^[    ]*$/d
28348         '"s|^|  $ac_top_srcdir/|" \
28349       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
28350
28351     sed '/^POTFILES =/,/[^\\]$/ {
28352                 /^POTFILES =/!d
28353                 r po/POTFILES
28354           }
28355          ' "po/Makefile.in" >"po/Makefile"
28356     rm -f "po/Makefile.tmp"
28357     mv "po/stamp-it.tmp" "po/stamp-it"
28358    ;;
28359
28360   esac
28361 done # for ac_tag
28362
28363
28364 as_fn_exit 0
28365 _ACEOF
28366 ac_clean_files=$ac_clean_files_save
28367
28368 test $ac_write_fail = 0 ||
28369   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28370
28371
28372 # configure is writing to config.log, and then calls config.status.
28373 # config.status does its own redirection, appending to config.log.
28374 # Unfortunately, on DOS this fails, as config.log is still kept open
28375 # by configure, so config.status won't be able to write to it; its
28376 # output is simply discarded.  So we exec the FD to /dev/null,
28377 # effectively closing config.log, so it can be properly (re)opened and
28378 # appended to by config.status.  When coming back to configure, we
28379 # need to make the FD available again.
28380 if test "$no_create" != yes; then
28381   ac_cs_success=:
28382   ac_config_status_args=
28383   test "$silent" = yes &&
28384     ac_config_status_args="$ac_config_status_args --quiet"
28385   exec 5>/dev/null
28386   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28387   exec 5>>config.log
28388   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28389   # would make configure fail if this is the last instruction.
28390   $ac_cs_success || as_fn_exit 1
28391 fi
28392 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28393   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28394 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28395 fi
28396
28397
28398 echo
28399 echo CONFIGURATION SUMMARY
28400 echo "Core SyncEvolution: $enable_core"
28401 for backend in $BACKENDS; do
28402     eval echo $backend: \${enable_${backend}}
28403 done
28404 echo "DBus service: $enable_dbus_service"
28405 echo "org._01.pim support in DBus service: $enable_dbus_pim"
28406 echo "Notifications: $enable_notify"
28407 echo "GIO GDBus: $with_gio_gdbus"
28408 echo "GNOME keyring: $enable_gnome_keyring"
28409 if test "$enable_gui" = "no"; then
28410     echo "UI (DBus client): no"
28411 else
28412     echo "UI (DBus client): $enable_gui (using $gtk_version)"
28413 fi
28414 echo "Bluetooth transport: $have_bluetooth"
28415 echo "GNOME Bluetooth panel plugin: $enable_gnome_bluetooth_panel"
28416 echo "SHA-256: $have_sha"
28417 echo "API documentation: $enable_doc"
28418 echo "D-Bus Timeout Hack: $enable_dbus_timeout_hack"
28419 echo