update changelog
[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.5.
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.5'
591 PACKAGE_STRING='syncevolution 1.5'
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 GIOUNIX_LIBS
672 GIOUNIX_CFLAGS
673 GIO_LIBS
674 GIO_CFLAGS
675 GOBJECT_LIBS
676 GOBJECT_CFLAGS
677 GTHREAD_LIBS
678 GTHREAD_CFLAGS
679 GLIB_LIBS
680 GLIB_CFLAGS
681 QT_DBUS_LIBS
682 ENABLE_QT_DBUS_FALSE
683 ENABLE_QT_DBUS_TRUE
684 QDBUSXML_TO_CPP
685 XMLRPC_LIBS
686 XMLRPC_CFLAGS
687 XMLRPC_C_CONFIG
688 NEON_COMPATIBILITY_FALSE
689 NEON_COMPATIBILITY_TRUE
690 NEON_LIBS
691 NEON_CFLAGS
692 SQLITE_LIBS
693 SQLITE_CFLAGS
694 GOOGLE_CLIENT_SECRET_CARDDAV
695 GOOGLE_CLIENT_ID_CARDDAV
696 GOOGLE_CLIENT_SECRET_CALDAV
697 GOOGLE_CLIENT_ID_CALDAV
698 GOOGLE_CLIENT_SECRET
699 GOOGLE_CLIENT_ID
700 USE_SIGNON_FALSE
701 USE_SIGNON_TRUE
702 USE_UOA_FALSE
703 USE_UOA_TRUE
704 USE_GSSO_FALSE
705 USE_GSSO_TRUE
706 GOOGLE_MECHANISM
707 GOOGLE_METHOD
708 DEFAULT_SIGNON
709 ACCOUNTS_LIBS
710 ACCOUNTS_CFLAGS
711 UOA_LIBS
712 UOA_CFLAGS
713 GSSO_LIBS
714 GSSO_CFLAGS
715 QT_CONTACTS_LIBS
716 BAP_LIBS
717 PBAP_CFLAGS
718 USE_OAUTH2_FALSE
719 USE_OAUTH2_TRUE
720 JSON_LIBS
721 JSON_CFLAGS
722 MCALB_LIBS
723 MCALB_CFLAGS
724 USE_KDE_KWALLET_FALSE
725 USE_KDE_KWALLET_TRUE
726 KDE_KWALLET_CFLAGS
727 KDE_KWALLET_LIBS
728 KDE4_CONFIG
729 KCALEXTENDED_LIBS
730 KCALEXTENDED_CFLAGS
731 USE_GOA_FALSE
732 USE_GOA_TRUE
733 KEYRING_LIBS
734 KEYRING_CFLAGS
735 FILE_LIBS
736 FILE_CFLAGS
737 EDS_VERSION_LIBS
738 EDS_VERSION_CFLAGS
739 ENABLE_ECAL_FALSE
740 ENABLE_ECAL_TRUE
741 EBOOK_VERSION_LIBS
742 EBOOK_VERSION_CFLAGS
743 EBOOK_LIBS
744 EBOOK_CFLAGS
745 ECAL_LIBS
746 ECAL_CFLAGS
747 EPACKAGE_LIBS
748 EPACKAGE_CFLAGS
749 ENABLE_AKONADI_FALSE
750 ENABLE_AKONADI_TRUE
751 KDEPIM_CFLAGS
752 KDEPIM_LIBS
753 QMAKE
754 EASCLIENT_CFLAGS
755 EASCLIENT_DEPENDENCIES
756 EASCLIENT_LIBS
757 LIBEASCLIENT_LA_DEPENDENCIES
758 BUILD_ACTIVESYNCD_FALSE
759 BUILD_ACTIVESYNCD_TRUE
760 BACKEND_DEFINES
761 SYNCSOURCES
762 COND_DOC_FALSE
763 COND_DOC_TRUE
764 ENABLE_GNOME_BLUETOOTH_PANEL_FALSE
765 ENABLE_GNOME_BLUETOOTH_PANEL_TRUE
766 GNOMEBLUETOOTH_DIR
767 GNOMEBLUETOOTH_LIBS
768 GNOMEBLUETOOTH_CFLAGS
769 BACKEND_CPPFLAGS
770 SYNTHESISSRC
771 SYNTHESIS_LIB
772 SYNTHESIS_ENGINE
773 SYNTHESIS_DEP
774 SYNTHESIS_SUBDIR_INCLUDES
775 SYNTHESIS_SUBDIR
776 SYNTHESIS
777 WITH_SYNTHESIS_SRC_LIBS
778 WITH_SYNTHESIS_SRC_CFLAGS
779 SYNTHESIS_LIBS
780 SYNTHESIS_CFLAGS
781 SYNTHESIS_SRC
782 COND_HTML_README_FALSE
783 COND_HTML_README_TRUE
784 RST2HTML
785 COND_MAN_PAGES_FALSE
786 COND_MAN_PAGES_TRUE
787 RST2MAN
788 PCRECPP_CFLAGS
789 PCRECPP_LIBS
790 GUI_DESKTOP_FILES
791 GUI_PROGRAMS
792 GETTEXT_PACKAGE
793 SYNCEVOLUTION_LOCALEDIR
794 GUI_LIBS
795 GUI_CFLAGS
796 GTK_2_18_LIBS
797 GTK_2_18_CFLAGS
798 UNIQUE_LIBS
799 UNIQUE_CFLAGS
800 MX_GTK_0_99_1_LIBS
801 MX_GTK_0_99_1_CFLAGS
802 GLIB_GENMARSHAL
803 DBUS_BINDING_TOOL
804 MKINSTALLDIRS
805 POSUB
806 POFILES
807 PO_IN_DATADIR_FALSE
808 PO_IN_DATADIR_TRUE
809 INTLLIBS
810 INSTOBJEXT
811 GMOFILES
812 CATOBJEXT
813 CATALOGS
814 MSGFMT_OPTS
815 DATADIRNAME
816 ALL_LINGUAS
817 INTLTOOL_PERL
818 GMSGFMT
819 MSGFMT
820 MSGMERGE
821 XGETTEXT
822 INTLTOOL_POLICY_RULE
823 INTLTOOL_SERVICE_RULE
824 INTLTOOL_THEME_RULE
825 INTLTOOL_SCHEMAS_RULE
826 INTLTOOL_CAVES_RULE
827 INTLTOOL_XML_NOMERGE_RULE
828 INTLTOOL_XML_RULE
829 INTLTOOL_KBD_RULE
830 INTLTOOL_XAM_RULE
831 INTLTOOL_UI_RULE
832 INTLTOOL_SOUNDLIST_RULE
833 INTLTOOL_SHEET_RULE
834 INTLTOOL_SERVER_RULE
835 INTLTOOL_PONG_RULE
836 INTLTOOL_OAF_RULE
837 INTLTOOL_PROP_RULE
838 INTLTOOL_KEYS_RULE
839 INTLTOOL_DIRECTORY_RULE
840 INTLTOOL_DESKTOP_RULE
841 intltool__v_merge_options_0
842 intltool__v_merge_options_
843 INTLTOOL_V_MERGE_OPTIONS
844 INTLTOOL__v_MERGE_0
845 INTLTOOL__v_MERGE_
846 INTLTOOL_V_MERGE
847 INTLTOOL_EXTRACT
848 INTLTOOL_MERGE
849 INTLTOOL_UPDATE
850 USE_NLS
851 DBUS_SERVICES_DIR
852 LIBEXECDIR
853 DBUS_GLIB_LIBS
854 DBUS_GLIB_CFLAGS
855 COND_DBUS_PIM_FALSE
856 COND_DBUS_PIM_TRUE
857 NOTIFY_COMPATIBILITY_FALSE
858 NOTIFY_COMPATIBILITY_TRUE
859 PHONENUMBERS_LIBS
860 PHONENUMBERS_CFLAGS
861 DBUS_PIM_PLUGIN_LDFLAGS
862 DBUS_PIM_PLUGIN_LIBS
863 DBUS_PIM_PLUGIN_CFLAGS
864 ICU_LIBS
865 ICU_CFLAGS
866 BOOST_LOCALE_LIB
867 DBUS_PIM_PLUGIN
868 FOLKS_LIBS
869 FOLKS_CFLAGS
870 MLITE_LIBS
871 MLITE_CFLAGS
872 LIBNOTIFY_LIBS
873 LIBNOTIFY_CFLAGS
874 DBUS_LIBS
875 DBUS_CFLAGS
876 COND_GIO_GDBUS_FALSE
877 COND_GIO_GDBUS_TRUE
878 SYNCEVO_DBUS_SERVER_ARGS
879 COND_DBUS_FALSE
880 COND_DBUS_TRUE
881 COND_CORE_FALSE
882 COND_CORE_TRUE
883 COND_GUI_FALSE
884 COND_GUI_TRUE
885 COND_GTK2_FALSE
886 COND_GTK2_TRUE
887 XSLT
888 TRANSPORT_CFLAGS
889 TRANSPORT_LIBS
890 ENABLE_BLUETOOTH_FALSE
891 ENABLE_BLUETOOTH_TRUE
892 ENABLE_OBEX_FALSE
893 ENABLE_OBEX_TRUE
894 DLT_LIBS
895 DLT_CFLAGS
896 BLUEZ_LIBS
897 BLUEZ_CFLAGS
898 LIBOPENOBEX_LIBS
899 LIBOPENOBEX_CFLAGS
900 LIBSOUP_LIBS
901 LIBSOUP_CFLAGS
902 PKG_CONFIG_LIBDIR
903 PKG_CONFIG_PATH
904 PKG_CONFIG
905 CORE_LDADD_DEP
906 ENABLE_TESTING_FALSE
907 ENABLE_TESTING_TRUE
908 ENABLE_UNIT_TESTS_FALSE
909 ENABLE_UNIT_TESTS_TRUE
910 CPPUNIT_LDFLAGS
911 CPPUNIT_CXXFLAGS
912 CPPUNIT_CONFIG
913 MODIFY_SYNCCOMPARE
914 ENABLE_ICALTZ_UTIL_FALSE
915 ENABLE_ICALTZ_UTIL_TRUE
916 SYNCEVO_WFLAGS
917 BOOST_LDFLAGS
918 BOOST_CPPFLAGS
919 CXXCPP
920 am__fastdepCXX_FALSE
921 am__fastdepCXX_TRUE
922 CXXDEPMODE
923 ac_ct_CXX
924 CXXFLAGS
925 CXX
926 CPP
927 OTOOL64
928 OTOOL
929 LIPO
930 NMEDIT
931 DSYMUTIL
932 MANIFEST_TOOL
933 RANLIB
934 ac_ct_AR
935 AR
936 DLLTOOL
937 OBJDUMP
938 LN_S
939 NM
940 ac_ct_DUMPBIN
941 DUMPBIN
942 LD
943 FGREP
944 EGREP
945 GREP
946 SED
947 host_os
948 host_vendor
949 host_cpu
950 host
951 build_os
952 build_vendor
953 build_cpu
954 build
955 LIBTOOL
956 MAINT
957 MAINTAINER_MODE_FALSE
958 MAINTAINER_MODE_TRUE
959 am__fastdepCC_FALSE
960 am__fastdepCC_TRUE
961 CCDEPMODE
962 am__nodep
963 AMDEPBACKSLASH
964 AMDEP_FALSE
965 AMDEP_TRUE
966 am__quote
967 am__include
968 DEPDIR
969 OBJEXT
970 EXEEXT
971 ac_ct_CC
972 CPPFLAGS
973 LDFLAGS
974 CFLAGS
975 CC
976 AM_BACKSLASH
977 AM_DEFAULT_VERBOSITY
978 AM_DEFAULT_V
979 AM_V
980 am__untar
981 am__tar
982 AMTAR
983 am__leading_dot
984 SET_MAKE
985 AWK
986 mkdir_p
987 MKDIR_P
988 INSTALL_STRIP_PROGRAM
989 STRIP
990 install_sh
991 MAKEINFO
992 AUTOHEADER
993 AUTOMAKE
994 AUTOCONF
995 ACLOCAL
996 VERSION
997 PACKAGE
998 CYGPATH_W
999 am__isrc
1000 INSTALL_DATA
1001 INSTALL_SCRIPT
1002 INSTALL_PROGRAM
1003 STABLE_VERSION
1004 target_alias
1005 host_alias
1006 build_alias
1007 LIBS
1008 ECHO_T
1009 ECHO_N
1010 ECHO_C
1011 DEFS
1012 mandir
1013 localedir
1014 libdir
1015 psdir
1016 pdfdir
1017 dvidir
1018 htmldir
1019 infodir
1020 docdir
1021 oldincludedir
1022 includedir
1023 localstatedir
1024 sharedstatedir
1025 sysconfdir
1026 datadir
1027 datarootdir
1028 libexecdir
1029 sbindir
1030 bindir
1031 program_transform_name
1032 prefix
1033 exec_prefix
1034 PACKAGE_URL
1035 PACKAGE_BUGREPORT
1036 PACKAGE_STRING
1037 PACKAGE_VERSION
1038 PACKAGE_TARNAME
1039 PACKAGE_NAME
1040 PATH_SEPARATOR
1041 SHELL'
1042 ac_subst_files=''
1043 ac_user_opts='
1044 enable_option_checking
1045 enable_release_mode
1046 enable_silent_rules
1047 enable_dependency_tracking
1048 enable_maintainer_mode
1049 enable_shared
1050 enable_static
1051 with_pic
1052 enable_fast_install
1053 with_gnu_ld
1054 with_sysroot
1055 enable_libtool_lock
1056 with_boost
1057 with_boost_libdir
1058 enable_warnings
1059 with_synthesis_src
1060 with_syncml_engines
1061 with_synthesis_username
1062 with_synthesis_revision
1063 enable_unit_tests
1064 enable_integration_tests
1065 enable_static_cxx
1066 enable_evolution_compatibility
1067 enable_internal_icaltz
1068 enable_developer_mode
1069 enable_maemo
1070 with_ca_certificates
1071 enable_libcurl
1072 enable_libsoup
1073 enable_dlt
1074 with_dlt_syncevolution
1075 enable_bluetooth
1076 enable_ssl_certificate_check
1077 enable_gtk
1078 enable_gui
1079 enable_core
1080 enable_dbus_service
1081 with_gio_gdbus
1082 enable_notify
1083 enable_notify_compatibility
1084 enable_mlite
1085 enable_dbus_service_pim
1086 with_boost_locale
1087 enable_nls
1088 with_rst2man
1089 with_rst2html
1090 enable_gnome_bluetooth_panel_plugin
1091 enable_doc
1092 enable_activesync
1093 with_activesyncd_src
1094 enable_akonadi
1095 enable_ebook
1096 enable_ecal
1097 enable_file
1098 enable_gnome_keyring
1099 enable_goa
1100 enable_kcalextended
1101 enable_kwallet
1102 enable_maemocal
1103 enable_oauth2
1104 enable_pbap
1105 enable_qtcontacts
1106 enable_gsso
1107 enable_uoa
1108 enable_signon
1109 with_google_client_id
1110 with_google_client_secret
1111 with_google_client_id_caldav
1112 with_google_client_secret_caldav
1113 with_google_client_id_carddav
1114 with_google_client_secret_carddav
1115 enable_sqlite
1116 enable_dav
1117 enable_neon_compatibility
1118 enable_xmlrpc
1119 enable_qt_dbus
1120 with_qt
1121 enable_dbus_timeout_hack
1122 '
1123       ac_precious_vars='build_alias
1124 host_alias
1125 target_alias
1126 CC
1127 CFLAGS
1128 LDFLAGS
1129 LIBS
1130 CPPFLAGS
1131 CPP
1132 CXX
1133 CXXFLAGS
1134 CCC
1135 CXXCPP
1136 PKG_CONFIG
1137 PKG_CONFIG_PATH
1138 PKG_CONFIG_LIBDIR
1139 LIBSOUP_CFLAGS
1140 LIBSOUP_LIBS
1141 LIBOPENOBEX_CFLAGS
1142 LIBOPENOBEX_LIBS
1143 BLUEZ_CFLAGS
1144 BLUEZ_LIBS
1145 DLT_CFLAGS
1146 DLT_LIBS
1147 DBUS_CFLAGS
1148 DBUS_LIBS
1149 LIBNOTIFY_CFLAGS
1150 LIBNOTIFY_LIBS
1151 MLITE_CFLAGS
1152 MLITE_LIBS
1153 FOLKS_CFLAGS
1154 FOLKS_LIBS
1155 ICU_CFLAGS
1156 ICU_LIBS
1157 DBUS_GLIB_CFLAGS
1158 DBUS_GLIB_LIBS
1159 MX_GTK_0_99_1_CFLAGS
1160 MX_GTK_0_99_1_LIBS
1161 UNIQUE_CFLAGS
1162 UNIQUE_LIBS
1163 GTK_2_18_CFLAGS
1164 GTK_2_18_LIBS
1165 GUI_CFLAGS
1166 GUI_LIBS
1167 PCRECPP_CFLAGS
1168 PCRECPP_LIBS
1169 SYNTHESIS_CFLAGS
1170 SYNTHESIS_LIBS
1171 WITH_SYNTHESIS_SRC_CFLAGS
1172 WITH_SYNTHESIS_SRC_LIBS
1173 GNOMEBLUETOOTH_CFLAGS
1174 GNOMEBLUETOOTH_LIBS
1175 EASCLIENT_CFLAGS
1176 EASCLIENT_LIBS
1177 EPACKAGE_CFLAGS
1178 EPACKAGE_LIBS
1179 ECAL_CFLAGS
1180 ECAL_LIBS
1181 EBOOK_CFLAGS
1182 EBOOK_LIBS
1183 EBOOK_VERSION_CFLAGS
1184 EBOOK_VERSION_LIBS
1185 EDS_VERSION_CFLAGS
1186 EDS_VERSION_LIBS
1187 KEYRING_CFLAGS
1188 KEYRING_LIBS
1189 KCALEXTENDED_CFLAGS
1190 KCALEXTENDED_LIBS
1191 MCALB_CFLAGS
1192 MCALB_LIBS
1193 JSON_CFLAGS
1194 JSON_LIBS
1195 GSSO_CFLAGS
1196 GSSO_LIBS
1197 UOA_CFLAGS
1198 UOA_LIBS
1199 ACCOUNTS_CFLAGS
1200 ACCOUNTS_LIBS
1201 SQLITE_CFLAGS
1202 SQLITE_LIBS
1203 NEON_CFLAGS
1204 NEON_LIBS
1205 GLIB_CFLAGS
1206 GLIB_LIBS
1207 GTHREAD_CFLAGS
1208 GTHREAD_LIBS
1209 GOBJECT_CFLAGS
1210 GOBJECT_LIBS
1211 GIO_CFLAGS
1212 GIO_LIBS
1213 GIOUNIX_CFLAGS
1214 GIOUNIX_LIBS
1215 LIBICAL_CFLAGS
1216 LIBICAL_LIBS
1217 QT_PATH
1218 QMAKE
1219 MOC
1220 UIC
1221 RCC
1222 GLIB216_CFLAGS
1223 GLIB216_LIBS
1224 NSS_CFLAGS
1225 NSS_LIBS
1226 LIBICAL_AVAILABLE_CFLAGS
1227 LIBICAL_AVAILABLE_LIBS'
1228
1229
1230 # Initialize some variables set by options.
1231 ac_init_help=
1232 ac_init_version=false
1233 ac_unrecognized_opts=
1234 ac_unrecognized_sep=
1235 # The variables have the same names as the options, with
1236 # dashes changed to underlines.
1237 cache_file=/dev/null
1238 exec_prefix=NONE
1239 no_create=
1240 no_recursion=
1241 prefix=NONE
1242 program_prefix=NONE
1243 program_suffix=NONE
1244 program_transform_name=s,x,x,
1245 silent=
1246 site=
1247 srcdir=
1248 verbose=
1249 x_includes=NONE
1250 x_libraries=NONE
1251
1252 # Installation directory options.
1253 # These are left unexpanded so users can "make install exec_prefix=/foo"
1254 # and all the variables that are supposed to be based on exec_prefix
1255 # by default will actually change.
1256 # Use braces instead of parens because sh, perl, etc. also accept them.
1257 # (The list follows the same order as the GNU Coding Standards.)
1258 bindir='${exec_prefix}/bin'
1259 sbindir='${exec_prefix}/sbin'
1260 libexecdir='${exec_prefix}/libexec'
1261 datarootdir='${prefix}/share'
1262 datadir='${datarootdir}'
1263 sysconfdir='${prefix}/etc'
1264 sharedstatedir='${prefix}/com'
1265 localstatedir='${prefix}/var'
1266 includedir='${prefix}/include'
1267 oldincludedir='/usr/include'
1268 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1269 infodir='${datarootdir}/info'
1270 htmldir='${docdir}'
1271 dvidir='${docdir}'
1272 pdfdir='${docdir}'
1273 psdir='${docdir}'
1274 libdir='${exec_prefix}/lib'
1275 localedir='${datarootdir}/locale'
1276 mandir='${datarootdir}/man'
1277
1278 ac_prev=
1279 ac_dashdash=
1280 for ac_option
1281 do
1282   # If the previous option needs an argument, assign it.
1283   if test -n "$ac_prev"; then
1284     eval $ac_prev=\$ac_option
1285     ac_prev=
1286     continue
1287   fi
1288
1289   case $ac_option in
1290   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1291   *=)   ac_optarg= ;;
1292   *)    ac_optarg=yes ;;
1293   esac
1294
1295   # Accept the important Cygnus configure options, so we can diagnose typos.
1296
1297   case $ac_dashdash$ac_option in
1298   --)
1299     ac_dashdash=yes ;;
1300
1301   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1302     ac_prev=bindir ;;
1303   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1304     bindir=$ac_optarg ;;
1305
1306   -build | --build | --buil | --bui | --bu)
1307     ac_prev=build_alias ;;
1308   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1309     build_alias=$ac_optarg ;;
1310
1311   -cache-file | --cache-file | --cache-fil | --cache-fi \
1312   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1313     ac_prev=cache_file ;;
1314   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1315   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1316     cache_file=$ac_optarg ;;
1317
1318   --config-cache | -C)
1319     cache_file=config.cache ;;
1320
1321   -datadir | --datadir | --datadi | --datad)
1322     ac_prev=datadir ;;
1323   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1324     datadir=$ac_optarg ;;
1325
1326   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1327   | --dataroo | --dataro | --datar)
1328     ac_prev=datarootdir ;;
1329   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1330   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1331     datarootdir=$ac_optarg ;;
1332
1333   -disable-* | --disable-*)
1334     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1335     # Reject names that are not valid shell variable names.
1336     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337       as_fn_error $? "invalid feature name: $ac_useropt"
1338     ac_useropt_orig=$ac_useropt
1339     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1340     case $ac_user_opts in
1341       *"
1342 "enable_$ac_useropt"
1343 "*) ;;
1344       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1345          ac_unrecognized_sep=', ';;
1346     esac
1347     eval enable_$ac_useropt=no ;;
1348
1349   -docdir | --docdir | --docdi | --doc | --do)
1350     ac_prev=docdir ;;
1351   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1352     docdir=$ac_optarg ;;
1353
1354   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1355     ac_prev=dvidir ;;
1356   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1357     dvidir=$ac_optarg ;;
1358
1359   -enable-* | --enable-*)
1360     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1361     # Reject names that are not valid shell variable names.
1362     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1363       as_fn_error $? "invalid feature name: $ac_useropt"
1364     ac_useropt_orig=$ac_useropt
1365     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1366     case $ac_user_opts in
1367       *"
1368 "enable_$ac_useropt"
1369 "*) ;;
1370       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1371          ac_unrecognized_sep=', ';;
1372     esac
1373     eval enable_$ac_useropt=\$ac_optarg ;;
1374
1375   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1376   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1377   | --exec | --exe | --ex)
1378     ac_prev=exec_prefix ;;
1379   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1380   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1381   | --exec=* | --exe=* | --ex=*)
1382     exec_prefix=$ac_optarg ;;
1383
1384   -gas | --gas | --ga | --g)
1385     # Obsolete; use --with-gas.
1386     with_gas=yes ;;
1387
1388   -help | --help | --hel | --he | -h)
1389     ac_init_help=long ;;
1390   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1391     ac_init_help=recursive ;;
1392   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1393     ac_init_help=short ;;
1394
1395   -host | --host | --hos | --ho)
1396     ac_prev=host_alias ;;
1397   -host=* | --host=* | --hos=* | --ho=*)
1398     host_alias=$ac_optarg ;;
1399
1400   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1401     ac_prev=htmldir ;;
1402   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1403   | --ht=*)
1404     htmldir=$ac_optarg ;;
1405
1406   -includedir | --includedir | --includedi | --included | --include \
1407   | --includ | --inclu | --incl | --inc)
1408     ac_prev=includedir ;;
1409   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1410   | --includ=* | --inclu=* | --incl=* | --inc=*)
1411     includedir=$ac_optarg ;;
1412
1413   -infodir | --infodir | --infodi | --infod | --info | --inf)
1414     ac_prev=infodir ;;
1415   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1416     infodir=$ac_optarg ;;
1417
1418   -libdir | --libdir | --libdi | --libd)
1419     ac_prev=libdir ;;
1420   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1421     libdir=$ac_optarg ;;
1422
1423   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1424   | --libexe | --libex | --libe)
1425     ac_prev=libexecdir ;;
1426   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1427   | --libexe=* | --libex=* | --libe=*)
1428     libexecdir=$ac_optarg ;;
1429
1430   -localedir | --localedir | --localedi | --localed | --locale)
1431     ac_prev=localedir ;;
1432   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1433     localedir=$ac_optarg ;;
1434
1435   -localstatedir | --localstatedir | --localstatedi | --localstated \
1436   | --localstate | --localstat | --localsta | --localst | --locals)
1437     ac_prev=localstatedir ;;
1438   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1439   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1440     localstatedir=$ac_optarg ;;
1441
1442   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1443     ac_prev=mandir ;;
1444   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1445     mandir=$ac_optarg ;;
1446
1447   -nfp | --nfp | --nf)
1448     # Obsolete; use --without-fp.
1449     with_fp=no ;;
1450
1451   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1452   | --no-cr | --no-c | -n)
1453     no_create=yes ;;
1454
1455   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1456   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1457     no_recursion=yes ;;
1458
1459   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1460   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1461   | --oldin | --oldi | --old | --ol | --o)
1462     ac_prev=oldincludedir ;;
1463   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1464   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1465   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1466     oldincludedir=$ac_optarg ;;
1467
1468   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1469     ac_prev=prefix ;;
1470   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1471     prefix=$ac_optarg ;;
1472
1473   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1474   | --program-pre | --program-pr | --program-p)
1475     ac_prev=program_prefix ;;
1476   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1477   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1478     program_prefix=$ac_optarg ;;
1479
1480   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1481   | --program-suf | --program-su | --program-s)
1482     ac_prev=program_suffix ;;
1483   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1484   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1485     program_suffix=$ac_optarg ;;
1486
1487   -program-transform-name | --program-transform-name \
1488   | --program-transform-nam | --program-transform-na \
1489   | --program-transform-n | --program-transform- \
1490   | --program-transform | --program-transfor \
1491   | --program-transfo | --program-transf \
1492   | --program-trans | --program-tran \
1493   | --progr-tra | --program-tr | --program-t)
1494     ac_prev=program_transform_name ;;
1495   -program-transform-name=* | --program-transform-name=* \
1496   | --program-transform-nam=* | --program-transform-na=* \
1497   | --program-transform-n=* | --program-transform-=* \
1498   | --program-transform=* | --program-transfor=* \
1499   | --program-transfo=* | --program-transf=* \
1500   | --program-trans=* | --program-tran=* \
1501   | --progr-tra=* | --program-tr=* | --program-t=*)
1502     program_transform_name=$ac_optarg ;;
1503
1504   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1505     ac_prev=pdfdir ;;
1506   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1507     pdfdir=$ac_optarg ;;
1508
1509   -psdir | --psdir | --psdi | --psd | --ps)
1510     ac_prev=psdir ;;
1511   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1512     psdir=$ac_optarg ;;
1513
1514   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1515   | -silent | --silent | --silen | --sile | --sil)
1516     silent=yes ;;
1517
1518   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1519     ac_prev=sbindir ;;
1520   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1521   | --sbi=* | --sb=*)
1522     sbindir=$ac_optarg ;;
1523
1524   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1525   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1526   | --sharedst | --shareds | --shared | --share | --shar \
1527   | --sha | --sh)
1528     ac_prev=sharedstatedir ;;
1529   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1530   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1531   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1532   | --sha=* | --sh=*)
1533     sharedstatedir=$ac_optarg ;;
1534
1535   -site | --site | --sit)
1536     ac_prev=site ;;
1537   -site=* | --site=* | --sit=*)
1538     site=$ac_optarg ;;
1539
1540   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1541     ac_prev=srcdir ;;
1542   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1543     srcdir=$ac_optarg ;;
1544
1545   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1546   | --syscon | --sysco | --sysc | --sys | --sy)
1547     ac_prev=sysconfdir ;;
1548   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1549   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1550     sysconfdir=$ac_optarg ;;
1551
1552   -target | --target | --targe | --targ | --tar | --ta | --t)
1553     ac_prev=target_alias ;;
1554   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1555     target_alias=$ac_optarg ;;
1556
1557   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1558     verbose=yes ;;
1559
1560   -version | --version | --versio | --versi | --vers | -V)
1561     ac_init_version=: ;;
1562
1563   -with-* | --with-*)
1564     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1575          ac_unrecognized_sep=', ';;
1576     esac
1577     eval with_$ac_useropt=\$ac_optarg ;;
1578
1579   -without-* | --without-*)
1580     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1581     # Reject names that are not valid shell variable names.
1582     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1583       as_fn_error $? "invalid package name: $ac_useropt"
1584     ac_useropt_orig=$ac_useropt
1585     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1586     case $ac_user_opts in
1587       *"
1588 "with_$ac_useropt"
1589 "*) ;;
1590       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1591          ac_unrecognized_sep=', ';;
1592     esac
1593     eval with_$ac_useropt=no ;;
1594
1595   --x)
1596     # Obsolete; use --with-x.
1597     with_x=yes ;;
1598
1599   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1600   | --x-incl | --x-inc | --x-in | --x-i)
1601     ac_prev=x_includes ;;
1602   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1603   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1604     x_includes=$ac_optarg ;;
1605
1606   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1607   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1608     ac_prev=x_libraries ;;
1609   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1610   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1611     x_libraries=$ac_optarg ;;
1612
1613   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1614 Try \`$0 --help' for more information"
1615     ;;
1616
1617   *=*)
1618     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1619     # Reject names that are not valid shell variable names.
1620     case $ac_envvar in #(
1621       '' | [0-9]* | *[!_$as_cr_alnum]* )
1622       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1623     esac
1624     eval $ac_envvar=\$ac_optarg
1625     export $ac_envvar ;;
1626
1627   *)
1628     # FIXME: should be removed in autoconf 3.0.
1629     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1630     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1631       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1632     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1633     ;;
1634
1635   esac
1636 done
1637
1638 if test -n "$ac_prev"; then
1639   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1640   as_fn_error $? "missing argument to $ac_option"
1641 fi
1642
1643 if test -n "$ac_unrecognized_opts"; then
1644   case $enable_option_checking in
1645     no) ;;
1646     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1647     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1648   esac
1649 fi
1650
1651 # Check all directory arguments for consistency.
1652 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1653                 datadir sysconfdir sharedstatedir localstatedir includedir \
1654                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1655                 libdir localedir mandir
1656 do
1657   eval ac_val=\$$ac_var
1658   # Remove trailing slashes.
1659   case $ac_val in
1660     */ )
1661       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1662       eval $ac_var=\$ac_val;;
1663   esac
1664   # Be sure to have absolute directory names.
1665   case $ac_val in
1666     [\\/$]* | ?:[\\/]* )  continue;;
1667     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1668   esac
1669   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1670 done
1671
1672 # There might be people who depend on the old broken behavior: `$host'
1673 # used to hold the argument of --host etc.
1674 # FIXME: To remove some day.
1675 build=$build_alias
1676 host=$host_alias
1677 target=$target_alias
1678
1679 # FIXME: To remove some day.
1680 if test "x$host_alias" != x; then
1681   if test "x$build_alias" = x; then
1682     cross_compiling=maybe
1683   elif test "x$build_alias" != "x$host_alias"; then
1684     cross_compiling=yes
1685   fi
1686 fi
1687
1688 ac_tool_prefix=
1689 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1690
1691 test "$silent" = yes && exec 6>/dev/null
1692
1693
1694 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1695 ac_ls_di=`ls -di .` &&
1696 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1697   as_fn_error $? "working directory cannot be determined"
1698 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1699   as_fn_error $? "pwd does not report name of working directory"
1700
1701
1702 # Find the source files, if location was not specified.
1703 if test -z "$srcdir"; then
1704   ac_srcdir_defaulted=yes
1705   # Try the directory containing this script, then the parent directory.
1706   ac_confdir=`$as_dirname -- "$as_myself" ||
1707 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1708          X"$as_myself" : 'X\(//\)[^/]' \| \
1709          X"$as_myself" : 'X\(//\)$' \| \
1710          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1711 $as_echo X"$as_myself" |
1712     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1713             s//\1/
1714             q
1715           }
1716           /^X\(\/\/\)[^/].*/{
1717             s//\1/
1718             q
1719           }
1720           /^X\(\/\/\)$/{
1721             s//\1/
1722             q
1723           }
1724           /^X\(\/\).*/{
1725             s//\1/
1726             q
1727           }
1728           s/.*/./; q'`
1729   srcdir=$ac_confdir
1730   if test ! -r "$srcdir/$ac_unique_file"; then
1731     srcdir=..
1732   fi
1733 else
1734   ac_srcdir_defaulted=no
1735 fi
1736 if test ! -r "$srcdir/$ac_unique_file"; then
1737   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1738   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1739 fi
1740 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1741 ac_abs_confdir=`(
1742         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1743         pwd)`
1744 # When building in place, set srcdir=.
1745 if test "$ac_abs_confdir" = "$ac_pwd"; then
1746   srcdir=.
1747 fi
1748 # Remove unnecessary trailing slashes from srcdir.
1749 # Double slashes in file names in object file debugging info
1750 # mess up M-x gdb in Emacs.
1751 case $srcdir in
1752 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1753 esac
1754 for ac_var in $ac_precious_vars; do
1755   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1756   eval ac_env_${ac_var}_value=\$${ac_var}
1757   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1758   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1759 done
1760
1761 #
1762 # Report the --help message.
1763 #
1764 if test "$ac_init_help" = "long"; then
1765   # Omit some internal or obsolete options to make the list less imposing.
1766   # This message is too long to be a string in the A/UX 3.1 sh.
1767   cat <<_ACEOF
1768 \`configure' configures syncevolution 1.5 to adapt to many kinds of systems.
1769
1770 Usage: $0 [OPTION]... [VAR=VALUE]...
1771
1772 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1773 VAR=VALUE.  See below for descriptions of some of the useful variables.
1774
1775 Defaults for the options are specified in brackets.
1776
1777 Configuration:
1778   -h, --help              display this help and exit
1779       --help=short        display options specific to this package
1780       --help=recursive    display the short help of all the included packages
1781   -V, --version           display version information and exit
1782   -q, --quiet, --silent   do not print \`checking ...' messages
1783       --cache-file=FILE   cache test results in FILE [disabled]
1784   -C, --config-cache      alias for \`--cache-file=config.cache'
1785   -n, --no-create         do not create output files
1786       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1787
1788 Installation directories:
1789   --prefix=PREFIX         install architecture-independent files in PREFIX
1790                           [$ac_default_prefix]
1791   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1792                           [PREFIX]
1793
1794 By default, \`make install' will install all the files in
1795 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1796 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1797 for instance \`--prefix=\$HOME'.
1798
1799 For better control, use the options below.
1800
1801 Fine tuning of the installation directories:
1802   --bindir=DIR            user executables [EPREFIX/bin]
1803   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1804   --libexecdir=DIR        program executables [EPREFIX/libexec]
1805   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1806   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1807   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1808   --libdir=DIR            object code libraries [EPREFIX/lib]
1809   --includedir=DIR        C header files [PREFIX/include]
1810   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1811   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1812   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1813   --infodir=DIR           info documentation [DATAROOTDIR/info]
1814   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1815   --mandir=DIR            man documentation [DATAROOTDIR/man]
1816   --docdir=DIR            documentation root [DATAROOTDIR/doc/syncevolution]
1817   --htmldir=DIR           html documentation [DOCDIR]
1818   --dvidir=DIR            dvi documentation [DOCDIR]
1819   --pdfdir=DIR            pdf documentation [DOCDIR]
1820   --psdir=DIR             ps documentation [DOCDIR]
1821 _ACEOF
1822
1823   cat <<\_ACEOF
1824
1825 Program names:
1826   --program-prefix=PREFIX            prepend PREFIX to installed program names
1827   --program-suffix=SUFFIX            append SUFFIX to installed program names
1828   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1829
1830 System types:
1831   --build=BUILD     configure for building on BUILD [guessed]
1832   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1833 _ACEOF
1834 fi
1835
1836 if test -n "$ac_init_help"; then
1837   case $ac_init_help in
1838      short | recursive ) echo "Configuration of syncevolution 1.5:";;
1839    esac
1840   cat <<\_ACEOF
1841
1842 Optional Features:
1843   --disable-option-checking  ignore unrecognized --enable/--with options
1844   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1845   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1846   --disable-release-mode  Controls whether resulting binary is for end-users
1847                           or testers/developers. For example, stable releases
1848                           automatically migrate on-disk files without asking,
1849                           whereas other releases ask before making downgrades
1850                           impossible (or difficult). Default in this source
1851                           code is "stable release: yes"
1852   --enable-silent-rules          less verbose build output (undo: `make V=1')
1853   --disable-silent-rules         verbose build output (undo: `make V=0')
1854   --disable-dependency-tracking  speeds up one-time build
1855   --enable-dependency-tracking   do not reject slow dependency extractors
1856   --disable-maintainer-mode  disable make rules and dependencies not useful
1857                           (and sometimes confusing) to the casual installer
1858   --enable-shared[=PKGS]  build shared libraries [default=yes]
1859   --enable-static[=PKGS]  build static libraries [default=yes]
1860   --enable-fast-install[=PKGS]
1861                           optimize for fast installation [default=yes]
1862   --disable-libtool-lock  avoid locking (might break parallel builds)
1863   --enable-warnings=[min|max|fatal|no]
1864                           control compiler pickyness [min]
1865   --enable-shared         build backends as dynamically loadable modules
1866   --enable-static         build backends also as static libraries
1867   --enable-unit-tests     enables tests embedded in the source code of the
1868                           library (changes content of executable)
1869   --enable-integration-tests
1870                           enables tests outside of the library (can be used
1871                           together with normal builds of the library)
1872   --enable-static-cxx     build executables which contain libstdc++ instead of
1873                           requiring suitable libstdc++.so to run
1874   --enable-evolution-compatibility
1875                           build executables which only call Evolution via
1876                           dlopen/dlsym: this avoids all hard dependencies on
1877                           EDS shared objects, but might lead to crashes when
1878                           their ABI changes; use
1879                           --enable-evolution-compatibility=ical to enable a
1880                           weaker mode where linking is done normally and only
1881                           libical.so.0/1 enum differences are worked around
1882                           (allows patching resulting executables to use either
1883                           of these two)
1884   --disable-internal-icaltz
1885                           libical 1.0 updated its system zone data parsing
1886                           code so that it produces VTIMEZONEs which are
1887                           unsuitable for syncing. SyncEvolution ships with a
1888                           copy of the older code and uses it by default.
1889   --enable-developer-mode The dynamic loadble backend libraries is loaded from
1890                           current build directory instead of the standard
1891                           library path
1892   --enable-maemo          enables some hacks which work around problems with
1893                           the Maemo 2.0 until at least 3.0 EDS-Dbus
1894   --enable-libcurl        enable libcurl as transport layer
1895   --enable-libsoup        enable libsoup as transport layer
1896   --enable-dlt            enable logging via GENIVI Diagnostic Log and Trace
1897                           (DLT)
1898   --enable-bluetooth      enable bluetooth transport support
1899   --disable-ssl-certificate-check
1900                           Disable SSL certificate checking in all server
1901                           *templates*. Users can still choose to enable or
1902                           disable it in their configuration. This is necessary
1903                           on platforms where the transport library has
1904                           problems verifying the server's certificate (libsoup
1905                           + Google,
1906                           http://bugzilla.moblin.org/show_bug.cgi?id=4551)
1907   --enable-gtk=major version
1908                           Selects the gtk+ version ("2" or "3") to use for the
1909                           UI. If this option is used, --enable-gui should be
1910                           used as well. "3" is the default option if
1911                           available, otherwise "2".
1912   --enable-gui=gui type   enables building the GTK+ UI that uses the
1913                           SyncEvolution DBus API. Options: gtk, moblin, all
1914                           (builds sync-ui-gtk and sync-ui-moblin) "gtk" is the
1915                           default for --enable-gui without type. No GUI is
1916                           built when --enable-gui is not used.
1917   --enable-core           enables building the core SyncEvolution (library,
1918                           backends)
1919   --enable-dbus-service=args
1920                           Enables building the dbus service executable and all
1921                           related features (the DBus wrapper library, command
1922                           line usage of server, etc). The optional arguments
1923                           are syncevo-dbus-server command line arguments that
1924                           are used when auto-starting via D-Bus or .desktop
1925                           file. By default, the daemon logs to syslog. This
1926                           can be changed via command line arguments.
1927   --enable-notify         send notifications for automatic sync events, using
1928                           libnotify
1929   --enable-notify-compatibility
1930                           increase compatibility with binary libnotify
1931                           installations by loading libnotify.so.1..4
1932                           dynamically instead of linking against it
1933   --enable-mlite          send notifications for automatic sync events, using
1934                           mlite (off by default)
1935   --enable-dbus-service-pim=<locale>
1936                           Enable implementation of org._01.pim D-Bus APIs
1937                           (depends on libfolks), using
1938                           src/dbus/server/pim/locale-factory-<locale>.cpp to
1939                           implement sorting and searching. The default is
1940                           <locale>=boost, which uses boost::locale.
1941   --disable-nls           do not use Native Language Support
1942   --enable-gnome-bluetooth-panel-plugin
1943                           GNOME Bluetooth panel plugin adding a "sync" button
1944                           for paired devices (off by default)
1945   --enable-doc            generate backend and DBus API documentation
1946   --enable-activesync     enable access to servers via ActiveSync (default
1947                           off)
1948   --disable-akonadi       disable access to Akonadi (default is to use it if
1949                           akonadi.pc is found)
1950   --disable-ebook         disable access to Evolution addressbooks (must be
1951                           used to compile without it)
1952   --disable-ecal          disable access to Evolution calendars and tasks
1953                           (must be used to compile without it)
1954   --disable-file          disable file-based backend which stores items in
1955                           separate files in a fixed directory (default on)
1956   --enable-gnome-keyring  enables or disables support for the GNOME keyring;
1957                           default is on if development files are available
1958   --disable-goa           enables or disables support for the GNOME Online
1959                           Account single-sign-on system; default is on
1960   --enable-kcalextended   enable support for Maemo's KCalExtended storage
1961   --enable-kwallet        enable access to KWallet
1962   --enable-maemocal       enable access to PIM data stored in Maemo 5 calendar
1963                           application (default off)
1964   --enable-oauth2         enables or disables support for refresh token
1965                           single-sign-on system without HMI; default is on if
1966                           development files are available
1967   --enable-pbap           enable Phone Book Access Protocol (PBAP) based
1968                           backend which provides one-way synchronization
1969                           (default off)
1970   --enable-qtcontacts     enable support for QtMobility's QtContacts storage
1971   --enable-gsso           enables or disables support for the gSSO + Accounts
1972                           single-sign-on system; default is on if development
1973                           files are available
1974   --enable-uoa            enables or disables support for the UOA
1975                           single-sign-on system; default is on if development
1976                           files are available
1977   --enable-sign           enables or disables support for the UOA or gSSO
1978                           single-sign-on system without Accounts; default is
1979                           on if development files are available
1980   --enable-sqlite         enable access to PIM data stored in SQLite files
1981                           (experimental, default off)
1982   --enable-dav            enable WebDAV based backends (CalDAV) (default off)
1983   --enable-neon-compatibility
1984                           increase compatibility with binary libneon
1985                           installations by loading libneon[-gnutls].27.so
1986                           dynamically instead of linking against it
1987   --enable-xmlrpc         enable XMLRPC-based backend which stores items on a
1988                           central web service (default off)
1989   --enable-qt-dbus        build Qt bindings for D-Bus
1990   --enable-dbus-timeout-hack
1991                           Enables code which overrides the default timeout in
1992                           dbus_connection_send_with_reply() so that the method
1993                           call never times out. Needed for libecal/ebook >=
1994                           2.30, so enabled by default if either of these is
1995                           enabled.
1996
1997 Optional Packages:
1998   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1999   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2000   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2001                           both]
2002   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2003   --with-sysroot=DIR Search for dependent libraries within DIR
2004                         (or the compiler's sysroot if not specified).
2005   --with-boost[=ARG]      use Boost library from a standard location
2006                           (ARG=yes), from the specified location (ARG=<path>),
2007                           or disable it (ARG=no) [ARG=yes]
2008   --with-boost-libdir=LIB_DIR
2009                           Force given directory for boost libraries. Note that
2010                           this will override library path detection, so use
2011                           this parameter only if default library detection
2012                           fails and you know exactly where your boost
2013                           libraries are located.
2014   --with-synthesis-src=<base directory|svn URL|git URL>
2015                           Specifies location of the Synthesis root directory.
2016                           Use this when the Synthesis library is to be
2017                           compiled as part of the SyncEvolution compilation.
2018                           In release versions of SyncEvolution, a copy of the
2019                           Synthesis code is bundled under 'src/synthesis' and
2020                           compiled unless something else is specified.
2021                           --with-synthesis-src can be given a path to sources
2022                           checked out already, a Subversion repository URL or
2023                           a git repository URL. When given a repository URL,
2024                           then the configure script will checkout the sources
2025                           into 'src/synthesis-workdir' or update that working
2026                           copy if the directory already exists. Default:
2027                           bundled source in src/synthesis (in released
2028                           SyncEvolution sources),  otherwise.
2029   --with-syncml-engines=client|server|both
2030                           Determines which kind of support for SyncML is
2031                           compiled and linked into SyncEvolution. Default is
2032                           both. Currently has no effect.
2033   --with-synthesis-username=<svn username>
2034                           username to use when checking out
2035                           --with-synthesis-src sources from Subversion,
2036                           default 'guest'
2037   --with-synthesis-revision=<git tag/branch/hash or Subversion revision>
2038                           Identifies which source revision to use from
2039                           --with-synthesis-src repository, empty string stands
2040                           for latest. Default for default --synthesis-src:
2041                           syncevolution-0.9
2042   --with-ca-certificates=<colon separated list of files>
2043                           Specifies location of one or more CA certificate
2044                           files. This sets the default value for the
2045                           SSLServerCertificates option. Default: empty when
2046                           using libcurl (because it has its own default), a
2047                           list of paths known to work for Debian and Red Hat
2048                           otherwise.
2049   --with-dlt-syncevolution=SYNS,SYNH,SYNL
2050                           controls the application IDs used by
2051                           syncevo-dbus-server, syncevo-dbus-helper and
2052                           syncevo-local-sync
2053   --with-gio-gdbus        enables use of GIO's GDBus instead of the in-tree,
2054                           Bluez gdbus.
2055   --with-boost-locale[=special-lib]
2056                           use the Locale library from boost - it is possible
2057                           to specify a certain library for the linker e.g.
2058                           --with-boost-locale=boost_locale-gcc-mt
2059   --with-rst2man=<path to reStructuredText to man converter>
2060                           Specifies an explicit path to the utility if not
2061                           found in PATH. An explicit --without-rst2man or not
2062                           having it installed turn off building of man pages.
2063   --with-rst2html=<path to reStructuredText to HTML converter>
2064                           Specifies an explicit path to the utility if not
2065                           found in PATH. An explicit --without-rst2html or not
2066                           having it installed turn off building of README in
2067                           HTML format.
2068   --with-activesyncd-src=<base directory>
2069                           Specifies location of the activesyncd source root
2070                           directory. Use this when activesyncd is to be
2071                           compiled as part of the SyncEvolution compilation.
2072   --with-google-client-id=...
2073                           OAuth2 client ID for google.provider
2074   --with-google-client-secret=...
2075                           OAuth2 client secret for google.provider
2076   --with-google-client-id-caldav=...
2077                           OAuth2 client ID for google-caldav.service
2078   --with-google-client-secret-caldav=...
2079                           OAuth2 client secret for google-caldav.service
2080   --with-google-client-id-carddav=...
2081                           OAuth2 client ID for google-carddav.service
2082   --with-google-client-secret-carddav=...
2083                           OAuth2 client secret for google-carddav.service
2084   --with-qt               Path to Qt [Look in PATH and /usr/local/Trolltech]
2085
2086 Some influential environment variables:
2087   CC          C compiler command
2088   CFLAGS      C compiler flags
2089   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2090               nonstandard directory <lib dir>
2091   LIBS        libraries to pass to the linker, e.g. -l<library>
2092   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2093               you have headers in a nonstandard directory <include dir>
2094   CPP         C preprocessor
2095   CXX         C++ compiler command
2096   CXXFLAGS    C++ compiler flags
2097   CXXCPP      C++ preprocessor
2098   PKG_CONFIG  path to pkg-config utility
2099   PKG_CONFIG_PATH
2100               directories to add to pkg-config's search path
2101   PKG_CONFIG_LIBDIR
2102               path overriding pkg-config's built-in search path
2103   LIBSOUP_CFLAGS
2104               C compiler flags for LIBSOUP, overriding pkg-config
2105   LIBSOUP_LIBS
2106               linker flags for LIBSOUP, overriding pkg-config
2107   LIBOPENOBEX_CFLAGS
2108               C compiler flags for LIBOPENOBEX, overriding pkg-config
2109   LIBOPENOBEX_LIBS
2110               linker flags for LIBOPENOBEX, overriding pkg-config
2111   BLUEZ_CFLAGS
2112               C compiler flags for BLUEZ, overriding pkg-config
2113   BLUEZ_LIBS  linker flags for BLUEZ, overriding pkg-config
2114   DLT_CFLAGS  C compiler flags for DLT, overriding pkg-config
2115   DLT_LIBS    linker flags for DLT, overriding pkg-config
2116   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2117   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
2118   LIBNOTIFY_CFLAGS
2119               C compiler flags for LIBNOTIFY, overriding pkg-config
2120   LIBNOTIFY_LIBS
2121               linker flags for LIBNOTIFY, overriding pkg-config
2122   MLITE_CFLAGS
2123               C compiler flags for MLITE, overriding pkg-config
2124   MLITE_LIBS  linker flags for MLITE, overriding pkg-config
2125   FOLKS_CFLAGS
2126               C compiler flags for FOLKS, overriding pkg-config
2127   FOLKS_LIBS  linker flags for FOLKS, overriding pkg-config
2128   ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
2129   ICU_LIBS    linker flags for ICU, overriding pkg-config
2130   DBUS_GLIB_CFLAGS
2131               C compiler flags for DBUS_GLIB, overriding pkg-config
2132   DBUS_GLIB_LIBS
2133               linker flags for DBUS_GLIB, overriding pkg-config
2134   MX_GTK_0_99_1_CFLAGS
2135               C compiler flags for MX_GTK_0_99_1, overriding pkg-config
2136   MX_GTK_0_99_1_LIBS
2137               linker flags for MX_GTK_0_99_1, overriding pkg-config
2138   UNIQUE_CFLAGS
2139               C compiler flags for UNIQUE, overriding pkg-config
2140   UNIQUE_LIBS linker flags for UNIQUE, overriding pkg-config
2141   GTK_2_18_CFLAGS
2142               C compiler flags for GTK_2_18, overriding pkg-config
2143   GTK_2_18_LIBS
2144               linker flags for GTK_2_18, overriding pkg-config
2145   GUI_CFLAGS  C compiler flags for GUI, overriding pkg-config
2146   GUI_LIBS    linker flags for GUI, overriding pkg-config
2147   PCRECPP_CFLAGS
2148               C compiler flags for PCRECPP, overriding pkg-config
2149   PCRECPP_LIBS
2150               linker flags for PCRECPP, overriding pkg-config
2151   SYNTHESIS_CFLAGS
2152               C compiler flags for SYNTHESIS, overriding pkg-config
2153   SYNTHESIS_LIBS
2154               linker flags for SYNTHESIS, overriding pkg-config
2155   WITH_SYNTHESIS_SRC_CFLAGS
2156               C compiler flags for WITH_SYNTHESIS_SRC, overriding pkg-config
2157   WITH_SYNTHESIS_SRC_LIBS
2158               linker flags for WITH_SYNTHESIS_SRC, overriding pkg-config
2159   GNOMEBLUETOOTH_CFLAGS
2160               C compiler flags for GNOMEBLUETOOTH, overriding pkg-config
2161   GNOMEBLUETOOTH_LIBS
2162               linker flags for GNOMEBLUETOOTH, overriding pkg-config
2163   EASCLIENT_CFLAGS
2164               C compiler flags for EASCLIENT, overriding pkg-config
2165   EASCLIENT_LIBS
2166               linker flags for EASCLIENT, overriding pkg-config
2167   EPACKAGE_CFLAGS
2168               C compiler flags for EPACKAGE, overriding pkg-config
2169   EPACKAGE_LIBS
2170               linker flags for EPACKAGE, overriding pkg-config
2171   ECAL_CFLAGS C compiler flags for ECAL, overriding pkg-config
2172   ECAL_LIBS   linker flags for ECAL, overriding pkg-config
2173   EBOOK_CFLAGS
2174               C compiler flags for EBOOK, overriding pkg-config
2175   EBOOK_LIBS  linker flags for EBOOK, overriding pkg-config
2176   EBOOK_VERSION_CFLAGS
2177               C compiler flags for EBOOK_VERSION, overriding pkg-config
2178   EBOOK_VERSION_LIBS
2179               linker flags for EBOOK_VERSION, overriding pkg-config
2180   EDS_VERSION_CFLAGS
2181               C compiler flags for EDS_VERSION, overriding pkg-config
2182   EDS_VERSION_LIBS
2183               linker flags for EDS_VERSION, overriding pkg-config
2184   KEYRING_CFLAGS
2185               C compiler flags for KEYRING, overriding pkg-config
2186   KEYRING_LIBS
2187               linker flags for KEYRING, overriding pkg-config
2188   KCALEXTENDED_CFLAGS
2189               C compiler flags for KCALEXTENDED, overriding pkg-config
2190   KCALEXTENDED_LIBS
2191               linker flags for KCALEXTENDED, overriding pkg-config
2192   MCALB_CFLAGS
2193               C compiler flags for MCALB, overriding pkg-config
2194   MCALB_LIBS  linker flags for MCALB, overriding pkg-config
2195   JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
2196   JSON_LIBS   linker flags for JSON, overriding pkg-config
2197   GSSO_CFLAGS C compiler flags for GSSO, overriding pkg-config
2198   GSSO_LIBS   linker flags for GSSO, overriding pkg-config
2199   UOA_CFLAGS  C compiler flags for UOA, overriding pkg-config
2200   UOA_LIBS    linker flags for UOA, overriding pkg-config
2201   ACCOUNTS_CFLAGS
2202               C compiler flags for ACCOUNTS, overriding pkg-config
2203   ACCOUNTS_LIBS
2204               linker flags for ACCOUNTS, overriding pkg-config
2205   SQLITE_CFLAGS
2206               C compiler flags for SQLITE, overriding pkg-config
2207   SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
2208   NEON_CFLAGS C compiler flags for NEON, overriding pkg-config
2209   NEON_LIBS   linker flags for NEON, overriding pkg-config
2210   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
2211   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
2212   GTHREAD_CFLAGS
2213               C compiler flags for GTHREAD, overriding pkg-config
2214   GTHREAD_LIBS
2215               linker flags for GTHREAD, overriding pkg-config
2216   GOBJECT_CFLAGS
2217               C compiler flags for GOBJECT, overriding pkg-config
2218   GOBJECT_LIBS
2219               linker flags for GOBJECT, overriding pkg-config
2220   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
2221   GIO_LIBS    linker flags for GIO, overriding pkg-config
2222   GIOUNIX_CFLAGS
2223               C compiler flags for GIOUNIX, overriding pkg-config
2224   GIOUNIX_LIBS
2225               linker flags for GIOUNIX, overriding pkg-config
2226   LIBICAL_CFLAGS
2227               C compiler flags for LIBICAL, overriding pkg-config
2228   LIBICAL_LIBS
2229               linker flags for LIBICAL, overriding pkg-config
2230   QT_PATH     Path to the Qt installation
2231   QMAKE       Qt Makefile generator command
2232   MOC         Qt Meta Object Compiler command
2233   UIC         Qt User Interface Compiler command
2234   RCC         Qt Resource Compiler command
2235   GLIB216_CFLAGS
2236               C compiler flags for GLIB216, overriding pkg-config
2237   GLIB216_LIBS
2238               linker flags for GLIB216, overriding pkg-config
2239   NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
2240   NSS_LIBS    linker flags for NSS, overriding pkg-config
2241   LIBICAL_AVAILABLE_CFLAGS
2242               C compiler flags for LIBICAL_AVAILABLE, overriding pkg-config
2243   LIBICAL_AVAILABLE_LIBS
2244               linker flags for LIBICAL_AVAILABLE, overriding pkg-config
2245
2246 Use these variables to override the choices made by `configure' or to help
2247 it to find libraries and programs with nonstandard names/locations.
2248
2249 Report bugs to the package provider.
2250 _ACEOF
2251 ac_status=$?
2252 fi
2253
2254 if test "$ac_init_help" = "recursive"; then
2255   # If there are subdirs, report their specific --help.
2256   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2257     test -d "$ac_dir" ||
2258       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2259       continue
2260     ac_builddir=.
2261
2262 case "$ac_dir" in
2263 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2264 *)
2265   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2266   # A ".." for each directory in $ac_dir_suffix.
2267   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2268   case $ac_top_builddir_sub in
2269   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2270   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2271   esac ;;
2272 esac
2273 ac_abs_top_builddir=$ac_pwd
2274 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2275 # for backward compatibility:
2276 ac_top_builddir=$ac_top_build_prefix
2277
2278 case $srcdir in
2279   .)  # We are building in place.
2280     ac_srcdir=.
2281     ac_top_srcdir=$ac_top_builddir_sub
2282     ac_abs_top_srcdir=$ac_pwd ;;
2283   [\\/]* | ?:[\\/]* )  # Absolute name.
2284     ac_srcdir=$srcdir$ac_dir_suffix;
2285     ac_top_srcdir=$srcdir
2286     ac_abs_top_srcdir=$srcdir ;;
2287   *) # Relative name.
2288     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2289     ac_top_srcdir=$ac_top_build_prefix$srcdir
2290     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2291 esac
2292 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2293
2294     cd "$ac_dir" || { ac_status=$?; continue; }
2295     # Check for guested configure.
2296     if test -f "$ac_srcdir/configure.gnu"; then
2297       echo &&
2298       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2299     elif test -f "$ac_srcdir/configure"; then
2300       echo &&
2301       $SHELL "$ac_srcdir/configure" --help=recursive
2302     else
2303       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2304     fi || ac_status=$?
2305     cd "$ac_pwd" || { ac_status=$?; break; }
2306   done
2307 fi
2308
2309 test -n "$ac_init_help" && exit $ac_status
2310 if $ac_init_version; then
2311   cat <<\_ACEOF
2312 syncevolution configure 1.5
2313 generated by GNU Autoconf 2.69
2314
2315 Copyright (C) 2012 Free Software Foundation, Inc.
2316 This configure script is free software; the Free Software Foundation
2317 gives unlimited permission to copy, distribute and modify it.
2318 _ACEOF
2319   exit
2320 fi
2321
2322 ## ------------------------ ##
2323 ## Autoconf initialization. ##
2324 ## ------------------------ ##
2325
2326 # ac_fn_c_try_compile LINENO
2327 # --------------------------
2328 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2329 ac_fn_c_try_compile ()
2330 {
2331   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2332   rm -f conftest.$ac_objext
2333   if { { ac_try="$ac_compile"
2334 case "(($ac_try" in
2335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336   *) ac_try_echo=$ac_try;;
2337 esac
2338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2339 $as_echo "$ac_try_echo"; } >&5
2340   (eval "$ac_compile") 2>conftest.err
2341   ac_status=$?
2342   if test -s conftest.err; then
2343     grep -v '^ *+' conftest.err >conftest.er1
2344     cat conftest.er1 >&5
2345     mv -f conftest.er1 conftest.err
2346   fi
2347   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2348   test $ac_status = 0; } && {
2349          test -z "$ac_c_werror_flag" ||
2350          test ! -s conftest.err
2351        } && test -s conftest.$ac_objext; then :
2352   ac_retval=0
2353 else
2354   $as_echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.$ac_ext >&5
2356
2357         ac_retval=1
2358 fi
2359   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2360   as_fn_set_status $ac_retval
2361
2362 } # ac_fn_c_try_compile
2363
2364 # ac_fn_c_try_link LINENO
2365 # -----------------------
2366 # Try to link conftest.$ac_ext, and return whether this succeeded.
2367 ac_fn_c_try_link ()
2368 {
2369   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2370   rm -f conftest.$ac_objext conftest$ac_exeext
2371   if { { ac_try="$ac_link"
2372 case "(($ac_try" in
2373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2374   *) ac_try_echo=$ac_try;;
2375 esac
2376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2377 $as_echo "$ac_try_echo"; } >&5
2378   (eval "$ac_link") 2>conftest.err
2379   ac_status=$?
2380   if test -s conftest.err; then
2381     grep -v '^ *+' conftest.err >conftest.er1
2382     cat conftest.er1 >&5
2383     mv -f conftest.er1 conftest.err
2384   fi
2385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2386   test $ac_status = 0; } && {
2387          test -z "$ac_c_werror_flag" ||
2388          test ! -s conftest.err
2389        } && test -s conftest$ac_exeext && {
2390          test "$cross_compiling" = yes ||
2391          test -x conftest$ac_exeext
2392        }; then :
2393   ac_retval=0
2394 else
2395   $as_echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2397
2398         ac_retval=1
2399 fi
2400   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2401   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2402   # interfere with the next link command; also delete a directory that is
2403   # left behind by Apple's compiler.  We do this before executing the actions.
2404   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2405   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2406   as_fn_set_status $ac_retval
2407
2408 } # ac_fn_c_try_link
2409
2410 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2411 # -------------------------------------------------------
2412 # Tests whether HEADER exists and can be compiled using the include files in
2413 # INCLUDES, setting the cache variable VAR accordingly.
2414 ac_fn_c_check_header_compile ()
2415 {
2416   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2418 $as_echo_n "checking for $2... " >&6; }
2419 if eval \${$3+:} false; then :
2420   $as_echo_n "(cached) " >&6
2421 else
2422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h.  */
2424 $4
2425 #include <$2>
2426 _ACEOF
2427 if ac_fn_c_try_compile "$LINENO"; then :
2428   eval "$3=yes"
2429 else
2430   eval "$3=no"
2431 fi
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 fi
2434 eval ac_res=\$$3
2435                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2436 $as_echo "$ac_res" >&6; }
2437   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2438
2439 } # ac_fn_c_check_header_compile
2440
2441 # ac_fn_c_try_cpp LINENO
2442 # ----------------------
2443 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2444 ac_fn_c_try_cpp ()
2445 {
2446   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447   if { { ac_try="$ac_cpp conftest.$ac_ext"
2448 case "(($ac_try" in
2449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450   *) ac_try_echo=$ac_try;;
2451 esac
2452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2453 $as_echo "$ac_try_echo"; } >&5
2454   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2455   ac_status=$?
2456   if test -s conftest.err; then
2457     grep -v '^ *+' conftest.err >conftest.er1
2458     cat conftest.er1 >&5
2459     mv -f conftest.er1 conftest.err
2460   fi
2461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2462   test $ac_status = 0; } > conftest.i && {
2463          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2464          test ! -s conftest.err
2465        }; then :
2466   ac_retval=0
2467 else
2468   $as_echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2470
2471     ac_retval=1
2472 fi
2473   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2474   as_fn_set_status $ac_retval
2475
2476 } # ac_fn_c_try_cpp
2477
2478 # ac_fn_c_try_run LINENO
2479 # ----------------------
2480 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2481 # that executables *can* be run.
2482 ac_fn_c_try_run ()
2483 {
2484   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2485   if { { ac_try="$ac_link"
2486 case "(($ac_try" in
2487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488   *) ac_try_echo=$ac_try;;
2489 esac
2490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2491 $as_echo "$ac_try_echo"; } >&5
2492   (eval "$ac_link") 2>&5
2493   ac_status=$?
2494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2495   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2496   { { case "(($ac_try" in
2497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498   *) ac_try_echo=$ac_try;;
2499 esac
2500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2501 $as_echo "$ac_try_echo"; } >&5
2502   (eval "$ac_try") 2>&5
2503   ac_status=$?
2504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2505   test $ac_status = 0; }; }; then :
2506   ac_retval=0
2507 else
2508   $as_echo "$as_me: program exited with status $ac_status" >&5
2509        $as_echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2511
2512        ac_retval=$ac_status
2513 fi
2514   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2515   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2516   as_fn_set_status $ac_retval
2517
2518 } # ac_fn_c_try_run
2519
2520 # ac_fn_c_check_func LINENO FUNC VAR
2521 # ----------------------------------
2522 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2523 ac_fn_c_check_func ()
2524 {
2525   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2527 $as_echo_n "checking for $2... " >&6; }
2528 if eval \${$3+:} false; then :
2529   $as_echo_n "(cached) " >&6
2530 else
2531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h.  */
2533 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2534    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2535 #define $2 innocuous_$2
2536
2537 /* System header to define __stub macros and hopefully few prototypes,
2538     which can conflict with char $2 (); below.
2539     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2540     <limits.h> exists even on freestanding compilers.  */
2541
2542 #ifdef __STDC__
2543 # include <limits.h>
2544 #else
2545 # include <assert.h>
2546 #endif
2547
2548 #undef $2
2549
2550 /* Override any GCC internal prototype to avoid an error.
2551    Use char because int might match the return type of a GCC
2552    builtin and then its argument prototype would still apply.  */
2553 #ifdef __cplusplus
2554 extern "C"
2555 #endif
2556 char $2 ();
2557 /* The GNU C library defines this for functions which it implements
2558     to always fail with ENOSYS.  Some functions are actually named
2559     something starting with __ and the normal name is an alias.  */
2560 #if defined __stub_$2 || defined __stub___$2
2561 choke me
2562 #endif
2563
2564 int
2565 main ()
2566 {
2567 return $2 ();
2568   ;
2569   return 0;
2570 }
2571 _ACEOF
2572 if ac_fn_c_try_link "$LINENO"; then :
2573   eval "$3=yes"
2574 else
2575   eval "$3=no"
2576 fi
2577 rm -f core conftest.err conftest.$ac_objext \
2578     conftest$ac_exeext conftest.$ac_ext
2579 fi
2580 eval ac_res=\$$3
2581                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2582 $as_echo "$ac_res" >&6; }
2583   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2584
2585 } # ac_fn_c_check_func
2586
2587 # ac_fn_cxx_try_compile LINENO
2588 # ----------------------------
2589 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2590 ac_fn_cxx_try_compile ()
2591 {
2592   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2593   rm -f conftest.$ac_objext
2594   if { { ac_try="$ac_compile"
2595 case "(($ac_try" in
2596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597   *) ac_try_echo=$ac_try;;
2598 esac
2599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2600 $as_echo "$ac_try_echo"; } >&5
2601   (eval "$ac_compile") 2>conftest.err
2602   ac_status=$?
2603   if test -s conftest.err; then
2604     grep -v '^ *+' conftest.err >conftest.er1
2605     cat conftest.er1 >&5
2606     mv -f conftest.er1 conftest.err
2607   fi
2608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2609   test $ac_status = 0; } && {
2610          test -z "$ac_cxx_werror_flag" ||
2611          test ! -s conftest.err
2612        } && test -s conftest.$ac_objext; then :
2613   ac_retval=0
2614 else
2615   $as_echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2617
2618         ac_retval=1
2619 fi
2620   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2621   as_fn_set_status $ac_retval
2622
2623 } # ac_fn_cxx_try_compile
2624
2625 # ac_fn_cxx_try_cpp LINENO
2626 # ------------------------
2627 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2628 ac_fn_cxx_try_cpp ()
2629 {
2630   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2631   if { { ac_try="$ac_cpp conftest.$ac_ext"
2632 case "(($ac_try" in
2633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634   *) ac_try_echo=$ac_try;;
2635 esac
2636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2637 $as_echo "$ac_try_echo"; } >&5
2638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2639   ac_status=$?
2640   if test -s conftest.err; then
2641     grep -v '^ *+' conftest.err >conftest.er1
2642     cat conftest.er1 >&5
2643     mv -f conftest.er1 conftest.err
2644   fi
2645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2646   test $ac_status = 0; } > conftest.i && {
2647          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2648          test ! -s conftest.err
2649        }; then :
2650   ac_retval=0
2651 else
2652   $as_echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2654
2655     ac_retval=1
2656 fi
2657   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2658   as_fn_set_status $ac_retval
2659
2660 } # ac_fn_cxx_try_cpp
2661
2662 # ac_fn_cxx_try_link LINENO
2663 # -------------------------
2664 # Try to link conftest.$ac_ext, and return whether this succeeded.
2665 ac_fn_cxx_try_link ()
2666 {
2667   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2668   rm -f conftest.$ac_objext conftest$ac_exeext
2669   if { { ac_try="$ac_link"
2670 case "(($ac_try" in
2671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672   *) ac_try_echo=$ac_try;;
2673 esac
2674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2675 $as_echo "$ac_try_echo"; } >&5
2676   (eval "$ac_link") 2>conftest.err
2677   ac_status=$?
2678   if test -s conftest.err; then
2679     grep -v '^ *+' conftest.err >conftest.er1
2680     cat conftest.er1 >&5
2681     mv -f conftest.er1 conftest.err
2682   fi
2683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2684   test $ac_status = 0; } && {
2685          test -z "$ac_cxx_werror_flag" ||
2686          test ! -s conftest.err
2687        } && test -s conftest$ac_exeext && {
2688          test "$cross_compiling" = yes ||
2689          test -x conftest$ac_exeext
2690        }; then :
2691   ac_retval=0
2692 else
2693   $as_echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2695
2696         ac_retval=1
2697 fi
2698   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2699   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2700   # interfere with the next link command; also delete a directory that is
2701   # left behind by Apple's compiler.  We do this before executing the actions.
2702   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2703   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2704   as_fn_set_status $ac_retval
2705
2706 } # ac_fn_cxx_try_link
2707
2708 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2709 # -------------------------------------------------------
2710 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2711 # the include files in INCLUDES and setting the cache variable VAR
2712 # accordingly.
2713 ac_fn_c_check_header_mongrel ()
2714 {
2715   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2716   if eval \${$3+:} false; then :
2717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2718 $as_echo_n "checking for $2... " >&6; }
2719 if eval \${$3+:} false; then :
2720   $as_echo_n "(cached) " >&6
2721 fi
2722 eval ac_res=\$$3
2723                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2724 $as_echo "$ac_res" >&6; }
2725 else
2726   # Is the header compilable?
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2728 $as_echo_n "checking $2 usability... " >&6; }
2729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2730 /* end confdefs.h.  */
2731 $4
2732 #include <$2>
2733 _ACEOF
2734 if ac_fn_c_try_compile "$LINENO"; then :
2735   ac_header_compiler=yes
2736 else
2737   ac_header_compiler=no
2738 fi
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2741 $as_echo "$ac_header_compiler" >&6; }
2742
2743 # Is the header present?
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2745 $as_echo_n "checking $2 presence... " >&6; }
2746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2747 /* end confdefs.h.  */
2748 #include <$2>
2749 _ACEOF
2750 if ac_fn_c_try_cpp "$LINENO"; then :
2751   ac_header_preproc=yes
2752 else
2753   ac_header_preproc=no
2754 fi
2755 rm -f conftest.err conftest.i conftest.$ac_ext
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2757 $as_echo "$ac_header_preproc" >&6; }
2758
2759 # So?  What about this header?
2760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2761   yes:no: )
2762     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2763 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2764     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2765 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2766     ;;
2767   no:yes:* )
2768     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2769 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2770     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2771 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2772     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2773 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2774     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2775 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2776     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2777 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2778     ;;
2779 esac
2780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2781 $as_echo_n "checking for $2... " >&6; }
2782 if eval \${$3+:} false; then :
2783   $as_echo_n "(cached) " >&6
2784 else
2785   eval "$3=\$ac_header_compiler"
2786 fi
2787 eval ac_res=\$$3
2788                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2789 $as_echo "$ac_res" >&6; }
2790 fi
2791   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2792
2793 } # ac_fn_c_check_header_mongrel
2794
2795 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2796 # ---------------------------------------------------------
2797 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2798 # the include files in INCLUDES and setting the cache variable VAR
2799 # accordingly.
2800 ac_fn_cxx_check_header_mongrel ()
2801 {
2802   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2803   if eval \${$3+:} false; then :
2804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2805 $as_echo_n "checking for $2... " >&6; }
2806 if eval \${$3+:} false; then :
2807   $as_echo_n "(cached) " >&6
2808 fi
2809 eval ac_res=\$$3
2810                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2811 $as_echo "$ac_res" >&6; }
2812 else
2813   # Is the header compilable?
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2815 $as_echo_n "checking $2 usability... " >&6; }
2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h.  */
2818 $4
2819 #include <$2>
2820 _ACEOF
2821 if ac_fn_cxx_try_compile "$LINENO"; then :
2822   ac_header_compiler=yes
2823 else
2824   ac_header_compiler=no
2825 fi
2826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2828 $as_echo "$ac_header_compiler" >&6; }
2829
2830 # Is the header present?
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2832 $as_echo_n "checking $2 presence... " >&6; }
2833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834 /* end confdefs.h.  */
2835 #include <$2>
2836 _ACEOF
2837 if ac_fn_cxx_try_cpp "$LINENO"; then :
2838   ac_header_preproc=yes
2839 else
2840   ac_header_preproc=no
2841 fi
2842 rm -f conftest.err conftest.i conftest.$ac_ext
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2844 $as_echo "$ac_header_preproc" >&6; }
2845
2846 # So?  What about this header?
2847 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2848   yes:no: )
2849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2850 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2852 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2853     ;;
2854   no:yes:* )
2855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2856 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2857     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2858 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2859     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2860 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2861     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2862 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2863     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2864 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2865     ;;
2866 esac
2867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2868 $as_echo_n "checking for $2... " >&6; }
2869 if eval \${$3+:} false; then :
2870   $as_echo_n "(cached) " >&6
2871 else
2872   eval "$3=\$ac_header_compiler"
2873 fi
2874 eval ac_res=\$$3
2875                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2876 $as_echo "$ac_res" >&6; }
2877 fi
2878   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2879
2880 } # ac_fn_cxx_check_header_mongrel
2881
2882 # ac_fn_cxx_check_func LINENO FUNC VAR
2883 # ------------------------------------
2884 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2885 ac_fn_cxx_check_func ()
2886 {
2887   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2889 $as_echo_n "checking for $2... " >&6; }
2890 if eval \${$3+:} false; then :
2891   $as_echo_n "(cached) " >&6
2892 else
2893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894 /* end confdefs.h.  */
2895 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2897 #define $2 innocuous_$2
2898
2899 /* System header to define __stub macros and hopefully few prototypes,
2900     which can conflict with char $2 (); below.
2901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2902     <limits.h> exists even on freestanding compilers.  */
2903
2904 #ifdef __STDC__
2905 # include <limits.h>
2906 #else
2907 # include <assert.h>
2908 #endif
2909
2910 #undef $2
2911
2912 /* Override any GCC internal prototype to avoid an error.
2913    Use char because int might match the return type of a GCC
2914    builtin and then its argument prototype would still apply.  */
2915 #ifdef __cplusplus
2916 extern "C"
2917 #endif
2918 char $2 ();
2919 /* The GNU C library defines this for functions which it implements
2920     to always fail with ENOSYS.  Some functions are actually named
2921     something starting with __ and the normal name is an alias.  */
2922 #if defined __stub_$2 || defined __stub___$2
2923 choke me
2924 #endif
2925
2926 int
2927 main ()
2928 {
2929 return $2 ();
2930   ;
2931   return 0;
2932 }
2933 _ACEOF
2934 if ac_fn_cxx_try_link "$LINENO"; then :
2935   eval "$3=yes"
2936 else
2937   eval "$3=no"
2938 fi
2939 rm -f core conftest.err conftest.$ac_objext \
2940     conftest$ac_exeext conftest.$ac_ext
2941 fi
2942 eval ac_res=\$$3
2943                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2944 $as_echo "$ac_res" >&6; }
2945   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2946
2947 } # ac_fn_cxx_check_func
2948 cat >config.log <<_ACEOF
2949 This file contains any messages produced by compilers while
2950 running configure, to aid debugging if configure makes a mistake.
2951
2952 It was created by syncevolution $as_me 1.5, which was
2953 generated by GNU Autoconf 2.69.  Invocation command line was
2954
2955   $ $0 $@
2956
2957 _ACEOF
2958 exec 5>>config.log
2959 {
2960 cat <<_ASUNAME
2961 ## --------- ##
2962 ## Platform. ##
2963 ## --------- ##
2964
2965 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2966 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2967 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2968 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2969 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2970
2971 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2972 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2973
2974 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2975 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2976 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2977 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2978 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2979 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2980 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2981
2982 _ASUNAME
2983
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2986 do
2987   IFS=$as_save_IFS
2988   test -z "$as_dir" && as_dir=.
2989     $as_echo "PATH: $as_dir"
2990   done
2991 IFS=$as_save_IFS
2992
2993 } >&5
2994
2995 cat >&5 <<_ACEOF
2996
2997
2998 ## ----------- ##
2999 ## Core tests. ##
3000 ## ----------- ##
3001
3002 _ACEOF
3003
3004
3005 # Keep a trace of the command line.
3006 # Strip out --no-create and --no-recursion so they do not pile up.
3007 # Strip out --silent because we don't want to record it for future runs.
3008 # Also quote any args containing shell meta-characters.
3009 # Make two passes to allow for proper duplicate-argument suppression.
3010 ac_configure_args=
3011 ac_configure_args0=
3012 ac_configure_args1=
3013 ac_must_keep_next=false
3014 for ac_pass in 1 2
3015 do
3016   for ac_arg
3017   do
3018     case $ac_arg in
3019     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3020     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3021     | -silent | --silent | --silen | --sile | --sil)
3022       continue ;;
3023     *\'*)
3024       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3025     esac
3026     case $ac_pass in
3027     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3028     2)
3029       as_fn_append ac_configure_args1 " '$ac_arg'"
3030       if test $ac_must_keep_next = true; then
3031         ac_must_keep_next=false # Got value, back to normal.
3032       else
3033         case $ac_arg in
3034           *=* | --config-cache | -C | -disable-* | --disable-* \
3035           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3036           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3037           | -with-* | --with-* | -without-* | --without-* | --x)
3038             case "$ac_configure_args0 " in
3039               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3040             esac
3041             ;;
3042           -* ) ac_must_keep_next=true ;;
3043         esac
3044       fi
3045       as_fn_append ac_configure_args " '$ac_arg'"
3046       ;;
3047     esac
3048   done
3049 done
3050 { ac_configure_args0=; unset ac_configure_args0;}
3051 { ac_configure_args1=; unset ac_configure_args1;}
3052
3053 # When interrupted or exit'd, cleanup temporary files, and complete
3054 # config.log.  We remove comments because anyway the quotes in there
3055 # would cause problems or look ugly.
3056 # WARNING: Use '\'' to represent an apostrophe within the trap.
3057 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3058 trap 'exit_status=$?
3059   # Save into config.log some information that might help in debugging.
3060   {
3061     echo
3062
3063     $as_echo "## ---------------- ##
3064 ## Cache variables. ##
3065 ## ---------------- ##"
3066     echo
3067     # The following way of writing the cache mishandles newlines in values,
3068 (
3069   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3070     eval ac_val=\$$ac_var
3071     case $ac_val in #(
3072     *${as_nl}*)
3073       case $ac_var in #(
3074       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3075 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3076       esac
3077       case $ac_var in #(
3078       _ | IFS | as_nl) ;; #(
3079       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3080       *) { eval $ac_var=; unset $ac_var;} ;;
3081       esac ;;
3082     esac
3083   done
3084   (set) 2>&1 |
3085     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3086     *${as_nl}ac_space=\ *)
3087       sed -n \
3088         "s/'\''/'\''\\\\'\'''\''/g;
3089           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3090       ;; #(
3091     *)
3092       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3093       ;;
3094     esac |
3095     sort
3096 )
3097     echo
3098
3099     $as_echo "## ----------------- ##
3100 ## Output variables. ##
3101 ## ----------------- ##"
3102     echo
3103     for ac_var in $ac_subst_vars
3104     do
3105       eval ac_val=\$$ac_var
3106       case $ac_val in
3107       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3108       esac
3109       $as_echo "$ac_var='\''$ac_val'\''"
3110     done | sort
3111     echo
3112
3113     if test -n "$ac_subst_files"; then
3114       $as_echo "## ------------------- ##
3115 ## File substitutions. ##
3116 ## ------------------- ##"
3117       echo
3118       for ac_var in $ac_subst_files
3119       do
3120         eval ac_val=\$$ac_var
3121         case $ac_val in
3122         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3123         esac
3124         $as_echo "$ac_var='\''$ac_val'\''"
3125       done | sort
3126       echo
3127     fi
3128
3129     if test -s confdefs.h; then
3130       $as_echo "## ----------- ##
3131 ## confdefs.h. ##
3132 ## ----------- ##"
3133       echo
3134       cat confdefs.h
3135       echo
3136     fi
3137     test "$ac_signal" != 0 &&
3138       $as_echo "$as_me: caught signal $ac_signal"
3139     $as_echo "$as_me: exit $exit_status"
3140   } >&5
3141   rm -f core *.core core.conftest.* &&
3142     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3143     exit $exit_status
3144 ' 0
3145 for ac_signal in 1 2 13 15; do
3146   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3147 done
3148 ac_signal=0
3149
3150 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3151 rm -f -r conftest* confdefs.h
3152
3153 $as_echo "/* confdefs.h */" > confdefs.h
3154
3155 # Predefined preprocessor variables.
3156
3157 cat >>confdefs.h <<_ACEOF
3158 #define PACKAGE_NAME "$PACKAGE_NAME"
3159 _ACEOF
3160
3161 cat >>confdefs.h <<_ACEOF
3162 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3163 _ACEOF
3164
3165 cat >>confdefs.h <<_ACEOF
3166 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3167 _ACEOF
3168
3169 cat >>confdefs.h <<_ACEOF
3170 #define PACKAGE_STRING "$PACKAGE_STRING"
3171 _ACEOF
3172
3173 cat >>confdefs.h <<_ACEOF
3174 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3175 _ACEOF
3176
3177 cat >>confdefs.h <<_ACEOF
3178 #define PACKAGE_URL "$PACKAGE_URL"
3179 _ACEOF
3180
3181
3182 # Let the site file select an alternate cache file if it wants to.
3183 # Prefer an explicitly selected file to automatically selected ones.
3184 ac_site_file1=NONE
3185 ac_site_file2=NONE
3186 if test -n "$CONFIG_SITE"; then
3187   # We do not want a PATH search for config.site.
3188   case $CONFIG_SITE in #((
3189     -*)  ac_site_file1=./$CONFIG_SITE;;
3190     */*) ac_site_file1=$CONFIG_SITE;;
3191     *)   ac_site_file1=./$CONFIG_SITE;;
3192   esac
3193 elif test "x$prefix" != xNONE; then
3194   ac_site_file1=$prefix/share/config.site
3195   ac_site_file2=$prefix/etc/config.site
3196 else
3197   ac_site_file1=$ac_default_prefix/share/config.site
3198   ac_site_file2=$ac_default_prefix/etc/config.site
3199 fi
3200 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3201 do
3202   test "x$ac_site_file" = xNONE && continue
3203   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3204     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3205 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3206     sed 's/^/| /' "$ac_site_file" >&5
3207     . "$ac_site_file" \
3208       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 as_fn_error $? "failed to load site script $ac_site_file
3211 See \`config.log' for more details" "$LINENO" 5; }
3212   fi
3213 done
3214
3215 if test -r "$cache_file"; then
3216   # Some versions of bash will fail to source /dev/null (special files
3217   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3218   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3219     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3220 $as_echo "$as_me: loading cache $cache_file" >&6;}
3221     case $cache_file in
3222       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3223       *)                      . "./$cache_file";;
3224     esac
3225   fi
3226 else
3227   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3228 $as_echo "$as_me: creating cache $cache_file" >&6;}
3229   >$cache_file
3230 fi
3231
3232 # Check that the precious variables saved in the cache have kept the same
3233 # value.
3234 ac_cache_corrupted=false
3235 for ac_var in $ac_precious_vars; do
3236   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3237   eval ac_new_set=\$ac_env_${ac_var}_set
3238   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3239   eval ac_new_val=\$ac_env_${ac_var}_value
3240   case $ac_old_set,$ac_new_set in
3241     set,)
3242       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3243 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3244       ac_cache_corrupted=: ;;
3245     ,set)
3246       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3247 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3248       ac_cache_corrupted=: ;;
3249     ,);;
3250     *)
3251       if test "x$ac_old_val" != "x$ac_new_val"; then
3252         # differences in whitespace do not lead to failure.
3253         ac_old_val_w=`echo x $ac_old_val`
3254         ac_new_val_w=`echo x $ac_new_val`
3255         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3256           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3257 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3258           ac_cache_corrupted=:
3259         else
3260           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3261 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3262           eval $ac_var=\$ac_old_val
3263         fi
3264         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3265 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3266         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3267 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3268       fi;;
3269   esac
3270   # Pass precious variables to config.status.
3271   if test "$ac_new_set" = set; then
3272     case $ac_new_val in
3273     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3274     *) ac_arg=$ac_var=$ac_new_val ;;
3275     esac
3276     case " $ac_configure_args " in
3277       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3278       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3279     esac
3280   fi
3281 done
3282 if $ac_cache_corrupted; then
3283   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3285   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3286 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3287   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3288 fi
3289 ## -------------------- ##
3290 ## Main body of script. ##
3291 ## -------------------- ##
3292
3293 ac_ext=c
3294 ac_cpp='$CPP $CPPFLAGS'
3295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3298
3299
3300 # STABLE_VERSION=1.0.1+
3301
3302
3303 # Generate some files.
3304
3305
3306
3307
3308
3309
3310
3311 # Default value for --enable/disable-release-mode.
3312 # Determined by gen-autotools.sh based on versioning.
3313 # Official, stable releases enable it, pre-releases
3314 # disable it.
3315 #
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340 # Minimum version of libsynthesis as defined in its
3341 # configure script and thus .pc files:
3342
3343
3344 # Line above is patched by gen-autotools.sh. Handle
3345 # both "yes" and "no".
3346
3347
3348 # Check whether --enable-release-mode was given.
3349 if test "${enable_release_mode+set}" = set; then :
3350   enableval=$enable_release_mode; enable_release_mode="$enableval"
3351 else
3352   enable_release_mode="yes"
3353 fi
3354
3355 if test "$enable_release_mode" = "yes"; then
3356
3357 $as_echo "#define SYNCEVOLUTION_STABLE_RELEASE 1" >>confdefs.h
3358
3359 fi
3360
3361 am__api_version='1.11'
3362
3363 ac_aux_dir=
3364 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3365   if test -f "$ac_dir/install-sh"; then
3366     ac_aux_dir=$ac_dir
3367     ac_install_sh="$ac_aux_dir/install-sh -c"
3368     break
3369   elif test -f "$ac_dir/install.sh"; then
3370     ac_aux_dir=$ac_dir
3371     ac_install_sh="$ac_aux_dir/install.sh -c"
3372     break
3373   elif test -f "$ac_dir/shtool"; then
3374     ac_aux_dir=$ac_dir
3375     ac_install_sh="$ac_aux_dir/shtool install -c"
3376     break
3377   fi
3378 done
3379 if test -z "$ac_aux_dir"; then
3380   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3381 fi
3382
3383 # These three variables are undocumented and unsupported,
3384 # and are intended to be withdrawn in a future Autoconf release.
3385 # They can cause serious problems if a builder's source tree is in a directory
3386 # whose full name contains unusual characters.
3387 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3388 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3389 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3390
3391
3392 # Find a good install program.  We prefer a C program (faster),
3393 # so one script is as good as another.  But avoid the broken or
3394 # incompatible versions:
3395 # SysV /etc/install, /usr/sbin/install
3396 # SunOS /usr/etc/install
3397 # IRIX /sbin/install
3398 # AIX /bin/install
3399 # AmigaOS /C/install, which installs bootblocks on floppy discs
3400 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3401 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3402 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3403 # OS/2's system install, which has a completely different semantic
3404 # ./install, which can be erroneously created by make from ./install.sh.
3405 # Reject install programs that cannot install multiple files.
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3407 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3408 if test -z "$INSTALL"; then
3409 if ${ac_cv_path_install+:} false; then :
3410   $as_echo_n "(cached) " >&6
3411 else
3412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 for as_dir in $PATH
3414 do
3415   IFS=$as_save_IFS
3416   test -z "$as_dir" && as_dir=.
3417     # Account for people who put trailing slashes in PATH elements.
3418 case $as_dir/ in #((
3419   ./ | .// | /[cC]/* | \
3420   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3421   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3422   /usr/ucb/* ) ;;
3423   *)
3424     # OSF1 and SCO ODT 3.0 have their own names for install.
3425     # Don't use installbsd from OSF since it installs stuff as root
3426     # by default.
3427     for ac_prog in ginstall scoinst install; do
3428       for ac_exec_ext in '' $ac_executable_extensions; do
3429         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3430           if test $ac_prog = install &&
3431             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3432             # AIX install.  It has an incompatible calling convention.
3433             :
3434           elif test $ac_prog = install &&
3435             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3436             # program-specific install script used by HP pwplus--don't use.
3437             :
3438           else
3439             rm -rf conftest.one conftest.two conftest.dir
3440             echo one > conftest.one
3441             echo two > conftest.two
3442             mkdir conftest.dir
3443             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3444               test -s conftest.one && test -s conftest.two &&
3445               test -s conftest.dir/conftest.one &&
3446               test -s conftest.dir/conftest.two
3447             then
3448               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3449               break 3
3450             fi
3451           fi
3452         fi
3453       done
3454     done
3455     ;;
3456 esac
3457
3458   done
3459 IFS=$as_save_IFS
3460
3461 rm -rf conftest.one conftest.two conftest.dir
3462
3463 fi
3464   if test "${ac_cv_path_install+set}" = set; then
3465     INSTALL=$ac_cv_path_install
3466   else
3467     # As a last resort, use the slow shell script.  Don't cache a
3468     # value for INSTALL within a source directory, because that will
3469     # break other packages using the cache if that directory is
3470     # removed, or if the value is a relative name.
3471     INSTALL=$ac_install_sh
3472   fi
3473 fi
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3475 $as_echo "$INSTALL" >&6; }
3476
3477 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3478 # It thinks the first close brace ends the variable substitution.
3479 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3480
3481 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3482
3483 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3484
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3486 $as_echo_n "checking whether build environment is sane... " >&6; }
3487 # Just in case
3488 sleep 1
3489 echo timestamp > conftest.file
3490 # Reject unsafe characters in $srcdir or the absolute working directory
3491 # name.  Accept space and tab only in the latter.
3492 am_lf='
3493 '
3494 case `pwd` in
3495   *[\\\"\#\$\&\'\`$am_lf]*)
3496     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3497 esac
3498 case $srcdir in
3499   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3500     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3501 esac
3502
3503 # Do `set' in a subshell so we don't clobber the current shell's
3504 # arguments.  Must try -L first in case configure is actually a
3505 # symlink; some systems play weird games with the mod time of symlinks
3506 # (eg FreeBSD returns the mod time of the symlink's containing
3507 # directory).
3508 if (
3509    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3510    if test "$*" = "X"; then
3511       # -L didn't work.
3512       set X `ls -t "$srcdir/configure" conftest.file`
3513    fi
3514    rm -f conftest.file
3515    if test "$*" != "X $srcdir/configure conftest.file" \
3516       && test "$*" != "X conftest.file $srcdir/configure"; then
3517
3518       # If neither matched, then we have a broken ls.  This can happen
3519       # if, for instance, CONFIG_SHELL is bash and it inherits a
3520       # broken ls alias from the environment.  This has actually
3521       # happened.  Such a system could not be considered "sane".
3522       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3523 alias in your environment" "$LINENO" 5
3524    fi
3525
3526    test "$2" = conftest.file
3527    )
3528 then
3529    # Ok.
3530    :
3531 else
3532    as_fn_error $? "newly created file is older than distributed files!
3533 Check your system clock" "$LINENO" 5
3534 fi
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3536 $as_echo "yes" >&6; }
3537 test "$program_prefix" != NONE &&
3538   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3539 # Use a double $ so make ignores it.
3540 test "$program_suffix" != NONE &&
3541   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3542 # Double any \ or $.
3543 # By default was `s,x,x', remove it if useless.
3544 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3545 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3546
3547 # expand $ac_aux_dir to an absolute path
3548 am_aux_dir=`cd $ac_aux_dir && pwd`
3549
3550 if test x"${MISSING+set}" != xset; then
3551   case $am_aux_dir in
3552   *\ * | *\     *)
3553     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3554   *)
3555     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3556   esac
3557 fi
3558 # Use eval to expand $SHELL
3559 if eval "$MISSING --run true"; then
3560   am_missing_run="$MISSING --run "
3561 else
3562   am_missing_run=
3563   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3564 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3565 fi
3566
3567 if test x"${install_sh}" != xset; then
3568   case $am_aux_dir in
3569   *\ * | *\     *)
3570     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3571   *)
3572     install_sh="\${SHELL} $am_aux_dir/install-sh"
3573   esac
3574 fi
3575
3576 # Installed binaries are usually stripped using `strip' when the user
3577 # run `make install-strip'.  However `strip' might not be the right
3578 # tool to use in cross-compilation environments, therefore Automake
3579 # will honor the `STRIP' environment variable to overrule this program.
3580 if test "$cross_compiling" != no; then
3581   if test -n "$ac_tool_prefix"; then
3582   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3583 set dummy ${ac_tool_prefix}strip; ac_word=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if ${ac_cv_prog_STRIP+:} false; then :
3587   $as_echo_n "(cached) " >&6
3588 else
3589   if test -n "$STRIP"; then
3590   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3594 do
3595   IFS=$as_save_IFS
3596   test -z "$as_dir" && as_dir=.
3597     for ac_exec_ext in '' $ac_executable_extensions; do
3598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601     break 2
3602   fi
3603 done
3604   done
3605 IFS=$as_save_IFS
3606
3607 fi
3608 fi
3609 STRIP=$ac_cv_prog_STRIP
3610 if test -n "$STRIP"; then
3611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3612 $as_echo "$STRIP" >&6; }
3613 else
3614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3616 fi
3617
3618
3619 fi
3620 if test -z "$ac_cv_prog_STRIP"; then
3621   ac_ct_STRIP=$STRIP
3622   # Extract the first word of "strip", so it can be a program name with args.
3623 set dummy strip; ac_word=$2
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3625 $as_echo_n "checking for $ac_word... " >&6; }
3626 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3627   $as_echo_n "(cached) " >&6
3628 else
3629   if test -n "$ac_ct_STRIP"; then
3630   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3631 else
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635   IFS=$as_save_IFS
3636   test -z "$as_dir" && as_dir=.
3637     for ac_exec_ext in '' $ac_executable_extensions; do
3638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639     ac_cv_prog_ac_ct_STRIP="strip"
3640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3641     break 2
3642   fi
3643 done
3644   done
3645 IFS=$as_save_IFS
3646
3647 fi
3648 fi
3649 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3650 if test -n "$ac_ct_STRIP"; then
3651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3652 $as_echo "$ac_ct_STRIP" >&6; }
3653 else
3654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3656 fi
3657
3658   if test "x$ac_ct_STRIP" = x; then
3659     STRIP=":"
3660   else
3661     case $cross_compiling:$ac_tool_warned in
3662 yes:)
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3665 ac_tool_warned=yes ;;
3666 esac
3667     STRIP=$ac_ct_STRIP
3668   fi
3669 else
3670   STRIP="$ac_cv_prog_STRIP"
3671 fi
3672
3673 fi
3674 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3675
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3677 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3678 if test -z "$MKDIR_P"; then
3679   if ${ac_cv_path_mkdir+:} false; then :
3680   $as_echo_n "(cached) " >&6
3681 else
3682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3684 do
3685   IFS=$as_save_IFS
3686   test -z "$as_dir" && as_dir=.
3687     for ac_prog in mkdir gmkdir; do
3688          for ac_exec_ext in '' $ac_executable_extensions; do
3689            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3690            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3691              'mkdir (GNU coreutils) '* | \
3692              'mkdir (coreutils) '* | \
3693              'mkdir (fileutils) '4.1*)
3694                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3695                break 3;;
3696            esac
3697          done
3698        done
3699   done
3700 IFS=$as_save_IFS
3701
3702 fi
3703
3704   test -d ./--version && rmdir ./--version
3705   if test "${ac_cv_path_mkdir+set}" = set; then
3706     MKDIR_P="$ac_cv_path_mkdir -p"
3707   else
3708     # As a last resort, use the slow shell script.  Don't cache a
3709     # value for MKDIR_P within a source directory, because that will
3710     # break other packages using the cache if that directory is
3711     # removed, or if the value is a relative name.
3712     MKDIR_P="$ac_install_sh -d"
3713   fi
3714 fi
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3716 $as_echo "$MKDIR_P" >&6; }
3717
3718 mkdir_p="$MKDIR_P"
3719 case $mkdir_p in
3720   [\\/$]* | ?:[\\/]*) ;;
3721   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3722 esac
3723
3724 for ac_prog in gawk mawk nawk awk
3725 do
3726   # Extract the first word of "$ac_prog", so it can be a program name with args.
3727 set dummy $ac_prog; ac_word=$2
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3729 $as_echo_n "checking for $ac_word... " >&6; }
3730 if ${ac_cv_prog_AWK+:} false; then :
3731   $as_echo_n "(cached) " >&6
3732 else
3733   if test -n "$AWK"; then
3734   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3735 else
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 for as_dir in $PATH
3738 do
3739   IFS=$as_save_IFS
3740   test -z "$as_dir" && as_dir=.
3741     for ac_exec_ext in '' $ac_executable_extensions; do
3742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3743     ac_cv_prog_AWK="$ac_prog"
3744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3745     break 2
3746   fi
3747 done
3748   done
3749 IFS=$as_save_IFS
3750
3751 fi
3752 fi
3753 AWK=$ac_cv_prog_AWK
3754 if test -n "$AWK"; then
3755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3756 $as_echo "$AWK" >&6; }
3757 else
3758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3759 $as_echo "no" >&6; }
3760 fi
3761
3762
3763   test -n "$AWK" && break
3764 done
3765
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3767 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3768 set x ${MAKE-make}
3769 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3770 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3771   $as_echo_n "(cached) " >&6
3772 else
3773   cat >conftest.make <<\_ACEOF
3774 SHELL = /bin/sh
3775 all:
3776         @echo '@@@%%%=$(MAKE)=@@@%%%'
3777 _ACEOF
3778 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3779 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3780   *@@@%%%=?*=@@@%%%*)
3781     eval ac_cv_prog_make_${ac_make}_set=yes;;
3782   *)
3783     eval ac_cv_prog_make_${ac_make}_set=no;;
3784 esac
3785 rm -f conftest.make
3786 fi
3787 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3789 $as_echo "yes" >&6; }
3790   SET_MAKE=
3791 else
3792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 $as_echo "no" >&6; }
3794   SET_MAKE="MAKE=${MAKE-make}"
3795 fi
3796
3797 rm -rf .tst 2>/dev/null
3798 mkdir .tst 2>/dev/null
3799 if test -d .tst; then
3800   am__leading_dot=.
3801 else
3802   am__leading_dot=_
3803 fi
3804 rmdir .tst 2>/dev/null
3805
3806 # Check whether --enable-silent-rules was given.
3807 if test "${enable_silent_rules+set}" = set; then :
3808   enableval=$enable_silent_rules;
3809 fi
3810
3811 case $enable_silent_rules in
3812 yes) AM_DEFAULT_VERBOSITY=0;;
3813 no)  AM_DEFAULT_VERBOSITY=1;;
3814 *)   AM_DEFAULT_VERBOSITY=1;;
3815 esac
3816 am_make=${MAKE-make}
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3818 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3819 if ${am_cv_make_support_nested_variables+:} false; then :
3820   $as_echo_n "(cached) " >&6
3821 else
3822   if $as_echo 'TRUE=$(BAR$(V))
3823 BAR0=false
3824 BAR1=true
3825 V=1
3826 am__doit:
3827         @$(TRUE)
3828 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3829   am_cv_make_support_nested_variables=yes
3830 else
3831   am_cv_make_support_nested_variables=no
3832 fi
3833 fi
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3835 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3836 if test $am_cv_make_support_nested_variables = yes; then
3837     AM_V='$(V)'
3838   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3839 else
3840   AM_V=$AM_DEFAULT_VERBOSITY
3841   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3842 fi
3843 AM_BACKSLASH='\'
3844
3845 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3846   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3847   # is not polluted with repeated "-I."
3848   am__isrc=' -I$(srcdir)'
3849   # test to see if srcdir already configured
3850   if test -f $srcdir/config.status; then
3851     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3852   fi
3853 fi
3854
3855 # test whether we have cygpath
3856 if test -z "$CYGPATH_W"; then
3857   if (cygpath --version) >/dev/null 2>/dev/null; then
3858     CYGPATH_W='cygpath -w'
3859   else
3860     CYGPATH_W=echo
3861   fi
3862 fi
3863
3864
3865 # Define the identity of the package.
3866  PACKAGE='syncevolution'
3867  VERSION='1.5'
3868
3869
3870 cat >>confdefs.h <<_ACEOF
3871 #define PACKAGE "$PACKAGE"
3872 _ACEOF
3873
3874
3875 cat >>confdefs.h <<_ACEOF
3876 #define VERSION "$VERSION"
3877 _ACEOF
3878
3879 # Some tools Automake needs.
3880
3881 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3882
3883
3884 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3885
3886
3887 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3888
3889
3890 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3891
3892
3893 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3894
3895 # We need awk for the "check" target.  The system "awk" is bad on
3896 # some platforms.
3897 # Always define AMTAR for backward compatibility.  Yes, it's still used
3898 # in the wild :-(  We should find a proper way to deprecate it ...
3899 AMTAR='$${TAR-tar}'
3900
3901
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3903 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3904 # Loop over all known methods to create a tar archive until one works.
3905 _am_tools='gnutar plaintar pax cpio none'
3906 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3907 # Do not fold the above two line into one, because Tru64 sh and
3908 # Solaris sh will not grok spaces in the rhs of `-'.
3909 for _am_tool in $_am_tools
3910 do
3911   case $_am_tool in
3912   gnutar)
3913     for _am_tar in tar gnutar gtar;
3914     do
3915       { echo "$as_me:$LINENO: $_am_tar --version" >&5
3916    ($_am_tar --version) >&5 2>&5
3917    ac_status=$?
3918    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919    (exit $ac_status); } && break
3920     done
3921     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3922     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3923     am__untar="$_am_tar -xf -"
3924     ;;
3925   plaintar)
3926     # Must skip GNU tar: if it does not support --format= it doesn't create
3927     # ustar tarball either.
3928     (tar --version) >/dev/null 2>&1 && continue
3929     am__tar='tar chf - "$$tardir"'
3930     am__tar_='tar chf - "$tardir"'
3931     am__untar='tar xf -'
3932     ;;
3933   pax)
3934     am__tar='pax -L -x ustar -w "$$tardir"'
3935     am__tar_='pax -L -x ustar -w "$tardir"'
3936     am__untar='pax -r'
3937     ;;
3938   cpio)
3939     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3940     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3941     am__untar='cpio -i -H ustar -d'
3942     ;;
3943   none)
3944     am__tar=false
3945     am__tar_=false
3946     am__untar=false
3947     ;;
3948   esac
3949
3950   # If the value was cached, stop now.  We just wanted to have am__tar
3951   # and am__untar set.
3952   test -n "${am_cv_prog_tar_ustar}" && break
3953
3954   # tar/untar a dummy directory, and stop if the command works
3955   rm -rf conftest.dir
3956   mkdir conftest.dir
3957   echo GrepMe > conftest.dir/file
3958   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3959    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3960    ac_status=$?
3961    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962    (exit $ac_status); }
3963   rm -rf conftest.dir
3964   if test -s conftest.tar; then
3965     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3966    ($am__untar <conftest.tar) >&5 2>&5
3967    ac_status=$?
3968    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969    (exit $ac_status); }
3970     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3971   fi
3972 done
3973 rm -rf conftest.dir
3974
3975 if ${am_cv_prog_tar_ustar+:} false; then :
3976   $as_echo_n "(cached) " >&6
3977 else
3978   am_cv_prog_tar_ustar=$_am_tool
3979 fi
3980
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3982 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3983
3984
3985
3986
3987
3988
3989 DEPDIR="${am__leading_dot}deps"
3990
3991 ac_config_commands="$ac_config_commands depfiles"
3992
3993
3994 am_make=${MAKE-make}
3995 cat > confinc << 'END'
3996 am__doit:
3997         @echo this is the am__doit target
3998 .PHONY: am__doit
3999 END
4000 # If we don't find an include directive, just comment out the code.
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4002 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4003 am__include="#"
4004 am__quote=
4005 _am_result=none
4006 # First try GNU make style include.
4007 echo "include confinc" > confmf
4008 # Ignore all kinds of additional output from `make'.
4009 case `$am_make -s -f confmf 2> /dev/null` in #(
4010 *the\ am__doit\ target*)
4011   am__include=include
4012   am__quote=
4013   _am_result=GNU
4014   ;;
4015 esac
4016 # Now try BSD make style include.
4017 if test "$am__include" = "#"; then
4018    echo '.include "confinc"' > confmf
4019    case `$am_make -s -f confmf 2> /dev/null` in #(
4020    *the\ am__doit\ target*)
4021      am__include=.include
4022      am__quote="\""
4023      _am_result=BSD
4024      ;;
4025    esac
4026 fi
4027
4028
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4030 $as_echo "$_am_result" >&6; }
4031 rm -f confinc confmf
4032
4033 # Check whether --enable-dependency-tracking was given.
4034 if test "${enable_dependency_tracking+set}" = set; then :
4035   enableval=$enable_dependency_tracking;
4036 fi
4037
4038 if test "x$enable_dependency_tracking" != xno; then
4039   am_depcomp="$ac_aux_dir/depcomp"
4040   AMDEPBACKSLASH='\'
4041   am__nodep='_no'
4042 fi
4043  if test "x$enable_dependency_tracking" != xno; then
4044   AMDEP_TRUE=
4045   AMDEP_FALSE='#'
4046 else
4047   AMDEP_TRUE='#'
4048   AMDEP_FALSE=
4049 fi
4050
4051
4052 ac_ext=c
4053 ac_cpp='$CPP $CPPFLAGS'
4054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057 if test -n "$ac_tool_prefix"; then
4058   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4059 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061 $as_echo_n "checking for $ac_word... " >&6; }
4062 if ${ac_cv_prog_CC+:} false; then :
4063   $as_echo_n "(cached) " >&6
4064 else
4065   if test -n "$CC"; then
4066   ac_cv_prog_CC="$CC" # Let the user override the test.
4067 else
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4070 do
4071   IFS=$as_save_IFS
4072   test -z "$as_dir" && as_dir=.
4073     for ac_exec_ext in '' $ac_executable_extensions; do
4074   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4077     break 2
4078   fi
4079 done
4080   done
4081 IFS=$as_save_IFS
4082
4083 fi
4084 fi
4085 CC=$ac_cv_prog_CC
4086 if test -n "$CC"; then
4087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4088 $as_echo "$CC" >&6; }
4089 else
4090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091 $as_echo "no" >&6; }
4092 fi
4093
4094
4095 fi
4096 if test -z "$ac_cv_prog_CC"; then
4097   ac_ct_CC=$CC
4098   # Extract the first word of "gcc", so it can be a program name with args.
4099 set dummy gcc; ac_word=$2
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101 $as_echo_n "checking for $ac_word... " >&6; }
4102 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4103   $as_echo_n "(cached) " >&6
4104 else
4105   if test -n "$ac_ct_CC"; then
4106   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4107 else
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4110 do
4111   IFS=$as_save_IFS
4112   test -z "$as_dir" && as_dir=.
4113     for ac_exec_ext in '' $ac_executable_extensions; do
4114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4115     ac_cv_prog_ac_ct_CC="gcc"
4116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4117     break 2
4118   fi
4119 done
4120   done
4121 IFS=$as_save_IFS
4122
4123 fi
4124 fi
4125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4126 if test -n "$ac_ct_CC"; then
4127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4128 $as_echo "$ac_ct_CC" >&6; }
4129 else
4130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131 $as_echo "no" >&6; }
4132 fi
4133
4134   if test "x$ac_ct_CC" = x; then
4135     CC=""
4136   else
4137     case $cross_compiling:$ac_tool_warned in
4138 yes:)
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4141 ac_tool_warned=yes ;;
4142 esac
4143     CC=$ac_ct_CC
4144   fi
4145 else
4146   CC="$ac_cv_prog_CC"
4147 fi
4148
4149 if test -z "$CC"; then
4150           if test -n "$ac_tool_prefix"; then
4151     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4152 set dummy ${ac_tool_prefix}cc; ac_word=$2
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154 $as_echo_n "checking for $ac_word... " >&6; }
4155 if ${ac_cv_prog_CC+:} false; then :
4156   $as_echo_n "(cached) " >&6
4157 else
4158   if test -n "$CC"; then
4159   ac_cv_prog_CC="$CC" # Let the user override the test.
4160 else
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4163 do
4164   IFS=$as_save_IFS
4165   test -z "$as_dir" && as_dir=.
4166     for ac_exec_ext in '' $ac_executable_extensions; do
4167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168     ac_cv_prog_CC="${ac_tool_prefix}cc"
4169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170     break 2
4171   fi
4172 done
4173   done
4174 IFS=$as_save_IFS
4175
4176 fi
4177 fi
4178 CC=$ac_cv_prog_CC
4179 if test -n "$CC"; then
4180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4181 $as_echo "$CC" >&6; }
4182 else
4183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 $as_echo "no" >&6; }
4185 fi
4186
4187
4188   fi
4189 fi
4190 if test -z "$CC"; then
4191   # Extract the first word of "cc", so it can be a program name with args.
4192 set dummy cc; ac_word=$2
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4194 $as_echo_n "checking for $ac_word... " >&6; }
4195 if ${ac_cv_prog_CC+:} false; then :
4196   $as_echo_n "(cached) " >&6
4197 else
4198   if test -n "$CC"; then
4199   ac_cv_prog_CC="$CC" # Let the user override the test.
4200 else
4201   ac_prog_rejected=no
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH
4204 do
4205   IFS=$as_save_IFS
4206   test -z "$as_dir" && as_dir=.
4207     for ac_exec_ext in '' $ac_executable_extensions; do
4208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4209     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4210        ac_prog_rejected=yes
4211        continue
4212      fi
4213     ac_cv_prog_CC="cc"
4214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215     break 2
4216   fi
4217 done
4218   done
4219 IFS=$as_save_IFS
4220
4221 if test $ac_prog_rejected = yes; then
4222   # We found a bogon in the path, so make sure we never use it.
4223   set dummy $ac_cv_prog_CC
4224   shift
4225   if test $# != 0; then
4226     # We chose a different compiler from the bogus one.
4227     # However, it has the same basename, so the bogon will be chosen
4228     # first if we set CC to just the basename; use the full file name.
4229     shift
4230     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4231   fi
4232 fi
4233 fi
4234 fi
4235 CC=$ac_cv_prog_CC
4236 if test -n "$CC"; then
4237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4238 $as_echo "$CC" >&6; }
4239 else
4240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241 $as_echo "no" >&6; }
4242 fi
4243
4244
4245 fi
4246 if test -z "$CC"; then
4247   if test -n "$ac_tool_prefix"; then
4248   for ac_prog in cl.exe
4249   do
4250     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253 $as_echo_n "checking for $ac_word... " >&6; }
4254 if ${ac_cv_prog_CC+:} false; then :
4255   $as_echo_n "(cached) " >&6
4256 else
4257   if test -n "$CC"; then
4258   ac_cv_prog_CC="$CC" # Let the user override the test.
4259 else
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH
4262 do
4263   IFS=$as_save_IFS
4264   test -z "$as_dir" && as_dir=.
4265     for ac_exec_ext in '' $ac_executable_extensions; do
4266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4267     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4269     break 2
4270   fi
4271 done
4272   done
4273 IFS=$as_save_IFS
4274
4275 fi
4276 fi
4277 CC=$ac_cv_prog_CC
4278 if test -n "$CC"; then
4279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4280 $as_echo "$CC" >&6; }
4281 else
4282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 $as_echo "no" >&6; }
4284 fi
4285
4286
4287     test -n "$CC" && break
4288   done
4289 fi
4290 if test -z "$CC"; then
4291   ac_ct_CC=$CC
4292   for ac_prog in cl.exe
4293 do
4294   # Extract the first word of "$ac_prog", so it can be a program name with args.
4295 set dummy $ac_prog; ac_word=$2
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297 $as_echo_n "checking for $ac_word... " >&6; }
4298 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4299   $as_echo_n "(cached) " >&6
4300 else
4301   if test -n "$ac_ct_CC"; then
4302   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307   IFS=$as_save_IFS
4308   test -z "$as_dir" && as_dir=.
4309     for ac_exec_ext in '' $ac_executable_extensions; do
4310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311     ac_cv_prog_ac_ct_CC="$ac_prog"
4312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4313     break 2
4314   fi
4315 done
4316   done
4317 IFS=$as_save_IFS
4318
4319 fi
4320 fi
4321 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4322 if test -n "$ac_ct_CC"; then
4323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4324 $as_echo "$ac_ct_CC" >&6; }
4325 else
4326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327 $as_echo "no" >&6; }
4328 fi
4329
4330
4331   test -n "$ac_ct_CC" && break
4332 done
4333
4334   if test "x$ac_ct_CC" = x; then
4335     CC=""
4336   else
4337     case $cross_compiling:$ac_tool_warned in
4338 yes:)
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4341 ac_tool_warned=yes ;;
4342 esac
4343     CC=$ac_ct_CC
4344   fi
4345 fi
4346
4347 fi
4348
4349
4350 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4352 as_fn_error $? "no acceptable C compiler found in \$PATH
4353 See \`config.log' for more details" "$LINENO" 5; }
4354
4355 # Provide some information about the compiler.
4356 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4357 set X $ac_compile
4358 ac_compiler=$2
4359 for ac_option in --version -v -V -qversion; do
4360   { { ac_try="$ac_compiler $ac_option >&5"
4361 case "(($ac_try" in
4362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363   *) ac_try_echo=$ac_try;;
4364 esac
4365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4366 $as_echo "$ac_try_echo"; } >&5
4367   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4368   ac_status=$?
4369   if test -s conftest.err; then
4370     sed '10a\
4371 ... rest of stderr output deleted ...
4372          10q' conftest.err >conftest.er1
4373     cat conftest.er1 >&5
4374   fi
4375   rm -f conftest.er1 conftest.err
4376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4377   test $ac_status = 0; }
4378 done
4379
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h.  */
4382
4383 int
4384 main ()
4385 {
4386
4387   ;
4388   return 0;
4389 }
4390 _ACEOF
4391 ac_clean_files_save=$ac_clean_files
4392 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4393 # Try to create an executable without -o first, disregard a.out.
4394 # It will help us diagnose broken compilers, and finding out an intuition
4395 # of exeext.
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4397 $as_echo_n "checking whether the C compiler works... " >&6; }
4398 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4399
4400 # The possible output files:
4401 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4402
4403 ac_rmfiles=
4404 for ac_file in $ac_files
4405 do
4406   case $ac_file in
4407     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4408     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4409   esac
4410 done
4411 rm -f $ac_rmfiles
4412
4413 if { { ac_try="$ac_link_default"
4414 case "(($ac_try" in
4415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416   *) ac_try_echo=$ac_try;;
4417 esac
4418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419 $as_echo "$ac_try_echo"; } >&5
4420   (eval "$ac_link_default") 2>&5
4421   ac_status=$?
4422   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4423   test $ac_status = 0; }; then :
4424   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4425 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4426 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4427 # so that the user can short-circuit this test for compilers unknown to
4428 # Autoconf.
4429 for ac_file in $ac_files ''
4430 do
4431   test -f "$ac_file" || continue
4432   case $ac_file in
4433     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4434         ;;
4435     [ab].out )
4436         # We found the default executable, but exeext='' is most
4437         # certainly right.
4438         break;;
4439     *.* )
4440         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4441         then :; else
4442            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4443         fi
4444         # We set ac_cv_exeext here because the later test for it is not
4445         # safe: cross compilers may not add the suffix if given an `-o'
4446         # argument, so we may need to know it at that point already.
4447         # Even if this section looks crufty: it has the advantage of
4448         # actually working.
4449         break;;
4450     * )
4451         break;;
4452   esac
4453 done
4454 test "$ac_cv_exeext" = no && ac_cv_exeext=
4455
4456 else
4457   ac_file=''
4458 fi
4459 if test -z "$ac_file"; then :
4460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461 $as_echo "no" >&6; }
4462 $as_echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4464
4465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4467 as_fn_error 77 "C compiler cannot create executables
4468 See \`config.log' for more details" "$LINENO" 5; }
4469 else
4470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4471 $as_echo "yes" >&6; }
4472 fi
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4474 $as_echo_n "checking for C compiler default output file name... " >&6; }
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4476 $as_echo "$ac_file" >&6; }
4477 ac_exeext=$ac_cv_exeext
4478
4479 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4480 ac_clean_files=$ac_clean_files_save
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4482 $as_echo_n "checking for suffix of executables... " >&6; }
4483 if { { ac_try="$ac_link"
4484 case "(($ac_try" in
4485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486   *) ac_try_echo=$ac_try;;
4487 esac
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490   (eval "$ac_link") 2>&5
4491   ac_status=$?
4492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493   test $ac_status = 0; }; then :
4494   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4495 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4496 # work properly (i.e., refer to `conftest.exe'), while it won't with
4497 # `rm'.
4498 for ac_file in conftest.exe conftest conftest.*; do
4499   test -f "$ac_file" || continue
4500   case $ac_file in
4501     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4502     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4503           break;;
4504     * ) break;;
4505   esac
4506 done
4507 else
4508   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4510 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4511 See \`config.log' for more details" "$LINENO" 5; }
4512 fi
4513 rm -f conftest conftest$ac_cv_exeext
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4515 $as_echo "$ac_cv_exeext" >&6; }
4516
4517 rm -f conftest.$ac_ext
4518 EXEEXT=$ac_cv_exeext
4519 ac_exeext=$EXEEXT
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h.  */
4522 #include <stdio.h>
4523 int
4524 main ()
4525 {
4526 FILE *f = fopen ("conftest.out", "w");
4527  return ferror (f) || fclose (f) != 0;
4528
4529   ;
4530   return 0;
4531 }
4532 _ACEOF
4533 ac_clean_files="$ac_clean_files conftest.out"
4534 # Check that the compiler produces executables we can run.  If not, either
4535 # the compiler is broken, or we cross compile.
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4537 $as_echo_n "checking whether we are cross compiling... " >&6; }
4538 if test "$cross_compiling" != yes; then
4539   { { ac_try="$ac_link"
4540 case "(($ac_try" in
4541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542   *) ac_try_echo=$ac_try;;
4543 esac
4544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4545 $as_echo "$ac_try_echo"; } >&5
4546   (eval "$ac_link") 2>&5
4547   ac_status=$?
4548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4549   test $ac_status = 0; }
4550   if { ac_try='./conftest$ac_cv_exeext'
4551   { { case "(($ac_try" in
4552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553   *) ac_try_echo=$ac_try;;
4554 esac
4555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4556 $as_echo "$ac_try_echo"; } >&5
4557   (eval "$ac_try") 2>&5
4558   ac_status=$?
4559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4560   test $ac_status = 0; }; }; then
4561     cross_compiling=no
4562   else
4563     if test "$cross_compiling" = maybe; then
4564         cross_compiling=yes
4565     else
4566         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4568 as_fn_error $? "cannot run C compiled programs.
4569 If you meant to cross compile, use \`--host'.
4570 See \`config.log' for more details" "$LINENO" 5; }
4571     fi
4572   fi
4573 fi
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4575 $as_echo "$cross_compiling" >&6; }
4576
4577 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4578 ac_clean_files=$ac_clean_files_save
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4580 $as_echo_n "checking for suffix of object files... " >&6; }
4581 if ${ac_cv_objext+:} false; then :
4582   $as_echo_n "(cached) " >&6
4583 else
4584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h.  */
4586
4587 int
4588 main ()
4589 {
4590
4591   ;
4592   return 0;
4593 }
4594 _ACEOF
4595 rm -f conftest.o conftest.obj
4596 if { { ac_try="$ac_compile"
4597 case "(($ac_try" in
4598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599   *) ac_try_echo=$ac_try;;
4600 esac
4601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4602 $as_echo "$ac_try_echo"; } >&5
4603   (eval "$ac_compile") 2>&5
4604   ac_status=$?
4605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4606   test $ac_status = 0; }; then :
4607   for ac_file in conftest.o conftest.obj conftest.*; do
4608   test -f "$ac_file" || continue;
4609   case $ac_file in
4610     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4611     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4612        break;;
4613   esac
4614 done
4615 else
4616   $as_echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4618
4619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4621 as_fn_error $? "cannot compute suffix of object files: cannot compile
4622 See \`config.log' for more details" "$LINENO" 5; }
4623 fi
4624 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4627 $as_echo "$ac_cv_objext" >&6; }
4628 OBJEXT=$ac_cv_objext
4629 ac_objext=$OBJEXT
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4631 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4632 if ${ac_cv_c_compiler_gnu+:} false; then :
4633   $as_echo_n "(cached) " >&6
4634 else
4635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h.  */
4637
4638 int
4639 main ()
4640 {
4641 #ifndef __GNUC__
4642        choke me
4643 #endif
4644
4645   ;
4646   return 0;
4647 }
4648 _ACEOF
4649 if ac_fn_c_try_compile "$LINENO"; then :
4650   ac_compiler_gnu=yes
4651 else
4652   ac_compiler_gnu=no
4653 fi
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4656
4657 fi
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4659 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4660 if test $ac_compiler_gnu = yes; then
4661   GCC=yes
4662 else
4663   GCC=
4664 fi
4665 ac_test_CFLAGS=${CFLAGS+set}
4666 ac_save_CFLAGS=$CFLAGS
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4668 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4669 if ${ac_cv_prog_cc_g+:} false; then :
4670   $as_echo_n "(cached) " >&6
4671 else
4672   ac_save_c_werror_flag=$ac_c_werror_flag
4673    ac_c_werror_flag=yes
4674    ac_cv_prog_cc_g=no
4675    CFLAGS="-g"
4676    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h.  */
4678
4679 int
4680 main ()
4681 {
4682
4683   ;
4684   return 0;
4685 }
4686 _ACEOF
4687 if ac_fn_c_try_compile "$LINENO"; then :
4688   ac_cv_prog_cc_g=yes
4689 else
4690   CFLAGS=""
4691       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h.  */
4693
4694 int
4695 main ()
4696 {
4697
4698   ;
4699   return 0;
4700 }
4701 _ACEOF
4702 if ac_fn_c_try_compile "$LINENO"; then :
4703
4704 else
4705   ac_c_werror_flag=$ac_save_c_werror_flag
4706          CFLAGS="-g"
4707          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h.  */
4709
4710 int
4711 main ()
4712 {
4713
4714   ;
4715   return 0;
4716 }
4717 _ACEOF
4718 if ac_fn_c_try_compile "$LINENO"; then :
4719   ac_cv_prog_cc_g=yes
4720 fi
4721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 fi
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 fi
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726    ac_c_werror_flag=$ac_save_c_werror_flag
4727 fi
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4729 $as_echo "$ac_cv_prog_cc_g" >&6; }
4730 if test "$ac_test_CFLAGS" = set; then
4731   CFLAGS=$ac_save_CFLAGS
4732 elif test $ac_cv_prog_cc_g = yes; then
4733   if test "$GCC" = yes; then
4734     CFLAGS="-g -O2"
4735   else
4736     CFLAGS="-g"
4737   fi
4738 else
4739   if test "$GCC" = yes; then
4740     CFLAGS="-O2"
4741   else
4742     CFLAGS=
4743   fi
4744 fi
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4746 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4747 if ${ac_cv_prog_cc_c89+:} false; then :
4748   $as_echo_n "(cached) " >&6
4749 else
4750   ac_cv_prog_cc_c89=no
4751 ac_save_CC=$CC
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h.  */
4754 #include <stdarg.h>
4755 #include <stdio.h>
4756 struct stat;
4757 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4758 struct buf { int x; };
4759 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4760 static char *e (p, i)
4761      char **p;
4762      int i;
4763 {
4764   return p[i];
4765 }
4766 static char *f (char * (*g) (char **, int), char **p, ...)
4767 {
4768   char *s;
4769   va_list v;
4770   va_start (v,p);
4771   s = g (p, va_arg (v,int));
4772   va_end (v);
4773   return s;
4774 }
4775
4776 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4777    function prototypes and stuff, but not '\xHH' hex character constants.
4778    These don't provoke an error unfortunately, instead are silently treated
4779    as 'x'.  The following induces an error, until -std is added to get
4780    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4781    array size at least.  It's necessary to write '\x00'==0 to get something
4782    that's true only with -std.  */
4783 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4784
4785 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4786    inside strings and character constants.  */
4787 #define FOO(x) 'x'
4788 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4789
4790 int test (int i, double x);
4791 struct s1 {int (*f) (int a);};
4792 struct s2 {int (*f) (double a);};
4793 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4794 int argc;
4795 char **argv;
4796 int
4797 main ()
4798 {
4799 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4800   ;
4801   return 0;
4802 }
4803 _ACEOF
4804 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4805         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4806 do
4807   CC="$ac_save_CC $ac_arg"
4808   if ac_fn_c_try_compile "$LINENO"; then :
4809   ac_cv_prog_cc_c89=$ac_arg
4810 fi
4811 rm -f core conftest.err conftest.$ac_objext
4812   test "x$ac_cv_prog_cc_c89" != "xno" && break
4813 done
4814 rm -f conftest.$ac_ext
4815 CC=$ac_save_CC
4816
4817 fi
4818 # AC_CACHE_VAL
4819 case "x$ac_cv_prog_cc_c89" in
4820   x)
4821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4822 $as_echo "none needed" >&6; } ;;
4823   xno)
4824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4825 $as_echo "unsupported" >&6; } ;;
4826   *)
4827     CC="$CC $ac_cv_prog_cc_c89"
4828     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4829 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4830 esac
4831 if test "x$ac_cv_prog_cc_c89" != xno; then :
4832
4833 fi
4834
4835 ac_ext=c
4836 ac_cpp='$CPP $CPPFLAGS'
4837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4840
4841 depcc="$CC"   am_compiler_list=
4842
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4844 $as_echo_n "checking dependency style of $depcc... " >&6; }
4845 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4846   $as_echo_n "(cached) " >&6
4847 else
4848   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4849   # We make a subdir and do the tests there.  Otherwise we can end up
4850   # making bogus files that we don't know about and never remove.  For
4851   # instance it was reported that on HP-UX the gcc test will end up
4852   # making a dummy file named `D' -- because `-MD' means `put the output
4853   # in D'.
4854   rm -rf conftest.dir
4855   mkdir conftest.dir
4856   # Copy depcomp to subdir because otherwise we won't find it if we're
4857   # using a relative directory.
4858   cp "$am_depcomp" conftest.dir
4859   cd conftest.dir
4860   # We will build objects and dependencies in a subdirectory because
4861   # it helps to detect inapplicable dependency modes.  For instance
4862   # both Tru64's cc and ICC support -MD to output dependencies as a
4863   # side effect of compilation, but ICC will put the dependencies in
4864   # the current directory while Tru64 will put them in the object
4865   # directory.
4866   mkdir sub
4867
4868   am_cv_CC_dependencies_compiler_type=none
4869   if test "$am_compiler_list" = ""; then
4870      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4871   fi
4872   am__universal=false
4873   case " $depcc " in #(
4874      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4875      esac
4876
4877   for depmode in $am_compiler_list; do
4878     # Setup a source with many dependencies, because some compilers
4879     # like to wrap large dependency lists on column 80 (with \), and
4880     # we should not choose a depcomp mode which is confused by this.
4881     #
4882     # We need to recreate these files for each test, as the compiler may
4883     # overwrite some of them when testing with obscure command lines.
4884     # This happens at least with the AIX C compiler.
4885     : > sub/conftest.c
4886     for i in 1 2 3 4 5 6; do
4887       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4888       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4889       # Solaris 8's {/usr,}/bin/sh.
4890       touch sub/conftst$i.h
4891     done
4892     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4893
4894     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4895     # mode.  It turns out that the SunPro C++ compiler does not properly
4896     # handle `-M -o', and we need to detect this.  Also, some Intel
4897     # versions had trouble with output in subdirs
4898     am__obj=sub/conftest.${OBJEXT-o}
4899     am__minus_obj="-o $am__obj"
4900     case $depmode in
4901     gcc)
4902       # This depmode causes a compiler race in universal mode.
4903       test "$am__universal" = false || continue
4904       ;;
4905     nosideeffect)
4906       # after this tag, mechanisms are not by side-effect, so they'll
4907       # only be used when explicitly requested
4908       if test "x$enable_dependency_tracking" = xyes; then
4909         continue
4910       else
4911         break
4912       fi
4913       ;;
4914     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4915       # This compiler won't grok `-c -o', but also, the minuso test has
4916       # not run yet.  These depmodes are late enough in the game, and
4917       # so weak that their functioning should not be impacted.
4918       am__obj=conftest.${OBJEXT-o}
4919       am__minus_obj=
4920       ;;
4921     none) break ;;
4922     esac
4923     if depmode=$depmode \
4924        source=sub/conftest.c object=$am__obj \
4925        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4926        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4927          >/dev/null 2>conftest.err &&
4928        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4929        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4930        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4931        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4932       # icc doesn't choke on unknown options, it will just issue warnings
4933       # or remarks (even with -Werror).  So we grep stderr for any message
4934       # that says an option was ignored or not supported.
4935       # When given -MP, icc 7.0 and 7.1 complain thusly:
4936       #   icc: Command line warning: ignoring option '-M'; no argument required
4937       # The diagnosis changed in icc 8.0:
4938       #   icc: Command line remark: option '-MP' not supported
4939       if (grep 'ignoring option' conftest.err ||
4940           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4941         am_cv_CC_dependencies_compiler_type=$depmode
4942         break
4943       fi
4944     fi
4945   done
4946
4947   cd ..
4948   rm -rf conftest.dir
4949 else
4950   am_cv_CC_dependencies_compiler_type=none
4951 fi
4952
4953 fi
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4955 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4956 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4957
4958  if
4959   test "x$enable_dependency_tracking" != xno \
4960   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4961   am__fastdepCC_TRUE=
4962   am__fastdepCC_FALSE='#'
4963 else
4964   am__fastdepCC_TRUE='#'
4965   am__fastdepCC_FALSE=
4966 fi
4967
4968
4969 if test "x$CC" != xcc; then
4970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4971 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4972 else
4973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4974 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4975 fi
4976 set dummy $CC; ac_cc=`$as_echo "$2" |
4977                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4978 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4979   $as_echo_n "(cached) " >&6
4980 else
4981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h.  */
4983
4984 int
4985 main ()
4986 {
4987
4988   ;
4989   return 0;
4990 }
4991 _ACEOF
4992 # Make sure it works both with $CC and with simple cc.
4993 # We do the test twice because some compilers refuse to overwrite an
4994 # existing .o file with -o, though they will create one.
4995 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4996 rm -f conftest2.*
4997 if { { case "(($ac_try" in
4998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999   *) ac_try_echo=$ac_try;;
5000 esac
5001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5002 $as_echo "$ac_try_echo"; } >&5
5003   (eval "$ac_try") 2>&5
5004   ac_status=$?
5005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5006   test $ac_status = 0; } &&
5007    test -f conftest2.$ac_objext && { { case "(($ac_try" in
5008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009   *) ac_try_echo=$ac_try;;
5010 esac
5011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5012 $as_echo "$ac_try_echo"; } >&5
5013   (eval "$ac_try") 2>&5
5014   ac_status=$?
5015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5016   test $ac_status = 0; };
5017 then
5018   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5019   if test "x$CC" != xcc; then
5020     # Test first that cc exists at all.
5021     if { ac_try='cc -c conftest.$ac_ext >&5'
5022   { { case "(($ac_try" in
5023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024   *) ac_try_echo=$ac_try;;
5025 esac
5026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5027 $as_echo "$ac_try_echo"; } >&5
5028   (eval "$ac_try") 2>&5
5029   ac_status=$?
5030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5031   test $ac_status = 0; }; }; then
5032       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5033       rm -f conftest2.*
5034       if { { case "(($ac_try" in
5035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036   *) ac_try_echo=$ac_try;;
5037 esac
5038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5039 $as_echo "$ac_try_echo"; } >&5
5040   (eval "$ac_try") 2>&5
5041   ac_status=$?
5042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5043   test $ac_status = 0; } &&
5044          test -f conftest2.$ac_objext && { { case "(($ac_try" in
5045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046   *) ac_try_echo=$ac_try;;
5047 esac
5048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5049 $as_echo "$ac_try_echo"; } >&5
5050   (eval "$ac_try") 2>&5
5051   ac_status=$?
5052   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5053   test $ac_status = 0; };
5054       then
5055         # cc works too.
5056         :
5057       else
5058         # cc exists but doesn't like -o.
5059         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5060       fi
5061     fi
5062   fi
5063 else
5064   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5065 fi
5066 rm -f core conftest*
5067
5068 fi
5069 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5071 $as_echo "yes" >&6; }
5072 else
5073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5075
5076 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5077
5078 fi
5079
5080 # FIXME: we rely on the cache variable name because
5081 # there is no other way.
5082 set dummy $CC
5083 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5084 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5085 if test "$am_t" != yes; then
5086    # Losing compiler, so override with the script.
5087    # FIXME: It is wrong to rewrite CC.
5088    # But if we don't then we get into trouble of one sort or another.
5089    # A longer-term fix would be to have automake use am__CC in this case,
5090    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5091    CC="$am_aux_dir/compile $CC"
5092 fi
5093
5094
5095
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5098 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5099     # Check whether --enable-maintainer-mode was given.
5100 if test "${enable_maintainer_mode+set}" = set; then :
5101   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5102 else
5103   USE_MAINTAINER_MODE=yes
5104 fi
5105
5106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5107 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5108    if test $USE_MAINTAINER_MODE = yes; then
5109   MAINTAINER_MODE_TRUE=
5110   MAINTAINER_MODE_FALSE='#'
5111 else
5112   MAINTAINER_MODE_TRUE='#'
5113   MAINTAINER_MODE_FALSE=
5114 fi
5115
5116   MAINT=$MAINTAINER_MODE_TRUE
5117
5118  # needed for nightly builds where reconfiguration fails under certain chroots
5119
5120
5121
5122 ac_config_headers="$ac_config_headers config.h"
5123
5124 enable_dlopen=yes
5125
5126
5127
5128 case `pwd` in
5129   *\ * | *\     *)
5130     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5131 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5132 esac
5133
5134
5135
5136 macro_version='2.4.2'
5137 macro_revision='1.3337'
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151 ltmain="$ac_aux_dir/ltmain.sh"
5152
5153 # Make sure we can run config.sub.
5154 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5155   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5156
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5158 $as_echo_n "checking build system type... " >&6; }
5159 if ${ac_cv_build+:} false; then :
5160   $as_echo_n "(cached) " >&6
5161 else
5162   ac_build_alias=$build_alias
5163 test "x$ac_build_alias" = x &&
5164   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5165 test "x$ac_build_alias" = x &&
5166   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5167 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5168   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5169
5170 fi
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5172 $as_echo "$ac_cv_build" >&6; }
5173 case $ac_cv_build in
5174 *-*-*) ;;
5175 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5176 esac
5177 build=$ac_cv_build
5178 ac_save_IFS=$IFS; IFS='-'
5179 set x $ac_cv_build
5180 shift
5181 build_cpu=$1
5182 build_vendor=$2
5183 shift; shift
5184 # Remember, the first character of IFS is used to create $*,
5185 # except with old shells:
5186 build_os=$*
5187 IFS=$ac_save_IFS
5188 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5189
5190
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5192 $as_echo_n "checking host system type... " >&6; }
5193 if ${ac_cv_host+:} false; then :
5194   $as_echo_n "(cached) " >&6
5195 else
5196   if test "x$host_alias" = x; then
5197   ac_cv_host=$ac_cv_build
5198 else
5199   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5200     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5201 fi
5202
5203 fi
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5205 $as_echo "$ac_cv_host" >&6; }
5206 case $ac_cv_host in
5207 *-*-*) ;;
5208 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5209 esac
5210 host=$ac_cv_host
5211 ac_save_IFS=$IFS; IFS='-'
5212 set x $ac_cv_host
5213 shift
5214 host_cpu=$1
5215 host_vendor=$2
5216 shift; shift
5217 # Remember, the first character of IFS is used to create $*,
5218 # except with old shells:
5219 host_os=$*
5220 IFS=$ac_save_IFS
5221 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5222
5223
5224 # Backslashify metacharacters that are still active within
5225 # double-quoted strings.
5226 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5227
5228 # Same as above, but do not quote variable references.
5229 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5230
5231 # Sed substitution to delay expansion of an escaped shell variable in a
5232 # double_quote_subst'ed string.
5233 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5234
5235 # Sed substitution to delay expansion of an escaped single quote.
5236 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5237
5238 # Sed substitution to avoid accidental globbing in evaled expressions
5239 no_glob_subst='s/\*/\\\*/g'
5240
5241 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5242 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5243 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5244
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5246 $as_echo_n "checking how to print strings... " >&6; }
5247 # Test print first, because it will be a builtin if present.
5248 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5249    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5250   ECHO='print -r --'
5251 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5252   ECHO='printf %s\n'
5253 else
5254   # Use this function as a fallback that always works.
5255   func_fallback_echo ()
5256   {
5257     eval 'cat <<_LTECHO_EOF
5258 $1
5259 _LTECHO_EOF'
5260   }
5261   ECHO='func_fallback_echo'
5262 fi
5263
5264 # func_echo_all arg...
5265 # Invoke $ECHO with all args, space-separated.
5266 func_echo_all ()
5267 {
5268     $ECHO ""
5269 }
5270
5271 case "$ECHO" in
5272   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5273 $as_echo "printf" >&6; } ;;
5274   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5275 $as_echo "print -r" >&6; } ;;
5276   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5277 $as_echo "cat" >&6; } ;;
5278 esac
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5294 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5295 if ${ac_cv_path_SED+:} false; then :
5296   $as_echo_n "(cached) " >&6
5297 else
5298             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5299      for ac_i in 1 2 3 4 5 6 7; do
5300        ac_script="$ac_script$as_nl$ac_script"
5301      done
5302      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5303      { ac_script=; unset ac_script;}
5304      if test -z "$SED"; then
5305   ac_path_SED_found=false
5306   # Loop through the user's path and test for each of PROGNAME-LIST
5307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5309 do
5310   IFS=$as_save_IFS
5311   test -z "$as_dir" && as_dir=.
5312     for ac_prog in sed gsed; do
5313     for ac_exec_ext in '' $ac_executable_extensions; do
5314       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5315       as_fn_executable_p "$ac_path_SED" || continue
5316 # Check for GNU ac_path_SED and select it if it is found.
5317   # Check for GNU $ac_path_SED
5318 case `"$ac_path_SED" --version 2>&1` in
5319 *GNU*)
5320   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5321 *)
5322   ac_count=0
5323   $as_echo_n 0123456789 >"conftest.in"
5324   while :
5325   do
5326     cat "conftest.in" "conftest.in" >"conftest.tmp"
5327     mv "conftest.tmp" "conftest.in"
5328     cp "conftest.in" "conftest.nl"
5329     $as_echo '' >> "conftest.nl"
5330     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5331     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5332     as_fn_arith $ac_count + 1 && ac_count=$as_val
5333     if test $ac_count -gt ${ac_path_SED_max-0}; then
5334       # Best one so far, save it but keep looking for a better one
5335       ac_cv_path_SED="$ac_path_SED"
5336       ac_path_SED_max=$ac_count
5337     fi
5338     # 10*(2^10) chars as input seems more than enough
5339     test $ac_count -gt 10 && break
5340   done
5341   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5342 esac
5343
5344       $ac_path_SED_found && break 3
5345     done
5346   done
5347   done
5348 IFS=$as_save_IFS
5349   if test -z "$ac_cv_path_SED"; then
5350     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5351   fi
5352 else
5353   ac_cv_path_SED=$SED
5354 fi
5355
5356 fi
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5358 $as_echo "$ac_cv_path_SED" >&6; }
5359  SED="$ac_cv_path_SED"
5360   rm -f conftest.sed
5361
5362 test -z "$SED" && SED=sed
5363 Xsed="$SED -e 1s/^X//"
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5376 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5377 if ${ac_cv_path_GREP+:} false; then :
5378   $as_echo_n "(cached) " >&6
5379 else
5380   if test -z "$GREP"; then
5381   ac_path_GREP_found=false
5382   # Loop through the user's path and test for each of PROGNAME-LIST
5383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5385 do
5386   IFS=$as_save_IFS
5387   test -z "$as_dir" && as_dir=.
5388     for ac_prog in grep ggrep; do
5389     for ac_exec_ext in '' $ac_executable_extensions; do
5390       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5391       as_fn_executable_p "$ac_path_GREP" || continue
5392 # Check for GNU ac_path_GREP and select it if it is found.
5393   # Check for GNU $ac_path_GREP
5394 case `"$ac_path_GREP" --version 2>&1` in
5395 *GNU*)
5396   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5397 *)
5398   ac_count=0
5399   $as_echo_n 0123456789 >"conftest.in"
5400   while :
5401   do
5402     cat "conftest.in" "conftest.in" >"conftest.tmp"
5403     mv "conftest.tmp" "conftest.in"
5404     cp "conftest.in" "conftest.nl"
5405     $as_echo 'GREP' >> "conftest.nl"
5406     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5407     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5408     as_fn_arith $ac_count + 1 && ac_count=$as_val
5409     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5410       # Best one so far, save it but keep looking for a better one
5411       ac_cv_path_GREP="$ac_path_GREP"
5412       ac_path_GREP_max=$ac_count
5413     fi
5414     # 10*(2^10) chars as input seems more than enough
5415     test $ac_count -gt 10 && break
5416   done
5417   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5418 esac
5419
5420       $ac_path_GREP_found && break 3
5421     done
5422   done
5423   done
5424 IFS=$as_save_IFS
5425   if test -z "$ac_cv_path_GREP"; then
5426     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5427   fi
5428 else
5429   ac_cv_path_GREP=$GREP
5430 fi
5431
5432 fi
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5434 $as_echo "$ac_cv_path_GREP" >&6; }
5435  GREP="$ac_cv_path_GREP"
5436
5437
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5439 $as_echo_n "checking for egrep... " >&6; }
5440 if ${ac_cv_path_EGREP+:} false; then :
5441   $as_echo_n "(cached) " >&6
5442 else
5443   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5444    then ac_cv_path_EGREP="$GREP -E"
5445    else
5446      if test -z "$EGREP"; then
5447   ac_path_EGREP_found=false
5448   # Loop through the user's path and test for each of PROGNAME-LIST
5449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5451 do
5452   IFS=$as_save_IFS
5453   test -z "$as_dir" && as_dir=.
5454     for ac_prog in egrep; do
5455     for ac_exec_ext in '' $ac_executable_extensions; do
5456       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5457       as_fn_executable_p "$ac_path_EGREP" || continue
5458 # Check for GNU ac_path_EGREP and select it if it is found.
5459   # Check for GNU $ac_path_EGREP
5460 case `"$ac_path_EGREP" --version 2>&1` in
5461 *GNU*)
5462   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5463 *)
5464   ac_count=0
5465   $as_echo_n 0123456789 >"conftest.in"
5466   while :
5467   do
5468     cat "conftest.in" "conftest.in" >"conftest.tmp"
5469     mv "conftest.tmp" "conftest.in"
5470     cp "conftest.in" "conftest.nl"
5471     $as_echo 'EGREP' >> "conftest.nl"
5472     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5473     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5474     as_fn_arith $ac_count + 1 && ac_count=$as_val
5475     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5476       # Best one so far, save it but keep looking for a better one
5477       ac_cv_path_EGREP="$ac_path_EGREP"
5478       ac_path_EGREP_max=$ac_count
5479     fi
5480     # 10*(2^10) chars as input seems more than enough
5481     test $ac_count -gt 10 && break
5482   done
5483   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5484 esac
5485
5486       $ac_path_EGREP_found && break 3
5487     done
5488   done
5489   done
5490 IFS=$as_save_IFS
5491   if test -z "$ac_cv_path_EGREP"; then
5492     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5493   fi
5494 else
5495   ac_cv_path_EGREP=$EGREP
5496 fi
5497
5498    fi
5499 fi
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5501 $as_echo "$ac_cv_path_EGREP" >&6; }
5502  EGREP="$ac_cv_path_EGREP"
5503
5504
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5506 $as_echo_n "checking for fgrep... " >&6; }
5507 if ${ac_cv_path_FGREP+:} false; then :
5508   $as_echo_n "(cached) " >&6
5509 else
5510   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5511    then ac_cv_path_FGREP="$GREP -F"
5512    else
5513      if test -z "$FGREP"; then
5514   ac_path_FGREP_found=false
5515   # Loop through the user's path and test for each of PROGNAME-LIST
5516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5518 do
5519   IFS=$as_save_IFS
5520   test -z "$as_dir" && as_dir=.
5521     for ac_prog in fgrep; do
5522     for ac_exec_ext in '' $ac_executable_extensions; do
5523       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5524       as_fn_executable_p "$ac_path_FGREP" || continue
5525 # Check for GNU ac_path_FGREP and select it if it is found.
5526   # Check for GNU $ac_path_FGREP
5527 case `"$ac_path_FGREP" --version 2>&1` in
5528 *GNU*)
5529   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5530 *)
5531   ac_count=0
5532   $as_echo_n 0123456789 >"conftest.in"
5533   while :
5534   do
5535     cat "conftest.in" "conftest.in" >"conftest.tmp"
5536     mv "conftest.tmp" "conftest.in"
5537     cp "conftest.in" "conftest.nl"
5538     $as_echo 'FGREP' >> "conftest.nl"
5539     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5540     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5541     as_fn_arith $ac_count + 1 && ac_count=$as_val
5542     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5543       # Best one so far, save it but keep looking for a better one
5544       ac_cv_path_FGREP="$ac_path_FGREP"
5545       ac_path_FGREP_max=$ac_count
5546     fi
5547     # 10*(2^10) chars as input seems more than enough
5548     test $ac_count -gt 10 && break
5549   done
5550   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5551 esac
5552
5553       $ac_path_FGREP_found && break 3
5554     done
5555   done
5556   done
5557 IFS=$as_save_IFS
5558   if test -z "$ac_cv_path_FGREP"; then
5559     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5560   fi
5561 else
5562   ac_cv_path_FGREP=$FGREP
5563 fi
5564
5565    fi
5566 fi
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5568 $as_echo "$ac_cv_path_FGREP" >&6; }
5569  FGREP="$ac_cv_path_FGREP"
5570
5571
5572 test -z "$GREP" && GREP=grep
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592 # Check whether --with-gnu-ld was given.
5593 if test "${with_gnu_ld+set}" = set; then :
5594   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5595 else
5596   with_gnu_ld=no
5597 fi
5598
5599 ac_prog=ld
5600 if test "$GCC" = yes; then
5601   # Check if gcc -print-prog-name=ld gives a path.
5602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5603 $as_echo_n "checking for ld used by $CC... " >&6; }
5604   case $host in
5605   *-*-mingw*)
5606     # gcc leaves a trailing carriage return which upsets mingw
5607     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5608   *)
5609     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5610   esac
5611   case $ac_prog in
5612     # Accept absolute paths.
5613     [\\/]* | ?:[\\/]*)
5614       re_direlt='/[^/][^/]*/\.\./'
5615       # Canonicalize the pathname of ld
5616       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5617       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5618         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5619       done
5620       test -z "$LD" && LD="$ac_prog"
5621       ;;
5622   "")
5623     # If it fails, then pretend we aren't using GCC.
5624     ac_prog=ld
5625     ;;
5626   *)
5627     # If it is relative, then search for the first ld in PATH.
5628     with_gnu_ld=unknown
5629     ;;
5630   esac
5631 elif test "$with_gnu_ld" = yes; then
5632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5633 $as_echo_n "checking for GNU ld... " >&6; }
5634 else
5635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5636 $as_echo_n "checking for non-GNU ld... " >&6; }
5637 fi
5638 if ${lt_cv_path_LD+:} false; then :
5639   $as_echo_n "(cached) " >&6
5640 else
5641   if test -z "$LD"; then
5642   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5643   for ac_dir in $PATH; do
5644     IFS="$lt_save_ifs"
5645     test -z "$ac_dir" && ac_dir=.
5646     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5647       lt_cv_path_LD="$ac_dir/$ac_prog"
5648       # Check to see if the program is GNU ld.  I'd rather use --version,
5649       # but apparently some variants of GNU ld only accept -v.
5650       # Break only if it was the GNU/non-GNU ld that we prefer.
5651       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5652       *GNU* | *'with BFD'*)
5653         test "$with_gnu_ld" != no && break
5654         ;;
5655       *)
5656         test "$with_gnu_ld" != yes && break
5657         ;;
5658       esac
5659     fi
5660   done
5661   IFS="$lt_save_ifs"
5662 else
5663   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5664 fi
5665 fi
5666
5667 LD="$lt_cv_path_LD"
5668 if test -n "$LD"; then
5669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5670 $as_echo "$LD" >&6; }
5671 else
5672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5674 fi
5675 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5677 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5678 if ${lt_cv_prog_gnu_ld+:} false; then :
5679   $as_echo_n "(cached) " >&6
5680 else
5681   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5682 case `$LD -v 2>&1 </dev/null` in
5683 *GNU* | *'with BFD'*)
5684   lt_cv_prog_gnu_ld=yes
5685   ;;
5686 *)
5687   lt_cv_prog_gnu_ld=no
5688   ;;
5689 esac
5690 fi
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5692 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5693 with_gnu_ld=$lt_cv_prog_gnu_ld
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5704 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5705 if ${lt_cv_path_NM+:} false; then :
5706   $as_echo_n "(cached) " >&6
5707 else
5708   if test -n "$NM"; then
5709   # Let the user override the test.
5710   lt_cv_path_NM="$NM"
5711 else
5712   lt_nm_to_check="${ac_tool_prefix}nm"
5713   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5714     lt_nm_to_check="$lt_nm_to_check nm"
5715   fi
5716   for lt_tmp_nm in $lt_nm_to_check; do
5717     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5718     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5719       IFS="$lt_save_ifs"
5720       test -z "$ac_dir" && ac_dir=.
5721       tmp_nm="$ac_dir/$lt_tmp_nm"
5722       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5723         # Check to see if the nm accepts a BSD-compat flag.
5724         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5725         #   nm: unknown option "B" ignored
5726         # Tru64's nm complains that /dev/null is an invalid object file
5727         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5728         */dev/null* | *'Invalid file or object type'*)
5729           lt_cv_path_NM="$tmp_nm -B"
5730           break
5731           ;;
5732         *)
5733           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5734           */dev/null*)
5735             lt_cv_path_NM="$tmp_nm -p"
5736             break
5737             ;;
5738           *)
5739             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5740             continue # so that we can try to find one that supports BSD flags
5741             ;;
5742           esac
5743           ;;
5744         esac
5745       fi
5746     done
5747     IFS="$lt_save_ifs"
5748   done
5749   : ${lt_cv_path_NM=no}
5750 fi
5751 fi
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5753 $as_echo "$lt_cv_path_NM" >&6; }
5754 if test "$lt_cv_path_NM" != "no"; then
5755   NM="$lt_cv_path_NM"
5756 else
5757   # Didn't find any BSD compatible name lister, look for dumpbin.
5758   if test -n "$DUMPBIN"; then :
5759     # Let the user override the test.
5760   else
5761     if test -n "$ac_tool_prefix"; then
5762   for ac_prog in dumpbin "link -dump"
5763   do
5764     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5765 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 $as_echo_n "checking for $ac_word... " >&6; }
5768 if ${ac_cv_prog_DUMPBIN+:} false; then :
5769   $as_echo_n "(cached) " >&6
5770 else
5771   if test -n "$DUMPBIN"; then
5772   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5773 else
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5776 do
5777   IFS=$as_save_IFS
5778   test -z "$as_dir" && as_dir=.
5779     for ac_exec_ext in '' $ac_executable_extensions; do
5780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783     break 2
5784   fi
5785 done
5786   done
5787 IFS=$as_save_IFS
5788
5789 fi
5790 fi
5791 DUMPBIN=$ac_cv_prog_DUMPBIN
5792 if test -n "$DUMPBIN"; then
5793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5794 $as_echo "$DUMPBIN" >&6; }
5795 else
5796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }
5798 fi
5799
5800
5801     test -n "$DUMPBIN" && break
5802   done
5803 fi
5804 if test -z "$DUMPBIN"; then
5805   ac_ct_DUMPBIN=$DUMPBIN
5806   for ac_prog in dumpbin "link -dump"
5807 do
5808   # Extract the first word of "$ac_prog", so it can be a program name with args.
5809 set dummy $ac_prog; ac_word=$2
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 $as_echo_n "checking for $ac_word... " >&6; }
5812 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5813   $as_echo_n "(cached) " >&6
5814 else
5815   if test -n "$ac_ct_DUMPBIN"; then
5816   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821   IFS=$as_save_IFS
5822   test -z "$as_dir" && as_dir=.
5823     for ac_exec_ext in '' $ac_executable_extensions; do
5824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827     break 2
5828   fi
5829 done
5830   done
5831 IFS=$as_save_IFS
5832
5833 fi
5834 fi
5835 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5836 if test -n "$ac_ct_DUMPBIN"; then
5837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5838 $as_echo "$ac_ct_DUMPBIN" >&6; }
5839 else
5840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5842 fi
5843
5844
5845   test -n "$ac_ct_DUMPBIN" && break
5846 done
5847
5848   if test "x$ac_ct_DUMPBIN" = x; then
5849     DUMPBIN=":"
5850   else
5851     case $cross_compiling:$ac_tool_warned in
5852 yes:)
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5855 ac_tool_warned=yes ;;
5856 esac
5857     DUMPBIN=$ac_ct_DUMPBIN
5858   fi
5859 fi
5860
5861     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5862     *COFF*)
5863       DUMPBIN="$DUMPBIN -symbols"
5864       ;;
5865     *)
5866       DUMPBIN=:
5867       ;;
5868     esac
5869   fi
5870
5871   if test "$DUMPBIN" != ":"; then
5872     NM="$DUMPBIN"
5873   fi
5874 fi
5875 test -z "$NM" && NM=nm
5876
5877
5878
5879
5880
5881
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5883 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5884 if ${lt_cv_nm_interface+:} false; then :
5885   $as_echo_n "(cached) " >&6
5886 else
5887   lt_cv_nm_interface="BSD nm"
5888   echo "int some_variable = 0;" > conftest.$ac_ext
5889   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5890   (eval "$ac_compile" 2>conftest.err)
5891   cat conftest.err >&5
5892   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5893   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5894   cat conftest.err >&5
5895   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5896   cat conftest.out >&5
5897   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5898     lt_cv_nm_interface="MS dumpbin"
5899   fi
5900   rm -f conftest*
5901 fi
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5903 $as_echo "$lt_cv_nm_interface" >&6; }
5904
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5906 $as_echo_n "checking whether ln -s works... " >&6; }
5907 LN_S=$as_ln_s
5908 if test "$LN_S" = "ln -s"; then
5909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5910 $as_echo "yes" >&6; }
5911 else
5912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5913 $as_echo "no, using $LN_S" >&6; }
5914 fi
5915
5916 # find the maximum length of command line arguments
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5918 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5919 if ${lt_cv_sys_max_cmd_len+:} false; then :
5920   $as_echo_n "(cached) " >&6
5921 else
5922     i=0
5923   teststring="ABCD"
5924
5925   case $build_os in
5926   msdosdjgpp*)
5927     # On DJGPP, this test can blow up pretty badly due to problems in libc
5928     # (any single argument exceeding 2000 bytes causes a buffer overrun
5929     # during glob expansion).  Even if it were fixed, the result of this
5930     # check would be larger than it should be.
5931     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5932     ;;
5933
5934   gnu*)
5935     # Under GNU Hurd, this test is not required because there is
5936     # no limit to the length of command line arguments.
5937     # Libtool will interpret -1 as no limit whatsoever
5938     lt_cv_sys_max_cmd_len=-1;
5939     ;;
5940
5941   cygwin* | mingw* | cegcc*)
5942     # On Win9x/ME, this test blows up -- it succeeds, but takes
5943     # about 5 minutes as the teststring grows exponentially.
5944     # Worse, since 9x/ME are not pre-emptively multitasking,
5945     # you end up with a "frozen" computer, even though with patience
5946     # the test eventually succeeds (with a max line length of 256k).
5947     # Instead, let's just punt: use the minimum linelength reported by
5948     # all of the supported platforms: 8192 (on NT/2K/XP).
5949     lt_cv_sys_max_cmd_len=8192;
5950     ;;
5951
5952   mint*)
5953     # On MiNT this can take a long time and run out of memory.
5954     lt_cv_sys_max_cmd_len=8192;
5955     ;;
5956
5957   amigaos*)
5958     # On AmigaOS with pdksh, this test takes hours, literally.
5959     # So we just punt and use a minimum line length of 8192.
5960     lt_cv_sys_max_cmd_len=8192;
5961     ;;
5962
5963   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5964     # This has been around since 386BSD, at least.  Likely further.
5965     if test -x /sbin/sysctl; then
5966       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5967     elif test -x /usr/sbin/sysctl; then
5968       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5969     else
5970       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5971     fi
5972     # And add a safety zone
5973     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5974     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5975     ;;
5976
5977   interix*)
5978     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5979     lt_cv_sys_max_cmd_len=196608
5980     ;;
5981
5982   os2*)
5983     # The test takes a long time on OS/2.
5984     lt_cv_sys_max_cmd_len=8192
5985     ;;
5986
5987   osf*)
5988     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5989     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5990     # nice to cause kernel panics so lets avoid the loop below.
5991     # First set a reasonable default.
5992     lt_cv_sys_max_cmd_len=16384
5993     #
5994     if test -x /sbin/sysconfig; then
5995       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5996         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5997       esac
5998     fi
5999     ;;
6000   sco3.2v5*)
6001     lt_cv_sys_max_cmd_len=102400
6002     ;;
6003   sysv5* | sco5v6* | sysv4.2uw2*)
6004     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6005     if test -n "$kargmax"; then
6006       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6007     else
6008       lt_cv_sys_max_cmd_len=32768
6009     fi
6010     ;;
6011   *)
6012     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6013     if test -n "$lt_cv_sys_max_cmd_len"; then
6014       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6015       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6016     else
6017       # Make teststring a little bigger before we do anything with it.
6018       # a 1K string should be a reasonable start.
6019       for i in 1 2 3 4 5 6 7 8 ; do
6020         teststring=$teststring$teststring
6021       done
6022       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6023       # If test is not a shell built-in, we'll probably end up computing a
6024       # maximum length that is only half of the actual maximum length, but
6025       # we can't tell.
6026       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6027                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6028               test $i != 17 # 1/2 MB should be enough
6029       do
6030         i=`expr $i + 1`
6031         teststring=$teststring$teststring
6032       done
6033       # Only check the string length outside the loop.
6034       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6035       teststring=
6036       # Add a significant safety factor because C++ compilers can tack on
6037       # massive amounts of additional arguments before passing them to the
6038       # linker.  It appears as though 1/2 is a usable value.
6039       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6040     fi
6041     ;;
6042   esac
6043
6044 fi
6045
6046 if test -n $lt_cv_sys_max_cmd_len ; then
6047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6048 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6049 else
6050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6051 $as_echo "none" >&6; }
6052 fi
6053 max_cmd_len=$lt_cv_sys_max_cmd_len
6054
6055
6056
6057
6058
6059
6060 : ${CP="cp -f"}
6061 : ${MV="mv -f"}
6062 : ${RM="rm -f"}
6063
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6065 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6066 # Try some XSI features
6067 xsi_shell=no
6068 ( _lt_dummy="a/b/c"
6069   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6070       = c,a/b,b/c, \
6071     && eval 'test $(( 1 + 1 )) -eq 2 \
6072     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6073   && xsi_shell=yes
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6075 $as_echo "$xsi_shell" >&6; }
6076
6077
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6079 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6080 lt_shell_append=no
6081 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6082     >/dev/null 2>&1 \
6083   && lt_shell_append=yes
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6085 $as_echo "$lt_shell_append" >&6; }
6086
6087
6088 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6089   lt_unset=unset
6090 else
6091   lt_unset=false
6092 fi
6093
6094
6095
6096
6097
6098 # test EBCDIC or ASCII
6099 case `echo X|tr X '\101'` in
6100  A) # ASCII based system
6101     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6102   lt_SP2NL='tr \040 \012'
6103   lt_NL2SP='tr \015\012 \040\040'
6104   ;;
6105  *) # EBCDIC based system
6106   lt_SP2NL='tr \100 \n'
6107   lt_NL2SP='tr \r\n \100\100'
6108   ;;
6109 esac
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6120 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6121 if ${lt_cv_to_host_file_cmd+:} false; then :
6122   $as_echo_n "(cached) " >&6
6123 else
6124   case $host in
6125   *-*-mingw* )
6126     case $build in
6127       *-*-mingw* ) # actually msys
6128         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6129         ;;
6130       *-*-cygwin* )
6131         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6132         ;;
6133       * ) # otherwise, assume *nix
6134         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6135         ;;
6136     esac
6137     ;;
6138   *-*-cygwin* )
6139     case $build in
6140       *-*-mingw* ) # actually msys
6141         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6142         ;;
6143       *-*-cygwin* )
6144         lt_cv_to_host_file_cmd=func_convert_file_noop
6145         ;;
6146       * ) # otherwise, assume *nix
6147         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6148         ;;
6149     esac
6150     ;;
6151   * ) # unhandled hosts (and "normal" native builds)
6152     lt_cv_to_host_file_cmd=func_convert_file_noop
6153     ;;
6154 esac
6155
6156 fi
6157
6158 to_host_file_cmd=$lt_cv_to_host_file_cmd
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6160 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6161
6162
6163
6164
6165
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6167 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6168 if ${lt_cv_to_tool_file_cmd+:} false; then :
6169   $as_echo_n "(cached) " >&6
6170 else
6171   #assume ordinary cross tools, or native build.
6172 lt_cv_to_tool_file_cmd=func_convert_file_noop
6173 case $host in
6174   *-*-mingw* )
6175     case $build in
6176       *-*-mingw* ) # actually msys
6177         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6178         ;;
6179     esac
6180     ;;
6181 esac
6182
6183 fi
6184
6185 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6187 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6188
6189
6190
6191
6192
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6194 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6195 if ${lt_cv_ld_reload_flag+:} false; then :
6196   $as_echo_n "(cached) " >&6
6197 else
6198   lt_cv_ld_reload_flag='-r'
6199 fi
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6201 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6202 reload_flag=$lt_cv_ld_reload_flag
6203 case $reload_flag in
6204 "" | " "*) ;;
6205 *) reload_flag=" $reload_flag" ;;
6206 esac
6207 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6208 case $host_os in
6209   cygwin* | mingw* | pw32* | cegcc*)
6210     if test "$GCC" != yes; then
6211       reload_cmds=false
6212     fi
6213     ;;
6214   darwin*)
6215     if test "$GCC" = yes; then
6216       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6217     else
6218       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6219     fi
6220     ;;
6221 esac
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231 if test -n "$ac_tool_prefix"; then
6232   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6233 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235 $as_echo_n "checking for $ac_word... " >&6; }
6236 if ${ac_cv_prog_OBJDUMP+:} false; then :
6237   $as_echo_n "(cached) " >&6
6238 else
6239   if test -n "$OBJDUMP"; then
6240   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245   IFS=$as_save_IFS
6246   test -z "$as_dir" && as_dir=.
6247     for ac_exec_ext in '' $ac_executable_extensions; do
6248   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6249     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6251     break 2
6252   fi
6253 done
6254   done
6255 IFS=$as_save_IFS
6256
6257 fi
6258 fi
6259 OBJDUMP=$ac_cv_prog_OBJDUMP
6260 if test -n "$OBJDUMP"; then
6261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6262 $as_echo "$OBJDUMP" >&6; }
6263 else
6264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265 $as_echo "no" >&6; }
6266 fi
6267
6268
6269 fi
6270 if test -z "$ac_cv_prog_OBJDUMP"; then
6271   ac_ct_OBJDUMP=$OBJDUMP
6272   # Extract the first word of "objdump", so it can be a program name with args.
6273 set dummy objdump; ac_word=$2
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6277   $as_echo_n "(cached) " >&6
6278 else
6279   if test -n "$ac_ct_OBJDUMP"; then
6280   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6284 do
6285   IFS=$as_save_IFS
6286   test -z "$as_dir" && as_dir=.
6287     for ac_exec_ext in '' $ac_executable_extensions; do
6288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6289     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6291     break 2
6292   fi
6293 done
6294   done
6295 IFS=$as_save_IFS
6296
6297 fi
6298 fi
6299 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6300 if test -n "$ac_ct_OBJDUMP"; then
6301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6302 $as_echo "$ac_ct_OBJDUMP" >&6; }
6303 else
6304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 $as_echo "no" >&6; }
6306 fi
6307
6308   if test "x$ac_ct_OBJDUMP" = x; then
6309     OBJDUMP="false"
6310   else
6311     case $cross_compiling:$ac_tool_warned in
6312 yes:)
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6315 ac_tool_warned=yes ;;
6316 esac
6317     OBJDUMP=$ac_ct_OBJDUMP
6318   fi
6319 else
6320   OBJDUMP="$ac_cv_prog_OBJDUMP"
6321 fi
6322
6323 test -z "$OBJDUMP" && OBJDUMP=objdump
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6334 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6335 if ${lt_cv_deplibs_check_method+:} false; then :
6336   $as_echo_n "(cached) " >&6
6337 else
6338   lt_cv_file_magic_cmd='$MAGIC_CMD'
6339 lt_cv_file_magic_test_file=
6340 lt_cv_deplibs_check_method='unknown'
6341 # Need to set the preceding variable on all platforms that support
6342 # interlibrary dependencies.
6343 # 'none' -- dependencies not supported.
6344 # `unknown' -- same as none, but documents that we really don't know.
6345 # 'pass_all' -- all dependencies passed with no checks.
6346 # 'test_compile' -- check by making test program.
6347 # 'file_magic [[regex]]' -- check by looking for files in library path
6348 # which responds to the $file_magic_cmd with a given extended regex.
6349 # If you have `file' or equivalent on your system and you're not sure
6350 # whether `pass_all' will *always* work, you probably want this one.
6351
6352 case $host_os in
6353 aix[4-9]*)
6354   lt_cv_deplibs_check_method=pass_all
6355   ;;
6356
6357 beos*)
6358   lt_cv_deplibs_check_method=pass_all
6359   ;;
6360
6361 bsdi[45]*)
6362   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6363   lt_cv_file_magic_cmd='/usr/bin/file -L'
6364   lt_cv_file_magic_test_file=/shlib/libc.so
6365   ;;
6366
6367 cygwin*)
6368   # func_win32_libid is a shell function defined in ltmain.sh
6369   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6370   lt_cv_file_magic_cmd='func_win32_libid'
6371   ;;
6372
6373 mingw* | pw32*)
6374   # Base MSYS/MinGW do not provide the 'file' command needed by
6375   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6376   # unless we find 'file', for example because we are cross-compiling.
6377   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6378   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6379     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6380     lt_cv_file_magic_cmd='func_win32_libid'
6381   else
6382     # Keep this pattern in sync with the one in func_win32_libid.
6383     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6384     lt_cv_file_magic_cmd='$OBJDUMP -f'
6385   fi
6386   ;;
6387
6388 cegcc*)
6389   # use the weaker test based on 'objdump'. See mingw*.
6390   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6391   lt_cv_file_magic_cmd='$OBJDUMP -f'
6392   ;;
6393
6394 darwin* | rhapsody*)
6395   lt_cv_deplibs_check_method=pass_all
6396   ;;
6397
6398 freebsd* | dragonfly*)
6399   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6400     case $host_cpu in
6401     i*86 )
6402       # Not sure whether the presence of OpenBSD here was a mistake.
6403       # Let's accept both of them until this is cleared up.
6404       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6405       lt_cv_file_magic_cmd=/usr/bin/file
6406       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6407       ;;
6408     esac
6409   else
6410     lt_cv_deplibs_check_method=pass_all
6411   fi
6412   ;;
6413
6414 haiku*)
6415   lt_cv_deplibs_check_method=pass_all
6416   ;;
6417
6418 hpux10.20* | hpux11*)
6419   lt_cv_file_magic_cmd=/usr/bin/file
6420   case $host_cpu in
6421   ia64*)
6422     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6423     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6424     ;;
6425   hppa*64*)
6426     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]'
6427     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6428     ;;
6429   *)
6430     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6431     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6432     ;;
6433   esac
6434   ;;
6435
6436 interix[3-9]*)
6437   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6438   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6439   ;;
6440
6441 irix5* | irix6* | nonstopux*)
6442   case $LD in
6443   *-32|*"-32 ") libmagic=32-bit;;
6444   *-n32|*"-n32 ") libmagic=N32;;
6445   *-64|*"-64 ") libmagic=64-bit;;
6446   *) libmagic=never-match;;
6447   esac
6448   lt_cv_deplibs_check_method=pass_all
6449   ;;
6450
6451 # This must be glibc/ELF.
6452 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6453   lt_cv_deplibs_check_method=pass_all
6454   ;;
6455
6456 netbsd* | netbsdelf*-gnu)
6457   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6458     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6459   else
6460     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6461   fi
6462   ;;
6463
6464 newos6*)
6465   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6466   lt_cv_file_magic_cmd=/usr/bin/file
6467   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6468   ;;
6469
6470 *nto* | *qnx*)
6471   lt_cv_deplibs_check_method=pass_all
6472   ;;
6473
6474 openbsd*)
6475   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6476     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6477   else
6478     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6479   fi
6480   ;;
6481
6482 osf3* | osf4* | osf5*)
6483   lt_cv_deplibs_check_method=pass_all
6484   ;;
6485
6486 rdos*)
6487   lt_cv_deplibs_check_method=pass_all
6488   ;;
6489
6490 solaris*)
6491   lt_cv_deplibs_check_method=pass_all
6492   ;;
6493
6494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6495   lt_cv_deplibs_check_method=pass_all
6496   ;;
6497
6498 sysv4 | sysv4.3*)
6499   case $host_vendor in
6500   motorola)
6501     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]'
6502     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6503     ;;
6504   ncr)
6505     lt_cv_deplibs_check_method=pass_all
6506     ;;
6507   sequent)
6508     lt_cv_file_magic_cmd='/bin/file'
6509     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6510     ;;
6511   sni)
6512     lt_cv_file_magic_cmd='/bin/file'
6513     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6514     lt_cv_file_magic_test_file=/lib/libc.so
6515     ;;
6516   siemens)
6517     lt_cv_deplibs_check_method=pass_all
6518     ;;
6519   pc)
6520     lt_cv_deplibs_check_method=pass_all
6521     ;;
6522   esac
6523   ;;
6524
6525 tpf*)
6526   lt_cv_deplibs_check_method=pass_all
6527   ;;
6528 esac
6529
6530 fi
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6532 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6533
6534 file_magic_glob=
6535 want_nocaseglob=no
6536 if test "$build" = "$host"; then
6537   case $host_os in
6538   mingw* | pw32*)
6539     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6540       want_nocaseglob=yes
6541     else
6542       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6543     fi
6544     ;;
6545   esac
6546 fi
6547
6548 file_magic_cmd=$lt_cv_file_magic_cmd
6549 deplibs_check_method=$lt_cv_deplibs_check_method
6550 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573 if test -n "$ac_tool_prefix"; then
6574   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6575 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if ${ac_cv_prog_DLLTOOL+:} false; then :
6579   $as_echo_n "(cached) " >&6
6580 else
6581   if test -n "$DLLTOOL"; then
6582   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587   IFS=$as_save_IFS
6588   test -z "$as_dir" && as_dir=.
6589     for ac_exec_ext in '' $ac_executable_extensions; do
6590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6591     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593     break 2
6594   fi
6595 done
6596   done
6597 IFS=$as_save_IFS
6598
6599 fi
6600 fi
6601 DLLTOOL=$ac_cv_prog_DLLTOOL
6602 if test -n "$DLLTOOL"; then
6603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6604 $as_echo "$DLLTOOL" >&6; }
6605 else
6606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6608 fi
6609
6610
6611 fi
6612 if test -z "$ac_cv_prog_DLLTOOL"; then
6613   ac_ct_DLLTOOL=$DLLTOOL
6614   # Extract the first word of "dlltool", so it can be a program name with args.
6615 set dummy dlltool; ac_word=$2
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 $as_echo_n "checking for $ac_word... " >&6; }
6618 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6619   $as_echo_n "(cached) " >&6
6620 else
6621   if test -n "$ac_ct_DLLTOOL"; then
6622   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6623 else
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6626 do
6627   IFS=$as_save_IFS
6628   test -z "$as_dir" && as_dir=.
6629     for ac_exec_ext in '' $ac_executable_extensions; do
6630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6631     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633     break 2
6634   fi
6635 done
6636   done
6637 IFS=$as_save_IFS
6638
6639 fi
6640 fi
6641 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6642 if test -n "$ac_ct_DLLTOOL"; then
6643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6644 $as_echo "$ac_ct_DLLTOOL" >&6; }
6645 else
6646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 $as_echo "no" >&6; }
6648 fi
6649
6650   if test "x$ac_ct_DLLTOOL" = x; then
6651     DLLTOOL="false"
6652   else
6653     case $cross_compiling:$ac_tool_warned in
6654 yes:)
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6657 ac_tool_warned=yes ;;
6658 esac
6659     DLLTOOL=$ac_ct_DLLTOOL
6660   fi
6661 else
6662   DLLTOOL="$ac_cv_prog_DLLTOOL"
6663 fi
6664
6665 test -z "$DLLTOOL" && DLLTOOL=dlltool
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6677 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6678 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6679   $as_echo_n "(cached) " >&6
6680 else
6681   lt_cv_sharedlib_from_linklib_cmd='unknown'
6682
6683 case $host_os in
6684 cygwin* | mingw* | pw32* | cegcc*)
6685   # two different shell functions defined in ltmain.sh
6686   # decide which to use based on capabilities of $DLLTOOL
6687   case `$DLLTOOL --help 2>&1` in
6688   *--identify-strict*)
6689     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6690     ;;
6691   *)
6692     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6693     ;;
6694   esac
6695   ;;
6696 *)
6697   # fallback: assume linklib IS sharedlib
6698   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6699   ;;
6700 esac
6701
6702 fi
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6704 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6705 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6706 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6707
6708
6709
6710
6711
6712
6713
6714
6715 if test -n "$ac_tool_prefix"; then
6716   for ac_prog in ar
6717   do
6718     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721 $as_echo_n "checking for $ac_word... " >&6; }
6722 if ${ac_cv_prog_AR+:} false; then :
6723   $as_echo_n "(cached) " >&6
6724 else
6725   if test -n "$AR"; then
6726   ac_cv_prog_AR="$AR" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731   IFS=$as_save_IFS
6732   test -z "$as_dir" && as_dir=.
6733     for ac_exec_ext in '' $ac_executable_extensions; do
6734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6735     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737     break 2
6738   fi
6739 done
6740   done
6741 IFS=$as_save_IFS
6742
6743 fi
6744 fi
6745 AR=$ac_cv_prog_AR
6746 if test -n "$AR"; then
6747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6748 $as_echo "$AR" >&6; }
6749 else
6750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751 $as_echo "no" >&6; }
6752 fi
6753
6754
6755     test -n "$AR" && break
6756   done
6757 fi
6758 if test -z "$AR"; then
6759   ac_ct_AR=$AR
6760   for ac_prog in ar
6761 do
6762   # Extract the first word of "$ac_prog", so it can be a program name with args.
6763 set dummy $ac_prog; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6767   $as_echo_n "(cached) " >&6
6768 else
6769   if test -n "$ac_ct_AR"; then
6770   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775   IFS=$as_save_IFS
6776   test -z "$as_dir" && as_dir=.
6777     for ac_exec_ext in '' $ac_executable_extensions; do
6778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6779     ac_cv_prog_ac_ct_AR="$ac_prog"
6780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781     break 2
6782   fi
6783 done
6784   done
6785 IFS=$as_save_IFS
6786
6787 fi
6788 fi
6789 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6790 if test -n "$ac_ct_AR"; then
6791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6792 $as_echo "$ac_ct_AR" >&6; }
6793 else
6794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6796 fi
6797
6798
6799   test -n "$ac_ct_AR" && break
6800 done
6801
6802   if test "x$ac_ct_AR" = x; then
6803     AR="false"
6804   else
6805     case $cross_compiling:$ac_tool_warned in
6806 yes:)
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6809 ac_tool_warned=yes ;;
6810 esac
6811     AR=$ac_ct_AR
6812   fi
6813 fi
6814
6815 : ${AR=ar}
6816 : ${AR_FLAGS=cru}
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6829 $as_echo_n "checking for archiver @FILE support... " >&6; }
6830 if ${lt_cv_ar_at_file+:} false; then :
6831   $as_echo_n "(cached) " >&6
6832 else
6833   lt_cv_ar_at_file=no
6834    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h.  */
6836
6837 int
6838 main ()
6839 {
6840
6841   ;
6842   return 0;
6843 }
6844 _ACEOF
6845 if ac_fn_c_try_compile "$LINENO"; then :
6846   echo conftest.$ac_objext > conftest.lst
6847       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6848       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6849   (eval $lt_ar_try) 2>&5
6850   ac_status=$?
6851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852   test $ac_status = 0; }
6853       if test "$ac_status" -eq 0; then
6854         # Ensure the archiver fails upon bogus file names.
6855         rm -f conftest.$ac_objext libconftest.a
6856         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6857   (eval $lt_ar_try) 2>&5
6858   ac_status=$?
6859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860   test $ac_status = 0; }
6861         if test "$ac_status" -ne 0; then
6862           lt_cv_ar_at_file=@
6863         fi
6864       fi
6865       rm -f conftest.* libconftest.a
6866
6867 fi
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869
6870 fi
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6872 $as_echo "$lt_cv_ar_at_file" >&6; }
6873
6874 if test "x$lt_cv_ar_at_file" = xno; then
6875   archiver_list_spec=
6876 else
6877   archiver_list_spec=$lt_cv_ar_at_file
6878 fi
6879
6880
6881
6882
6883
6884
6885
6886 if test -n "$ac_tool_prefix"; then
6887   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6888 set dummy ${ac_tool_prefix}strip; ac_word=$2
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890 $as_echo_n "checking for $ac_word... " >&6; }
6891 if ${ac_cv_prog_STRIP+:} false; then :
6892   $as_echo_n "(cached) " >&6
6893 else
6894   if test -n "$STRIP"; then
6895   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6896 else
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6899 do
6900   IFS=$as_save_IFS
6901   test -z "$as_dir" && as_dir=.
6902     for ac_exec_ext in '' $ac_executable_extensions; do
6903   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6904     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906     break 2
6907   fi
6908 done
6909   done
6910 IFS=$as_save_IFS
6911
6912 fi
6913 fi
6914 STRIP=$ac_cv_prog_STRIP
6915 if test -n "$STRIP"; then
6916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6917 $as_echo "$STRIP" >&6; }
6918 else
6919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920 $as_echo "no" >&6; }
6921 fi
6922
6923
6924 fi
6925 if test -z "$ac_cv_prog_STRIP"; then
6926   ac_ct_STRIP=$STRIP
6927   # Extract the first word of "strip", so it can be a program name with args.
6928 set dummy strip; ac_word=$2
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 $as_echo_n "checking for $ac_word... " >&6; }
6931 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6932   $as_echo_n "(cached) " >&6
6933 else
6934   if test -n "$ac_ct_STRIP"; then
6935   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6936 else
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 for as_dir in $PATH
6939 do
6940   IFS=$as_save_IFS
6941   test -z "$as_dir" && as_dir=.
6942     for ac_exec_ext in '' $ac_executable_extensions; do
6943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6944     ac_cv_prog_ac_ct_STRIP="strip"
6945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946     break 2
6947   fi
6948 done
6949   done
6950 IFS=$as_save_IFS
6951
6952 fi
6953 fi
6954 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6955 if test -n "$ac_ct_STRIP"; then
6956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6957 $as_echo "$ac_ct_STRIP" >&6; }
6958 else
6959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
6961 fi
6962
6963   if test "x$ac_ct_STRIP" = x; then
6964     STRIP=":"
6965   else
6966     case $cross_compiling:$ac_tool_warned in
6967 yes:)
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6970 ac_tool_warned=yes ;;
6971 esac
6972     STRIP=$ac_ct_STRIP
6973   fi
6974 else
6975   STRIP="$ac_cv_prog_STRIP"
6976 fi
6977
6978 test -z "$STRIP" && STRIP=:
6979
6980
6981
6982
6983
6984
6985 if test -n "$ac_tool_prefix"; then
6986   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6987 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989 $as_echo_n "checking for $ac_word... " >&6; }
6990 if ${ac_cv_prog_RANLIB+:} false; then :
6991   $as_echo_n "(cached) " >&6
6992 else
6993   if test -n "$RANLIB"; then
6994   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6995 else
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 for as_dir in $PATH
6998 do
6999   IFS=$as_save_IFS
7000   test -z "$as_dir" && as_dir=.
7001     for ac_exec_ext in '' $ac_executable_extensions; do
7002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7003     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005     break 2
7006   fi
7007 done
7008   done
7009 IFS=$as_save_IFS
7010
7011 fi
7012 fi
7013 RANLIB=$ac_cv_prog_RANLIB
7014 if test -n "$RANLIB"; then
7015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7016 $as_echo "$RANLIB" >&6; }
7017 else
7018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 $as_echo "no" >&6; }
7020 fi
7021
7022
7023 fi
7024 if test -z "$ac_cv_prog_RANLIB"; then
7025   ac_ct_RANLIB=$RANLIB
7026   # Extract the first word of "ranlib", so it can be a program name with args.
7027 set dummy ranlib; ac_word=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7031   $as_echo_n "(cached) " >&6
7032 else
7033   if test -n "$ac_ct_RANLIB"; then
7034   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7035 else
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH
7038 do
7039   IFS=$as_save_IFS
7040   test -z "$as_dir" && as_dir=.
7041     for ac_exec_ext in '' $ac_executable_extensions; do
7042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043     ac_cv_prog_ac_ct_RANLIB="ranlib"
7044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045     break 2
7046   fi
7047 done
7048   done
7049 IFS=$as_save_IFS
7050
7051 fi
7052 fi
7053 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7054 if test -n "$ac_ct_RANLIB"; then
7055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7056 $as_echo "$ac_ct_RANLIB" >&6; }
7057 else
7058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059 $as_echo "no" >&6; }
7060 fi
7061
7062   if test "x$ac_ct_RANLIB" = x; then
7063     RANLIB=":"
7064   else
7065     case $cross_compiling:$ac_tool_warned in
7066 yes:)
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7069 ac_tool_warned=yes ;;
7070 esac
7071     RANLIB=$ac_ct_RANLIB
7072   fi
7073 else
7074   RANLIB="$ac_cv_prog_RANLIB"
7075 fi
7076
7077 test -z "$RANLIB" && RANLIB=:
7078
7079
7080
7081
7082
7083
7084 # Determine commands to create old-style static archives.
7085 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7086 old_postinstall_cmds='chmod 644 $oldlib'
7087 old_postuninstall_cmds=
7088
7089 if test -n "$RANLIB"; then
7090   case $host_os in
7091   openbsd*)
7092     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7093     ;;
7094   *)
7095     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7096     ;;
7097   esac
7098   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7099 fi
7100
7101 case $host_os in
7102   darwin*)
7103     lock_old_archive_extraction=yes ;;
7104   *)
7105     lock_old_archive_extraction=no ;;
7106 esac
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146 # If no C compiler was specified, use CC.
7147 LTCC=${LTCC-"$CC"}
7148
7149 # If no C compiler flags were specified, use CFLAGS.
7150 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7151
7152 # Allow CC to be a program name with arguments.
7153 compiler=$CC
7154
7155
7156 # Check for command to grab the raw symbol name followed by C symbol from nm.
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7158 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7159 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7160   $as_echo_n "(cached) " >&6
7161 else
7162
7163 # These are sane defaults that work on at least a few old systems.
7164 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7165
7166 # Character class describing NM global symbol codes.
7167 symcode='[BCDEGRST]'
7168
7169 # Regexp to match symbols that can be accessed directly from C.
7170 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7171
7172 # Define system-specific variables.
7173 case $host_os in
7174 aix*)
7175   symcode='[BCDT]'
7176   ;;
7177 cygwin* | mingw* | pw32* | cegcc*)
7178   symcode='[ABCDGISTW]'
7179   ;;
7180 hpux*)
7181   if test "$host_cpu" = ia64; then
7182     symcode='[ABCDEGRST]'
7183   fi
7184   ;;
7185 irix* | nonstopux*)
7186   symcode='[BCDEGRST]'
7187   ;;
7188 osf*)
7189   symcode='[BCDEGQRST]'
7190   ;;
7191 solaris*)
7192   symcode='[BDRT]'
7193   ;;
7194 sco3.2v5*)
7195   symcode='[DT]'
7196   ;;
7197 sysv4.2uw2*)
7198   symcode='[DT]'
7199   ;;
7200 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7201   symcode='[ABDT]'
7202   ;;
7203 sysv4)
7204   symcode='[DFNSTU]'
7205   ;;
7206 esac
7207
7208 # If we're using GNU nm, then use its standard symbol codes.
7209 case `$NM -V 2>&1` in
7210 *GNU* | *'with BFD'*)
7211   symcode='[ABCDGIRSTW]' ;;
7212 esac
7213
7214 # Transform an extracted symbol line into a proper C declaration.
7215 # Some systems (esp. on ia64) link data and code symbols differently,
7216 # so use this general approach.
7217 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7218
7219 # Transform an extracted symbol line into symbol name and symbol address
7220 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7221 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'"
7222
7223 # Handle CRLF in mingw tool chain
7224 opt_cr=
7225 case $build_os in
7226 mingw*)
7227   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7228   ;;
7229 esac
7230
7231 # Try without a prefix underscore, then with it.
7232 for ac_symprfx in "" "_"; do
7233
7234   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7235   symxfrm="\\1 $ac_symprfx\\2 \\2"
7236
7237   # Write the raw and C identifiers.
7238   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7239     # Fake it for dumpbin and say T for any non-static function
7240     # and D for any global variable.
7241     # Also find C++ and __fastcall symbols from MSVC++,
7242     # which start with @ or ?.
7243     lt_cv_sys_global_symbol_pipe="$AWK '"\
7244 "     {last_section=section; section=\$ 3};"\
7245 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7246 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7247 "     \$ 0!~/External *\|/{next};"\
7248 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7249 "     {if(hide[section]) next};"\
7250 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7251 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7252 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7253 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7254 "     ' prfx=^$ac_symprfx"
7255   else
7256     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7257   fi
7258   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7259
7260   # Check to see that the pipe works correctly.
7261   pipe_works=no
7262
7263   rm -f conftest*
7264   cat > conftest.$ac_ext <<_LT_EOF
7265 #ifdef __cplusplus
7266 extern "C" {
7267 #endif
7268 char nm_test_var;
7269 void nm_test_func(void);
7270 void nm_test_func(void){}
7271 #ifdef __cplusplus
7272 }
7273 #endif
7274 int main(){nm_test_var='a';nm_test_func();return(0);}
7275 _LT_EOF
7276
7277   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7278   (eval $ac_compile) 2>&5
7279   ac_status=$?
7280   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7281   test $ac_status = 0; }; then
7282     # Now try to grab the symbols.
7283     nlist=conftest.nm
7284     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7285   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7286   ac_status=$?
7287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7288   test $ac_status = 0; } && test -s "$nlist"; then
7289       # Try sorting and uniquifying the output.
7290       if sort "$nlist" | uniq > "$nlist"T; then
7291         mv -f "$nlist"T "$nlist"
7292       else
7293         rm -f "$nlist"T
7294       fi
7295
7296       # Make sure that we snagged all the symbols we need.
7297       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7298         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7299           cat <<_LT_EOF > conftest.$ac_ext
7300 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7301 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7302 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7303    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7304 # define LT_DLSYM_CONST
7305 #elif defined(__osf__)
7306 /* This system does not cope well with relocations in const data.  */
7307 # define LT_DLSYM_CONST
7308 #else
7309 # define LT_DLSYM_CONST const
7310 #endif
7311
7312 #ifdef __cplusplus
7313 extern "C" {
7314 #endif
7315
7316 _LT_EOF
7317           # Now generate the symbol file.
7318           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7319
7320           cat <<_LT_EOF >> conftest.$ac_ext
7321
7322 /* The mapping between symbol names and symbols.  */
7323 LT_DLSYM_CONST struct {
7324   const char *name;
7325   void       *address;
7326 }
7327 lt__PROGRAM__LTX_preloaded_symbols[] =
7328 {
7329   { "@PROGRAM@", (void *) 0 },
7330 _LT_EOF
7331           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7332           cat <<\_LT_EOF >> conftest.$ac_ext
7333   {0, (void *) 0}
7334 };
7335
7336 /* This works around a problem in FreeBSD linker */
7337 #ifdef FREEBSD_WORKAROUND
7338 static const void *lt_preloaded_setup() {
7339   return lt__PROGRAM__LTX_preloaded_symbols;
7340 }
7341 #endif
7342
7343 #ifdef __cplusplus
7344 }
7345 #endif
7346 _LT_EOF
7347           # Now try linking the two files.
7348           mv conftest.$ac_objext conftstm.$ac_objext
7349           lt_globsym_save_LIBS=$LIBS
7350           lt_globsym_save_CFLAGS=$CFLAGS
7351           LIBS="conftstm.$ac_objext"
7352           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7353           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7354   (eval $ac_link) 2>&5
7355   ac_status=$?
7356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7357   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7358             pipe_works=yes
7359           fi
7360           LIBS=$lt_globsym_save_LIBS
7361           CFLAGS=$lt_globsym_save_CFLAGS
7362         else
7363           echo "cannot find nm_test_func in $nlist" >&5
7364         fi
7365       else
7366         echo "cannot find nm_test_var in $nlist" >&5
7367       fi
7368     else
7369       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7370     fi
7371   else
7372     echo "$progname: failed program was:" >&5
7373     cat conftest.$ac_ext >&5
7374   fi
7375   rm -rf conftest* conftst*
7376
7377   # Do not use the global_symbol_pipe unless it works.
7378   if test "$pipe_works" = yes; then
7379     break
7380   else
7381     lt_cv_sys_global_symbol_pipe=
7382   fi
7383 done
7384
7385 fi
7386
7387 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7388   lt_cv_sys_global_symbol_to_cdecl=
7389 fi
7390 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7392 $as_echo "failed" >&6; }
7393 else
7394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7395 $as_echo "ok" >&6; }
7396 fi
7397
7398 # Response file support.
7399 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7400   nm_file_list_spec='@'
7401 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7402   nm_file_list_spec='@'
7403 fi
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7432 $as_echo_n "checking for sysroot... " >&6; }
7433
7434 # Check whether --with-sysroot was given.
7435 if test "${with_sysroot+set}" = set; then :
7436   withval=$with_sysroot;
7437 else
7438   with_sysroot=no
7439 fi
7440
7441
7442 lt_sysroot=
7443 case ${with_sysroot} in #(
7444  yes)
7445    if test "$GCC" = yes; then
7446      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7447    fi
7448    ;; #(
7449  /*)
7450    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7451    ;; #(
7452  no|'')
7453    ;; #(
7454  *)
7455    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7456 $as_echo "${with_sysroot}" >&6; }
7457    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7458    ;;
7459 esac
7460
7461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7462 $as_echo "${lt_sysroot:-no}" >&6; }
7463
7464
7465
7466
7467
7468 # Check whether --enable-libtool-lock was given.
7469 if test "${enable_libtool_lock+set}" = set; then :
7470   enableval=$enable_libtool_lock;
7471 fi
7472
7473 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7474
7475 # Some flags need to be propagated to the compiler or linker for good
7476 # libtool support.
7477 case $host in
7478 ia64-*-hpux*)
7479   # Find out which ABI we are using.
7480   echo 'int i;' > conftest.$ac_ext
7481   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7482   (eval $ac_compile) 2>&5
7483   ac_status=$?
7484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7485   test $ac_status = 0; }; then
7486     case `/usr/bin/file conftest.$ac_objext` in
7487       *ELF-32*)
7488         HPUX_IA64_MODE="32"
7489         ;;
7490       *ELF-64*)
7491         HPUX_IA64_MODE="64"
7492         ;;
7493     esac
7494   fi
7495   rm -rf conftest*
7496   ;;
7497 *-*-irix6*)
7498   # Find out which ABI we are using.
7499   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7500   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7501   (eval $ac_compile) 2>&5
7502   ac_status=$?
7503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7504   test $ac_status = 0; }; then
7505     if test "$lt_cv_prog_gnu_ld" = yes; then
7506       case `/usr/bin/file conftest.$ac_objext` in
7507         *32-bit*)
7508           LD="${LD-ld} -melf32bsmip"
7509           ;;
7510         *N32*)
7511           LD="${LD-ld} -melf32bmipn32"
7512           ;;
7513         *64-bit*)
7514           LD="${LD-ld} -melf64bmip"
7515         ;;
7516       esac
7517     else
7518       case `/usr/bin/file conftest.$ac_objext` in
7519         *32-bit*)
7520           LD="${LD-ld} -32"
7521           ;;
7522         *N32*)
7523           LD="${LD-ld} -n32"
7524           ;;
7525         *64-bit*)
7526           LD="${LD-ld} -64"
7527           ;;
7528       esac
7529     fi
7530   fi
7531   rm -rf conftest*
7532   ;;
7533
7534 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7535 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7536   # Find out which ABI we are using.
7537   echo 'int i;' > conftest.$ac_ext
7538   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7539   (eval $ac_compile) 2>&5
7540   ac_status=$?
7541   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7542   test $ac_status = 0; }; then
7543     case `/usr/bin/file conftest.o` in
7544       *32-bit*)
7545         case $host in
7546           x86_64-*kfreebsd*-gnu)
7547             LD="${LD-ld} -m elf_i386_fbsd"
7548             ;;
7549           x86_64-*linux*)
7550             LD="${LD-ld} -m elf_i386"
7551             ;;
7552           ppc64-*linux*|powerpc64-*linux*)
7553             LD="${LD-ld} -m elf32ppclinux"
7554             ;;
7555           s390x-*linux*)
7556             LD="${LD-ld} -m elf_s390"
7557             ;;
7558           sparc64-*linux*)
7559             LD="${LD-ld} -m elf32_sparc"
7560             ;;
7561         esac
7562         ;;
7563       *64-bit*)
7564         case $host in
7565           x86_64-*kfreebsd*-gnu)
7566             LD="${LD-ld} -m elf_x86_64_fbsd"
7567             ;;
7568           x86_64-*linux*)
7569             LD="${LD-ld} -m elf_x86_64"
7570             ;;
7571           ppc*-*linux*|powerpc*-*linux*)
7572             LD="${LD-ld} -m elf64ppc"
7573             ;;
7574           s390*-*linux*|s390*-*tpf*)
7575             LD="${LD-ld} -m elf64_s390"
7576             ;;
7577           sparc*-*linux*)
7578             LD="${LD-ld} -m elf64_sparc"
7579             ;;
7580         esac
7581         ;;
7582     esac
7583   fi
7584   rm -rf conftest*
7585   ;;
7586
7587 *-*-sco3.2v5*)
7588   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7589   SAVE_CFLAGS="$CFLAGS"
7590   CFLAGS="$CFLAGS -belf"
7591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7592 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7593 if ${lt_cv_cc_needs_belf+:} false; then :
7594   $as_echo_n "(cached) " >&6
7595 else
7596   ac_ext=c
7597 ac_cpp='$CPP $CPPFLAGS'
7598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7601
7602      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h.  */
7604
7605 int
7606 main ()
7607 {
7608
7609   ;
7610   return 0;
7611 }
7612 _ACEOF
7613 if ac_fn_c_try_link "$LINENO"; then :
7614   lt_cv_cc_needs_belf=yes
7615 else
7616   lt_cv_cc_needs_belf=no
7617 fi
7618 rm -f core conftest.err conftest.$ac_objext \
7619     conftest$ac_exeext conftest.$ac_ext
7620      ac_ext=c
7621 ac_cpp='$CPP $CPPFLAGS'
7622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7625
7626 fi
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7628 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7629   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7630     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7631     CFLAGS="$SAVE_CFLAGS"
7632   fi
7633   ;;
7634 *-*solaris*)
7635   # Find out which ABI we are using.
7636   echo 'int i;' > conftest.$ac_ext
7637   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7638   (eval $ac_compile) 2>&5
7639   ac_status=$?
7640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7641   test $ac_status = 0; }; then
7642     case `/usr/bin/file conftest.o` in
7643     *64-bit*)
7644       case $lt_cv_prog_gnu_ld in
7645       yes*)
7646         case $host in
7647         i?86-*-solaris*)
7648           LD="${LD-ld} -m elf_x86_64"
7649           ;;
7650         sparc*-*-solaris*)
7651           LD="${LD-ld} -m elf64_sparc"
7652           ;;
7653         esac
7654         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7655         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7656           LD="${LD-ld}_sol2"
7657         fi
7658         ;;
7659       *)
7660         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7661           LD="${LD-ld} -64"
7662         fi
7663         ;;
7664       esac
7665       ;;
7666     esac
7667   fi
7668   rm -rf conftest*
7669   ;;
7670 esac
7671
7672 need_locks="$enable_libtool_lock"
7673
7674 if test -n "$ac_tool_prefix"; then
7675   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7676 set dummy ${ac_tool_prefix}mt; ac_word=$2
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678 $as_echo_n "checking for $ac_word... " >&6; }
7679 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7680   $as_echo_n "(cached) " >&6
7681 else
7682   if test -n "$MANIFEST_TOOL"; then
7683   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7684 else
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7687 do
7688   IFS=$as_save_IFS
7689   test -z "$as_dir" && as_dir=.
7690     for ac_exec_ext in '' $ac_executable_extensions; do
7691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7694     break 2
7695   fi
7696 done
7697   done
7698 IFS=$as_save_IFS
7699
7700 fi
7701 fi
7702 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7703 if test -n "$MANIFEST_TOOL"; then
7704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7705 $as_echo "$MANIFEST_TOOL" >&6; }
7706 else
7707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7709 fi
7710
7711
7712 fi
7713 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7714   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7715   # Extract the first word of "mt", so it can be a program name with args.
7716 set dummy mt; ac_word=$2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 $as_echo_n "checking for $ac_word... " >&6; }
7719 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7720   $as_echo_n "(cached) " >&6
7721 else
7722   if test -n "$ac_ct_MANIFEST_TOOL"; then
7723   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7724 else
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7727 do
7728   IFS=$as_save_IFS
7729   test -z "$as_dir" && as_dir=.
7730     for ac_exec_ext in '' $ac_executable_extensions; do
7731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7732     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734     break 2
7735   fi
7736 done
7737   done
7738 IFS=$as_save_IFS
7739
7740 fi
7741 fi
7742 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7743 if test -n "$ac_ct_MANIFEST_TOOL"; then
7744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7745 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7746 else
7747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7749 fi
7750
7751   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7752     MANIFEST_TOOL=":"
7753   else
7754     case $cross_compiling:$ac_tool_warned in
7755 yes:)
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7758 ac_tool_warned=yes ;;
7759 esac
7760     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7761   fi
7762 else
7763   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7764 fi
7765
7766 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7768 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7769 if ${lt_cv_path_mainfest_tool+:} false; then :
7770   $as_echo_n "(cached) " >&6
7771 else
7772   lt_cv_path_mainfest_tool=no
7773   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7774   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7775   cat conftest.err >&5
7776   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7777     lt_cv_path_mainfest_tool=yes
7778   fi
7779   rm -f conftest*
7780 fi
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7782 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7783 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7784   MANIFEST_TOOL=:
7785 fi
7786
7787
7788
7789
7790
7791
7792   case $host_os in
7793     rhapsody* | darwin*)
7794     if test -n "$ac_tool_prefix"; then
7795   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7796 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798 $as_echo_n "checking for $ac_word... " >&6; }
7799 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7800   $as_echo_n "(cached) " >&6
7801 else
7802   if test -n "$DSYMUTIL"; then
7803   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7804 else
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 for as_dir in $PATH
7807 do
7808   IFS=$as_save_IFS
7809   test -z "$as_dir" && as_dir=.
7810     for ac_exec_ext in '' $ac_executable_extensions; do
7811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7812     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814     break 2
7815   fi
7816 done
7817   done
7818 IFS=$as_save_IFS
7819
7820 fi
7821 fi
7822 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7823 if test -n "$DSYMUTIL"; then
7824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7825 $as_echo "$DSYMUTIL" >&6; }
7826 else
7827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7829 fi
7830
7831
7832 fi
7833 if test -z "$ac_cv_prog_DSYMUTIL"; then
7834   ac_ct_DSYMUTIL=$DSYMUTIL
7835   # Extract the first word of "dsymutil", so it can be a program name with args.
7836 set dummy dsymutil; ac_word=$2
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 $as_echo_n "checking for $ac_word... " >&6; }
7839 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7840   $as_echo_n "(cached) " >&6
7841 else
7842   if test -n "$ac_ct_DSYMUTIL"; then
7843   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7844 else
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7847 do
7848   IFS=$as_save_IFS
7849   test -z "$as_dir" && as_dir=.
7850     for ac_exec_ext in '' $ac_executable_extensions; do
7851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854     break 2
7855   fi
7856 done
7857   done
7858 IFS=$as_save_IFS
7859
7860 fi
7861 fi
7862 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7863 if test -n "$ac_ct_DSYMUTIL"; then
7864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7865 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7866 else
7867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7869 fi
7870
7871   if test "x$ac_ct_DSYMUTIL" = x; then
7872     DSYMUTIL=":"
7873   else
7874     case $cross_compiling:$ac_tool_warned in
7875 yes:)
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7878 ac_tool_warned=yes ;;
7879 esac
7880     DSYMUTIL=$ac_ct_DSYMUTIL
7881   fi
7882 else
7883   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7884 fi
7885
7886     if test -n "$ac_tool_prefix"; then
7887   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7888 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890 $as_echo_n "checking for $ac_word... " >&6; }
7891 if ${ac_cv_prog_NMEDIT+:} false; then :
7892   $as_echo_n "(cached) " >&6
7893 else
7894   if test -n "$NMEDIT"; then
7895   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7896 else
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898 for as_dir in $PATH
7899 do
7900   IFS=$as_save_IFS
7901   test -z "$as_dir" && as_dir=.
7902     for ac_exec_ext in '' $ac_executable_extensions; do
7903   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7904     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906     break 2
7907   fi
7908 done
7909   done
7910 IFS=$as_save_IFS
7911
7912 fi
7913 fi
7914 NMEDIT=$ac_cv_prog_NMEDIT
7915 if test -n "$NMEDIT"; then
7916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7917 $as_echo "$NMEDIT" >&6; }
7918 else
7919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7921 fi
7922
7923
7924 fi
7925 if test -z "$ac_cv_prog_NMEDIT"; then
7926   ac_ct_NMEDIT=$NMEDIT
7927   # Extract the first word of "nmedit", so it can be a program name with args.
7928 set dummy nmedit; ac_word=$2
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930 $as_echo_n "checking for $ac_word... " >&6; }
7931 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7932   $as_echo_n "(cached) " >&6
7933 else
7934   if test -n "$ac_ct_NMEDIT"; then
7935   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7936 else
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 for as_dir in $PATH
7939 do
7940   IFS=$as_save_IFS
7941   test -z "$as_dir" && as_dir=.
7942     for ac_exec_ext in '' $ac_executable_extensions; do
7943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7944     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7946     break 2
7947   fi
7948 done
7949   done
7950 IFS=$as_save_IFS
7951
7952 fi
7953 fi
7954 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7955 if test -n "$ac_ct_NMEDIT"; then
7956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7957 $as_echo "$ac_ct_NMEDIT" >&6; }
7958 else
7959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7961 fi
7962
7963   if test "x$ac_ct_NMEDIT" = x; then
7964     NMEDIT=":"
7965   else
7966     case $cross_compiling:$ac_tool_warned in
7967 yes:)
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7970 ac_tool_warned=yes ;;
7971 esac
7972     NMEDIT=$ac_ct_NMEDIT
7973   fi
7974 else
7975   NMEDIT="$ac_cv_prog_NMEDIT"
7976 fi
7977
7978     if test -n "$ac_tool_prefix"; then
7979   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7980 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982 $as_echo_n "checking for $ac_word... " >&6; }
7983 if ${ac_cv_prog_LIPO+:} false; then :
7984   $as_echo_n "(cached) " >&6
7985 else
7986   if test -n "$LIPO"; then
7987   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7988 else
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990 for as_dir in $PATH
7991 do
7992   IFS=$as_save_IFS
7993   test -z "$as_dir" && as_dir=.
7994     for ac_exec_ext in '' $ac_executable_extensions; do
7995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7996     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7998     break 2
7999   fi
8000 done
8001   done
8002 IFS=$as_save_IFS
8003
8004 fi
8005 fi
8006 LIPO=$ac_cv_prog_LIPO
8007 if test -n "$LIPO"; then
8008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8009 $as_echo "$LIPO" >&6; }
8010 else
8011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8013 fi
8014
8015
8016 fi
8017 if test -z "$ac_cv_prog_LIPO"; then
8018   ac_ct_LIPO=$LIPO
8019   # Extract the first word of "lipo", so it can be a program name with args.
8020 set dummy lipo; ac_word=$2
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 $as_echo_n "checking for $ac_word... " >&6; }
8023 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8024   $as_echo_n "(cached) " >&6
8025 else
8026   if test -n "$ac_ct_LIPO"; then
8027   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8028 else
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8031 do
8032   IFS=$as_save_IFS
8033   test -z "$as_dir" && as_dir=.
8034     for ac_exec_ext in '' $ac_executable_extensions; do
8035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8036     ac_cv_prog_ac_ct_LIPO="lipo"
8037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038     break 2
8039   fi
8040 done
8041   done
8042 IFS=$as_save_IFS
8043
8044 fi
8045 fi
8046 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8047 if test -n "$ac_ct_LIPO"; then
8048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8049 $as_echo "$ac_ct_LIPO" >&6; }
8050 else
8051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8053 fi
8054
8055   if test "x$ac_ct_LIPO" = x; then
8056     LIPO=":"
8057   else
8058     case $cross_compiling:$ac_tool_warned in
8059 yes:)
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8062 ac_tool_warned=yes ;;
8063 esac
8064     LIPO=$ac_ct_LIPO
8065   fi
8066 else
8067   LIPO="$ac_cv_prog_LIPO"
8068 fi
8069
8070     if test -n "$ac_tool_prefix"; then
8071   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8072 set dummy ${ac_tool_prefix}otool; ac_word=$2
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074 $as_echo_n "checking for $ac_word... " >&6; }
8075 if ${ac_cv_prog_OTOOL+:} false; then :
8076   $as_echo_n "(cached) " >&6
8077 else
8078   if test -n "$OTOOL"; then
8079   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8080 else
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 for as_dir in $PATH
8083 do
8084   IFS=$as_save_IFS
8085   test -z "$as_dir" && as_dir=.
8086     for ac_exec_ext in '' $ac_executable_extensions; do
8087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8088     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090     break 2
8091   fi
8092 done
8093   done
8094 IFS=$as_save_IFS
8095
8096 fi
8097 fi
8098 OTOOL=$ac_cv_prog_OTOOL
8099 if test -n "$OTOOL"; then
8100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8101 $as_echo "$OTOOL" >&6; }
8102 else
8103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8105 fi
8106
8107
8108 fi
8109 if test -z "$ac_cv_prog_OTOOL"; then
8110   ac_ct_OTOOL=$OTOOL
8111   # Extract the first word of "otool", so it can be a program name with args.
8112 set dummy otool; ac_word=$2
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 $as_echo_n "checking for $ac_word... " >&6; }
8115 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8116   $as_echo_n "(cached) " >&6
8117 else
8118   if test -n "$ac_ct_OTOOL"; then
8119   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8123 do
8124   IFS=$as_save_IFS
8125   test -z "$as_dir" && as_dir=.
8126     for ac_exec_ext in '' $ac_executable_extensions; do
8127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8128     ac_cv_prog_ac_ct_OTOOL="otool"
8129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130     break 2
8131   fi
8132 done
8133   done
8134 IFS=$as_save_IFS
8135
8136 fi
8137 fi
8138 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8139 if test -n "$ac_ct_OTOOL"; then
8140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8141 $as_echo "$ac_ct_OTOOL" >&6; }
8142 else
8143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8145 fi
8146
8147   if test "x$ac_ct_OTOOL" = x; then
8148     OTOOL=":"
8149   else
8150     case $cross_compiling:$ac_tool_warned in
8151 yes:)
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8154 ac_tool_warned=yes ;;
8155 esac
8156     OTOOL=$ac_ct_OTOOL
8157   fi
8158 else
8159   OTOOL="$ac_cv_prog_OTOOL"
8160 fi
8161
8162     if test -n "$ac_tool_prefix"; then
8163   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8164 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166 $as_echo_n "checking for $ac_word... " >&6; }
8167 if ${ac_cv_prog_OTOOL64+:} false; then :
8168   $as_echo_n "(cached) " >&6
8169 else
8170   if test -n "$OTOOL64"; then
8171   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8172 else
8173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 for as_dir in $PATH
8175 do
8176   IFS=$as_save_IFS
8177   test -z "$as_dir" && as_dir=.
8178     for ac_exec_ext in '' $ac_executable_extensions; do
8179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8180     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182     break 2
8183   fi
8184 done
8185   done
8186 IFS=$as_save_IFS
8187
8188 fi
8189 fi
8190 OTOOL64=$ac_cv_prog_OTOOL64
8191 if test -n "$OTOOL64"; then
8192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8193 $as_echo "$OTOOL64" >&6; }
8194 else
8195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8197 fi
8198
8199
8200 fi
8201 if test -z "$ac_cv_prog_OTOOL64"; then
8202   ac_ct_OTOOL64=$OTOOL64
8203   # Extract the first word of "otool64", so it can be a program name with args.
8204 set dummy otool64; ac_word=$2
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8206 $as_echo_n "checking for $ac_word... " >&6; }
8207 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8208   $as_echo_n "(cached) " >&6
8209 else
8210   if test -n "$ac_ct_OTOOL64"; then
8211   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8212 else
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 for as_dir in $PATH
8215 do
8216   IFS=$as_save_IFS
8217   test -z "$as_dir" && as_dir=.
8218     for ac_exec_ext in '' $ac_executable_extensions; do
8219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8220     ac_cv_prog_ac_ct_OTOOL64="otool64"
8221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8222     break 2
8223   fi
8224 done
8225   done
8226 IFS=$as_save_IFS
8227
8228 fi
8229 fi
8230 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8231 if test -n "$ac_ct_OTOOL64"; then
8232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8233 $as_echo "$ac_ct_OTOOL64" >&6; }
8234 else
8235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 $as_echo "no" >&6; }
8237 fi
8238
8239   if test "x$ac_ct_OTOOL64" = x; then
8240     OTOOL64=":"
8241   else
8242     case $cross_compiling:$ac_tool_warned in
8243 yes:)
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8246 ac_tool_warned=yes ;;
8247 esac
8248     OTOOL64=$ac_ct_OTOOL64
8249   fi
8250 else
8251   OTOOL64="$ac_cv_prog_OTOOL64"
8252 fi
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8281 $as_echo_n "checking for -single_module linker flag... " >&6; }
8282 if ${lt_cv_apple_cc_single_mod+:} false; then :
8283   $as_echo_n "(cached) " >&6
8284 else
8285   lt_cv_apple_cc_single_mod=no
8286       if test -z "${LT_MULTI_MODULE}"; then
8287         # By default we will add the -single_module flag. You can override
8288         # by either setting the environment variable LT_MULTI_MODULE
8289         # non-empty at configure time, or by adding -multi_module to the
8290         # link flags.
8291         rm -rf libconftest.dylib*
8292         echo "int foo(void){return 1;}" > conftest.c
8293         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8294 -dynamiclib -Wl,-single_module conftest.c" >&5
8295         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8296           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8297         _lt_result=$?
8298         # If there is a non-empty error log, and "single_module"
8299         # appears in it, assume the flag caused a linker warning
8300         if test -s conftest.err && $GREP single_module conftest.err; then
8301           cat conftest.err >&5
8302         # Otherwise, if the output was created with a 0 exit code from
8303         # the compiler, it worked.
8304         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8305           lt_cv_apple_cc_single_mod=yes
8306         else
8307           cat conftest.err >&5
8308         fi
8309         rm -rf libconftest.dylib*
8310         rm -f conftest.*
8311       fi
8312 fi
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8314 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8315
8316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8317 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8318 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8319   $as_echo_n "(cached) " >&6
8320 else
8321   lt_cv_ld_exported_symbols_list=no
8322       save_LDFLAGS=$LDFLAGS
8323       echo "_main" > conftest.sym
8324       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8325       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h.  */
8327
8328 int
8329 main ()
8330 {
8331
8332   ;
8333   return 0;
8334 }
8335 _ACEOF
8336 if ac_fn_c_try_link "$LINENO"; then :
8337   lt_cv_ld_exported_symbols_list=yes
8338 else
8339   lt_cv_ld_exported_symbols_list=no
8340 fi
8341 rm -f core conftest.err conftest.$ac_objext \
8342     conftest$ac_exeext conftest.$ac_ext
8343         LDFLAGS="$save_LDFLAGS"
8344
8345 fi
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8347 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8348
8349     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8350 $as_echo_n "checking for -force_load linker flag... " >&6; }
8351 if ${lt_cv_ld_force_load+:} false; then :
8352   $as_echo_n "(cached) " >&6
8353 else
8354   lt_cv_ld_force_load=no
8355       cat > conftest.c << _LT_EOF
8356 int forced_loaded() { return 2;}
8357 _LT_EOF
8358       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8359       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8360       echo "$AR cru libconftest.a conftest.o" >&5
8361       $AR cru libconftest.a conftest.o 2>&5
8362       echo "$RANLIB libconftest.a" >&5
8363       $RANLIB libconftest.a 2>&5
8364       cat > conftest.c << _LT_EOF
8365 int main() { return 0;}
8366 _LT_EOF
8367       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8368       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8369       _lt_result=$?
8370       if test -s conftest.err && $GREP force_load conftest.err; then
8371         cat conftest.err >&5
8372       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8373         lt_cv_ld_force_load=yes
8374       else
8375         cat conftest.err >&5
8376       fi
8377         rm -f conftest.err libconftest.a conftest conftest.c
8378         rm -rf conftest.dSYM
8379
8380 fi
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8382 $as_echo "$lt_cv_ld_force_load" >&6; }
8383     case $host_os in
8384     rhapsody* | darwin1.[012])
8385       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8386     darwin1.*)
8387       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8388     darwin*) # darwin 5.x on
8389       # if running on 10.5 or later, the deployment target defaults
8390       # to the OS version, if on x86, and 10.4, the deployment
8391       # target defaults to 10.4. Don't you love it?
8392       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8393         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8394           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8395         10.[012]*)
8396           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8397         10.*)
8398           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8399       esac
8400     ;;
8401   esac
8402     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8403       _lt_dar_single_mod='$single_module'
8404     fi
8405     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8406       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8407     else
8408       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8409     fi
8410     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8411       _lt_dsymutil='~$DSYMUTIL $lib || :'
8412     else
8413       _lt_dsymutil=
8414     fi
8415     ;;
8416   esac
8417
8418 ac_ext=c
8419 ac_cpp='$CPP $CPPFLAGS'
8420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8424 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8425 # On Suns, sometimes $CPP names a directory.
8426 if test -n "$CPP" && test -d "$CPP"; then
8427   CPP=
8428 fi
8429 if test -z "$CPP"; then
8430   if ${ac_cv_prog_CPP+:} false; then :
8431   $as_echo_n "(cached) " >&6
8432 else
8433       # Double quotes because CPP needs to be expanded
8434     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8435     do
8436       ac_preproc_ok=false
8437 for ac_c_preproc_warn_flag in '' yes
8438 do
8439   # Use a header file that comes with gcc, so configuring glibc
8440   # with a fresh cross-compiler works.
8441   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8442   # <limits.h> exists even on freestanding compilers.
8443   # On the NeXT, cc -E runs the code through the compiler's parser,
8444   # not just through cpp. "Syntax error" is here to catch this case.
8445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h.  */
8447 #ifdef __STDC__
8448 # include <limits.h>
8449 #else
8450 # include <assert.h>
8451 #endif
8452                      Syntax error
8453 _ACEOF
8454 if ac_fn_c_try_cpp "$LINENO"; then :
8455
8456 else
8457   # Broken: fails on valid input.
8458 continue
8459 fi
8460 rm -f conftest.err conftest.i conftest.$ac_ext
8461
8462   # OK, works on sane cases.  Now check whether nonexistent headers
8463   # can be detected and how.
8464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h.  */
8466 #include <ac_nonexistent.h>
8467 _ACEOF
8468 if ac_fn_c_try_cpp "$LINENO"; then :
8469   # Broken: success on invalid input.
8470 continue
8471 else
8472   # Passes both tests.
8473 ac_preproc_ok=:
8474 break
8475 fi
8476 rm -f conftest.err conftest.i conftest.$ac_ext
8477
8478 done
8479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8480 rm -f conftest.i conftest.err conftest.$ac_ext
8481 if $ac_preproc_ok; then :
8482   break
8483 fi
8484
8485     done
8486     ac_cv_prog_CPP=$CPP
8487
8488 fi
8489   CPP=$ac_cv_prog_CPP
8490 else
8491   ac_cv_prog_CPP=$CPP
8492 fi
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8494 $as_echo "$CPP" >&6; }
8495 ac_preproc_ok=false
8496 for ac_c_preproc_warn_flag in '' yes
8497 do
8498   # Use a header file that comes with gcc, so configuring glibc
8499   # with a fresh cross-compiler works.
8500   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8501   # <limits.h> exists even on freestanding compilers.
8502   # On the NeXT, cc -E runs the code through the compiler's parser,
8503   # not just through cpp. "Syntax error" is here to catch this case.
8504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h.  */
8506 #ifdef __STDC__
8507 # include <limits.h>
8508 #else
8509 # include <assert.h>
8510 #endif
8511                      Syntax error
8512 _ACEOF
8513 if ac_fn_c_try_cpp "$LINENO"; then :
8514
8515 else
8516   # Broken: fails on valid input.
8517 continue
8518 fi
8519 rm -f conftest.err conftest.i conftest.$ac_ext
8520
8521   # OK, works on sane cases.  Now check whether nonexistent headers
8522   # can be detected and how.
8523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h.  */
8525 #include <ac_nonexistent.h>
8526 _ACEOF
8527 if ac_fn_c_try_cpp "$LINENO"; then :
8528   # Broken: success on invalid input.
8529 continue
8530 else
8531   # Passes both tests.
8532 ac_preproc_ok=:
8533 break
8534 fi
8535 rm -f conftest.err conftest.i conftest.$ac_ext
8536
8537 done
8538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8539 rm -f conftest.i conftest.err conftest.$ac_ext
8540 if $ac_preproc_ok; then :
8541
8542 else
8543   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8545 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8546 See \`config.log' for more details" "$LINENO" 5; }
8547 fi
8548
8549 ac_ext=c
8550 ac_cpp='$CPP $CPPFLAGS'
8551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8554
8555
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8557 $as_echo_n "checking for ANSI C header files... " >&6; }
8558 if ${ac_cv_header_stdc+:} false; then :
8559   $as_echo_n "(cached) " >&6
8560 else
8561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h.  */
8563 #include <stdlib.h>
8564 #include <stdarg.h>
8565 #include <string.h>
8566 #include <float.h>
8567
8568 int
8569 main ()
8570 {
8571
8572   ;
8573   return 0;
8574 }
8575 _ACEOF
8576 if ac_fn_c_try_compile "$LINENO"; then :
8577   ac_cv_header_stdc=yes
8578 else
8579   ac_cv_header_stdc=no
8580 fi
8581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8582
8583 if test $ac_cv_header_stdc = yes; then
8584   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h.  */
8587 #include <string.h>
8588
8589 _ACEOF
8590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8591   $EGREP "memchr" >/dev/null 2>&1; then :
8592
8593 else
8594   ac_cv_header_stdc=no
8595 fi
8596 rm -f conftest*
8597
8598 fi
8599
8600 if test $ac_cv_header_stdc = yes; then
8601   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h.  */
8604 #include <stdlib.h>
8605
8606 _ACEOF
8607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8608   $EGREP "free" >/dev/null 2>&1; then :
8609
8610 else
8611   ac_cv_header_stdc=no
8612 fi
8613 rm -f conftest*
8614
8615 fi
8616
8617 if test $ac_cv_header_stdc = yes; then
8618   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8619   if test "$cross_compiling" = yes; then :
8620   :
8621 else
8622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h.  */
8624 #include <ctype.h>
8625 #include <stdlib.h>
8626 #if ((' ' & 0x0FF) == 0x020)
8627 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8628 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8629 #else
8630 # define ISLOWER(c) \
8631                    (('a' <= (c) && (c) <= 'i') \
8632                      || ('j' <= (c) && (c) <= 'r') \
8633                      || ('s' <= (c) && (c) <= 'z'))
8634 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8635 #endif
8636
8637 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8638 int
8639 main ()
8640 {
8641   int i;
8642   for (i = 0; i < 256; i++)
8643     if (XOR (islower (i), ISLOWER (i))
8644         || toupper (i) != TOUPPER (i))
8645       return 2;
8646   return 0;
8647 }
8648 _ACEOF
8649 if ac_fn_c_try_run "$LINENO"; then :
8650
8651 else
8652   ac_cv_header_stdc=no
8653 fi
8654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8655   conftest.$ac_objext conftest.beam conftest.$ac_ext
8656 fi
8657
8658 fi
8659 fi
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8661 $as_echo "$ac_cv_header_stdc" >&6; }
8662 if test $ac_cv_header_stdc = yes; then
8663
8664 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8665
8666 fi
8667
8668 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8669 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8670                   inttypes.h stdint.h unistd.h
8671 do :
8672   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8673 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8674 "
8675 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8676   cat >>confdefs.h <<_ACEOF
8677 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8678 _ACEOF
8679
8680 fi
8681
8682 done
8683
8684
8685 for ac_header in dlfcn.h
8686 do :
8687   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8688 "
8689 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8690   cat >>confdefs.h <<_ACEOF
8691 #define HAVE_DLFCN_H 1
8692 _ACEOF
8693
8694 fi
8695
8696 done
8697
8698
8699
8700
8701
8702 # Set options
8703
8704
8705
8706
8707   enable_win32_dll=no
8708
8709
8710             # Check whether --enable-shared was given.
8711 if test "${enable_shared+set}" = set; then :
8712   enableval=$enable_shared; p=${PACKAGE-default}
8713     case $enableval in
8714     yes) enable_shared=yes ;;
8715     no) enable_shared=no ;;
8716     *)
8717       enable_shared=no
8718       # Look at the argument we got.  We use all the common list separators.
8719       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8720       for pkg in $enableval; do
8721         IFS="$lt_save_ifs"
8722         if test "X$pkg" = "X$p"; then
8723           enable_shared=yes
8724         fi
8725       done
8726       IFS="$lt_save_ifs"
8727       ;;
8728     esac
8729 else
8730   enable_shared=yes
8731 fi
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741   # Check whether --enable-static was given.
8742 if test "${enable_static+set}" = set; then :
8743   enableval=$enable_static; p=${PACKAGE-default}
8744     case $enableval in
8745     yes) enable_static=yes ;;
8746     no) enable_static=no ;;
8747     *)
8748      enable_static=no
8749       # Look at the argument we got.  We use all the common list separators.
8750       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8751       for pkg in $enableval; do
8752         IFS="$lt_save_ifs"
8753         if test "X$pkg" = "X$p"; then
8754           enable_static=yes
8755         fi
8756       done
8757       IFS="$lt_save_ifs"
8758       ;;
8759     esac
8760 else
8761   enable_static=yes
8762 fi
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773 # Check whether --with-pic was given.
8774 if test "${with_pic+set}" = set; then :
8775   withval=$with_pic; lt_p=${PACKAGE-default}
8776     case $withval in
8777     yes|no) pic_mode=$withval ;;
8778     *)
8779       pic_mode=default
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 lt_pkg in $withval; do
8783         IFS="$lt_save_ifs"
8784         if test "X$lt_pkg" = "X$lt_p"; then
8785           pic_mode=yes
8786         fi
8787       done
8788       IFS="$lt_save_ifs"
8789       ;;
8790     esac
8791 else
8792   pic_mode=default
8793 fi
8794
8795
8796 test -z "$pic_mode" && pic_mode=default
8797
8798
8799
8800
8801
8802
8803
8804   # Check whether --enable-fast-install was given.
8805 if test "${enable_fast_install+set}" = set; then :
8806   enableval=$enable_fast_install; p=${PACKAGE-default}
8807     case $enableval in
8808     yes) enable_fast_install=yes ;;
8809     no) enable_fast_install=no ;;
8810     *)
8811       enable_fast_install=no
8812       # Look at the argument we got.  We use all the common list separators.
8813       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8814       for pkg in $enableval; do
8815         IFS="$lt_save_ifs"
8816         if test "X$pkg" = "X$p"; then
8817           enable_fast_install=yes
8818         fi
8819       done
8820       IFS="$lt_save_ifs"
8821       ;;
8822     esac
8823 else
8824   enable_fast_install=yes
8825 fi
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837 # This can be used to rebuild libtool when needed
8838 LIBTOOL_DEPS="$ltmain"
8839
8840 # Always use our own libtool.
8841 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872 test -z "$LN_S" && LN_S="ln -s"
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887 if test -n "${ZSH_VERSION+set}" ; then
8888    setopt NO_GLOB_SUBST
8889 fi
8890
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8892 $as_echo_n "checking for objdir... " >&6; }
8893 if ${lt_cv_objdir+:} false; then :
8894   $as_echo_n "(cached) " >&6
8895 else
8896   rm -f .libs 2>/dev/null
8897 mkdir .libs 2>/dev/null
8898 if test -d .libs; then
8899   lt_cv_objdir=.libs
8900 else
8901   # MS-DOS does not allow filenames that begin with a dot.
8902   lt_cv_objdir=_libs
8903 fi
8904 rmdir .libs 2>/dev/null
8905 fi
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8907 $as_echo "$lt_cv_objdir" >&6; }
8908 objdir=$lt_cv_objdir
8909
8910
8911
8912
8913
8914 cat >>confdefs.h <<_ACEOF
8915 #define LT_OBJDIR "$lt_cv_objdir/"
8916 _ACEOF
8917
8918
8919
8920
8921 case $host_os in
8922 aix3*)
8923   # AIX sometimes has problems with the GCC collect2 program.  For some
8924   # reason, if we set the COLLECT_NAMES environment variable, the problems
8925   # vanish in a puff of smoke.
8926   if test "X${COLLECT_NAMES+set}" != Xset; then
8927     COLLECT_NAMES=
8928     export COLLECT_NAMES
8929   fi
8930   ;;
8931 esac
8932
8933 # Global variables:
8934 ofile=libtool
8935 can_build_shared=yes
8936
8937 # All known linkers require a `.a' archive for static linking (except MSVC,
8938 # which needs '.lib').
8939 libext=a
8940
8941 with_gnu_ld="$lt_cv_prog_gnu_ld"
8942
8943 old_CC="$CC"
8944 old_CFLAGS="$CFLAGS"
8945
8946 # Set sane defaults for various variables
8947 test -z "$CC" && CC=cc
8948 test -z "$LTCC" && LTCC=$CC
8949 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8950 test -z "$LD" && LD=ld
8951 test -z "$ac_objext" && ac_objext=o
8952
8953 for cc_temp in $compiler""; do
8954   case $cc_temp in
8955     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8956     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8957     \-*) ;;
8958     *) break;;
8959   esac
8960 done
8961 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8962
8963
8964 # Only perform the check for file, if the check method requires it
8965 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8966 case $deplibs_check_method in
8967 file_magic*)
8968   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8969     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8970 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8971 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8972   $as_echo_n "(cached) " >&6
8973 else
8974   case $MAGIC_CMD in
8975 [\\/*] |  ?:[\\/]*)
8976   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8977   ;;
8978 *)
8979   lt_save_MAGIC_CMD="$MAGIC_CMD"
8980   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8981   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8982   for ac_dir in $ac_dummy; do
8983     IFS="$lt_save_ifs"
8984     test -z "$ac_dir" && ac_dir=.
8985     if test -f $ac_dir/${ac_tool_prefix}file; then
8986       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8987       if test -n "$file_magic_test_file"; then
8988         case $deplibs_check_method in
8989         "file_magic "*)
8990           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8991           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8992           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8993             $EGREP "$file_magic_regex" > /dev/null; then
8994             :
8995           else
8996             cat <<_LT_EOF 1>&2
8997
8998 *** Warning: the command libtool uses to detect shared libraries,
8999 *** $file_magic_cmd, produces output that libtool cannot recognize.
9000 *** The result is that libtool may fail to recognize shared libraries
9001 *** as such.  This will affect the creation of libtool libraries that
9002 *** depend on shared libraries, but programs linked with such libtool
9003 *** libraries will work regardless of this problem.  Nevertheless, you
9004 *** may want to report the problem to your system manager and/or to
9005 *** bug-libtool@gnu.org
9006
9007 _LT_EOF
9008           fi ;;
9009         esac
9010       fi
9011       break
9012     fi
9013   done
9014   IFS="$lt_save_ifs"
9015   MAGIC_CMD="$lt_save_MAGIC_CMD"
9016   ;;
9017 esac
9018 fi
9019
9020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9021 if test -n "$MAGIC_CMD"; then
9022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9023 $as_echo "$MAGIC_CMD" >&6; }
9024 else
9025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026 $as_echo "no" >&6; }
9027 fi
9028
9029
9030
9031
9032
9033 if test -z "$lt_cv_path_MAGIC_CMD"; then
9034   if test -n "$ac_tool_prefix"; then
9035     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9036 $as_echo_n "checking for file... " >&6; }
9037 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9038   $as_echo_n "(cached) " >&6
9039 else
9040   case $MAGIC_CMD in
9041 [\\/*] |  ?:[\\/]*)
9042   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9043   ;;
9044 *)
9045   lt_save_MAGIC_CMD="$MAGIC_CMD"
9046   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9047   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9048   for ac_dir in $ac_dummy; do
9049     IFS="$lt_save_ifs"
9050     test -z "$ac_dir" && ac_dir=.
9051     if test -f $ac_dir/file; then
9052       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9053       if test -n "$file_magic_test_file"; then
9054         case $deplibs_check_method in
9055         "file_magic "*)
9056           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9057           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9058           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9059             $EGREP "$file_magic_regex" > /dev/null; then
9060             :
9061           else
9062             cat <<_LT_EOF 1>&2
9063
9064 *** Warning: the command libtool uses to detect shared libraries,
9065 *** $file_magic_cmd, produces output that libtool cannot recognize.
9066 *** The result is that libtool may fail to recognize shared libraries
9067 *** as such.  This will affect the creation of libtool libraries that
9068 *** depend on shared libraries, but programs linked with such libtool
9069 *** libraries will work regardless of this problem.  Nevertheless, you
9070 *** may want to report the problem to your system manager and/or to
9071 *** bug-libtool@gnu.org
9072
9073 _LT_EOF
9074           fi ;;
9075         esac
9076       fi
9077       break
9078     fi
9079   done
9080   IFS="$lt_save_ifs"
9081   MAGIC_CMD="$lt_save_MAGIC_CMD"
9082   ;;
9083 esac
9084 fi
9085
9086 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9087 if test -n "$MAGIC_CMD"; then
9088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9089 $as_echo "$MAGIC_CMD" >&6; }
9090 else
9091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092 $as_echo "no" >&6; }
9093 fi
9094
9095
9096   else
9097     MAGIC_CMD=:
9098   fi
9099 fi
9100
9101   fi
9102   ;;
9103 esac
9104
9105 # Use C for the default configuration in the libtool script
9106
9107 lt_save_CC="$CC"
9108 ac_ext=c
9109 ac_cpp='$CPP $CPPFLAGS'
9110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9113
9114
9115 # Source file extension for C test sources.
9116 ac_ext=c
9117
9118 # Object file extension for compiled C test sources.
9119 objext=o
9120 objext=$objext
9121
9122 # Code to be used in simple compile tests
9123 lt_simple_compile_test_code="int some_variable = 0;"
9124
9125 # Code to be used in simple link tests
9126 lt_simple_link_test_code='int main(){return(0);}'
9127
9128
9129
9130
9131
9132
9133
9134 # If no C compiler was specified, use CC.
9135 LTCC=${LTCC-"$CC"}
9136
9137 # If no C compiler flags were specified, use CFLAGS.
9138 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9139
9140 # Allow CC to be a program name with arguments.
9141 compiler=$CC
9142
9143 # Save the default compiler, since it gets overwritten when the other
9144 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9145 compiler_DEFAULT=$CC
9146
9147 # save warnings/boilerplate of simple test code
9148 ac_outfile=conftest.$ac_objext
9149 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9150 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9151 _lt_compiler_boilerplate=`cat conftest.err`
9152 $RM conftest*
9153
9154 ac_outfile=conftest.$ac_objext
9155 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9156 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9157 _lt_linker_boilerplate=`cat conftest.err`
9158 $RM -r conftest*
9159
9160
9161 ## CAVEAT EMPTOR:
9162 ## There is no encapsulation within the following macros, do not change
9163 ## the running order or otherwise move them around unless you know exactly
9164 ## what you are doing...
9165 if test -n "$compiler"; then
9166
9167 lt_prog_compiler_no_builtin_flag=
9168
9169 if test "$GCC" = yes; then
9170   case $cc_basename in
9171   nvcc*)
9172     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9173   *)
9174     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9175   esac
9176
9177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9178 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9179 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9180   $as_echo_n "(cached) " >&6
9181 else
9182   lt_cv_prog_compiler_rtti_exceptions=no
9183    ac_outfile=conftest.$ac_objext
9184    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9185    lt_compiler_flag="-fno-rtti -fno-exceptions"
9186    # Insert the option either (1) after the last *FLAGS variable, or
9187    # (2) before a word containing "conftest.", or (3) at the end.
9188    # Note that $ac_compile itself does not contain backslashes and begins
9189    # with a dollar sign (not a hyphen), so the echo should work correctly.
9190    # The option is referenced via a variable to avoid confusing sed.
9191    lt_compile=`echo "$ac_compile" | $SED \
9192    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9193    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9194    -e 's:$: $lt_compiler_flag:'`
9195    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9196    (eval "$lt_compile" 2>conftest.err)
9197    ac_status=$?
9198    cat conftest.err >&5
9199    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200    if (exit $ac_status) && test -s "$ac_outfile"; then
9201      # The compiler can only warn and ignore the option if not recognized
9202      # So say no if there are warnings other than the usual output.
9203      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9204      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9205      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9206        lt_cv_prog_compiler_rtti_exceptions=yes
9207      fi
9208    fi
9209    $RM conftest*
9210
9211 fi
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9213 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9214
9215 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9216     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9217 else
9218     :
9219 fi
9220
9221 fi
9222
9223
9224
9225
9226
9227
9228   lt_prog_compiler_wl=
9229 lt_prog_compiler_pic=
9230 lt_prog_compiler_static=
9231
9232
9233   if test "$GCC" = yes; then
9234     lt_prog_compiler_wl='-Wl,'
9235     lt_prog_compiler_static='-static'
9236
9237     case $host_os in
9238       aix*)
9239       # All AIX code is PIC.
9240       if test "$host_cpu" = ia64; then
9241         # AIX 5 now supports IA64 processor
9242         lt_prog_compiler_static='-Bstatic'
9243       fi
9244       ;;
9245
9246     amigaos*)
9247       case $host_cpu in
9248       powerpc)
9249             # see comment about AmigaOS4 .so support
9250             lt_prog_compiler_pic='-fPIC'
9251         ;;
9252       m68k)
9253             # FIXME: we need at least 68020 code to build shared libraries, but
9254             # adding the `-m68020' flag to GCC prevents building anything better,
9255             # like `-m68040'.
9256             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9257         ;;
9258       esac
9259       ;;
9260
9261     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9262       # PIC is the default for these OSes.
9263       ;;
9264
9265     mingw* | cygwin* | pw32* | os2* | cegcc*)
9266       # This hack is so that the source file can tell whether it is being
9267       # built for inclusion in a dll (and should export symbols for example).
9268       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9269       # (--disable-auto-import) libraries
9270       lt_prog_compiler_pic='-DDLL_EXPORT'
9271       ;;
9272
9273     darwin* | rhapsody*)
9274       # PIC is the default on this platform
9275       # Common symbols not allowed in MH_DYLIB files
9276       lt_prog_compiler_pic='-fno-common'
9277       ;;
9278
9279     haiku*)
9280       # PIC is the default for Haiku.
9281       # The "-static" flag exists, but is broken.
9282       lt_prog_compiler_static=
9283       ;;
9284
9285     hpux*)
9286       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9287       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9288       # sets the default TLS model and affects inlining.
9289       case $host_cpu in
9290       hppa*64*)
9291         # +Z the default
9292         ;;
9293       *)
9294         lt_prog_compiler_pic='-fPIC'
9295         ;;
9296       esac
9297       ;;
9298
9299     interix[3-9]*)
9300       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9301       # Instead, we relocate shared libraries at runtime.
9302       ;;
9303
9304     msdosdjgpp*)
9305       # Just because we use GCC doesn't mean we suddenly get shared libraries
9306       # on systems that don't support them.
9307       lt_prog_compiler_can_build_shared=no
9308       enable_shared=no
9309       ;;
9310
9311     *nto* | *qnx*)
9312       # QNX uses GNU C++, but need to define -shared option too, otherwise
9313       # it will coredump.
9314       lt_prog_compiler_pic='-fPIC -shared'
9315       ;;
9316
9317     sysv4*MP*)
9318       if test -d /usr/nec; then
9319         lt_prog_compiler_pic=-Kconform_pic
9320       fi
9321       ;;
9322
9323     *)
9324       lt_prog_compiler_pic='-fPIC'
9325       ;;
9326     esac
9327
9328     case $cc_basename in
9329     nvcc*) # Cuda Compiler Driver 2.2
9330       lt_prog_compiler_wl='-Xlinker '
9331       if test -n "$lt_prog_compiler_pic"; then
9332         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9333       fi
9334       ;;
9335     esac
9336   else
9337     # PORTME Check for flag to pass linker flags through the system compiler.
9338     case $host_os in
9339     aix*)
9340       lt_prog_compiler_wl='-Wl,'
9341       if test "$host_cpu" = ia64; then
9342         # AIX 5 now supports IA64 processor
9343         lt_prog_compiler_static='-Bstatic'
9344       else
9345         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9346       fi
9347       ;;
9348
9349     mingw* | cygwin* | pw32* | os2* | cegcc*)
9350       # This hack is so that the source file can tell whether it is being
9351       # built for inclusion in a dll (and should export symbols for example).
9352       lt_prog_compiler_pic='-DDLL_EXPORT'
9353       ;;
9354
9355     hpux9* | hpux10* | hpux11*)
9356       lt_prog_compiler_wl='-Wl,'
9357       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9358       # not for PA HP-UX.
9359       case $host_cpu in
9360       hppa*64*|ia64*)
9361         # +Z the default
9362         ;;
9363       *)
9364         lt_prog_compiler_pic='+Z'
9365         ;;
9366       esac
9367       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9368       lt_prog_compiler_static='${wl}-a ${wl}archive'
9369       ;;
9370
9371     irix5* | irix6* | nonstopux*)
9372       lt_prog_compiler_wl='-Wl,'
9373       # PIC (with -KPIC) is the default.
9374       lt_prog_compiler_static='-non_shared'
9375       ;;
9376
9377     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9378       case $cc_basename in
9379       # old Intel for x86_64 which still supported -KPIC.
9380       ecc*)
9381         lt_prog_compiler_wl='-Wl,'
9382         lt_prog_compiler_pic='-KPIC'
9383         lt_prog_compiler_static='-static'
9384         ;;
9385       # icc used to be incompatible with GCC.
9386       # ICC 10 doesn't accept -KPIC any more.
9387       icc* | ifort*)
9388         lt_prog_compiler_wl='-Wl,'
9389         lt_prog_compiler_pic='-fPIC'
9390         lt_prog_compiler_static='-static'
9391         ;;
9392       # Lahey Fortran 8.1.
9393       lf95*)
9394         lt_prog_compiler_wl='-Wl,'
9395         lt_prog_compiler_pic='--shared'
9396         lt_prog_compiler_static='--static'
9397         ;;
9398       nagfor*)
9399         # NAG Fortran compiler
9400         lt_prog_compiler_wl='-Wl,-Wl,,'
9401         lt_prog_compiler_pic='-PIC'
9402         lt_prog_compiler_static='-Bstatic'
9403         ;;
9404       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9405         # Portland Group compilers (*not* the Pentium gcc compiler,
9406         # which looks to be a dead project)
9407         lt_prog_compiler_wl='-Wl,'
9408         lt_prog_compiler_pic='-fpic'
9409         lt_prog_compiler_static='-Bstatic'
9410         ;;
9411       ccc*)
9412         lt_prog_compiler_wl='-Wl,'
9413         # All Alpha code is PIC.
9414         lt_prog_compiler_static='-non_shared'
9415         ;;
9416       xl* | bgxl* | bgf* | mpixl*)
9417         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9418         lt_prog_compiler_wl='-Wl,'
9419         lt_prog_compiler_pic='-qpic'
9420         lt_prog_compiler_static='-qstaticlink'
9421         ;;
9422       *)
9423         case `$CC -V 2>&1 | sed 5q` in
9424         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9425           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9426           lt_prog_compiler_pic='-KPIC'
9427           lt_prog_compiler_static='-Bstatic'
9428           lt_prog_compiler_wl=''
9429           ;;
9430         *Sun\ F* | *Sun*Fortran*)
9431           lt_prog_compiler_pic='-KPIC'
9432           lt_prog_compiler_static='-Bstatic'
9433           lt_prog_compiler_wl='-Qoption ld '
9434           ;;
9435         *Sun\ C*)
9436           # Sun C 5.9
9437           lt_prog_compiler_pic='-KPIC'
9438           lt_prog_compiler_static='-Bstatic'
9439           lt_prog_compiler_wl='-Wl,'
9440           ;;
9441         *Intel*\ [CF]*Compiler*)
9442           lt_prog_compiler_wl='-Wl,'
9443           lt_prog_compiler_pic='-fPIC'
9444           lt_prog_compiler_static='-static'
9445           ;;
9446         *Portland\ Group*)
9447           lt_prog_compiler_wl='-Wl,'
9448           lt_prog_compiler_pic='-fpic'
9449           lt_prog_compiler_static='-Bstatic'
9450           ;;
9451         esac
9452         ;;
9453       esac
9454       ;;
9455
9456     newsos6)
9457       lt_prog_compiler_pic='-KPIC'
9458       lt_prog_compiler_static='-Bstatic'
9459       ;;
9460
9461     *nto* | *qnx*)
9462       # QNX uses GNU C++, but need to define -shared option too, otherwise
9463       # it will coredump.
9464       lt_prog_compiler_pic='-fPIC -shared'
9465       ;;
9466
9467     osf3* | osf4* | osf5*)
9468       lt_prog_compiler_wl='-Wl,'
9469       # All OSF/1 code is PIC.
9470       lt_prog_compiler_static='-non_shared'
9471       ;;
9472
9473     rdos*)
9474       lt_prog_compiler_static='-non_shared'
9475       ;;
9476
9477     solaris*)
9478       lt_prog_compiler_pic='-KPIC'
9479       lt_prog_compiler_static='-Bstatic'
9480       case $cc_basename in
9481       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9482         lt_prog_compiler_wl='-Qoption ld ';;
9483       *)
9484         lt_prog_compiler_wl='-Wl,';;
9485       esac
9486       ;;
9487
9488     sunos4*)
9489       lt_prog_compiler_wl='-Qoption ld '
9490       lt_prog_compiler_pic='-PIC'
9491       lt_prog_compiler_static='-Bstatic'
9492       ;;
9493
9494     sysv4 | sysv4.2uw2* | sysv4.3*)
9495       lt_prog_compiler_wl='-Wl,'
9496       lt_prog_compiler_pic='-KPIC'
9497       lt_prog_compiler_static='-Bstatic'
9498       ;;
9499
9500     sysv4*MP*)
9501       if test -d /usr/nec ;then
9502         lt_prog_compiler_pic='-Kconform_pic'
9503         lt_prog_compiler_static='-Bstatic'
9504       fi
9505       ;;
9506
9507     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9508       lt_prog_compiler_wl='-Wl,'
9509       lt_prog_compiler_pic='-KPIC'
9510       lt_prog_compiler_static='-Bstatic'
9511       ;;
9512
9513     unicos*)
9514       lt_prog_compiler_wl='-Wl,'
9515       lt_prog_compiler_can_build_shared=no
9516       ;;
9517
9518     uts4*)
9519       lt_prog_compiler_pic='-pic'
9520       lt_prog_compiler_static='-Bstatic'
9521       ;;
9522
9523     *)
9524       lt_prog_compiler_can_build_shared=no
9525       ;;
9526     esac
9527   fi
9528
9529 case $host_os in
9530   # For platforms which do not support PIC, -DPIC is meaningless:
9531   *djgpp*)
9532     lt_prog_compiler_pic=
9533     ;;
9534   *)
9535     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9536     ;;
9537 esac
9538
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9540 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9541 if ${lt_cv_prog_compiler_pic+:} false; then :
9542   $as_echo_n "(cached) " >&6
9543 else
9544   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9545 fi
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9547 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9548 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9549
9550 #
9551 # Check to make sure the PIC flag actually works.
9552 #
9553 if test -n "$lt_prog_compiler_pic"; then
9554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9555 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9556 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9557   $as_echo_n "(cached) " >&6
9558 else
9559   lt_cv_prog_compiler_pic_works=no
9560    ac_outfile=conftest.$ac_objext
9561    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9562    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9563    # Insert the option either (1) after the last *FLAGS variable, or
9564    # (2) before a word containing "conftest.", or (3) at the end.
9565    # Note that $ac_compile itself does not contain backslashes and begins
9566    # with a dollar sign (not a hyphen), so the echo should work correctly.
9567    # The option is referenced via a variable to avoid confusing sed.
9568    lt_compile=`echo "$ac_compile" | $SED \
9569    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9570    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9571    -e 's:$: $lt_compiler_flag:'`
9572    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9573    (eval "$lt_compile" 2>conftest.err)
9574    ac_status=$?
9575    cat conftest.err >&5
9576    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577    if (exit $ac_status) && test -s "$ac_outfile"; then
9578      # The compiler can only warn and ignore the option if not recognized
9579      # So say no if there are warnings other than the usual output.
9580      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9581      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9582      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9583        lt_cv_prog_compiler_pic_works=yes
9584      fi
9585    fi
9586    $RM conftest*
9587
9588 fi
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9590 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9591
9592 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9593     case $lt_prog_compiler_pic in
9594      "" | " "*) ;;
9595      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9596      esac
9597 else
9598     lt_prog_compiler_pic=
9599      lt_prog_compiler_can_build_shared=no
9600 fi
9601
9602 fi
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614 #
9615 # Check to make sure the static flag actually works.
9616 #
9617 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9619 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9620 if ${lt_cv_prog_compiler_static_works+:} false; then :
9621   $as_echo_n "(cached) " >&6
9622 else
9623   lt_cv_prog_compiler_static_works=no
9624    save_LDFLAGS="$LDFLAGS"
9625    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9626    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9627    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9628      # The linker can only warn and ignore the option if not recognized
9629      # So say no if there are warnings
9630      if test -s conftest.err; then
9631        # Append any errors to the config.log.
9632        cat conftest.err 1>&5
9633        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9634        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9635        if diff conftest.exp conftest.er2 >/dev/null; then
9636          lt_cv_prog_compiler_static_works=yes
9637        fi
9638      else
9639        lt_cv_prog_compiler_static_works=yes
9640      fi
9641    fi
9642    $RM -r conftest*
9643    LDFLAGS="$save_LDFLAGS"
9644
9645 fi
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9647 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9648
9649 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9650     :
9651 else
9652     lt_prog_compiler_static=
9653 fi
9654
9655
9656
9657
9658
9659
9660
9661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9662 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9663 if ${lt_cv_prog_compiler_c_o+:} false; then :
9664   $as_echo_n "(cached) " >&6
9665 else
9666   lt_cv_prog_compiler_c_o=no
9667    $RM -r conftest 2>/dev/null
9668    mkdir conftest
9669    cd conftest
9670    mkdir out
9671    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9672
9673    lt_compiler_flag="-o out/conftest2.$ac_objext"
9674    # Insert the option either (1) after the last *FLAGS variable, or
9675    # (2) before a word containing "conftest.", or (3) at the end.
9676    # Note that $ac_compile itself does not contain backslashes and begins
9677    # with a dollar sign (not a hyphen), so the echo should work correctly.
9678    lt_compile=`echo "$ac_compile" | $SED \
9679    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9680    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9681    -e 's:$: $lt_compiler_flag:'`
9682    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9683    (eval "$lt_compile" 2>out/conftest.err)
9684    ac_status=$?
9685    cat out/conftest.err >&5
9686    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9688    then
9689      # The compiler can only warn and ignore the option if not recognized
9690      # So say no if there are warnings
9691      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9692      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9693      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9694        lt_cv_prog_compiler_c_o=yes
9695      fi
9696    fi
9697    chmod u+w . 2>&5
9698    $RM conftest*
9699    # SGI C++ compiler will create directory out/ii_files/ for
9700    # template instantiation
9701    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9702    $RM out/* && rmdir out
9703    cd ..
9704    $RM -r conftest
9705    $RM conftest*
9706
9707 fi
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9709 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9710
9711
9712
9713
9714
9715
9716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9717 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9718 if ${lt_cv_prog_compiler_c_o+:} false; then :
9719   $as_echo_n "(cached) " >&6
9720 else
9721   lt_cv_prog_compiler_c_o=no
9722    $RM -r conftest 2>/dev/null
9723    mkdir conftest
9724    cd conftest
9725    mkdir out
9726    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9727
9728    lt_compiler_flag="-o out/conftest2.$ac_objext"
9729    # Insert the option either (1) after the last *FLAGS variable, or
9730    # (2) before a word containing "conftest.", or (3) at the end.
9731    # Note that $ac_compile itself does not contain backslashes and begins
9732    # with a dollar sign (not a hyphen), so the echo should work correctly.
9733    lt_compile=`echo "$ac_compile" | $SED \
9734    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9735    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9736    -e 's:$: $lt_compiler_flag:'`
9737    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9738    (eval "$lt_compile" 2>out/conftest.err)
9739    ac_status=$?
9740    cat out/conftest.err >&5
9741    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9743    then
9744      # The compiler can only warn and ignore the option if not recognized
9745      # So say no if there are warnings
9746      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9747      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9748      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9749        lt_cv_prog_compiler_c_o=yes
9750      fi
9751    fi
9752    chmod u+w . 2>&5
9753    $RM conftest*
9754    # SGI C++ compiler will create directory out/ii_files/ for
9755    # template instantiation
9756    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9757    $RM out/* && rmdir out
9758    cd ..
9759    $RM -r conftest
9760    $RM conftest*
9761
9762 fi
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9764 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9765
9766
9767
9768
9769 hard_links="nottested"
9770 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9771   # do not overwrite the value of need_locks provided by the user
9772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9773 $as_echo_n "checking if we can lock with hard links... " >&6; }
9774   hard_links=yes
9775   $RM conftest*
9776   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9777   touch conftest.a
9778   ln conftest.a conftest.b 2>&5 || hard_links=no
9779   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9781 $as_echo "$hard_links" >&6; }
9782   if test "$hard_links" = no; then
9783     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9784 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9785     need_locks=warn
9786   fi
9787 else
9788   need_locks=no
9789 fi
9790
9791
9792
9793
9794
9795
9796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9797 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9798
9799   runpath_var=
9800   allow_undefined_flag=
9801   always_export_symbols=no
9802   archive_cmds=
9803   archive_expsym_cmds=
9804   compiler_needs_object=no
9805   enable_shared_with_static_runtimes=no
9806   export_dynamic_flag_spec=
9807   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9808   hardcode_automatic=no
9809   hardcode_direct=no
9810   hardcode_direct_absolute=no
9811   hardcode_libdir_flag_spec=
9812   hardcode_libdir_separator=
9813   hardcode_minus_L=no
9814   hardcode_shlibpath_var=unsupported
9815   inherit_rpath=no
9816   link_all_deplibs=unknown
9817   module_cmds=
9818   module_expsym_cmds=
9819   old_archive_from_new_cmds=
9820   old_archive_from_expsyms_cmds=
9821   thread_safe_flag_spec=
9822   whole_archive_flag_spec=
9823   # include_expsyms should be a list of space-separated symbols to be *always*
9824   # included in the symbol list
9825   include_expsyms=
9826   # exclude_expsyms can be an extended regexp of symbols to exclude
9827   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9828   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9829   # as well as any symbol that contains `d'.
9830   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9831   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9832   # platforms (ab)use it in PIC code, but their linkers get confused if
9833   # the symbol is explicitly referenced.  Since portable code cannot
9834   # rely on this symbol name, it's probably fine to never include it in
9835   # preloaded symbol tables.
9836   # Exclude shared library initialization/finalization symbols.
9837   extract_expsyms_cmds=
9838
9839   case $host_os in
9840   cygwin* | mingw* | pw32* | cegcc*)
9841     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9842     # When not using gcc, we currently assume that we are using
9843     # Microsoft Visual C++.
9844     if test "$GCC" != yes; then
9845       with_gnu_ld=no
9846     fi
9847     ;;
9848   interix*)
9849     # we just hope/assume this is gcc and not c89 (= MSVC++)
9850     with_gnu_ld=yes
9851     ;;
9852   openbsd*)
9853     with_gnu_ld=no
9854     ;;
9855   linux* | k*bsd*-gnu | gnu*)
9856     link_all_deplibs=no
9857     ;;
9858   esac
9859
9860   ld_shlibs=yes
9861
9862   # On some targets, GNU ld is compatible enough with the native linker
9863   # that we're better off using the native interface for both.
9864   lt_use_gnu_ld_interface=no
9865   if test "$with_gnu_ld" = yes; then
9866     case $host_os in
9867       aix*)
9868         # The AIX port of GNU ld has always aspired to compatibility
9869         # with the native linker.  However, as the warning in the GNU ld
9870         # block says, versions before 2.19.5* couldn't really create working
9871         # shared libraries, regardless of the interface used.
9872         case `$LD -v 2>&1` in
9873           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9874           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9875           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9876           *)
9877             lt_use_gnu_ld_interface=yes
9878             ;;
9879         esac
9880         ;;
9881       *)
9882         lt_use_gnu_ld_interface=yes
9883         ;;
9884     esac
9885   fi
9886
9887   if test "$lt_use_gnu_ld_interface" = yes; then
9888     # If archive_cmds runs LD, not CC, wlarc should be empty
9889     wlarc='${wl}'
9890
9891     # Set some defaults for GNU ld with shared library support. These
9892     # are reset later if shared libraries are not supported. Putting them
9893     # here allows them to be overridden if necessary.
9894     runpath_var=LD_RUN_PATH
9895     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9896     export_dynamic_flag_spec='${wl}--export-dynamic'
9897     # ancient GNU ld didn't support --whole-archive et. al.
9898     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9899       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9900     else
9901       whole_archive_flag_spec=
9902     fi
9903     supports_anon_versioning=no
9904     case `$LD -v 2>&1` in
9905       *GNU\ gold*) supports_anon_versioning=yes ;;
9906       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9907       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9908       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9909       *\ 2.11.*) ;; # other 2.11 versions
9910       *) supports_anon_versioning=yes ;;
9911     esac
9912
9913     # See if GNU ld supports shared libraries.
9914     case $host_os in
9915     aix[3-9]*)
9916       # On AIX/PPC, the GNU linker is very broken
9917       if test "$host_cpu" != ia64; then
9918         ld_shlibs=no
9919         cat <<_LT_EOF 1>&2
9920
9921 *** Warning: the GNU linker, at least up to release 2.19, is reported
9922 *** to be unable to reliably create shared libraries on AIX.
9923 *** Therefore, libtool is disabling shared libraries support.  If you
9924 *** really care for shared libraries, you may want to install binutils
9925 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9926 *** You will then need to restart the configuration process.
9927
9928 _LT_EOF
9929       fi
9930       ;;
9931
9932     amigaos*)
9933       case $host_cpu in
9934       powerpc)
9935             # see comment about AmigaOS4 .so support
9936             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9937             archive_expsym_cmds=''
9938         ;;
9939       m68k)
9940             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)'
9941             hardcode_libdir_flag_spec='-L$libdir'
9942             hardcode_minus_L=yes
9943         ;;
9944       esac
9945       ;;
9946
9947     beos*)
9948       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9949         allow_undefined_flag=unsupported
9950         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9951         # support --undefined.  This deserves some investigation.  FIXME
9952         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9953       else
9954         ld_shlibs=no
9955       fi
9956       ;;
9957
9958     cygwin* | mingw* | pw32* | cegcc*)
9959       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9960       # as there is no search path for DLLs.
9961       hardcode_libdir_flag_spec='-L$libdir'
9962       export_dynamic_flag_spec='${wl}--export-all-symbols'
9963       allow_undefined_flag=unsupported
9964       always_export_symbols=no
9965       enable_shared_with_static_runtimes=yes
9966       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'
9967       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9968
9969       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9970         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9971         # If the export-symbols file already is a .def file (1st line
9972         # is EXPORTS), use it as is; otherwise, prepend...
9973         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9974           cp $export_symbols $output_objdir/$soname.def;
9975         else
9976           echo EXPORTS > $output_objdir/$soname.def;
9977           cat $export_symbols >> $output_objdir/$soname.def;
9978         fi~
9979         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9980       else
9981         ld_shlibs=no
9982       fi
9983       ;;
9984
9985     haiku*)
9986       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9987       link_all_deplibs=yes
9988       ;;
9989
9990     interix[3-9]*)
9991       hardcode_direct=no
9992       hardcode_shlibpath_var=no
9993       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9994       export_dynamic_flag_spec='${wl}-E'
9995       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9996       # Instead, shared libraries are loaded at an image base (0x10000000 by
9997       # default) and relocated if they conflict, which is a slow very memory
9998       # consuming and fragmenting process.  To avoid this, we pick a random,
9999       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10000       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10001       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10002       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'
10003       ;;
10004
10005     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10006       tmp_diet=no
10007       if test "$host_os" = linux-dietlibc; then
10008         case $cc_basename in
10009           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10010         esac
10011       fi
10012       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10013          && test "$tmp_diet" = no
10014       then
10015         tmp_addflag=' $pic_flag'
10016         tmp_sharedflag='-shared'
10017         case $cc_basename,$host_cpu in
10018         pgcc*)                          # Portland Group C compiler
10019           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'
10020           tmp_addflag=' $pic_flag'
10021           ;;
10022         pgf77* | pgf90* | pgf95* | pgfortran*)
10023                                         # Portland Group f77 and f90 compilers
10024           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'
10025           tmp_addflag=' $pic_flag -Mnomain' ;;
10026         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10027           tmp_addflag=' -i_dynamic' ;;
10028         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10029           tmp_addflag=' -i_dynamic -nofor_main' ;;
10030         ifc* | ifort*)                  # Intel Fortran compiler
10031           tmp_addflag=' -nofor_main' ;;
10032         lf95*)                          # Lahey Fortran 8.1
10033           whole_archive_flag_spec=
10034           tmp_sharedflag='--shared' ;;
10035         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10036           tmp_sharedflag='-qmkshrobj'
10037           tmp_addflag= ;;
10038         nvcc*)  # Cuda Compiler Driver 2.2
10039           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'
10040           compiler_needs_object=yes
10041           ;;
10042         esac
10043         case `$CC -V 2>&1 | sed 5q` in
10044         *Sun\ C*)                       # Sun C 5.9
10045           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'
10046           compiler_needs_object=yes
10047           tmp_sharedflag='-G' ;;
10048         *Sun\ F*)                       # Sun Fortran 8.3
10049           tmp_sharedflag='-G' ;;
10050         esac
10051         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10052
10053         if test "x$supports_anon_versioning" = xyes; then
10054           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10055             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10056             echo "local: *; };" >> $output_objdir/$libname.ver~
10057             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10058         fi
10059
10060         case $cc_basename in
10061         xlf* | bgf* | bgxlf* | mpixlf*)
10062           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10063           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10064           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10065           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10066           if test "x$supports_anon_versioning" = xyes; then
10067             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10068               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10069               echo "local: *; };" >> $output_objdir/$libname.ver~
10070               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10071           fi
10072           ;;
10073         esac
10074       else
10075         ld_shlibs=no
10076       fi
10077       ;;
10078
10079     netbsd* | netbsdelf*-gnu)
10080       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10081         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10082         wlarc=
10083       else
10084         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10085         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10086       fi
10087       ;;
10088
10089     solaris*)
10090       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10091         ld_shlibs=no
10092         cat <<_LT_EOF 1>&2
10093
10094 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10095 *** create shared libraries on Solaris systems.  Therefore, libtool
10096 *** is disabling shared libraries support.  We urge you to upgrade GNU
10097 *** binutils to release 2.9.1 or newer.  Another option is to modify
10098 *** your PATH or compiler configuration so that the native linker is
10099 *** used, and then restart.
10100
10101 _LT_EOF
10102       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10103         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10104         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10105       else
10106         ld_shlibs=no
10107       fi
10108       ;;
10109
10110     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10111       case `$LD -v 2>&1` in
10112         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10113         ld_shlibs=no
10114         cat <<_LT_EOF 1>&2
10115
10116 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10117 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10118 *** is disabling shared libraries support.  We urge you to upgrade GNU
10119 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10120 *** your PATH or compiler configuration so that the native linker is
10121 *** used, and then restart.
10122
10123 _LT_EOF
10124         ;;
10125         *)
10126           # For security reasons, it is highly recommended that you always
10127           # use absolute paths for naming shared libraries, and exclude the
10128           # DT_RUNPATH tag from executables and libraries.  But doing so
10129           # requires that you compile everything twice, which is a pain.
10130           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10131             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10132             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10133             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10134           else
10135             ld_shlibs=no
10136           fi
10137         ;;
10138       esac
10139       ;;
10140
10141     sunos4*)
10142       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10143       wlarc=
10144       hardcode_direct=yes
10145       hardcode_shlibpath_var=no
10146       ;;
10147
10148     *)
10149       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10150         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10151         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10152       else
10153         ld_shlibs=no
10154       fi
10155       ;;
10156     esac
10157
10158     if test "$ld_shlibs" = no; then
10159       runpath_var=
10160       hardcode_libdir_flag_spec=
10161       export_dynamic_flag_spec=
10162       whole_archive_flag_spec=
10163     fi
10164   else
10165     # PORTME fill in a description of your system's linker (not GNU ld)
10166     case $host_os in
10167     aix3*)
10168       allow_undefined_flag=unsupported
10169       always_export_symbols=yes
10170       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'
10171       # Note: this linker hardcodes the directories in LIBPATH if there
10172       # are no directories specified by -L.
10173       hardcode_minus_L=yes
10174       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10175         # Neither direct hardcoding nor static linking is supported with a
10176         # broken collect2.
10177         hardcode_direct=unsupported
10178       fi
10179       ;;
10180
10181     aix[4-9]*)
10182       if test "$host_cpu" = ia64; then
10183         # On IA64, the linker does run time linking by default, so we don't
10184         # have to do anything special.
10185         aix_use_runtimelinking=no
10186         exp_sym_flag='-Bexport'
10187         no_entry_flag=""
10188       else
10189         # If we're using GNU nm, then we don't want the "-C" option.
10190         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10191         # Also, AIX nm treats weak defined symbols like other global
10192         # defined symbols, whereas GNU nm marks them as "W".
10193         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10194           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'
10195         else
10196           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'
10197         fi
10198         aix_use_runtimelinking=no
10199
10200         # Test if we are trying to use run time linking or normal
10201         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10202         # need to do runtime linking.
10203         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10204           for ld_flag in $LDFLAGS; do
10205           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10206             aix_use_runtimelinking=yes
10207             break
10208           fi
10209           done
10210           ;;
10211         esac
10212
10213         exp_sym_flag='-bexport'
10214         no_entry_flag='-bnoentry'
10215       fi
10216
10217       # When large executables or shared objects are built, AIX ld can
10218       # have problems creating the table of contents.  If linking a library
10219       # or program results in "error TOC overflow" add -mminimal-toc to
10220       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10221       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10222
10223       archive_cmds=''
10224       hardcode_direct=yes
10225       hardcode_direct_absolute=yes
10226       hardcode_libdir_separator=':'
10227       link_all_deplibs=yes
10228       file_list_spec='${wl}-f,'
10229
10230       if test "$GCC" = yes; then
10231         case $host_os in aix4.[012]|aix4.[012].*)
10232         # We only want to do this on AIX 4.2 and lower, the check
10233         # below for broken collect2 doesn't work under 4.3+
10234           collect2name=`${CC} -print-prog-name=collect2`
10235           if test -f "$collect2name" &&
10236            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10237           then
10238           # We have reworked collect2
10239           :
10240           else
10241           # We have old collect2
10242           hardcode_direct=unsupported
10243           # It fails to find uninstalled libraries when the uninstalled
10244           # path is not listed in the libpath.  Setting hardcode_minus_L
10245           # to unsupported forces relinking
10246           hardcode_minus_L=yes
10247           hardcode_libdir_flag_spec='-L$libdir'
10248           hardcode_libdir_separator=
10249           fi
10250           ;;
10251         esac
10252         shared_flag='-shared'
10253         if test "$aix_use_runtimelinking" = yes; then
10254           shared_flag="$shared_flag "'${wl}-G'
10255         fi
10256         link_all_deplibs=no
10257       else
10258         # not using gcc
10259         if test "$host_cpu" = ia64; then
10260         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10261         # chokes on -Wl,-G. The following line is correct:
10262           shared_flag='-G'
10263         else
10264           if test "$aix_use_runtimelinking" = yes; then
10265             shared_flag='${wl}-G'
10266           else
10267             shared_flag='${wl}-bM:SRE'
10268           fi
10269         fi
10270       fi
10271
10272       export_dynamic_flag_spec='${wl}-bexpall'
10273       # It seems that -bexpall does not export symbols beginning with
10274       # underscore (_), so it is better to generate a list of symbols to export.
10275       always_export_symbols=yes
10276       if test "$aix_use_runtimelinking" = yes; then
10277         # Warning - without using the other runtime loading flags (-brtl),
10278         # -berok will link without error, but may produce a broken library.
10279         allow_undefined_flag='-berok'
10280         # Determine the default libpath from the value encoded in an
10281         # empty executable.
10282         if test "${lt_cv_aix_libpath+set}" = set; then
10283   aix_libpath=$lt_cv_aix_libpath
10284 else
10285   if ${lt_cv_aix_libpath_+:} false; then :
10286   $as_echo_n "(cached) " >&6
10287 else
10288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289 /* end confdefs.h.  */
10290
10291 int
10292 main ()
10293 {
10294
10295   ;
10296   return 0;
10297 }
10298 _ACEOF
10299 if ac_fn_c_try_link "$LINENO"; then :
10300
10301   lt_aix_libpath_sed='
10302       /Import File Strings/,/^$/ {
10303           /^0/ {
10304               s/^0  *\([^ ]*\) *$/\1/
10305               p
10306           }
10307       }'
10308   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10309   # Check for a 64-bit object if we didn't find anything.
10310   if test -z "$lt_cv_aix_libpath_"; then
10311     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10312   fi
10313 fi
10314 rm -f core conftest.err conftest.$ac_objext \
10315     conftest$ac_exeext conftest.$ac_ext
10316   if test -z "$lt_cv_aix_libpath_"; then
10317     lt_cv_aix_libpath_="/usr/lib:/lib"
10318   fi
10319
10320 fi
10321
10322   aix_libpath=$lt_cv_aix_libpath_
10323 fi
10324
10325         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10326         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"
10327       else
10328         if test "$host_cpu" = ia64; then
10329           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10330           allow_undefined_flag="-z nodefs"
10331           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"
10332         else
10333          # Determine the default libpath from the value encoded in an
10334          # empty executable.
10335          if test "${lt_cv_aix_libpath+set}" = set; then
10336   aix_libpath=$lt_cv_aix_libpath
10337 else
10338   if ${lt_cv_aix_libpath_+:} false; then :
10339   $as_echo_n "(cached) " >&6
10340 else
10341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h.  */
10343
10344 int
10345 main ()
10346 {
10347
10348   ;
10349   return 0;
10350 }
10351 _ACEOF
10352 if ac_fn_c_try_link "$LINENO"; then :
10353
10354   lt_aix_libpath_sed='
10355       /Import File Strings/,/^$/ {
10356           /^0/ {
10357               s/^0  *\([^ ]*\) *$/\1/
10358               p
10359           }
10360       }'
10361   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10362   # Check for a 64-bit object if we didn't find anything.
10363   if test -z "$lt_cv_aix_libpath_"; then
10364     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10365   fi
10366 fi
10367 rm -f core conftest.err conftest.$ac_objext \
10368     conftest$ac_exeext conftest.$ac_ext
10369   if test -z "$lt_cv_aix_libpath_"; then
10370     lt_cv_aix_libpath_="/usr/lib:/lib"
10371   fi
10372
10373 fi
10374
10375   aix_libpath=$lt_cv_aix_libpath_
10376 fi
10377
10378          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10379           # Warning - without using the other run time loading flags,
10380           # -berok will link without error, but may produce a broken library.
10381           no_undefined_flag=' ${wl}-bernotok'
10382           allow_undefined_flag=' ${wl}-berok'
10383           if test "$with_gnu_ld" = yes; then
10384             # We only use this code for GNU lds that support --whole-archive.
10385             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10386           else
10387             # Exported symbols can be pulled into shared objects from archives
10388             whole_archive_flag_spec='$convenience'
10389           fi
10390           archive_cmds_need_lc=yes
10391           # This is similar to how AIX traditionally builds its shared libraries.
10392           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'
10393         fi
10394       fi
10395       ;;
10396
10397     amigaos*)
10398       case $host_cpu in
10399       powerpc)
10400             # see comment about AmigaOS4 .so support
10401             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10402             archive_expsym_cmds=''
10403         ;;
10404       m68k)
10405             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)'
10406             hardcode_libdir_flag_spec='-L$libdir'
10407             hardcode_minus_L=yes
10408         ;;
10409       esac
10410       ;;
10411
10412     bsdi[45]*)
10413       export_dynamic_flag_spec=-rdynamic
10414       ;;
10415
10416     cygwin* | mingw* | pw32* | cegcc*)
10417       # When not using gcc, we currently assume that we are using
10418       # Microsoft Visual C++.
10419       # hardcode_libdir_flag_spec is actually meaningless, as there is
10420       # no search path for DLLs.
10421       case $cc_basename in
10422       cl*)
10423         # Native MSVC
10424         hardcode_libdir_flag_spec=' '
10425         allow_undefined_flag=unsupported
10426         always_export_symbols=yes
10427         file_list_spec='@'
10428         # Tell ltmain to make .lib files, not .a files.
10429         libext=lib
10430         # Tell ltmain to make .dll files, not .so files.
10431         shrext_cmds=".dll"
10432         # FIXME: Setting linknames here is a bad hack.
10433         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10434         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10435             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10436           else
10437             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10438           fi~
10439           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10440           linknames='
10441         # The linker will not automatically build a static lib if we build a DLL.
10442         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10443         enable_shared_with_static_runtimes=yes
10444         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10445         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10446         # Don't use ranlib
10447         old_postinstall_cmds='chmod 644 $oldlib'
10448         postlink_cmds='lt_outputfile="@OUTPUT@"~
10449           lt_tool_outputfile="@TOOL_OUTPUT@"~
10450           case $lt_outputfile in
10451             *.exe|*.EXE) ;;
10452             *)
10453               lt_outputfile="$lt_outputfile.exe"
10454               lt_tool_outputfile="$lt_tool_outputfile.exe"
10455               ;;
10456           esac~
10457           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10458             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10459             $RM "$lt_outputfile.manifest";
10460           fi'
10461         ;;
10462       *)
10463         # Assume MSVC wrapper
10464         hardcode_libdir_flag_spec=' '
10465         allow_undefined_flag=unsupported
10466         # Tell ltmain to make .lib files, not .a files.
10467         libext=lib
10468         # Tell ltmain to make .dll files, not .so files.
10469         shrext_cmds=".dll"
10470         # FIXME: Setting linknames here is a bad hack.
10471         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10472         # The linker will automatically build a .lib file if we build a DLL.
10473         old_archive_from_new_cmds='true'
10474         # FIXME: Should let the user specify the lib program.
10475         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10476         enable_shared_with_static_runtimes=yes
10477         ;;
10478       esac
10479       ;;
10480
10481     darwin* | rhapsody*)
10482
10483
10484   archive_cmds_need_lc=no
10485   hardcode_direct=no
10486   hardcode_automatic=yes
10487   hardcode_shlibpath_var=unsupported
10488   if test "$lt_cv_ld_force_load" = "yes"; then
10489     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\"`'
10490
10491   else
10492     whole_archive_flag_spec=''
10493   fi
10494   link_all_deplibs=yes
10495   allow_undefined_flag="$_lt_dar_allow_undefined"
10496   case $cc_basename in
10497      ifort*) _lt_dar_can_shared=yes ;;
10498      *) _lt_dar_can_shared=$GCC ;;
10499   esac
10500   if test "$_lt_dar_can_shared" = "yes"; then
10501     output_verbose_link_cmd=func_echo_all
10502     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10503     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10504     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}"
10505     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}"
10506
10507   else
10508   ld_shlibs=no
10509   fi
10510
10511       ;;
10512
10513     dgux*)
10514       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10515       hardcode_libdir_flag_spec='-L$libdir'
10516       hardcode_shlibpath_var=no
10517       ;;
10518
10519     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10520     # support.  Future versions do this automatically, but an explicit c++rt0.o
10521     # does not break anything, and helps significantly (at the cost of a little
10522     # extra space).
10523     freebsd2.2*)
10524       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10525       hardcode_libdir_flag_spec='-R$libdir'
10526       hardcode_direct=yes
10527       hardcode_shlibpath_var=no
10528       ;;
10529
10530     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10531     freebsd2.*)
10532       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10533       hardcode_direct=yes
10534       hardcode_minus_L=yes
10535       hardcode_shlibpath_var=no
10536       ;;
10537
10538     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10539     freebsd* | dragonfly*)
10540       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10541       hardcode_libdir_flag_spec='-R$libdir'
10542       hardcode_direct=yes
10543       hardcode_shlibpath_var=no
10544       ;;
10545
10546     hpux9*)
10547       if test "$GCC" = yes; then
10548         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'
10549       else
10550         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'
10551       fi
10552       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10553       hardcode_libdir_separator=:
10554       hardcode_direct=yes
10555
10556       # hardcode_minus_L: Not really in the search PATH,
10557       # but as the default location of the library.
10558       hardcode_minus_L=yes
10559       export_dynamic_flag_spec='${wl}-E'
10560       ;;
10561
10562     hpux10*)
10563       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10564         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10565       else
10566         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10567       fi
10568       if test "$with_gnu_ld" = no; then
10569         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10570         hardcode_libdir_separator=:
10571         hardcode_direct=yes
10572         hardcode_direct_absolute=yes
10573         export_dynamic_flag_spec='${wl}-E'
10574         # hardcode_minus_L: Not really in the search PATH,
10575         # but as the default location of the library.
10576         hardcode_minus_L=yes
10577       fi
10578       ;;
10579
10580     hpux11*)
10581       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10582         case $host_cpu in
10583         hppa*64*)
10584           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10585           ;;
10586         ia64*)
10587           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10588           ;;
10589         *)
10590           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10591           ;;
10592         esac
10593       else
10594         case $host_cpu in
10595         hppa*64*)
10596           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10597           ;;
10598         ia64*)
10599           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10600           ;;
10601         *)
10602
10603           # Older versions of the 11.00 compiler do not understand -b yet
10604           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10605           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10606 $as_echo_n "checking if $CC understands -b... " >&6; }
10607 if ${lt_cv_prog_compiler__b+:} false; then :
10608   $as_echo_n "(cached) " >&6
10609 else
10610   lt_cv_prog_compiler__b=no
10611    save_LDFLAGS="$LDFLAGS"
10612    LDFLAGS="$LDFLAGS -b"
10613    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10614    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10615      # The linker can only warn and ignore the option if not recognized
10616      # So say no if there are warnings
10617      if test -s conftest.err; then
10618        # Append any errors to the config.log.
10619        cat conftest.err 1>&5
10620        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10621        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10622        if diff conftest.exp conftest.er2 >/dev/null; then
10623          lt_cv_prog_compiler__b=yes
10624        fi
10625      else
10626        lt_cv_prog_compiler__b=yes
10627      fi
10628    fi
10629    $RM -r conftest*
10630    LDFLAGS="$save_LDFLAGS"
10631
10632 fi
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10634 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10635
10636 if test x"$lt_cv_prog_compiler__b" = xyes; then
10637     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10638 else
10639     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10640 fi
10641
10642           ;;
10643         esac
10644       fi
10645       if test "$with_gnu_ld" = no; then
10646         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10647         hardcode_libdir_separator=:
10648
10649         case $host_cpu in
10650         hppa*64*|ia64*)
10651           hardcode_direct=no
10652           hardcode_shlibpath_var=no
10653           ;;
10654         *)
10655           hardcode_direct=yes
10656           hardcode_direct_absolute=yes
10657           export_dynamic_flag_spec='${wl}-E'
10658
10659           # hardcode_minus_L: Not really in the search PATH,
10660           # but as the default location of the library.
10661           hardcode_minus_L=yes
10662           ;;
10663         esac
10664       fi
10665       ;;
10666
10667     irix5* | irix6* | nonstopux*)
10668       if test "$GCC" = yes; then
10669         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'
10670         # Try to use the -exported_symbol ld option, if it does not
10671         # work, assume that -exports_file does not work either and
10672         # implicitly export all symbols.
10673         # This should be the same for all languages, so no per-tag cache variable.
10674         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10675 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10676 if ${lt_cv_irix_exported_symbol+:} false; then :
10677   $as_echo_n "(cached) " >&6
10678 else
10679   save_LDFLAGS="$LDFLAGS"
10680            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10681            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h.  */
10683 int foo (void) { return 0; }
10684 _ACEOF
10685 if ac_fn_c_try_link "$LINENO"; then :
10686   lt_cv_irix_exported_symbol=yes
10687 else
10688   lt_cv_irix_exported_symbol=no
10689 fi
10690 rm -f core conftest.err conftest.$ac_objext \
10691     conftest$ac_exeext conftest.$ac_ext
10692            LDFLAGS="$save_LDFLAGS"
10693 fi
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10695 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10696         if test "$lt_cv_irix_exported_symbol" = yes; then
10697           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'
10698         fi
10699       else
10700         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'
10701         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'
10702       fi
10703       archive_cmds_need_lc='no'
10704       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10705       hardcode_libdir_separator=:
10706       inherit_rpath=yes
10707       link_all_deplibs=yes
10708       ;;
10709
10710     netbsd* | netbsdelf*-gnu)
10711       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10712         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10713       else
10714         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10715       fi
10716       hardcode_libdir_flag_spec='-R$libdir'
10717       hardcode_direct=yes
10718       hardcode_shlibpath_var=no
10719       ;;
10720
10721     newsos6)
10722       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10723       hardcode_direct=yes
10724       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10725       hardcode_libdir_separator=:
10726       hardcode_shlibpath_var=no
10727       ;;
10728
10729     *nto* | *qnx*)
10730       ;;
10731
10732     openbsd*)
10733       if test -f /usr/libexec/ld.so; then
10734         hardcode_direct=yes
10735         hardcode_shlibpath_var=no
10736         hardcode_direct_absolute=yes
10737         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10738           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10739           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10740           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10741           export_dynamic_flag_spec='${wl}-E'
10742         else
10743           case $host_os in
10744            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10745              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10746              hardcode_libdir_flag_spec='-R$libdir'
10747              ;;
10748            *)
10749              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10750              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10751              ;;
10752           esac
10753         fi
10754       else
10755         ld_shlibs=no
10756       fi
10757       ;;
10758
10759     os2*)
10760       hardcode_libdir_flag_spec='-L$libdir'
10761       hardcode_minus_L=yes
10762       allow_undefined_flag=unsupported
10763       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'
10764       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10765       ;;
10766
10767     osf3*)
10768       if test "$GCC" = yes; then
10769         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10770         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'
10771       else
10772         allow_undefined_flag=' -expect_unresolved \*'
10773         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'
10774       fi
10775       archive_cmds_need_lc='no'
10776       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10777       hardcode_libdir_separator=:
10778       ;;
10779
10780     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10781       if test "$GCC" = yes; then
10782         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10783         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'
10784         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10785       else
10786         allow_undefined_flag=' -expect_unresolved \*'
10787         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'
10788         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~
10789         $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'
10790
10791         # Both c and cxx compiler support -rpath directly
10792         hardcode_libdir_flag_spec='-rpath $libdir'
10793       fi
10794       archive_cmds_need_lc='no'
10795       hardcode_libdir_separator=:
10796       ;;
10797
10798     solaris*)
10799       no_undefined_flag=' -z defs'
10800       if test "$GCC" = yes; then
10801         wlarc='${wl}'
10802         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10803         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10804           $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'
10805       else
10806         case `$CC -V 2>&1` in
10807         *"Compilers 5.0"*)
10808           wlarc=''
10809           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10810           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10811           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10812           ;;
10813         *)
10814           wlarc='${wl}'
10815           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10816           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10817           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10818           ;;
10819         esac
10820       fi
10821       hardcode_libdir_flag_spec='-R$libdir'
10822       hardcode_shlibpath_var=no
10823       case $host_os in
10824       solaris2.[0-5] | solaris2.[0-5].*) ;;
10825       *)
10826         # The compiler driver will combine and reorder linker options,
10827         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10828         # but is careful enough not to reorder.
10829         # Supported since Solaris 2.6 (maybe 2.5.1?)
10830         if test "$GCC" = yes; then
10831           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10832         else
10833           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10834         fi
10835         ;;
10836       esac
10837       link_all_deplibs=yes
10838       ;;
10839
10840     sunos4*)
10841       if test "x$host_vendor" = xsequent; then
10842         # Use $CC to link under sequent, because it throws in some extra .o
10843         # files that make .init and .fini sections work.
10844         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10845       else
10846         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10847       fi
10848       hardcode_libdir_flag_spec='-L$libdir'
10849       hardcode_direct=yes
10850       hardcode_minus_L=yes
10851       hardcode_shlibpath_var=no
10852       ;;
10853
10854     sysv4)
10855       case $host_vendor in
10856         sni)
10857           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10858           hardcode_direct=yes # is this really true???
10859         ;;
10860         siemens)
10861           ## LD is ld it makes a PLAMLIB
10862           ## CC just makes a GrossModule.
10863           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10864           reload_cmds='$CC -r -o $output$reload_objs'
10865           hardcode_direct=no
10866         ;;
10867         motorola)
10868           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10869           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10870         ;;
10871       esac
10872       runpath_var='LD_RUN_PATH'
10873       hardcode_shlibpath_var=no
10874       ;;
10875
10876     sysv4.3*)
10877       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10878       hardcode_shlibpath_var=no
10879       export_dynamic_flag_spec='-Bexport'
10880       ;;
10881
10882     sysv4*MP*)
10883       if test -d /usr/nec; then
10884         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10885         hardcode_shlibpath_var=no
10886         runpath_var=LD_RUN_PATH
10887         hardcode_runpath_var=yes
10888         ld_shlibs=yes
10889       fi
10890       ;;
10891
10892     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10893       no_undefined_flag='${wl}-z,text'
10894       archive_cmds_need_lc=no
10895       hardcode_shlibpath_var=no
10896       runpath_var='LD_RUN_PATH'
10897
10898       if test "$GCC" = yes; then
10899         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10900         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10901       else
10902         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10903         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10904       fi
10905       ;;
10906
10907     sysv5* | sco3.2v5* | sco5v6*)
10908       # Note: We can NOT use -z defs as we might desire, because we do not
10909       # link with -lc, and that would cause any symbols used from libc to
10910       # always be unresolved, which means just about no library would
10911       # ever link correctly.  If we're not using GNU ld we use -z text
10912       # though, which does catch some bad symbols but isn't as heavy-handed
10913       # as -z defs.
10914       no_undefined_flag='${wl}-z,text'
10915       allow_undefined_flag='${wl}-z,nodefs'
10916       archive_cmds_need_lc=no
10917       hardcode_shlibpath_var=no
10918       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10919       hardcode_libdir_separator=':'
10920       link_all_deplibs=yes
10921       export_dynamic_flag_spec='${wl}-Bexport'
10922       runpath_var='LD_RUN_PATH'
10923
10924       if test "$GCC" = yes; then
10925         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10926         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10927       else
10928         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10929         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10930       fi
10931       ;;
10932
10933     uts4*)
10934       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10935       hardcode_libdir_flag_spec='-L$libdir'
10936       hardcode_shlibpath_var=no
10937       ;;
10938
10939     *)
10940       ld_shlibs=no
10941       ;;
10942     esac
10943
10944     if test x$host_vendor = xsni; then
10945       case $host in
10946       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10947         export_dynamic_flag_spec='${wl}-Blargedynsym'
10948         ;;
10949       esac
10950     fi
10951   fi
10952
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10954 $as_echo "$ld_shlibs" >&6; }
10955 test "$ld_shlibs" = no && can_build_shared=no
10956
10957 with_gnu_ld=$with_gnu_ld
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973 #
10974 # Do we need to explicitly link libc?
10975 #
10976 case "x$archive_cmds_need_lc" in
10977 x|xyes)
10978   # Assume -lc should be added
10979   archive_cmds_need_lc=yes
10980
10981   if test "$enable_shared" = yes && test "$GCC" = yes; then
10982     case $archive_cmds in
10983     *'~'*)
10984       # FIXME: we may have to deal with multi-command sequences.
10985       ;;
10986     '$CC '*)
10987       # Test whether the compiler implicitly links with -lc since on some
10988       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10989       # to ld, don't add -lc before -lgcc.
10990       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10991 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10992 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10993   $as_echo_n "(cached) " >&6
10994 else
10995   $RM conftest*
10996         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10997
10998         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10999   (eval $ac_compile) 2>&5
11000   ac_status=$?
11001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11002   test $ac_status = 0; } 2>conftest.err; then
11003           soname=conftest
11004           lib=conftest
11005           libobjs=conftest.$ac_objext
11006           deplibs=
11007           wl=$lt_prog_compiler_wl
11008           pic_flag=$lt_prog_compiler_pic
11009           compiler_flags=-v
11010           linker_flags=-v
11011           verstring=
11012           output_objdir=.
11013           libname=conftest
11014           lt_save_allow_undefined_flag=$allow_undefined_flag
11015           allow_undefined_flag=
11016           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11017   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11018   ac_status=$?
11019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11020   test $ac_status = 0; }
11021           then
11022             lt_cv_archive_cmds_need_lc=no
11023           else
11024             lt_cv_archive_cmds_need_lc=yes
11025           fi
11026           allow_undefined_flag=$lt_save_allow_undefined_flag
11027         else
11028           cat conftest.err 1>&5
11029         fi
11030         $RM conftest*
11031
11032 fi
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11034 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11035       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11036       ;;
11037     esac
11038   fi
11039   ;;
11040 esac
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
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11194 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11195
11196 if test "$GCC" = yes; then
11197   case $host_os in
11198     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11199     *) lt_awk_arg="/^libraries:/" ;;
11200   esac
11201   case $host_os in
11202     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11203     *) lt_sed_strip_eq="s,=/,/,g" ;;
11204   esac
11205   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11206   case $lt_search_path_spec in
11207   *\;*)
11208     # if the path contains ";" then we assume it to be the separator
11209     # otherwise default to the standard path separator (i.e. ":") - it is
11210     # assumed that no part of a normal pathname contains ";" but that should
11211     # okay in the real world where ";" in dirpaths is itself problematic.
11212     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11213     ;;
11214   *)
11215     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11216     ;;
11217   esac
11218   # Ok, now we have the path, separated by spaces, we can step through it
11219   # and add multilib dir if necessary.
11220   lt_tmp_lt_search_path_spec=
11221   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11222   for lt_sys_path in $lt_search_path_spec; do
11223     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11224       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11225     else
11226       test -d "$lt_sys_path" && \
11227         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11228     fi
11229   done
11230   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11231 BEGIN {RS=" "; FS="/|\n";} {
11232   lt_foo="";
11233   lt_count=0;
11234   for (lt_i = NF; lt_i > 0; lt_i--) {
11235     if ($lt_i != "" && $lt_i != ".") {
11236       if ($lt_i == "..") {
11237         lt_count++;
11238       } else {
11239         if (lt_count == 0) {
11240           lt_foo="/" $lt_i lt_foo;
11241         } else {
11242           lt_count--;
11243         }
11244       }
11245     }
11246   }
11247   if (lt_foo != "") { lt_freq[lt_foo]++; }
11248   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11249 }'`
11250   # AWK program above erroneously prepends '/' to C:/dos/paths
11251   # for these hosts.
11252   case $host_os in
11253     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11254       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11255   esac
11256   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11257 else
11258   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11259 fi
11260 library_names_spec=
11261 libname_spec='lib$name'
11262 soname_spec=
11263 shrext_cmds=".so"
11264 postinstall_cmds=
11265 postuninstall_cmds=
11266 finish_cmds=
11267 finish_eval=
11268 shlibpath_var=
11269 shlibpath_overrides_runpath=unknown
11270 version_type=none
11271 dynamic_linker="$host_os ld.so"
11272 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11273 need_lib_prefix=unknown
11274 hardcode_into_libs=no
11275
11276 # when you set need_version to no, make sure it does not cause -set_version
11277 # flags to be left without arguments
11278 need_version=unknown
11279
11280 case $host_os in
11281 aix3*)
11282   version_type=linux # correct to gnu/linux during the next big refactor
11283   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11284   shlibpath_var=LIBPATH
11285
11286   # AIX 3 has no versioning support, so we append a major version to the name.
11287   soname_spec='${libname}${release}${shared_ext}$major'
11288   ;;
11289
11290 aix[4-9]*)
11291   version_type=linux # correct to gnu/linux during the next big refactor
11292   need_lib_prefix=no
11293   need_version=no
11294   hardcode_into_libs=yes
11295   if test "$host_cpu" = ia64; then
11296     # AIX 5 supports IA64
11297     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11298     shlibpath_var=LD_LIBRARY_PATH
11299   else
11300     # With GCC up to 2.95.x, collect2 would create an import file
11301     # for dependence libraries.  The import file would start with
11302     # the line `#! .'.  This would cause the generated library to
11303     # depend on `.', always an invalid library.  This was fixed in
11304     # development snapshots of GCC prior to 3.0.
11305     case $host_os in
11306       aix4 | aix4.[01] | aix4.[01].*)
11307       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11308            echo ' yes '
11309            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11310         :
11311       else
11312         can_build_shared=no
11313       fi
11314       ;;
11315     esac
11316     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11317     # soname into executable. Probably we can add versioning support to
11318     # collect2, so additional links can be useful in future.
11319     if test "$aix_use_runtimelinking" = yes; then
11320       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11321       # instead of lib<name>.a to let people know that these are not
11322       # typical AIX shared libraries.
11323       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11324     else
11325       # We preserve .a as extension for shared libraries through AIX4.2
11326       # and later when we are not doing run time linking.
11327       library_names_spec='${libname}${release}.a $libname.a'
11328       soname_spec='${libname}${release}${shared_ext}$major'
11329     fi
11330     shlibpath_var=LIBPATH
11331   fi
11332   ;;
11333
11334 amigaos*)
11335   case $host_cpu in
11336   powerpc)
11337     # Since July 2007 AmigaOS4 officially supports .so libraries.
11338     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11340     ;;
11341   m68k)
11342     library_names_spec='$libname.ixlibrary $libname.a'
11343     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11344     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'
11345     ;;
11346   esac
11347   ;;
11348
11349 beos*)
11350   library_names_spec='${libname}${shared_ext}'
11351   dynamic_linker="$host_os ld.so"
11352   shlibpath_var=LIBRARY_PATH
11353   ;;
11354
11355 bsdi[45]*)
11356   version_type=linux # correct to gnu/linux during the next big refactor
11357   need_version=no
11358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11359   soname_spec='${libname}${release}${shared_ext}$major'
11360   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11361   shlibpath_var=LD_LIBRARY_PATH
11362   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11363   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11364   # the default ld.so.conf also contains /usr/contrib/lib and
11365   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11366   # libtool to hard-code these into programs
11367   ;;
11368
11369 cygwin* | mingw* | pw32* | cegcc*)
11370   version_type=windows
11371   shrext_cmds=".dll"
11372   need_version=no
11373   need_lib_prefix=no
11374
11375   case $GCC,$cc_basename in
11376   yes,*)
11377     # gcc
11378     library_names_spec='$libname.dll.a'
11379     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11380     postinstall_cmds='base_file=`basename \${file}`~
11381       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11382       dldir=$destdir/`dirname \$dlpath`~
11383       test -d \$dldir || mkdir -p \$dldir~
11384       $install_prog $dir/$dlname \$dldir/$dlname~
11385       chmod a+x \$dldir/$dlname~
11386       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11387         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11388       fi'
11389     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11390       dlpath=$dir/\$dldll~
11391        $RM \$dlpath'
11392     shlibpath_overrides_runpath=yes
11393
11394     case $host_os in
11395     cygwin*)
11396       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11397       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11398
11399       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11400       ;;
11401     mingw* | cegcc*)
11402       # MinGW DLLs use traditional 'lib' prefix
11403       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11404       ;;
11405     pw32*)
11406       # pw32 DLLs use 'pw' prefix rather than 'lib'
11407       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11408       ;;
11409     esac
11410     dynamic_linker='Win32 ld.exe'
11411     ;;
11412
11413   *,cl*)
11414     # Native MSVC
11415     libname_spec='$name'
11416     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11417     library_names_spec='${libname}.dll.lib'
11418
11419     case $build_os in
11420     mingw*)
11421       sys_lib_search_path_spec=
11422       lt_save_ifs=$IFS
11423       IFS=';'
11424       for lt_path in $LIB
11425       do
11426         IFS=$lt_save_ifs
11427         # Let DOS variable expansion print the short 8.3 style file name.
11428         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11429         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11430       done
11431       IFS=$lt_save_ifs
11432       # Convert to MSYS style.
11433       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11434       ;;
11435     cygwin*)
11436       # Convert to unix form, then to dos form, then back to unix form
11437       # but this time dos style (no spaces!) so that the unix form looks
11438       # like /cygdrive/c/PROGRA~1:/cygdr...
11439       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11440       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11441       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11442       ;;
11443     *)
11444       sys_lib_search_path_spec="$LIB"
11445       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11446         # It is most probably a Windows format PATH.
11447         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11448       else
11449         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11450       fi
11451       # FIXME: find the short name or the path components, as spaces are
11452       # common. (e.g. "Program Files" -> "PROGRA~1")
11453       ;;
11454     esac
11455
11456     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11457     postinstall_cmds='base_file=`basename \${file}`~
11458       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11459       dldir=$destdir/`dirname \$dlpath`~
11460       test -d \$dldir || mkdir -p \$dldir~
11461       $install_prog $dir/$dlname \$dldir/$dlname'
11462     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11463       dlpath=$dir/\$dldll~
11464        $RM \$dlpath'
11465     shlibpath_overrides_runpath=yes
11466     dynamic_linker='Win32 link.exe'
11467     ;;
11468
11469   *)
11470     # Assume MSVC wrapper
11471     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11472     dynamic_linker='Win32 ld.exe'
11473     ;;
11474   esac
11475   # FIXME: first we should search . and the directory the executable is in
11476   shlibpath_var=PATH
11477   ;;
11478
11479 darwin* | rhapsody*)
11480   dynamic_linker="$host_os dyld"
11481   version_type=darwin
11482   need_lib_prefix=no
11483   need_version=no
11484   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11485   soname_spec='${libname}${release}${major}$shared_ext'
11486   shlibpath_overrides_runpath=yes
11487   shlibpath_var=DYLD_LIBRARY_PATH
11488   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11489
11490   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11491   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11492   ;;
11493
11494 dgux*)
11495   version_type=linux # correct to gnu/linux during the next big refactor
11496   need_lib_prefix=no
11497   need_version=no
11498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11499   soname_spec='${libname}${release}${shared_ext}$major'
11500   shlibpath_var=LD_LIBRARY_PATH
11501   ;;
11502
11503 freebsd* | dragonfly*)
11504   # DragonFly does not have aout.  When/if they implement a new
11505   # versioning mechanism, adjust this.
11506   if test -x /usr/bin/objformat; then
11507     objformat=`/usr/bin/objformat`
11508   else
11509     case $host_os in
11510     freebsd[23].*) objformat=aout ;;
11511     *) objformat=elf ;;
11512     esac
11513   fi
11514   version_type=freebsd-$objformat
11515   case $version_type in
11516     freebsd-elf*)
11517       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11518       need_version=no
11519       need_lib_prefix=no
11520       ;;
11521     freebsd-*)
11522       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11523       need_version=yes
11524       ;;
11525   esac
11526   shlibpath_var=LD_LIBRARY_PATH
11527   case $host_os in
11528   freebsd2.*)
11529     shlibpath_overrides_runpath=yes
11530     ;;
11531   freebsd3.[01]* | freebsdelf3.[01]*)
11532     shlibpath_overrides_runpath=yes
11533     hardcode_into_libs=yes
11534     ;;
11535   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11536   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11537     shlibpath_overrides_runpath=no
11538     hardcode_into_libs=yes
11539     ;;
11540   *) # from 4.6 on, and DragonFly
11541     shlibpath_overrides_runpath=yes
11542     hardcode_into_libs=yes
11543     ;;
11544   esac
11545   ;;
11546
11547 haiku*)
11548   version_type=linux # correct to gnu/linux during the next big refactor
11549   need_lib_prefix=no
11550   need_version=no
11551   dynamic_linker="$host_os runtime_loader"
11552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11553   soname_spec='${libname}${release}${shared_ext}$major'
11554   shlibpath_var=LIBRARY_PATH
11555   shlibpath_overrides_runpath=yes
11556   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11557   hardcode_into_libs=yes
11558   ;;
11559
11560 hpux9* | hpux10* | hpux11*)
11561   # Give a soname corresponding to the major version so that dld.sl refuses to
11562   # link against other versions.
11563   version_type=sunos
11564   need_lib_prefix=no
11565   need_version=no
11566   case $host_cpu in
11567   ia64*)
11568     shrext_cmds='.so'
11569     hardcode_into_libs=yes
11570     dynamic_linker="$host_os dld.so"
11571     shlibpath_var=LD_LIBRARY_PATH
11572     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11573     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11574     soname_spec='${libname}${release}${shared_ext}$major'
11575     if test "X$HPUX_IA64_MODE" = X32; then
11576       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11577     else
11578       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11579     fi
11580     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11581     ;;
11582   hppa*64*)
11583     shrext_cmds='.sl'
11584     hardcode_into_libs=yes
11585     dynamic_linker="$host_os dld.sl"
11586     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11587     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11588     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11589     soname_spec='${libname}${release}${shared_ext}$major'
11590     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11591     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11592     ;;
11593   *)
11594     shrext_cmds='.sl'
11595     dynamic_linker="$host_os dld.sl"
11596     shlibpath_var=SHLIB_PATH
11597     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11598     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11599     soname_spec='${libname}${release}${shared_ext}$major'
11600     ;;
11601   esac
11602   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11603   postinstall_cmds='chmod 555 $lib'
11604   # or fails outright, so override atomically:
11605   install_override_mode=555
11606   ;;
11607
11608 interix[3-9]*)
11609   version_type=linux # correct to gnu/linux during the next big refactor
11610   need_lib_prefix=no
11611   need_version=no
11612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11613   soname_spec='${libname}${release}${shared_ext}$major'
11614   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11615   shlibpath_var=LD_LIBRARY_PATH
11616   shlibpath_overrides_runpath=no
11617   hardcode_into_libs=yes
11618   ;;
11619
11620 irix5* | irix6* | nonstopux*)
11621   case $host_os in
11622     nonstopux*) version_type=nonstopux ;;
11623     *)
11624         if test "$lt_cv_prog_gnu_ld" = yes; then
11625                 version_type=linux # correct to gnu/linux during the next big refactor
11626         else
11627                 version_type=irix
11628         fi ;;
11629   esac
11630   need_lib_prefix=no
11631   need_version=no
11632   soname_spec='${libname}${release}${shared_ext}$major'
11633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11634   case $host_os in
11635   irix5* | nonstopux*)
11636     libsuff= shlibsuff=
11637     ;;
11638   *)
11639     case $LD in # libtool.m4 will add one of these switches to LD
11640     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11641       libsuff= shlibsuff= libmagic=32-bit;;
11642     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11643       libsuff=32 shlibsuff=N32 libmagic=N32;;
11644     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11645       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11646     *) libsuff= shlibsuff= libmagic=never-match;;
11647     esac
11648     ;;
11649   esac
11650   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11651   shlibpath_overrides_runpath=no
11652   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11653   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11654   hardcode_into_libs=yes
11655   ;;
11656
11657 # No shared lib support for Linux oldld, aout, or coff.
11658 linux*oldld* | linux*aout* | linux*coff*)
11659   dynamic_linker=no
11660   ;;
11661
11662 # This must be glibc/ELF.
11663 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11664   version_type=linux # correct to gnu/linux during the next big refactor
11665   need_lib_prefix=no
11666   need_version=no
11667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11668   soname_spec='${libname}${release}${shared_ext}$major'
11669   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11670   shlibpath_var=LD_LIBRARY_PATH
11671   shlibpath_overrides_runpath=no
11672
11673   # Some binutils ld are patched to set DT_RUNPATH
11674   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11675   $as_echo_n "(cached) " >&6
11676 else
11677   lt_cv_shlibpath_overrides_runpath=no
11678     save_LDFLAGS=$LDFLAGS
11679     save_libdir=$libdir
11680     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11681          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11682     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h.  */
11684
11685 int
11686 main ()
11687 {
11688
11689   ;
11690   return 0;
11691 }
11692 _ACEOF
11693 if ac_fn_c_try_link "$LINENO"; then :
11694   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11695   lt_cv_shlibpath_overrides_runpath=yes
11696 fi
11697 fi
11698 rm -f core conftest.err conftest.$ac_objext \
11699     conftest$ac_exeext conftest.$ac_ext
11700     LDFLAGS=$save_LDFLAGS
11701     libdir=$save_libdir
11702
11703 fi
11704
11705   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11706
11707   # This implies no fast_install, which is unacceptable.
11708   # Some rework will be needed to allow for fast_install
11709   # before this can be enabled.
11710   hardcode_into_libs=yes
11711
11712   # Append ld.so.conf contents to the search path
11713   if test -f /etc/ld.so.conf; then
11714     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' ' '`
11715     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11716   fi
11717
11718   # We used to test for /lib/ld.so.1 and disable shared libraries on
11719   # powerpc, because MkLinux only supported shared libraries with the
11720   # GNU dynamic linker.  Since this was broken with cross compilers,
11721   # most powerpc-linux boxes support dynamic linking these days and
11722   # people can always --disable-shared, the test was removed, and we
11723   # assume the GNU/Linux dynamic linker is in use.
11724   dynamic_linker='GNU/Linux ld.so'
11725   ;;
11726
11727 netbsdelf*-gnu)
11728   version_type=linux
11729   need_lib_prefix=no
11730   need_version=no
11731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11732   soname_spec='${libname}${release}${shared_ext}$major'
11733   shlibpath_var=LD_LIBRARY_PATH
11734   shlibpath_overrides_runpath=no
11735   hardcode_into_libs=yes
11736   dynamic_linker='NetBSD ld.elf_so'
11737   ;;
11738
11739 netbsd*)
11740   version_type=sunos
11741   need_lib_prefix=no
11742   need_version=no
11743   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11744     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11745     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11746     dynamic_linker='NetBSD (a.out) ld.so'
11747   else
11748     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11749     soname_spec='${libname}${release}${shared_ext}$major'
11750     dynamic_linker='NetBSD ld.elf_so'
11751   fi
11752   shlibpath_var=LD_LIBRARY_PATH
11753   shlibpath_overrides_runpath=yes
11754   hardcode_into_libs=yes
11755   ;;
11756
11757 newsos6)
11758   version_type=linux # correct to gnu/linux during the next big refactor
11759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760   shlibpath_var=LD_LIBRARY_PATH
11761   shlibpath_overrides_runpath=yes
11762   ;;
11763
11764 *nto* | *qnx*)
11765   version_type=qnx
11766   need_lib_prefix=no
11767   need_version=no
11768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11769   soname_spec='${libname}${release}${shared_ext}$major'
11770   shlibpath_var=LD_LIBRARY_PATH
11771   shlibpath_overrides_runpath=no
11772   hardcode_into_libs=yes
11773   dynamic_linker='ldqnx.so'
11774   ;;
11775
11776 openbsd*)
11777   version_type=sunos
11778   sys_lib_dlsearch_path_spec="/usr/lib"
11779   need_lib_prefix=no
11780   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11781   case $host_os in
11782     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11783     *)                          need_version=no  ;;
11784   esac
11785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11786   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11787   shlibpath_var=LD_LIBRARY_PATH
11788   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11789     case $host_os in
11790       openbsd2.[89] | openbsd2.[89].*)
11791         shlibpath_overrides_runpath=no
11792         ;;
11793       *)
11794         shlibpath_overrides_runpath=yes
11795         ;;
11796       esac
11797   else
11798     shlibpath_overrides_runpath=yes
11799   fi
11800   ;;
11801
11802 os2*)
11803   libname_spec='$name'
11804   shrext_cmds=".dll"
11805   need_lib_prefix=no
11806   library_names_spec='$libname${shared_ext} $libname.a'
11807   dynamic_linker='OS/2 ld.exe'
11808   shlibpath_var=LIBPATH
11809   ;;
11810
11811 osf3* | osf4* | osf5*)
11812   version_type=osf
11813   need_lib_prefix=no
11814   need_version=no
11815   soname_spec='${libname}${release}${shared_ext}$major'
11816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11817   shlibpath_var=LD_LIBRARY_PATH
11818   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11819   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11820   ;;
11821
11822 rdos*)
11823   dynamic_linker=no
11824   ;;
11825
11826 solaris*)
11827   version_type=linux # correct to gnu/linux during the next big refactor
11828   need_lib_prefix=no
11829   need_version=no
11830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11831   soname_spec='${libname}${release}${shared_ext}$major'
11832   shlibpath_var=LD_LIBRARY_PATH
11833   shlibpath_overrides_runpath=yes
11834   hardcode_into_libs=yes
11835   # ldd complains unless libraries are executable
11836   postinstall_cmds='chmod +x $lib'
11837   ;;
11838
11839 sunos4*)
11840   version_type=sunos
11841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11842   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11843   shlibpath_var=LD_LIBRARY_PATH
11844   shlibpath_overrides_runpath=yes
11845   if test "$with_gnu_ld" = yes; then
11846     need_lib_prefix=no
11847   fi
11848   need_version=yes
11849   ;;
11850
11851 sysv4 | sysv4.3*)
11852   version_type=linux # correct to gnu/linux during the next big refactor
11853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11854   soname_spec='${libname}${release}${shared_ext}$major'
11855   shlibpath_var=LD_LIBRARY_PATH
11856   case $host_vendor in
11857     sni)
11858       shlibpath_overrides_runpath=no
11859       need_lib_prefix=no
11860       runpath_var=LD_RUN_PATH
11861       ;;
11862     siemens)
11863       need_lib_prefix=no
11864       ;;
11865     motorola)
11866       need_lib_prefix=no
11867       need_version=no
11868       shlibpath_overrides_runpath=no
11869       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11870       ;;
11871   esac
11872   ;;
11873
11874 sysv4*MP*)
11875   if test -d /usr/nec ;then
11876     version_type=linux # correct to gnu/linux during the next big refactor
11877     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11878     soname_spec='$libname${shared_ext}.$major'
11879     shlibpath_var=LD_LIBRARY_PATH
11880   fi
11881   ;;
11882
11883 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11884   version_type=freebsd-elf
11885   need_lib_prefix=no
11886   need_version=no
11887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11888   soname_spec='${libname}${release}${shared_ext}$major'
11889   shlibpath_var=LD_LIBRARY_PATH
11890   shlibpath_overrides_runpath=yes
11891   hardcode_into_libs=yes
11892   if test "$with_gnu_ld" = yes; then
11893     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11894   else
11895     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11896     case $host_os in
11897       sco3.2v5*)
11898         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11899         ;;
11900     esac
11901   fi
11902   sys_lib_dlsearch_path_spec='/usr/lib'
11903   ;;
11904
11905 tpf*)
11906   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11907   version_type=linux # correct to gnu/linux during the next big refactor
11908   need_lib_prefix=no
11909   need_version=no
11910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11911   shlibpath_var=LD_LIBRARY_PATH
11912   shlibpath_overrides_runpath=no
11913   hardcode_into_libs=yes
11914   ;;
11915
11916 uts4*)
11917   version_type=linux # correct to gnu/linux during the next big refactor
11918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11919   soname_spec='${libname}${release}${shared_ext}$major'
11920   shlibpath_var=LD_LIBRARY_PATH
11921   ;;
11922
11923 *)
11924   dynamic_linker=no
11925   ;;
11926 esac
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11928 $as_echo "$dynamic_linker" >&6; }
11929 test "$dynamic_linker" = no && can_build_shared=no
11930
11931 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11932 if test "$GCC" = yes; then
11933   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11934 fi
11935
11936 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11937   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11938 fi
11939 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11940   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11941 fi
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
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12035 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12036 hardcode_action=
12037 if test -n "$hardcode_libdir_flag_spec" ||
12038    test -n "$runpath_var" ||
12039    test "X$hardcode_automatic" = "Xyes" ; then
12040
12041   # We can hardcode non-existent directories.
12042   if test "$hardcode_direct" != no &&
12043      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12044      # have to relink, otherwise we might link with an installed library
12045      # when we should be linking with a yet-to-be-installed one
12046      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12047      test "$hardcode_minus_L" != no; then
12048     # Linking always hardcodes the temporary library directory.
12049     hardcode_action=relink
12050   else
12051     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12052     hardcode_action=immediate
12053   fi
12054 else
12055   # We cannot hardcode anything, or else we can only hardcode existing
12056   # directories.
12057   hardcode_action=unsupported
12058 fi
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12060 $as_echo "$hardcode_action" >&6; }
12061
12062 if test "$hardcode_action" = relink ||
12063    test "$inherit_rpath" = yes; then
12064   # Fast installation is not supported
12065   enable_fast_install=no
12066 elif test "$shlibpath_overrides_runpath" = yes ||
12067      test "$enable_shared" = no; then
12068   # Fast installation is not necessary
12069   enable_fast_install=needless
12070 fi
12071
12072
12073
12074
12075
12076
12077   if test "x$enable_dlopen" != xyes; then
12078   enable_dlopen=unknown
12079   enable_dlopen_self=unknown
12080   enable_dlopen_self_static=unknown
12081 else
12082   lt_cv_dlopen=no
12083   lt_cv_dlopen_libs=
12084
12085   case $host_os in
12086   beos*)
12087     lt_cv_dlopen="load_add_on"
12088     lt_cv_dlopen_libs=
12089     lt_cv_dlopen_self=yes
12090     ;;
12091
12092   mingw* | pw32* | cegcc*)
12093     lt_cv_dlopen="LoadLibrary"
12094     lt_cv_dlopen_libs=
12095     ;;
12096
12097   cygwin*)
12098     lt_cv_dlopen="dlopen"
12099     lt_cv_dlopen_libs=
12100     ;;
12101
12102   darwin*)
12103   # if libdl is installed we need to link against it
12104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12105 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12106 if ${ac_cv_lib_dl_dlopen+:} false; then :
12107   $as_echo_n "(cached) " >&6
12108 else
12109   ac_check_lib_save_LIBS=$LIBS
12110 LIBS="-ldl  $LIBS"
12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112 /* end confdefs.h.  */
12113
12114 /* Override any GCC internal prototype to avoid an error.
12115    Use char because int might match the return type of a GCC
12116    builtin and then its argument prototype would still apply.  */
12117 #ifdef __cplusplus
12118 extern "C"
12119 #endif
12120 char dlopen ();
12121 int
12122 main ()
12123 {
12124 return dlopen ();
12125   ;
12126   return 0;
12127 }
12128 _ACEOF
12129 if ac_fn_c_try_link "$LINENO"; then :
12130   ac_cv_lib_dl_dlopen=yes
12131 else
12132   ac_cv_lib_dl_dlopen=no
12133 fi
12134 rm -f core conftest.err conftest.$ac_objext \
12135     conftest$ac_exeext conftest.$ac_ext
12136 LIBS=$ac_check_lib_save_LIBS
12137 fi
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12139 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12140 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12141   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12142 else
12143
12144     lt_cv_dlopen="dyld"
12145     lt_cv_dlopen_libs=
12146     lt_cv_dlopen_self=yes
12147
12148 fi
12149
12150     ;;
12151
12152   *)
12153     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12154 if test "x$ac_cv_func_shl_load" = xyes; then :
12155   lt_cv_dlopen="shl_load"
12156 else
12157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12158 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12159 if ${ac_cv_lib_dld_shl_load+:} false; then :
12160   $as_echo_n "(cached) " >&6
12161 else
12162   ac_check_lib_save_LIBS=$LIBS
12163 LIBS="-ldld  $LIBS"
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h.  */
12166
12167 /* Override any GCC internal prototype to avoid an error.
12168    Use char because int might match the return type of a GCC
12169    builtin and then its argument prototype would still apply.  */
12170 #ifdef __cplusplus
12171 extern "C"
12172 #endif
12173 char shl_load ();
12174 int
12175 main ()
12176 {
12177 return shl_load ();
12178   ;
12179   return 0;
12180 }
12181 _ACEOF
12182 if ac_fn_c_try_link "$LINENO"; then :
12183   ac_cv_lib_dld_shl_load=yes
12184 else
12185   ac_cv_lib_dld_shl_load=no
12186 fi
12187 rm -f core conftest.err conftest.$ac_objext \
12188     conftest$ac_exeext conftest.$ac_ext
12189 LIBS=$ac_check_lib_save_LIBS
12190 fi
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12192 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12193 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12194   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12195 else
12196   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12197 if test "x$ac_cv_func_dlopen" = xyes; then :
12198   lt_cv_dlopen="dlopen"
12199 else
12200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12201 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12202 if ${ac_cv_lib_dl_dlopen+:} false; then :
12203   $as_echo_n "(cached) " >&6
12204 else
12205   ac_check_lib_save_LIBS=$LIBS
12206 LIBS="-ldl  $LIBS"
12207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12208 /* end confdefs.h.  */
12209
12210 /* Override any GCC internal prototype to avoid an error.
12211    Use char because int might match the return type of a GCC
12212    builtin and then its argument prototype would still apply.  */
12213 #ifdef __cplusplus
12214 extern "C"
12215 #endif
12216 char dlopen ();
12217 int
12218 main ()
12219 {
12220 return dlopen ();
12221   ;
12222   return 0;
12223 }
12224 _ACEOF
12225 if ac_fn_c_try_link "$LINENO"; then :
12226   ac_cv_lib_dl_dlopen=yes
12227 else
12228   ac_cv_lib_dl_dlopen=no
12229 fi
12230 rm -f core conftest.err conftest.$ac_objext \
12231     conftest$ac_exeext conftest.$ac_ext
12232 LIBS=$ac_check_lib_save_LIBS
12233 fi
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12235 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12236 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12237   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12238 else
12239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12240 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12241 if ${ac_cv_lib_svld_dlopen+:} false; then :
12242   $as_echo_n "(cached) " >&6
12243 else
12244   ac_check_lib_save_LIBS=$LIBS
12245 LIBS="-lsvld  $LIBS"
12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h.  */
12248
12249 /* Override any GCC internal prototype to avoid an error.
12250    Use char because int might match the return type of a GCC
12251    builtin and then its argument prototype would still apply.  */
12252 #ifdef __cplusplus
12253 extern "C"
12254 #endif
12255 char dlopen ();
12256 int
12257 main ()
12258 {
12259 return dlopen ();
12260   ;
12261   return 0;
12262 }
12263 _ACEOF
12264 if ac_fn_c_try_link "$LINENO"; then :
12265   ac_cv_lib_svld_dlopen=yes
12266 else
12267   ac_cv_lib_svld_dlopen=no
12268 fi
12269 rm -f core conftest.err conftest.$ac_objext \
12270     conftest$ac_exeext conftest.$ac_ext
12271 LIBS=$ac_check_lib_save_LIBS
12272 fi
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12274 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12275 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12276   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12277 else
12278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12279 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12280 if ${ac_cv_lib_dld_dld_link+:} false; then :
12281   $as_echo_n "(cached) " >&6
12282 else
12283   ac_check_lib_save_LIBS=$LIBS
12284 LIBS="-ldld  $LIBS"
12285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12286 /* end confdefs.h.  */
12287
12288 /* Override any GCC internal prototype to avoid an error.
12289    Use char because int might match the return type of a GCC
12290    builtin and then its argument prototype would still apply.  */
12291 #ifdef __cplusplus
12292 extern "C"
12293 #endif
12294 char dld_link ();
12295 int
12296 main ()
12297 {
12298 return dld_link ();
12299   ;
12300   return 0;
12301 }
12302 _ACEOF
12303 if ac_fn_c_try_link "$LINENO"; then :
12304   ac_cv_lib_dld_dld_link=yes
12305 else
12306   ac_cv_lib_dld_dld_link=no
12307 fi
12308 rm -f core conftest.err conftest.$ac_objext \
12309     conftest$ac_exeext conftest.$ac_ext
12310 LIBS=$ac_check_lib_save_LIBS
12311 fi
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12313 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12314 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12315   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12316 fi
12317
12318
12319 fi
12320
12321
12322 fi
12323
12324
12325 fi
12326
12327
12328 fi
12329
12330
12331 fi
12332
12333     ;;
12334   esac
12335
12336   if test "x$lt_cv_dlopen" != xno; then
12337     enable_dlopen=yes
12338   else
12339     enable_dlopen=no
12340   fi
12341
12342   case $lt_cv_dlopen in
12343   dlopen)
12344     save_CPPFLAGS="$CPPFLAGS"
12345     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12346
12347     save_LDFLAGS="$LDFLAGS"
12348     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12349
12350     save_LIBS="$LIBS"
12351     LIBS="$lt_cv_dlopen_libs $LIBS"
12352
12353     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12354 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12355 if ${lt_cv_dlopen_self+:} false; then :
12356   $as_echo_n "(cached) " >&6
12357 else
12358           if test "$cross_compiling" = yes; then :
12359   lt_cv_dlopen_self=cross
12360 else
12361   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12362   lt_status=$lt_dlunknown
12363   cat > conftest.$ac_ext <<_LT_EOF
12364 #line $LINENO "configure"
12365 #include "confdefs.h"
12366
12367 #if HAVE_DLFCN_H
12368 #include <dlfcn.h>
12369 #endif
12370
12371 #include <stdio.h>
12372
12373 #ifdef RTLD_GLOBAL
12374 #  define LT_DLGLOBAL           RTLD_GLOBAL
12375 #else
12376 #  ifdef DL_GLOBAL
12377 #    define LT_DLGLOBAL         DL_GLOBAL
12378 #  else
12379 #    define LT_DLGLOBAL         0
12380 #  endif
12381 #endif
12382
12383 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12384    find out it does not work in some platform. */
12385 #ifndef LT_DLLAZY_OR_NOW
12386 #  ifdef RTLD_LAZY
12387 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12388 #  else
12389 #    ifdef DL_LAZY
12390 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12391 #    else
12392 #      ifdef RTLD_NOW
12393 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12394 #      else
12395 #        ifdef DL_NOW
12396 #          define LT_DLLAZY_OR_NOW      DL_NOW
12397 #        else
12398 #          define LT_DLLAZY_OR_NOW      0
12399 #        endif
12400 #      endif
12401 #    endif
12402 #  endif
12403 #endif
12404
12405 /* When -fvisbility=hidden is used, assume the code has been annotated
12406    correspondingly for the symbols needed.  */
12407 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12408 int fnord () __attribute__((visibility("default")));
12409 #endif
12410
12411 int fnord () { return 42; }
12412 int main ()
12413 {
12414   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12415   int status = $lt_dlunknown;
12416
12417   if (self)
12418     {
12419       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12420       else
12421         {
12422           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12423           else puts (dlerror ());
12424         }
12425       /* dlclose (self); */
12426     }
12427   else
12428     puts (dlerror ());
12429
12430   return status;
12431 }
12432 _LT_EOF
12433   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12434   (eval $ac_link) 2>&5
12435   ac_status=$?
12436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12437   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12438     (./conftest; exit; ) >&5 2>/dev/null
12439     lt_status=$?
12440     case x$lt_status in
12441       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12442       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12443       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12444     esac
12445   else :
12446     # compilation failed
12447     lt_cv_dlopen_self=no
12448   fi
12449 fi
12450 rm -fr conftest*
12451
12452
12453 fi
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12455 $as_echo "$lt_cv_dlopen_self" >&6; }
12456
12457     if test "x$lt_cv_dlopen_self" = xyes; then
12458       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12459       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12460 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12461 if ${lt_cv_dlopen_self_static+:} false; then :
12462   $as_echo_n "(cached) " >&6
12463 else
12464           if test "$cross_compiling" = yes; then :
12465   lt_cv_dlopen_self_static=cross
12466 else
12467   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12468   lt_status=$lt_dlunknown
12469   cat > conftest.$ac_ext <<_LT_EOF
12470 #line $LINENO "configure"
12471 #include "confdefs.h"
12472
12473 #if HAVE_DLFCN_H
12474 #include <dlfcn.h>
12475 #endif
12476
12477 #include <stdio.h>
12478
12479 #ifdef RTLD_GLOBAL
12480 #  define LT_DLGLOBAL           RTLD_GLOBAL
12481 #else
12482 #  ifdef DL_GLOBAL
12483 #    define LT_DLGLOBAL         DL_GLOBAL
12484 #  else
12485 #    define LT_DLGLOBAL         0
12486 #  endif
12487 #endif
12488
12489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12490    find out it does not work in some platform. */
12491 #ifndef LT_DLLAZY_OR_NOW
12492 #  ifdef RTLD_LAZY
12493 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12494 #  else
12495 #    ifdef DL_LAZY
12496 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12497 #    else
12498 #      ifdef RTLD_NOW
12499 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12500 #      else
12501 #        ifdef DL_NOW
12502 #          define LT_DLLAZY_OR_NOW      DL_NOW
12503 #        else
12504 #          define LT_DLLAZY_OR_NOW      0
12505 #        endif
12506 #      endif
12507 #    endif
12508 #  endif
12509 #endif
12510
12511 /* When -fvisbility=hidden is used, assume the code has been annotated
12512    correspondingly for the symbols needed.  */
12513 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12514 int fnord () __attribute__((visibility("default")));
12515 #endif
12516
12517 int fnord () { return 42; }
12518 int main ()
12519 {
12520   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12521   int status = $lt_dlunknown;
12522
12523   if (self)
12524     {
12525       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12526       else
12527         {
12528           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12529           else puts (dlerror ());
12530         }
12531       /* dlclose (self); */
12532     }
12533   else
12534     puts (dlerror ());
12535
12536   return status;
12537 }
12538 _LT_EOF
12539   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12540   (eval $ac_link) 2>&5
12541   ac_status=$?
12542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12543   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12544     (./conftest; exit; ) >&5 2>/dev/null
12545     lt_status=$?
12546     case x$lt_status in
12547       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12548       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12549       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12550     esac
12551   else :
12552     # compilation failed
12553     lt_cv_dlopen_self_static=no
12554   fi
12555 fi
12556 rm -fr conftest*
12557
12558
12559 fi
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12561 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12562     fi
12563
12564     CPPFLAGS="$save_CPPFLAGS"
12565     LDFLAGS="$save_LDFLAGS"
12566     LIBS="$save_LIBS"
12567     ;;
12568   esac
12569
12570   case $lt_cv_dlopen_self in
12571   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12572   *) enable_dlopen_self=unknown ;;
12573   esac
12574
12575   case $lt_cv_dlopen_self_static in
12576   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12577   *) enable_dlopen_self_static=unknown ;;
12578   esac
12579 fi
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597 striplib=
12598 old_striplib=
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12600 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12601 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12602   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12603   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12605 $as_echo "yes" >&6; }
12606 else
12607 # FIXME - insert some real tests, host_os isn't really good enough
12608   case $host_os in
12609   darwin*)
12610     if test -n "$STRIP" ; then
12611       striplib="$STRIP -x"
12612       old_striplib="$STRIP -S"
12613       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12614 $as_echo "yes" >&6; }
12615     else
12616       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617 $as_echo "no" >&6; }
12618     fi
12619     ;;
12620   *)
12621     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622 $as_echo "no" >&6; }
12623     ;;
12624   esac
12625 fi
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638   # Report which library types will actually be built
12639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12640 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12642 $as_echo "$can_build_shared" >&6; }
12643
12644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12645 $as_echo_n "checking whether to build shared libraries... " >&6; }
12646   test "$can_build_shared" = "no" && enable_shared=no
12647
12648   # On AIX, shared libraries and static libraries use the same namespace, and
12649   # are all built from PIC.
12650   case $host_os in
12651   aix3*)
12652     test "$enable_shared" = yes && enable_static=no
12653     if test -n "$RANLIB"; then
12654       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12655       postinstall_cmds='$RANLIB $lib'
12656     fi
12657     ;;
12658
12659   aix[4-9]*)
12660     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12661       test "$enable_shared" = yes && enable_static=no
12662     fi
12663     ;;
12664   esac
12665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12666 $as_echo "$enable_shared" >&6; }
12667
12668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12669 $as_echo_n "checking whether to build static libraries... " >&6; }
12670   # Make sure either enable_shared or enable_static is yes.
12671   test "$enable_shared" = yes || enable_static=yes
12672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12673 $as_echo "$enable_static" >&6; }
12674
12675
12676
12677
12678 fi
12679 ac_ext=c
12680 ac_cpp='$CPP $CPPFLAGS'
12681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12684
12685 CC="$lt_save_CC"
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701         ac_config_commands="$ac_config_commands libtool"
12702
12703
12704
12705
12706 # Only expand once:
12707
12708
12709
12710 ac_ext=cpp
12711 ac_cpp='$CXXCPP $CPPFLAGS'
12712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12715 if test -z "$CXX"; then
12716   if test -n "$CCC"; then
12717     CXX=$CCC
12718   else
12719     if test -n "$ac_tool_prefix"; then
12720   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12721   do
12722     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12723 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12725 $as_echo_n "checking for $ac_word... " >&6; }
12726 if ${ac_cv_prog_CXX+:} false; then :
12727   $as_echo_n "(cached) " >&6
12728 else
12729   if test -n "$CXX"; then
12730   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12731 else
12732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733 for as_dir in $PATH
12734 do
12735   IFS=$as_save_IFS
12736   test -z "$as_dir" && as_dir=.
12737     for ac_exec_ext in '' $ac_executable_extensions; do
12738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12739     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12741     break 2
12742   fi
12743 done
12744   done
12745 IFS=$as_save_IFS
12746
12747 fi
12748 fi
12749 CXX=$ac_cv_prog_CXX
12750 if test -n "$CXX"; then
12751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12752 $as_echo "$CXX" >&6; }
12753 else
12754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12755 $as_echo "no" >&6; }
12756 fi
12757
12758
12759     test -n "$CXX" && break
12760   done
12761 fi
12762 if test -z "$CXX"; then
12763   ac_ct_CXX=$CXX
12764   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12765 do
12766   # Extract the first word of "$ac_prog", so it can be a program name with args.
12767 set dummy $ac_prog; ac_word=$2
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12769 $as_echo_n "checking for $ac_word... " >&6; }
12770 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12771   $as_echo_n "(cached) " >&6
12772 else
12773   if test -n "$ac_ct_CXX"; then
12774   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12775 else
12776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12777 for as_dir in $PATH
12778 do
12779   IFS=$as_save_IFS
12780   test -z "$as_dir" && as_dir=.
12781     for ac_exec_ext in '' $ac_executable_extensions; do
12782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12783     ac_cv_prog_ac_ct_CXX="$ac_prog"
12784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12785     break 2
12786   fi
12787 done
12788   done
12789 IFS=$as_save_IFS
12790
12791 fi
12792 fi
12793 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12794 if test -n "$ac_ct_CXX"; then
12795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12796 $as_echo "$ac_ct_CXX" >&6; }
12797 else
12798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12799 $as_echo "no" >&6; }
12800 fi
12801
12802
12803   test -n "$ac_ct_CXX" && break
12804 done
12805
12806   if test "x$ac_ct_CXX" = x; then
12807     CXX="g++"
12808   else
12809     case $cross_compiling:$ac_tool_warned in
12810 yes:)
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12813 ac_tool_warned=yes ;;
12814 esac
12815     CXX=$ac_ct_CXX
12816   fi
12817 fi
12818
12819   fi
12820 fi
12821 # Provide some information about the compiler.
12822 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12823 set X $ac_compile
12824 ac_compiler=$2
12825 for ac_option in --version -v -V -qversion; do
12826   { { ac_try="$ac_compiler $ac_option >&5"
12827 case "(($ac_try" in
12828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829   *) ac_try_echo=$ac_try;;
12830 esac
12831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12832 $as_echo "$ac_try_echo"; } >&5
12833   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12834   ac_status=$?
12835   if test -s conftest.err; then
12836     sed '10a\
12837 ... rest of stderr output deleted ...
12838          10q' conftest.err >conftest.er1
12839     cat conftest.er1 >&5
12840   fi
12841   rm -f conftest.er1 conftest.err
12842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12843   test $ac_status = 0; }
12844 done
12845
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12847 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12848 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12849   $as_echo_n "(cached) " >&6
12850 else
12851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h.  */
12853
12854 int
12855 main ()
12856 {
12857 #ifndef __GNUC__
12858        choke me
12859 #endif
12860
12861   ;
12862   return 0;
12863 }
12864 _ACEOF
12865 if ac_fn_cxx_try_compile "$LINENO"; then :
12866   ac_compiler_gnu=yes
12867 else
12868   ac_compiler_gnu=no
12869 fi
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12872
12873 fi
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12875 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12876 if test $ac_compiler_gnu = yes; then
12877   GXX=yes
12878 else
12879   GXX=
12880 fi
12881 ac_test_CXXFLAGS=${CXXFLAGS+set}
12882 ac_save_CXXFLAGS=$CXXFLAGS
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12884 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12885 if ${ac_cv_prog_cxx_g+:} false; then :
12886   $as_echo_n "(cached) " >&6
12887 else
12888   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12889    ac_cxx_werror_flag=yes
12890    ac_cv_prog_cxx_g=no
12891    CXXFLAGS="-g"
12892    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h.  */
12894
12895 int
12896 main ()
12897 {
12898
12899   ;
12900   return 0;
12901 }
12902 _ACEOF
12903 if ac_fn_cxx_try_compile "$LINENO"; then :
12904   ac_cv_prog_cxx_g=yes
12905 else
12906   CXXFLAGS=""
12907       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h.  */
12909
12910 int
12911 main ()
12912 {
12913
12914   ;
12915   return 0;
12916 }
12917 _ACEOF
12918 if ac_fn_cxx_try_compile "$LINENO"; then :
12919
12920 else
12921   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12922          CXXFLAGS="-g"
12923          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h.  */
12925
12926 int
12927 main ()
12928 {
12929
12930   ;
12931   return 0;
12932 }
12933 _ACEOF
12934 if ac_fn_cxx_try_compile "$LINENO"; then :
12935   ac_cv_prog_cxx_g=yes
12936 fi
12937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12938 fi
12939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12940 fi
12941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12942    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12943 fi
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12945 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12946 if test "$ac_test_CXXFLAGS" = set; then
12947   CXXFLAGS=$ac_save_CXXFLAGS
12948 elif test $ac_cv_prog_cxx_g = yes; then
12949   if test "$GXX" = yes; then
12950     CXXFLAGS="-g -O2"
12951   else
12952     CXXFLAGS="-g"
12953   fi
12954 else
12955   if test "$GXX" = yes; then
12956     CXXFLAGS="-O2"
12957   else
12958     CXXFLAGS=
12959   fi
12960 fi
12961 ac_ext=c
12962 ac_cpp='$CPP $CPPFLAGS'
12963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12966
12967 depcc="$CXX"  am_compiler_list=
12968
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12970 $as_echo_n "checking dependency style of $depcc... " >&6; }
12971 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12972   $as_echo_n "(cached) " >&6
12973 else
12974   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12975   # We make a subdir and do the tests there.  Otherwise we can end up
12976   # making bogus files that we don't know about and never remove.  For
12977   # instance it was reported that on HP-UX the gcc test will end up
12978   # making a dummy file named `D' -- because `-MD' means `put the output
12979   # in D'.
12980   rm -rf conftest.dir
12981   mkdir conftest.dir
12982   # Copy depcomp to subdir because otherwise we won't find it if we're
12983   # using a relative directory.
12984   cp "$am_depcomp" conftest.dir
12985   cd conftest.dir
12986   # We will build objects and dependencies in a subdirectory because
12987   # it helps to detect inapplicable dependency modes.  For instance
12988   # both Tru64's cc and ICC support -MD to output dependencies as a
12989   # side effect of compilation, but ICC will put the dependencies in
12990   # the current directory while Tru64 will put them in the object
12991   # directory.
12992   mkdir sub
12993
12994   am_cv_CXX_dependencies_compiler_type=none
12995   if test "$am_compiler_list" = ""; then
12996      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12997   fi
12998   am__universal=false
12999   case " $depcc " in #(
13000      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13001      esac
13002
13003   for depmode in $am_compiler_list; do
13004     # Setup a source with many dependencies, because some compilers
13005     # like to wrap large dependency lists on column 80 (with \), and
13006     # we should not choose a depcomp mode which is confused by this.
13007     #
13008     # We need to recreate these files for each test, as the compiler may
13009     # overwrite some of them when testing with obscure command lines.
13010     # This happens at least with the AIX C compiler.
13011     : > sub/conftest.c
13012     for i in 1 2 3 4 5 6; do
13013       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13014       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13015       # Solaris 8's {/usr,}/bin/sh.
13016       touch sub/conftst$i.h
13017     done
13018     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13019
13020     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13021     # mode.  It turns out that the SunPro C++ compiler does not properly
13022     # handle `-M -o', and we need to detect this.  Also, some Intel
13023     # versions had trouble with output in subdirs
13024     am__obj=sub/conftest.${OBJEXT-o}
13025     am__minus_obj="-o $am__obj"
13026     case $depmode in
13027     gcc)
13028       # This depmode causes a compiler race in universal mode.
13029       test "$am__universal" = false || continue
13030       ;;
13031     nosideeffect)
13032       # after this tag, mechanisms are not by side-effect, so they'll
13033       # only be used when explicitly requested
13034       if test "x$enable_dependency_tracking" = xyes; then
13035         continue
13036       else
13037         break
13038       fi
13039       ;;
13040     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13041       # This compiler won't grok `-c -o', but also, the minuso test has
13042       # not run yet.  These depmodes are late enough in the game, and
13043       # so weak that their functioning should not be impacted.
13044       am__obj=conftest.${OBJEXT-o}
13045       am__minus_obj=
13046       ;;
13047     none) break ;;
13048     esac
13049     if depmode=$depmode \
13050        source=sub/conftest.c object=$am__obj \
13051        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13052        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13053          >/dev/null 2>conftest.err &&
13054        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13055        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13056        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13057        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13058       # icc doesn't choke on unknown options, it will just issue warnings
13059       # or remarks (even with -Werror).  So we grep stderr for any message
13060       # that says an option was ignored or not supported.
13061       # When given -MP, icc 7.0 and 7.1 complain thusly:
13062       #   icc: Command line warning: ignoring option '-M'; no argument required
13063       # The diagnosis changed in icc 8.0:
13064       #   icc: Command line remark: option '-MP' not supported
13065       if (grep 'ignoring option' conftest.err ||
13066           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13067         am_cv_CXX_dependencies_compiler_type=$depmode
13068         break
13069       fi
13070     fi
13071   done
13072
13073   cd ..
13074   rm -rf conftest.dir
13075 else
13076   am_cv_CXX_dependencies_compiler_type=none
13077 fi
13078
13079 fi
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13081 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13082 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13083
13084  if
13085   test "x$enable_dependency_tracking" != xno \
13086   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13087   am__fastdepCXX_TRUE=
13088   am__fastdepCXX_FALSE='#'
13089 else
13090   am__fastdepCXX_TRUE='#'
13091   am__fastdepCXX_FALSE=
13092 fi
13093
13094
13095
13096
13097 func_stripname_cnf ()
13098 {
13099   case ${2} in
13100   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13101   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13102   esac
13103 } # func_stripname_cnf
13104
13105       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13106     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13107     (test "X$CXX" != "Xg++"))) ; then
13108   ac_ext=cpp
13109 ac_cpp='$CXXCPP $CPPFLAGS'
13110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13114 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13115 if test -z "$CXXCPP"; then
13116   if ${ac_cv_prog_CXXCPP+:} false; then :
13117   $as_echo_n "(cached) " >&6
13118 else
13119       # Double quotes because CXXCPP needs to be expanded
13120     for CXXCPP in "$CXX -E" "/lib/cpp"
13121     do
13122       ac_preproc_ok=false
13123 for ac_cxx_preproc_warn_flag in '' yes
13124 do
13125   # Use a header file that comes with gcc, so configuring glibc
13126   # with a fresh cross-compiler works.
13127   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13128   # <limits.h> exists even on freestanding compilers.
13129   # On the NeXT, cc -E runs the code through the compiler's parser,
13130   # not just through cpp. "Syntax error" is here to catch this case.
13131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132 /* end confdefs.h.  */
13133 #ifdef __STDC__
13134 # include <limits.h>
13135 #else
13136 # include <assert.h>
13137 #endif
13138                      Syntax error
13139 _ACEOF
13140 if ac_fn_cxx_try_cpp "$LINENO"; then :
13141
13142 else
13143   # Broken: fails on valid input.
13144 continue
13145 fi
13146 rm -f conftest.err conftest.i conftest.$ac_ext
13147
13148   # OK, works on sane cases.  Now check whether nonexistent headers
13149   # can be detected and how.
13150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h.  */
13152 #include <ac_nonexistent.h>
13153 _ACEOF
13154 if ac_fn_cxx_try_cpp "$LINENO"; then :
13155   # Broken: success on invalid input.
13156 continue
13157 else
13158   # Passes both tests.
13159 ac_preproc_ok=:
13160 break
13161 fi
13162 rm -f conftest.err conftest.i conftest.$ac_ext
13163
13164 done
13165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13166 rm -f conftest.i conftest.err conftest.$ac_ext
13167 if $ac_preproc_ok; then :
13168   break
13169 fi
13170
13171     done
13172     ac_cv_prog_CXXCPP=$CXXCPP
13173
13174 fi
13175   CXXCPP=$ac_cv_prog_CXXCPP
13176 else
13177   ac_cv_prog_CXXCPP=$CXXCPP
13178 fi
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13180 $as_echo "$CXXCPP" >&6; }
13181 ac_preproc_ok=false
13182 for ac_cxx_preproc_warn_flag in '' yes
13183 do
13184   # Use a header file that comes with gcc, so configuring glibc
13185   # with a fresh cross-compiler works.
13186   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13187   # <limits.h> exists even on freestanding compilers.
13188   # On the NeXT, cc -E runs the code through the compiler's parser,
13189   # not just through cpp. "Syntax error" is here to catch this case.
13190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191 /* end confdefs.h.  */
13192 #ifdef __STDC__
13193 # include <limits.h>
13194 #else
13195 # include <assert.h>
13196 #endif
13197                      Syntax error
13198 _ACEOF
13199 if ac_fn_cxx_try_cpp "$LINENO"; then :
13200
13201 else
13202   # Broken: fails on valid input.
13203 continue
13204 fi
13205 rm -f conftest.err conftest.i conftest.$ac_ext
13206
13207   # OK, works on sane cases.  Now check whether nonexistent headers
13208   # can be detected and how.
13209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h.  */
13211 #include <ac_nonexistent.h>
13212 _ACEOF
13213 if ac_fn_cxx_try_cpp "$LINENO"; then :
13214   # Broken: success on invalid input.
13215 continue
13216 else
13217   # Passes both tests.
13218 ac_preproc_ok=:
13219 break
13220 fi
13221 rm -f conftest.err conftest.i conftest.$ac_ext
13222
13223 done
13224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13225 rm -f conftest.i conftest.err conftest.$ac_ext
13226 if $ac_preproc_ok; then :
13227
13228 else
13229   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13231 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13232 See \`config.log' for more details" "$LINENO" 5; }
13233 fi
13234
13235 ac_ext=c
13236 ac_cpp='$CPP $CPPFLAGS'
13237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13240
13241 else
13242   _lt_caught_CXX_error=yes
13243 fi
13244
13245 ac_ext=cpp
13246 ac_cpp='$CXXCPP $CPPFLAGS'
13247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13250
13251 archive_cmds_need_lc_CXX=no
13252 allow_undefined_flag_CXX=
13253 always_export_symbols_CXX=no
13254 archive_expsym_cmds_CXX=
13255 compiler_needs_object_CXX=no
13256 export_dynamic_flag_spec_CXX=
13257 hardcode_direct_CXX=no
13258 hardcode_direct_absolute_CXX=no
13259 hardcode_libdir_flag_spec_CXX=
13260 hardcode_libdir_separator_CXX=
13261 hardcode_minus_L_CXX=no
13262 hardcode_shlibpath_var_CXX=unsupported
13263 hardcode_automatic_CXX=no
13264 inherit_rpath_CXX=no
13265 module_cmds_CXX=
13266 module_expsym_cmds_CXX=
13267 link_all_deplibs_CXX=unknown
13268 old_archive_cmds_CXX=$old_archive_cmds
13269 reload_flag_CXX=$reload_flag
13270 reload_cmds_CXX=$reload_cmds
13271 no_undefined_flag_CXX=
13272 whole_archive_flag_spec_CXX=
13273 enable_shared_with_static_runtimes_CXX=no
13274
13275 # Source file extension for C++ test sources.
13276 ac_ext=cpp
13277
13278 # Object file extension for compiled C++ test sources.
13279 objext=o
13280 objext_CXX=$objext
13281
13282 # No sense in running all these tests if we already determined that
13283 # the CXX compiler isn't working.  Some variables (like enable_shared)
13284 # are currently assumed to apply to all compilers on this platform,
13285 # and will be corrupted by setting them based on a non-working compiler.
13286 if test "$_lt_caught_CXX_error" != yes; then
13287   # Code to be used in simple compile tests
13288   lt_simple_compile_test_code="int some_variable = 0;"
13289
13290   # Code to be used in simple link tests
13291   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13292
13293   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13294
13295
13296
13297
13298
13299
13300 # If no C compiler was specified, use CC.
13301 LTCC=${LTCC-"$CC"}
13302
13303 # If no C compiler flags were specified, use CFLAGS.
13304 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13305
13306 # Allow CC to be a program name with arguments.
13307 compiler=$CC
13308
13309
13310   # save warnings/boilerplate of simple test code
13311   ac_outfile=conftest.$ac_objext
13312 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13313 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13314 _lt_compiler_boilerplate=`cat conftest.err`
13315 $RM conftest*
13316
13317   ac_outfile=conftest.$ac_objext
13318 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13319 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13320 _lt_linker_boilerplate=`cat conftest.err`
13321 $RM -r conftest*
13322
13323
13324   # Allow CC to be a program name with arguments.
13325   lt_save_CC=$CC
13326   lt_save_CFLAGS=$CFLAGS
13327   lt_save_LD=$LD
13328   lt_save_GCC=$GCC
13329   GCC=$GXX
13330   lt_save_with_gnu_ld=$with_gnu_ld
13331   lt_save_path_LD=$lt_cv_path_LD
13332   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13333     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13334   else
13335     $as_unset lt_cv_prog_gnu_ld
13336   fi
13337   if test -n "${lt_cv_path_LDCXX+set}"; then
13338     lt_cv_path_LD=$lt_cv_path_LDCXX
13339   else
13340     $as_unset lt_cv_path_LD
13341   fi
13342   test -z "${LDCXX+set}" || LD=$LDCXX
13343   CC=${CXX-"c++"}
13344   CFLAGS=$CXXFLAGS
13345   compiler=$CC
13346   compiler_CXX=$CC
13347   for cc_temp in $compiler""; do
13348   case $cc_temp in
13349     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13350     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13351     \-*) ;;
13352     *) break;;
13353   esac
13354 done
13355 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13356
13357
13358   if test -n "$compiler"; then
13359     # We don't want -fno-exception when compiling C++ code, so set the
13360     # no_builtin_flag separately
13361     if test "$GXX" = yes; then
13362       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13363     else
13364       lt_prog_compiler_no_builtin_flag_CXX=
13365     fi
13366
13367     if test "$GXX" = yes; then
13368       # Set up default GNU C++ configuration
13369
13370
13371
13372 # Check whether --with-gnu-ld was given.
13373 if test "${with_gnu_ld+set}" = set; then :
13374   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13375 else
13376   with_gnu_ld=no
13377 fi
13378
13379 ac_prog=ld
13380 if test "$GCC" = yes; then
13381   # Check if gcc -print-prog-name=ld gives a path.
13382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13383 $as_echo_n "checking for ld used by $CC... " >&6; }
13384   case $host in
13385   *-*-mingw*)
13386     # gcc leaves a trailing carriage return which upsets mingw
13387     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13388   *)
13389     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13390   esac
13391   case $ac_prog in
13392     # Accept absolute paths.
13393     [\\/]* | ?:[\\/]*)
13394       re_direlt='/[^/][^/]*/\.\./'
13395       # Canonicalize the pathname of ld
13396       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13397       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13398         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13399       done
13400       test -z "$LD" && LD="$ac_prog"
13401       ;;
13402   "")
13403     # If it fails, then pretend we aren't using GCC.
13404     ac_prog=ld
13405     ;;
13406   *)
13407     # If it is relative, then search for the first ld in PATH.
13408     with_gnu_ld=unknown
13409     ;;
13410   esac
13411 elif test "$with_gnu_ld" = yes; then
13412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13413 $as_echo_n "checking for GNU ld... " >&6; }
13414 else
13415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13416 $as_echo_n "checking for non-GNU ld... " >&6; }
13417 fi
13418 if ${lt_cv_path_LD+:} false; then :
13419   $as_echo_n "(cached) " >&6
13420 else
13421   if test -z "$LD"; then
13422   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13423   for ac_dir in $PATH; do
13424     IFS="$lt_save_ifs"
13425     test -z "$ac_dir" && ac_dir=.
13426     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13427       lt_cv_path_LD="$ac_dir/$ac_prog"
13428       # Check to see if the program is GNU ld.  I'd rather use --version,
13429       # but apparently some variants of GNU ld only accept -v.
13430       # Break only if it was the GNU/non-GNU ld that we prefer.
13431       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13432       *GNU* | *'with BFD'*)
13433         test "$with_gnu_ld" != no && break
13434         ;;
13435       *)
13436         test "$with_gnu_ld" != yes && break
13437         ;;
13438       esac
13439     fi
13440   done
13441   IFS="$lt_save_ifs"
13442 else
13443   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13444 fi
13445 fi
13446
13447 LD="$lt_cv_path_LD"
13448 if test -n "$LD"; then
13449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13450 $as_echo "$LD" >&6; }
13451 else
13452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453 $as_echo "no" >&6; }
13454 fi
13455 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13457 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13458 if ${lt_cv_prog_gnu_ld+:} false; then :
13459   $as_echo_n "(cached) " >&6
13460 else
13461   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13462 case `$LD -v 2>&1 </dev/null` in
13463 *GNU* | *'with BFD'*)
13464   lt_cv_prog_gnu_ld=yes
13465   ;;
13466 *)
13467   lt_cv_prog_gnu_ld=no
13468   ;;
13469 esac
13470 fi
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13472 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13473 with_gnu_ld=$lt_cv_prog_gnu_ld
13474
13475
13476
13477
13478
13479
13480
13481       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13482       # archiving commands below assume that GNU ld is being used.
13483       if test "$with_gnu_ld" = yes; then
13484         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13485         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'
13486
13487         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13488         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13489
13490         # If archive_cmds runs LD, not CC, wlarc should be empty
13491         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13492         #     investigate it a little bit more. (MM)
13493         wlarc='${wl}'
13494
13495         # ancient GNU ld didn't support --whole-archive et. al.
13496         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13497           $GREP 'no-whole-archive' > /dev/null; then
13498           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13499         else
13500           whole_archive_flag_spec_CXX=
13501         fi
13502       else
13503         with_gnu_ld=no
13504         wlarc=
13505
13506         # A generic and very simple default shared library creation
13507         # command for GNU C++ for the case where it uses the native
13508         # linker, instead of GNU ld.  If possible, this setting should
13509         # overridden to take advantage of the native linker features on
13510         # the platform it is being used on.
13511         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13512       fi
13513
13514       # Commands to make compiler produce verbose output that lists
13515       # what "hidden" libraries, object files and flags are used when
13516       # linking a shared library.
13517       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13518
13519     else
13520       GXX=no
13521       with_gnu_ld=no
13522       wlarc=
13523     fi
13524
13525     # PORTME: fill in a description of your system's C++ link characteristics
13526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13527 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13528     ld_shlibs_CXX=yes
13529     case $host_os in
13530       aix3*)
13531         # FIXME: insert proper C++ library support
13532         ld_shlibs_CXX=no
13533         ;;
13534       aix[4-9]*)
13535         if test "$host_cpu" = ia64; then
13536           # On IA64, the linker does run time linking by default, so we don't
13537           # have to do anything special.
13538           aix_use_runtimelinking=no
13539           exp_sym_flag='-Bexport'
13540           no_entry_flag=""
13541         else
13542           aix_use_runtimelinking=no
13543
13544           # Test if we are trying to use run time linking or normal
13545           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13546           # need to do runtime linking.
13547           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13548             for ld_flag in $LDFLAGS; do
13549               case $ld_flag in
13550               *-brtl*)
13551                 aix_use_runtimelinking=yes
13552                 break
13553                 ;;
13554               esac
13555             done
13556             ;;
13557           esac
13558
13559           exp_sym_flag='-bexport'
13560           no_entry_flag='-bnoentry'
13561         fi
13562
13563         # When large executables or shared objects are built, AIX ld can
13564         # have problems creating the table of contents.  If linking a library
13565         # or program results in "error TOC overflow" add -mminimal-toc to
13566         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13567         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13568
13569         archive_cmds_CXX=''
13570         hardcode_direct_CXX=yes
13571         hardcode_direct_absolute_CXX=yes
13572         hardcode_libdir_separator_CXX=':'
13573         link_all_deplibs_CXX=yes
13574         file_list_spec_CXX='${wl}-f,'
13575
13576         if test "$GXX" = yes; then
13577           case $host_os in aix4.[012]|aix4.[012].*)
13578           # We only want to do this on AIX 4.2 and lower, the check
13579           # below for broken collect2 doesn't work under 4.3+
13580           collect2name=`${CC} -print-prog-name=collect2`
13581           if test -f "$collect2name" &&
13582              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13583           then
13584             # We have reworked collect2
13585             :
13586           else
13587             # We have old collect2
13588             hardcode_direct_CXX=unsupported
13589             # It fails to find uninstalled libraries when the uninstalled
13590             # path is not listed in the libpath.  Setting hardcode_minus_L
13591             # to unsupported forces relinking
13592             hardcode_minus_L_CXX=yes
13593             hardcode_libdir_flag_spec_CXX='-L$libdir'
13594             hardcode_libdir_separator_CXX=
13595           fi
13596           esac
13597           shared_flag='-shared'
13598           if test "$aix_use_runtimelinking" = yes; then
13599             shared_flag="$shared_flag "'${wl}-G'
13600           fi
13601         else
13602           # not using gcc
13603           if test "$host_cpu" = ia64; then
13604           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13605           # chokes on -Wl,-G. The following line is correct:
13606           shared_flag='-G'
13607           else
13608             if test "$aix_use_runtimelinking" = yes; then
13609               shared_flag='${wl}-G'
13610             else
13611               shared_flag='${wl}-bM:SRE'
13612             fi
13613           fi
13614         fi
13615
13616         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13617         # It seems that -bexpall does not export symbols beginning with
13618         # underscore (_), so it is better to generate a list of symbols to
13619         # export.
13620         always_export_symbols_CXX=yes
13621         if test "$aix_use_runtimelinking" = yes; then
13622           # Warning - without using the other runtime loading flags (-brtl),
13623           # -berok will link without error, but may produce a broken library.
13624           allow_undefined_flag_CXX='-berok'
13625           # Determine the default libpath from the value encoded in an empty
13626           # executable.
13627           if test "${lt_cv_aix_libpath+set}" = set; then
13628   aix_libpath=$lt_cv_aix_libpath
13629 else
13630   if ${lt_cv_aix_libpath__CXX+:} false; then :
13631   $as_echo_n "(cached) " >&6
13632 else
13633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h.  */
13635
13636 int
13637 main ()
13638 {
13639
13640   ;
13641   return 0;
13642 }
13643 _ACEOF
13644 if ac_fn_cxx_try_link "$LINENO"; then :
13645
13646   lt_aix_libpath_sed='
13647       /Import File Strings/,/^$/ {
13648           /^0/ {
13649               s/^0  *\([^ ]*\) *$/\1/
13650               p
13651           }
13652       }'
13653   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13654   # Check for a 64-bit object if we didn't find anything.
13655   if test -z "$lt_cv_aix_libpath__CXX"; then
13656     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13657   fi
13658 fi
13659 rm -f core conftest.err conftest.$ac_objext \
13660     conftest$ac_exeext conftest.$ac_ext
13661   if test -z "$lt_cv_aix_libpath__CXX"; then
13662     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13663   fi
13664
13665 fi
13666
13667   aix_libpath=$lt_cv_aix_libpath__CXX
13668 fi
13669
13670           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13671
13672           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"
13673         else
13674           if test "$host_cpu" = ia64; then
13675             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13676             allow_undefined_flag_CXX="-z nodefs"
13677             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"
13678           else
13679             # Determine the default libpath from the value encoded in an
13680             # empty executable.
13681             if test "${lt_cv_aix_libpath+set}" = set; then
13682   aix_libpath=$lt_cv_aix_libpath
13683 else
13684   if ${lt_cv_aix_libpath__CXX+:} false; then :
13685   $as_echo_n "(cached) " >&6
13686 else
13687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h.  */
13689
13690 int
13691 main ()
13692 {
13693
13694   ;
13695   return 0;
13696 }
13697 _ACEOF
13698 if ac_fn_cxx_try_link "$LINENO"; then :
13699
13700   lt_aix_libpath_sed='
13701       /Import File Strings/,/^$/ {
13702           /^0/ {
13703               s/^0  *\([^ ]*\) *$/\1/
13704               p
13705           }
13706       }'
13707   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13708   # Check for a 64-bit object if we didn't find anything.
13709   if test -z "$lt_cv_aix_libpath__CXX"; then
13710     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13711   fi
13712 fi
13713 rm -f core conftest.err conftest.$ac_objext \
13714     conftest$ac_exeext conftest.$ac_ext
13715   if test -z "$lt_cv_aix_libpath__CXX"; then
13716     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13717   fi
13718
13719 fi
13720
13721   aix_libpath=$lt_cv_aix_libpath__CXX
13722 fi
13723
13724             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13725             # Warning - without using the other run time loading flags,
13726             # -berok will link without error, but may produce a broken library.
13727             no_undefined_flag_CXX=' ${wl}-bernotok'
13728             allow_undefined_flag_CXX=' ${wl}-berok'
13729             if test "$with_gnu_ld" = yes; then
13730               # We only use this code for GNU lds that support --whole-archive.
13731               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13732             else
13733               # Exported symbols can be pulled into shared objects from archives
13734               whole_archive_flag_spec_CXX='$convenience'
13735             fi
13736             archive_cmds_need_lc_CXX=yes
13737             # This is similar to how AIX traditionally builds its shared
13738             # libraries.
13739             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'
13740           fi
13741         fi
13742         ;;
13743
13744       beos*)
13745         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13746           allow_undefined_flag_CXX=unsupported
13747           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13748           # support --undefined.  This deserves some investigation.  FIXME
13749           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13750         else
13751           ld_shlibs_CXX=no
13752         fi
13753         ;;
13754
13755       chorus*)
13756         case $cc_basename in
13757           *)
13758           # FIXME: insert proper C++ library support
13759           ld_shlibs_CXX=no
13760           ;;
13761         esac
13762         ;;
13763
13764       cygwin* | mingw* | pw32* | cegcc*)
13765         case $GXX,$cc_basename in
13766         ,cl* | no,cl*)
13767           # Native MSVC
13768           # hardcode_libdir_flag_spec is actually meaningless, as there is
13769           # no search path for DLLs.
13770           hardcode_libdir_flag_spec_CXX=' '
13771           allow_undefined_flag_CXX=unsupported
13772           always_export_symbols_CXX=yes
13773           file_list_spec_CXX='@'
13774           # Tell ltmain to make .lib files, not .a files.
13775           libext=lib
13776           # Tell ltmain to make .dll files, not .so files.
13777           shrext_cmds=".dll"
13778           # FIXME: Setting linknames here is a bad hack.
13779           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13780           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13781               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13782             else
13783               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13784             fi~
13785             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13786             linknames='
13787           # The linker will not automatically build a static lib if we build a DLL.
13788           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13789           enable_shared_with_static_runtimes_CXX=yes
13790           # Don't use ranlib
13791           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13792           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13793             lt_tool_outputfile="@TOOL_OUTPUT@"~
13794             case $lt_outputfile in
13795               *.exe|*.EXE) ;;
13796               *)
13797                 lt_outputfile="$lt_outputfile.exe"
13798                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13799                 ;;
13800             esac~
13801             func_to_tool_file "$lt_outputfile"~
13802             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13803               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13804               $RM "$lt_outputfile.manifest";
13805             fi'
13806           ;;
13807         *)
13808           # g++
13809           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13810           # as there is no search path for DLLs.
13811           hardcode_libdir_flag_spec_CXX='-L$libdir'
13812           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13813           allow_undefined_flag_CXX=unsupported
13814           always_export_symbols_CXX=no
13815           enable_shared_with_static_runtimes_CXX=yes
13816
13817           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13818             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'
13819             # If the export-symbols file already is a .def file (1st line
13820             # is EXPORTS), use it as is; otherwise, prepend...
13821             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13822               cp $export_symbols $output_objdir/$soname.def;
13823             else
13824               echo EXPORTS > $output_objdir/$soname.def;
13825               cat $export_symbols >> $output_objdir/$soname.def;
13826             fi~
13827             $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'
13828           else
13829             ld_shlibs_CXX=no
13830           fi
13831           ;;
13832         esac
13833         ;;
13834       darwin* | rhapsody*)
13835
13836
13837   archive_cmds_need_lc_CXX=no
13838   hardcode_direct_CXX=no
13839   hardcode_automatic_CXX=yes
13840   hardcode_shlibpath_var_CXX=unsupported
13841   if test "$lt_cv_ld_force_load" = "yes"; then
13842     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\"`'
13843
13844   else
13845     whole_archive_flag_spec_CXX=''
13846   fi
13847   link_all_deplibs_CXX=yes
13848   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13849   case $cc_basename in
13850      ifort*) _lt_dar_can_shared=yes ;;
13851      *) _lt_dar_can_shared=$GCC ;;
13852   esac
13853   if test "$_lt_dar_can_shared" = "yes"; then
13854     output_verbose_link_cmd=func_echo_all
13855     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}"
13856     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13857     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}"
13858     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}"
13859        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13860       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}"
13861       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}"
13862     fi
13863
13864   else
13865   ld_shlibs_CXX=no
13866   fi
13867
13868         ;;
13869
13870       dgux*)
13871         case $cc_basename in
13872           ec++*)
13873             # FIXME: insert proper C++ library support
13874             ld_shlibs_CXX=no
13875             ;;
13876           ghcx*)
13877             # Green Hills C++ Compiler
13878             # FIXME: insert proper C++ library support
13879             ld_shlibs_CXX=no
13880             ;;
13881           *)
13882             # FIXME: insert proper C++ library support
13883             ld_shlibs_CXX=no
13884             ;;
13885         esac
13886         ;;
13887
13888       freebsd2.*)
13889         # C++ shared libraries reported to be fairly broken before
13890         # switch to ELF
13891         ld_shlibs_CXX=no
13892         ;;
13893
13894       freebsd-elf*)
13895         archive_cmds_need_lc_CXX=no
13896         ;;
13897
13898       freebsd* | dragonfly*)
13899         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13900         # conventions
13901         ld_shlibs_CXX=yes
13902         ;;
13903
13904       haiku*)
13905         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13906         link_all_deplibs_CXX=yes
13907         ;;
13908
13909       hpux9*)
13910         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13911         hardcode_libdir_separator_CXX=:
13912         export_dynamic_flag_spec_CXX='${wl}-E'
13913         hardcode_direct_CXX=yes
13914         hardcode_minus_L_CXX=yes # Not in the search PATH,
13915                                              # but as the default
13916                                              # location of the library.
13917
13918         case $cc_basename in
13919           CC*)
13920             # FIXME: insert proper C++ library support
13921             ld_shlibs_CXX=no
13922             ;;
13923           aCC*)
13924             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'
13925             # Commands to make compiler produce verbose output that lists
13926             # what "hidden" libraries, object files and flags are used when
13927             # linking a shared library.
13928             #
13929             # There doesn't appear to be a way to prevent this compiler from
13930             # explicitly linking system object files so we need to strip them
13931             # from the output so that they don't get included in the library
13932             # dependencies.
13933             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"'
13934             ;;
13935           *)
13936             if test "$GXX" = yes; then
13937               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'
13938             else
13939               # FIXME: insert proper C++ library support
13940               ld_shlibs_CXX=no
13941             fi
13942             ;;
13943         esac
13944         ;;
13945
13946       hpux10*|hpux11*)
13947         if test $with_gnu_ld = no; then
13948           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13949           hardcode_libdir_separator_CXX=:
13950
13951           case $host_cpu in
13952             hppa*64*|ia64*)
13953               ;;
13954             *)
13955               export_dynamic_flag_spec_CXX='${wl}-E'
13956               ;;
13957           esac
13958         fi
13959         case $host_cpu in
13960           hppa*64*|ia64*)
13961             hardcode_direct_CXX=no
13962             hardcode_shlibpath_var_CXX=no
13963             ;;
13964           *)
13965             hardcode_direct_CXX=yes
13966             hardcode_direct_absolute_CXX=yes
13967             hardcode_minus_L_CXX=yes # Not in the search PATH,
13968                                                  # but as the default
13969                                                  # location of the library.
13970             ;;
13971         esac
13972
13973         case $cc_basename in
13974           CC*)
13975             # FIXME: insert proper C++ library support
13976             ld_shlibs_CXX=no
13977             ;;
13978           aCC*)
13979             case $host_cpu in
13980               hppa*64*)
13981                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13982                 ;;
13983               ia64*)
13984                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13985                 ;;
13986               *)
13987                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13988                 ;;
13989             esac
13990             # Commands to make compiler produce verbose output that lists
13991             # what "hidden" libraries, object files and flags are used when
13992             # linking a shared library.
13993             #
13994             # There doesn't appear to be a way to prevent this compiler from
13995             # explicitly linking system object files so we need to strip them
13996             # from the output so that they don't get included in the library
13997             # dependencies.
13998             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"'
13999             ;;
14000           *)
14001             if test "$GXX" = yes; then
14002               if test $with_gnu_ld = no; then
14003                 case $host_cpu in
14004                   hppa*64*)
14005                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14006                     ;;
14007                   ia64*)
14008                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14009                     ;;
14010                   *)
14011                     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'
14012                     ;;
14013                 esac
14014               fi
14015             else
14016               # FIXME: insert proper C++ library support
14017               ld_shlibs_CXX=no
14018             fi
14019             ;;
14020         esac
14021         ;;
14022
14023       interix[3-9]*)
14024         hardcode_direct_CXX=no
14025         hardcode_shlibpath_var_CXX=no
14026         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14027         export_dynamic_flag_spec_CXX='${wl}-E'
14028         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14029         # Instead, shared libraries are loaded at an image base (0x10000000 by
14030         # default) and relocated if they conflict, which is a slow very memory
14031         # consuming and fragmenting process.  To avoid this, we pick a random,
14032         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14033         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14034         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'
14035         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'
14036         ;;
14037       irix5* | irix6*)
14038         case $cc_basename in
14039           CC*)
14040             # SGI C++
14041             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'
14042
14043             # Archives containing C++ object files must be created using
14044             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14045             # necessary to make sure instantiated templates are included
14046             # in the archive.
14047             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14048             ;;
14049           *)
14050             if test "$GXX" = yes; then
14051               if test "$with_gnu_ld" = no; then
14052                 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'
14053               else
14054                 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'
14055               fi
14056             fi
14057             link_all_deplibs_CXX=yes
14058             ;;
14059         esac
14060         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14061         hardcode_libdir_separator_CXX=:
14062         inherit_rpath_CXX=yes
14063         ;;
14064
14065       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14066         case $cc_basename in
14067           KCC*)
14068             # Kuck and Associates, Inc. (KAI) C++ Compiler
14069
14070             # KCC will only create a shared library if the output file
14071             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14072             # to its proper name (with version) after linking.
14073             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'
14074             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'
14075             # Commands to make compiler produce verbose output that lists
14076             # what "hidden" libraries, object files and flags are used when
14077             # linking a shared library.
14078             #
14079             # There doesn't appear to be a way to prevent this compiler from
14080             # explicitly linking system object files so we need to strip them
14081             # from the output so that they don't get included in the library
14082             # dependencies.
14083             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"'
14084
14085             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14086             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14087
14088             # Archives containing C++ object files must be created using
14089             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14090             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14091             ;;
14092           icpc* | ecpc* )
14093             # Intel C++
14094             with_gnu_ld=yes
14095             # version 8.0 and above of icpc choke on multiply defined symbols
14096             # if we add $predep_objects and $postdep_objects, however 7.1 and
14097             # earlier do not add the objects themselves.
14098             case `$CC -V 2>&1` in
14099               *"Version 7."*)
14100                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14101                 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'
14102                 ;;
14103               *)  # Version 8.0 or newer
14104                 tmp_idyn=
14105                 case $host_cpu in
14106                   ia64*) tmp_idyn=' -i_dynamic';;
14107                 esac
14108                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14109                 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'
14110                 ;;
14111             esac
14112             archive_cmds_need_lc_CXX=no
14113             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14114             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14115             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14116             ;;
14117           pgCC* | pgcpp*)
14118             # Portland Group C++ compiler
14119             case `$CC -V` in
14120             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14121               prelink_cmds_CXX='tpldir=Template.dir~
14122                 rm -rf $tpldir~
14123                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14124                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14125               old_archive_cmds_CXX='tpldir=Template.dir~
14126                 rm -rf $tpldir~
14127                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14128                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14129                 $RANLIB $oldlib'
14130               archive_cmds_CXX='tpldir=Template.dir~
14131                 rm -rf $tpldir~
14132                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14133                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14134               archive_expsym_cmds_CXX='tpldir=Template.dir~
14135                 rm -rf $tpldir~
14136                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14137                 $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'
14138               ;;
14139             *) # Version 6 and above use weak symbols
14140               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14141               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'
14142               ;;
14143             esac
14144
14145             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14146             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14147             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'
14148             ;;
14149           cxx*)
14150             # Compaq C++
14151             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14152             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'
14153
14154             runpath_var=LD_RUN_PATH
14155             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14156             hardcode_libdir_separator_CXX=:
14157
14158             # Commands to make compiler produce verbose output that lists
14159             # what "hidden" libraries, object files and flags are used when
14160             # linking a shared library.
14161             #
14162             # There doesn't appear to be a way to prevent this compiler from
14163             # explicitly linking system object files so we need to strip them
14164             # from the output so that they don't get included in the library
14165             # dependencies.
14166             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'
14167             ;;
14168           xl* | mpixl* | bgxl*)
14169             # IBM XL 8.0 on PPC, with GNU ld
14170             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14171             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14172             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14173             if test "x$supports_anon_versioning" = xyes; then
14174               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14175                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14176                 echo "local: *; };" >> $output_objdir/$libname.ver~
14177                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14178             fi
14179             ;;
14180           *)
14181             case `$CC -V 2>&1 | sed 5q` in
14182             *Sun\ C*)
14183               # Sun C++ 5.9
14184               no_undefined_flag_CXX=' -zdefs'
14185               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14186               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'
14187               hardcode_libdir_flag_spec_CXX='-R$libdir'
14188               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'
14189               compiler_needs_object_CXX=yes
14190
14191               # Not sure whether something based on
14192               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14193               # would be better.
14194               output_verbose_link_cmd='func_echo_all'
14195
14196               # Archives containing C++ object files must be created using
14197               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14198               # necessary to make sure instantiated templates are included
14199               # in the archive.
14200               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14201               ;;
14202             esac
14203             ;;
14204         esac
14205         ;;
14206
14207       lynxos*)
14208         # FIXME: insert proper C++ library support
14209         ld_shlibs_CXX=no
14210         ;;
14211
14212       m88k*)
14213         # FIXME: insert proper C++ library support
14214         ld_shlibs_CXX=no
14215         ;;
14216
14217       mvs*)
14218         case $cc_basename in
14219           cxx*)
14220             # FIXME: insert proper C++ library support
14221             ld_shlibs_CXX=no
14222             ;;
14223           *)
14224             # FIXME: insert proper C++ library support
14225             ld_shlibs_CXX=no
14226             ;;
14227         esac
14228         ;;
14229
14230       netbsd*)
14231         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14232           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14233           wlarc=
14234           hardcode_libdir_flag_spec_CXX='-R$libdir'
14235           hardcode_direct_CXX=yes
14236           hardcode_shlibpath_var_CXX=no
14237         fi
14238         # Workaround some broken pre-1.5 toolchains
14239         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14240         ;;
14241
14242       *nto* | *qnx*)
14243         ld_shlibs_CXX=yes
14244         ;;
14245
14246       openbsd2*)
14247         # C++ shared libraries are fairly broken
14248         ld_shlibs_CXX=no
14249         ;;
14250
14251       openbsd*)
14252         if test -f /usr/libexec/ld.so; then
14253           hardcode_direct_CXX=yes
14254           hardcode_shlibpath_var_CXX=no
14255           hardcode_direct_absolute_CXX=yes
14256           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14257           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14258           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14259             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14260             export_dynamic_flag_spec_CXX='${wl}-E'
14261             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14262           fi
14263           output_verbose_link_cmd=func_echo_all
14264         else
14265           ld_shlibs_CXX=no
14266         fi
14267         ;;
14268
14269       osf3* | osf4* | osf5*)
14270         case $cc_basename in
14271           KCC*)
14272             # Kuck and Associates, Inc. (KAI) C++ Compiler
14273
14274             # KCC will only create a shared library if the output file
14275             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14276             # to its proper name (with version) after linking.
14277             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'
14278
14279             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14280             hardcode_libdir_separator_CXX=:
14281
14282             # Archives containing C++ object files must be created using
14283             # the KAI C++ compiler.
14284             case $host in
14285               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14286               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14287             esac
14288             ;;
14289           RCC*)
14290             # Rational C++ 2.4.1
14291             # FIXME: insert proper C++ library support
14292             ld_shlibs_CXX=no
14293             ;;
14294           cxx*)
14295             case $host in
14296               osf3*)
14297                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14298                 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'
14299                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14300                 ;;
14301               *)
14302                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14303                 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'
14304                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14305                   echo "-hidden">> $lib.exp~
14306                   $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~
14307                   $RM $lib.exp'
14308                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14309                 ;;
14310             esac
14311
14312             hardcode_libdir_separator_CXX=:
14313
14314             # Commands to make compiler produce verbose output that lists
14315             # what "hidden" libraries, object files and flags are used when
14316             # linking a shared library.
14317             #
14318             # There doesn't appear to be a way to prevent this compiler from
14319             # explicitly linking system object files so we need to strip them
14320             # from the output so that they don't get included in the library
14321             # dependencies.
14322             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"'
14323             ;;
14324           *)
14325             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14326               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14327               case $host in
14328                 osf3*)
14329                   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'
14330                   ;;
14331                 *)
14332                   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'
14333                   ;;
14334               esac
14335
14336               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14337               hardcode_libdir_separator_CXX=:
14338
14339               # Commands to make compiler produce verbose output that lists
14340               # what "hidden" libraries, object files and flags are used when
14341               # linking a shared library.
14342               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14343
14344             else
14345               # FIXME: insert proper C++ library support
14346               ld_shlibs_CXX=no
14347             fi
14348             ;;
14349         esac
14350         ;;
14351
14352       psos*)
14353         # FIXME: insert proper C++ library support
14354         ld_shlibs_CXX=no
14355         ;;
14356
14357       sunos4*)
14358         case $cc_basename in
14359           CC*)
14360             # Sun C++ 4.x
14361             # FIXME: insert proper C++ library support
14362             ld_shlibs_CXX=no
14363             ;;
14364           lcc*)
14365             # Lucid
14366             # FIXME: insert proper C++ library support
14367             ld_shlibs_CXX=no
14368             ;;
14369           *)
14370             # FIXME: insert proper C++ library support
14371             ld_shlibs_CXX=no
14372             ;;
14373         esac
14374         ;;
14375
14376       solaris*)
14377         case $cc_basename in
14378           CC* | sunCC*)
14379             # Sun C++ 4.2, 5.x and Centerline C++
14380             archive_cmds_need_lc_CXX=yes
14381             no_undefined_flag_CXX=' -zdefs'
14382             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14383             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14384               $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'
14385
14386             hardcode_libdir_flag_spec_CXX='-R$libdir'
14387             hardcode_shlibpath_var_CXX=no
14388             case $host_os in
14389               solaris2.[0-5] | solaris2.[0-5].*) ;;
14390               *)
14391                 # The compiler driver will combine and reorder linker options,
14392                 # but understands `-z linker_flag'.
14393                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14394                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14395                 ;;
14396             esac
14397             link_all_deplibs_CXX=yes
14398
14399             output_verbose_link_cmd='func_echo_all'
14400
14401             # Archives containing C++ object files must be created using
14402             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14403             # necessary to make sure instantiated templates are included
14404             # in the archive.
14405             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14406             ;;
14407           gcx*)
14408             # Green Hills C++ Compiler
14409             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14410
14411             # The C++ compiler must be used to create the archive.
14412             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14413             ;;
14414           *)
14415             # GNU C++ compiler with Solaris linker
14416             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14417               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14418               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14419                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14420                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14421                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14422
14423                 # Commands to make compiler produce verbose output that lists
14424                 # what "hidden" libraries, object files and flags are used when
14425                 # linking a shared library.
14426                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14427               else
14428                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14429                 # platform.
14430                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14431                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14432                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14433
14434                 # Commands to make compiler produce verbose output that lists
14435                 # what "hidden" libraries, object files and flags are used when
14436                 # linking a shared library.
14437                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14438               fi
14439
14440               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14441               case $host_os in
14442                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14443                 *)
14444                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14445                   ;;
14446               esac
14447             fi
14448             ;;
14449         esac
14450         ;;
14451
14452     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14453       no_undefined_flag_CXX='${wl}-z,text'
14454       archive_cmds_need_lc_CXX=no
14455       hardcode_shlibpath_var_CXX=no
14456       runpath_var='LD_RUN_PATH'
14457
14458       case $cc_basename in
14459         CC*)
14460           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14461           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14462           ;;
14463         *)
14464           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14465           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14466           ;;
14467       esac
14468       ;;
14469
14470       sysv5* | sco3.2v5* | sco5v6*)
14471         # Note: We can NOT use -z defs as we might desire, because we do not
14472         # link with -lc, and that would cause any symbols used from libc to
14473         # always be unresolved, which means just about no library would
14474         # ever link correctly.  If we're not using GNU ld we use -z text
14475         # though, which does catch some bad symbols but isn't as heavy-handed
14476         # as -z defs.
14477         no_undefined_flag_CXX='${wl}-z,text'
14478         allow_undefined_flag_CXX='${wl}-z,nodefs'
14479         archive_cmds_need_lc_CXX=no
14480         hardcode_shlibpath_var_CXX=no
14481         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14482         hardcode_libdir_separator_CXX=':'
14483         link_all_deplibs_CXX=yes
14484         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14485         runpath_var='LD_RUN_PATH'
14486
14487         case $cc_basename in
14488           CC*)
14489             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14490             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14491             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14492               '"$old_archive_cmds_CXX"
14493             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14494               '"$reload_cmds_CXX"
14495             ;;
14496           *)
14497             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14498             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14499             ;;
14500         esac
14501       ;;
14502
14503       tandem*)
14504         case $cc_basename in
14505           NCC*)
14506             # NonStop-UX NCC 3.20
14507             # FIXME: insert proper C++ library support
14508             ld_shlibs_CXX=no
14509             ;;
14510           *)
14511             # FIXME: insert proper C++ library support
14512             ld_shlibs_CXX=no
14513             ;;
14514         esac
14515         ;;
14516
14517       vxworks*)
14518         # FIXME: insert proper C++ library support
14519         ld_shlibs_CXX=no
14520         ;;
14521
14522       *)
14523         # FIXME: insert proper C++ library support
14524         ld_shlibs_CXX=no
14525         ;;
14526     esac
14527
14528     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14529 $as_echo "$ld_shlibs_CXX" >&6; }
14530     test "$ld_shlibs_CXX" = no && can_build_shared=no
14531
14532     GCC_CXX="$GXX"
14533     LD_CXX="$LD"
14534
14535     ## CAVEAT EMPTOR:
14536     ## There is no encapsulation within the following macros, do not change
14537     ## the running order or otherwise move them around unless you know exactly
14538     ## what you are doing...
14539     # Dependencies to place before and after the object being linked:
14540 predep_objects_CXX=
14541 postdep_objects_CXX=
14542 predeps_CXX=
14543 postdeps_CXX=
14544 compiler_lib_search_path_CXX=
14545
14546 cat > conftest.$ac_ext <<_LT_EOF
14547 class Foo
14548 {
14549 public:
14550   Foo (void) { a = 0; }
14551 private:
14552   int a;
14553 };
14554 _LT_EOF
14555
14556
14557 _lt_libdeps_save_CFLAGS=$CFLAGS
14558 case "$CC $CFLAGS " in #(
14559 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14560 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14561 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14562 esac
14563
14564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14565   (eval $ac_compile) 2>&5
14566   ac_status=$?
14567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14568   test $ac_status = 0; }; then
14569   # Parse the compiler output and extract the necessary
14570   # objects, libraries and library flags.
14571
14572   # Sentinel used to keep track of whether or not we are before
14573   # the conftest object file.
14574   pre_test_object_deps_done=no
14575
14576   for p in `eval "$output_verbose_link_cmd"`; do
14577     case ${prev}${p} in
14578
14579     -L* | -R* | -l*)
14580        # Some compilers place space between "-{L,R}" and the path.
14581        # Remove the space.
14582        if test $p = "-L" ||
14583           test $p = "-R"; then
14584          prev=$p
14585          continue
14586        fi
14587
14588        # Expand the sysroot to ease extracting the directories later.
14589        if test -z "$prev"; then
14590          case $p in
14591          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14592          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14593          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14594          esac
14595        fi
14596        case $p in
14597        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14598        esac
14599        if test "$pre_test_object_deps_done" = no; then
14600          case ${prev} in
14601          -L | -R)
14602            # Internal compiler library paths should come after those
14603            # provided the user.  The postdeps already come after the
14604            # user supplied libs so there is no need to process them.
14605            if test -z "$compiler_lib_search_path_CXX"; then
14606              compiler_lib_search_path_CXX="${prev}${p}"
14607            else
14608              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14609            fi
14610            ;;
14611          # The "-l" case would never come before the object being
14612          # linked, so don't bother handling this case.
14613          esac
14614        else
14615          if test -z "$postdeps_CXX"; then
14616            postdeps_CXX="${prev}${p}"
14617          else
14618            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14619          fi
14620        fi
14621        prev=
14622        ;;
14623
14624     *.lto.$objext) ;; # Ignore GCC LTO objects
14625     *.$objext)
14626        # This assumes that the test object file only shows up
14627        # once in the compiler output.
14628        if test "$p" = "conftest.$objext"; then
14629          pre_test_object_deps_done=yes
14630          continue
14631        fi
14632
14633        if test "$pre_test_object_deps_done" = no; then
14634          if test -z "$predep_objects_CXX"; then
14635            predep_objects_CXX="$p"
14636          else
14637            predep_objects_CXX="$predep_objects_CXX $p"
14638          fi
14639        else
14640          if test -z "$postdep_objects_CXX"; then
14641            postdep_objects_CXX="$p"
14642          else
14643            postdep_objects_CXX="$postdep_objects_CXX $p"
14644          fi
14645        fi
14646        ;;
14647
14648     *) ;; # Ignore the rest.
14649
14650     esac
14651   done
14652
14653   # Clean up.
14654   rm -f a.out a.exe
14655 else
14656   echo "libtool.m4: error: problem compiling CXX test program"
14657 fi
14658
14659 $RM -f confest.$objext
14660 CFLAGS=$_lt_libdeps_save_CFLAGS
14661
14662 # PORTME: override above test on systems where it is broken
14663 case $host_os in
14664 interix[3-9]*)
14665   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14666   # hack all around it, let's just trust "g++" to DTRT.
14667   predep_objects_CXX=
14668   postdep_objects_CXX=
14669   postdeps_CXX=
14670   ;;
14671
14672 linux*)
14673   case `$CC -V 2>&1 | sed 5q` in
14674   *Sun\ C*)
14675     # Sun C++ 5.9
14676
14677     # The more standards-conforming stlport4 library is
14678     # incompatible with the Cstd library. Avoid specifying
14679     # it if it's in CXXFLAGS. Ignore libCrun as
14680     # -library=stlport4 depends on it.
14681     case " $CXX $CXXFLAGS " in
14682     *" -library=stlport4 "*)
14683       solaris_use_stlport4=yes
14684       ;;
14685     esac
14686
14687     if test "$solaris_use_stlport4" != yes; then
14688       postdeps_CXX='-library=Cstd -library=Crun'
14689     fi
14690     ;;
14691   esac
14692   ;;
14693
14694 solaris*)
14695   case $cc_basename in
14696   CC* | sunCC*)
14697     # The more standards-conforming stlport4 library is
14698     # incompatible with the Cstd library. Avoid specifying
14699     # it if it's in CXXFLAGS. Ignore libCrun as
14700     # -library=stlport4 depends on it.
14701     case " $CXX $CXXFLAGS " in
14702     *" -library=stlport4 "*)
14703       solaris_use_stlport4=yes
14704       ;;
14705     esac
14706
14707     # Adding this requires a known-good setup of shared libraries for
14708     # Sun compiler versions before 5.6, else PIC objects from an old
14709     # archive will be linked into the output, leading to subtle bugs.
14710     if test "$solaris_use_stlport4" != yes; then
14711       postdeps_CXX='-library=Cstd -library=Crun'
14712     fi
14713     ;;
14714   esac
14715   ;;
14716 esac
14717
14718
14719 case " $postdeps_CXX " in
14720 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14721 esac
14722  compiler_lib_search_dirs_CXX=
14723 if test -n "${compiler_lib_search_path_CXX}"; then
14724  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14725 fi
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757     lt_prog_compiler_wl_CXX=
14758 lt_prog_compiler_pic_CXX=
14759 lt_prog_compiler_static_CXX=
14760
14761
14762   # C++ specific cases for pic, static, wl, etc.
14763   if test "$GXX" = yes; then
14764     lt_prog_compiler_wl_CXX='-Wl,'
14765     lt_prog_compiler_static_CXX='-static'
14766
14767     case $host_os in
14768     aix*)
14769       # All AIX code is PIC.
14770       if test "$host_cpu" = ia64; then
14771         # AIX 5 now supports IA64 processor
14772         lt_prog_compiler_static_CXX='-Bstatic'
14773       fi
14774       ;;
14775
14776     amigaos*)
14777       case $host_cpu in
14778       powerpc)
14779             # see comment about AmigaOS4 .so support
14780             lt_prog_compiler_pic_CXX='-fPIC'
14781         ;;
14782       m68k)
14783             # FIXME: we need at least 68020 code to build shared libraries, but
14784             # adding the `-m68020' flag to GCC prevents building anything better,
14785             # like `-m68040'.
14786             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14787         ;;
14788       esac
14789       ;;
14790
14791     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14792       # PIC is the default for these OSes.
14793       ;;
14794     mingw* | cygwin* | os2* | pw32* | cegcc*)
14795       # This hack is so that the source file can tell whether it is being
14796       # built for inclusion in a dll (and should export symbols for example).
14797       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14798       # (--disable-auto-import) libraries
14799       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14800       ;;
14801     darwin* | rhapsody*)
14802       # PIC is the default on this platform
14803       # Common symbols not allowed in MH_DYLIB files
14804       lt_prog_compiler_pic_CXX='-fno-common'
14805       ;;
14806     *djgpp*)
14807       # DJGPP does not support shared libraries at all
14808       lt_prog_compiler_pic_CXX=
14809       ;;
14810     haiku*)
14811       # PIC is the default for Haiku.
14812       # The "-static" flag exists, but is broken.
14813       lt_prog_compiler_static_CXX=
14814       ;;
14815     interix[3-9]*)
14816       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14817       # Instead, we relocate shared libraries at runtime.
14818       ;;
14819     sysv4*MP*)
14820       if test -d /usr/nec; then
14821         lt_prog_compiler_pic_CXX=-Kconform_pic
14822       fi
14823       ;;
14824     hpux*)
14825       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14826       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14827       # sets the default TLS model and affects inlining.
14828       case $host_cpu in
14829       hppa*64*)
14830         ;;
14831       *)
14832         lt_prog_compiler_pic_CXX='-fPIC'
14833         ;;
14834       esac
14835       ;;
14836     *qnx* | *nto*)
14837       # QNX uses GNU C++, but need to define -shared option too, otherwise
14838       # it will coredump.
14839       lt_prog_compiler_pic_CXX='-fPIC -shared'
14840       ;;
14841     *)
14842       lt_prog_compiler_pic_CXX='-fPIC'
14843       ;;
14844     esac
14845   else
14846     case $host_os in
14847       aix[4-9]*)
14848         # All AIX code is PIC.
14849         if test "$host_cpu" = ia64; then
14850           # AIX 5 now supports IA64 processor
14851           lt_prog_compiler_static_CXX='-Bstatic'
14852         else
14853           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14854         fi
14855         ;;
14856       chorus*)
14857         case $cc_basename in
14858         cxch68*)
14859           # Green Hills C++ Compiler
14860           # _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"
14861           ;;
14862         esac
14863         ;;
14864       mingw* | cygwin* | os2* | pw32* | cegcc*)
14865         # This hack is so that the source file can tell whether it is being
14866         # built for inclusion in a dll (and should export symbols for example).
14867         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14868         ;;
14869       dgux*)
14870         case $cc_basename in
14871           ec++*)
14872             lt_prog_compiler_pic_CXX='-KPIC'
14873             ;;
14874           ghcx*)
14875             # Green Hills C++ Compiler
14876             lt_prog_compiler_pic_CXX='-pic'
14877             ;;
14878           *)
14879             ;;
14880         esac
14881         ;;
14882       freebsd* | dragonfly*)
14883         # FreeBSD uses GNU C++
14884         ;;
14885       hpux9* | hpux10* | hpux11*)
14886         case $cc_basename in
14887           CC*)
14888             lt_prog_compiler_wl_CXX='-Wl,'
14889             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14890             if test "$host_cpu" != ia64; then
14891               lt_prog_compiler_pic_CXX='+Z'
14892             fi
14893             ;;
14894           aCC*)
14895             lt_prog_compiler_wl_CXX='-Wl,'
14896             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14897             case $host_cpu in
14898             hppa*64*|ia64*)
14899               # +Z the default
14900               ;;
14901             *)
14902               lt_prog_compiler_pic_CXX='+Z'
14903               ;;
14904             esac
14905             ;;
14906           *)
14907             ;;
14908         esac
14909         ;;
14910       interix*)
14911         # This is c89, which is MS Visual C++ (no shared libs)
14912         # Anyone wants to do a port?
14913         ;;
14914       irix5* | irix6* | nonstopux*)
14915         case $cc_basename in
14916           CC*)
14917             lt_prog_compiler_wl_CXX='-Wl,'
14918             lt_prog_compiler_static_CXX='-non_shared'
14919             # CC pic flag -KPIC is the default.
14920             ;;
14921           *)
14922             ;;
14923         esac
14924         ;;
14925       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14926         case $cc_basename in
14927           KCC*)
14928             # KAI C++ Compiler
14929             lt_prog_compiler_wl_CXX='--backend -Wl,'
14930             lt_prog_compiler_pic_CXX='-fPIC'
14931             ;;
14932           ecpc* )
14933             # old Intel C++ for x86_64 which still supported -KPIC.
14934             lt_prog_compiler_wl_CXX='-Wl,'
14935             lt_prog_compiler_pic_CXX='-KPIC'
14936             lt_prog_compiler_static_CXX='-static'
14937             ;;
14938           icpc* )
14939             # Intel C++, used to be incompatible with GCC.
14940             # ICC 10 doesn't accept -KPIC any more.
14941             lt_prog_compiler_wl_CXX='-Wl,'
14942             lt_prog_compiler_pic_CXX='-fPIC'
14943             lt_prog_compiler_static_CXX='-static'
14944             ;;
14945           pgCC* | pgcpp*)
14946             # Portland Group C++ compiler
14947             lt_prog_compiler_wl_CXX='-Wl,'
14948             lt_prog_compiler_pic_CXX='-fpic'
14949             lt_prog_compiler_static_CXX='-Bstatic'
14950             ;;
14951           cxx*)
14952             # Compaq C++
14953             # Make sure the PIC flag is empty.  It appears that all Alpha
14954             # Linux and Compaq Tru64 Unix objects are PIC.
14955             lt_prog_compiler_pic_CXX=
14956             lt_prog_compiler_static_CXX='-non_shared'
14957             ;;
14958           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14959             # IBM XL 8.0, 9.0 on PPC and BlueGene
14960             lt_prog_compiler_wl_CXX='-Wl,'
14961             lt_prog_compiler_pic_CXX='-qpic'
14962             lt_prog_compiler_static_CXX='-qstaticlink'
14963             ;;
14964           *)
14965             case `$CC -V 2>&1 | sed 5q` in
14966             *Sun\ C*)
14967               # Sun C++ 5.9
14968               lt_prog_compiler_pic_CXX='-KPIC'
14969               lt_prog_compiler_static_CXX='-Bstatic'
14970               lt_prog_compiler_wl_CXX='-Qoption ld '
14971               ;;
14972             esac
14973             ;;
14974         esac
14975         ;;
14976       lynxos*)
14977         ;;
14978       m88k*)
14979         ;;
14980       mvs*)
14981         case $cc_basename in
14982           cxx*)
14983             lt_prog_compiler_pic_CXX='-W c,exportall'
14984             ;;
14985           *)
14986             ;;
14987         esac
14988         ;;
14989       netbsd* | netbsdelf*-gnu)
14990         ;;
14991       *qnx* | *nto*)
14992         # QNX uses GNU C++, but need to define -shared option too, otherwise
14993         # it will coredump.
14994         lt_prog_compiler_pic_CXX='-fPIC -shared'
14995         ;;
14996       osf3* | osf4* | osf5*)
14997         case $cc_basename in
14998           KCC*)
14999             lt_prog_compiler_wl_CXX='--backend -Wl,'
15000             ;;
15001           RCC*)
15002             # Rational C++ 2.4.1
15003             lt_prog_compiler_pic_CXX='-pic'
15004             ;;
15005           cxx*)
15006             # Digital/Compaq C++
15007             lt_prog_compiler_wl_CXX='-Wl,'
15008             # Make sure the PIC flag is empty.  It appears that all Alpha
15009             # Linux and Compaq Tru64 Unix objects are PIC.
15010             lt_prog_compiler_pic_CXX=
15011             lt_prog_compiler_static_CXX='-non_shared'
15012             ;;
15013           *)
15014             ;;
15015         esac
15016         ;;
15017       psos*)
15018         ;;
15019       solaris*)
15020         case $cc_basename in
15021           CC* | sunCC*)
15022             # Sun C++ 4.2, 5.x and Centerline C++
15023             lt_prog_compiler_pic_CXX='-KPIC'
15024             lt_prog_compiler_static_CXX='-Bstatic'
15025             lt_prog_compiler_wl_CXX='-Qoption ld '
15026             ;;
15027           gcx*)
15028             # Green Hills C++ Compiler
15029             lt_prog_compiler_pic_CXX='-PIC'
15030             ;;
15031           *)
15032             ;;
15033         esac
15034         ;;
15035       sunos4*)
15036         case $cc_basename in
15037           CC*)
15038             # Sun C++ 4.x
15039             lt_prog_compiler_pic_CXX='-pic'
15040             lt_prog_compiler_static_CXX='-Bstatic'
15041             ;;
15042           lcc*)
15043             # Lucid
15044             lt_prog_compiler_pic_CXX='-pic'
15045             ;;
15046           *)
15047             ;;
15048         esac
15049         ;;
15050       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15051         case $cc_basename in
15052           CC*)
15053             lt_prog_compiler_wl_CXX='-Wl,'
15054             lt_prog_compiler_pic_CXX='-KPIC'
15055             lt_prog_compiler_static_CXX='-Bstatic'
15056             ;;
15057         esac
15058         ;;
15059       tandem*)
15060         case $cc_basename in
15061           NCC*)
15062             # NonStop-UX NCC 3.20
15063             lt_prog_compiler_pic_CXX='-KPIC'
15064             ;;
15065           *)
15066             ;;
15067         esac
15068         ;;
15069       vxworks*)
15070         ;;
15071       *)
15072         lt_prog_compiler_can_build_shared_CXX=no
15073         ;;
15074     esac
15075   fi
15076
15077 case $host_os in
15078   # For platforms which do not support PIC, -DPIC is meaningless:
15079   *djgpp*)
15080     lt_prog_compiler_pic_CXX=
15081     ;;
15082   *)
15083     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15084     ;;
15085 esac
15086
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15088 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15089 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15090   $as_echo_n "(cached) " >&6
15091 else
15092   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15093 fi
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15095 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15096 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15097
15098 #
15099 # Check to make sure the PIC flag actually works.
15100 #
15101 if test -n "$lt_prog_compiler_pic_CXX"; then
15102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15103 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15104 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15105   $as_echo_n "(cached) " >&6
15106 else
15107   lt_cv_prog_compiler_pic_works_CXX=no
15108    ac_outfile=conftest.$ac_objext
15109    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15110    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15111    # Insert the option either (1) after the last *FLAGS variable, or
15112    # (2) before a word containing "conftest.", or (3) at the end.
15113    # Note that $ac_compile itself does not contain backslashes and begins
15114    # with a dollar sign (not a hyphen), so the echo should work correctly.
15115    # The option is referenced via a variable to avoid confusing sed.
15116    lt_compile=`echo "$ac_compile" | $SED \
15117    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15118    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15119    -e 's:$: $lt_compiler_flag:'`
15120    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15121    (eval "$lt_compile" 2>conftest.err)
15122    ac_status=$?
15123    cat conftest.err >&5
15124    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125    if (exit $ac_status) && test -s "$ac_outfile"; then
15126      # The compiler can only warn and ignore the option if not recognized
15127      # So say no if there are warnings other than the usual output.
15128      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15129      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15130      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15131        lt_cv_prog_compiler_pic_works_CXX=yes
15132      fi
15133    fi
15134    $RM conftest*
15135
15136 fi
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15138 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15139
15140 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15141     case $lt_prog_compiler_pic_CXX in
15142      "" | " "*) ;;
15143      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15144      esac
15145 else
15146     lt_prog_compiler_pic_CXX=
15147      lt_prog_compiler_can_build_shared_CXX=no
15148 fi
15149
15150 fi
15151
15152
15153
15154
15155
15156 #
15157 # Check to make sure the static flag actually works.
15158 #
15159 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15161 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15162 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15163   $as_echo_n "(cached) " >&6
15164 else
15165   lt_cv_prog_compiler_static_works_CXX=no
15166    save_LDFLAGS="$LDFLAGS"
15167    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15168    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15169    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15170      # The linker can only warn and ignore the option if not recognized
15171      # So say no if there are warnings
15172      if test -s conftest.err; then
15173        # Append any errors to the config.log.
15174        cat conftest.err 1>&5
15175        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15176        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15177        if diff conftest.exp conftest.er2 >/dev/null; then
15178          lt_cv_prog_compiler_static_works_CXX=yes
15179        fi
15180      else
15181        lt_cv_prog_compiler_static_works_CXX=yes
15182      fi
15183    fi
15184    $RM -r conftest*
15185    LDFLAGS="$save_LDFLAGS"
15186
15187 fi
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15189 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15190
15191 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15192     :
15193 else
15194     lt_prog_compiler_static_CXX=
15195 fi
15196
15197
15198
15199
15200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15201 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15202 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15203   $as_echo_n "(cached) " >&6
15204 else
15205   lt_cv_prog_compiler_c_o_CXX=no
15206    $RM -r conftest 2>/dev/null
15207    mkdir conftest
15208    cd conftest
15209    mkdir out
15210    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15211
15212    lt_compiler_flag="-o out/conftest2.$ac_objext"
15213    # Insert the option either (1) after the last *FLAGS variable, or
15214    # (2) before a word containing "conftest.", or (3) at the end.
15215    # Note that $ac_compile itself does not contain backslashes and begins
15216    # with a dollar sign (not a hyphen), so the echo should work correctly.
15217    lt_compile=`echo "$ac_compile" | $SED \
15218    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15219    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15220    -e 's:$: $lt_compiler_flag:'`
15221    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15222    (eval "$lt_compile" 2>out/conftest.err)
15223    ac_status=$?
15224    cat out/conftest.err >&5
15225    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15227    then
15228      # The compiler can only warn and ignore the option if not recognized
15229      # So say no if there are warnings
15230      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15231      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15232      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15233        lt_cv_prog_compiler_c_o_CXX=yes
15234      fi
15235    fi
15236    chmod u+w . 2>&5
15237    $RM conftest*
15238    # SGI C++ compiler will create directory out/ii_files/ for
15239    # template instantiation
15240    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15241    $RM out/* && rmdir out
15242    cd ..
15243    $RM -r conftest
15244    $RM conftest*
15245
15246 fi
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15248 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15249
15250
15251
15252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15253 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15254 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15255   $as_echo_n "(cached) " >&6
15256 else
15257   lt_cv_prog_compiler_c_o_CXX=no
15258    $RM -r conftest 2>/dev/null
15259    mkdir conftest
15260    cd conftest
15261    mkdir out
15262    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15263
15264    lt_compiler_flag="-o out/conftest2.$ac_objext"
15265    # Insert the option either (1) after the last *FLAGS variable, or
15266    # (2) before a word containing "conftest.", or (3) at the end.
15267    # Note that $ac_compile itself does not contain backslashes and begins
15268    # with a dollar sign (not a hyphen), so the echo should work correctly.
15269    lt_compile=`echo "$ac_compile" | $SED \
15270    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15271    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15272    -e 's:$: $lt_compiler_flag:'`
15273    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15274    (eval "$lt_compile" 2>out/conftest.err)
15275    ac_status=$?
15276    cat out/conftest.err >&5
15277    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15279    then
15280      # The compiler can only warn and ignore the option if not recognized
15281      # So say no if there are warnings
15282      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15283      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15284      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15285        lt_cv_prog_compiler_c_o_CXX=yes
15286      fi
15287    fi
15288    chmod u+w . 2>&5
15289    $RM conftest*
15290    # SGI C++ compiler will create directory out/ii_files/ for
15291    # template instantiation
15292    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15293    $RM out/* && rmdir out
15294    cd ..
15295    $RM -r conftest
15296    $RM conftest*
15297
15298 fi
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15300 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15301
15302
15303
15304
15305 hard_links="nottested"
15306 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15307   # do not overwrite the value of need_locks provided by the user
15308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15309 $as_echo_n "checking if we can lock with hard links... " >&6; }
15310   hard_links=yes
15311   $RM conftest*
15312   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15313   touch conftest.a
15314   ln conftest.a conftest.b 2>&5 || hard_links=no
15315   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15317 $as_echo "$hard_links" >&6; }
15318   if test "$hard_links" = no; then
15319     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15320 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15321     need_locks=warn
15322   fi
15323 else
15324   need_locks=no
15325 fi
15326
15327
15328
15329     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15330 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15331
15332   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15333   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15334   case $host_os in
15335   aix[4-9]*)
15336     # If we're using GNU nm, then we don't want the "-C" option.
15337     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15338     # Also, AIX nm treats weak defined symbols like other global defined
15339     # symbols, whereas GNU nm marks them as "W".
15340     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15341       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'
15342     else
15343       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'
15344     fi
15345     ;;
15346   pw32*)
15347     export_symbols_cmds_CXX="$ltdll_cmds"
15348     ;;
15349   cygwin* | mingw* | cegcc*)
15350     case $cc_basename in
15351     cl*)
15352       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15353       ;;
15354     *)
15355       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'
15356       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15357       ;;
15358     esac
15359     ;;
15360   linux* | k*bsd*-gnu | gnu*)
15361     link_all_deplibs_CXX=no
15362     ;;
15363   *)
15364     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15365     ;;
15366   esac
15367
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15369 $as_echo "$ld_shlibs_CXX" >&6; }
15370 test "$ld_shlibs_CXX" = no && can_build_shared=no
15371
15372 with_gnu_ld_CXX=$with_gnu_ld
15373
15374
15375
15376
15377
15378
15379 #
15380 # Do we need to explicitly link libc?
15381 #
15382 case "x$archive_cmds_need_lc_CXX" in
15383 x|xyes)
15384   # Assume -lc should be added
15385   archive_cmds_need_lc_CXX=yes
15386
15387   if test "$enable_shared" = yes && test "$GCC" = yes; then
15388     case $archive_cmds_CXX in
15389     *'~'*)
15390       # FIXME: we may have to deal with multi-command sequences.
15391       ;;
15392     '$CC '*)
15393       # Test whether the compiler implicitly links with -lc since on some
15394       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15395       # to ld, don't add -lc before -lgcc.
15396       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15397 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15398 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15399   $as_echo_n "(cached) " >&6
15400 else
15401   $RM conftest*
15402         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15403
15404         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15405   (eval $ac_compile) 2>&5
15406   ac_status=$?
15407   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15408   test $ac_status = 0; } 2>conftest.err; then
15409           soname=conftest
15410           lib=conftest
15411           libobjs=conftest.$ac_objext
15412           deplibs=
15413           wl=$lt_prog_compiler_wl_CXX
15414           pic_flag=$lt_prog_compiler_pic_CXX
15415           compiler_flags=-v
15416           linker_flags=-v
15417           verstring=
15418           output_objdir=.
15419           libname=conftest
15420           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15421           allow_undefined_flag_CXX=
15422           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15423   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15424   ac_status=$?
15425   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15426   test $ac_status = 0; }
15427           then
15428             lt_cv_archive_cmds_need_lc_CXX=no
15429           else
15430             lt_cv_archive_cmds_need_lc_CXX=yes
15431           fi
15432           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15433         else
15434           cat conftest.err 1>&5
15435         fi
15436         $RM conftest*
15437
15438 fi
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15440 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15441       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15442       ;;
15443     esac
15444   fi
15445   ;;
15446 esac
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
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15510 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15511
15512 library_names_spec=
15513 libname_spec='lib$name'
15514 soname_spec=
15515 shrext_cmds=".so"
15516 postinstall_cmds=
15517 postuninstall_cmds=
15518 finish_cmds=
15519 finish_eval=
15520 shlibpath_var=
15521 shlibpath_overrides_runpath=unknown
15522 version_type=none
15523 dynamic_linker="$host_os ld.so"
15524 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15525 need_lib_prefix=unknown
15526 hardcode_into_libs=no
15527
15528 # when you set need_version to no, make sure it does not cause -set_version
15529 # flags to be left without arguments
15530 need_version=unknown
15531
15532 case $host_os in
15533 aix3*)
15534   version_type=linux # correct to gnu/linux during the next big refactor
15535   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15536   shlibpath_var=LIBPATH
15537
15538   # AIX 3 has no versioning support, so we append a major version to the name.
15539   soname_spec='${libname}${release}${shared_ext}$major'
15540   ;;
15541
15542 aix[4-9]*)
15543   version_type=linux # correct to gnu/linux during the next big refactor
15544   need_lib_prefix=no
15545   need_version=no
15546   hardcode_into_libs=yes
15547   if test "$host_cpu" = ia64; then
15548     # AIX 5 supports IA64
15549     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15550     shlibpath_var=LD_LIBRARY_PATH
15551   else
15552     # With GCC up to 2.95.x, collect2 would create an import file
15553     # for dependence libraries.  The import file would start with
15554     # the line `#! .'.  This would cause the generated library to
15555     # depend on `.', always an invalid library.  This was fixed in
15556     # development snapshots of GCC prior to 3.0.
15557     case $host_os in
15558       aix4 | aix4.[01] | aix4.[01].*)
15559       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15560            echo ' yes '
15561            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15562         :
15563       else
15564         can_build_shared=no
15565       fi
15566       ;;
15567     esac
15568     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15569     # soname into executable. Probably we can add versioning support to
15570     # collect2, so additional links can be useful in future.
15571     if test "$aix_use_runtimelinking" = yes; then
15572       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15573       # instead of lib<name>.a to let people know that these are not
15574       # typical AIX shared libraries.
15575       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15576     else
15577       # We preserve .a as extension for shared libraries through AIX4.2
15578       # and later when we are not doing run time linking.
15579       library_names_spec='${libname}${release}.a $libname.a'
15580       soname_spec='${libname}${release}${shared_ext}$major'
15581     fi
15582     shlibpath_var=LIBPATH
15583   fi
15584   ;;
15585
15586 amigaos*)
15587   case $host_cpu in
15588   powerpc)
15589     # Since July 2007 AmigaOS4 officially supports .so libraries.
15590     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15591     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15592     ;;
15593   m68k)
15594     library_names_spec='$libname.ixlibrary $libname.a'
15595     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15596     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'
15597     ;;
15598   esac
15599   ;;
15600
15601 beos*)
15602   library_names_spec='${libname}${shared_ext}'
15603   dynamic_linker="$host_os ld.so"
15604   shlibpath_var=LIBRARY_PATH
15605   ;;
15606
15607 bsdi[45]*)
15608   version_type=linux # correct to gnu/linux during the next big refactor
15609   need_version=no
15610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15611   soname_spec='${libname}${release}${shared_ext}$major'
15612   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15613   shlibpath_var=LD_LIBRARY_PATH
15614   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15615   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15616   # the default ld.so.conf also contains /usr/contrib/lib and
15617   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15618   # libtool to hard-code these into programs
15619   ;;
15620
15621 cygwin* | mingw* | pw32* | cegcc*)
15622   version_type=windows
15623   shrext_cmds=".dll"
15624   need_version=no
15625   need_lib_prefix=no
15626
15627   case $GCC,$cc_basename in
15628   yes,*)
15629     # gcc
15630     library_names_spec='$libname.dll.a'
15631     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15632     postinstall_cmds='base_file=`basename \${file}`~
15633       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15634       dldir=$destdir/`dirname \$dlpath`~
15635       test -d \$dldir || mkdir -p \$dldir~
15636       $install_prog $dir/$dlname \$dldir/$dlname~
15637       chmod a+x \$dldir/$dlname~
15638       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15639         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15640       fi'
15641     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15642       dlpath=$dir/\$dldll~
15643        $RM \$dlpath'
15644     shlibpath_overrides_runpath=yes
15645
15646     case $host_os in
15647     cygwin*)
15648       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15649       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15650
15651       ;;
15652     mingw* | cegcc*)
15653       # MinGW DLLs use traditional 'lib' prefix
15654       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15655       ;;
15656     pw32*)
15657       # pw32 DLLs use 'pw' prefix rather than 'lib'
15658       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15659       ;;
15660     esac
15661     dynamic_linker='Win32 ld.exe'
15662     ;;
15663
15664   *,cl*)
15665     # Native MSVC
15666     libname_spec='$name'
15667     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15668     library_names_spec='${libname}.dll.lib'
15669
15670     case $build_os in
15671     mingw*)
15672       sys_lib_search_path_spec=
15673       lt_save_ifs=$IFS
15674       IFS=';'
15675       for lt_path in $LIB
15676       do
15677         IFS=$lt_save_ifs
15678         # Let DOS variable expansion print the short 8.3 style file name.
15679         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15680         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15681       done
15682       IFS=$lt_save_ifs
15683       # Convert to MSYS style.
15684       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15685       ;;
15686     cygwin*)
15687       # Convert to unix form, then to dos form, then back to unix form
15688       # but this time dos style (no spaces!) so that the unix form looks
15689       # like /cygdrive/c/PROGRA~1:/cygdr...
15690       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15691       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15692       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15693       ;;
15694     *)
15695       sys_lib_search_path_spec="$LIB"
15696       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15697         # It is most probably a Windows format PATH.
15698         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15699       else
15700         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15701       fi
15702       # FIXME: find the short name or the path components, as spaces are
15703       # common. (e.g. "Program Files" -> "PROGRA~1")
15704       ;;
15705     esac
15706
15707     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15708     postinstall_cmds='base_file=`basename \${file}`~
15709       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15710       dldir=$destdir/`dirname \$dlpath`~
15711       test -d \$dldir || mkdir -p \$dldir~
15712       $install_prog $dir/$dlname \$dldir/$dlname'
15713     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15714       dlpath=$dir/\$dldll~
15715        $RM \$dlpath'
15716     shlibpath_overrides_runpath=yes
15717     dynamic_linker='Win32 link.exe'
15718     ;;
15719
15720   *)
15721     # Assume MSVC wrapper
15722     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15723     dynamic_linker='Win32 ld.exe'
15724     ;;
15725   esac
15726   # FIXME: first we should search . and the directory the executable is in
15727   shlibpath_var=PATH
15728   ;;
15729
15730 darwin* | rhapsody*)
15731   dynamic_linker="$host_os dyld"
15732   version_type=darwin
15733   need_lib_prefix=no
15734   need_version=no
15735   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15736   soname_spec='${libname}${release}${major}$shared_ext'
15737   shlibpath_overrides_runpath=yes
15738   shlibpath_var=DYLD_LIBRARY_PATH
15739   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15740
15741   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15742   ;;
15743
15744 dgux*)
15745   version_type=linux # correct to gnu/linux during the next big refactor
15746   need_lib_prefix=no
15747   need_version=no
15748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15749   soname_spec='${libname}${release}${shared_ext}$major'
15750   shlibpath_var=LD_LIBRARY_PATH
15751   ;;
15752
15753 freebsd* | dragonfly*)
15754   # DragonFly does not have aout.  When/if they implement a new
15755   # versioning mechanism, adjust this.
15756   if test -x /usr/bin/objformat; then
15757     objformat=`/usr/bin/objformat`
15758   else
15759     case $host_os in
15760     freebsd[23].*) objformat=aout ;;
15761     *) objformat=elf ;;
15762     esac
15763   fi
15764   version_type=freebsd-$objformat
15765   case $version_type in
15766     freebsd-elf*)
15767       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15768       need_version=no
15769       need_lib_prefix=no
15770       ;;
15771     freebsd-*)
15772       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15773       need_version=yes
15774       ;;
15775   esac
15776   shlibpath_var=LD_LIBRARY_PATH
15777   case $host_os in
15778   freebsd2.*)
15779     shlibpath_overrides_runpath=yes
15780     ;;
15781   freebsd3.[01]* | freebsdelf3.[01]*)
15782     shlibpath_overrides_runpath=yes
15783     hardcode_into_libs=yes
15784     ;;
15785   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15786   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15787     shlibpath_overrides_runpath=no
15788     hardcode_into_libs=yes
15789     ;;
15790   *) # from 4.6 on, and DragonFly
15791     shlibpath_overrides_runpath=yes
15792     hardcode_into_libs=yes
15793     ;;
15794   esac
15795   ;;
15796
15797 haiku*)
15798   version_type=linux # correct to gnu/linux during the next big refactor
15799   need_lib_prefix=no
15800   need_version=no
15801   dynamic_linker="$host_os runtime_loader"
15802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15803   soname_spec='${libname}${release}${shared_ext}$major'
15804   shlibpath_var=LIBRARY_PATH
15805   shlibpath_overrides_runpath=yes
15806   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15807   hardcode_into_libs=yes
15808   ;;
15809
15810 hpux9* | hpux10* | hpux11*)
15811   # Give a soname corresponding to the major version so that dld.sl refuses to
15812   # link against other versions.
15813   version_type=sunos
15814   need_lib_prefix=no
15815   need_version=no
15816   case $host_cpu in
15817   ia64*)
15818     shrext_cmds='.so'
15819     hardcode_into_libs=yes
15820     dynamic_linker="$host_os dld.so"
15821     shlibpath_var=LD_LIBRARY_PATH
15822     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15823     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15824     soname_spec='${libname}${release}${shared_ext}$major'
15825     if test "X$HPUX_IA64_MODE" = X32; then
15826       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15827     else
15828       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15829     fi
15830     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15831     ;;
15832   hppa*64*)
15833     shrext_cmds='.sl'
15834     hardcode_into_libs=yes
15835     dynamic_linker="$host_os dld.sl"
15836     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15837     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15838     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15839     soname_spec='${libname}${release}${shared_ext}$major'
15840     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15841     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15842     ;;
15843   *)
15844     shrext_cmds='.sl'
15845     dynamic_linker="$host_os dld.sl"
15846     shlibpath_var=SHLIB_PATH
15847     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15849     soname_spec='${libname}${release}${shared_ext}$major'
15850     ;;
15851   esac
15852   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15853   postinstall_cmds='chmod 555 $lib'
15854   # or fails outright, so override atomically:
15855   install_override_mode=555
15856   ;;
15857
15858 interix[3-9]*)
15859   version_type=linux # correct to gnu/linux during the next big refactor
15860   need_lib_prefix=no
15861   need_version=no
15862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15863   soname_spec='${libname}${release}${shared_ext}$major'
15864   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15865   shlibpath_var=LD_LIBRARY_PATH
15866   shlibpath_overrides_runpath=no
15867   hardcode_into_libs=yes
15868   ;;
15869
15870 irix5* | irix6* | nonstopux*)
15871   case $host_os in
15872     nonstopux*) version_type=nonstopux ;;
15873     *)
15874         if test "$lt_cv_prog_gnu_ld" = yes; then
15875                 version_type=linux # correct to gnu/linux during the next big refactor
15876         else
15877                 version_type=irix
15878         fi ;;
15879   esac
15880   need_lib_prefix=no
15881   need_version=no
15882   soname_spec='${libname}${release}${shared_ext}$major'
15883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15884   case $host_os in
15885   irix5* | nonstopux*)
15886     libsuff= shlibsuff=
15887     ;;
15888   *)
15889     case $LD in # libtool.m4 will add one of these switches to LD
15890     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15891       libsuff= shlibsuff= libmagic=32-bit;;
15892     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15893       libsuff=32 shlibsuff=N32 libmagic=N32;;
15894     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15895       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15896     *) libsuff= shlibsuff= libmagic=never-match;;
15897     esac
15898     ;;
15899   esac
15900   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15901   shlibpath_overrides_runpath=no
15902   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15903   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15904   hardcode_into_libs=yes
15905   ;;
15906
15907 # No shared lib support for Linux oldld, aout, or coff.
15908 linux*oldld* | linux*aout* | linux*coff*)
15909   dynamic_linker=no
15910   ;;
15911
15912 # This must be glibc/ELF.
15913 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15914   version_type=linux # correct to gnu/linux during the next big refactor
15915   need_lib_prefix=no
15916   need_version=no
15917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15918   soname_spec='${libname}${release}${shared_ext}$major'
15919   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15920   shlibpath_var=LD_LIBRARY_PATH
15921   shlibpath_overrides_runpath=no
15922
15923   # Some binutils ld are patched to set DT_RUNPATH
15924   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15925   $as_echo_n "(cached) " >&6
15926 else
15927   lt_cv_shlibpath_overrides_runpath=no
15928     save_LDFLAGS=$LDFLAGS
15929     save_libdir=$libdir
15930     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15931          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15932     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15933 /* end confdefs.h.  */
15934
15935 int
15936 main ()
15937 {
15938
15939   ;
15940   return 0;
15941 }
15942 _ACEOF
15943 if ac_fn_cxx_try_link "$LINENO"; then :
15944   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15945   lt_cv_shlibpath_overrides_runpath=yes
15946 fi
15947 fi
15948 rm -f core conftest.err conftest.$ac_objext \
15949     conftest$ac_exeext conftest.$ac_ext
15950     LDFLAGS=$save_LDFLAGS
15951     libdir=$save_libdir
15952
15953 fi
15954
15955   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15956
15957   # This implies no fast_install, which is unacceptable.
15958   # Some rework will be needed to allow for fast_install
15959   # before this can be enabled.
15960   hardcode_into_libs=yes
15961
15962   # Append ld.so.conf contents to the search path
15963   if test -f /etc/ld.so.conf; then
15964     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' ' '`
15965     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15966   fi
15967
15968   # We used to test for /lib/ld.so.1 and disable shared libraries on
15969   # powerpc, because MkLinux only supported shared libraries with the
15970   # GNU dynamic linker.  Since this was broken with cross compilers,
15971   # most powerpc-linux boxes support dynamic linking these days and
15972   # people can always --disable-shared, the test was removed, and we
15973   # assume the GNU/Linux dynamic linker is in use.
15974   dynamic_linker='GNU/Linux ld.so'
15975   ;;
15976
15977 netbsdelf*-gnu)
15978   version_type=linux
15979   need_lib_prefix=no
15980   need_version=no
15981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15982   soname_spec='${libname}${release}${shared_ext}$major'
15983   shlibpath_var=LD_LIBRARY_PATH
15984   shlibpath_overrides_runpath=no
15985   hardcode_into_libs=yes
15986   dynamic_linker='NetBSD ld.elf_so'
15987   ;;
15988
15989 netbsd*)
15990   version_type=sunos
15991   need_lib_prefix=no
15992   need_version=no
15993   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15994     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15995     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15996     dynamic_linker='NetBSD (a.out) ld.so'
15997   else
15998     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15999     soname_spec='${libname}${release}${shared_ext}$major'
16000     dynamic_linker='NetBSD ld.elf_so'
16001   fi
16002   shlibpath_var=LD_LIBRARY_PATH
16003   shlibpath_overrides_runpath=yes
16004   hardcode_into_libs=yes
16005   ;;
16006
16007 newsos6)
16008   version_type=linux # correct to gnu/linux during the next big refactor
16009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16010   shlibpath_var=LD_LIBRARY_PATH
16011   shlibpath_overrides_runpath=yes
16012   ;;
16013
16014 *nto* | *qnx*)
16015   version_type=qnx
16016   need_lib_prefix=no
16017   need_version=no
16018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019   soname_spec='${libname}${release}${shared_ext}$major'
16020   shlibpath_var=LD_LIBRARY_PATH
16021   shlibpath_overrides_runpath=no
16022   hardcode_into_libs=yes
16023   dynamic_linker='ldqnx.so'
16024   ;;
16025
16026 openbsd*)
16027   version_type=sunos
16028   sys_lib_dlsearch_path_spec="/usr/lib"
16029   need_lib_prefix=no
16030   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16031   case $host_os in
16032     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16033     *)                          need_version=no  ;;
16034   esac
16035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16036   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16037   shlibpath_var=LD_LIBRARY_PATH
16038   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16039     case $host_os in
16040       openbsd2.[89] | openbsd2.[89].*)
16041         shlibpath_overrides_runpath=no
16042         ;;
16043       *)
16044         shlibpath_overrides_runpath=yes
16045         ;;
16046       esac
16047   else
16048     shlibpath_overrides_runpath=yes
16049   fi
16050   ;;
16051
16052 os2*)
16053   libname_spec='$name'
16054   shrext_cmds=".dll"
16055   need_lib_prefix=no
16056   library_names_spec='$libname${shared_ext} $libname.a'
16057   dynamic_linker='OS/2 ld.exe'
16058   shlibpath_var=LIBPATH
16059   ;;
16060
16061 osf3* | osf4* | osf5*)
16062   version_type=osf
16063   need_lib_prefix=no
16064   need_version=no
16065   soname_spec='${libname}${release}${shared_ext}$major'
16066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16067   shlibpath_var=LD_LIBRARY_PATH
16068   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16069   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16070   ;;
16071
16072 rdos*)
16073   dynamic_linker=no
16074   ;;
16075
16076 solaris*)
16077   version_type=linux # correct to gnu/linux during the next big refactor
16078   need_lib_prefix=no
16079   need_version=no
16080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16081   soname_spec='${libname}${release}${shared_ext}$major'
16082   shlibpath_var=LD_LIBRARY_PATH
16083   shlibpath_overrides_runpath=yes
16084   hardcode_into_libs=yes
16085   # ldd complains unless libraries are executable
16086   postinstall_cmds='chmod +x $lib'
16087   ;;
16088
16089 sunos4*)
16090   version_type=sunos
16091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16092   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16093   shlibpath_var=LD_LIBRARY_PATH
16094   shlibpath_overrides_runpath=yes
16095   if test "$with_gnu_ld" = yes; then
16096     need_lib_prefix=no
16097   fi
16098   need_version=yes
16099   ;;
16100
16101 sysv4 | sysv4.3*)
16102   version_type=linux # correct to gnu/linux during the next big refactor
16103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16104   soname_spec='${libname}${release}${shared_ext}$major'
16105   shlibpath_var=LD_LIBRARY_PATH
16106   case $host_vendor in
16107     sni)
16108       shlibpath_overrides_runpath=no
16109       need_lib_prefix=no
16110       runpath_var=LD_RUN_PATH
16111       ;;
16112     siemens)
16113       need_lib_prefix=no
16114       ;;
16115     motorola)
16116       need_lib_prefix=no
16117       need_version=no
16118       shlibpath_overrides_runpath=no
16119       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16120       ;;
16121   esac
16122   ;;
16123
16124 sysv4*MP*)
16125   if test -d /usr/nec ;then
16126     version_type=linux # correct to gnu/linux during the next big refactor
16127     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16128     soname_spec='$libname${shared_ext}.$major'
16129     shlibpath_var=LD_LIBRARY_PATH
16130   fi
16131   ;;
16132
16133 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16134   version_type=freebsd-elf
16135   need_lib_prefix=no
16136   need_version=no
16137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16138   soname_spec='${libname}${release}${shared_ext}$major'
16139   shlibpath_var=LD_LIBRARY_PATH
16140   shlibpath_overrides_runpath=yes
16141   hardcode_into_libs=yes
16142   if test "$with_gnu_ld" = yes; then
16143     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16144   else
16145     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16146     case $host_os in
16147       sco3.2v5*)
16148         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16149         ;;
16150     esac
16151   fi
16152   sys_lib_dlsearch_path_spec='/usr/lib'
16153   ;;
16154
16155 tpf*)
16156   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16157   version_type=linux # correct to gnu/linux during the next big refactor
16158   need_lib_prefix=no
16159   need_version=no
16160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16161   shlibpath_var=LD_LIBRARY_PATH
16162   shlibpath_overrides_runpath=no
16163   hardcode_into_libs=yes
16164   ;;
16165
16166 uts4*)
16167   version_type=linux # correct to gnu/linux during the next big refactor
16168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16169   soname_spec='${libname}${release}${shared_ext}$major'
16170   shlibpath_var=LD_LIBRARY_PATH
16171   ;;
16172
16173 *)
16174   dynamic_linker=no
16175   ;;
16176 esac
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16178 $as_echo "$dynamic_linker" >&6; }
16179 test "$dynamic_linker" = no && can_build_shared=no
16180
16181 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16182 if test "$GCC" = yes; then
16183   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16184 fi
16185
16186 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16187   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16188 fi
16189 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16190   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16191 fi
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16231 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16232 hardcode_action_CXX=
16233 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16234    test -n "$runpath_var_CXX" ||
16235    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16236
16237   # We can hardcode non-existent directories.
16238   if test "$hardcode_direct_CXX" != no &&
16239      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16240      # have to relink, otherwise we might link with an installed library
16241      # when we should be linking with a yet-to-be-installed one
16242      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16243      test "$hardcode_minus_L_CXX" != no; then
16244     # Linking always hardcodes the temporary library directory.
16245     hardcode_action_CXX=relink
16246   else
16247     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16248     hardcode_action_CXX=immediate
16249   fi
16250 else
16251   # We cannot hardcode anything, or else we can only hardcode existing
16252   # directories.
16253   hardcode_action_CXX=unsupported
16254 fi
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16256 $as_echo "$hardcode_action_CXX" >&6; }
16257
16258 if test "$hardcode_action_CXX" = relink ||
16259    test "$inherit_rpath_CXX" = yes; then
16260   # Fast installation is not supported
16261   enable_fast_install=no
16262 elif test "$shlibpath_overrides_runpath" = yes ||
16263      test "$enable_shared" = no; then
16264   # Fast installation is not necessary
16265   enable_fast_install=needless
16266 fi
16267
16268
16269
16270
16271
16272
16273
16274   fi # test -n "$compiler"
16275
16276   CC=$lt_save_CC
16277   CFLAGS=$lt_save_CFLAGS
16278   LDCXX=$LD
16279   LD=$lt_save_LD
16280   GCC=$lt_save_GCC
16281   with_gnu_ld=$lt_save_with_gnu_ld
16282   lt_cv_path_LDCXX=$lt_cv_path_LD
16283   lt_cv_path_LD=$lt_save_path_LD
16284   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16285   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16286 fi # test "$_lt_caught_CXX_error" != yes
16287
16288 ac_ext=c
16289 ac_cpp='$CPP $CPPFLAGS'
16290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16293
16294
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16296 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16297 set x ${MAKE-make}
16298 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16299 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16300   $as_echo_n "(cached) " >&6
16301 else
16302   cat >conftest.make <<\_ACEOF
16303 SHELL = /bin/sh
16304 all:
16305         @echo '@@@%%%=$(MAKE)=@@@%%%'
16306 _ACEOF
16307 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16308 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16309   *@@@%%%=?*=@@@%%%*)
16310     eval ac_cv_prog_make_${ac_make}_set=yes;;
16311   *)
16312     eval ac_cv_prog_make_${ac_make}_set=no;;
16313 esac
16314 rm -f conftest.make
16315 fi
16316 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16318 $as_echo "yes" >&6; }
16319   SET_MAKE=
16320 else
16321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16322 $as_echo "no" >&6; }
16323   SET_MAKE="MAKE=${MAKE-make}"
16324 fi
16325
16326
16327 # Boost headers: boost/foreach.hpp is needed (1.33/Debian Etch
16328 # doesn't have it, 1.34/Ubuntu 8.10 Hardy does). 1.35 is available
16329 # as Debian Etch backport.
16330
16331
16332 # Check whether --with-boost was given.
16333 if test "${with_boost+set}" = set; then :
16334   withval=$with_boost;
16335     if test "$withval" = "no"; then
16336         want_boost="no"
16337     elif test "$withval" = "yes"; then
16338         want_boost="yes"
16339         ac_boost_path=""
16340     else
16341         want_boost="yes"
16342         ac_boost_path="$withval"
16343     fi
16344
16345 else
16346   want_boost="yes"
16347 fi
16348
16349
16350
16351
16352 # Check whether --with-boost-libdir was given.
16353 if test "${with_boost_libdir+set}" = set; then :
16354   withval=$with_boost_libdir;
16355         if test -d "$withval"
16356         then
16357                 ac_boost_lib_path="$withval"
16358         else
16359                 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
16360         fi
16361
16362 else
16363   ac_boost_lib_path=""
16364
16365 fi
16366
16367
16368 if test "x$want_boost" = "xyes"; then
16369     boost_lib_version_req=1.34
16370     boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
16371     boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
16372     boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
16373     boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
16374     if test "x$boost_lib_version_req_sub_minor" = "x" ; then
16375         boost_lib_version_req_sub_minor="0"
16376         fi
16377     WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
16378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
16379 $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
16380     succeeded=no
16381
16382                         libsubdirs="lib"
16383     ax_arch=`uname -m`
16384     if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
16385         libsubdirs="lib64 lib lib64"
16386     fi
16387
16388                 if test "$ac_boost_path" != ""; then
16389         BOOST_CPPFLAGS="-I$ac_boost_path/include"
16390         for ac_boost_path_tmp in $libsubdirs; do
16391                 if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
16392                         BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
16393                         break
16394                 fi
16395         done
16396     elif test "$cross_compiling" != yes; then
16397         for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
16398             if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
16399                 for libsubdir in $libsubdirs ; do
16400                     if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
16401                 done
16402                 BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
16403                 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
16404                 break;
16405             fi
16406         done
16407     fi
16408
16409             if test "$ac_boost_lib_path" != ""; then
16410        BOOST_LDFLAGS="-L$ac_boost_lib_path"
16411     fi
16412
16413     CPPFLAGS_SAVED="$CPPFLAGS"
16414     CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16415     export CPPFLAGS
16416
16417     LDFLAGS_SAVED="$LDFLAGS"
16418     LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
16419     export LDFLAGS
16420
16421
16422     ac_ext=cpp
16423 ac_cpp='$CXXCPP $CPPFLAGS'
16424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16427
16428         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16429 /* end confdefs.h.  */
16430
16431     #include <boost/version.hpp>
16432
16433 int
16434 main ()
16435 {
16436
16437     #if BOOST_VERSION >= $WANT_BOOST_VERSION
16438     // Everything is okay
16439     #else
16440     #  error Boost version is too old
16441     #endif
16442
16443   ;
16444   return 0;
16445 }
16446 _ACEOF
16447 if ac_fn_cxx_try_compile "$LINENO"; then :
16448
16449         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16450 $as_echo "yes" >&6; }
16451     succeeded=yes
16452     found_system=yes
16453
16454 fi
16455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16456     ac_ext=c
16457 ac_cpp='$CPP $CPPFLAGS'
16458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16461
16462
16463
16464
16465             if test "x$succeeded" != "xyes"; then
16466         _version=0
16467         if test "$ac_boost_path" != ""; then
16468             if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
16469                 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
16470                     _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
16471                     V_CHECK=`expr $_version_tmp \> $_version`
16472                     if test "$V_CHECK" = "1" ; then
16473                         _version=$_version_tmp
16474                     fi
16475                     VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
16476                     BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
16477                 done
16478             fi
16479         else
16480             if test "$cross_compiling" != yes; then
16481                 for ac_boost_path in /usr /usr/local /opt /opt/local ; do
16482                     if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
16483                         for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
16484                             _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
16485                             V_CHECK=`expr $_version_tmp \> $_version`
16486                             if test "$V_CHECK" = "1" ; then
16487                                 _version=$_version_tmp
16488                                 best_path=$ac_boost_path
16489                             fi
16490                         done
16491                     fi
16492                 done
16493
16494                 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
16495                 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
16496                 if test "$ac_boost_lib_path" = ""; then
16497                     for libsubdir in $libsubdirs ; do
16498                         if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
16499                     done
16500                     BOOST_LDFLAGS="-L$best_path/$libsubdir"
16501                 fi
16502             fi
16503
16504             if test "x$BOOST_ROOT" != "x"; then
16505                 for libsubdir in $libsubdirs ; do
16506                     if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
16507                 done
16508                 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
16509                     version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
16510                     stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
16511                         stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
16512                     V_CHECK=`expr $stage_version_shorten \>\= $_version`
16513                     if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
16514                         { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
16515 $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
16516                         BOOST_CPPFLAGS="-I$BOOST_ROOT"
16517                         BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
16518                     fi
16519                 fi
16520             fi
16521         fi
16522
16523         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16524         export CPPFLAGS
16525         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
16526         export LDFLAGS
16527
16528         ac_ext=cpp
16529 ac_cpp='$CXXCPP $CPPFLAGS'
16530 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16531 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16532 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16533
16534             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16535 /* end confdefs.h.  */
16536
16537         #include <boost/version.hpp>
16538
16539 int
16540 main ()
16541 {
16542
16543         #if BOOST_VERSION >= $WANT_BOOST_VERSION
16544         // Everything is okay
16545         #else
16546         #  error Boost version is too old
16547         #endif
16548
16549   ;
16550   return 0;
16551 }
16552 _ACEOF
16553 if ac_fn_cxx_try_compile "$LINENO"; then :
16554
16555             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16556 $as_echo "yes" >&6; }
16557         succeeded=yes
16558         found_system=yes
16559
16560 fi
16561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16562         ac_ext=c
16563 ac_cpp='$CPP $CPPFLAGS'
16564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16567
16568     fi
16569
16570     if test "$succeeded" != "yes" ; then
16571         if test "$_version" = "0" ; then
16572             { $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
16573 $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;}
16574         else
16575             { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
16576 $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
16577         fi
16578         # execute ACTION-IF-NOT-FOUND (if present):
16579         :
16580     else
16581
16582
16583
16584 $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
16585
16586         # execute ACTION-IF-FOUND (if present):
16587         :
16588     fi
16589
16590     CPPFLAGS="$CPPFLAGS_SAVED"
16591     LDFLAGS="$LDFLAGS_SAVED"
16592 fi
16593
16594
16595
16596 # TODO: Fix code to pass with -pedantic -Wextra.
16597 # -Wno-unknown-pragmas needed because icalstrdup.h
16598 # currently uses the "#pragma }" trick. Should remove that.
16599 # Fix code to work without deprecated methods: G GDK GDK_PIXBUF CAIRO PANGO GTK
16600 # Check whether --enable-warnings was given.
16601 if test "${enable_warnings+set}" = set; then :
16602   enableval=$enable_warnings; dk_enable_warnings=$enableval
16603 else
16604   dk_enable_warnings=min
16605 fi
16606
16607 dk_lang=
16608 case $ac_compile in
16609   *'$CXXFLAGS '*)
16610     dk_lang='C++'
16611     dk_cc=$CXX
16612     dk_conftest=conftest.${ac_ext-cc}
16613     ;;
16614   *'$CFLAGS '*)
16615     dk_lang=C
16616     dk_cc=$CC
16617     dk_conftest=conftest.${ac_ext-c}
16618     ;;
16619 esac
16620
16621 if test "x$dk_lang" != x; then :
16622
16623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which $dk_lang compiler warning flags to use" >&5
16624 $as_echo_n "checking which $dk_lang compiler warning flags to use... " >&6; }
16625
16626   case $dk_enable_warnings in
16627     no) dk_warning_flags=;;
16628     max) dk_warning_flags="-Wall -Wno-unknown-pragmas -Wno-deprecated-declarations";;
16629     fatal) dk_warning_flags="-Wall -Wno-unknown-pragmas -Wno-deprecated-declarations -Werror";;
16630     *) dk_warning_flags="-Wall -Wno-unknown-pragmas -Wno-deprecated-declarations";;
16631   esac
16632
16633   dk_deprecation_flags=
16634   dk_tested_flags=
16635
16636   if test "x$dk_warning_flags" != x; then :
16637
16638     # Keep in mind that the dummy source must be devoid of any
16639     # problems that might cause diagnostics.
16640     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641 /* end confdefs.h.  */
16642 int main(int argc, char** argv) { return (argv != 0) ? argc : 0; }
16643 _ACEOF
16644
16645     for dk_flag in $dk_warning_flags
16646     do
16647       # Test whether the compiler accepts the flag. GCC doesn't bail
16648       # out when given an unsupported flag but prints a warning, so
16649       # check the compiler output instead.
16650       dk_cc_out=`$dk_cc $dk_tested_flags $dk_flag -c "$dk_conftest" 2>&1 || echo failed`
16651       rm -f "conftest.${OBJEXT-o}"
16652
16653       if test "x$dk_cc_out" = x; then :
16654
16655         if test "x$dk_tested_flags" = x; then :
16656   dk_tested_flags=$dk_flag
16657 else
16658   dk_tested_flags="$dk_tested_flags $dk_flag"
16659 fi
16660
16661 else
16662
16663         echo "$dk_cc_out" >&5
16664
16665 fi
16666     done
16667
16668     rm -f "$dk_conftest"
16669
16670 fi
16671   dk_all_flags=$dk_deprecation_flags$dk_tested_flags
16672   SYNCEVO_WFLAGS=$dk_all_flags
16673
16674
16675   test "x$dk_all_flags" != x || dk_all_flags=none
16676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dk_all_flags" >&5
16677 $as_echo "$dk_all_flags" >&6; }
16678
16679 fi
16680
16681
16682 DEVICE_TYPE=workstation
16683
16684
16685 # Check whether --with-synthesis-src was given.
16686 if test "${with_synthesis_src+set}" = set; then :
16687   withval=$with_synthesis_src; SYNTHESISSRC="$withval"
16688              test "$SYNTHESISSRC" != "yes" || as_fn_error $? "--with-synthesis-src requires a parameter (base directory, svn URL or git URL)" "$LINENO" 5
16689 else
16690   SYNTHESISSRC="$SYNTHESISSRC_DEF"; REVISION="syncevolution-0.9"
16691 fi
16692
16693
16694
16695 # Check whether --with-syncml-engines was given.
16696 if test "${with_syncml_engines+set}" = set; then :
16697   withval=$with_syncml_engines; SYNCML_ENGINES="$withval"
16698 else
16699   SYNCML_ENGINES=both
16700 fi
16701
16702
16703 case $SYNCML_ENGINES in both|client)
16704 $as_echo "#define ENABLE_SYNCML_CLIENT 1" >>confdefs.h
16705 ;; esac
16706 case $SYNCML_ENGINES in both|server)
16707 $as_echo "#define ENABLE_SYNCML_SERVER 1" >>confdefs.h
16708 ;; esac
16709 case $SYNCML_ENGINES in both|server|client) true;; *) as_fn_error $? "Invalid value for --with-syncml-engines: $SYNCML_ENGINES" "$LINENO" 5;; esac
16710
16711
16712 # Check whether --with-synthesis-username was given.
16713 if test "${with_synthesis_username+set}" = set; then :
16714   withval=$with_synthesis_username; USERNAME="$withval"
16715 else
16716   USERNAME="guest"
16717 fi
16718
16719
16720
16721 # Check whether --with-synthesis-revision was given.
16722 if test "${with_synthesis_revision+set}" = set; then :
16723   withval=$with_synthesis_revision; REVISION="$withval"
16724 fi
16725
16726
16727 # Check whether --enable-shared was given.
16728 if test "${enable_shared+set}" = set; then :
16729   enableval=$enable_shared; enable_shared="$enableval"
16730 else
16731   enable_shared="no"
16732 fi
16733
16734
16735 # Check whether --enable-static was given.
16736 if test "${enable_static+set}" = set; then :
16737   enableval=$enable_static; enable_static="$enableval"
16738 else
16739   enable_static="no"
16740 fi
16741
16742
16743 # Check whether --enable-unit-tests was given.
16744 if test "${enable_unit_tests+set}" = set; then :
16745   enableval=$enable_unit_tests; enable_unit_tests="$enableval"
16746 else
16747   enable_unit_tests="no"
16748 fi
16749
16750 # Check whether --enable-integration-tests was given.
16751 if test "${enable_integration_tests+set}" = set; then :
16752   enableval=$enable_integration_tests; enable_integration_tests="$enableval"
16753 else
16754   enable_integration_tests="no"
16755 fi
16756
16757
16758 # Check whether --enable-static-cxx was given.
16759 if test "${enable_static_cxx+set}" = set; then :
16760   enableval=$enable_static_cxx; enable_static_cxx="$enableval"
16761 else
16762   enable_static_cxx="no"
16763 fi
16764
16765
16766 # Check whether --enable-evolution-compatibility was given.
16767 if test "${enable_evolution_compatibility+set}" = set; then :
16768   enableval=$enable_evolution_compatibility; enable_evolution_compatibility="$enableval"
16769 else
16770   enable_evolution_compatibility="no"
16771 fi
16772
16773
16774 # Check whether --enable-internal-icaltz was given.
16775 if test "${enable_internal_icaltz+set}" = set; then :
16776   enableval=$enable_internal_icaltz; enable_icaltz_util="$enableval"
16777                test "$enable_icaltz_util" = "yes" || test "$enable_icaltz_util" = "no" || as_fn_error $? "invalid value of --disable-internal-icaltz: $enableval" "$LINENO" 5
16778 else
16779   enable_icaltz_util="yes"
16780 fi
16781
16782 if test "$enable_icaltz_util" = "yes"; then
16783
16784 $as_echo "#define ENABLE_ICALTZ_UTIL 1" >>confdefs.h
16785
16786
16787 $as_echo "#define DISABLE_ICALTZUTIL_GET_ZONE_DIRECTORY 1" >>confdefs.h
16788
16789 fi
16790  if test "$enable_icaltz_util" = "yes"; then
16791   ENABLE_ICALTZ_UTIL_TRUE=
16792   ENABLE_ICALTZ_UTIL_FALSE='#'
16793 else
16794   ENABLE_ICALTZ_UTIL_TRUE='#'
16795   ENABLE_ICALTZ_UTIL_FALSE=
16796 fi
16797
16798
16799 # Check whether --enable-developer-mode was given.
16800 if test "${enable_developer_mode+set}" = set; then :
16801   enableval=$enable_developer_mode; enable_developer_mode="$enableval"
16802 else
16803   enable_developer_mode="no"
16804 fi
16805
16806
16807 # Maemo hacks:
16808 # - wrap e_book_from_string() to fix invalid parameter
16809 # - don't use UTF-8 encoding in Perl script
16810 # Check whether --enable-maemo was given.
16811 if test "${enable_maemo+set}" = set; then :
16812   enableval=$enable_maemo;
16813 $as_echo "#define ENABLE_MAEMO 1" >>confdefs.h
16814
16815                DEVICE_TYPE=Maemo
16816                MODIFY_SYNCCOMPARE='-e "s/use encoding/#use encoding/;" -e "s/:utf8//;"'
16817 fi
16818
16819
16820
16821 for ac_header in signal.h dlfcn.h
16822 do :
16823   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16824 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16825 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16826   cat >>confdefs.h <<_ACEOF
16827 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16828 _ACEOF
16829
16830 fi
16831
16832 done
16833
16834
16835 # For icaltz-util.c
16836 for ac_header in byteswap.h endian.h sys/endian.h unistd.h stdint.h
16837 do :
16838   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16839 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16840 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16841   cat >>confdefs.h <<_ACEOF
16842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16843 _ACEOF
16844
16845 fi
16846
16847 done
16848
16849
16850 # cppunit-config is used even when both unit tests and integration tests are disabled.
16851 # Extract the first word of "cppunit-config", so it can be a program name with args.
16852 set dummy cppunit-config; ac_word=$2
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16854 $as_echo_n "checking for $ac_word... " >&6; }
16855 if ${ac_cv_path_CPPUNIT_CONFIG+:} false; then :
16856   $as_echo_n "(cached) " >&6
16857 else
16858   case $CPPUNIT_CONFIG in
16859   [\\/]* | ?:[\\/]*)
16860   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
16861   ;;
16862   *)
16863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16864 for as_dir in $PATH
16865 do
16866   IFS=$as_save_IFS
16867   test -z "$as_dir" && as_dir=.
16868     for ac_exec_ext in '' $ac_executable_extensions; do
16869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16870     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16872     break 2
16873   fi
16874 done
16875   done
16876 IFS=$as_save_IFS
16877
16878   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
16879   ;;
16880 esac
16881 fi
16882 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
16883 if test -n "$CPPUNIT_CONFIG"; then
16884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
16885 $as_echo "$CPPUNIT_CONFIG" >&6; }
16886 else
16887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16888 $as_echo "no" >&6; }
16889 fi
16890
16891
16892
16893 # cppunit needed?
16894 if test "x$enable_unit_tests" = 'xyes' || test "x$enable_integration_tests" = 'xyes'; then
16895   test "x$CPPUNIT_CONFIG" != 'xno' || as_fn_error $? "\"cppunit-config not found.\"" "$LINENO" 5
16896 fi
16897 if test "x$CPPUNIT_CONFIG" != 'xno'; then
16898   # Export the flags if available, even if not enabled. This allows
16899   # "make src/client-test" in cases where "make all" would not build
16900   # client-test.
16901   CPPUNIT_CXXFLAGS=`$CPPUNIT_CONFIG --cflags`
16902   CPPUNIT_LDFLAGS=`$CPPUNIT_CONFIG --libs`
16903 fi
16904
16905
16906
16907 if test "x$enable_unit_tests" = 'xyes'; then
16908
16909 $as_echo "#define ENABLE_UNIT_TESTS 1" >>confdefs.h
16910
16911 fi
16912 if test "x$enable_integration_tests" = 'xyes'; then
16913
16914 $as_echo "#define ENABLE_INTEGRATION_TESTS 1" >>confdefs.h
16915
16916 fi
16917  if test "$enable_unit_tests" = "yes"; then
16918   ENABLE_UNIT_TESTS_TRUE=
16919   ENABLE_UNIT_TESTS_FALSE='#'
16920 else
16921   ENABLE_UNIT_TESTS_TRUE='#'
16922   ENABLE_UNIT_TESTS_FALSE=
16923 fi
16924
16925  if test "$enable_unit_tests" = "yes" || test "$enable_integration_tests" = "yes" ; then
16926   ENABLE_TESTING_TRUE=
16927   ENABLE_TESTING_FALSE='#'
16928 else
16929   ENABLE_TESTING_TRUE='#'
16930   ENABLE_TESTING_FALSE=
16931 fi
16932
16933
16934 if test $enable_static_cxx = "yes"; then
16935         LIBS="$LIBS -L."
16936         CORE_LDADD_DEP=libstdc++.a
16937 fi
16938
16939
16940 # Check for transport layer.
16941 # Both curl and libsoup can be enabled and disabled explicitly.
16942 # The default is to use libsoup if available, otherwise curl.
16943
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
16945 $as_echo_n "checking for libcurl... " >&6; }
16946 if LIBCURL_LIBS=`sh -c 'curl-config --libs' 2>&5` && \
16947     LIBCURL_CFLAGS=`sh -c 'curl-config --cflags' 2>&5`; then
16948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16949 $as_echo "yes" >&6; }
16950     have_libcurl="yes"
16951 else
16952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16953 $as_echo "no" >&6; }
16954     have_libcurl="no"
16955 fi
16956
16957
16958
16959
16960
16961
16962
16963
16964 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16965         if test -n "$ac_tool_prefix"; then
16966   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16967 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16969 $as_echo_n "checking for $ac_word... " >&6; }
16970 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16971   $as_echo_n "(cached) " >&6
16972 else
16973   case $PKG_CONFIG in
16974   [\\/]* | ?:[\\/]*)
16975   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16976   ;;
16977   *)
16978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16979 for as_dir in $PATH
16980 do
16981   IFS=$as_save_IFS
16982   test -z "$as_dir" && as_dir=.
16983     for ac_exec_ext in '' $ac_executable_extensions; do
16984   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16985     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16987     break 2
16988   fi
16989 done
16990   done
16991 IFS=$as_save_IFS
16992
16993   ;;
16994 esac
16995 fi
16996 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16997 if test -n "$PKG_CONFIG"; then
16998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16999 $as_echo "$PKG_CONFIG" >&6; }
17000 else
17001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17002 $as_echo "no" >&6; }
17003 fi
17004
17005
17006 fi
17007 if test -z "$ac_cv_path_PKG_CONFIG"; then
17008   ac_pt_PKG_CONFIG=$PKG_CONFIG
17009   # Extract the first word of "pkg-config", so it can be a program name with args.
17010 set dummy pkg-config; ac_word=$2
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17012 $as_echo_n "checking for $ac_word... " >&6; }
17013 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17014   $as_echo_n "(cached) " >&6
17015 else
17016   case $ac_pt_PKG_CONFIG in
17017   [\\/]* | ?:[\\/]*)
17018   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17019   ;;
17020   *)
17021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17022 for as_dir in $PATH
17023 do
17024   IFS=$as_save_IFS
17025   test -z "$as_dir" && as_dir=.
17026     for ac_exec_ext in '' $ac_executable_extensions; do
17027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17028     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17030     break 2
17031   fi
17032 done
17033   done
17034 IFS=$as_save_IFS
17035
17036   ;;
17037 esac
17038 fi
17039 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17040 if test -n "$ac_pt_PKG_CONFIG"; then
17041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17042 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17043 else
17044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17045 $as_echo "no" >&6; }
17046 fi
17047
17048   if test "x$ac_pt_PKG_CONFIG" = x; then
17049     PKG_CONFIG=""
17050   else
17051     case $cross_compiling:$ac_tool_warned in
17052 yes:)
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17055 ac_tool_warned=yes ;;
17056 esac
17057     PKG_CONFIG=$ac_pt_PKG_CONFIG
17058   fi
17059 else
17060   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17061 fi
17062
17063 fi
17064 if test -n "$PKG_CONFIG"; then
17065         _pkg_min_version=0.9.0
17066         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17067 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17068         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17069                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17070 $as_echo "yes" >&6; }
17071         else
17072                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17073 $as_echo "no" >&6; }
17074                 PKG_CONFIG=""
17075         fi
17076 fi
17077
17078 pkg_failed=no
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSOUP" >&5
17080 $as_echo_n "checking for LIBSOUP... " >&6; }
17081
17082 if test -n "$LIBSOUP_CFLAGS"; then
17083     pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
17084  elif test -n "$PKG_CONFIG"; then
17085     if test -n "$PKG_CONFIG" && \
17086     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4\""; } >&5
17087   ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4") 2>&5
17088   ac_status=$?
17089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17090   test $ac_status = 0; }; then
17091   pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-gnome-2.4" 2>/dev/null`
17092                       test "x$?" != "x0" && pkg_failed=yes
17093 else
17094   pkg_failed=yes
17095 fi
17096  else
17097     pkg_failed=untried
17098 fi
17099 if test -n "$LIBSOUP_LIBS"; then
17100     pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
17101  elif test -n "$PKG_CONFIG"; then
17102     if test -n "$PKG_CONFIG" && \
17103     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4\""; } >&5
17104   ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4") 2>&5
17105   ac_status=$?
17106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17107   test $ac_status = 0; }; then
17108   pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-gnome-2.4" 2>/dev/null`
17109                       test "x$?" != "x0" && pkg_failed=yes
17110 else
17111   pkg_failed=yes
17112 fi
17113  else
17114     pkg_failed=untried
17115 fi
17116
17117
17118
17119 if test $pkg_failed = yes; then
17120         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17121 $as_echo "no" >&6; }
17122
17123 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17124         _pkg_short_errors_supported=yes
17125 else
17126         _pkg_short_errors_supported=no
17127 fi
17128         if test $_pkg_short_errors_supported = yes; then
17129                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsoup-gnome-2.4" 2>&1`
17130         else
17131                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsoup-gnome-2.4" 2>&1`
17132         fi
17133         # Put the nasty error message in config.log where it belongs
17134         echo "$LIBSOUP_PKG_ERRORS" >&5
17135
17136
17137 pkg_failed=no
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSOUP" >&5
17139 $as_echo_n "checking for LIBSOUP... " >&6; }
17140
17141 if test -n "$LIBSOUP_CFLAGS"; then
17142     pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
17143  elif test -n "$PKG_CONFIG"; then
17144     if test -n "$PKG_CONFIG" && \
17145     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
17146   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
17147   ac_status=$?
17148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17149   test $ac_status = 0; }; then
17150   pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
17151                       test "x$?" != "x0" && pkg_failed=yes
17152 else
17153   pkg_failed=yes
17154 fi
17155  else
17156     pkg_failed=untried
17157 fi
17158 if test -n "$LIBSOUP_LIBS"; then
17159     pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
17160  elif test -n "$PKG_CONFIG"; then
17161     if test -n "$PKG_CONFIG" && \
17162     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
17163   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
17164   ac_status=$?
17165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17166   test $ac_status = 0; }; then
17167   pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
17168                       test "x$?" != "x0" && pkg_failed=yes
17169 else
17170   pkg_failed=yes
17171 fi
17172  else
17173     pkg_failed=untried
17174 fi
17175
17176
17177
17178 if test $pkg_failed = yes; then
17179         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17180 $as_echo "no" >&6; }
17181
17182 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17183         _pkg_short_errors_supported=yes
17184 else
17185         _pkg_short_errors_supported=no
17186 fi
17187         if test $_pkg_short_errors_supported = yes; then
17188                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsoup-2.4" 2>&1`
17189         else
17190                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsoup-2.4" 2>&1`
17191         fi
17192         # Put the nasty error message in config.log where it belongs
17193         echo "$LIBSOUP_PKG_ERRORS" >&5
17194
17195         have_libsoup="no"
17196 elif test $pkg_failed = untried; then
17197         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17198 $as_echo "no" >&6; }
17199         have_libsoup="no"
17200 else
17201         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
17202         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
17203         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17204 $as_echo "yes" >&6; }
17205         have_libsoup="yes"
17206 fi
17207 elif test $pkg_failed = untried; then
17208         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17209 $as_echo "no" >&6; }
17210
17211 pkg_failed=no
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSOUP" >&5
17213 $as_echo_n "checking for LIBSOUP... " >&6; }
17214
17215 if test -n "$LIBSOUP_CFLAGS"; then
17216     pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
17217  elif test -n "$PKG_CONFIG"; then
17218     if test -n "$PKG_CONFIG" && \
17219     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
17220   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
17221   ac_status=$?
17222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17223   test $ac_status = 0; }; then
17224   pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
17225                       test "x$?" != "x0" && pkg_failed=yes
17226 else
17227   pkg_failed=yes
17228 fi
17229  else
17230     pkg_failed=untried
17231 fi
17232 if test -n "$LIBSOUP_LIBS"; then
17233     pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
17234  elif test -n "$PKG_CONFIG"; then
17235     if test -n "$PKG_CONFIG" && \
17236     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
17237   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
17238   ac_status=$?
17239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17240   test $ac_status = 0; }; then
17241   pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
17242                       test "x$?" != "x0" && pkg_failed=yes
17243 else
17244   pkg_failed=yes
17245 fi
17246  else
17247     pkg_failed=untried
17248 fi
17249
17250
17251
17252 if test $pkg_failed = yes; then
17253         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17254 $as_echo "no" >&6; }
17255
17256 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17257         _pkg_short_errors_supported=yes
17258 else
17259         _pkg_short_errors_supported=no
17260 fi
17261         if test $_pkg_short_errors_supported = yes; then
17262                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsoup-2.4" 2>&1`
17263         else
17264                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsoup-2.4" 2>&1`
17265         fi
17266         # Put the nasty error message in config.log where it belongs
17267         echo "$LIBSOUP_PKG_ERRORS" >&5
17268
17269         have_libsoup="no"
17270 elif test $pkg_failed = untried; then
17271         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17272 $as_echo "no" >&6; }
17273         have_libsoup="no"
17274 else
17275         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
17276         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
17277         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17278 $as_echo "yes" >&6; }
17279         have_libsoup="yes"
17280 fi
17281 else
17282         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
17283         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
17284         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17285 $as_echo "yes" >&6; }
17286         have_libsoup="yes"
17287
17288 $as_echo "#define HAVE_LIBSOUP_SOUP_GNOME_FEATURES_H 1" >>confdefs.h
17289
17290 fi
17291
17292
17293 pkg_failed=no
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENOBEX" >&5
17295 $as_echo_n "checking for LIBOPENOBEX... " >&6; }
17296
17297 if test -n "$LIBOPENOBEX_CFLAGS"; then
17298     pkg_cv_LIBOPENOBEX_CFLAGS="$LIBOPENOBEX_CFLAGS"
17299  elif test -n "$PKG_CONFIG"; then
17300     if test -n "$PKG_CONFIG" && \
17301     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openobex\""; } >&5
17302   ($PKG_CONFIG --exists --print-errors "openobex") 2>&5
17303   ac_status=$?
17304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17305   test $ac_status = 0; }; then
17306   pkg_cv_LIBOPENOBEX_CFLAGS=`$PKG_CONFIG --cflags "openobex" 2>/dev/null`
17307                       test "x$?" != "x0" && pkg_failed=yes
17308 else
17309   pkg_failed=yes
17310 fi
17311  else
17312     pkg_failed=untried
17313 fi
17314 if test -n "$LIBOPENOBEX_LIBS"; then
17315     pkg_cv_LIBOPENOBEX_LIBS="$LIBOPENOBEX_LIBS"
17316  elif test -n "$PKG_CONFIG"; then
17317     if test -n "$PKG_CONFIG" && \
17318     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openobex\""; } >&5
17319   ($PKG_CONFIG --exists --print-errors "openobex") 2>&5
17320   ac_status=$?
17321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17322   test $ac_status = 0; }; then
17323   pkg_cv_LIBOPENOBEX_LIBS=`$PKG_CONFIG --libs "openobex" 2>/dev/null`
17324                       test "x$?" != "x0" && pkg_failed=yes
17325 else
17326   pkg_failed=yes
17327 fi
17328  else
17329     pkg_failed=untried
17330 fi
17331
17332
17333
17334 if test $pkg_failed = yes; then
17335         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17336 $as_echo "no" >&6; }
17337
17338 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17339         _pkg_short_errors_supported=yes
17340 else
17341         _pkg_short_errors_supported=no
17342 fi
17343         if test $_pkg_short_errors_supported = yes; then
17344                 LIBOPENOBEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openobex" 2>&1`
17345         else
17346                 LIBOPENOBEX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openobex" 2>&1`
17347         fi
17348         # Put the nasty error message in config.log where it belongs
17349         echo "$LIBOPENOBEX_PKG_ERRORS" >&5
17350
17351         have_obex="no"
17352 elif test $pkg_failed = untried; then
17353         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17354 $as_echo "no" >&6; }
17355         have_obex="no"
17356 else
17357         LIBOPENOBEX_CFLAGS=$pkg_cv_LIBOPENOBEX_CFLAGS
17358         LIBOPENOBEX_LIBS=$pkg_cv_LIBOPENOBEX_LIBS
17359         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17360 $as_echo "yes" >&6; }
17361         have_obex="yes"
17362 fi
17363 have_bluetooth="no"
17364 if test $have_obex = "yes"; then
17365
17366 pkg_failed=no
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLUEZ" >&5
17368 $as_echo_n "checking for BLUEZ... " >&6; }
17369
17370 if test -n "$BLUEZ_CFLAGS"; then
17371     pkg_cv_BLUEZ_CFLAGS="$BLUEZ_CFLAGS"
17372  elif test -n "$PKG_CONFIG"; then
17373     if test -n "$PKG_CONFIG" && \
17374     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez\""; } >&5
17375   ($PKG_CONFIG --exists --print-errors "bluez") 2>&5
17376   ac_status=$?
17377   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17378   test $ac_status = 0; }; then
17379   pkg_cv_BLUEZ_CFLAGS=`$PKG_CONFIG --cflags "bluez" 2>/dev/null`
17380                       test "x$?" != "x0" && pkg_failed=yes
17381 else
17382   pkg_failed=yes
17383 fi
17384  else
17385     pkg_failed=untried
17386 fi
17387 if test -n "$BLUEZ_LIBS"; then
17388     pkg_cv_BLUEZ_LIBS="$BLUEZ_LIBS"
17389  elif test -n "$PKG_CONFIG"; then
17390     if test -n "$PKG_CONFIG" && \
17391     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez\""; } >&5
17392   ($PKG_CONFIG --exists --print-errors "bluez") 2>&5
17393   ac_status=$?
17394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17395   test $ac_status = 0; }; then
17396   pkg_cv_BLUEZ_LIBS=`$PKG_CONFIG --libs "bluez" 2>/dev/null`
17397                       test "x$?" != "x0" && pkg_failed=yes
17398 else
17399   pkg_failed=yes
17400 fi
17401  else
17402     pkg_failed=untried
17403 fi
17404
17405
17406
17407 if test $pkg_failed = yes; then
17408         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17409 $as_echo "no" >&6; }
17410
17411 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17412         _pkg_short_errors_supported=yes
17413 else
17414         _pkg_short_errors_supported=no
17415 fi
17416         if test $_pkg_short_errors_supported = yes; then
17417                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bluez" 2>&1`
17418         else
17419                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bluez" 2>&1`
17420         fi
17421         # Put the nasty error message in config.log where it belongs
17422         echo "$BLUEZ_PKG_ERRORS" >&5
17423
17424         have_bluez="no"
17425 elif test $pkg_failed = untried; then
17426         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17427 $as_echo "no" >&6; }
17428         have_bluez="no"
17429 else
17430         BLUEZ_CFLAGS=$pkg_cv_BLUEZ_CFLAGS
17431         BLUEZ_LIBS=$pkg_cv_BLUEZ_LIBS
17432         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17433 $as_echo "yes" >&6; }
17434         have_bluez="yes"
17435 fi
17436     if test $have_bluez = "yes"; then
17437         have_bluetooth="yes"
17438     fi
17439 fi
17440
17441
17442
17443
17444
17445 TRANSPORT=
17446 TRANSPORT_LIBS=
17447 TRANSPORT_CFLAGS=
17448
17449
17450 # Check whether --with-ca-certificates was given.
17451 if test "${with_ca_certificates+set}" = set; then :
17452   withval=$with_ca_certificates; CA_CERTIFICATES="$withval"
17453 fi
17454
17455
17456
17457 # choose default http transport (mirrors code in EvolutionSyncClient::createTransportAgent())
17458 if test "$have_libsoup" = "yes"; then
17459    default_http_transport="libsoup"
17460 elif test "$have_libcurl" = "yes"; then
17461    default_http_transport="libcurl"
17462 fi
17463
17464 # Check whether --enable-libcurl was given.
17465 if test "${enable_libcurl+set}" = set; then :
17466   enableval=$enable_libcurl;  if test "$enableval" = "yes"; then
17467                    test "$have_libcurl" = "yes" || as_fn_error $? "libcurl not found" "$LINENO" 5
17468                    TRANSPORT="$TRANSPORT libcurl"
17469                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBCURL_LIBS"
17470                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBCURL_CFLAGS"
17471
17472 $as_echo "#define ENABLE_LIBCURL 1" >>confdefs.h
17473
17474                 else
17475                    libcurl_disabled="yes"
17476                 fi
17477 else
17478    if test "$have_libcurl" = "yes" && test "$default_http_transport" = "libcurl" ; then
17479                    TRANSPORT="$TRANSPORT libcurl"
17480                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBCURL_LIBS"
17481                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBCURL_CFLAGS"
17482
17483 $as_echo "#define ENABLE_LIBCURL 1" >>confdefs.h
17484
17485                 fi
17486 fi
17487
17488
17489 # Check whether --enable-libsoup was given.
17490 if test "${enable_libsoup+set}" = set; then :
17491   enableval=$enable_libsoup;  if test "$enableval" = "yes"; then
17492                    test "$have_libsoup" = "yes" || as_fn_error $? "libsoup not found" "$LINENO" 5
17493                    TRANSPORT="$TRANSPORT libsoup"
17494                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBSOUP_LIBS"
17495                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBSOUP_CFLAGS"
17496
17497 $as_echo "#define ENABLE_LIBSOUP 1" >>confdefs.h
17498
17499                 else
17500                    libsoup_disabled="yes"
17501                 fi
17502 else
17503    if test "$have_libsoup" = "yes" && test "$default_http_transport" = "libsoup"; then
17504                    TRANSPORT="$TRANSPORT libsoup"
17505                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBSOUP_LIBS"
17506                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBSOUP_CFLAGS"
17507
17508 $as_echo "#define ENABLE_LIBSOUP 1" >>confdefs.h
17509
17510                 fi
17511 fi
17512
17513
17514 # SoupTransportAgent depends on glib
17515 case "$TRANSPORT" in *libsoup*) need_glib=yes;; esac
17516
17517 # Check whether --enable-dlt was given.
17518 if test "${enable_dlt+set}" = set; then :
17519   enableval=$enable_dlt; enable_dlt=$enableval
17520                test $enable_dlt = "yes" || test $enable_dlt = "no" || as_fn_error $? "invalid value of --enable-dlt: $enableval" "$LINENO" 5
17521 else
17522   enable_dlt="no"
17523 fi
17524
17525 if test "$enable_dlt" = "yes"; then
17526
17527 pkg_failed=no
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT" >&5
17529 $as_echo_n "checking for DLT... " >&6; }
17530
17531 if test -n "$DLT_CFLAGS"; then
17532     pkg_cv_DLT_CFLAGS="$DLT_CFLAGS"
17533  elif test -n "$PKG_CONFIG"; then
17534     if test -n "$PKG_CONFIG" && \
17535     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"automotive-dlt\""; } >&5
17536   ($PKG_CONFIG --exists --print-errors "automotive-dlt") 2>&5
17537   ac_status=$?
17538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17539   test $ac_status = 0; }; then
17540   pkg_cv_DLT_CFLAGS=`$PKG_CONFIG --cflags "automotive-dlt" 2>/dev/null`
17541                       test "x$?" != "x0" && pkg_failed=yes
17542 else
17543   pkg_failed=yes
17544 fi
17545  else
17546     pkg_failed=untried
17547 fi
17548 if test -n "$DLT_LIBS"; then
17549     pkg_cv_DLT_LIBS="$DLT_LIBS"
17550  elif test -n "$PKG_CONFIG"; then
17551     if test -n "$PKG_CONFIG" && \
17552     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"automotive-dlt\""; } >&5
17553   ($PKG_CONFIG --exists --print-errors "automotive-dlt") 2>&5
17554   ac_status=$?
17555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17556   test $ac_status = 0; }; then
17557   pkg_cv_DLT_LIBS=`$PKG_CONFIG --libs "automotive-dlt" 2>/dev/null`
17558                       test "x$?" != "x0" && pkg_failed=yes
17559 else
17560   pkg_failed=yes
17561 fi
17562  else
17563     pkg_failed=untried
17564 fi
17565
17566
17567
17568 if test $pkg_failed = yes; then
17569         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17570 $as_echo "no" >&6; }
17571
17572 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17573         _pkg_short_errors_supported=yes
17574 else
17575         _pkg_short_errors_supported=no
17576 fi
17577         if test $_pkg_short_errors_supported = yes; then
17578                 DLT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "automotive-dlt" 2>&1`
17579         else
17580                 DLT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "automotive-dlt" 2>&1`
17581         fi
17582         # Put the nasty error message in config.log where it belongs
17583         echo "$DLT_PKG_ERRORS" >&5
17584
17585         as_fn_error $? "dlt not found, required for --enable-dlt" "$LINENO" 5
17586 elif test $pkg_failed = untried; then
17587         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17588 $as_echo "no" >&6; }
17589         as_fn_error $? "dlt not found, required for --enable-dlt" "$LINENO" 5
17590 else
17591         DLT_CFLAGS=$pkg_cv_DLT_CFLAGS
17592         DLT_LIBS=$pkg_cv_DLT_LIBS
17593         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17594 $as_echo "yes" >&6; }
17595         USE_DLT=1
17596 fi
17597
17598 $as_echo "#define USE_DLT 1" >>confdefs.h
17599
17600
17601 # Check whether --with-dlt-syncevolution was given.
17602 if test "${with_dlt_syncevolution+set}" = set; then :
17603   withval=$with_dlt_syncevolution; with_dlt_ids="$withval"
17604 else
17605   with_dlt_ids="SYNS,SYNH,SYNL"
17606 fi
17607
17608     syns=`echo $with_dlt_ids | cut -d , -f 1`
17609     synh=`echo $with_dlt_ids | cut -d , -f 2`
17610     synl=`echo $with_dlt_ids | cut -d , -f 3`
17611
17612 cat >>confdefs.h <<_ACEOF
17613 #define DLT_SYNCEVO_DBUS_SERVER_ID "$syns"
17614 _ACEOF
17615
17616
17617 cat >>confdefs.h <<_ACEOF
17618 #define DLT_SYNCEVO_DBUS_HELPER_ID "$synh"
17619 _ACEOF
17620
17621
17622 cat >>confdefs.h <<_ACEOF
17623 #define DLT_SYNCEVO_LOCAL_HELPER_ID "$synl"
17624 _ACEOF
17625
17626 fi
17627
17628 bluetooth_disabled=no
17629 # Check whether --enable-bluetooth was given.
17630 if test "${enable_bluetooth+set}" = set; then :
17631   enableval=$enable_bluetooth;  enable_bluetooth="$enableval"
17632                 if test "$enableval" = "no"; then
17633                     bluetooth_disabled=yes
17634                 fi
17635
17636 else
17637    enable_bluetooth="$have_bluetooth"
17638 fi
17639
17640
17641 if test "$enable_bluetooth" = "yes"; then
17642    # currently we need Bluetooth and OBEX support
17643    test "$have_bluetooth" = "yes" || as_fn_error $? "openobex or bluez not found" "$LINENO" 5
17644
17645    ac_ext=c
17646 ac_cpp='$CPP $CPPFLAGS'
17647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17650
17651    CFLAGS_old="$CFLAGS"
17652    CFLAGS="$CPPFLAGS $BLUEZ_CFLAGS"
17653    # test in this order:
17654    # - recent libbluetooth (no _safe variant, base function has bufsize)
17655    # - intermediate with _safe
17656    # - else assume old-style (no bufsize, no _safe)
17657    #
17658    # The source code checks the signature both by via pointer assignment and calling
17659    # it (better safe than sorry). One these should fail if the signature is not right.
17660    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17661 /* end confdefs.h.  */
17662
17663                       #include <bluetooth/sdp.h>
17664                       #include <bluetooth/sdp_lib.h>
17665                       sdp_record_t *(*extract_pdu)(const uint8_t *pdata, int bufsize, int *scanned) =
17666                            sdp_extract_pdu;
17667                       void foo(void) {
17668                           uint8_t *pdata = NULL;
17669                           int scanned;
17670                           sdp_extract_pdu(pdata, 100, &scanned);
17671                       }
17672
17673 _ACEOF
17674 if ac_fn_c_try_compile "$LINENO"; then :
17675
17676 $as_echo "#define HAVE_BLUEZ_BUFSIZE 1" >>confdefs.h
17677
17678 else
17679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17680 /* end confdefs.h.  */
17681
17682                                         #include <bluetooth/sdp.h>
17683                                         #include <bluetooth/sdp_lib.h>
17684                                         sdp_record_t *(*extract_pdu)(const uint8_t *pdata, int bufsize, int *scanned) =
17685                                                sdp_extract_pdu_safe;
17686                                         void foo(void) {
17687                                             uint8_t *pdata = NULL;
17688                                             int scanned;
17689                                             sdp_extract_pdu_safe(pdata, 100, &scanned);
17690                                         }
17691
17692 _ACEOF
17693 if ac_fn_c_try_compile "$LINENO"; then :
17694
17695 $as_echo "#define HAVE_BLUEZ_SAFE 1" >>confdefs.h
17696
17697 fi
17698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17699 fi
17700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17701    CFLAGS="$CFLAGS_old"
17702
17703    if test "$have_obex" = "yes"; then
17704
17705 $as_echo "#define ENABLE_OBEX 1" >>confdefs.h
17706
17707    fi
17708    if test "$have_bluez" = "yes"; then
17709
17710 $as_echo "#define ENABLE_BLUETOOTH 1" >>confdefs.h
17711
17712    fi
17713 fi
17714  if test "$have_obex" = "yes" && test "$enable_bluetooth" = "yes"; then
17715   ENABLE_OBEX_TRUE=
17716   ENABLE_OBEX_FALSE='#'
17717 else
17718   ENABLE_OBEX_TRUE='#'
17719   ENABLE_OBEX_FALSE=
17720 fi
17721
17722  if test "$have_bluetooth" = "yes" && test "$enable_bluetooth" = "yes"; then
17723   ENABLE_BLUETOOTH_TRUE=
17724   ENABLE_BLUETOOTH_FALSE='#'
17725 else
17726   ENABLE_BLUETOOTH_TRUE='#'
17727   ENABLE_BLUETOOTH_FALSE=
17728 fi
17729
17730
17731 if test ! "$TRANSPORT" &&
17732    test "$libsoup_disabled" != "yes" &&
17733    test "$libcurl_disabled" != "yes" &&
17734    test "$bluetooth_disabled" != "yes" &&
17735    test "$have_bluetooth" != "yes" ; then
17736    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
17737 fi
17738
17739 # for libsoup we must specify the SSL certificate file outself
17740 if test "$libsoup_disabled" != "yes" && test -z "$CA_CERTIFICATES"; then
17741    # Debian and Red Hat paths
17742    CA_CERTIFICATES="/etc/ssl/certs/ca-certificates.crt:/etc/pki/tls/certs/ca-bundle.crt:/usr/share/ssl/certs/ca-bundle.crt"
17743 fi
17744
17745 cat >>confdefs.h <<_ACEOF
17746 #define SYNCEVOLUTION_SSL_SERVER_CERTIFICATES "$CA_CERTIFICATES"
17747 _ACEOF
17748
17749
17750
17751
17752
17753 # Check whether --enable-ssl-certificate-check was given.
17754 if test "${enable_ssl_certificate_check+set}" = set; then :
17755   enableval=$enable_ssl_certificate_check; enable_ssl_certificate_check="$enableval"
17756 else
17757   enable_ssl_certificate_check="yes"
17758 fi
17759
17760 if test "$enable_ssl_certificate_check" = "yes"; then
17761
17762 $as_echo "#define ENABLE_SSL_CERTIFICATE_CHECK 1" >>confdefs.h
17763
17764 fi
17765
17766 # for dbus interface file mangling
17767 # Extract the first word of "xsltproc", so it can be a program name with args.
17768 set dummy xsltproc; ac_word=$2
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17770 $as_echo_n "checking for $ac_word... " >&6; }
17771 if ${ac_cv_path_XSLT+:} false; then :
17772   $as_echo_n "(cached) " >&6
17773 else
17774   case $XSLT in
17775   [\\/]* | ?:[\\/]*)
17776   ac_cv_path_XSLT="$XSLT" # Let the user override the test with a path.
17777   ;;
17778   *)
17779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17780 for as_dir in $PATH
17781 do
17782   IFS=$as_save_IFS
17783   test -z "$as_dir" && as_dir=.
17784     for ac_exec_ext in '' $ac_executable_extensions; do
17785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17786     ac_cv_path_XSLT="$as_dir/$ac_word$ac_exec_ext"
17787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17788     break 2
17789   fi
17790 done
17791   done
17792 IFS=$as_save_IFS
17793
17794   ;;
17795 esac
17796 fi
17797 XSLT=$ac_cv_path_XSLT
17798 if test -n "$XSLT"; then
17799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT" >&5
17800 $as_echo "$XSLT" >&6; }
17801 else
17802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17803 $as_echo "no" >&6; }
17804 fi
17805
17806
17807
17808
17809 # Changes in GTK3 mean that supporting both GTK3 and GTK2 in the same codebase
17810 # is difficult. We want to support GTK2 for the time being so the code is forked.
17811 # Check whether --enable-gtk was given.
17812 if test "${enable_gtk+set}" = set; then :
17813   enableval=$enable_gtk;  if test "$enableval" = "3" ; then
17814                     gtk_version=gtk+-3.0
17815                 elif test "$enableval" = "2" ; then
17816                     gtk_version=gtk+-2.0
17817                 else
17818                     as_fn_error $? "Unknown gtk version: '$enableval'" "$LINENO" 5
17819                 fi
17820
17821 else
17822    if test -n "$PKG_CONFIG" && \
17823     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
17824   ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
17825   ac_status=$?
17826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17827   test $ac_status = 0; }; then
17828   gtk_version=gtk+-3.0
17829 else
17830   gtk_version=gtk+-2.0
17831 fi
17832 fi
17833
17834
17835
17836  if test "$gtk_version" = "gtk+-2.0"; then
17837   COND_GTK2_TRUE=
17838   COND_GTK2_FALSE='#'
17839 else
17840   COND_GTK2_TRUE='#'
17841   COND_GTK2_FALSE=
17842 fi
17843
17844
17845 # Check whether --enable-gui was given.
17846 if test "${enable_gui+set}" = set; then :
17847   enableval=$enable_gui;  if test "$enableval" = "gtk" ; then
17848                     enable_gui=gtk
17849                 elif test "$enableval" = "yes" ; then
17850                     enable_gui=gtk
17851                 elif test "$enableval" = "moblin" ; then
17852                     enable_gui=moblin
17853                 elif test "$enableval" = "no" ; then
17854                     enable_gui=no
17855                 elif test "$enableval" = "all" ; then
17856                     enable_gui=all
17857                 else
17858                     as_fn_error $? "Unknown gui type: '$enableval'" "$LINENO" 5
17859                 fi
17860
17861 else
17862    enable_gui=no
17863 fi
17864
17865
17866  if test "$enable_gui" != "no"; then
17867   COND_GUI_TRUE=
17868   COND_GUI_FALSE='#'
17869 else
17870   COND_GUI_TRUE='#'
17871   COND_GUI_FALSE=
17872 fi
17873
17874
17875 # Check whether --enable-core was given.
17876 if test "${enable_core+set}" = set; then :
17877   enableval=$enable_core; enable_core="$enableval"
17878 else
17879   enable_core="yes"
17880 fi
17881
17882  if test "$enable_core" = "yes"; then
17883   COND_CORE_TRUE=
17884   COND_CORE_FALSE='#'
17885 else
17886   COND_CORE_TRUE='#'
17887   COND_CORE_FALSE=
17888 fi
17889
17890
17891 # Check whether --enable-dbus-service was given.
17892 if test "${enable_dbus_service+set}" = set; then :
17893   enableval=$enable_dbus_service; enable_dbus_service="$enableval"
17894 else
17895   if test $enable_gui = "no"; then
17896                   enable_dbus_service="no"
17897                else
17898                   enable_dbus_service="yes"
17899                fi
17900 fi
17901
17902  if test "$enable_dbus_service" != "no"; then
17903   COND_DBUS_TRUE=
17904   COND_DBUS_FALSE='#'
17905 else
17906   COND_DBUS_TRUE='#'
17907   COND_DBUS_FALSE=
17908 fi
17909
17910 if test "$enable_dbus_service" != "no" && test "$enable_dbus_service" != "yes"; then
17911    SYNCEVO_DBUS_SERVER_ARGS="$enable_dbus_service"
17912 fi
17913
17914
17915
17916 # Check whether --with-gio-gdbus was given.
17917 if test "${with_gio_gdbus+set}" = set; then :
17918   withval=$with_gio_gdbus; with_gio_gdbus="$withval"
17919 else
17920   if test -n "$PKG_CONFIG" && \
17921     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.30\""; } >&5
17922   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.30") 2>&5
17923   ac_status=$?
17924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17925   test $ac_status = 0; }; then
17926   with_gio_gdbus="yes"
17927 else
17928   with_gio_gdbus="no"
17929 fi
17930 fi
17931
17932  if test "x$with_gio_gdbus" = "xyes"; then
17933   COND_GIO_GDBUS_TRUE=
17934   COND_GIO_GDBUS_FALSE='#'
17935 else
17936   COND_GIO_GDBUS_TRUE='#'
17937   COND_GIO_GDBUS_FALSE=
17938 fi
17939
17940
17941 # We only need to check for dbus-1 if gio-gdbus is not used.
17942 #
17943 # Local sync depends on D-Bus communication between parent
17944 # and child process (works without a D-Bus daemon), and local
17945 # sync is not an optional feature. Could be made one if
17946 # someone is interested enough.
17947 #
17948 # Therefore, at the moment, either libdbus or gio-gdbus are needed
17949 # unconditionally. glib is needed in all cases now.
17950 need_glib=yes
17951 if test "x$with_gio_gdbus" = "xyes"; then :
17952
17953 pkg_failed=no
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
17955 $as_echo_n "checking for DBUS... " >&6; }
17956
17957 if test -n "$DBUS_CFLAGS"; then
17958     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
17959  elif test -n "$PKG_CONFIG"; then
17960     if test -n "$PKG_CONFIG" && \
17961     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
17962   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
17963   ac_status=$?
17964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17965   test $ac_status = 0; }; then
17966   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
17967                       test "x$?" != "x0" && pkg_failed=yes
17968 else
17969   pkg_failed=yes
17970 fi
17971  else
17972     pkg_failed=untried
17973 fi
17974 if test -n "$DBUS_LIBS"; then
17975     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
17976  elif test -n "$PKG_CONFIG"; then
17977     if test -n "$PKG_CONFIG" && \
17978     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
17979   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
17980   ac_status=$?
17981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17982   test $ac_status = 0; }; then
17983   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
17984                       test "x$?" != "x0" && pkg_failed=yes
17985 else
17986   pkg_failed=yes
17987 fi
17988  else
17989     pkg_failed=untried
17990 fi
17991
17992
17993
17994 if test $pkg_failed = yes; then
17995         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17996 $as_echo "no" >&6; }
17997
17998 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17999         _pkg_short_errors_supported=yes
18000 else
18001         _pkg_short_errors_supported=no
18002 fi
18003         if test $_pkg_short_errors_supported = yes; then
18004                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
18005         else
18006                 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
18007         fi
18008         # Put the nasty error message in config.log where it belongs
18009         echo "$DBUS_PKG_ERRORS" >&5
18010
18011         as_fn_error $? "Package requirements (gio-2.0 >= 2.26) were not met:
18012
18013 $DBUS_PKG_ERRORS
18014
18015 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18016 installed software in a non-standard prefix.
18017
18018 Alternatively, you may set the environment variables DBUS_CFLAGS
18019 and DBUS_LIBS to avoid the need to call pkg-config.
18020 See the pkg-config man page for more details." "$LINENO" 5
18021 elif test $pkg_failed = untried; then
18022         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18023 $as_echo "no" >&6; }
18024         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18026 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18027 is in your PATH or set the PKG_CONFIG environment variable to the full
18028 path to pkg-config.
18029
18030 Alternatively, you may set the environment variables DBUS_CFLAGS
18031 and DBUS_LIBS to avoid the need to call pkg-config.
18032 See the pkg-config man page for more details.
18033
18034 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18035 See \`config.log' for more details" "$LINENO" 5; }
18036 else
18037         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
18038         DBUS_LIBS=$pkg_cv_DBUS_LIBS
18039         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18040 $as_echo "yes" >&6; }
18041
18042 fi
18043
18044 $as_echo "#define WITH_GIO_GDBUS /**/" >>confdefs.h
18045
18046 else
18047
18048 pkg_failed=no
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
18050 $as_echo_n "checking for DBUS... " >&6; }
18051
18052 if test -n "$DBUS_CFLAGS"; then
18053     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
18054  elif test -n "$PKG_CONFIG"; then
18055     if test -n "$PKG_CONFIG" && \
18056     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
18057   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
18058   ac_status=$?
18059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18060   test $ac_status = 0; }; then
18061   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
18062                       test "x$?" != "x0" && pkg_failed=yes
18063 else
18064   pkg_failed=yes
18065 fi
18066  else
18067     pkg_failed=untried
18068 fi
18069 if test -n "$DBUS_LIBS"; then
18070     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
18071  elif test -n "$PKG_CONFIG"; then
18072     if test -n "$PKG_CONFIG" && \
18073     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
18074   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
18075   ac_status=$?
18076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18077   test $ac_status = 0; }; then
18078   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
18079                       test "x$?" != "x0" && pkg_failed=yes
18080 else
18081   pkg_failed=yes
18082 fi
18083  else
18084     pkg_failed=untried
18085 fi
18086
18087
18088
18089 if test $pkg_failed = yes; then
18090         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18091 $as_echo "no" >&6; }
18092
18093 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18094         _pkg_short_errors_supported=yes
18095 else
18096         _pkg_short_errors_supported=no
18097 fi
18098         if test $_pkg_short_errors_supported = yes; then
18099                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
18100         else
18101                 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
18102         fi
18103         # Put the nasty error message in config.log where it belongs
18104         echo "$DBUS_PKG_ERRORS" >&5
18105
18106         as_fn_error $? "libdbus-1 is required" "$LINENO" 5
18107 elif test $pkg_failed = untried; then
18108         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18109 $as_echo "no" >&6; }
18110         as_fn_error $? "libdbus-1 is required" "$LINENO" 5
18111 else
18112         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
18113         DBUS_LIBS=$pkg_cv_DBUS_LIBS
18114         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18115 $as_echo "yes" >&6; }
18116         dummy=yes
18117 fi
18118        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_watch_get_unix_fd in -ldbus-1" >&5
18119 $as_echo_n "checking for dbus_watch_get_unix_fd in -ldbus-1... " >&6; }
18120 if ${ac_cv_lib_dbus_1_dbus_watch_get_unix_fd+:} false; then :
18121   $as_echo_n "(cached) " >&6
18122 else
18123   ac_check_lib_save_LIBS=$LIBS
18124 LIBS="-ldbus-1  $LIBS"
18125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18126 /* end confdefs.h.  */
18127
18128 /* Override any GCC internal prototype to avoid an error.
18129    Use char because int might match the return type of a GCC
18130    builtin and then its argument prototype would still apply.  */
18131 #ifdef __cplusplus
18132 extern "C"
18133 #endif
18134 char dbus_watch_get_unix_fd ();
18135 int
18136 main ()
18137 {
18138 return dbus_watch_get_unix_fd ();
18139   ;
18140   return 0;
18141 }
18142 _ACEOF
18143 if ac_fn_c_try_link "$LINENO"; then :
18144   ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=yes
18145 else
18146   ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=no
18147 fi
18148 rm -f core conftest.err conftest.$ac_objext \
18149     conftest$ac_exeext conftest.$ac_ext
18150 LIBS=$ac_check_lib_save_LIBS
18151 fi
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&5
18153 $as_echo "$ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&6; }
18154 if test "x$ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" = xyes; then :
18155   dummy=yes
18156 else
18157
18158 $as_echo "#define NEED_DBUS_WATCH_GET_UNIX_FD 1" >>confdefs.h
18159
18160 fi
18161
18162 fi
18163
18164 if test "$enable_dbus_service" != "no"; then
18165     if test -z "$XSLT"; then
18166        as_fn_error $? "xsltproc not found, is required for D-Bus service" "$LINENO" 5
18167     fi
18168     # Recent libnotify releases work with gtk+-2.0 and gtk+-3.0.
18169     # Check whether --enable-notify was given.
18170 if test "${enable_notify+set}" = set; then :
18171   enableval=$enable_notify; enable_notify="$enableval"
18172 else
18173   if test -n "$PKG_CONFIG" && \
18174     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify \$gtk_version\""; } >&5
18175   ($PKG_CONFIG --exists --print-errors "libnotify $gtk_version") 2>&5
18176   ac_status=$?
18177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18178   test $ac_status = 0; }; then
18179   enable_notify="yes"
18180 else
18181   enable_notify="no"
18182 fi
18183 fi
18184
18185     if test "x$enable_notify" = "xyes"; then :
18186
18187 pkg_failed=no
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
18189 $as_echo_n "checking for LIBNOTIFY... " >&6; }
18190
18191 if test -n "$LIBNOTIFY_CFLAGS"; then
18192     pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
18193  elif test -n "$PKG_CONFIG"; then
18194     if test -n "$PKG_CONFIG" && \
18195     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify \$gtk_version\""; } >&5
18196   ($PKG_CONFIG --exists --print-errors "libnotify $gtk_version") 2>&5
18197   ac_status=$?
18198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18199   test $ac_status = 0; }; then
18200   pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify $gtk_version" 2>/dev/null`
18201                       test "x$?" != "x0" && pkg_failed=yes
18202 else
18203   pkg_failed=yes
18204 fi
18205  else
18206     pkg_failed=untried
18207 fi
18208 if test -n "$LIBNOTIFY_LIBS"; then
18209     pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
18210  elif test -n "$PKG_CONFIG"; then
18211     if test -n "$PKG_CONFIG" && \
18212     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify \$gtk_version\""; } >&5
18213   ($PKG_CONFIG --exists --print-errors "libnotify $gtk_version") 2>&5
18214   ac_status=$?
18215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18216   test $ac_status = 0; }; then
18217   pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify $gtk_version" 2>/dev/null`
18218                       test "x$?" != "x0" && pkg_failed=yes
18219 else
18220   pkg_failed=yes
18221 fi
18222  else
18223     pkg_failed=untried
18224 fi
18225
18226
18227
18228 if test $pkg_failed = yes; then
18229         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18230 $as_echo "no" >&6; }
18231
18232 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18233         _pkg_short_errors_supported=yes
18234 else
18235         _pkg_short_errors_supported=no
18236 fi
18237         if test $_pkg_short_errors_supported = yes; then
18238                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify $gtk_version" 2>&1`
18239         else
18240                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify $gtk_version" 2>&1`
18241         fi
18242         # Put the nasty error message in config.log where it belongs
18243         echo "$LIBNOTIFY_PKG_ERRORS" >&5
18244
18245         as_fn_error $? "Package requirements (libnotify $gtk_version) were not met:
18246
18247 $LIBNOTIFY_PKG_ERRORS
18248
18249 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18250 installed software in a non-standard prefix.
18251
18252 Alternatively, you may set the environment variables LIBNOTIFY_CFLAGS
18253 and LIBNOTIFY_LIBS to avoid the need to call pkg-config.
18254 See the pkg-config man page for more details." "$LINENO" 5
18255 elif test $pkg_failed = untried; then
18256         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18257 $as_echo "no" >&6; }
18258         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18260 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18261 is in your PATH or set the PKG_CONFIG environment variable to the full
18262 path to pkg-config.
18263
18264 Alternatively, you may set the environment variables LIBNOTIFY_CFLAGS
18265 and LIBNOTIFY_LIBS to avoid the need to call pkg-config.
18266 See the pkg-config man page for more details.
18267
18268 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18269 See \`config.log' for more details" "$LINENO" 5; }
18270 else
18271         LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
18272         LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
18273         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18274 $as_echo "yes" >&6; }
18275
18276 fi
18277
18278 $as_echo "#define HAS_NOTIFY 1" >>confdefs.h
18279
18280 fi
18281
18282     # Check whether --enable-notify-compatibility was given.
18283 if test "${enable_notify_compatibility+set}" = set; then :
18284   enableval=$enable_notify_compatibility; enable_notify_compat="$enableval"
18285 else
18286   enable_notify_compat="no"
18287
18288 fi
18289
18290     if test "$enable_notify_compat" = "yes"; then
18291
18292 $as_echo "#define NOTIFY_COMPATIBILITY 1" >>confdefs.h
18293
18294         LIBNOTIFY_LIBS="`echo $LIBNOTIFY_LIBS | sed -e 's/\(-lnotify\|^ *libnotify.la\)/-ldl/'`"
18295     fi
18296
18297     # Here we're using QtGui too because mlite fails to depend on it,
18298     # despite using QAction.
18299
18300 pkg_failed=no
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MLITE" >&5
18302 $as_echo_n "checking for MLITE... " >&6; }
18303
18304 if test -n "$MLITE_CFLAGS"; then
18305     pkg_cv_MLITE_CFLAGS="$MLITE_CFLAGS"
18306  elif test -n "$PKG_CONFIG"; then
18307     if test -n "$PKG_CONFIG" && \
18308     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mlite QtGui\""; } >&5
18309   ($PKG_CONFIG --exists --print-errors "mlite QtGui") 2>&5
18310   ac_status=$?
18311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18312   test $ac_status = 0; }; then
18313   pkg_cv_MLITE_CFLAGS=`$PKG_CONFIG --cflags "mlite QtGui" 2>/dev/null`
18314                       test "x$?" != "x0" && pkg_failed=yes
18315 else
18316   pkg_failed=yes
18317 fi
18318  else
18319     pkg_failed=untried
18320 fi
18321 if test -n "$MLITE_LIBS"; then
18322     pkg_cv_MLITE_LIBS="$MLITE_LIBS"
18323  elif test -n "$PKG_CONFIG"; then
18324     if test -n "$PKG_CONFIG" && \
18325     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mlite QtGui\""; } >&5
18326   ($PKG_CONFIG --exists --print-errors "mlite QtGui") 2>&5
18327   ac_status=$?
18328   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18329   test $ac_status = 0; }; then
18330   pkg_cv_MLITE_LIBS=`$PKG_CONFIG --libs "mlite QtGui" 2>/dev/null`
18331                       test "x$?" != "x0" && pkg_failed=yes
18332 else
18333   pkg_failed=yes
18334 fi
18335  else
18336     pkg_failed=untried
18337 fi
18338
18339
18340
18341 if test $pkg_failed = yes; then
18342         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18343 $as_echo "no" >&6; }
18344
18345 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18346         _pkg_short_errors_supported=yes
18347 else
18348         _pkg_short_errors_supported=no
18349 fi
18350         if test $_pkg_short_errors_supported = yes; then
18351                 MLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mlite QtGui" 2>&1`
18352         else
18353                 MLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mlite QtGui" 2>&1`
18354         fi
18355         # Put the nasty error message in config.log where it belongs
18356         echo "$MLITE_PKG_ERRORS" >&5
18357
18358         HAVE_MLITE=no
18359 elif test $pkg_failed = untried; then
18360         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18361 $as_echo "no" >&6; }
18362         HAVE_MLITE=no
18363 else
18364         MLITE_CFLAGS=$pkg_cv_MLITE_CFLAGS
18365         MLITE_LIBS=$pkg_cv_MLITE_LIBS
18366         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18367 $as_echo "yes" >&6; }
18368         HAVE_MLITE=yes
18369 fi
18370     # Check whether --enable-mlite was given.
18371 if test "${enable_mlite+set}" = set; then :
18372   enableval=$enable_mlite;  enable_mlite="$enableval"
18373                     test "$enableval" = "no" || test $HAVE_MLITE = "yes" || as_fn_error $? "required mlite package not found" "$LINENO" 5
18374 else
18375    enable_mlite="no"
18376 fi
18377
18378     if test $enable_mlite = "yes"; then
18379
18380 $as_echo "#define HAS_MLITE 1" >>confdefs.h
18381
18382     else
18383         # don't use mlite, even if found
18384         MLITE_CFLAGS=
18385         MLITE_LIBS=
18386     fi
18387
18388 $as_echo "#define DBUS_SERVICE 1" >>confdefs.h
18389
18390
18391     # Check whether --enable-dbus-service-pim was given.
18392 if test "${enable_dbus_service_pim+set}" = set; then :
18393   enableval=$enable_dbus_service_pim;  enable_dbus_pim="$enableval"
18394 else
18395    enable_dbus_pim="no"
18396 fi
18397
18398     case "$enable_dbus_pim" in
18399          no) ;;
18400          *)
18401                 if test "$enable_dbus_pim" = "yes"; then
18402                     enable_dbus_pim=boost
18403                 fi
18404                 if ! test -r "$srcdir/src/dbus/server/pim/locale-factory-$enable_dbus_pim.cpp"; then
18405                     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
18406                 fi
18407
18408 pkg_failed=no
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOLKS" >&5
18410 $as_echo_n "checking for FOLKS... " >&6; }
18411
18412 if test -n "$FOLKS_CFLAGS"; then
18413     pkg_cv_FOLKS_CFLAGS="$FOLKS_CFLAGS"
18414  elif test -n "$PKG_CONFIG"; then
18415     if test -n "$PKG_CONFIG" && \
18416     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"folks folks-eds\""; } >&5
18417   ($PKG_CONFIG --exists --print-errors "folks folks-eds") 2>&5
18418   ac_status=$?
18419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18420   test $ac_status = 0; }; then
18421   pkg_cv_FOLKS_CFLAGS=`$PKG_CONFIG --cflags "folks folks-eds" 2>/dev/null`
18422                       test "x$?" != "x0" && pkg_failed=yes
18423 else
18424   pkg_failed=yes
18425 fi
18426  else
18427     pkg_failed=untried
18428 fi
18429 if test -n "$FOLKS_LIBS"; then
18430     pkg_cv_FOLKS_LIBS="$FOLKS_LIBS"
18431  elif test -n "$PKG_CONFIG"; then
18432     if test -n "$PKG_CONFIG" && \
18433     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"folks folks-eds\""; } >&5
18434   ($PKG_CONFIG --exists --print-errors "folks folks-eds") 2>&5
18435   ac_status=$?
18436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18437   test $ac_status = 0; }; then
18438   pkg_cv_FOLKS_LIBS=`$PKG_CONFIG --libs "folks folks-eds" 2>/dev/null`
18439                       test "x$?" != "x0" && pkg_failed=yes
18440 else
18441   pkg_failed=yes
18442 fi
18443  else
18444     pkg_failed=untried
18445 fi
18446
18447
18448
18449 if test $pkg_failed = yes; then
18450         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18451 $as_echo "no" >&6; }
18452
18453 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18454         _pkg_short_errors_supported=yes
18455 else
18456         _pkg_short_errors_supported=no
18457 fi
18458         if test $_pkg_short_errors_supported = yes; then
18459                 FOLKS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "folks folks-eds" 2>&1`
18460         else
18461                 FOLKS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "folks folks-eds" 2>&1`
18462         fi
18463         # Put the nasty error message in config.log where it belongs
18464         echo "$FOLKS_PKG_ERRORS" >&5
18465
18466         as_fn_error $? "Package requirements (folks folks-eds) were not met:
18467
18468 $FOLKS_PKG_ERRORS
18469
18470 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18471 installed software in a non-standard prefix.
18472
18473 Alternatively, you may set the environment variables FOLKS_CFLAGS
18474 and FOLKS_LIBS to avoid the need to call pkg-config.
18475 See the pkg-config man page for more details." "$LINENO" 5
18476 elif test $pkg_failed = untried; then
18477         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18478 $as_echo "no" >&6; }
18479         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18481 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18482 is in your PATH or set the PKG_CONFIG environment variable to the full
18483 path to pkg-config.
18484
18485 Alternatively, you may set the environment variables FOLKS_CFLAGS
18486 and FOLKS_LIBS to avoid the need to call pkg-config.
18487 See the pkg-config man page for more details.
18488
18489 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18490 See \`config.log' for more details" "$LINENO" 5; }
18491 else
18492         FOLKS_CFLAGS=$pkg_cv_FOLKS_CFLAGS
18493         FOLKS_LIBS=$pkg_cv_FOLKS_LIBS
18494         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18495 $as_echo "yes" >&6; }
18496
18497 fi
18498
18499 $as_echo "#define ENABLE_DBUS_PIM 1" >>confdefs.h
18500
18501                 DBUS_PIM_PLUGIN=$enable_dbus_pim
18502
18503
18504                 case "$enable_dbus_pim" in
18505                     boost)
18506
18507
18508 # Check whether --with-boost-locale was given.
18509 if test "${with_boost_locale+set}" = set; then :
18510   withval=$with_boost_locale;
18511         if test "$withval" = "no"; then
18512                         want_boost="no"
18513         elif test "$withval" = "yes"; then
18514             want_boost="yes"
18515             ax_boost_user_locale_lib=""
18516         else
18517                     want_boost="yes"
18518                 ax_boost_user_locale_lib="$withval"
18519                 fi
18520
18521 else
18522   want_boost="yes"
18523
18524 fi
18525
18526
18527         if test "x$want_boost" = "xyes"; then
18528
18529
18530                 CPPFLAGS_SAVED="$CPPFLAGS"
18531                 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18532                 export CPPFLAGS
18533
18534                 LDFLAGS_SAVED="$LDFLAGS"
18535                 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
18536                 export LDFLAGS
18537
18538         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Locale library is available" >&5
18539 $as_echo_n "checking whether the Boost::Locale library is available... " >&6; }
18540 if ${ax_cv_boost_locale+:} false; then :
18541   $as_echo_n "(cached) " >&6
18542 else
18543   ac_ext=cpp
18544 ac_cpp='$CXXCPP $CPPFLAGS'
18545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18548
18549                          CXXFLAGS_SAVE=$CXXFLAGS
18550
18551                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18552 /* end confdefs.h.  */
18553 #include <boost/locale.hpp>
18554 int
18555 main ()
18556 {
18557 boost::locale::generator gen;
18558                                    std::locale::global(gen(""));
18559   ;
18560   return 0;
18561 }
18562 _ACEOF
18563 if ac_fn_cxx_try_compile "$LINENO"; then :
18564   ax_cv_boost_locale=yes
18565 else
18566   ax_cv_boost_locale=no
18567 fi
18568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18569                          CXXFLAGS=$CXXFLAGS_SAVE
18570              ac_ext=c
18571 ac_cpp='$CPP $CPPFLAGS'
18572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18575
18576
18577 fi
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_locale" >&5
18579 $as_echo "$ax_cv_boost_locale" >&6; }
18580                 if test "x$ax_cv_boost_locale" = "xyes"; then
18581
18582
18583
18584 $as_echo "#define HAVE_BOOST_LOCALE /**/" >>confdefs.h
18585
18586             BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
18587
18588                         LDFLAGS_SAVE=$LDFLAGS
18589             if test "x$ax_boost_user_locale_lib" = "x"; then
18590                 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
18591                      ax_lib=${libextension}
18592                                     as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
18594 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
18595 if eval \${$as_ac_Lib+:} false; then :
18596   $as_echo_n "(cached) " >&6
18597 else
18598   ac_check_lib_save_LIBS=$LIBS
18599 LIBS="-l$ax_lib  $LIBS"
18600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18601 /* end confdefs.h.  */
18602
18603 /* Override any GCC internal prototype to avoid an error.
18604    Use char because int might match the return type of a GCC
18605    builtin and then its argument prototype would still apply.  */
18606 #ifdef __cplusplus
18607 extern "C"
18608 #endif
18609 char exit ();
18610 int
18611 main ()
18612 {
18613 return exit ();
18614   ;
18615   return 0;
18616 }
18617 _ACEOF
18618 if ac_fn_c_try_link "$LINENO"; then :
18619   eval "$as_ac_Lib=yes"
18620 else
18621   eval "$as_ac_Lib=no"
18622 fi
18623 rm -f core conftest.err conftest.$ac_objext \
18624     conftest$ac_exeext conftest.$ac_ext
18625 LIBS=$ac_check_lib_save_LIBS
18626 fi
18627 eval ac_res=\$$as_ac_Lib
18628                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18629 $as_echo "$ac_res" >&6; }
18630 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18631   BOOST_LOCALE_LIB="-l$ax_lib";  link_locale="yes"; break
18632 else
18633   link_locale="no"
18634 fi
18635
18636                                 done
18637                 if test "x$link_locale" != "xyes"; then
18638                 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
18639                      ax_lib=${libextension}
18640                                     as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
18642 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
18643 if eval \${$as_ac_Lib+:} false; then :
18644   $as_echo_n "(cached) " >&6
18645 else
18646   ac_check_lib_save_LIBS=$LIBS
18647 LIBS="-l$ax_lib  $LIBS"
18648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18649 /* end confdefs.h.  */
18650
18651 /* Override any GCC internal prototype to avoid an error.
18652    Use char because int might match the return type of a GCC
18653    builtin and then its argument prototype would still apply.  */
18654 #ifdef __cplusplus
18655 extern "C"
18656 #endif
18657 char exit ();
18658 int
18659 main ()
18660 {
18661 return exit ();
18662   ;
18663   return 0;
18664 }
18665 _ACEOF
18666 if ac_fn_c_try_link "$LINENO"; then :
18667   eval "$as_ac_Lib=yes"
18668 else
18669   eval "$as_ac_Lib=no"
18670 fi
18671 rm -f core conftest.err conftest.$ac_objext \
18672     conftest$ac_exeext conftest.$ac_ext
18673 LIBS=$ac_check_lib_save_LIBS
18674 fi
18675 eval ac_res=\$$as_ac_Lib
18676                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18677 $as_echo "$ac_res" >&6; }
18678 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18679   BOOST_LOCALE_LIB="-l$ax_lib";  link_locale="yes"; break
18680 else
18681   link_locale="no"
18682 fi
18683
18684                                 done
18685                 fi
18686
18687             else
18688                for ax_lib in $ax_boost_user_locale_lib boost_locale-$ax_boost_user_locale_lib; do
18689                                       as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
18691 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
18692 if eval \${$as_ac_Lib+:} false; then :
18693   $as_echo_n "(cached) " >&6
18694 else
18695   ac_check_lib_save_LIBS=$LIBS
18696 LIBS="-l$ax_lib  $LIBS"
18697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18698 /* end confdefs.h.  */
18699
18700 /* Override any GCC internal prototype to avoid an error.
18701    Use char because int might match the return type of a GCC
18702    builtin and then its argument prototype would still apply.  */
18703 #ifdef __cplusplus
18704 extern "C"
18705 #endif
18706 char exit ();
18707 int
18708 main ()
18709 {
18710 return exit ();
18711   ;
18712   return 0;
18713 }
18714 _ACEOF
18715 if ac_fn_c_try_link "$LINENO"; then :
18716   eval "$as_ac_Lib=yes"
18717 else
18718   eval "$as_ac_Lib=no"
18719 fi
18720 rm -f core conftest.err conftest.$ac_objext \
18721     conftest$ac_exeext conftest.$ac_ext
18722 LIBS=$ac_check_lib_save_LIBS
18723 fi
18724 eval ac_res=\$$as_ac_Lib
18725                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18726 $as_echo "$ac_res" >&6; }
18727 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18728   BOOST_LOCALE_LIB="-l$ax_lib";  link_locale="yes"; break
18729 else
18730   link_locale="no"
18731 fi
18732
18733                   done
18734
18735             fi
18736             if test "x$ax_lib" = "x"; then
18737                 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
18738             fi
18739                         if test "x$link_locale" = "xno"; then
18740                                 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
18741                         fi
18742                 fi
18743
18744                 CPPFLAGS="$CPPFLAGS_SAVED"
18745         LDFLAGS="$LDFLAGS_SAVED"
18746         fi
18747
18748                         # AX_BOOST_LOCALE incorrectly puts -L/... into LDFLAGS.
18749                         # That's broken because it then overrides the search path
18750                         # for *all* libraries in a link, not just for boost. Fix
18751                         # this by putting the LDFLAGS before the lib and leaving
18752                         # DBUS_PIM_PLUGIN_LDFLAGS empty (for now - might have to
18753                         # be revised if there ever are any boost flags which need
18754                         # to go to the start of the link line).
18755                         DBUS_PIM_PLUGIN_LIBS='$(BOOST_LDFLAGS) $(BOOST_LOCALE_LIB)'
18756                         DBUS_PIM_PLUGIN_LDFLAGS=
18757                         # We need to call ICU directly for the Han->Latin transformation.
18758
18759 pkg_failed=no
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
18761 $as_echo_n "checking for ICU... " >&6; }
18762
18763 if test -n "$ICU_CFLAGS"; then
18764     pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
18765  elif test -n "$PKG_CONFIG"; then
18766     if test -n "$PKG_CONFIG" && \
18767     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
18768   ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
18769   ac_status=$?
18770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18771   test $ac_status = 0; }; then
18772   pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc icu-i18n" 2>/dev/null`
18773                       test "x$?" != "x0" && pkg_failed=yes
18774 else
18775   pkg_failed=yes
18776 fi
18777  else
18778     pkg_failed=untried
18779 fi
18780 if test -n "$ICU_LIBS"; then
18781     pkg_cv_ICU_LIBS="$ICU_LIBS"
18782  elif test -n "$PKG_CONFIG"; then
18783     if test -n "$PKG_CONFIG" && \
18784     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
18785   ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
18786   ac_status=$?
18787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18788   test $ac_status = 0; }; then
18789   pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc icu-i18n" 2>/dev/null`
18790                       test "x$?" != "x0" && pkg_failed=yes
18791 else
18792   pkg_failed=yes
18793 fi
18794  else
18795     pkg_failed=untried
18796 fi
18797
18798
18799
18800 if test $pkg_failed = yes; then
18801         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18802 $as_echo "no" >&6; }
18803
18804 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18805         _pkg_short_errors_supported=yes
18806 else
18807         _pkg_short_errors_supported=no
18808 fi
18809         if test $_pkg_short_errors_supported = yes; then
18810                 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
18811         else
18812                 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
18813         fi
18814         # Put the nasty error message in config.log where it belongs
18815         echo "$ICU_PKG_ERRORS" >&5
18816
18817         as_fn_error $? "Package requirements (icu-uc icu-i18n) were not met:
18818
18819 $ICU_PKG_ERRORS
18820
18821 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18822 installed software in a non-standard prefix.
18823
18824 Alternatively, you may set the environment variables ICU_CFLAGS
18825 and ICU_LIBS to avoid the need to call pkg-config.
18826 See the pkg-config man page for more details." "$LINENO" 5
18827 elif test $pkg_failed = untried; then
18828         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18829 $as_echo "no" >&6; }
18830         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18832 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18833 is in your PATH or set the PKG_CONFIG environment variable to the full
18834 path to pkg-config.
18835
18836 Alternatively, you may set the environment variables ICU_CFLAGS
18837 and ICU_LIBS to avoid the need to call pkg-config.
18838 See the pkg-config man page for more details.
18839
18840 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18841 See \`config.log' for more details" "$LINENO" 5; }
18842 else
18843         ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
18844         ICU_LIBS=$pkg_cv_ICU_LIBS
18845         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18846 $as_echo "yes" >&6; }
18847
18848 fi
18849                         ;;
18850                 esac
18851
18852
18853
18854
18855                 # http://code.google.com/p/libphonenumber/
18856                 ac_ext=cpp
18857 ac_cpp='$CXXCPP $CPPFLAGS'
18858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18861
18862                 SAVED_CPPFLAGS=$CPPFLAGS
18863                 if test ! "$PHONENUMBERS_CFLAGS"; then
18864                       PHONENUMBERS_CFLAGS=-DI18N_PHONENUMBERS_USE_BOOST
18865                 fi
18866                 CPPFLAGS="$CPPFLAGS ${PHONENUMBERS_CFLAGS}"
18867
18868 for ac_header in phonenumbers/phonenumberutil.h
18869 do :
18870   ac_fn_cxx_check_header_mongrel "$LINENO" "phonenumbers/phonenumberutil.h" "ac_cv_header_phonenumbers_phonenumberutil_h" "$ac_includes_default"
18871 if test "x$ac_cv_header_phonenumbers_phonenumberutil_h" = xyes; then :
18872   cat >>confdefs.h <<_ACEOF
18873 #define HAVE_PHONENUMBERS_PHONENUMBERUTIL_H 1
18874 _ACEOF
18875
18876 fi
18877
18878 done
18879
18880                 SAVED_LIBS=$LIBS
18881                 if test ! "$PHONENUMBERS_LIBS"; then
18882                       PHONENUMBERS_LIBS=-lphonenumber
18883                 fi
18884                 LIBS="$LIBS $PHONENUMBERS_LIBS"
18885                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18886 /* end confdefs.h.  */
18887 #include <phonenumbers/phonenumberutil.h>
18888 int
18889 main ()
18890 {
18891 i18n::phonenumbers::PhoneNumberUtil::GetInstance()
18892   ;
18893   return 0;
18894 }
18895 _ACEOF
18896 if ac_fn_cxx_try_link "$LINENO"; then :
18897   true
18898 else
18899   as_fn_error $? "libphonebook not found, set PHONENUMBERS_CFLAGS and PHONENUMBERS_LIBS." "$LINENO" 5
18900 fi
18901 rm -f core conftest.err conftest.$ac_objext \
18902     conftest$ac_exeext conftest.$ac_ext
18903
18904
18905                 LIBS=$SAVED_LIBS
18906                 CPPFLAGS=$SAVED_CPPFLAGS
18907                 ;;
18908     esac
18909 fi
18910  if test "$enable_notify_compat" = "yes"; then
18911   NOTIFY_COMPATIBILITY_TRUE=
18912   NOTIFY_COMPATIBILITY_FALSE='#'
18913 else
18914   NOTIFY_COMPATIBILITY_TRUE='#'
18915   NOTIFY_COMPATIBILITY_FALSE=
18916 fi
18917
18918  if test "$enable_dbus_pim" != "no"; then
18919   COND_DBUS_PIM_TRUE=
18920   COND_DBUS_PIM_FALSE='#'
18921 else
18922   COND_DBUS_PIM_TRUE='#'
18923   COND_DBUS_PIM_FALSE=
18924 fi
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935 DBUS_SERVICES_DIR="${datadir}/dbus-1/services"
18936
18937
18938 cat >>confdefs.h <<_ACEOF
18939 #define DBUS_SERVICES_DIR "$DBUS_SERVICES_DIR"
18940 _ACEOF
18941
18942
18943 if test "$enable_gui" != "no" || test "$enable_dbus_service" != "no"; then
18944
18945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18946 $as_echo_n "checking whether NLS is requested... " >&6; }
18947     # Check whether --enable-nls was given.
18948 if test "${enable_nls+set}" = set; then :
18949   enableval=$enable_nls; USE_NLS=$enableval
18950 else
18951   USE_NLS=yes
18952 fi
18953
18954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18955 $as_echo "$USE_NLS" >&6; }
18956
18957
18958
18959
18960 case "$am__api_version" in
18961     1.01234)
18962         as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
18963     ;;
18964     *)
18965     ;;
18966 esac
18967
18968 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.37.1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
18969 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
18970 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
18971 if test -n "0.37.1"; then
18972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.37.1" >&5
18973 $as_echo_n "checking for intltool >= 0.37.1... " >&6; }
18974     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
18975 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
18976     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
18977         as_fn_error $? "Your intltool is too old.  You need intltool 0.37.1 or later." "$LINENO" 5
18978 fi
18979
18980 # Extract the first word of "intltool-update", so it can be a program name with args.
18981 set dummy intltool-update; ac_word=$2
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18983 $as_echo_n "checking for $ac_word... " >&6; }
18984 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
18985   $as_echo_n "(cached) " >&6
18986 else
18987   case $INTLTOOL_UPDATE in
18988   [\\/]* | ?:[\\/]*)
18989   ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
18990   ;;
18991   *)
18992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18993 for as_dir in $PATH
18994 do
18995   IFS=$as_save_IFS
18996   test -z "$as_dir" && as_dir=.
18997     for ac_exec_ext in '' $ac_executable_extensions; do
18998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18999     ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
19000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19001     break 2
19002   fi
19003 done
19004   done
19005 IFS=$as_save_IFS
19006
19007   ;;
19008 esac
19009 fi
19010 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
19011 if test -n "$INTLTOOL_UPDATE"; then
19012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
19013 $as_echo "$INTLTOOL_UPDATE" >&6; }
19014 else
19015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19016 $as_echo "no" >&6; }
19017 fi
19018
19019
19020 # Extract the first word of "intltool-merge", so it can be a program name with args.
19021 set dummy intltool-merge; ac_word=$2
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19023 $as_echo_n "checking for $ac_word... " >&6; }
19024 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
19025   $as_echo_n "(cached) " >&6
19026 else
19027   case $INTLTOOL_MERGE in
19028   [\\/]* | ?:[\\/]*)
19029   ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
19030   ;;
19031   *)
19032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19033 for as_dir in $PATH
19034 do
19035   IFS=$as_save_IFS
19036   test -z "$as_dir" && as_dir=.
19037     for ac_exec_ext in '' $ac_executable_extensions; do
19038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19039     ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
19040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19041     break 2
19042   fi
19043 done
19044   done
19045 IFS=$as_save_IFS
19046
19047   ;;
19048 esac
19049 fi
19050 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
19051 if test -n "$INTLTOOL_MERGE"; then
19052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
19053 $as_echo "$INTLTOOL_MERGE" >&6; }
19054 else
19055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19056 $as_echo "no" >&6; }
19057 fi
19058
19059
19060 # Extract the first word of "intltool-extract", so it can be a program name with args.
19061 set dummy intltool-extract; ac_word=$2
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19063 $as_echo_n "checking for $ac_word... " >&6; }
19064 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
19065   $as_echo_n "(cached) " >&6
19066 else
19067   case $INTLTOOL_EXTRACT in
19068   [\\/]* | ?:[\\/]*)
19069   ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
19070   ;;
19071   *)
19072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19073 for as_dir in $PATH
19074 do
19075   IFS=$as_save_IFS
19076   test -z "$as_dir" && as_dir=.
19077     for ac_exec_ext in '' $ac_executable_extensions; do
19078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19079     ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
19080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19081     break 2
19082   fi
19083 done
19084   done
19085 IFS=$as_save_IFS
19086
19087   ;;
19088 esac
19089 fi
19090 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
19091 if test -n "$INTLTOOL_EXTRACT"; then
19092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
19093 $as_echo "$INTLTOOL_EXTRACT" >&6; }
19094 else
19095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19096 $as_echo "no" >&6; }
19097 fi
19098
19099
19100 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
19101     as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
19102 fi
19103
19104 if test -z "$AM_DEFAULT_VERBOSITY"; then
19105   AM_DEFAULT_VERBOSITY=1
19106 fi
19107
19108
19109 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
19110 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
19111 INTLTOOL__v_MERGE_0='@echo "  ITMRG " $@;'
19112
19113
19114
19115
19116 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
19117 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
19118 intltool__v_merge_options_0='-q'
19119
19120
19121
19122
19123   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 $< $@'
19124 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 $< $@'
19125      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 $< $@'
19126      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 $< $@'
19127       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 $< $@'
19128      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 $< $@'
19129    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 $< $@'
19130     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 $< $@'
19131 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 $< $@'
19132        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 $< $@'
19133       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 $< $@'
19134 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
19135       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 $< $@'
19136 else
19137       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'
19138 fi
19139       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 $< $@'
19140       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 $< $@'
19141     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 $< $@'
19142   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 $< $@'
19143     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 $< $@'
19144     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 $< $@'
19145    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 $< $@'
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
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243 # Check the gettext tools to make sure they are GNU
19244 # Extract the first word of "xgettext", so it can be a program name with args.
19245 set dummy xgettext; ac_word=$2
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19247 $as_echo_n "checking for $ac_word... " >&6; }
19248 if ${ac_cv_path_XGETTEXT+:} false; then :
19249   $as_echo_n "(cached) " >&6
19250 else
19251   case $XGETTEXT in
19252   [\\/]* | ?:[\\/]*)
19253   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19254   ;;
19255   *)
19256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19257 for as_dir in $PATH
19258 do
19259   IFS=$as_save_IFS
19260   test -z "$as_dir" && as_dir=.
19261     for ac_exec_ext in '' $ac_executable_extensions; do
19262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19263     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
19264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19265     break 2
19266   fi
19267 done
19268   done
19269 IFS=$as_save_IFS
19270
19271   ;;
19272 esac
19273 fi
19274 XGETTEXT=$ac_cv_path_XGETTEXT
19275 if test -n "$XGETTEXT"; then
19276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19277 $as_echo "$XGETTEXT" >&6; }
19278 else
19279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19280 $as_echo "no" >&6; }
19281 fi
19282
19283
19284 # Extract the first word of "msgmerge", so it can be a program name with args.
19285 set dummy msgmerge; ac_word=$2
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19287 $as_echo_n "checking for $ac_word... " >&6; }
19288 if ${ac_cv_path_MSGMERGE+:} false; then :
19289   $as_echo_n "(cached) " >&6
19290 else
19291   case $MSGMERGE in
19292   [\\/]* | ?:[\\/]*)
19293   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
19294   ;;
19295   *)
19296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19297 for as_dir in $PATH
19298 do
19299   IFS=$as_save_IFS
19300   test -z "$as_dir" && as_dir=.
19301     for ac_exec_ext in '' $ac_executable_extensions; do
19302   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19303     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
19304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19305     break 2
19306   fi
19307 done
19308   done
19309 IFS=$as_save_IFS
19310
19311   ;;
19312 esac
19313 fi
19314 MSGMERGE=$ac_cv_path_MSGMERGE
19315 if test -n "$MSGMERGE"; then
19316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
19317 $as_echo "$MSGMERGE" >&6; }
19318 else
19319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19320 $as_echo "no" >&6; }
19321 fi
19322
19323
19324 # Extract the first word of "msgfmt", so it can be a program name with args.
19325 set dummy msgfmt; ac_word=$2
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19327 $as_echo_n "checking for $ac_word... " >&6; }
19328 if ${ac_cv_path_MSGFMT+:} false; then :
19329   $as_echo_n "(cached) " >&6
19330 else
19331   case $MSGFMT in
19332   [\\/]* | ?:[\\/]*)
19333   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19334   ;;
19335   *)
19336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19337 for as_dir in $PATH
19338 do
19339   IFS=$as_save_IFS
19340   test -z "$as_dir" && as_dir=.
19341     for ac_exec_ext in '' $ac_executable_extensions; do
19342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19343     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19345     break 2
19346   fi
19347 done
19348   done
19349 IFS=$as_save_IFS
19350
19351   ;;
19352 esac
19353 fi
19354 MSGFMT=$ac_cv_path_MSGFMT
19355 if test -n "$MSGFMT"; then
19356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19357 $as_echo "$MSGFMT" >&6; }
19358 else
19359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19360 $as_echo "no" >&6; }
19361 fi
19362
19363
19364 # Extract the first word of "gmsgfmt", so it can be a program name with args.
19365 set dummy gmsgfmt; ac_word=$2
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19367 $as_echo_n "checking for $ac_word... " >&6; }
19368 if ${ac_cv_path_GMSGFMT+:} false; then :
19369   $as_echo_n "(cached) " >&6
19370 else
19371   case $GMSGFMT in
19372   [\\/]* | ?:[\\/]*)
19373   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
19374   ;;
19375   *)
19376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19377 for as_dir in $PATH
19378 do
19379   IFS=$as_save_IFS
19380   test -z "$as_dir" && as_dir=.
19381     for ac_exec_ext in '' $ac_executable_extensions; do
19382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19383     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
19384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19385     break 2
19386   fi
19387 done
19388   done
19389 IFS=$as_save_IFS
19390
19391   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
19392   ;;
19393 esac
19394 fi
19395 GMSGFMT=$ac_cv_path_GMSGFMT
19396 if test -n "$GMSGFMT"; then
19397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
19398 $as_echo "$GMSGFMT" >&6; }
19399 else
19400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19401 $as_echo "no" >&6; }
19402 fi
19403
19404
19405 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
19406     as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
19407 fi
19408 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
19409 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
19410 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
19411 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
19412     as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
19413 fi
19414
19415 # Extract the first word of "perl", so it can be a program name with args.
19416 set dummy perl; ac_word=$2
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19418 $as_echo_n "checking for $ac_word... " >&6; }
19419 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
19420   $as_echo_n "(cached) " >&6
19421 else
19422   case $INTLTOOL_PERL in
19423   [\\/]* | ?:[\\/]*)
19424   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
19425   ;;
19426   *)
19427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19428 for as_dir in $PATH
19429 do
19430   IFS=$as_save_IFS
19431   test -z "$as_dir" && as_dir=.
19432     for ac_exec_ext in '' $ac_executable_extensions; do
19433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19434     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
19435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19436     break 2
19437   fi
19438 done
19439   done
19440 IFS=$as_save_IFS
19441
19442   ;;
19443 esac
19444 fi
19445 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
19446 if test -n "$INTLTOOL_PERL"; then
19447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
19448 $as_echo "$INTLTOOL_PERL" >&6; }
19449 else
19450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19451 $as_echo "no" >&6; }
19452 fi
19453
19454
19455 if test -z "$INTLTOOL_PERL"; then
19456    as_fn_error $? "perl not found" "$LINENO" 5
19457 fi
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
19459 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
19460 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
19461 if test $? -ne 0; then
19462    as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
19463 else
19464    IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
19465    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
19466 $as_echo "$IT_PERL_VERSION" >&6; }
19467 fi
19468 if test "x" != "xno-xml"; then
19469    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
19470 $as_echo_n "checking for XML::Parser... " >&6; }
19471    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
19472        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
19473 $as_echo "ok" >&6; }
19474    else
19475        as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
19476    fi
19477 fi
19478
19479 # Substitute ALL_LINGUAS so we can use it in po/Makefile
19480
19481
19482 # Set DATADIRNAME correctly if it is not set yet
19483 # (copied from glib-gettext.m4)
19484 if test -z "$DATADIRNAME"; then
19485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19486 /* end confdefs.h.  */
19487
19488 int
19489 main ()
19490 {
19491 extern int _nl_msg_cat_cntr;
19492                        return _nl_msg_cat_cntr
19493   ;
19494   return 0;
19495 }
19496 _ACEOF
19497 if ac_fn_cxx_try_link "$LINENO"; then :
19498   DATADIRNAME=share
19499 else
19500   case $host in
19501     *-*-solaris*)
19502                         ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19503 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19504   DATADIRNAME=share
19505 else
19506   DATADIRNAME=lib
19507 fi
19508
19509     ;;
19510     *)
19511     DATADIRNAME=lib
19512     ;;
19513     esac
19514 fi
19515 rm -f core conftest.err conftest.$ac_objext \
19516     conftest$ac_exeext conftest.$ac_ext
19517 fi
19518
19519
19520
19521
19522
19523     GETTEXT_PACKAGE=syncevolution
19524
19525 cat >>confdefs.h <<_ACEOF
19526 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
19527 _ACEOF
19528
19529
19530    for ac_header in locale.h
19531 do :
19532   ac_fn_cxx_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
19533 if test "x$ac_cv_header_locale_h" = xyes; then :
19534   cat >>confdefs.h <<_ACEOF
19535 #define HAVE_LOCALE_H 1
19536 _ACEOF
19537
19538 fi
19539
19540 done
19541
19542     if test $ac_cv_header_locale_h = yes; then
19543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19544 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19545 if ${am_cv_val_LC_MESSAGES+:} false; then :
19546   $as_echo_n "(cached) " >&6
19547 else
19548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19549 /* end confdefs.h.  */
19550 #include <locale.h>
19551 int
19552 main ()
19553 {
19554 return LC_MESSAGES
19555   ;
19556   return 0;
19557 }
19558 _ACEOF
19559 if ac_fn_cxx_try_link "$LINENO"; then :
19560   am_cv_val_LC_MESSAGES=yes
19561 else
19562   am_cv_val_LC_MESSAGES=no
19563 fi
19564 rm -f core conftest.err conftest.$ac_objext \
19565     conftest$ac_exeext conftest.$ac_ext
19566 fi
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
19568 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
19569     if test $am_cv_val_LC_MESSAGES = yes; then
19570
19571 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19572
19573     fi
19574   fi
19575      USE_NLS=yes
19576
19577
19578     gt_cv_have_gettext=no
19579
19580     CATOBJEXT=NONE
19581     XGETTEXT=:
19582     INTLLIBS=
19583
19584     ac_fn_cxx_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
19585 if test "x$ac_cv_header_libintl_h" = xyes; then :
19586   gt_cv_func_dgettext_libintl="no"
19587       libintl_extra_libs=""
19588
19589       #
19590       # First check in libc
19591       #
19592       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
19593 $as_echo_n "checking for ngettext in libc... " >&6; }
19594 if ${gt_cv_func_ngettext_libc+:} false; then :
19595   $as_echo_n "(cached) " >&6
19596 else
19597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19598 /* end confdefs.h.  */
19599
19600 #include <libintl.h>
19601
19602 int
19603 main ()
19604 {
19605 return !ngettext ("","", 1)
19606   ;
19607   return 0;
19608 }
19609 _ACEOF
19610 if ac_fn_cxx_try_link "$LINENO"; then :
19611   gt_cv_func_ngettext_libc=yes
19612 else
19613   gt_cv_func_ngettext_libc=no
19614 fi
19615 rm -f core conftest.err conftest.$ac_objext \
19616     conftest$ac_exeext conftest.$ac_ext
19617
19618 fi
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
19620 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
19621
19622       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
19623               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
19624 $as_echo_n "checking for dgettext in libc... " >&6; }
19625 if ${gt_cv_func_dgettext_libc+:} false; then :
19626   $as_echo_n "(cached) " >&6
19627 else
19628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19629 /* end confdefs.h.  */
19630
19631 #include <libintl.h>
19632
19633 int
19634 main ()
19635 {
19636 return !dgettext ("","")
19637   ;
19638   return 0;
19639 }
19640 _ACEOF
19641 if ac_fn_cxx_try_link "$LINENO"; then :
19642   gt_cv_func_dgettext_libc=yes
19643 else
19644   gt_cv_func_dgettext_libc=no
19645 fi
19646 rm -f core conftest.err conftest.$ac_objext \
19647     conftest$ac_exeext conftest.$ac_ext
19648
19649 fi
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
19651 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
19652       fi
19653
19654       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
19655         for ac_func in bind_textdomain_codeset
19656 do :
19657   ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19658 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19659   cat >>confdefs.h <<_ACEOF
19660 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19661 _ACEOF
19662
19663 fi
19664 done
19665
19666       fi
19667
19668       #
19669       # If we don't have everything we want, check in libintl
19670       #
19671       if test "$gt_cv_func_dgettext_libc" != "yes" \
19672          || test "$gt_cv_func_ngettext_libc" != "yes" \
19673          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
19674
19675         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
19676 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
19677 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
19678   $as_echo_n "(cached) " >&6
19679 else
19680   ac_check_lib_save_LIBS=$LIBS
19681 LIBS="-lintl  $LIBS"
19682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19683 /* end confdefs.h.  */
19684
19685 /* Override any GCC internal prototype to avoid an error.
19686    Use char because int might match the return type of a GCC
19687    builtin and then its argument prototype would still apply.  */
19688 #ifdef __cplusplus
19689 extern "C"
19690 #endif
19691 char bindtextdomain ();
19692 int
19693 main ()
19694 {
19695 return bindtextdomain ();
19696   ;
19697   return 0;
19698 }
19699 _ACEOF
19700 if ac_fn_cxx_try_link "$LINENO"; then :
19701   ac_cv_lib_intl_bindtextdomain=yes
19702 else
19703   ac_cv_lib_intl_bindtextdomain=no
19704 fi
19705 rm -f core conftest.err conftest.$ac_objext \
19706     conftest$ac_exeext conftest.$ac_ext
19707 LIBS=$ac_check_lib_save_LIBS
19708 fi
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
19710 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
19711 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
19712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
19713 $as_echo_n "checking for ngettext in -lintl... " >&6; }
19714 if ${ac_cv_lib_intl_ngettext+:} false; then :
19715   $as_echo_n "(cached) " >&6
19716 else
19717   ac_check_lib_save_LIBS=$LIBS
19718 LIBS="-lintl  $LIBS"
19719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19720 /* end confdefs.h.  */
19721
19722 /* Override any GCC internal prototype to avoid an error.
19723    Use char because int might match the return type of a GCC
19724    builtin and then its argument prototype would still apply.  */
19725 #ifdef __cplusplus
19726 extern "C"
19727 #endif
19728 char ngettext ();
19729 int
19730 main ()
19731 {
19732 return ngettext ();
19733   ;
19734   return 0;
19735 }
19736 _ACEOF
19737 if ac_fn_cxx_try_link "$LINENO"; then :
19738   ac_cv_lib_intl_ngettext=yes
19739 else
19740   ac_cv_lib_intl_ngettext=no
19741 fi
19742 rm -f core conftest.err conftest.$ac_objext \
19743     conftest$ac_exeext conftest.$ac_ext
19744 LIBS=$ac_check_lib_save_LIBS
19745 fi
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
19747 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
19748 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
19749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
19750 $as_echo_n "checking for dgettext in -lintl... " >&6; }
19751 if ${ac_cv_lib_intl_dgettext+:} false; then :
19752   $as_echo_n "(cached) " >&6
19753 else
19754   ac_check_lib_save_LIBS=$LIBS
19755 LIBS="-lintl  $LIBS"
19756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19757 /* end confdefs.h.  */
19758
19759 /* Override any GCC internal prototype to avoid an error.
19760    Use char because int might match the return type of a GCC
19761    builtin and then its argument prototype would still apply.  */
19762 #ifdef __cplusplus
19763 extern "C"
19764 #endif
19765 char dgettext ();
19766 int
19767 main ()
19768 {
19769 return dgettext ();
19770   ;
19771   return 0;
19772 }
19773 _ACEOF
19774 if ac_fn_cxx_try_link "$LINENO"; then :
19775   ac_cv_lib_intl_dgettext=yes
19776 else
19777   ac_cv_lib_intl_dgettext=no
19778 fi
19779 rm -f core conftest.err conftest.$ac_objext \
19780     conftest$ac_exeext conftest.$ac_ext
19781 LIBS=$ac_check_lib_save_LIBS
19782 fi
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
19784 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19785 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
19786   gt_cv_func_dgettext_libintl=yes
19787 fi
19788
19789 fi
19790
19791 fi
19792
19793
19794         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
19795           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
19796 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
19797           { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
19798 $as_echo "" >&6; }
19799           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
19800 $as_echo_n "checking for ngettext in -lintl... " >&6; }
19801 if ${ac_cv_lib_intl_ngettext+:} false; then :
19802   $as_echo_n "(cached) " >&6
19803 else
19804   ac_check_lib_save_LIBS=$LIBS
19805 LIBS="-lintl -liconv $LIBS"
19806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19807 /* end confdefs.h.  */
19808
19809 /* Override any GCC internal prototype to avoid an error.
19810    Use char because int might match the return type of a GCC
19811    builtin and then its argument prototype would still apply.  */
19812 #ifdef __cplusplus
19813 extern "C"
19814 #endif
19815 char ngettext ();
19816 int
19817 main ()
19818 {
19819 return ngettext ();
19820   ;
19821   return 0;
19822 }
19823 _ACEOF
19824 if ac_fn_cxx_try_link "$LINENO"; then :
19825   ac_cv_lib_intl_ngettext=yes
19826 else
19827   ac_cv_lib_intl_ngettext=no
19828 fi
19829 rm -f core conftest.err conftest.$ac_objext \
19830     conftest$ac_exeext conftest.$ac_ext
19831 LIBS=$ac_check_lib_save_LIBS
19832 fi
19833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
19834 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
19835 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
19836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
19837 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
19838 if ${ac_cv_lib_intl_dcgettext+:} false; then :
19839   $as_echo_n "(cached) " >&6
19840 else
19841   ac_check_lib_save_LIBS=$LIBS
19842 LIBS="-lintl -liconv $LIBS"
19843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19844 /* end confdefs.h.  */
19845
19846 /* Override any GCC internal prototype to avoid an error.
19847    Use char because int might match the return type of a GCC
19848    builtin and then its argument prototype would still apply.  */
19849 #ifdef __cplusplus
19850 extern "C"
19851 #endif
19852 char dcgettext ();
19853 int
19854 main ()
19855 {
19856 return dcgettext ();
19857   ;
19858   return 0;
19859 }
19860 _ACEOF
19861 if ac_fn_cxx_try_link "$LINENO"; then :
19862   ac_cv_lib_intl_dcgettext=yes
19863 else
19864   ac_cv_lib_intl_dcgettext=no
19865 fi
19866 rm -f core conftest.err conftest.$ac_objext \
19867     conftest$ac_exeext conftest.$ac_ext
19868 LIBS=$ac_check_lib_save_LIBS
19869 fi
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
19871 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
19872 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
19873   gt_cv_func_dgettext_libintl=yes
19874                         libintl_extra_libs=-liconv
19875 else
19876   :
19877 fi
19878
19879 else
19880   :
19881 fi
19882
19883         fi
19884
19885         #
19886         # If we found libintl, then check in it for bind_textdomain_codeset();
19887         # we'll prefer libc if neither have bind_textdomain_codeset(),
19888         # and both have dgettext and ngettext
19889         #
19890         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
19891           glib_save_LIBS="$LIBS"
19892           LIBS="$LIBS -lintl $libintl_extra_libs"
19893           unset ac_cv_func_bind_textdomain_codeset
19894           for ac_func in bind_textdomain_codeset
19895 do :
19896   ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19897 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19898   cat >>confdefs.h <<_ACEOF
19899 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19900 _ACEOF
19901
19902 fi
19903 done
19904
19905           LIBS="$glib_save_LIBS"
19906
19907           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
19908             gt_cv_func_dgettext_libc=no
19909           else
19910             if test "$gt_cv_func_dgettext_libc" = "yes" \
19911                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
19912               gt_cv_func_dgettext_libintl=no
19913             fi
19914           fi
19915         fi
19916       fi
19917
19918       if test "$gt_cv_func_dgettext_libc" = "yes" \
19919         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
19920         gt_cv_have_gettext=yes
19921       fi
19922
19923       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
19924         INTLLIBS="-lintl $libintl_extra_libs"
19925       fi
19926
19927       if test "$gt_cv_have_gettext" = "yes"; then
19928
19929 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
19930
19931         # Extract the first word of "msgfmt", so it can be a program name with args.
19932 set dummy msgfmt; ac_word=$2
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19934 $as_echo_n "checking for $ac_word... " >&6; }
19935 if ${ac_cv_path_MSGFMT+:} false; then :
19936   $as_echo_n "(cached) " >&6
19937 else
19938   case "$MSGFMT" in
19939   /*)
19940   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19941   ;;
19942   *)
19943   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
19944   for ac_dir in $PATH; do
19945     test -z "$ac_dir" && ac_dir=.
19946     if test -f $ac_dir/$ac_word; then
19947       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
19948         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
19949         break
19950       fi
19951     fi
19952   done
19953   IFS="$ac_save_ifs"
19954   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
19955   ;;
19956 esac
19957 fi
19958 MSGFMT="$ac_cv_path_MSGFMT"
19959 if test "$MSGFMT" != "no"; then
19960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19961 $as_echo "$MSGFMT" >&6; }
19962 else
19963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19964 $as_echo "no" >&6; }
19965 fi
19966         if test "$MSGFMT" != "no"; then
19967           glib_save_LIBS="$LIBS"
19968           LIBS="$LIBS $INTLLIBS"
19969           for ac_func in dcgettext
19970 do :
19971   ac_fn_cxx_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
19972 if test "x$ac_cv_func_dcgettext" = xyes; then :
19973   cat >>confdefs.h <<_ACEOF
19974 #define HAVE_DCGETTEXT 1
19975 _ACEOF
19976
19977 fi
19978 done
19979
19980           MSGFMT_OPTS=
19981           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
19982 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
19983           cat >conftest.foo <<_ACEOF
19984
19985 msgid ""
19986 msgstr ""
19987 "Content-Type: text/plain; charset=UTF-8\n"
19988 "Project-Id-Version: test 1.0\n"
19989 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
19990 "Last-Translator: test <foo@bar.xx>\n"
19991 "Language-Team: C <LL@li.org>\n"
19992 "MIME-Version: 1.0\n"
19993 "Content-Transfer-Encoding: 8bit\n"
19994
19995 _ACEOF
19996 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
19997   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
19998   ac_status=$?
19999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20000   test $ac_status = 0; }; then
20001   MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20002 $as_echo "yes" >&6; }
20003 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20004 $as_echo "no" >&6; }
20005 echo "$as_me: failed input was:" >&5
20006 sed 's/^/| /' conftest.foo >&5
20007 fi
20008
20009           # Extract the first word of "gmsgfmt", so it can be a program name with args.
20010 set dummy gmsgfmt; ac_word=$2
20011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20012 $as_echo_n "checking for $ac_word... " >&6; }
20013 if ${ac_cv_path_GMSGFMT+:} false; then :
20014   $as_echo_n "(cached) " >&6
20015 else
20016   case $GMSGFMT in
20017   [\\/]* | ?:[\\/]*)
20018   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20019   ;;
20020   *)
20021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20022 for as_dir in $PATH
20023 do
20024   IFS=$as_save_IFS
20025   test -z "$as_dir" && as_dir=.
20026     for ac_exec_ext in '' $ac_executable_extensions; do
20027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20028     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20030     break 2
20031   fi
20032 done
20033   done
20034 IFS=$as_save_IFS
20035
20036   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20037   ;;
20038 esac
20039 fi
20040 GMSGFMT=$ac_cv_path_GMSGFMT
20041 if test -n "$GMSGFMT"; then
20042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
20043 $as_echo "$GMSGFMT" >&6; }
20044 else
20045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20046 $as_echo "no" >&6; }
20047 fi
20048
20049
20050           # Extract the first word of "xgettext", so it can be a program name with args.
20051 set dummy xgettext; ac_word=$2
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20053 $as_echo_n "checking for $ac_word... " >&6; }
20054 if ${ac_cv_path_XGETTEXT+:} false; then :
20055   $as_echo_n "(cached) " >&6
20056 else
20057   case "$XGETTEXT" in
20058   /*)
20059   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20060   ;;
20061   *)
20062   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
20063   for ac_dir in $PATH; do
20064     test -z "$ac_dir" && ac_dir=.
20065     if test -f $ac_dir/$ac_word; then
20066       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
20067         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
20068         break
20069       fi
20070     fi
20071   done
20072   IFS="$ac_save_ifs"
20073   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
20074   ;;
20075 esac
20076 fi
20077 XGETTEXT="$ac_cv_path_XGETTEXT"
20078 if test "$XGETTEXT" != ":"; then
20079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
20080 $as_echo "$XGETTEXT" >&6; }
20081 else
20082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20083 $as_echo "no" >&6; }
20084 fi
20085
20086           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20087 /* end confdefs.h.  */
20088
20089 int
20090 main ()
20091 {
20092 extern int _nl_msg_cat_cntr;
20093                          return _nl_msg_cat_cntr
20094   ;
20095   return 0;
20096 }
20097 _ACEOF
20098 if ac_fn_cxx_try_link "$LINENO"; then :
20099   CATOBJEXT=.gmo
20100              DATADIRNAME=share
20101 else
20102   case $host in
20103             *-*-solaris*)
20104                                                                 ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
20105 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
20106   CATOBJEXT=.gmo
20107                DATADIRNAME=share
20108 else
20109   CATOBJEXT=.mo
20110                DATADIRNAME=lib
20111 fi
20112
20113             ;;
20114             *-*-openbsd*)
20115             CATOBJEXT=.mo
20116             DATADIRNAME=share
20117             ;;
20118             *)
20119             CATOBJEXT=.mo
20120             DATADIRNAME=lib
20121             ;;
20122             esac
20123 fi
20124 rm -f core conftest.err conftest.$ac_objext \
20125     conftest$ac_exeext conftest.$ac_ext
20126           LIBS="$glib_save_LIBS"
20127           INSTOBJEXT=.mo
20128         else
20129           gt_cv_have_gettext=no
20130         fi
20131       fi
20132
20133 fi
20134
20135
20136
20137     if test "$gt_cv_have_gettext" = "yes" ; then
20138
20139 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20140
20141     fi
20142
20143         if test "$XGETTEXT" != ":"; then
20144                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
20145         : ;
20146       else
20147         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
20148 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
20149         XGETTEXT=":"
20150       fi
20151     fi
20152
20153     # We need to process the po/ directory.
20154     POSUB=po
20155
20156     ac_config_commands="$ac_config_commands default-1"
20157
20158
20159                 for lang in $ALL_LINGUAS; do
20160       GMOFILES="$GMOFILES $lang.gmo"
20161       POFILES="$POFILES $lang.po"
20162     done
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176    if test "$gt_cv_have_gettext" = "yes"; then
20177      if test "x$ALL_LINGUAS" = "x"; then
20178        LINGUAS=
20179      else
20180        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
20181 $as_echo_n "checking for catalogs to be installed... " >&6; }
20182        NEW_LINGUAS=
20183        for presentlang in $ALL_LINGUAS; do
20184          useit=no
20185          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
20186            desiredlanguages="$LINGUAS"
20187          else
20188            desiredlanguages="$ALL_LINGUAS"
20189          fi
20190          for desiredlang in $desiredlanguages; do
20191            # Use the presentlang catalog if desiredlang is
20192            #   a. equal to presentlang, or
20193            #   b. a variant of presentlang (because in this case,
20194            #      presentlang can be used as a fallback for messages
20195            #      which are not translated in the desiredlang catalog).
20196            case "$desiredlang" in
20197              "$presentlang"*) useit=yes;;
20198            esac
20199          done
20200          if test $useit = yes; then
20201            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
20202          fi
20203        done
20204        LINGUAS=$NEW_LINGUAS
20205        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
20206 $as_echo "$LINGUAS" >&6; }
20207      fi
20208
20209           if test -n "$LINGUAS"; then
20210        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
20211      fi
20212    fi
20213
20214             MKINSTALLDIRS=
20215    if test -n "$ac_aux_dir"; then
20216      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
20217    fi
20218    if test -z "$MKINSTALLDIRS"; then
20219      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
20220    fi
20221
20222
20223          test -d po || mkdir po
20224    if test "x$srcdir" != "x."; then
20225      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
20226        posrcprefix="$srcdir/"
20227      else
20228        posrcprefix="../$srcdir/"
20229      fi
20230    else
20231      posrcprefix="../"
20232    fi
20233    rm -f po/POTFILES
20234    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
20235         < $srcdir/po/POTFILES.in > po/POTFILES
20236
20237     SYNCEVOLUTION_LOCALEDIR=${datadir}/locale
20238 fi
20239
20240 # decide which sync-ui(s) we are building:
20241 # sync-ui (in either GTK or Moblin mode) or both (in separate binaries)
20242
20243 if test $gtk_version = "gtk+-3.0"; then
20244     gtk_dir=src/gtk3-ui
20245 else
20246     gtk_dir=src/gtk-ui
20247 fi
20248
20249 case $enable_gui in
20250      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";;
20251      gtk|moblin) GUI_PROGRAMS=${gtk_dir}'/sync-ui${EXEEXT}'; GUI_DESKTOP_FILES="${gtk_dir}/sync.desktop";;
20252      no) GUI_PROGRAMS=; GUI_DESKTOP_FILES=;;
20253      *) as_fn_error $? "Unknown enable_gui type: '$enable_gui'" "$LINENO" 5
20254 esac
20255
20256 if test $enable_gui != "no"; then
20257
20258 pkg_failed=no
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS_GLIB" >&5
20260 $as_echo_n "checking for DBUS_GLIB... " >&6; }
20261
20262 if test -n "$DBUS_GLIB_CFLAGS"; then
20263     pkg_cv_DBUS_GLIB_CFLAGS="$DBUS_GLIB_CFLAGS"
20264  elif test -n "$PKG_CONFIG"; then
20265     if test -n "$PKG_CONFIG" && \
20266     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 glib-2.0\""; } >&5
20267   ($PKG_CONFIG --exists --print-errors "dbus-glib-1 glib-2.0") 2>&5
20268   ac_status=$?
20269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20270   test $ac_status = 0; }; then
20271   pkg_cv_DBUS_GLIB_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 glib-2.0" 2>/dev/null`
20272                       test "x$?" != "x0" && pkg_failed=yes
20273 else
20274   pkg_failed=yes
20275 fi
20276  else
20277     pkg_failed=untried
20278 fi
20279 if test -n "$DBUS_GLIB_LIBS"; then
20280     pkg_cv_DBUS_GLIB_LIBS="$DBUS_GLIB_LIBS"
20281  elif test -n "$PKG_CONFIG"; then
20282     if test -n "$PKG_CONFIG" && \
20283     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 glib-2.0\""; } >&5
20284   ($PKG_CONFIG --exists --print-errors "dbus-glib-1 glib-2.0") 2>&5
20285   ac_status=$?
20286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20287   test $ac_status = 0; }; then
20288   pkg_cv_DBUS_GLIB_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 glib-2.0" 2>/dev/null`
20289                       test "x$?" != "x0" && pkg_failed=yes
20290 else
20291   pkg_failed=yes
20292 fi
20293  else
20294     pkg_failed=untried
20295 fi
20296
20297
20298
20299 if test $pkg_failed = yes; then
20300         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20301 $as_echo "no" >&6; }
20302
20303 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20304         _pkg_short_errors_supported=yes
20305 else
20306         _pkg_short_errors_supported=no
20307 fi
20308         if test $_pkg_short_errors_supported = yes; then
20309                 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-glib-1 glib-2.0" 2>&1`
20310         else
20311                 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-glib-1 glib-2.0" 2>&1`
20312         fi
20313         # Put the nasty error message in config.log where it belongs
20314         echo "$DBUS_GLIB_PKG_ERRORS" >&5
20315
20316         as_fn_error $? "Package requirements (dbus-glib-1 glib-2.0) were not met:
20317
20318 $DBUS_GLIB_PKG_ERRORS
20319
20320 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20321 installed software in a non-standard prefix.
20322
20323 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
20324 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
20325 See the pkg-config man page for more details." "$LINENO" 5
20326 elif test $pkg_failed = untried; then
20327         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20328 $as_echo "no" >&6; }
20329         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20331 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20332 is in your PATH or set the PKG_CONFIG environment variable to the full
20333 path to pkg-config.
20334
20335 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
20336 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
20337 See the pkg-config man page for more details.
20338
20339 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20340 See \`config.log' for more details" "$LINENO" 5; }
20341 else
20342         DBUS_GLIB_CFLAGS=$pkg_cv_DBUS_GLIB_CFLAGS
20343         DBUS_GLIB_LIBS=$pkg_cv_DBUS_GLIB_LIBS
20344         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20345 $as_echo "yes" >&6; }
20346
20347 fi
20348     # Extract the first word of "dbus-binding-tool", so it can be a program name with args.
20349 set dummy dbus-binding-tool; ac_word=$2
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20351 $as_echo_n "checking for $ac_word... " >&6; }
20352 if ${ac_cv_path_DBUS_BINDING_TOOL+:} false; then :
20353   $as_echo_n "(cached) " >&6
20354 else
20355   case $DBUS_BINDING_TOOL in
20356   [\\/]* | ?:[\\/]*)
20357   ac_cv_path_DBUS_BINDING_TOOL="$DBUS_BINDING_TOOL" # Let the user override the test with a path.
20358   ;;
20359   *)
20360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20361 for as_dir in $PATH
20362 do
20363   IFS=$as_save_IFS
20364   test -z "$as_dir" && as_dir=.
20365     for ac_exec_ext in '' $ac_executable_extensions; do
20366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20367     ac_cv_path_DBUS_BINDING_TOOL="$as_dir/$ac_word$ac_exec_ext"
20368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20369     break 2
20370   fi
20371 done
20372   done
20373 IFS=$as_save_IFS
20374
20375   ;;
20376 esac
20377 fi
20378 DBUS_BINDING_TOOL=$ac_cv_path_DBUS_BINDING_TOOL
20379 if test -n "$DBUS_BINDING_TOOL"; then
20380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_BINDING_TOOL" >&5
20381 $as_echo "$DBUS_BINDING_TOOL" >&6; }
20382 else
20383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20384 $as_echo "no" >&6; }
20385 fi
20386
20387
20388     # Extract the first word of "glib-genmarshal", so it can be a program name with args.
20389 set dummy glib-genmarshal; ac_word=$2
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20391 $as_echo_n "checking for $ac_word... " >&6; }
20392 if ${ac_cv_path_GLIB_GENMARSHAL+:} false; then :
20393   $as_echo_n "(cached) " >&6
20394 else
20395   case $GLIB_GENMARSHAL in
20396   [\\/]* | ?:[\\/]*)
20397   ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
20398   ;;
20399   *)
20400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20401 for as_dir in $PATH
20402 do
20403   IFS=$as_save_IFS
20404   test -z "$as_dir" && as_dir=.
20405     for ac_exec_ext in '' $ac_executable_extensions; do
20406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20407     ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
20408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20409     break 2
20410   fi
20411 done
20412   done
20413 IFS=$as_save_IFS
20414
20415   ;;
20416 esac
20417 fi
20418 GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
20419 if test -n "$GLIB_GENMARSHAL"; then
20420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL" >&5
20421 $as_echo "$GLIB_GENMARSHAL" >&6; }
20422 else
20423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20424 $as_echo "no" >&6; }
20425 fi
20426
20427
20428
20429     gui_modules="$gtk_version glib-2.0 dbus-glib-1 >= 0.60 gio-2.0 gio-unix-2.0"
20430     if test $enable_gui = "moblin"; then
20431
20432 $as_echo "#define USE_MOBLIN_UX 1" >>confdefs.h
20433
20434     fi
20435
20436     # gtk3 provides a switch widget, otherwise we need mx-gtk
20437     if test $gtk_version != "gtk+-3.0" &&
20438        test $enable_gui = "moblin" -o $enable_gui = "all"; then
20439         gui_modules="$gui_modules mx-gtk-1.0"
20440
20441
20442 pkg_failed=no
20443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MX_GTK_0_99_1" >&5
20444 $as_echo_n "checking for MX_GTK_0_99_1... " >&6; }
20445
20446 if test -n "$MX_GTK_0_99_1_CFLAGS"; then
20447     pkg_cv_MX_GTK_0_99_1_CFLAGS="$MX_GTK_0_99_1_CFLAGS"
20448  elif test -n "$PKG_CONFIG"; then
20449     if test -n "$PKG_CONFIG" && \
20450     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mx-gtk-1.0 >= 0.99.1\""; } >&5
20451   ($PKG_CONFIG --exists --print-errors "mx-gtk-1.0 >= 0.99.1") 2>&5
20452   ac_status=$?
20453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20454   test $ac_status = 0; }; then
20455   pkg_cv_MX_GTK_0_99_1_CFLAGS=`$PKG_CONFIG --cflags "mx-gtk-1.0 >= 0.99.1" 2>/dev/null`
20456                       test "x$?" != "x0" && pkg_failed=yes
20457 else
20458   pkg_failed=yes
20459 fi
20460  else
20461     pkg_failed=untried
20462 fi
20463 if test -n "$MX_GTK_0_99_1_LIBS"; then
20464     pkg_cv_MX_GTK_0_99_1_LIBS="$MX_GTK_0_99_1_LIBS"
20465  elif test -n "$PKG_CONFIG"; then
20466     if test -n "$PKG_CONFIG" && \
20467     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mx-gtk-1.0 >= 0.99.1\""; } >&5
20468   ($PKG_CONFIG --exists --print-errors "mx-gtk-1.0 >= 0.99.1") 2>&5
20469   ac_status=$?
20470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20471   test $ac_status = 0; }; then
20472   pkg_cv_MX_GTK_0_99_1_LIBS=`$PKG_CONFIG --libs "mx-gtk-1.0 >= 0.99.1" 2>/dev/null`
20473                       test "x$?" != "x0" && pkg_failed=yes
20474 else
20475   pkg_failed=yes
20476 fi
20477  else
20478     pkg_failed=untried
20479 fi
20480
20481
20482
20483 if test $pkg_failed = yes; then
20484         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20485 $as_echo "no" >&6; }
20486
20487 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20488         _pkg_short_errors_supported=yes
20489 else
20490         _pkg_short_errors_supported=no
20491 fi
20492         if test $_pkg_short_errors_supported = yes; then
20493                 MX_GTK_0_99_1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mx-gtk-1.0 >= 0.99.1" 2>&1`
20494         else
20495                 MX_GTK_0_99_1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mx-gtk-1.0 >= 0.99.1" 2>&1`
20496         fi
20497         # Put the nasty error message in config.log where it belongs
20498         echo "$MX_GTK_0_99_1_PKG_ERRORS" >&5
20499
20500         have_mx_gtk_0_99_1="no"
20501 elif test $pkg_failed = untried; then
20502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20503 $as_echo "no" >&6; }
20504         have_mx_gtk_0_99_1="no"
20505 else
20506         MX_GTK_0_99_1_CFLAGS=$pkg_cv_MX_GTK_0_99_1_CFLAGS
20507         MX_GTK_0_99_1_LIBS=$pkg_cv_MX_GTK_0_99_1_LIBS
20508         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20509 $as_echo "yes" >&6; }
20510         have_mx_gtk_0_99_1="yes"
20511 fi
20512         if test $have_mx_gtk_0_99_1 = "yes"; then
20513
20514 $as_echo "#define MX_GTK_0_99_1 1" >>confdefs.h
20515
20516         fi
20517     fi
20518
20519
20520 pkg_failed=no
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQUE" >&5
20522 $as_echo_n "checking for UNIQUE... " >&6; }
20523
20524 if test -n "$UNIQUE_CFLAGS"; then
20525     pkg_cv_UNIQUE_CFLAGS="$UNIQUE_CFLAGS"
20526  elif test -n "$PKG_CONFIG"; then
20527     if test -n "$PKG_CONFIG" && \
20528     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unique-1.0\""; } >&5
20529   ($PKG_CONFIG --exists --print-errors "unique-1.0") 2>&5
20530   ac_status=$?
20531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20532   test $ac_status = 0; }; then
20533   pkg_cv_UNIQUE_CFLAGS=`$PKG_CONFIG --cflags "unique-1.0" 2>/dev/null`
20534                       test "x$?" != "x0" && pkg_failed=yes
20535 else
20536   pkg_failed=yes
20537 fi
20538  else
20539     pkg_failed=untried
20540 fi
20541 if test -n "$UNIQUE_LIBS"; then
20542     pkg_cv_UNIQUE_LIBS="$UNIQUE_LIBS"
20543  elif test -n "$PKG_CONFIG"; then
20544     if test -n "$PKG_CONFIG" && \
20545     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unique-1.0\""; } >&5
20546   ($PKG_CONFIG --exists --print-errors "unique-1.0") 2>&5
20547   ac_status=$?
20548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20549   test $ac_status = 0; }; then
20550   pkg_cv_UNIQUE_LIBS=`$PKG_CONFIG --libs "unique-1.0" 2>/dev/null`
20551                       test "x$?" != "x0" && pkg_failed=yes
20552 else
20553   pkg_failed=yes
20554 fi
20555  else
20556     pkg_failed=untried
20557 fi
20558
20559
20560
20561 if test $pkg_failed = yes; then
20562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20563 $as_echo "no" >&6; }
20564
20565 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20566         _pkg_short_errors_supported=yes
20567 else
20568         _pkg_short_errors_supported=no
20569 fi
20570         if test $_pkg_short_errors_supported = yes; then
20571                 UNIQUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unique-1.0" 2>&1`
20572         else
20573                 UNIQUE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unique-1.0" 2>&1`
20574         fi
20575         # Put the nasty error message in config.log where it belongs
20576         echo "$UNIQUE_PKG_ERRORS" >&5
20577
20578         have_unique="no"
20579 elif test $pkg_failed = untried; then
20580         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20581 $as_echo "no" >&6; }
20582         have_unique="no"
20583 else
20584         UNIQUE_CFLAGS=$pkg_cv_UNIQUE_CFLAGS
20585         UNIQUE_LIBS=$pkg_cv_UNIQUE_LIBS
20586         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20587 $as_echo "yes" >&6; }
20588         have_unique="yes"
20589 fi
20590     if test $have_unique = "yes"; then
20591         gui_modules="$gui_modules unique-1.0"
20592
20593 $as_echo "#define ENABLE_UNIQUE 1" >>confdefs.h
20594
20595     fi
20596
20597
20598 pkg_failed=no
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK_2_18" >&5
20600 $as_echo_n "checking for GTK_2_18... " >&6; }
20601
20602 if test -n "$GTK_2_18_CFLAGS"; then
20603     pkg_cv_GTK_2_18_CFLAGS="$GTK_2_18_CFLAGS"
20604  elif test -n "$PKG_CONFIG"; then
20605     if test -n "$PKG_CONFIG" && \
20606     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
20607   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
20608   ac_status=$?
20609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20610   test $ac_status = 0; }; then
20611   pkg_cv_GTK_2_18_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
20612                       test "x$?" != "x0" && pkg_failed=yes
20613 else
20614   pkg_failed=yes
20615 fi
20616  else
20617     pkg_failed=untried
20618 fi
20619 if test -n "$GTK_2_18_LIBS"; then
20620     pkg_cv_GTK_2_18_LIBS="$GTK_2_18_LIBS"
20621  elif test -n "$PKG_CONFIG"; then
20622     if test -n "$PKG_CONFIG" && \
20623     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
20624   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
20625   ac_status=$?
20626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20627   test $ac_status = 0; }; then
20628   pkg_cv_GTK_2_18_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
20629                       test "x$?" != "x0" && pkg_failed=yes
20630 else
20631   pkg_failed=yes
20632 fi
20633  else
20634     pkg_failed=untried
20635 fi
20636
20637
20638
20639 if test $pkg_failed = yes; then
20640         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20641 $as_echo "no" >&6; }
20642
20643 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20644         _pkg_short_errors_supported=yes
20645 else
20646         _pkg_short_errors_supported=no
20647 fi
20648         if test $_pkg_short_errors_supported = yes; then
20649                 GTK_2_18_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
20650         else
20651                 GTK_2_18_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
20652         fi
20653         # Put the nasty error message in config.log where it belongs
20654         echo "$GTK_2_18_PKG_ERRORS" >&5
20655
20656         have_gtk_2_18="no"
20657 elif test $pkg_failed = untried; then
20658         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20659 $as_echo "no" >&6; }
20660         have_gtk_2_18="no"
20661 else
20662         GTK_2_18_CFLAGS=$pkg_cv_GTK_2_18_CFLAGS
20663         GTK_2_18_LIBS=$pkg_cv_GTK_2_18_LIBS
20664         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20665 $as_echo "yes" >&6; }
20666         have_gtk_2_18="yes"
20667 fi
20668     if test $have_gtk_2_18 = "yes"; then
20669
20670 $as_echo "#define GTK_2_18 1" >>confdefs.h
20671
20672     fi
20673
20674
20675 pkg_failed=no
20676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUI" >&5
20677 $as_echo_n "checking for GUI... " >&6; }
20678
20679 if test -n "$GUI_CFLAGS"; then
20680     pkg_cv_GUI_CFLAGS="$GUI_CFLAGS"
20681  elif test -n "$PKG_CONFIG"; then
20682     if test -n "$PKG_CONFIG" && \
20683     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gui_modules\""; } >&5
20684   ($PKG_CONFIG --exists --print-errors "$gui_modules") 2>&5
20685   ac_status=$?
20686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20687   test $ac_status = 0; }; then
20688   pkg_cv_GUI_CFLAGS=`$PKG_CONFIG --cflags "$gui_modules" 2>/dev/null`
20689                       test "x$?" != "x0" && pkg_failed=yes
20690 else
20691   pkg_failed=yes
20692 fi
20693  else
20694     pkg_failed=untried
20695 fi
20696 if test -n "$GUI_LIBS"; then
20697     pkg_cv_GUI_LIBS="$GUI_LIBS"
20698  elif test -n "$PKG_CONFIG"; then
20699     if test -n "$PKG_CONFIG" && \
20700     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gui_modules\""; } >&5
20701   ($PKG_CONFIG --exists --print-errors "$gui_modules") 2>&5
20702   ac_status=$?
20703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20704   test $ac_status = 0; }; then
20705   pkg_cv_GUI_LIBS=`$PKG_CONFIG --libs "$gui_modules" 2>/dev/null`
20706                       test "x$?" != "x0" && pkg_failed=yes
20707 else
20708   pkg_failed=yes
20709 fi
20710  else
20711     pkg_failed=untried
20712 fi
20713
20714
20715
20716 if test $pkg_failed = yes; then
20717         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20718 $as_echo "no" >&6; }
20719
20720 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20721         _pkg_short_errors_supported=yes
20722 else
20723         _pkg_short_errors_supported=no
20724 fi
20725         if test $_pkg_short_errors_supported = yes; then
20726                 GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$gui_modules" 2>&1`
20727         else
20728                 GUI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$gui_modules" 2>&1`
20729         fi
20730         # Put the nasty error message in config.log where it belongs
20731         echo "$GUI_PKG_ERRORS" >&5
20732
20733         as_fn_error $? "Package requirements ($gui_modules) were not met:
20734
20735 $GUI_PKG_ERRORS
20736
20737 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20738 installed software in a non-standard prefix.
20739
20740 Alternatively, you may set the environment variables GUI_CFLAGS
20741 and GUI_LIBS to avoid the need to call pkg-config.
20742 See the pkg-config man page for more details." "$LINENO" 5
20743 elif test $pkg_failed = untried; then
20744         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20745 $as_echo "no" >&6; }
20746         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20748 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20749 is in your PATH or set the PKG_CONFIG environment variable to the full
20750 path to pkg-config.
20751
20752 Alternatively, you may set the environment variables GUI_CFLAGS
20753 and GUI_LIBS to avoid the need to call pkg-config.
20754 See the pkg-config man page for more details.
20755
20756 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20757 See \`config.log' for more details" "$LINENO" 5; }
20758 else
20759         GUI_CFLAGS=$pkg_cv_GUI_CFLAGS
20760         GUI_LIBS=$pkg_cv_GUI_LIBS
20761         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20762 $as_echo "yes" >&6; }
20763
20764 fi
20765
20766 elif test "$enable_dbus_service" != "no"; then
20767     # syncevo-dbus-server needs localization
20768     :
20769 else
20770     INTLTOOL_UPDATE="true"
20771     USE_NLS="no"
20772 fi
20773
20774
20775
20776
20777
20778
20779
20780 # C++ regular expression support is required often enough to make it
20781 # mandatory.
20782
20783 pkg_failed=no
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRECPP" >&5
20785 $as_echo_n "checking for PCRECPP... " >&6; }
20786
20787 if test -n "$PCRECPP_CFLAGS"; then
20788     pkg_cv_PCRECPP_CFLAGS="$PCRECPP_CFLAGS"
20789  elif test -n "$PKG_CONFIG"; then
20790     if test -n "$PKG_CONFIG" && \
20791     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcrecpp\""; } >&5
20792   ($PKG_CONFIG --exists --print-errors "libpcrecpp") 2>&5
20793   ac_status=$?
20794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20795   test $ac_status = 0; }; then
20796   pkg_cv_PCRECPP_CFLAGS=`$PKG_CONFIG --cflags "libpcrecpp" 2>/dev/null`
20797                       test "x$?" != "x0" && pkg_failed=yes
20798 else
20799   pkg_failed=yes
20800 fi
20801  else
20802     pkg_failed=untried
20803 fi
20804 if test -n "$PCRECPP_LIBS"; then
20805     pkg_cv_PCRECPP_LIBS="$PCRECPP_LIBS"
20806  elif test -n "$PKG_CONFIG"; then
20807     if test -n "$PKG_CONFIG" && \
20808     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcrecpp\""; } >&5
20809   ($PKG_CONFIG --exists --print-errors "libpcrecpp") 2>&5
20810   ac_status=$?
20811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20812   test $ac_status = 0; }; then
20813   pkg_cv_PCRECPP_LIBS=`$PKG_CONFIG --libs "libpcrecpp" 2>/dev/null`
20814                       test "x$?" != "x0" && pkg_failed=yes
20815 else
20816   pkg_failed=yes
20817 fi
20818  else
20819     pkg_failed=untried
20820 fi
20821
20822
20823
20824 if test $pkg_failed = yes; then
20825         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20826 $as_echo "no" >&6; }
20827
20828 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20829         _pkg_short_errors_supported=yes
20830 else
20831         _pkg_short_errors_supported=no
20832 fi
20833         if test $_pkg_short_errors_supported = yes; then
20834                 PCRECPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcrecpp" 2>&1`
20835         else
20836                 PCRECPP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcrecpp" 2>&1`
20837         fi
20838         # Put the nasty error message in config.log where it belongs
20839         echo "$PCRECPP_PKG_ERRORS" >&5
20840
20841         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpcrecpp" >&5
20842 $as_echo_n "checking for main in -lpcrecpp... " >&6; }
20843 if ${ac_cv_lib_pcrecpp_main+:} false; then :
20844   $as_echo_n "(cached) " >&6
20845 else
20846   ac_check_lib_save_LIBS=$LIBS
20847 LIBS="-lpcrecpp  $LIBS"
20848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20849 /* end confdefs.h.  */
20850
20851
20852 int
20853 main ()
20854 {
20855 return main ();
20856   ;
20857   return 0;
20858 }
20859 _ACEOF
20860 if ac_fn_cxx_try_link "$LINENO"; then :
20861   ac_cv_lib_pcrecpp_main=yes
20862 else
20863   ac_cv_lib_pcrecpp_main=no
20864 fi
20865 rm -f core conftest.err conftest.$ac_objext \
20866     conftest$ac_exeext conftest.$ac_ext
20867 LIBS=$ac_check_lib_save_LIBS
20868 fi
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcrecpp_main" >&5
20870 $as_echo "$ac_cv_lib_pcrecpp_main" >&6; }
20871 if test "x$ac_cv_lib_pcrecpp_main" = xyes; then :
20872   PCRECPP_LIBS=-lpcrecpp
20873
20874 else
20875   as_fn_error $? "pcrecpp not found" "$LINENO" 5
20876
20877 fi
20878
20879 elif test $pkg_failed = untried; then
20880         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20881 $as_echo "no" >&6; }
20882         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpcrecpp" >&5
20883 $as_echo_n "checking for main in -lpcrecpp... " >&6; }
20884 if ${ac_cv_lib_pcrecpp_main+:} false; then :
20885   $as_echo_n "(cached) " >&6
20886 else
20887   ac_check_lib_save_LIBS=$LIBS
20888 LIBS="-lpcrecpp  $LIBS"
20889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20890 /* end confdefs.h.  */
20891
20892
20893 int
20894 main ()
20895 {
20896 return main ();
20897   ;
20898   return 0;
20899 }
20900 _ACEOF
20901 if ac_fn_cxx_try_link "$LINENO"; then :
20902   ac_cv_lib_pcrecpp_main=yes
20903 else
20904   ac_cv_lib_pcrecpp_main=no
20905 fi
20906 rm -f core conftest.err conftest.$ac_objext \
20907     conftest$ac_exeext conftest.$ac_ext
20908 LIBS=$ac_check_lib_save_LIBS
20909 fi
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcrecpp_main" >&5
20911 $as_echo "$ac_cv_lib_pcrecpp_main" >&6; }
20912 if test "x$ac_cv_lib_pcrecpp_main" = xyes; then :
20913   PCRECPP_LIBS=-lpcrecpp
20914
20915 else
20916   as_fn_error $? "pcrecpp not found" "$LINENO" 5
20917
20918 fi
20919
20920 else
20921         PCRECPP_CFLAGS=$pkg_cv_PCRECPP_CFLAGS
20922         PCRECPP_LIBS=$pkg_cv_PCRECPP_LIBS
20923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20924 $as_echo "yes" >&6; }
20925
20926 fi
20927
20928 # need rst2man for man pages
20929
20930 # Check whether --with-rst2man was given.
20931 if test "${with_rst2man+set}" = set; then :
20932   withval=$with_rst2man; RST2MAN=$withval
20933              if test "$RST2MAN" = "yes"; then
20934                  # Extract the first word of "rst2man", so it can be a program name with args.
20935 set dummy rst2man; ac_word=$2
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20937 $as_echo_n "checking for $ac_word... " >&6; }
20938 if ${ac_cv_path_RST2MAN+:} false; then :
20939   $as_echo_n "(cached) " >&6
20940 else
20941   case $RST2MAN in
20942   [\\/]* | ?:[\\/]*)
20943   ac_cv_path_RST2MAN="$RST2MAN" # Let the user override the test with a path.
20944   ;;
20945   *)
20946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20947 for as_dir in $PATH
20948 do
20949   IFS=$as_save_IFS
20950   test -z "$as_dir" && as_dir=.
20951     for ac_exec_ext in '' $ac_executable_extensions; do
20952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20953     ac_cv_path_RST2MAN="$as_dir/$ac_word$ac_exec_ext"
20954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20955     break 2
20956   fi
20957 done
20958   done
20959 IFS=$as_save_IFS
20960
20961   test -z "$ac_cv_path_RST2MAN" && ac_cv_path_RST2MAN=""no""
20962   ;;
20963 esac
20964 fi
20965 RST2MAN=$ac_cv_path_RST2MAN
20966 if test -n "$RST2MAN"; then
20967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2MAN" >&5
20968 $as_echo "$RST2MAN" >&6; }
20969 else
20970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20971 $as_echo "no" >&6; }
20972 fi
20973
20974
20975              fi
20976              test "$RST2MAN" = "no" || test -x "$RST2MAN" || as_fn_error $? "--with-rst2man=$RST2MAN: tool not found" "$LINENO" 5
20977 else
20978   # Extract the first word of "rst2man", so it can be a program name with args.
20979 set dummy rst2man; ac_word=$2
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20981 $as_echo_n "checking for $ac_word... " >&6; }
20982 if ${ac_cv_path_RST2MAN+:} false; then :
20983   $as_echo_n "(cached) " >&6
20984 else
20985   case $RST2MAN in
20986   [\\/]* | ?:[\\/]*)
20987   ac_cv_path_RST2MAN="$RST2MAN" # Let the user override the test with a path.
20988   ;;
20989   *)
20990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20991 for as_dir in $PATH
20992 do
20993   IFS=$as_save_IFS
20994   test -z "$as_dir" && as_dir=.
20995     for ac_exec_ext in '' $ac_executable_extensions; do
20996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20997     ac_cv_path_RST2MAN="$as_dir/$ac_word$ac_exec_ext"
20998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20999     break 2
21000   fi
21001 done
21002   done
21003 IFS=$as_save_IFS
21004
21005   test -z "$ac_cv_path_RST2MAN" && ac_cv_path_RST2MAN=""no""
21006   ;;
21007 esac
21008 fi
21009 RST2MAN=$ac_cv_path_RST2MAN
21010 if test -n "$RST2MAN"; then
21011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2MAN" >&5
21012 $as_echo "$RST2MAN" >&6; }
21013 else
21014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21015 $as_echo "no" >&6; }
21016 fi
21017
21018
21019 fi
21020
21021  if test "$RST2MAN" != "no"; then
21022   COND_MAN_PAGES_TRUE=
21023   COND_MAN_PAGES_FALSE='#'
21024 else
21025   COND_MAN_PAGES_TRUE='#'
21026   COND_MAN_PAGES_FALSE=
21027 fi
21028
21029
21030 # need rst2html for HTML version of README
21031
21032 # Check whether --with-rst2html was given.
21033 if test "${with_rst2html+set}" = set; then :
21034   withval=$with_rst2html; RST2HTML=$withval
21035              if test "$RST2HTML" = "yes"; then
21036                  # Extract the first word of "rst2html", so it can be a program name with args.
21037 set dummy rst2html; ac_word=$2
21038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21039 $as_echo_n "checking for $ac_word... " >&6; }
21040 if ${ac_cv_path_RST2HTML+:} false; then :
21041   $as_echo_n "(cached) " >&6
21042 else
21043   case $RST2HTML in
21044   [\\/]* | ?:[\\/]*)
21045   ac_cv_path_RST2HTML="$RST2HTML" # Let the user override the test with a path.
21046   ;;
21047   *)
21048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21049 for as_dir in $PATH
21050 do
21051   IFS=$as_save_IFS
21052   test -z "$as_dir" && as_dir=.
21053     for ac_exec_ext in '' $ac_executable_extensions; do
21054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21055     ac_cv_path_RST2HTML="$as_dir/$ac_word$ac_exec_ext"
21056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21057     break 2
21058   fi
21059 done
21060   done
21061 IFS=$as_save_IFS
21062
21063   test -z "$ac_cv_path_RST2HTML" && ac_cv_path_RST2HTML=""no""
21064   ;;
21065 esac
21066 fi
21067 RST2HTML=$ac_cv_path_RST2HTML
21068 if test -n "$RST2HTML"; then
21069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2HTML" >&5
21070 $as_echo "$RST2HTML" >&6; }
21071 else
21072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21073 $as_echo "no" >&6; }
21074 fi
21075
21076
21077              fi
21078              test "$RST2HTML" = "no" || test -x "$RST2HTML" || as_fn_error $? "--with-rst2html=$RST2HTML: tool not found" "$LINENO" 5
21079 else
21080   # Extract the first word of "rst2html", so it can be a program name with args.
21081 set dummy rst2html; ac_word=$2
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21083 $as_echo_n "checking for $ac_word... " >&6; }
21084 if ${ac_cv_path_RST2HTML+:} false; then :
21085   $as_echo_n "(cached) " >&6
21086 else
21087   case $RST2HTML in
21088   [\\/]* | ?:[\\/]*)
21089   ac_cv_path_RST2HTML="$RST2HTML" # Let the user override the test with a path.
21090   ;;
21091   *)
21092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21093 for as_dir in $PATH
21094 do
21095   IFS=$as_save_IFS
21096   test -z "$as_dir" && as_dir=.
21097     for ac_exec_ext in '' $ac_executable_extensions; do
21098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21099     ac_cv_path_RST2HTML="$as_dir/$ac_word$ac_exec_ext"
21100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21101     break 2
21102   fi
21103 done
21104   done
21105 IFS=$as_save_IFS
21106
21107   test -z "$ac_cv_path_RST2HTML" && ac_cv_path_RST2HTML=""no""
21108   ;;
21109 esac
21110 fi
21111 RST2HTML=$ac_cv_path_RST2HTML
21112 if test -n "$RST2HTML"; then
21113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2HTML" >&5
21114 $as_echo "$RST2HTML" >&6; }
21115 else
21116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21117 $as_echo "no" >&6; }
21118 fi
21119
21120
21121 fi
21122
21123  if test "$RST2HTML" != "no"; then
21124   COND_HTML_README_TRUE=
21125   COND_HTML_README_FALSE='#'
21126 else
21127   COND_HTML_README_TRUE='#'
21128   COND_HTML_README_FALSE=
21129 fi
21130
21131
21132 # absolute patch to source of Synthesis client library
21133 SYNTHESIS_SRC=no-synthesis-source
21134
21135 if test "$SYNTHESISSRC" && test "$SYNTHESISSRC" != "none"; then
21136     # default: checkout a copy of the sources, remove it during maintainer-clean and distclean
21137     CLEAN_CLIENT_SRC=synthesis-workdir
21138     SYNTHESIS_SRC=$PWD/src/synthesis-workdir
21139
21140     { $as_echo "$as_me:${as_lineno-$LINENO}: updating the content of $SYNTHESIS_SRC from $SYNTHESISSRC " >&5
21141 $as_echo "$as_me: updating the content of $SYNTHESIS_SRC from $SYNTHESISSRC " >&6;}
21142     case "$SYNTHESISSRC" in
21143         *.git) protocol=git;;
21144         *://*) protocol="`echo $SYNTHESISSRC | sed -e 's;://.*;;'`";;
21145         *) protocol="file";;
21146     esac
21147
21148     mkdir -p src
21149     case $protocol in
21150         file)
21151             # use existing copy of the sources
21152             CLEAN_CLIENT_SRC=
21153             case "$SYNTHESISSRC" in
21154                  /*) SYNTHESIS_SRC="$SYNTHESISSRC";;
21155                  *) SYNTHESIS_SRC="$PWD/$SYNTHESISSRC";;
21156             esac
21157             ;;
21158         *svn*|*http*)
21159             SYNTHESISSRCREV="$SYNTHESISSRC"
21160             if test "$REVISION"; then
21161                 revarg="-r $REVISION "
21162                 if `echo $SYNTHESISSRC | grep '@0123456789*'` >/dev/null; then
21163                     :
21164                 else
21165                     SYNTHESISSRCREV="$SYNTHESISSRC@$REVISION"
21166                 fi
21167             fi
21168             if test -d $SYNTHESIS_SRC ; then
21169                 ( set -x; cd $SYNTHESIS_SRC && svn --username=$USERNAME switch $revarg "$SYNTHESISSRC" ) || as_fn_error $? "updating from $SYNTHESISSRC failed" "$LINENO" 5
21170             else
21171                 (set -x; svn --username=$USERNAME checkout $revarg "$SYNTHESISSRCREV" $SYNTHESIS_SRC ) || as_fn_error $? "checking out $SYNTHESISSRC failed" "$LINENO" 5
21172             fi
21173             ;;
21174         *)
21175             if test -d $SYNTHESIS_SRC ; then
21176                 ( set -x; cd $SYNTHESIS_SRC && git fetch "$SYNTHESISSRC" ) || as_fn_error $? "updating from $SYNTHESISSRC failed" "$LINENO" 5
21177             else
21178                 ( set -x; git clone "$SYNTHESISSRC" $SYNTHESIS_SRC ) || as_fn_error $? "cloning $SYNTHESISSRC failed" "$LINENO" 5
21179             fi
21180             if test "$REVISION"; then
21181                 # git 1.6 finds tags and branches without explicit prefix, 1.4.4.4 doesn't
21182                 ( set -x; cd $SYNTHESIS_SRC &&
21183                   (git checkout "$REVISION" ||
21184                    git checkout "tags/$REVISION" ||
21185                    git checkout "origin/$REVISION") ) || as_fn_error $? "checking out $SYNTHESISSRC failed" "$LINENO" 5
21186             fi
21187             ;;
21188     esac
21189 elif test "$SYNTHESISSRC" != "none" && test -d $srcdir/src/synthesis; then
21190     # use existing copy of the sources; beware of
21191     # out-of-tree compilation
21192     case $srcdir in
21193          /*) SYNTHESIS_SRC="$srcdir/src/synthesis";;
21194          *) SYNTHESIS_SRC="$PWD/$srcdir/src/synthesis";;
21195     esac
21196 elif test "$enable_shared" = "no"; then
21197     # link against engine
21198
21199 pkg_failed=no
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYNTHESIS" >&5
21201 $as_echo_n "checking for SYNTHESIS... " >&6; }
21202
21203 if test -n "$SYNTHESIS_CFLAGS"; then
21204     pkg_cv_SYNTHESIS_CFLAGS="$SYNTHESIS_CFLAGS"
21205  elif test -n "$PKG_CONFIG"; then
21206     if test -n "$PKG_CONFIG" && \
21207     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4\""; } >&5
21208   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4") 2>&5
21209   ac_status=$?
21210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21211   test $ac_status = 0; }; then
21212   pkg_cv_SYNTHESIS_CFLAGS=`$PKG_CONFIG --cflags "synthesis >= 3.4" 2>/dev/null`
21213                       test "x$?" != "x0" && pkg_failed=yes
21214 else
21215   pkg_failed=yes
21216 fi
21217  else
21218     pkg_failed=untried
21219 fi
21220 if test -n "$SYNTHESIS_LIBS"; then
21221     pkg_cv_SYNTHESIS_LIBS="$SYNTHESIS_LIBS"
21222  elif test -n "$PKG_CONFIG"; then
21223     if test -n "$PKG_CONFIG" && \
21224     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4\""; } >&5
21225   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4") 2>&5
21226   ac_status=$?
21227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21228   test $ac_status = 0; }; then
21229   pkg_cv_SYNTHESIS_LIBS=`$PKG_CONFIG --libs "synthesis >= 3.4" 2>/dev/null`
21230                       test "x$?" != "x0" && pkg_failed=yes
21231 else
21232   pkg_failed=yes
21233 fi
21234  else
21235     pkg_failed=untried
21236 fi
21237
21238
21239
21240 if test $pkg_failed = yes; then
21241         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21242 $as_echo "no" >&6; }
21243
21244 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21245         _pkg_short_errors_supported=yes
21246 else
21247         _pkg_short_errors_supported=no
21248 fi
21249         if test $_pkg_short_errors_supported = yes; then
21250                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "synthesis >= 3.4" 2>&1`
21251         else
21252                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "synthesis >= 3.4" 2>&1`
21253         fi
21254         # Put the nasty error message in config.log where it belongs
21255         echo "$SYNTHESIS_PKG_ERRORS" >&5
21256
21257         as_fn_error $? "Package requirements (synthesis >= 3.4) were not met:
21258
21259 $SYNTHESIS_PKG_ERRORS
21260
21261 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21262 installed software in a non-standard prefix.
21263
21264 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
21265 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
21266 See the pkg-config man page for more details." "$LINENO" 5
21267 elif test $pkg_failed = untried; then
21268         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21269 $as_echo "no" >&6; }
21270         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21272 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21273 is in your PATH or set the PKG_CONFIG environment variable to the full
21274 path to pkg-config.
21275
21276 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
21277 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
21278 See the pkg-config man page for more details.
21279
21280 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21281 See \`config.log' for more details" "$LINENO" 5; }
21282 else
21283         SYNTHESIS_CFLAGS=$pkg_cv_SYNTHESIS_CFLAGS
21284         SYNTHESIS_LIBS=$pkg_cv_SYNTHESIS_LIBS
21285         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21286 $as_echo "yes" >&6; }
21287
21288 fi
21289     SYNTHESIS_ENGINE="$SYNTHESIS_LIBS -lsynthesis -lsmltk"
21290 else
21291     # link against SDK alone, except in client-test
21292     #PKG_CHECK_MODULES(SYNTHESIS, "synthesis-sdk")
21293     #SYNTHESIS_ENGINE="`echo $SYNTHESIS_LIBS | sed -e 's/-lsynthesisstubs/-lsynthesis/'`"
21294
21295     # can't use the SDK alone because of sysync::SySyncDebugPuts()
21296
21297 pkg_failed=no
21298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYNTHESIS" >&5
21299 $as_echo_n "checking for SYNTHESIS... " >&6; }
21300
21301 if test -n "$SYNTHESIS_CFLAGS"; then
21302     pkg_cv_SYNTHESIS_CFLAGS="$SYNTHESIS_CFLAGS"
21303  elif test -n "$PKG_CONFIG"; then
21304     if test -n "$PKG_CONFIG" && \
21305     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4.0.47.5\""; } >&5
21306   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4.0.47.5") 2>&5
21307   ac_status=$?
21308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21309   test $ac_status = 0; }; then
21310   pkg_cv_SYNTHESIS_CFLAGS=`$PKG_CONFIG --cflags "synthesis >= 3.4.0.47.5" 2>/dev/null`
21311                       test "x$?" != "x0" && pkg_failed=yes
21312 else
21313   pkg_failed=yes
21314 fi
21315  else
21316     pkg_failed=untried
21317 fi
21318 if test -n "$SYNTHESIS_LIBS"; then
21319     pkg_cv_SYNTHESIS_LIBS="$SYNTHESIS_LIBS"
21320  elif test -n "$PKG_CONFIG"; then
21321     if test -n "$PKG_CONFIG" && \
21322     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4.0.47.5\""; } >&5
21323   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4.0.47.5") 2>&5
21324   ac_status=$?
21325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21326   test $ac_status = 0; }; then
21327   pkg_cv_SYNTHESIS_LIBS=`$PKG_CONFIG --libs "synthesis >= 3.4.0.47.5" 2>/dev/null`
21328                       test "x$?" != "x0" && pkg_failed=yes
21329 else
21330   pkg_failed=yes
21331 fi
21332  else
21333     pkg_failed=untried
21334 fi
21335
21336
21337
21338 if test $pkg_failed = yes; then
21339         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21340 $as_echo "no" >&6; }
21341
21342 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21343         _pkg_short_errors_supported=yes
21344 else
21345         _pkg_short_errors_supported=no
21346 fi
21347         if test $_pkg_short_errors_supported = yes; then
21348                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "synthesis >= 3.4.0.47.5" 2>&1`
21349         else
21350                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "synthesis >= 3.4.0.47.5" 2>&1`
21351         fi
21352         # Put the nasty error message in config.log where it belongs
21353         echo "$SYNTHESIS_PKG_ERRORS" >&5
21354
21355         as_fn_error $? "Package requirements (synthesis >= 3.4.0.47.5) were not met:
21356
21357 $SYNTHESIS_PKG_ERRORS
21358
21359 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21360 installed software in a non-standard prefix.
21361
21362 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
21363 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
21364 See the pkg-config man page for more details." "$LINENO" 5
21365 elif test $pkg_failed = untried; then
21366         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21367 $as_echo "no" >&6; }
21368         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21370 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21371 is in your PATH or set the PKG_CONFIG environment variable to the full
21372 path to pkg-config.
21373
21374 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
21375 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
21376 See the pkg-config man page for more details.
21377
21378 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21379 See \`config.log' for more details" "$LINENO" 5; }
21380 else
21381         SYNTHESIS_CFLAGS=$pkg_cv_SYNTHESIS_CFLAGS
21382         SYNTHESIS_LIBS=$pkg_cv_SYNTHESIS_LIBS
21383         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21384 $as_echo "yes" >&6; }
21385
21386 fi
21387     SYNTHESIS_ENGINE="$SYNTHESIS_LIBS"
21388 fi
21389
21390 if test $SYNTHESIS_SRC != "no-synthesis-source"; then
21391     ( 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
21392
21393     SYNTHESIS_CONFIGURE="$SYNTHESIS_SRC/configure"
21394     chmod u+x $SYNTHESIS_SRC/configure $SYNTHESIS_SRC/config.sub $SYNTHESIS_SRC/config.guess
21395
21396     # use local copy of the sources, with dependencies
21397     # to trigger building the synthesis library
21398     SYNTHESIS_SUBDIR=$PWD/src/build-synthesis
21399     SYNTHESIS_CFLAGS="-I$SYNTHESIS_SUBDIR/src"
21400     SYNTHESIS_LIBS="$SYNTHESIS_SUBDIR/src/libsynthesissdk.la $SYNTHESIS_SUBDIR/src/libsmltk.la"
21401
21402     if test "x$enable_core" = "xno" && test "x$enable_gui" != "xno"; then
21403        # SYNTHESIS_SUBDIR is ignored, at least build headers for GUI
21404        SYNTHESIS_SUBDIR_INCLUDES=src/synthesis-includes
21405     fi
21406
21407     if test "$enable_shared" = "no"; then
21408         # link against the engines that were enabled
21409         case $SYNCML_ENGINES in both|client|server) SYNTHESIS_LIBS="$SYNTHESIS_LIBS $SYNTHESIS_SUBDIR/src/libsynthesis.la $SYNTHESIS_SUBDIR/src/libsmltk.la";; esac
21410
21411 $as_echo "#define ENABLE_SYNCML_LINKED 1" >>confdefs.h
21412
21413     else
21414         # It would be nice if we could avoid linking against libsynthesis.la here.
21415         # This doesn't work at the moment because sysync::SySyncDebugPuts()
21416         # is called directly by the libsynthesissdk instead of going through
21417         # the normal C function pointer lookup.
21418         SYNTHESIS_LIBS="$SYNTHESIS_LIBS $SYNTHESIS_SUBDIR/src/libsynthesis.la $SYNTHESIS_SUBDIR/src/libsmltk.la"
21419     fi
21420     SYNTHESIS_DEP=$SYNTHESIS_LIBS
21421
21422     # for linking client-test
21423     SYNTHESIS_ENGINE="$SYNTHESIS_SUBDIR/src/libsynthesis.la"
21424
21425     { $as_echo "$as_me:${as_lineno-$LINENO}: configuring the Synthesis library " >&5
21426 $as_echo "$as_me: configuring the Synthesis library " >&6;}
21427     if (set -x; mkdir -p $SYNTHESIS_SUBDIR && cd $SYNTHESIS_SUBDIR && eval "\$SHELL \"\$SYNTHESIS_CONFIGURE\" $ac_configure_args \"--srcdir=\$SYNTHESIS_SRC\" " ); then true; else
21428         as_fn_error $? "configuring Synthesis library failed " "$LINENO" 5
21429     fi
21430
21431     # do the version check with the .pc files prepared by the configure step above
21432     export PKG_CONFIG_PATH=$SYNTHESIS_SUBDIR:$PKG_CONFIG_PATH
21433
21434 pkg_failed=no
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WITH_SYNTHESIS_SRC" >&5
21436 $as_echo_n "checking for WITH_SYNTHESIS_SRC... " >&6; }
21437
21438 if test -n "$WITH_SYNTHESIS_SRC_CFLAGS"; then
21439     pkg_cv_WITH_SYNTHESIS_SRC_CFLAGS="$WITH_SYNTHESIS_SRC_CFLAGS"
21440  elif test -n "$PKG_CONFIG"; then
21441     if test -n "$PKG_CONFIG" && \
21442     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4.0.47.5\""; } >&5
21443   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4.0.47.5") 2>&5
21444   ac_status=$?
21445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21446   test $ac_status = 0; }; then
21447   pkg_cv_WITH_SYNTHESIS_SRC_CFLAGS=`$PKG_CONFIG --cflags "synthesis >= 3.4.0.47.5" 2>/dev/null`
21448                       test "x$?" != "x0" && pkg_failed=yes
21449 else
21450   pkg_failed=yes
21451 fi
21452  else
21453     pkg_failed=untried
21454 fi
21455 if test -n "$WITH_SYNTHESIS_SRC_LIBS"; then
21456     pkg_cv_WITH_SYNTHESIS_SRC_LIBS="$WITH_SYNTHESIS_SRC_LIBS"
21457  elif test -n "$PKG_CONFIG"; then
21458     if test -n "$PKG_CONFIG" && \
21459     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4.0.47.5\""; } >&5
21460   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4.0.47.5") 2>&5
21461   ac_status=$?
21462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21463   test $ac_status = 0; }; then
21464   pkg_cv_WITH_SYNTHESIS_SRC_LIBS=`$PKG_CONFIG --libs "synthesis >= 3.4.0.47.5" 2>/dev/null`
21465                       test "x$?" != "x0" && pkg_failed=yes
21466 else
21467   pkg_failed=yes
21468 fi
21469  else
21470     pkg_failed=untried
21471 fi
21472
21473
21474
21475 if test $pkg_failed = yes; then
21476         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21477 $as_echo "no" >&6; }
21478
21479 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21480         _pkg_short_errors_supported=yes
21481 else
21482         _pkg_short_errors_supported=no
21483 fi
21484         if test $_pkg_short_errors_supported = yes; then
21485                 WITH_SYNTHESIS_SRC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "synthesis >= 3.4.0.47.5" 2>&1`
21486         else
21487                 WITH_SYNTHESIS_SRC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "synthesis >= 3.4.0.47.5" 2>&1`
21488         fi
21489         # Put the nasty error message in config.log where it belongs
21490         echo "$WITH_SYNTHESIS_SRC_PKG_ERRORS" >&5
21491
21492         as_fn_error $? "need at least libsynthesis >= 3.4.0.47.5; the latest libsynthesis for SyncEvolution is the one from http://cgit.freedesktop.org/SyncEvolution/" "$LINENO" 5
21493 elif test $pkg_failed = untried; then
21494         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21495 $as_echo "no" >&6; }
21496         as_fn_error $? "need at least libsynthesis >= 3.4.0.47.5; the latest libsynthesis for SyncEvolution is the one from http://cgit.freedesktop.org/SyncEvolution/" "$LINENO" 5
21497 else
21498         WITH_SYNTHESIS_SRC_CFLAGS=$pkg_cv_WITH_SYNTHESIS_SRC_CFLAGS
21499         WITH_SYNTHESIS_SRC_LIBS=$pkg_cv_WITH_SYNTHESIS_SRC_LIBS
21500         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21501 $as_echo "yes" >&6; }
21502
21503 fi
21504
21505 fi
21506
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517 BACKEND_CPPFLAGS="$SYNTHESIS_CFLAGS $EPACKAGE_CFLAGS $EBOOK_CFLAGS $ECAL_CFLAGS $GLIB_CFLAGS $BOOST_CPPFLAGS"
21518
21519
21520 # GNOME Bluetooth Panel plugin
21521
21522 pkg_failed=no
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOMEBLUETOOTH" >&5
21524 $as_echo_n "checking for GNOMEBLUETOOTH... " >&6; }
21525
21526 if test -n "$GNOMEBLUETOOTH_CFLAGS"; then
21527     pkg_cv_GNOMEBLUETOOTH_CFLAGS="$GNOMEBLUETOOTH_CFLAGS"
21528  elif test -n "$PKG_CONFIG"; then
21529     if test -n "$PKG_CONFIG" && \
21530     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-bluetooth-1.0 >= 2.27.6\""; } >&5
21531   ($PKG_CONFIG --exists --print-errors "gnome-bluetooth-1.0 >= 2.27.6") 2>&5
21532   ac_status=$?
21533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21534   test $ac_status = 0; }; then
21535   pkg_cv_GNOMEBLUETOOTH_CFLAGS=`$PKG_CONFIG --cflags "gnome-bluetooth-1.0 >= 2.27.6" 2>/dev/null`
21536                       test "x$?" != "x0" && pkg_failed=yes
21537 else
21538   pkg_failed=yes
21539 fi
21540  else
21541     pkg_failed=untried
21542 fi
21543 if test -n "$GNOMEBLUETOOTH_LIBS"; then
21544     pkg_cv_GNOMEBLUETOOTH_LIBS="$GNOMEBLUETOOTH_LIBS"
21545  elif test -n "$PKG_CONFIG"; then
21546     if test -n "$PKG_CONFIG" && \
21547     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-bluetooth-1.0 >= 2.27.6\""; } >&5
21548   ($PKG_CONFIG --exists --print-errors "gnome-bluetooth-1.0 >= 2.27.6") 2>&5
21549   ac_status=$?
21550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21551   test $ac_status = 0; }; then
21552   pkg_cv_GNOMEBLUETOOTH_LIBS=`$PKG_CONFIG --libs "gnome-bluetooth-1.0 >= 2.27.6" 2>/dev/null`
21553                       test "x$?" != "x0" && pkg_failed=yes
21554 else
21555   pkg_failed=yes
21556 fi
21557  else
21558     pkg_failed=untried
21559 fi
21560
21561
21562
21563 if test $pkg_failed = yes; then
21564         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21565 $as_echo "no" >&6; }
21566
21567 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21568         _pkg_short_errors_supported=yes
21569 else
21570         _pkg_short_errors_supported=no
21571 fi
21572         if test $_pkg_short_errors_supported = yes; then
21573                 GNOMEBLUETOOTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnome-bluetooth-1.0 >= 2.27.6" 2>&1`
21574         else
21575                 GNOMEBLUETOOTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnome-bluetooth-1.0 >= 2.27.6" 2>&1`
21576         fi
21577         # Put the nasty error message in config.log where it belongs
21578         echo "$GNOMEBLUETOOTH_PKG_ERRORS" >&5
21579
21580         have_gbt="no"
21581 elif test $pkg_failed = untried; then
21582         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21583 $as_echo "no" >&6; }
21584         have_gbt="no"
21585 else
21586         GNOMEBLUETOOTH_CFLAGS=$pkg_cv_GNOMEBLUETOOTH_CFLAGS
21587         GNOMEBLUETOOTH_LIBS=$pkg_cv_GNOMEBLUETOOTH_LIBS
21588         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21589 $as_echo "yes" >&6; }
21590         have_gbt="yes"
21591                    GNOMEBLUETOOTH_DIR=`$PKG_CONFIG --variable=libdir gnome-bluetooth-1.0 2>/dev/null`/gnome-bluetooth
21592 fi
21593
21594
21595
21596 # Check whether --enable-gnome-bluetooth-panel-plugin was given.
21597 if test "${enable_gnome_bluetooth_panel_plugin+set}" = set; then :
21598   enableval=$enable_gnome_bluetooth_panel_plugin; enable_gnome_bluetooth_panel="$enableval"
21599 else
21600   enable_gnome_bluetooth_panel="no"
21601
21602 fi
21603
21604 if test "$enable_gnome_bluetooth_panel" = "yes"; then
21605    test "$have_gbt" = "yes" || as_fn_error $? "--enable-gnome-bluetooth-panel requires
21606            pkg-config information for gnome-bluetooth-1.0 >= 2.27.6 which was not found" "$LINENO" 5
21607 fi
21608  if test "$have_gbt" = "yes" && test "$enable_gnome_bluetooth_panel" = "yes"; then
21609   ENABLE_GNOME_BLUETOOTH_PANEL_TRUE=
21610   ENABLE_GNOME_BLUETOOTH_PANEL_FALSE='#'
21611 else
21612   ENABLE_GNOME_BLUETOOTH_PANEL_TRUE='#'
21613   ENABLE_GNOME_BLUETOOTH_PANEL_FALSE=
21614 fi
21615
21616
21617 # Check whether --enable-doc was given.
21618 if test "${enable_doc+set}" = set; then :
21619   enableval=$enable_doc; enable_doc="$enableval"
21620 else
21621   enable_doc="no"
21622 fi
21623
21624
21625  if test "$enable_doc" != "no"; then
21626   COND_DOC_TRUE=
21627   COND_DOC_FALSE='#'
21628 else
21629   COND_DOC_TRUE='#'
21630   COND_DOC_FALSE=
21631 fi
21632
21633
21634
21635
21636           BACKENDS=''
21637           BACKEND_DEFINES=''
21638           SYNCSOURCES=''
21639
21640 # vvvvvvvvvvvvvv src/backends/activesync/configure-sub.in vvvvvvvvvvvvvv
21641
21642
21643           # Check whether --enable-activesync was given.
21644 if test "${enable_activesync+set}" = set; then :
21645   enableval=$enable_activesync; enable_activesync="$enableval"
21646 else
21647   enable_activesync="no"
21648 fi
21649
21650           BACKENDS="$BACKENDS activesync"
21651           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_ACTIVESYNC"
21652           for source in activesync
21653           do
21654             SYNCSOURCES="$SYNCSOURCES src/backends/activesync/syncactivesync.la"
21655           done
21656
21657
21658
21659
21660 # Check whether --with-activesyncd-src was given.
21661 if test "${with_activesyncd_src+set}" = set; then :
21662   withval=$with_activesyncd_src; ACTIVESYNCDSRC="$withval"
21663              test "$ACTIVESYNCDSRC" != "yes" || as_fn_error $? "--with-synthesis-src requires a parameter (base directory, svn URL or git URL)" "$LINENO" 5
21664 else
21665   ACTIVESYNCDSRC=""
21666 fi
21667
21668
21669  if test "$enable_activesync" = "yes" && test "$ACTIVESYNCDSRC" != ""; then
21670   BUILD_ACTIVESYNCD_TRUE=
21671   BUILD_ACTIVESYNCD_FALSE='#'
21672 else
21673   BUILD_ACTIVESYNCD_TRUE='#'
21674   BUILD_ACTIVESYNCD_FALSE=
21675 fi
21676
21677
21678 if test "$enable_activesync" = "yes"; then
21679         if test "$ACTIVESYNCDSRC" != ""; then
21680                 # brute-force dependency on any file in the source repo
21681                 LIBEASCLIENT_LA_DEPENDENCIES=`find "$ACTIVESYNCDSRC"/* -type f -printf '%p ' `
21682
21683                 mkdir -p src/backends/activesync/activesyncd/build
21684                 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring activesyncd using the $ACTIVESYNCDSRC source code" >&5
21685 $as_echo "$as_me: configuring activesyncd using the $ACTIVESYNCDSRC source code" >&6;}
21686                 ( set -x; cd src/backends/activesync/activesyncd/build &&
21687                   $ACTIVESYNCDSRC/configure --disable-eplugin --disable-camel-backend --disable-qtconfig --prefix=`pwd`/../install) ||
21688                 as_fn_error $? "configuring activesyncd failed" "$LINENO" 5
21689
21690                 # hard-coded replacement for pkg-config: necessary because
21691                 # .pc file not installed yet
21692                 EASCLIENT_LIBS=src/backends/activesync/activesyncd/install/lib/libeasclient.la
21693                 EASCLIENT_DEPENDENCIES=src/backends/activesync/activesyncd/install/lib/libeasclient.la
21694                 EASCLIENT_CFLAGS=-Isrc/backends/activesync/activesyncd/install/include/eas-daemon/eas-client
21695
21696
21697
21698         else
21699
21700 pkg_failed=no
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EASCLIENT" >&5
21702 $as_echo_n "checking for EASCLIENT... " >&6; }
21703
21704 if test -n "$EASCLIENT_CFLAGS"; then
21705     pkg_cv_EASCLIENT_CFLAGS="$EASCLIENT_CFLAGS"
21706  elif test -n "$PKG_CONFIG"; then
21707     if test -n "$PKG_CONFIG" && \
21708     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeasclient\""; } >&5
21709   ($PKG_CONFIG --exists --print-errors "libeasclient") 2>&5
21710   ac_status=$?
21711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21712   test $ac_status = 0; }; then
21713   pkg_cv_EASCLIENT_CFLAGS=`$PKG_CONFIG --cflags "libeasclient" 2>/dev/null`
21714                       test "x$?" != "x0" && pkg_failed=yes
21715 else
21716   pkg_failed=yes
21717 fi
21718  else
21719     pkg_failed=untried
21720 fi
21721 if test -n "$EASCLIENT_LIBS"; then
21722     pkg_cv_EASCLIENT_LIBS="$EASCLIENT_LIBS"
21723  elif test -n "$PKG_CONFIG"; then
21724     if test -n "$PKG_CONFIG" && \
21725     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeasclient\""; } >&5
21726   ($PKG_CONFIG --exists --print-errors "libeasclient") 2>&5
21727   ac_status=$?
21728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21729   test $ac_status = 0; }; then
21730   pkg_cv_EASCLIENT_LIBS=`$PKG_CONFIG --libs "libeasclient" 2>/dev/null`
21731                       test "x$?" != "x0" && pkg_failed=yes
21732 else
21733   pkg_failed=yes
21734 fi
21735  else
21736     pkg_failed=untried
21737 fi
21738
21739
21740
21741 if test $pkg_failed = yes; then
21742         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21743 $as_echo "no" >&6; }
21744
21745 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21746         _pkg_short_errors_supported=yes
21747 else
21748         _pkg_short_errors_supported=no
21749 fi
21750         if test $_pkg_short_errors_supported = yes; then
21751                 EASCLIENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libeasclient" 2>&1`
21752         else
21753                 EASCLIENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libeasclient" 2>&1`
21754         fi
21755         # Put the nasty error message in config.log where it belongs
21756         echo "$EASCLIENT_PKG_ERRORS" >&5
21757
21758         as_fn_error $? "Package requirements (libeasclient) were not met:
21759
21760 $EASCLIENT_PKG_ERRORS
21761
21762 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21763 installed software in a non-standard prefix.
21764
21765 Alternatively, you may set the environment variables EASCLIENT_CFLAGS
21766 and EASCLIENT_LIBS to avoid the need to call pkg-config.
21767 See the pkg-config man page for more details." "$LINENO" 5
21768 elif test $pkg_failed = untried; then
21769         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21770 $as_echo "no" >&6; }
21771         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21773 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21774 is in your PATH or set the PKG_CONFIG environment variable to the full
21775 path to pkg-config.
21776
21777 Alternatively, you may set the environment variables EASCLIENT_CFLAGS
21778 and EASCLIENT_LIBS to avoid the need to call pkg-config.
21779 See the pkg-config man page for more details.
21780
21781 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21782 See \`config.log' for more details" "$LINENO" 5; }
21783 else
21784         EASCLIENT_CFLAGS=$pkg_cv_EASCLIENT_CFLAGS
21785         EASCLIENT_LIBS=$pkg_cv_EASCLIENT_LIBS
21786         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21787 $as_echo "yes" >&6; }
21788
21789 fi
21790         fi
21791
21792 $as_echo "#define ENABLE_ACTIVESYNC 1" >>confdefs.h
21793
21794         need_ical="yes"
21795         need_glib="yes"
21796 fi
21797
21798 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EASCLIENT_CFLAGS"
21799 # ^^^^^^^^^^^^^^ src/backends/activesync/configure-sub.in ^^^^^^^^^^^^^^
21800
21801 # vvvvvvvvvvvvvv src/backends/akonadi/configure-sub.in vvvvvvvvvvvvvv
21802
21803 for ac_prog in qmake qmake-qt4
21804 do
21805   # Extract the first word of "$ac_prog", so it can be a program name with args.
21806 set dummy $ac_prog; ac_word=$2
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21808 $as_echo_n "checking for $ac_word... " >&6; }
21809 if ${ac_cv_prog_QMAKE+:} false; then :
21810   $as_echo_n "(cached) " >&6
21811 else
21812   if test -n "$QMAKE"; then
21813   ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
21814 else
21815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21816 for as_dir in $PATH
21817 do
21818   IFS=$as_save_IFS
21819   test -z "$as_dir" && as_dir=.
21820     for ac_exec_ext in '' $ac_executable_extensions; do
21821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21822     ac_cv_prog_QMAKE="$ac_prog"
21823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21824     break 2
21825   fi
21826 done
21827   done
21828 IFS=$as_save_IFS
21829
21830 fi
21831 fi
21832 QMAKE=$ac_cv_prog_QMAKE
21833 if test -n "$QMAKE"; then
21834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
21835 $as_echo "$QMAKE" >&6; }
21836 else
21837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21838 $as_echo "no" >&6; }
21839 fi
21840
21841
21842   test -n "$QMAKE" && break
21843 done
21844
21845
21846 # Check for Akonadi. There is no .pc file for it,
21847 # so fall back to normal header file and library checking.
21848 # kdepimlibs5-dev >= 4.3 provides the necessary files.
21849 AKONADIFOUND=yes
21850 if ! test "$KDEPIM_CFLAGS"; then
21851    KDEPIM_CFLAGS="-I`kde4-config --path include` -I`kde4-config --path include`/KDE"
21852    if test "$QMAKE"; then
21853       KDEPIM_CFLAGS="$KDEPIM_CFLAGS -I`$QMAKE -query QT_INSTALL_HEADERS` -I`$QMAKE -query QT_INSTALL_HEADERS`/QtCore"
21854    fi
21855 fi
21856 if ! test "$KDEPIM_LIBS"; then
21857    KDEPIM_LIBS="-L`kde4-config --install lib` -lakonadi-kde `pkg-config --libs QtDBus` -lQtCore -lkdeui -lkdecore"
21858 fi
21859 ac_ext=cpp
21860 ac_cpp='$CXXCPP $CPPFLAGS'
21861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21864
21865 old_CPPFLAGS="$CPPFLAGS"
21866 CPPFLAGS="$CPPFLAGS $KDEPIM_CFLAGS"
21867 for ac_header in Akonadi/Collection
21868 do :
21869   ac_fn_cxx_check_header_mongrel "$LINENO" "Akonadi/Collection" "ac_cv_header_Akonadi_Collection" "$ac_includes_default"
21870 if test "x$ac_cv_header_Akonadi_Collection" = xyes; then :
21871   cat >>confdefs.h <<_ACEOF
21872 #define HAVE_AKONADI_COLLECTION 1
21873 _ACEOF
21874
21875 else
21876   AKONADIFOUND=no
21877 fi
21878
21879 done
21880
21881 CPPFLAGS="$old_CPPFLAGS"
21882 ac_ext=cpp
21883 ac_cpp='$CXXCPP $CPPFLAGS'
21884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21887
21888
21889 # In contrast to the Evolution backend, the Akonadi backend is
21890 # currently considered optional. "configure" will enable it only
21891 # if explicitly enabled (was turned on automatically previously,
21892 # for example on Ubuntu Hardy, and didn't compile).
21893
21894           # Check whether --enable-akonadi was given.
21895 if test "${enable_akonadi+set}" = set; then :
21896   enableval=$enable_akonadi; enable_akonadi="$enableval"
21897                        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
21898 else
21899   enable_akonadi=no
21900
21901 fi
21902
21903           BACKENDS="$BACKENDS akonadi"
21904           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_AKONADI"
21905           for source in akonadi
21906           do
21907             SYNCSOURCES="$SYNCSOURCES src/backends/akonadi/syncakonadi.la"
21908           done
21909
21910
21911
21912 if test "$enable_akonadi" = "yes"; then
21913         # conditional compilation in preprocessor
21914
21915 $as_echo "#define ENABLE_AKONADI 1" >>confdefs.h
21916
21917 else
21918         # avoid unneeded dependencies on Akonadi
21919         KDEPIM_CFLAGS=
21920         KDEPIM_LIBS=
21921 fi
21922
21923
21924
21925 # conditional compilation in make
21926  if test "$enable_akonadi" = "yes"; then
21927   ENABLE_AKONADI_TRUE=
21928   ENABLE_AKONADI_FALSE='#'
21929 else
21930   ENABLE_AKONADI_TRUE='#'
21931   ENABLE_AKONADI_FALSE=
21932 fi
21933
21934
21935 # let others include Akonadi backend's header file
21936 # (not strictly necessary, could be avoided by not
21937 # including Akonadi header files in public header file
21938 # of source)
21939 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $KDEPIM_CFLAGS"
21940 # ^^^^^^^^^^^^^^ src/backends/akonadi/configure-sub.in ^^^^^^^^^^^^^^
21941
21942 # vvvvvvvvvvvvvv src/backends/evolution/configure-sub.in vvvvvvvvvvvvvv
21943
21944 anymissing="
21945 Please install the development packages of Evolution and/or
21946 set the PKG_CONFIG_PATH variable so that it points towards
21947 the .pc files of libedataserver, libecal and libebook (the
21948 latter two are optional).
21949
21950 You can check that these packages are available by running
21951 pkg-config --list-all."
21952
21953 evomissing="No compatible evolution-data-server was found.
21954 $anymissing"
21955
21956
21957 pkg_failed=no
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EPACKAGE" >&5
21959 $as_echo_n "checking for EPACKAGE... " >&6; }
21960
21961 if test -n "$EPACKAGE_CFLAGS"; then
21962     pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
21963  elif test -n "$PKG_CONFIG"; then
21964     if test -n "$PKG_CONFIG" && \
21965     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedataserver-1.2\""; } >&5
21966   ($PKG_CONFIG --exists --print-errors "libedataserver-1.2") 2>&5
21967   ac_status=$?
21968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21969   test $ac_status = 0; }; then
21970   pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "libedataserver-1.2" 2>/dev/null`
21971                       test "x$?" != "x0" && pkg_failed=yes
21972 else
21973   pkg_failed=yes
21974 fi
21975  else
21976     pkg_failed=untried
21977 fi
21978 if test -n "$EPACKAGE_LIBS"; then
21979     pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
21980  elif test -n "$PKG_CONFIG"; then
21981     if test -n "$PKG_CONFIG" && \
21982     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedataserver-1.2\""; } >&5
21983   ($PKG_CONFIG --exists --print-errors "libedataserver-1.2") 2>&5
21984   ac_status=$?
21985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21986   test $ac_status = 0; }; then
21987   pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "libedataserver-1.2" 2>/dev/null`
21988                       test "x$?" != "x0" && pkg_failed=yes
21989 else
21990   pkg_failed=yes
21991 fi
21992  else
21993     pkg_failed=untried
21994 fi
21995
21996
21997
21998 if test $pkg_failed = yes; then
21999         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22000 $as_echo "no" >&6; }
22001
22002 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22003         _pkg_short_errors_supported=yes
22004 else
22005         _pkg_short_errors_supported=no
22006 fi
22007         if test $_pkg_short_errors_supported = yes; then
22008                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedataserver-1.2" 2>&1`
22009         else
22010                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedataserver-1.2" 2>&1`
22011         fi
22012         # Put the nasty error message in config.log where it belongs
22013         echo "$EPACKAGE_PKG_ERRORS" >&5
22014
22015         EDSFOUND=no
22016 elif test $pkg_failed = untried; then
22017         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22018 $as_echo "no" >&6; }
22019         EDSFOUND=no
22020 else
22021         EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
22022         EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
22023         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22024 $as_echo "yes" >&6; }
22025         EDSFOUND=yes
22026 fi
22027
22028 pkg_failed=no
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECAL" >&5
22030 $as_echo_n "checking for ECAL... " >&6; }
22031
22032 if test -n "$ECAL_CFLAGS"; then
22033     pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
22034  elif test -n "$PKG_CONFIG"; then
22035     if test -n "$PKG_CONFIG" && \
22036     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
22037   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
22038   ac_status=$?
22039   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22040   test $ac_status = 0; }; then
22041   pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
22042                       test "x$?" != "x0" && pkg_failed=yes
22043 else
22044   pkg_failed=yes
22045 fi
22046  else
22047     pkg_failed=untried
22048 fi
22049 if test -n "$ECAL_LIBS"; then
22050     pkg_cv_ECAL_LIBS="$ECAL_LIBS"
22051  elif test -n "$PKG_CONFIG"; then
22052     if test -n "$PKG_CONFIG" && \
22053     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
22054   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
22055   ac_status=$?
22056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22057   test $ac_status = 0; }; then
22058   pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
22059                       test "x$?" != "x0" && pkg_failed=yes
22060 else
22061   pkg_failed=yes
22062 fi
22063  else
22064     pkg_failed=untried
22065 fi
22066
22067
22068
22069 if test $pkg_failed = yes; then
22070         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22071 $as_echo "no" >&6; }
22072
22073 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22074         _pkg_short_errors_supported=yes
22075 else
22076         _pkg_short_errors_supported=no
22077 fi
22078         if test $_pkg_short_errors_supported = yes; then
22079                 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libecal-1.2" 2>&1`
22080         else
22081                 ECAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libecal-1.2" 2>&1`
22082         fi
22083         # Put the nasty error message in config.log where it belongs
22084         echo "$ECAL_PKG_ERRORS" >&5
22085
22086         ECALFOUND=no
22087 elif test $pkg_failed = untried; then
22088         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22089 $as_echo "no" >&6; }
22090         ECALFOUND=no
22091 else
22092         ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
22093         ECAL_LIBS=$pkg_cv_ECAL_LIBS
22094         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22095 $as_echo "yes" >&6; }
22096         ECALFOUND=yes
22097 fi
22098
22099 pkg_failed=no
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBOOK" >&5
22101 $as_echo_n "checking for EBOOK... " >&6; }
22102
22103 if test -n "$EBOOK_CFLAGS"; then
22104     pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
22105  elif test -n "$PKG_CONFIG"; then
22106     if test -n "$PKG_CONFIG" && \
22107     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2\""; } >&5
22108   ($PKG_CONFIG --exists --print-errors "libebook-1.2") 2>&5
22109   ac_status=$?
22110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22111   test $ac_status = 0; }; then
22112   pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "libebook-1.2" 2>/dev/null`
22113                       test "x$?" != "x0" && pkg_failed=yes
22114 else
22115   pkg_failed=yes
22116 fi
22117  else
22118     pkg_failed=untried
22119 fi
22120 if test -n "$EBOOK_LIBS"; then
22121     pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
22122  elif test -n "$PKG_CONFIG"; then
22123     if test -n "$PKG_CONFIG" && \
22124     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2\""; } >&5
22125   ($PKG_CONFIG --exists --print-errors "libebook-1.2") 2>&5
22126   ac_status=$?
22127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22128   test $ac_status = 0; }; then
22129   pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "libebook-1.2" 2>/dev/null`
22130                       test "x$?" != "x0" && pkg_failed=yes
22131 else
22132   pkg_failed=yes
22133 fi
22134  else
22135     pkg_failed=untried
22136 fi
22137
22138
22139
22140 if test $pkg_failed = yes; then
22141         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22142 $as_echo "no" >&6; }
22143
22144 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22145         _pkg_short_errors_supported=yes
22146 else
22147         _pkg_short_errors_supported=no
22148 fi
22149         if test $_pkg_short_errors_supported = yes; then
22150                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libebook-1.2" 2>&1`
22151         else
22152                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libebook-1.2" 2>&1`
22153         fi
22154         # Put the nasty error message in config.log where it belongs
22155         echo "$EBOOK_PKG_ERRORS" >&5
22156
22157         EBOOKFOUND=no
22158 elif test $pkg_failed = untried; then
22159         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22160 $as_echo "no" >&6; }
22161         EBOOKFOUND=no
22162 else
22163         EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
22164         EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
22165         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22166 $as_echo "yes" >&6; }
22167         EBOOKFOUND=yes
22168 fi
22169
22170
22171 pkg_failed=no
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBOOK_VERSION" >&5
22173 $as_echo_n "checking for EBOOK_VERSION... " >&6; }
22174
22175 if test -n "$EBOOK_VERSION_CFLAGS"; then
22176     pkg_cv_EBOOK_VERSION_CFLAGS="$EBOOK_VERSION_CFLAGS"
22177  elif test -n "$PKG_CONFIG"; then
22178     if test -n "$PKG_CONFIG" && \
22179     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2 >= 3.3\""; } >&5
22180   ($PKG_CONFIG --exists --print-errors "libebook-1.2 >= 3.3") 2>&5
22181   ac_status=$?
22182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22183   test $ac_status = 0; }; then
22184   pkg_cv_EBOOK_VERSION_CFLAGS=`$PKG_CONFIG --cflags "libebook-1.2 >= 3.3" 2>/dev/null`
22185                       test "x$?" != "x0" && pkg_failed=yes
22186 else
22187   pkg_failed=yes
22188 fi
22189  else
22190     pkg_failed=untried
22191 fi
22192 if test -n "$EBOOK_VERSION_LIBS"; then
22193     pkg_cv_EBOOK_VERSION_LIBS="$EBOOK_VERSION_LIBS"
22194  elif test -n "$PKG_CONFIG"; then
22195     if test -n "$PKG_CONFIG" && \
22196     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2 >= 3.3\""; } >&5
22197   ($PKG_CONFIG --exists --print-errors "libebook-1.2 >= 3.3") 2>&5
22198   ac_status=$?
22199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22200   test $ac_status = 0; }; then
22201   pkg_cv_EBOOK_VERSION_LIBS=`$PKG_CONFIG --libs "libebook-1.2 >= 3.3" 2>/dev/null`
22202                       test "x$?" != "x0" && pkg_failed=yes
22203 else
22204   pkg_failed=yes
22205 fi
22206  else
22207     pkg_failed=untried
22208 fi
22209
22210
22211
22212 if test $pkg_failed = yes; then
22213         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22214 $as_echo "no" >&6; }
22215
22216 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22217         _pkg_short_errors_supported=yes
22218 else
22219         _pkg_short_errors_supported=no
22220 fi
22221         if test $_pkg_short_errors_supported = yes; then
22222                 EBOOK_VERSION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libebook-1.2 >= 3.3" 2>&1`
22223         else
22224                 EBOOK_VERSION_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libebook-1.2 >= 3.3" 2>&1`
22225         fi
22226         # Put the nasty error message in config.log where it belongs
22227         echo "$EBOOK_VERSION_PKG_ERRORS" >&5
22228
22229         true
22230 elif test $pkg_failed = untried; then
22231         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22232 $as_echo "no" >&6; }
22233         true
22234 else
22235         EBOOK_VERSION_CFLAGS=$pkg_cv_EBOOK_VERSION_CFLAGS
22236         EBOOK_VERSION_LIBS=$pkg_cv_EBOOK_VERSION_LIBS
22237         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22238 $as_echo "yes" >&6; }
22239
22240 $as_echo "#define HAVE_E_CONTACT_INLINE_LOCAL_PHOTOS 1" >>confdefs.h
22241
22242 fi
22243
22244
22245           # Check whether --enable-ebook was given.
22246 if test "${enable_ebook+set}" = set; then :
22247   enableval=$enable_ebook; enable_ebook="$enableval"
22248 else
22249   test "$EBOOKFOUND" = "yes" && enable_ebook="yes" ||
22250                        as_fn_error $? "libebook not found. Use --disable-ebook to compile without or install the necessary development files." "$LINENO" 5
22251
22252 fi
22253
22254           BACKENDS="$BACKENDS ebook"
22255           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_EBOOK"
22256           for source in evolution
22257           do
22258             SYNCSOURCES="$SYNCSOURCES src/backends/evolution/syncebook.la"
22259           done
22260
22261
22262
22263           # Check whether --enable-ecal was given.
22264 if test "${enable_ecal+set}" = set; then :
22265   enableval=$enable_ecal; enable_ecal="$enableval"
22266 else
22267   test "$ECALFOUND" = "yes" && enable_ecal="yes" ||
22268                        as_fn_error $? "libecal not found. Use --disable-ecal to compile without or install the necessary development files." "$LINENO" 5
22269
22270 fi
22271
22272           BACKENDS="$BACKENDS ecal"
22273           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_ECAL"
22274           for source in evolution
22275           do
22276             SYNCSOURCES="$SYNCSOURCES src/backends/evolution/syncecal.la"
22277           done
22278
22279
22280
22281 enable_evo="no"
22282 if test "$enable_ebook" = "yes"; then
22283         test "x${EBOOKFOUND}" = "xyes" || as_fn_error $? "--enable-ebook requires pkg-config information for libebook, which was not found" "$LINENO" 5
22284
22285 $as_echo "#define ENABLE_EBOOK 1" >>confdefs.h
22286
22287         enable_evo="yes"
22288 else
22289         EBOOK_CFLAGS=
22290         EBOOK_LIBS=
22291 fi
22292
22293  if test "$enable_ecal" = "yes"; then
22294   ENABLE_ECAL_TRUE=
22295   ENABLE_ECAL_FALSE='#'
22296 else
22297   ENABLE_ECAL_TRUE='#'
22298   ENABLE_ECAL_FALSE=
22299 fi
22300
22301 if test "$enable_ecal" = "yes"; then
22302         need_ical="yes"
22303         test "x${ECALFOUND}" = "xyes" || as_fn_error $? "--enable-ecal requires pkg-config information for libecal, which was not found\"" "$LINENO" 5
22304
22305 $as_echo "#define ENABLE_ECAL 1" >>confdefs.h
22306
22307         enable_evo="yes"
22308 else
22309         ECAL_CFLAGS=
22310         ECAL_LIBS=
22311 fi
22312
22313 if test "$enable_evo" = "yes"; then
22314         need_glib="yes"
22315         if test "$EDSFOUND" = "yes"; then
22316
22317 $as_echo "#define HAVE_EDS 1" >>confdefs.h
22318
22319         else
22320                 as_fn_error $? "$evomissing" "$LINENO" 5
22321         fi
22322         # Only the EClient code supports the API in EDS 3.5.x.
22323
22324 pkg_failed=no
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EDS_VERSION" >&5
22326 $as_echo_n "checking for EDS_VERSION... " >&6; }
22327
22328 if test -n "$EDS_VERSION_CFLAGS"; then
22329     pkg_cv_EDS_VERSION_CFLAGS="$EDS_VERSION_CFLAGS"
22330  elif test -n "$PKG_CONFIG"; then
22331     if test -n "$PKG_CONFIG" && \
22332     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedataserver-1.2 >= 3.5\""; } >&5
22333   ($PKG_CONFIG --exists --print-errors "libedataserver-1.2 >= 3.5") 2>&5
22334   ac_status=$?
22335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22336   test $ac_status = 0; }; then
22337   pkg_cv_EDS_VERSION_CFLAGS=`$PKG_CONFIG --cflags "libedataserver-1.2 >= 3.5" 2>/dev/null`
22338                       test "x$?" != "x0" && pkg_failed=yes
22339 else
22340   pkg_failed=yes
22341 fi
22342  else
22343     pkg_failed=untried
22344 fi
22345 if test -n "$EDS_VERSION_LIBS"; then
22346     pkg_cv_EDS_VERSION_LIBS="$EDS_VERSION_LIBS"
22347  elif test -n "$PKG_CONFIG"; then
22348     if test -n "$PKG_CONFIG" && \
22349     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedataserver-1.2 >= 3.5\""; } >&5
22350   ($PKG_CONFIG --exists --print-errors "libedataserver-1.2 >= 3.5") 2>&5
22351   ac_status=$?
22352   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22353   test $ac_status = 0; }; then
22354   pkg_cv_EDS_VERSION_LIBS=`$PKG_CONFIG --libs "libedataserver-1.2 >= 3.5" 2>/dev/null`
22355                       test "x$?" != "x0" && pkg_failed=yes
22356 else
22357   pkg_failed=yes
22358 fi
22359  else
22360     pkg_failed=untried
22361 fi
22362
22363
22364
22365 if test $pkg_failed = yes; then
22366         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22367 $as_echo "no" >&6; }
22368
22369 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22370         _pkg_short_errors_supported=yes
22371 else
22372         _pkg_short_errors_supported=no
22373 fi
22374         if test $_pkg_short_errors_supported = yes; then
22375                 EDS_VERSION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedataserver-1.2 >= 3.5" 2>&1`
22376         else
22377                 EDS_VERSION_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedataserver-1.2 >= 3.5" 2>&1`
22378         fi
22379         # Put the nasty error message in config.log where it belongs
22380         echo "$EDS_VERSION_PKG_ERRORS" >&5
22381
22382         CFLAGS_old="$CFLAGS"
22383         CFLAGS="$CFLAGS $EPACKAGE_CFLAGS"
22384         for ac_header in libedataserver/eds-version.h
22385 do :
22386   ac_fn_cxx_check_header_mongrel "$LINENO" "libedataserver/eds-version.h" "ac_cv_header_libedataserver_eds_version_h" "$ac_includes_default"
22387 if test "x$ac_cv_header_libedataserver_eds_version_h" = xyes; then :
22388   cat >>confdefs.h <<_ACEOF
22389 #define HAVE_LIBEDATASERVER_EDS_VERSION_H 1
22390 _ACEOF
22391
22392 fi
22393
22394 done
22395
22396         CFLAGS="$CFLAGS_old"
22397 elif test $pkg_failed = untried; then
22398         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22399 $as_echo "no" >&6; }
22400         CFLAGS_old="$CFLAGS"
22401         CFLAGS="$CFLAGS $EPACKAGE_CFLAGS"
22402         for ac_header in libedataserver/eds-version.h
22403 do :
22404   ac_fn_cxx_check_header_mongrel "$LINENO" "libedataserver/eds-version.h" "ac_cv_header_libedataserver_eds_version_h" "$ac_includes_default"
22405 if test "x$ac_cv_header_libedataserver_eds_version_h" = xyes; then :
22406   cat >>confdefs.h <<_ACEOF
22407 #define HAVE_LIBEDATASERVER_EDS_VERSION_H 1
22408 _ACEOF
22409
22410 fi
22411
22412 done
22413
22414         CFLAGS="$CFLAGS_old"
22415 else
22416         EDS_VERSION_CFLAGS=$pkg_cv_EDS_VERSION_CFLAGS
22417         EDS_VERSION_LIBS=$pkg_cv_EDS_VERSION_LIBS
22418         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22419 $as_echo "yes" >&6; }
22420
22421 $as_echo "#define USE_EDS_CLIENT 1" >>confdefs.h
22422
22423                            # Was used for a while (ESourceBackendSummarySetup), but not anymore.
22424                            # Don't depend on it, it wasn't in 3.6 yet.
22425                            # PKG_CHECK_MODULES(EBOOKCONTACTS, libebook-contacts-1.2)
22426                            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for e_book_client_new_direct in -lebook-1.2" >&5
22427 $as_echo_n "checking for e_book_client_new_direct in -lebook-1.2... " >&6; }
22428 if ${ac_cv_lib_ebook_1_2_e_book_client_new_direct+:} false; then :
22429   $as_echo_n "(cached) " >&6
22430 else
22431   ac_check_lib_save_LIBS=$LIBS
22432 LIBS="-lebook-1.2 $EDS_VERSION_LIBS $LIBS"
22433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22434 /* end confdefs.h.  */
22435
22436 /* Override any GCC internal prototype to avoid an error.
22437    Use char because int might match the return type of a GCC
22438    builtin and then its argument prototype would still apply.  */
22439 #ifdef __cplusplus
22440 extern "C"
22441 #endif
22442 char e_book_client_new_direct ();
22443 int
22444 main ()
22445 {
22446 return e_book_client_new_direct ();
22447   ;
22448   return 0;
22449 }
22450 _ACEOF
22451 if ac_fn_cxx_try_link "$LINENO"; then :
22452   ac_cv_lib_ebook_1_2_e_book_client_new_direct=yes
22453 else
22454   ac_cv_lib_ebook_1_2_e_book_client_new_direct=no
22455 fi
22456 rm -f core conftest.err conftest.$ac_objext \
22457     conftest$ac_exeext conftest.$ac_ext
22458 LIBS=$ac_check_lib_save_LIBS
22459 fi
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebook_1_2_e_book_client_new_direct" >&5
22461 $as_echo "$ac_cv_lib_ebook_1_2_e_book_client_new_direct" >&6; }
22462 if test "x$ac_cv_lib_ebook_1_2_e_book_client_new_direct" = xyes; then :
22463
22464 $as_echo "#define HAVE_E_BOOK_CLIENT_NEW_DIRECT 1" >>confdefs.h
22465
22466 else
22467   true
22468 fi
22469
22470                            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for e_book_client_connect_direct_sync in -lebook-1.2" >&5
22471 $as_echo_n "checking for e_book_client_connect_direct_sync in -lebook-1.2... " >&6; }
22472 if ${ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync+:} false; then :
22473   $as_echo_n "(cached) " >&6
22474 else
22475   ac_check_lib_save_LIBS=$LIBS
22476 LIBS="-lebook-1.2 $EDS_VERSION_LIBS $LIBS"
22477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22478 /* end confdefs.h.  */
22479
22480 /* Override any GCC internal prototype to avoid an error.
22481    Use char because int might match the return type of a GCC
22482    builtin and then its argument prototype would still apply.  */
22483 #ifdef __cplusplus
22484 extern "C"
22485 #endif
22486 char e_book_client_connect_direct_sync ();
22487 int
22488 main ()
22489 {
22490 return e_book_client_connect_direct_sync ();
22491   ;
22492   return 0;
22493 }
22494 _ACEOF
22495 if ac_fn_cxx_try_link "$LINENO"; then :
22496   ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync=yes
22497 else
22498   ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync=no
22499 fi
22500 rm -f core conftest.err conftest.$ac_objext \
22501     conftest$ac_exeext conftest.$ac_ext
22502 LIBS=$ac_check_lib_save_LIBS
22503 fi
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync" >&5
22505 $as_echo "$ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync" >&6; }
22506 if test "x$ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync" = xyes; then :
22507
22508 $as_echo "#define HAVE_E_BOOK_CLIENT_CONNECT_DIRECT_SYNC 1" >>confdefs.h
22509
22510 else
22511   true
22512 fi
22513
22514
22515 fi
22516 else
22517         EPACKAGE_CFLAGS=
22518         EPACKAGE_LIBS=
22519 fi
22520
22521 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EPACKAGE_CFLAGS $ECAL_CFLAGS $EBOOK_CFLAGS $EBOOKCONTACTS_CFLAGS"
22522 # ^^^^^^^^^^^^^^ src/backends/evolution/configure-sub.in ^^^^^^^^^^^^^^
22523
22524 # vvvvvvvvvvvvvv src/backends/file/configure-sub.in vvvvvvvvvvvvvv
22525
22526
22527 FILE_CFLAGS=
22528 FILE_LIBS=
22529
22530
22531
22532 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $FILE_CFLAGS"
22533
22534
22535           # Check whether --enable-file was given.
22536 if test "${enable_file+set}" = set; then :
22537   enableval=$enable_file; enable_file="$enableval"
22538 else
22539   enable_file="yes"
22540
22541 fi
22542
22543           BACKENDS="$BACKENDS file"
22544           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_FILE"
22545           for source in file
22546           do
22547             SYNCSOURCES="$SYNCSOURCES src/backends/file/syncfile.la"
22548           done
22549
22550
22551
22552 if test "$enable_file" = "yes"; then
22553
22554 $as_echo "#define ENABLE_FILE 1" >>confdefs.h
22555
22556 fi
22557 # ^^^^^^^^^^^^^^ src/backends/file/configure-sub.in ^^^^^^^^^^^^^^
22558
22559 # vvvvvvvvvvvvvv src/backends/gnome/configure-sub.in vvvvvvvvvvvvvv
22560
22561 pkg_failed=no
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KEYRING" >&5
22563 $as_echo_n "checking for KEYRING... " >&6; }
22564
22565 if test -n "$KEYRING_CFLAGS"; then
22566     pkg_cv_KEYRING_CFLAGS="$KEYRING_CFLAGS"
22567  elif test -n "$PKG_CONFIG"; then
22568     if test -n "$PKG_CONFIG" && \
22569     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1 >= 2.20\""; } >&5
22570   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1 >= 2.20") 2>&5
22571   ac_status=$?
22572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22573   test $ac_status = 0; }; then
22574   pkg_cv_KEYRING_CFLAGS=`$PKG_CONFIG --cflags "gnome-keyring-1 >= 2.20" 2>/dev/null`
22575                       test "x$?" != "x0" && pkg_failed=yes
22576 else
22577   pkg_failed=yes
22578 fi
22579  else
22580     pkg_failed=untried
22581 fi
22582 if test -n "$KEYRING_LIBS"; then
22583     pkg_cv_KEYRING_LIBS="$KEYRING_LIBS"
22584  elif test -n "$PKG_CONFIG"; then
22585     if test -n "$PKG_CONFIG" && \
22586     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1 >= 2.20\""; } >&5
22587   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1 >= 2.20") 2>&5
22588   ac_status=$?
22589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22590   test $ac_status = 0; }; then
22591   pkg_cv_KEYRING_LIBS=`$PKG_CONFIG --libs "gnome-keyring-1 >= 2.20" 2>/dev/null`
22592                       test "x$?" != "x0" && pkg_failed=yes
22593 else
22594   pkg_failed=yes
22595 fi
22596  else
22597     pkg_failed=untried
22598 fi
22599
22600
22601
22602 if test $pkg_failed = yes; then
22603         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22604 $as_echo "no" >&6; }
22605
22606 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22607         _pkg_short_errors_supported=yes
22608 else
22609         _pkg_short_errors_supported=no
22610 fi
22611         if test $_pkg_short_errors_supported = yes; then
22612                 KEYRING_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnome-keyring-1 >= 2.20" 2>&1`
22613         else
22614                 KEYRING_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnome-keyring-1 >= 2.20" 2>&1`
22615         fi
22616         # Put the nasty error message in config.log where it belongs
22617         echo "$KEYRING_PKG_ERRORS" >&5
22618
22619         HAVE_KEYRING=no
22620 elif test $pkg_failed = untried; then
22621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22622 $as_echo "no" >&6; }
22623         HAVE_KEYRING=no
22624 else
22625         KEYRING_CFLAGS=$pkg_cv_KEYRING_CFLAGS
22626         KEYRING_LIBS=$pkg_cv_KEYRING_LIBS
22627         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22628 $as_echo "yes" >&6; }
22629         HAVE_KEYRING=yes
22630 fi
22631 # Check whether --enable-gnome-keyring was given.
22632 if test "${enable_gnome_keyring+set}" = set; then :
22633   enableval=$enable_gnome_keyring; enable_gnome_keyring="$enableval"
22634                test "$enable_gnome_keyring" = "yes" || test "$enable_gnome_keyring" = "no" || as_fn_error $? "invalid value for --enable-gnome-keyring: $enable_gnome_keyring" "$LINENO" 5
22635                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
22636 else
22637   enable_gnome_keyring="$HAVE_KEYRING"
22638 fi
22639
22640 if test $enable_gnome_keyring = "yes"; then
22641     have_keyring=yes
22642
22643 $as_echo "#define USE_GNOME_KEYRING 1" >>confdefs.h
22644
22645     # link into static executables, similar to a SyncSource
22646     SYNCSOURCES="$SYNCSOURCES src/backends/gnome/platformgnome.la"
22647 fi
22648 # ^^^^^^^^^^^^^^ src/backends/gnome/configure-sub.in ^^^^^^^^^^^^^^
22649
22650 # vvvvvvvvvvvvvv src/backends/goa/configure-sub.in vvvvvvvvvvvvvv
22651 # Check whether --enable-goa was given.
22652 if test "${enable_goa+set}" = set; then :
22653   enableval=$enable_goa; enable_goa="$enableval"
22654                test "$enable_goa" = "yes" || test "$enable_goa" = "no" || as_fn_error $? "invalid value for --enable-goa: $enable_goa" "$LINENO" 5
22655
22656 else
22657   enable_goa="yes"
22658 fi
22659
22660 if test $enable_goa = "yes"; then
22661
22662 $as_echo "#define USE_GOA 1" >>confdefs.h
22663
22664     # link into static executables, similar to a SyncSource
22665     SYNCSOURCES="$SYNCSOURCES src/backends/goa/providergoa.la"
22666 fi
22667
22668 # conditional compilation in make
22669  if test "$use_goa" = "yes"; then
22670   USE_GOA_TRUE=
22671   USE_GOA_FALSE='#'
22672 else
22673   USE_GOA_TRUE='#'
22674   USE_GOA_FALSE=
22675 fi
22676
22677 # ^^^^^^^^^^^^^^ src/backends/goa/configure-sub.in ^^^^^^^^^^^^^^
22678
22679 # vvvvvvvvvvvvvv src/backends/kcalextended/configure-sub.in vvvvvvvvvvvvvv
22680
22681 # BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS ..."
22682
22683
22684           # Check whether --enable-kcalextended was given.
22685 if test "${enable_kcalextended+set}" = set; then :
22686   enableval=$enable_kcalextended; enable_kcalextended="$enableval"
22687 else
22688   enable_kcalextended="no"
22689
22690 fi
22691
22692           BACKENDS="$BACKENDS kcalextended"
22693           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_KCALEXTENDED"
22694           for source in kcalextended
22695           do
22696             SYNCSOURCES="$SYNCSOURCES src/backends/kcalextended/synckcalextended.la"
22697           done
22698
22699
22700
22701 if test "$enable_kcalextended" = "yes"; then
22702
22703 $as_echo "#define ENABLE_KCALEXTENDED 1" >>confdefs.h
22704
22705
22706 pkg_failed=no
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KCALEXTENDED" >&5
22708 $as_echo_n "checking for KCALEXTENDED... " >&6; }
22709
22710 if test -n "$KCALEXTENDED_CFLAGS"; then
22711     pkg_cv_KCALEXTENDED_CFLAGS="$KCALEXTENDED_CFLAGS"
22712  elif test -n "$PKG_CONFIG"; then
22713     if test -n "$PKG_CONFIG" && \
22714     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmkcal libkcalcoren\""; } >&5
22715   ($PKG_CONFIG --exists --print-errors "libmkcal libkcalcoren") 2>&5
22716   ac_status=$?
22717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22718   test $ac_status = 0; }; then
22719   pkg_cv_KCALEXTENDED_CFLAGS=`$PKG_CONFIG --cflags "libmkcal libkcalcoren" 2>/dev/null`
22720                       test "x$?" != "x0" && pkg_failed=yes
22721 else
22722   pkg_failed=yes
22723 fi
22724  else
22725     pkg_failed=untried
22726 fi
22727 if test -n "$KCALEXTENDED_LIBS"; then
22728     pkg_cv_KCALEXTENDED_LIBS="$KCALEXTENDED_LIBS"
22729  elif test -n "$PKG_CONFIG"; then
22730     if test -n "$PKG_CONFIG" && \
22731     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmkcal libkcalcoren\""; } >&5
22732   ($PKG_CONFIG --exists --print-errors "libmkcal libkcalcoren") 2>&5
22733   ac_status=$?
22734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22735   test $ac_status = 0; }; then
22736   pkg_cv_KCALEXTENDED_LIBS=`$PKG_CONFIG --libs "libmkcal libkcalcoren" 2>/dev/null`
22737                       test "x$?" != "x0" && pkg_failed=yes
22738 else
22739   pkg_failed=yes
22740 fi
22741  else
22742     pkg_failed=untried
22743 fi
22744
22745
22746
22747 if test $pkg_failed = yes; then
22748         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22749 $as_echo "no" >&6; }
22750
22751 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22752         _pkg_short_errors_supported=yes
22753 else
22754         _pkg_short_errors_supported=no
22755 fi
22756         if test $_pkg_short_errors_supported = yes; then
22757                 KCALEXTENDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmkcal libkcalcoren" 2>&1`
22758         else
22759                 KCALEXTENDED_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmkcal libkcalcoren" 2>&1`
22760         fi
22761         # Put the nasty error message in config.log where it belongs
22762         echo "$KCALEXTENDED_PKG_ERRORS" >&5
22763
22764         as_fn_error $? "Package requirements (libmkcal libkcalcoren) were not met:
22765
22766 $KCALEXTENDED_PKG_ERRORS
22767
22768 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22769 installed software in a non-standard prefix.
22770
22771 Alternatively, you may set the environment variables KCALEXTENDED_CFLAGS
22772 and KCALEXTENDED_LIBS to avoid the need to call pkg-config.
22773 See the pkg-config man page for more details." "$LINENO" 5
22774 elif test $pkg_failed = untried; then
22775         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22776 $as_echo "no" >&6; }
22777         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22779 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22780 is in your PATH or set the PKG_CONFIG environment variable to the full
22781 path to pkg-config.
22782
22783 Alternatively, you may set the environment variables KCALEXTENDED_CFLAGS
22784 and KCALEXTENDED_LIBS to avoid the need to call pkg-config.
22785 See the pkg-config man page for more details.
22786
22787 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22788 See \`config.log' for more details" "$LINENO" 5; }
22789 else
22790         KCALEXTENDED_CFLAGS=$pkg_cv_KCALEXTENDED_CFLAGS
22791         KCALEXTENDED_LIBS=$pkg_cv_KCALEXTENDED_LIBS
22792         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22793 $as_echo "yes" >&6; }
22794
22795 fi
22796 fi
22797 # ^^^^^^^^^^^^^^ src/backends/kcalextended/configure-sub.in ^^^^^^^^^^^^^^
22798
22799 # vvvvvvvvvvvvvv src/backends/kde/configure-sub.in vvvvvvvvvvvvvv
22800 # first check for qmake-qt4, because qmake may point to qmake-qt3.
22801 for ac_prog in qmake-qt4 qmake
22802 do
22803   # Extract the first word of "$ac_prog", so it can be a program name with args.
22804 set dummy $ac_prog; ac_word=$2
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22806 $as_echo_n "checking for $ac_word... " >&6; }
22807 if ${ac_cv_prog_QMAKE+:} false; then :
22808   $as_echo_n "(cached) " >&6
22809 else
22810   if test -n "$QMAKE"; then
22811   ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
22812 else
22813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22814 for as_dir in $PATH
22815 do
22816   IFS=$as_save_IFS
22817   test -z "$as_dir" && as_dir=.
22818     for ac_exec_ext in '' $ac_executable_extensions; do
22819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22820     ac_cv_prog_QMAKE="$ac_prog"
22821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22822     break 2
22823   fi
22824 done
22825   done
22826 IFS=$as_save_IFS
22827
22828 fi
22829 fi
22830 QMAKE=$ac_cv_prog_QMAKE
22831 if test -n "$QMAKE"; then
22832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
22833 $as_echo "$QMAKE" >&6; }
22834 else
22835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22836 $as_echo "no" >&6; }
22837 fi
22838
22839
22840   test -n "$QMAKE" && break
22841 done
22842
22843
22844 if test "x$QMAKE" != 'x'
22845 then
22846   # Extract the first word of "kde4-config", so it can be a program name with args.
22847 set dummy kde4-config; ac_word=$2
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22849 $as_echo_n "checking for $ac_word... " >&6; }
22850 if ${ac_cv_path_KDE4_CONFIG+:} false; then :
22851   $as_echo_n "(cached) " >&6
22852 else
22853   case $KDE4_CONFIG in
22854   [\\/]* | ?:[\\/]*)
22855   ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
22856   ;;
22857   *)
22858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22859 for as_dir in $PATH
22860 do
22861   IFS=$as_save_IFS
22862   test -z "$as_dir" && as_dir=.
22863     for ac_exec_ext in '' $ac_executable_extensions; do
22864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22865     ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22867     break 2
22868   fi
22869 done
22870   done
22871 IFS=$as_save_IFS
22872
22873   test -z "$ac_cv_path_KDE4_CONFIG" && ac_cv_path_KDE4_CONFIG="no"
22874   ;;
22875 esac
22876 fi
22877 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
22878 if test -n "$KDE4_CONFIG"; then
22879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
22880 $as_echo "$KDE4_CONFIG" >&6; }
22881 else
22882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22883 $as_echo "no" >&6; }
22884 fi
22885
22886
22887
22888   if test "x$KDE4_CONFIG" != 'xno'
22889   then
22890     KDEKWALLETFOUND=yes
22891     if ! test "$KDE_KWALLET_CFLAGS"; then
22892       KDE_KWALLET_CFLAGS="-I`$KDE4_CONFIG --path include` -I`$KDE4_CONFIG --path include`/KDE `pkg-config --cflags QtDBus QtCore`"
22893     fi
22894     if ! test "$KDE_KWALLET_LIBS"; then
22895       KDE_KWALLET_LIBS="-lkdeui -lkdecore -L`kde4-config --install lib` `pkg-config --libs QtDBus QtCore`"
22896     fi
22897     ac_ext=cpp
22898 ac_cpp='$CXXCPP $CPPFLAGS'
22899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22902
22903     old_CPPFLAGS="$CPPFLAGS"
22904     CPPFLAGS="$CPPFLAGS $KDE_KWALLET_CFLAGS"
22905     for ac_header in kwallet.h
22906 do :
22907   ac_fn_cxx_check_header_mongrel "$LINENO" "kwallet.h" "ac_cv_header_kwallet_h" "$ac_includes_default"
22908 if test "x$ac_cv_header_kwallet_h" = xyes; then :
22909   cat >>confdefs.h <<_ACEOF
22910 #define HAVE_KWALLET_H 1
22911 _ACEOF
22912
22913 else
22914   KDEKWALLETFOUND=no
22915 fi
22916
22917 done
22918
22919     CPPFLAGS="$old_CPPFLAGS"
22920     ac_ext=cpp
22921 ac_cpp='$CXXCPP $CPPFLAGS'
22922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22925
22926   else
22927     KDEKWALLETFOUND=no
22928   fi
22929 else
22930   KDEKWALLETFOUND=no
22931 fi
22932
22933 # In contrast to the GNOME KEYRING, the KWallet is
22934 # currently considered optional. "configure" will never enable
22935 # by default, because that is a change that might not be
22936 # expected by traditional users.
22937 # Check whether --enable-kwallet was given.
22938 if test "${enable_kwallet+set}" = set; then :
22939   enableval=$enable_kwallet; use_kde_kwallet="$enableval"
22940               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
22941 else
22942   use_kde_kwallet="no"
22943 fi
22944
22945
22946 if test "$use_kde_kwallet" = "yes"; then
22947     have_keyring=yes
22948     # conditional compilation in preprocessor
22949
22950 $as_echo "#define USE_KDE_KWALLET 1" >>confdefs.h
22951
22952     # link into static executables, similar to a SyncSource
22953     SYNCSOURCES="$SYNCSOURCES src/backends/kde/platformkde.la"
22954     # TODO: KWallet needs Qt. Enable the Qt check in
22955     # configure-post.in, otherwise it fails to compiler
22956     # when none of the backends ask for Qt.
22957 else
22958     # avoid unneeded dependencies on KWallet
22959     KDE_KWALLET_CFLAGS=
22960     KDE_KWALLET_LIBS=
22961 fi
22962
22963
22964
22965 # conditional compilation in make
22966  if test "$use_kde_kwallet" = "yes"; then
22967   USE_KDE_KWALLET_TRUE=
22968   USE_KDE_KWALLET_FALSE='#'
22969 else
22970   USE_KDE_KWALLET_TRUE='#'
22971   USE_KDE_KWALLET_FALSE=
22972 fi
22973
22974 # ^^^^^^^^^^^^^^ src/backends/kde/configure-sub.in ^^^^^^^^^^^^^^
22975
22976 # vvvvvvvvvvvvvv src/backends/maemo/configure-sub.in vvvvvvvvvvvvvv
22977
22978
22979 pkg_failed=no
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCALB" >&5
22981 $as_echo_n "checking for MCALB... " >&6; }
22982
22983 if test -n "$MCALB_CFLAGS"; then
22984     pkg_cv_MCALB_CFLAGS="$MCALB_CFLAGS"
22985  elif test -n "$PKG_CONFIG"; then
22986     if test -n "$PKG_CONFIG" && \
22987     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"calendar-backend\""; } >&5
22988   ($PKG_CONFIG --exists --print-errors "calendar-backend") 2>&5
22989   ac_status=$?
22990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22991   test $ac_status = 0; }; then
22992   pkg_cv_MCALB_CFLAGS=`$PKG_CONFIG --cflags "calendar-backend" 2>/dev/null`
22993                       test "x$?" != "x0" && pkg_failed=yes
22994 else
22995   pkg_failed=yes
22996 fi
22997  else
22998     pkg_failed=untried
22999 fi
23000 if test -n "$MCALB_LIBS"; then
23001     pkg_cv_MCALB_LIBS="$MCALB_LIBS"
23002  elif test -n "$PKG_CONFIG"; then
23003     if test -n "$PKG_CONFIG" && \
23004     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"calendar-backend\""; } >&5
23005   ($PKG_CONFIG --exists --print-errors "calendar-backend") 2>&5
23006   ac_status=$?
23007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23008   test $ac_status = 0; }; then
23009   pkg_cv_MCALB_LIBS=`$PKG_CONFIG --libs "calendar-backend" 2>/dev/null`
23010                       test "x$?" != "x0" && pkg_failed=yes
23011 else
23012   pkg_failed=yes
23013 fi
23014  else
23015     pkg_failed=untried
23016 fi
23017
23018
23019
23020 if test $pkg_failed = yes; then
23021         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23022 $as_echo "no" >&6; }
23023
23024 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23025         _pkg_short_errors_supported=yes
23026 else
23027         _pkg_short_errors_supported=no
23028 fi
23029         if test $_pkg_short_errors_supported = yes; then
23030                 MCALB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "calendar-backend" 2>&1`
23031         else
23032                 MCALB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "calendar-backend" 2>&1`
23033         fi
23034         # Put the nasty error message in config.log where it belongs
23035         echo "$MCALB_PKG_ERRORS" >&5
23036
23037         MCALBFOUND=no
23038 elif test $pkg_failed = untried; then
23039         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23040 $as_echo "no" >&6; }
23041         MCALBFOUND=no
23042 else
23043         MCALB_CFLAGS=$pkg_cv_MCALB_CFLAGS
23044         MCALB_LIBS=$pkg_cv_MCALB_LIBS
23045         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23046 $as_echo "yes" >&6; }
23047         MCALBFOUND=yes
23048 fi
23049
23050
23051 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $MCALB_CFLAGS"
23052
23053
23054           # Check whether --enable-maemocal was given.
23055 if test "${enable_maemocal+set}" = set; then :
23056   enableval=$enable_maemocal; enable_maemocal="$enableval"
23057 else
23058   enable_maemocal="no"
23059
23060 fi
23061
23062           BACKENDS="$BACKENDS maemocal"
23063           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_MAEMOCAL"
23064           for source in maemo
23065           do
23066             SYNCSOURCES="$SYNCSOURCES src/backends/maemo/syncmaemocal.la"
23067           done
23068
23069
23070
23071 if test "$enable_maemocal" = "yes"; then
23072         test "x${MCALBFOUND}" = "xyes" || as_fn_error $? "--enable-maemocal requires pkg-config information for calendar-backend, which was not found" "$LINENO" 5
23073
23074 $as_echo "#define ENABLE_MAEMO_CALENDAR 1" >>confdefs.h
23075
23076 fi
23077 # ^^^^^^^^^^^^^^ src/backends/maemo/configure-sub.in ^^^^^^^^^^^^^^
23078
23079 # vvvvvvvvvvvvvv src/backends/oauth2/configure-sub.in vvvvvvvvvvvvvv
23080 # Both json-c.pc (libjson-c-dev on Debian Testing) and json.pc
23081 # (legacy, libjson0-dev on Debian Wheezy and Testing) are okay.
23082
23083 pkg_failed=no
23084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
23085 $as_echo_n "checking for JSON... " >&6; }
23086
23087 if test -n "$JSON_CFLAGS"; then
23088     pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
23089  elif test -n "$PKG_CONFIG"; then
23090     if test -n "$PKG_CONFIG" && \
23091     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
23092   ($PKG_CONFIG --exists --print-errors "json") 2>&5
23093   ac_status=$?
23094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23095   test $ac_status = 0; }; then
23096   pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
23097                       test "x$?" != "x0" && pkg_failed=yes
23098 else
23099   pkg_failed=yes
23100 fi
23101  else
23102     pkg_failed=untried
23103 fi
23104 if test -n "$JSON_LIBS"; then
23105     pkg_cv_JSON_LIBS="$JSON_LIBS"
23106  elif test -n "$PKG_CONFIG"; then
23107     if test -n "$PKG_CONFIG" && \
23108     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
23109   ($PKG_CONFIG --exists --print-errors "json") 2>&5
23110   ac_status=$?
23111   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23112   test $ac_status = 0; }; then
23113   pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
23114                       test "x$?" != "x0" && pkg_failed=yes
23115 else
23116   pkg_failed=yes
23117 fi
23118  else
23119     pkg_failed=untried
23120 fi
23121
23122
23123
23124 if test $pkg_failed = yes; then
23125         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23126 $as_echo "no" >&6; }
23127
23128 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23129         _pkg_short_errors_supported=yes
23130 else
23131         _pkg_short_errors_supported=no
23132 fi
23133         if test $_pkg_short_errors_supported = yes; then
23134                 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
23135         else
23136                 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
23137         fi
23138         # Put the nasty error message in config.log where it belongs
23139         echo "$JSON_PKG_ERRORS" >&5
23140
23141
23142 pkg_failed=no
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
23144 $as_echo_n "checking for JSON... " >&6; }
23145
23146 if test -n "$JSON_CFLAGS"; then
23147     pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
23148  elif test -n "$PKG_CONFIG"; then
23149     if test -n "$PKG_CONFIG" && \
23150     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
23151   ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
23152   ac_status=$?
23153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23154   test $ac_status = 0; }; then
23155   pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
23156                       test "x$?" != "x0" && pkg_failed=yes
23157 else
23158   pkg_failed=yes
23159 fi
23160  else
23161     pkg_failed=untried
23162 fi
23163 if test -n "$JSON_LIBS"; then
23164     pkg_cv_JSON_LIBS="$JSON_LIBS"
23165  elif test -n "$PKG_CONFIG"; then
23166     if test -n "$PKG_CONFIG" && \
23167     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
23168   ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
23169   ac_status=$?
23170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23171   test $ac_status = 0; }; then
23172   pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
23173                       test "x$?" != "x0" && pkg_failed=yes
23174 else
23175   pkg_failed=yes
23176 fi
23177  else
23178     pkg_failed=untried
23179 fi
23180
23181
23182
23183 if test $pkg_failed = yes; then
23184         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23185 $as_echo "no" >&6; }
23186
23187 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23188         _pkg_short_errors_supported=yes
23189 else
23190         _pkg_short_errors_supported=no
23191 fi
23192         if test $_pkg_short_errors_supported = yes; then
23193                 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
23194         else
23195                 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
23196         fi
23197         # Put the nasty error message in config.log where it belongs
23198         echo "$JSON_PKG_ERRORS" >&5
23199
23200         HAVE_JSON=no
23201 elif test $pkg_failed = untried; then
23202         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23203 $as_echo "no" >&6; }
23204         HAVE_JSON=no
23205 else
23206         JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
23207         JSON_LIBS=$pkg_cv_JSON_LIBS
23208         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23209 $as_echo "yes" >&6; }
23210         HAVE_JSON=yes
23211 fi
23212 elif test $pkg_failed = untried; then
23213         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23214 $as_echo "no" >&6; }
23215
23216 pkg_failed=no
23217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
23218 $as_echo_n "checking for JSON... " >&6; }
23219
23220 if test -n "$JSON_CFLAGS"; then
23221     pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
23222  elif test -n "$PKG_CONFIG"; then
23223     if test -n "$PKG_CONFIG" && \
23224     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
23225   ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
23226   ac_status=$?
23227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23228   test $ac_status = 0; }; then
23229   pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
23230                       test "x$?" != "x0" && pkg_failed=yes
23231 else
23232   pkg_failed=yes
23233 fi
23234  else
23235     pkg_failed=untried
23236 fi
23237 if test -n "$JSON_LIBS"; then
23238     pkg_cv_JSON_LIBS="$JSON_LIBS"
23239  elif test -n "$PKG_CONFIG"; then
23240     if test -n "$PKG_CONFIG" && \
23241     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
23242   ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
23243   ac_status=$?
23244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23245   test $ac_status = 0; }; then
23246   pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
23247                       test "x$?" != "x0" && pkg_failed=yes
23248 else
23249   pkg_failed=yes
23250 fi
23251  else
23252     pkg_failed=untried
23253 fi
23254
23255
23256
23257 if test $pkg_failed = yes; then
23258         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23259 $as_echo "no" >&6; }
23260
23261 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23262         _pkg_short_errors_supported=yes
23263 else
23264         _pkg_short_errors_supported=no
23265 fi
23266         if test $_pkg_short_errors_supported = yes; then
23267                 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
23268         else
23269                 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
23270         fi
23271         # Put the nasty error message in config.log where it belongs
23272         echo "$JSON_PKG_ERRORS" >&5
23273
23274         HAVE_JSON=no
23275 elif test $pkg_failed = untried; then
23276         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23277 $as_echo "no" >&6; }
23278         HAVE_JSON=no
23279 else
23280         JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
23281         JSON_LIBS=$pkg_cv_JSON_LIBS
23282         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23283 $as_echo "yes" >&6; }
23284         HAVE_JSON=yes
23285 fi
23286 else
23287         JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
23288         JSON_LIBS=$pkg_cv_JSON_LIBS
23289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23290 $as_echo "yes" >&6; }
23291         HAVE_JSON=yes
23292 fi
23293
23294 def_oauth2="no"
23295
23296 if test "$ENABLE_LIBSOUP" = "yes" && test "$HAVE_JSON" = "yes"; then
23297    def_oauth2="yes"
23298 fi
23299
23300 # Check whether --enable-oauth2 was given.
23301 if test "${enable_oauth2+set}" = set; then :
23302   enableval=$enable_oauth2; enable_oauth2="$enableval"
23303                test "$enable_oauth2" = "yes" || test "$enable_oauth2" = "no" || as_fn_error $? "invalid value for --enable-oauth2: $enable_oauth2" "$LINENO" 5
23304                test "$enable_oauth2" = "no" || test "$HAVE_JSON" = "yes" || test "$ENABLE_LIBSOUP" = "yes"|| as_fn_error $? "required pkg(s) not found that are needed for --enable-oauth2" "$LINENO" 5
23305 else
23306   enable_oauth2="$def_oauth2"
23307 fi
23308
23309 if test "$enable_oauth2" = "yes"; then
23310     # link into static executables, similar to a SyncSource
23311     SYNCSOURCES="$SYNCSOURCES src/backends/oauth2/provideroauth2.la"
23312     if test "$enable_static" = "yes"; then
23313
23314 $as_echo "#define STATIC_OAUTH2 1" >>confdefs.h
23315
23316     fi
23317 fi
23318
23319 # conditional compilation in make
23320  if test "$enable_oauth2" = "yes"; then
23321   USE_OAUTH2_TRUE=
23322   USE_OAUTH2_FALSE='#'
23323 else
23324   USE_OAUTH2_TRUE='#'
23325   USE_OAUTH2_FALSE=
23326 fi
23327
23328 # ^^^^^^^^^^^^^^ src/backends/oauth2/configure-sub.in ^^^^^^^^^^^^^^
23329
23330 # vvvvvvvvvvvvvv src/backends/pbap/configure-sub.in vvvvvvvvvvvvvv
23331
23332
23333 PBAP_CFLAGS=
23334 PBAP_LIBS=
23335
23336
23337
23338 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $PBAP_CFLAGS"
23339
23340
23341           # Check whether --enable-pbap was given.
23342 if test "${enable_pbap+set}" = set; then :
23343   enableval=$enable_pbap; enable_pbap="$enableval"
23344 else
23345   enable_pbap="no"
23346
23347 fi
23348
23349           BACKENDS="$BACKENDS pbap"
23350           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_PBAP"
23351           for source in pbap
23352           do
23353             SYNCSOURCES="$SYNCSOURCES src/backends/pbap/syncpbap.la"
23354           done
23355
23356
23357
23358 if test "$enable_pbap" = "yes"; then
23359
23360 $as_echo "#define ENABLE_PBAP 1" >>confdefs.h
23361
23362                 need_glib="yes"
23363 fi
23364 # ^^^^^^^^^^^^^^ src/backends/pbap/configure-sub.in ^^^^^^^^^^^^^^
23365
23366 # vvvvvvvvvvvvvv src/backends/qtcontacts/configure-sub.in vvvvvvvvvvvvvv
23367
23368 # BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS ..."
23369
23370
23371           # Check whether --enable-qtcontacts was given.
23372 if test "${enable_qtcontacts+set}" = set; then :
23373   enableval=$enable_qtcontacts; enable_qtcontacts="$enableval"
23374 else
23375   enable_qtcontacts="no"
23376
23377 fi
23378
23379           BACKENDS="$BACKENDS qtcontacts"
23380           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_QTCONTACTS"
23381           for source in qtcontacts
23382           do
23383             SYNCSOURCES="$SYNCSOURCES src/backends/qtcontacts/syncqtcontacts.la"
23384           done
23385
23386
23387
23388 if test "$enable_qtcontacts" = "yes"; then
23389
23390 $as_echo "#define ENABLE_QTCONTACTS 1" >>confdefs.h
23391
23392         # AC_WITH_QT() will be called in configure-post if need_qt_modules is not empty,
23393         # setting QT_* flags.
23394         need_qt_modules="$need_qt_modules +gui" # GUI needed for QVersit
23395         qt_config="$qt_config +mobility"
23396         qt_misc="$qt_misc
23397 MOBILITY += contacts versit"
23398 fi
23399
23400 # ^^^^^^^^^^^^^^ src/backends/qtcontacts/configure-sub.in ^^^^^^^^^^^^^^
23401
23402 # vvvvvvvvvvvvvv src/backends/signon/configure-sub.in vvvvvvvvvvvvvv
23403
23404 pkg_failed=no
23405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSO" >&5
23406 $as_echo_n "checking for GSSO... " >&6; }
23407
23408 if test -n "$GSSO_CFLAGS"; then
23409     pkg_cv_GSSO_CFLAGS="$GSSO_CFLAGS"
23410  elif test -n "$PKG_CONFIG"; then
23411     if test -n "$PKG_CONFIG" && \
23412     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgsignon-glib >= 2.0\""; } >&5
23413   ($PKG_CONFIG --exists --print-errors "libgsignon-glib >= 2.0") 2>&5
23414   ac_status=$?
23415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23416   test $ac_status = 0; }; then
23417   pkg_cv_GSSO_CFLAGS=`$PKG_CONFIG --cflags "libgsignon-glib >= 2.0" 2>/dev/null`
23418                       test "x$?" != "x0" && pkg_failed=yes
23419 else
23420   pkg_failed=yes
23421 fi
23422  else
23423     pkg_failed=untried
23424 fi
23425 if test -n "$GSSO_LIBS"; then
23426     pkg_cv_GSSO_LIBS="$GSSO_LIBS"
23427  elif test -n "$PKG_CONFIG"; then
23428     if test -n "$PKG_CONFIG" && \
23429     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgsignon-glib >= 2.0\""; } >&5
23430   ($PKG_CONFIG --exists --print-errors "libgsignon-glib >= 2.0") 2>&5
23431   ac_status=$?
23432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23433   test $ac_status = 0; }; then
23434   pkg_cv_GSSO_LIBS=`$PKG_CONFIG --libs "libgsignon-glib >= 2.0" 2>/dev/null`
23435                       test "x$?" != "x0" && pkg_failed=yes
23436 else
23437   pkg_failed=yes
23438 fi
23439  else
23440     pkg_failed=untried
23441 fi
23442
23443
23444
23445 if test $pkg_failed = yes; then
23446         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23447 $as_echo "no" >&6; }
23448
23449 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23450         _pkg_short_errors_supported=yes
23451 else
23452         _pkg_short_errors_supported=no
23453 fi
23454         if test $_pkg_short_errors_supported = yes; then
23455                 GSSO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgsignon-glib >= 2.0" 2>&1`
23456         else
23457                 GSSO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgsignon-glib >= 2.0" 2>&1`
23458         fi
23459         # Put the nasty error message in config.log where it belongs
23460         echo "$GSSO_PKG_ERRORS" >&5
23461
23462         HAVE_GSSO=no
23463 elif test $pkg_failed = untried; then
23464         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23465 $as_echo "no" >&6; }
23466         HAVE_GSSO=no
23467 else
23468         GSSO_CFLAGS=$pkg_cv_GSSO_CFLAGS
23469         GSSO_LIBS=$pkg_cv_GSSO_LIBS
23470         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23471 $as_echo "yes" >&6; }
23472         HAVE_GSSO=yes
23473 fi
23474
23475 pkg_failed=no
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UOA" >&5
23477 $as_echo_n "checking for UOA... " >&6; }
23478
23479 if test -n "$UOA_CFLAGS"; then
23480     pkg_cv_UOA_CFLAGS="$UOA_CFLAGS"
23481  elif test -n "$PKG_CONFIG"; then
23482     if test -n "$PKG_CONFIG" && \
23483     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsignon-glib >= 1.7\""; } >&5
23484   ($PKG_CONFIG --exists --print-errors "libsignon-glib >= 1.7") 2>&5
23485   ac_status=$?
23486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23487   test $ac_status = 0; }; then
23488   pkg_cv_UOA_CFLAGS=`$PKG_CONFIG --cflags "libsignon-glib >= 1.7" 2>/dev/null`
23489                       test "x$?" != "x0" && pkg_failed=yes
23490 else
23491   pkg_failed=yes
23492 fi
23493  else
23494     pkg_failed=untried
23495 fi
23496 if test -n "$UOA_LIBS"; then
23497     pkg_cv_UOA_LIBS="$UOA_LIBS"
23498  elif test -n "$PKG_CONFIG"; then
23499     if test -n "$PKG_CONFIG" && \
23500     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsignon-glib >= 1.7\""; } >&5
23501   ($PKG_CONFIG --exists --print-errors "libsignon-glib >= 1.7") 2>&5
23502   ac_status=$?
23503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23504   test $ac_status = 0; }; then
23505   pkg_cv_UOA_LIBS=`$PKG_CONFIG --libs "libsignon-glib >= 1.7" 2>/dev/null`
23506                       test "x$?" != "x0" && pkg_failed=yes
23507 else
23508   pkg_failed=yes
23509 fi
23510  else
23511     pkg_failed=untried
23512 fi
23513
23514
23515
23516 if test $pkg_failed = yes; then
23517         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23518 $as_echo "no" >&6; }
23519
23520 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23521         _pkg_short_errors_supported=yes
23522 else
23523         _pkg_short_errors_supported=no
23524 fi
23525         if test $_pkg_short_errors_supported = yes; then
23526                 UOA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsignon-glib >= 1.7" 2>&1`
23527         else
23528                 UOA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsignon-glib >= 1.7" 2>&1`
23529         fi
23530         # Put the nasty error message in config.log where it belongs
23531         echo "$UOA_PKG_ERRORS" >&5
23532
23533         HAVE_UOA=no
23534 elif test $pkg_failed = untried; then
23535         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23536 $as_echo "no" >&6; }
23537         HAVE_UOA=no
23538 else
23539         UOA_CFLAGS=$pkg_cv_UOA_CFLAGS
23540         UOA_LIBS=$pkg_cv_UOA_LIBS
23541         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23542 $as_echo "yes" >&6; }
23543         HAVE_UOA=yes
23544 fi
23545
23546 pkg_failed=no
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACCOUNTS" >&5
23548 $as_echo_n "checking for ACCOUNTS... " >&6; }
23549
23550 if test -n "$ACCOUNTS_CFLAGS"; then
23551     pkg_cv_ACCOUNTS_CFLAGS="$ACCOUNTS_CFLAGS"
23552  elif test -n "$PKG_CONFIG"; then
23553     if test -n "$PKG_CONFIG" && \
23554     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libaccounts-glib >= 1.8\""; } >&5
23555   ($PKG_CONFIG --exists --print-errors "libaccounts-glib >= 1.8") 2>&5
23556   ac_status=$?
23557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23558   test $ac_status = 0; }; then
23559   pkg_cv_ACCOUNTS_CFLAGS=`$PKG_CONFIG --cflags "libaccounts-glib >= 1.8" 2>/dev/null`
23560                       test "x$?" != "x0" && pkg_failed=yes
23561 else
23562   pkg_failed=yes
23563 fi
23564  else
23565     pkg_failed=untried
23566 fi
23567 if test -n "$ACCOUNTS_LIBS"; then
23568     pkg_cv_ACCOUNTS_LIBS="$ACCOUNTS_LIBS"
23569  elif test -n "$PKG_CONFIG"; then
23570     if test -n "$PKG_CONFIG" && \
23571     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libaccounts-glib >= 1.8\""; } >&5
23572   ($PKG_CONFIG --exists --print-errors "libaccounts-glib >= 1.8") 2>&5
23573   ac_status=$?
23574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23575   test $ac_status = 0; }; then
23576   pkg_cv_ACCOUNTS_LIBS=`$PKG_CONFIG --libs "libaccounts-glib >= 1.8" 2>/dev/null`
23577                       test "x$?" != "x0" && pkg_failed=yes
23578 else
23579   pkg_failed=yes
23580 fi
23581  else
23582     pkg_failed=untried
23583 fi
23584
23585
23586
23587 if test $pkg_failed = yes; then
23588         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23589 $as_echo "no" >&6; }
23590
23591 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23592         _pkg_short_errors_supported=yes
23593 else
23594         _pkg_short_errors_supported=no
23595 fi
23596         if test $_pkg_short_errors_supported = yes; then
23597                 ACCOUNTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libaccounts-glib >= 1.8" 2>&1`
23598         else
23599                 ACCOUNTS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libaccounts-glib >= 1.8" 2>&1`
23600         fi
23601         # Put the nasty error message in config.log where it belongs
23602         echo "$ACCOUNTS_PKG_ERRORS" >&5
23603
23604         HAVE_ACCOUNTS=no
23605 elif test $pkg_failed = untried; then
23606         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23607 $as_echo "no" >&6; }
23608         HAVE_ACCOUNTS=no
23609 else
23610         ACCOUNTS_CFLAGS=$pkg_cv_ACCOUNTS_CFLAGS
23611         ACCOUNTS_LIBS=$pkg_cv_ACCOUNTS_LIBS
23612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23613 $as_echo "yes" >&6; }
23614         HAVE_ACCOUNTS=yes
23615 fi
23616
23617 def_gsso="no"
23618 def_uoa="no"
23619 def_signon="no"
23620 if test "$HAVE_GSSO" = "yes" && test "$HAVE_ACCOUNTS" = "yes"; then
23621    def_gsso="yes"
23622 fi
23623 if test "$HAVE_UOA" = "yes" && test "$HAVE_ACCOUNTS" = "yes"; then
23624    def_uoa="yes"
23625 fi
23626 if test "$HAVE_GSSO" = "yes"; then
23627    DEFAULT_SIGNON="GSSO"
23628    def_signon="yes"
23629 elif test "$HAVE_UOA" = "yes"; then
23630    DEFAULT_SIGNON="UOA"
23631    def_signon="yes"
23632 fi
23633
23634
23635 # The backends could be compiled independently. However, the XML example files
23636 # for accounts only get created once and the backends require conflicting values
23637 # in them.
23638 #
23639 # Also, when compiling without dynamic module loading, signonRegister.cpp will
23640 # only be compiled once and thus can activate only one of the actual signon
23641 # implementations.
23642
23643 # Check whether --enable-gsso was given.
23644 if test "${enable_gsso+set}" = set; then :
23645   enableval=$enable_gsso; enable_gsso="$enableval"
23646                test "$enable_gsso" = "yes" || test "$enable_gsso" = "no" || as_fn_error $? "invalid value for --enable-gsso: $enable_gsso" "$LINENO" 5
23647                test "$enable_gsso" = "no" || (test "$HAVE_GSSO" = "yes" && test "$HAVE_ACCOUNTS" = "yes" ) || as_fn_error $? "required pkg(s) not found that are needed for --enable-gsso" "$LINENO" 5
23648 else
23649   enable_gsso="$def_gsso"
23650 fi
23651
23652 if test $enable_gsso = "yes"; then
23653     # link into static executables, similar to a SyncSource
23654     SYNCSOURCES="$SYNCSOURCES src/backends/signon/providergsso.la"
23655     GOOGLE_METHOD="oauth"
23656     GOOGLE_MECHANISM="oauth2"
23657
23658
23659     if test "$enable_static" = "yes"; then
23660
23661 $as_echo "#define STATIC_GSSO 1" >>confdefs.h
23662
23663     fi
23664 fi
23665
23666 # conditional compilation in make
23667  if test "$enable_gsso" = "yes"; then
23668   USE_GSSO_TRUE=
23669   USE_GSSO_FALSE='#'
23670 else
23671   USE_GSSO_TRUE='#'
23672   USE_GSSO_FALSE=
23673 fi
23674
23675
23676 # Check whether --enable-uoa was given.
23677 if test "${enable_uoa+set}" = set; then :
23678   enableval=$enable_uoa; enable_uoa="$enableval"
23679                test "$enable_uoa" = "yes" || test "$enable_uoa" = "no" || as_fn_error $? "invalid value for --enable-uoa: $enable_uoa" "$LINENO" 5
23680                test "$enable_uoa" = "no" || (test "$HAVE_UOA" = "yes" && test "$HAVE_ACCOUNTS" = "yes" ) || as_fn_error $? "required pkg(s) not found that are needed for --enable-uoa" "$LINENO" 5
23681 else
23682   enable_uoa="$def_uoa"
23683 fi
23684
23685 if test $enable_uoa = "yes"; then
23686     # link into static executables, similar to a SyncSource
23687     SYNCSOURCES="$SYNCSOURCES src/backends/signon/provideruoa.la"
23688     GOOGLE_METHOD="oauth2"
23689     GOOGLE_MECHANISM="web_server"
23690
23691
23692     if test "$enable_static" = "yes"; then
23693
23694 $as_echo "#define STATIC_UOA 1" >>confdefs.h
23695
23696     fi
23697 fi
23698
23699 # conditional compilation in make
23700  if test "$enable_uoa" = "yes"; then
23701   USE_UOA_TRUE=
23702   USE_UOA_FALSE='#'
23703 else
23704   USE_UOA_TRUE='#'
23705   USE_UOA_FALSE=
23706 fi
23707
23708
23709 # Check whether --enable-signon was given.
23710 if test "${enable_signon+set}" = set; then :
23711   enableval=$enable_signon; enable_signon="$enableval"
23712                test "$enable_signon" = "yes" || test "$enable_signon" = "no" || as_fn_error $? "invalid value for --enable-signon: $enable_signon" "$LINENO" 5
23713                test "$enable_signon" = "no" || test "$HAVE_UOA" = "yes" || test "$HAVE_GSSO" = "yes" || as_fn_error $? "required pkg(s) not found that are needed for --enable-signon" "$LINENO" 5
23714 else
23715   enable_signon="$def_signon"
23716 fi
23717
23718 if test $enable_signon = "yes"; then
23719     # link into static executables, similar to a SyncSource
23720     SYNCSOURCES="$SYNCSOURCES src/backends/signon/providersignon.la"
23721
23722
23723     if test "$enable_static" = "yes"; then
23724
23725 $as_echo "#define STATIC_SIGNON 1" >>confdefs.h
23726
23727     fi
23728 fi
23729
23730 # conditional compilation in make
23731  if test "$enable_signon" = "yes"; then
23732   USE_SIGNON_TRUE=
23733   USE_SIGNON_FALSE='#'
23734 else
23735   USE_SIGNON_TRUE='#'
23736   USE_SIGNON_FALSE=
23737 fi
23738
23739
23740
23741 # Check whether --with-google-client-id was given.
23742 if test "${with_google_client_id+set}" = set; then :
23743   withval=$with_google_client_id; GOOGLE_CLIENT_ID=$withval
23744 else
23745   GOOGLE_CLIENT_ID=insert-your-client-id-here
23746 fi
23747
23748
23749 # Check whether --with-google-client-secret was given.
23750 if test "${with_google_client_secret+set}" = set; then :
23751   withval=$with_google_client_secret; GOOGLE_CLIENT_SECRET=$withval
23752 else
23753   GOOGLE_CLIENT_SECRET=insert-your-client-secret-here
23754 fi
23755
23756
23757
23758
23759
23760 # Check whether --with-google-client-id-caldav was given.
23761 if test "${with_google_client_id_caldav+set}" = set; then :
23762   withval=$with_google_client_id_caldav; GOOGLE_CLIENT_ID_CALDAV=$withval
23763 else
23764   GOOGLE_CLIENT_ID_CALDAV=insert-your-client-id-here
23765 fi
23766
23767
23768 # Check whether --with-google-client-secret-caldav was given.
23769 if test "${with_google_client_secret_caldav+set}" = set; then :
23770   withval=$with_google_client_secret_caldav; GOOGLE_CLIENT_SECRET_CALDAV=$withval
23771 else
23772   GOOGLE_CLIENT_SECRET_CALDAV=insert-your-client-secret-here
23773 fi
23774
23775
23776
23777
23778
23779 # Check whether --with-google-client-id-carddav was given.
23780 if test "${with_google_client_id_carddav+set}" = set; then :
23781   withval=$with_google_client_id_carddav; GOOGLE_CLIENT_ID_CARDDAV=$withval
23782 else
23783   GOOGLE_CLIENT_ID_CARDDAV=insert-your-client-id-here
23784 fi
23785
23786
23787 # Check whether --with-google-client-secret-carddav was given.
23788 if test "${with_google_client_secret_carddav+set}" = set; then :
23789   withval=$with_google_client_secret_carddav; GOOGLE_CLIENT_SECRET_CARDDAV=$withval
23790 else
23791   GOOGLE_CLIENT_SECRET_CARDDAV=insert-your-client-secret-here
23792 fi
23793
23794
23795
23796
23797 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"
23798
23799 # ^^^^^^^^^^^^^^ src/backends/signon/configure-sub.in ^^^^^^^^^^^^^^
23800
23801 # vvvvvvvvvvvvvv src/backends/sqlite/configure-sub.in vvvvvvvvvvvvvv
23802
23803
23804 pkg_failed=no
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
23806 $as_echo_n "checking for SQLITE... " >&6; }
23807
23808 if test -n "$SQLITE_CFLAGS"; then
23809     pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
23810  elif test -n "$PKG_CONFIG"; then
23811     if test -n "$PKG_CONFIG" && \
23812     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
23813   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
23814   ac_status=$?
23815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23816   test $ac_status = 0; }; then
23817   pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
23818                       test "x$?" != "x0" && pkg_failed=yes
23819 else
23820   pkg_failed=yes
23821 fi
23822  else
23823     pkg_failed=untried
23824 fi
23825 if test -n "$SQLITE_LIBS"; then
23826     pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
23827  elif test -n "$PKG_CONFIG"; then
23828     if test -n "$PKG_CONFIG" && \
23829     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
23830   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
23831   ac_status=$?
23832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23833   test $ac_status = 0; }; then
23834   pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
23835                       test "x$?" != "x0" && pkg_failed=yes
23836 else
23837   pkg_failed=yes
23838 fi
23839  else
23840     pkg_failed=untried
23841 fi
23842
23843
23844
23845 if test $pkg_failed = yes; then
23846         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23847 $as_echo "no" >&6; }
23848
23849 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23850         _pkg_short_errors_supported=yes
23851 else
23852         _pkg_short_errors_supported=no
23853 fi
23854         if test $_pkg_short_errors_supported = yes; then
23855                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
23856         else
23857                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
23858         fi
23859         # Put the nasty error message in config.log where it belongs
23860         echo "$SQLITE_PKG_ERRORS" >&5
23861
23862         SQLITEFOUND=no
23863 elif test $pkg_failed = untried; then
23864         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23865 $as_echo "no" >&6; }
23866         SQLITEFOUND=no
23867 else
23868         SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
23869         SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
23870         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23871 $as_echo "yes" >&6; }
23872         SQLITEFOUND=yes
23873 fi
23874
23875
23876 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $SQLITE_CFLAGS"
23877
23878
23879           # Check whether --enable-sqlite was given.
23880 if test "${enable_sqlite+set}" = set; then :
23881   enableval=$enable_sqlite; enable_sqlite="$enableval"
23882 else
23883   enable_sqlite="no"
23884
23885 fi
23886
23887           BACKENDS="$BACKENDS sqlite"
23888           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_SQLITE"
23889           for source in sqlite
23890           do
23891             SYNCSOURCES="$SYNCSOURCES src/backends/sqlite/syncsqlite.la"
23892           done
23893
23894
23895
23896 if test "$enable_sqlite" = "yes"; then
23897         test "x${SQLITEFOUND}" = "xyes" || as_fn_error $? "--enable-sqlite requires pkg-config information for sqlite3, which was not found" "$LINENO" 5
23898
23899 $as_echo "#define ENABLE_SQLITE 1" >>confdefs.h
23900
23901 else
23902         # avoid linking against it if not needed
23903         SQLITE_CFLAGS=
23904         SQLITE_LIBS=
23905 fi
23906 # ^^^^^^^^^^^^^^ src/backends/sqlite/configure-sub.in ^^^^^^^^^^^^^^
23907
23908 # vvvvvvvvvvvvvv src/backends/webdav/configure-sub.in vvvvvvvvvvvvvv
23909
23910
23911           # Check whether --enable-dav was given.
23912 if test "${enable_dav+set}" = set; then :
23913   enableval=$enable_dav; enable_dav="$enableval"
23914 else
23915   enable_dav="no"
23916
23917 fi
23918
23919           BACKENDS="$BACKENDS dav"
23920           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_DAV"
23921           for source in webdav
23922           do
23923             SYNCSOURCES="$SYNCSOURCES src/backends/webdav/syncdav.la"
23924           done
23925
23926
23927
23928 if test "$enable_dav" = "yes"; then
23929         need_ical="yes"
23930
23931 pkg_failed=no
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEON" >&5
23933 $as_echo_n "checking for NEON... " >&6; }
23934
23935 if test -n "$NEON_CFLAGS"; then
23936     pkg_cv_NEON_CFLAGS="$NEON_CFLAGS"
23937  elif test -n "$PKG_CONFIG"; then
23938     if test -n "$PKG_CONFIG" && \
23939     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.29\""; } >&5
23940   ($PKG_CONFIG --exists --print-errors "neon >= 0.29") 2>&5
23941   ac_status=$?
23942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23943   test $ac_status = 0; }; then
23944   pkg_cv_NEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.29" 2>/dev/null`
23945                       test "x$?" != "x0" && pkg_failed=yes
23946 else
23947   pkg_failed=yes
23948 fi
23949  else
23950     pkg_failed=untried
23951 fi
23952 if test -n "$NEON_LIBS"; then
23953     pkg_cv_NEON_LIBS="$NEON_LIBS"
23954  elif test -n "$PKG_CONFIG"; then
23955     if test -n "$PKG_CONFIG" && \
23956     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.29\""; } >&5
23957   ($PKG_CONFIG --exists --print-errors "neon >= 0.29") 2>&5
23958   ac_status=$?
23959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23960   test $ac_status = 0; }; then
23961   pkg_cv_NEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.29" 2>/dev/null`
23962                       test "x$?" != "x0" && pkg_failed=yes
23963 else
23964   pkg_failed=yes
23965 fi
23966  else
23967     pkg_failed=untried
23968 fi
23969
23970
23971
23972 if test $pkg_failed = yes; then
23973         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23974 $as_echo "no" >&6; }
23975
23976 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23977         _pkg_short_errors_supported=yes
23978 else
23979         _pkg_short_errors_supported=no
23980 fi
23981         if test $_pkg_short_errors_supported = yes; then
23982                 NEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "neon >= 0.29" 2>&1`
23983         else
23984                 NEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "neon >= 0.29" 2>&1`
23985         fi
23986         # Put the nasty error message in config.log where it belongs
23987         echo "$NEON_PKG_ERRORS" >&5
23988
23989
23990 pkg_failed=no
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEON" >&5
23992 $as_echo_n "checking for NEON... " >&6; }
23993
23994 if test -n "$NEON_CFLAGS"; then
23995     pkg_cv_NEON_CFLAGS="$NEON_CFLAGS"
23996  elif test -n "$PKG_CONFIG"; then
23997     if test -n "$PKG_CONFIG" && \
23998     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27\""; } >&5
23999   ($PKG_CONFIG --exists --print-errors "neon >= 0.27") 2>&5
24000   ac_status=$?
24001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24002   test $ac_status = 0; }; then
24003   pkg_cv_NEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.27" 2>/dev/null`
24004                       test "x$?" != "x0" && pkg_failed=yes
24005 else
24006   pkg_failed=yes
24007 fi
24008  else
24009     pkg_failed=untried
24010 fi
24011 if test -n "$NEON_LIBS"; then
24012     pkg_cv_NEON_LIBS="$NEON_LIBS"
24013  elif test -n "$PKG_CONFIG"; then
24014     if test -n "$PKG_CONFIG" && \
24015     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27\""; } >&5
24016   ($PKG_CONFIG --exists --print-errors "neon >= 0.27") 2>&5
24017   ac_status=$?
24018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24019   test $ac_status = 0; }; then
24020   pkg_cv_NEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.27" 2>/dev/null`
24021                       test "x$?" != "x0" && pkg_failed=yes
24022 else
24023   pkg_failed=yes
24024 fi
24025  else
24026     pkg_failed=untried
24027 fi
24028
24029
24030
24031 if test $pkg_failed = yes; then
24032         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24033 $as_echo "no" >&6; }
24034
24035 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24036         _pkg_short_errors_supported=yes
24037 else
24038         _pkg_short_errors_supported=no
24039 fi
24040         if test $_pkg_short_errors_supported = yes; then
24041                 NEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "neon >= 0.27" 2>&1`
24042         else
24043                 NEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "neon >= 0.27" 2>&1`
24044         fi
24045         # Put the nasty error message in config.log where it belongs
24046         echo "$NEON_PKG_ERRORS" >&5
24047
24048         as_fn_error $? "Package requirements (neon >= 0.27) were not met:
24049
24050 $NEON_PKG_ERRORS
24051
24052 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24053 installed software in a non-standard prefix.
24054
24055 Alternatively, you may set the environment variables NEON_CFLAGS
24056 and NEON_LIBS to avoid the need to call pkg-config.
24057 See the pkg-config man page for more details." "$LINENO" 5
24058 elif test $pkg_failed = untried; then
24059         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24060 $as_echo "no" >&6; }
24061         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24063 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24064 is in your PATH or set the PKG_CONFIG environment variable to the full
24065 path to pkg-config.
24066
24067 Alternatively, you may set the environment variables NEON_CFLAGS
24068 and NEON_LIBS to avoid the need to call pkg-config.
24069 See the pkg-config man page for more details.
24070
24071 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24072 See \`config.log' for more details" "$LINENO" 5; }
24073 else
24074         NEON_CFLAGS=$pkg_cv_NEON_CFLAGS
24075         NEON_LIBS=$pkg_cv_NEON_LIBS
24076         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24077 $as_echo "yes" >&6; }
24078
24079 fi
24080 elif test $pkg_failed = untried; then
24081         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24082 $as_echo "no" >&6; }
24083
24084 pkg_failed=no
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEON" >&5
24086 $as_echo_n "checking for NEON... " >&6; }
24087
24088 if test -n "$NEON_CFLAGS"; then
24089     pkg_cv_NEON_CFLAGS="$NEON_CFLAGS"
24090  elif test -n "$PKG_CONFIG"; then
24091     if test -n "$PKG_CONFIG" && \
24092     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27\""; } >&5
24093   ($PKG_CONFIG --exists --print-errors "neon >= 0.27") 2>&5
24094   ac_status=$?
24095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24096   test $ac_status = 0; }; then
24097   pkg_cv_NEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.27" 2>/dev/null`
24098                       test "x$?" != "x0" && pkg_failed=yes
24099 else
24100   pkg_failed=yes
24101 fi
24102  else
24103     pkg_failed=untried
24104 fi
24105 if test -n "$NEON_LIBS"; then
24106     pkg_cv_NEON_LIBS="$NEON_LIBS"
24107  elif test -n "$PKG_CONFIG"; then
24108     if test -n "$PKG_CONFIG" && \
24109     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27\""; } >&5
24110   ($PKG_CONFIG --exists --print-errors "neon >= 0.27") 2>&5
24111   ac_status=$?
24112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24113   test $ac_status = 0; }; then
24114   pkg_cv_NEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.27" 2>/dev/null`
24115                       test "x$?" != "x0" && pkg_failed=yes
24116 else
24117   pkg_failed=yes
24118 fi
24119  else
24120     pkg_failed=untried
24121 fi
24122
24123
24124
24125 if test $pkg_failed = yes; then
24126         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24127 $as_echo "no" >&6; }
24128
24129 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24130         _pkg_short_errors_supported=yes
24131 else
24132         _pkg_short_errors_supported=no
24133 fi
24134         if test $_pkg_short_errors_supported = yes; then
24135                 NEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "neon >= 0.27" 2>&1`
24136         else
24137                 NEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "neon >= 0.27" 2>&1`
24138         fi
24139         # Put the nasty error message in config.log where it belongs
24140         echo "$NEON_PKG_ERRORS" >&5
24141
24142         as_fn_error $? "Package requirements (neon >= 0.27) were not met:
24143
24144 $NEON_PKG_ERRORS
24145
24146 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24147 installed software in a non-standard prefix.
24148
24149 Alternatively, you may set the environment variables NEON_CFLAGS
24150 and NEON_LIBS to avoid the need to call pkg-config.
24151 See the pkg-config man page for more details." "$LINENO" 5
24152 elif test $pkg_failed = untried; then
24153         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24154 $as_echo "no" >&6; }
24155         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24157 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24158 is in your PATH or set the PKG_CONFIG environment variable to the full
24159 path to pkg-config.
24160
24161 Alternatively, you may set the environment variables NEON_CFLAGS
24162 and NEON_LIBS to avoid the need to call pkg-config.
24163 See the pkg-config man page for more details.
24164
24165 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24166 See \`config.log' for more details" "$LINENO" 5; }
24167 else
24168         NEON_CFLAGS=$pkg_cv_NEON_CFLAGS
24169         NEON_LIBS=$pkg_cv_NEON_LIBS
24170         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24171 $as_echo "yes" >&6; }
24172
24173 fi
24174 else
24175         NEON_CFLAGS=$pkg_cv_NEON_CFLAGS
24176         NEON_LIBS=$pkg_cv_NEON_LIBS
24177         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24178 $as_echo "yes" >&6; }
24179
24180 $as_echo "#define HAVE_LIBNEON_SYSTEM_PROXY 1" >>confdefs.h
24181
24182
24183 $as_echo "#define HAVE_LIBNEON_OPTIONS 1" >>confdefs.h
24184
24185 fi
24186
24187 $as_echo "#define ENABLE_DAV 1" >>confdefs.h
24188
24189
24190 $as_echo "#define ENABLE_ICAL 1" >>confdefs.h
24191
24192         BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $NEON_CFLAGS"
24193 fi
24194
24195 # Check whether --enable-neon-compatibility was given.
24196 if test "${enable_neon_compatibility+set}" = set; then :
24197   enableval=$enable_neon_compatibility; enable_neon_compat="$enableval"
24198 else
24199   enable_neon_compat="no"
24200
24201 fi
24202
24203 if test "$enable_neon_compat" = "yes"; then
24204
24205 $as_echo "#define NEON_COMPATIBILITY 1" >>confdefs.h
24206
24207         NEON_LIBS="`echo $NEON_LIBS | sed -e 's/\(-lneon\(-gnutls\)*\|^ *libneon\(-gnutls\)*.la\)/-ldl/'`"
24208 fi
24209  if test "$enable_neon_compat" = "yes"; then
24210   NEON_COMPATIBILITY_TRUE=
24211   NEON_COMPATIBILITY_FALSE='#'
24212 else
24213   NEON_COMPATIBILITY_TRUE='#'
24214   NEON_COMPATIBILITY_FALSE=
24215 fi
24216
24217 # ^^^^^^^^^^^^^^ src/backends/webdav/configure-sub.in ^^^^^^^^^^^^^^
24218
24219 # vvvvvvvvvvvvvv src/backends/xmlrpc/configure-sub.in vvvvvvvvvvvvvv
24220
24221
24222
24223
24224           # Check whether --enable-xmlrpc was given.
24225 if test "${enable_xmlrpc+set}" = set; then :
24226   enableval=$enable_xmlrpc; enable_xmlrpc="$enableval"
24227 else
24228   enable_xmlrpc="no"
24229
24230 fi
24231
24232           BACKENDS="$BACKENDS xmlrpc"
24233           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_XMLRPC"
24234           for source in xmlrpc
24235           do
24236             SYNCSOURCES="$SYNCSOURCES src/backends/xmlrpc/syncxmlrpc.la"
24237           done
24238
24239
24240
24241 if test "$enable_xmlrpc" = "yes"; then
24242
24243         # Extract the first word of "xmlrpc-c-config", so it can be a program name with args.
24244 set dummy xmlrpc-c-config; ac_word=$2
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24246 $as_echo_n "checking for $ac_word... " >&6; }
24247 if ${ac_cv_path_XMLRPC_C_CONFIG+:} false; then :
24248   $as_echo_n "(cached) " >&6
24249 else
24250   case $XMLRPC_C_CONFIG in
24251   [\\/]* | ?:[\\/]*)
24252   ac_cv_path_XMLRPC_C_CONFIG="$XMLRPC_C_CONFIG" # Let the user override the test with a path.
24253   ;;
24254   *)
24255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24256 for as_dir in $PATH
24257 do
24258   IFS=$as_save_IFS
24259   test -z "$as_dir" && as_dir=.
24260     for ac_exec_ext in '' $ac_executable_extensions; do
24261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24262     ac_cv_path_XMLRPC_C_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24264     break 2
24265   fi
24266 done
24267   done
24268 IFS=$as_save_IFS
24269
24270   test -z "$ac_cv_path_XMLRPC_C_CONFIG" && ac_cv_path_XMLRPC_C_CONFIG="no"
24271   ;;
24272 esac
24273 fi
24274 XMLRPC_C_CONFIG=$ac_cv_path_XMLRPC_C_CONFIG
24275 if test -n "$XMLRPC_C_CONFIG"; then
24276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLRPC_C_CONFIG" >&5
24277 $as_echo "$XMLRPC_C_CONFIG" >&6; }
24278 else
24279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24280 $as_echo "no" >&6; }
24281 fi
24282
24283
24284
24285         test "x$XMLRPC_C_CONFIG" != 'xno' || as_fn_error $? "--enable-xmlrpc requires xmlrpc-c-config, which was not found" "$LINENO" 5
24286
24287         XMLRPC_CFLAGS=`$XMLRPC_C_CONFIG c++2 client --cflags`
24288         XMLRPC_LIBS=`$XMLRPC_C_CONFIG c++2 client --libs`
24289
24290
24291
24292                         BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $XMLRPC_CFLAGS"
24293
24294
24295 $as_echo "#define ENABLE_XMLRPC 1" >>confdefs.h
24296
24297 fi
24298 # ^^^^^^^^^^^^^^ src/backends/xmlrpc/configure-sub.in ^^^^^^^^^^^^^^
24299
24300
24301
24302
24303
24304
24305 # Check whether --enable-qt-dbus was given.
24306 if test "${enable_qt_dbus+set}" = set; then :
24307   enableval=$enable_qt_dbus; enable_qt_dbus="$enableval"
24308 else
24309   enable_qt_dbus="no"
24310 fi
24311
24312
24313 if test "$enable_qt_dbus" = "yes"; then
24314
24315 $as_echo "#define ENABLE_QT_DBUS 1" >>confdefs.h
24316
24317         need_qt_modules="$need_qt_modules +dbus"
24318         # Extract the first word of "qdbusxml2cpp", so it can be a program name with args.
24319 set dummy qdbusxml2cpp; ac_word=$2
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24321 $as_echo_n "checking for $ac_word... " >&6; }
24322 if ${ac_cv_path_QDBUSXML_TO_CPP+:} false; then :
24323   $as_echo_n "(cached) " >&6
24324 else
24325   case $QDBUSXML_TO_CPP in
24326   [\\/]* | ?:[\\/]*)
24327   ac_cv_path_QDBUSXML_TO_CPP="$QDBUSXML_TO_CPP" # Let the user override the test with a path.
24328   ;;
24329   *)
24330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24331 for as_dir in $PATH
24332 do
24333   IFS=$as_save_IFS
24334   test -z "$as_dir" && as_dir=.
24335     for ac_exec_ext in '' $ac_executable_extensions; do
24336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24337     ac_cv_path_QDBUSXML_TO_CPP="$as_dir/$ac_word$ac_exec_ext"
24338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24339     break 2
24340   fi
24341 done
24342   done
24343 IFS=$as_save_IFS
24344
24345   test -z "$ac_cv_path_QDBUSXML_TO_CPP" && ac_cv_path_QDBUSXML_TO_CPP="no"
24346   ;;
24347 esac
24348 fi
24349 QDBUSXML_TO_CPP=$ac_cv_path_QDBUSXML_TO_CPP
24350 if test -n "$QDBUSXML_TO_CPP"; then
24351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QDBUSXML_TO_CPP" >&5
24352 $as_echo "$QDBUSXML_TO_CPP" >&6; }
24353 else
24354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24355 $as_echo "no" >&6; }
24356 fi
24357
24358
24359         test "x$QDBUSXML_TO_CPP" != 'xno' || as_fn_error $? "--enable-qt-dbus requires qdbusxml2cpp, which was not found" "$LINENO" 5
24360 fi
24361
24362  if test "$enable_qt_dbus" = "yes"; then
24363   ENABLE_QT_DBUS_TRUE=
24364   ENABLE_QT_DBUS_FALSE='#'
24365 else
24366   ENABLE_QT_DBUS_TRUE='#'
24367   ENABLE_QT_DBUS_FALSE=
24368 fi
24369
24370
24371
24372 ac_config_files="$ac_config_files src/dbus/qt/syncevolution-qt-dbus.pc"
24373
24374
24375
24376
24377
24378 enable_any="no"
24379 backend_is_enabled () {
24380     eval echo \${enable_${1}}
24381 }
24382 for backend in $BACKENDS; do
24383     if test `backend_is_enabled $backend` = "yes"; then
24384        enable_any="yes"
24385        SYNCEVOLUTION_MODULES="$SYNCEVOLUTION_MODULES src/backends/sync${backend}.la"
24386     fi
24387 done
24388
24389 if test "$enable_any" = "no"; then
24390         as_fn_error $? "no backend enabled - refusing to continue: $anymissing" "$LINENO" 5
24391 fi
24392
24393 if test "$need_glib" = "yes"; then
24394         # HAVE_GLIB (aka GLIBFOUND) are a catch-all for these
24395         # three GNOME libs. Assume we have all three unless one of
24396         # the checks fails.
24397         GLIBFOUND=yes
24398
24399
24400 pkg_failed=no
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
24402 $as_echo_n "checking for GLIB... " >&6; }
24403
24404 if test -n "$GLIB_CFLAGS"; then
24405     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
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 \"\"glib-2.0\"\""; } >&5
24409   ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 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_GLIB_CFLAGS=`$PKG_CONFIG --cflags ""glib-2.0"" 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 if test -n "$GLIB_LIBS"; then
24422     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
24423  elif test -n "$PKG_CONFIG"; then
24424     if test -n "$PKG_CONFIG" && \
24425     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\""; } >&5
24426   ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
24427   ac_status=$?
24428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24429   test $ac_status = 0; }; then
24430   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs ""glib-2.0"" 2>/dev/null`
24431                       test "x$?" != "x0" && pkg_failed=yes
24432 else
24433   pkg_failed=yes
24434 fi
24435  else
24436     pkg_failed=untried
24437 fi
24438
24439
24440
24441 if test $pkg_failed = yes; then
24442         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24443 $as_echo "no" >&6; }
24444
24445 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24446         _pkg_short_errors_supported=yes
24447 else
24448         _pkg_short_errors_supported=no
24449 fi
24450         if test $_pkg_short_errors_supported = yes; then
24451                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""glib-2.0"" 2>&1`
24452         else
24453                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""glib-2.0"" 2>&1`
24454         fi
24455         # Put the nasty error message in config.log where it belongs
24456         echo "$GLIB_PKG_ERRORS" >&5
24457
24458         GLIBFOUND=no
24459 elif test $pkg_failed = untried; then
24460         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24461 $as_echo "no" >&6; }
24462         GLIBFOUND=no
24463 else
24464         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
24465         GLIB_LIBS=$pkg_cv_GLIB_LIBS
24466         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24467 $as_echo "yes" >&6; }
24468
24469 fi
24470         # This check here is broken on Ubuntu 8.04: it calls glib-config,
24471         # which isn't found, but the error is not detected by configure.
24472         #if test "x${GLIBFOUND}" = "xno"; then
24473         #       PKG_CHECK_MODULES(GLIB, "glib", GLIBFOUND=yes, GLIBFOUND=no)
24474         #fi
24475
24476
24477 pkg_failed=no
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
24479 $as_echo_n "checking for GTHREAD... " >&6; }
24480
24481 if test -n "$GTHREAD_CFLAGS"; then
24482     pkg_cv_GTHREAD_CFLAGS="$GTHREAD_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 \"\"gthread-2.0\"\""; } >&5
24486   ($PKG_CONFIG --exists --print-errors ""gthread-2.0"") 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_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags ""gthread-2.0"" 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 "$GTHREAD_LIBS"; then
24499     pkg_cv_GTHREAD_LIBS="$GTHREAD_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 \"\"gthread-2.0\"\""; } >&5
24503   ($PKG_CONFIG --exists --print-errors ""gthread-2.0"") 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_GTHREAD_LIBS=`$PKG_CONFIG --libs ""gthread-2.0"" 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                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""gthread-2.0"" 2>&1`
24529         else
24530                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""gthread-2.0"" 2>&1`
24531         fi
24532         # Put the nasty error message in config.log where it belongs
24533         echo "$GTHREAD_PKG_ERRORS" >&5
24534
24535         GLIBFOUND=no
24536 elif test $pkg_failed = untried; then
24537         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24538 $as_echo "no" >&6; }
24539         GLIBFOUND=no
24540 else
24541         GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
24542         GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
24543         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24544 $as_echo "yes" >&6; }
24545
24546 fi
24547
24548 pkg_failed=no
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
24550 $as_echo_n "checking for GOBJECT... " >&6; }
24551
24552 if test -n "$GOBJECT_CFLAGS"; then
24553     pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
24554  elif test -n "$PKG_CONFIG"; then
24555     if test -n "$PKG_CONFIG" && \
24556     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gobject-2.0\"\""; } >&5
24557   ($PKG_CONFIG --exists --print-errors ""gobject-2.0"") 2>&5
24558   ac_status=$?
24559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24560   test $ac_status = 0; }; then
24561   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags ""gobject-2.0"" 2>/dev/null`
24562                       test "x$?" != "x0" && pkg_failed=yes
24563 else
24564   pkg_failed=yes
24565 fi
24566  else
24567     pkg_failed=untried
24568 fi
24569 if test -n "$GOBJECT_LIBS"; then
24570     pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
24571  elif test -n "$PKG_CONFIG"; then
24572     if test -n "$PKG_CONFIG" && \
24573     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gobject-2.0\"\""; } >&5
24574   ($PKG_CONFIG --exists --print-errors ""gobject-2.0"") 2>&5
24575   ac_status=$?
24576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24577   test $ac_status = 0; }; then
24578   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs ""gobject-2.0"" 2>/dev/null`
24579                       test "x$?" != "x0" && pkg_failed=yes
24580 else
24581   pkg_failed=yes
24582 fi
24583  else
24584     pkg_failed=untried
24585 fi
24586
24587
24588
24589 if test $pkg_failed = yes; then
24590         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24591 $as_echo "no" >&6; }
24592
24593 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24594         _pkg_short_errors_supported=yes
24595 else
24596         _pkg_short_errors_supported=no
24597 fi
24598         if test $_pkg_short_errors_supported = yes; then
24599                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""gobject-2.0"" 2>&1`
24600         else
24601                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""gobject-2.0"" 2>&1`
24602         fi
24603         # Put the nasty error message in config.log where it belongs
24604         echo "$GOBJECT_PKG_ERRORS" >&5
24605
24606         GLIBFOUND=no
24607 elif test $pkg_failed = untried; then
24608         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24609 $as_echo "no" >&6; }
24610         GLIBFOUND=no
24611 else
24612         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
24613         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
24614         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24615 $as_echo "yes" >&6; }
24616
24617 fi
24618
24619 pkg_failed=no
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
24621 $as_echo_n "checking for GIO... " >&6; }
24622
24623 if test -n "$GIO_CFLAGS"; then
24624     pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
24625  elif test -n "$PKG_CONFIG"; then
24626     if test -n "$PKG_CONFIG" && \
24627     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gio-2.0\"\""; } >&5
24628   ($PKG_CONFIG --exists --print-errors ""gio-2.0"") 2>&5
24629   ac_status=$?
24630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24631   test $ac_status = 0; }; then
24632   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags ""gio-2.0"" 2>/dev/null`
24633                       test "x$?" != "x0" && pkg_failed=yes
24634 else
24635   pkg_failed=yes
24636 fi
24637  else
24638     pkg_failed=untried
24639 fi
24640 if test -n "$GIO_LIBS"; then
24641     pkg_cv_GIO_LIBS="$GIO_LIBS"
24642  elif test -n "$PKG_CONFIG"; then
24643     if test -n "$PKG_CONFIG" && \
24644     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gio-2.0\"\""; } >&5
24645   ($PKG_CONFIG --exists --print-errors ""gio-2.0"") 2>&5
24646   ac_status=$?
24647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24648   test $ac_status = 0; }; then
24649   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs ""gio-2.0"" 2>/dev/null`
24650                       test "x$?" != "x0" && pkg_failed=yes
24651 else
24652   pkg_failed=yes
24653 fi
24654  else
24655     pkg_failed=untried
24656 fi
24657
24658
24659
24660 if test $pkg_failed = yes; then
24661         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24662 $as_echo "no" >&6; }
24663
24664 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24665         _pkg_short_errors_supported=yes
24666 else
24667         _pkg_short_errors_supported=no
24668 fi
24669         if test $_pkg_short_errors_supported = yes; then
24670                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""gio-2.0"" 2>&1`
24671         else
24672                 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""gio-2.0"" 2>&1`
24673         fi
24674         # Put the nasty error message in config.log where it belongs
24675         echo "$GIO_PKG_ERRORS" >&5
24676
24677         GLIBFOUND=no
24678 elif test $pkg_failed = untried; then
24679         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24680 $as_echo "no" >&6; }
24681         GLIBFOUND=no
24682 else
24683         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
24684         GIO_LIBS=$pkg_cv_GIO_LIBS
24685         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24686 $as_echo "yes" >&6; }
24687
24688 fi
24689
24690 pkg_failed=no
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIOUNIX" >&5
24692 $as_echo_n "checking for GIOUNIX... " >&6; }
24693
24694 if test -n "$GIOUNIX_CFLAGS"; then
24695     pkg_cv_GIOUNIX_CFLAGS="$GIOUNIX_CFLAGS"
24696  elif test -n "$PKG_CONFIG"; then
24697     if test -n "$PKG_CONFIG" && \
24698     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gio-unix-2.0\"\""; } >&5
24699   ($PKG_CONFIG --exists --print-errors ""gio-unix-2.0"") 2>&5
24700   ac_status=$?
24701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24702   test $ac_status = 0; }; then
24703   pkg_cv_GIOUNIX_CFLAGS=`$PKG_CONFIG --cflags ""gio-unix-2.0"" 2>/dev/null`
24704                       test "x$?" != "x0" && pkg_failed=yes
24705 else
24706   pkg_failed=yes
24707 fi
24708  else
24709     pkg_failed=untried
24710 fi
24711 if test -n "$GIOUNIX_LIBS"; then
24712     pkg_cv_GIOUNIX_LIBS="$GIOUNIX_LIBS"
24713  elif test -n "$PKG_CONFIG"; then
24714     if test -n "$PKG_CONFIG" && \
24715     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gio-unix-2.0\"\""; } >&5
24716   ($PKG_CONFIG --exists --print-errors ""gio-unix-2.0"") 2>&5
24717   ac_status=$?
24718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24719   test $ac_status = 0; }; then
24720   pkg_cv_GIOUNIX_LIBS=`$PKG_CONFIG --libs ""gio-unix-2.0"" 2>/dev/null`
24721                       test "x$?" != "x0" && pkg_failed=yes
24722 else
24723   pkg_failed=yes
24724 fi
24725  else
24726     pkg_failed=untried
24727 fi
24728
24729
24730
24731 if test $pkg_failed = yes; then
24732         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24733 $as_echo "no" >&6; }
24734
24735 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24736         _pkg_short_errors_supported=yes
24737 else
24738         _pkg_short_errors_supported=no
24739 fi
24740         if test $_pkg_short_errors_supported = yes; then
24741                 GIOUNIX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""gio-unix-2.0"" 2>&1`
24742         else
24743                 GIOUNIX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""gio-unix-2.0"" 2>&1`
24744         fi
24745         # Put the nasty error message in config.log where it belongs
24746         echo "$GIOUNIX_PKG_ERRORS" >&5
24747
24748         GLIBFOUND=no
24749 elif test $pkg_failed = untried; then
24750         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24751 $as_echo "no" >&6; }
24752         GLIBFOUND=no
24753 else
24754         GIOUNIX_CFLAGS=$pkg_cv_GIOUNIX_CFLAGS
24755         GIOUNIX_LIBS=$pkg_cv_GIOUNIX_LIBS
24756         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24757 $as_echo "yes" >&6; }
24758
24759 fi
24760
24761         if  test "x${GLIBFOUND}" = "xyes"; then
24762
24763 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
24764
24765         else
24766             as_fn_error $? "not all GNOME libraries found" "$LINENO" 5
24767         fi
24768         BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $GLIB_CFLAGS $GTHREAD_CFLAGS $GOBJECT_CFLAGS"
24769 fi
24770
24771 if test "$need_ical" = "yes" || test "$enable_icaltz_util" = "yes"; then
24772
24773 pkg_failed=no
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL" >&5
24775 $as_echo_n "checking for LIBICAL... " >&6; }
24776
24777 if test -n "$LIBICAL_CFLAGS"; then
24778     pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
24779  elif test -n "$PKG_CONFIG"; then
24780     if test -n "$PKG_CONFIG" && \
24781     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
24782   ($PKG_CONFIG --exists --print-errors "libical") 2>&5
24783   ac_status=$?
24784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24785   test $ac_status = 0; }; then
24786   pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libical" 2>/dev/null`
24787                       test "x$?" != "x0" && pkg_failed=yes
24788 else
24789   pkg_failed=yes
24790 fi
24791  else
24792     pkg_failed=untried
24793 fi
24794 if test -n "$LIBICAL_LIBS"; then
24795     pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
24796  elif test -n "$PKG_CONFIG"; then
24797     if test -n "$PKG_CONFIG" && \
24798     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
24799   ($PKG_CONFIG --exists --print-errors "libical") 2>&5
24800   ac_status=$?
24801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24802   test $ac_status = 0; }; then
24803   pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libical" 2>/dev/null`
24804                       test "x$?" != "x0" && pkg_failed=yes
24805 else
24806   pkg_failed=yes
24807 fi
24808  else
24809     pkg_failed=untried
24810 fi
24811
24812
24813
24814 if test $pkg_failed = yes; then
24815         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24816 $as_echo "no" >&6; }
24817
24818 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24819         _pkg_short_errors_supported=yes
24820 else
24821         _pkg_short_errors_supported=no
24822 fi
24823         if test $_pkg_short_errors_supported = yes; then
24824                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libical" 2>&1`
24825         else
24826                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libical" 2>&1`
24827         fi
24828         # Put the nasty error message in config.log where it belongs
24829         echo "$LIBICAL_PKG_ERRORS" >&5
24830
24831
24832 pkg_failed=no
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL" >&5
24834 $as_echo_n "checking for LIBICAL... " >&6; }
24835
24836 if test -n "$LIBICAL_CFLAGS"; then
24837     pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
24838  elif test -n "$PKG_CONFIG"; then
24839     if test -n "$PKG_CONFIG" && \
24840     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
24841   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
24842   ac_status=$?
24843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24844   test $ac_status = 0; }; then
24845   pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
24846                       test "x$?" != "x0" && pkg_failed=yes
24847 else
24848   pkg_failed=yes
24849 fi
24850  else
24851     pkg_failed=untried
24852 fi
24853 if test -n "$LIBICAL_LIBS"; then
24854     pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
24855  elif test -n "$PKG_CONFIG"; then
24856     if test -n "$PKG_CONFIG" && \
24857     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
24858   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
24859   ac_status=$?
24860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24861   test $ac_status = 0; }; then
24862   pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
24863                       test "x$?" != "x0" && pkg_failed=yes
24864 else
24865   pkg_failed=yes
24866 fi
24867  else
24868     pkg_failed=untried
24869 fi
24870
24871
24872
24873 if test $pkg_failed = yes; then
24874         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24875 $as_echo "no" >&6; }
24876
24877 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24878         _pkg_short_errors_supported=yes
24879 else
24880         _pkg_short_errors_supported=no
24881 fi
24882         if test $_pkg_short_errors_supported = yes; then
24883                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libecal-1.2" 2>&1`
24884         else
24885                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libecal-1.2" 2>&1`
24886         fi
24887         # Put the nasty error message in config.log where it belongs
24888         echo "$LIBICAL_PKG_ERRORS" >&5
24889
24890         as_fn_error $? "Package requirements (libecal-1.2) were not met:
24891
24892 $LIBICAL_PKG_ERRORS
24893
24894 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24895 installed software in a non-standard prefix.
24896
24897 Alternatively, you may set the environment variables LIBICAL_CFLAGS
24898 and LIBICAL_LIBS to avoid the need to call pkg-config.
24899 See the pkg-config man page for more details." "$LINENO" 5
24900 elif test $pkg_failed = untried; then
24901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24902 $as_echo "no" >&6; }
24903         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24905 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24906 is in your PATH or set the PKG_CONFIG environment variable to the full
24907 path to pkg-config.
24908
24909 Alternatively, you may set the environment variables LIBICAL_CFLAGS
24910 and LIBICAL_LIBS to avoid the need to call pkg-config.
24911 See the pkg-config man page for more details.
24912
24913 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24914 See \`config.log' for more details" "$LINENO" 5; }
24915 else
24916         LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
24917         LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
24918         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24919 $as_echo "yes" >&6; }
24920
24921 fi
24922 elif test $pkg_failed = untried; then
24923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24924 $as_echo "no" >&6; }
24925
24926 pkg_failed=no
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL" >&5
24928 $as_echo_n "checking for LIBICAL... " >&6; }
24929
24930 if test -n "$LIBICAL_CFLAGS"; then
24931     pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
24932  elif test -n "$PKG_CONFIG"; then
24933     if test -n "$PKG_CONFIG" && \
24934     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
24935   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
24936   ac_status=$?
24937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24938   test $ac_status = 0; }; then
24939   pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
24940                       test "x$?" != "x0" && pkg_failed=yes
24941 else
24942   pkg_failed=yes
24943 fi
24944  else
24945     pkg_failed=untried
24946 fi
24947 if test -n "$LIBICAL_LIBS"; then
24948     pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
24949  elif test -n "$PKG_CONFIG"; then
24950     if test -n "$PKG_CONFIG" && \
24951     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
24952   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
24953   ac_status=$?
24954   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24955   test $ac_status = 0; }; then
24956   pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
24957                       test "x$?" != "x0" && pkg_failed=yes
24958 else
24959   pkg_failed=yes
24960 fi
24961  else
24962     pkg_failed=untried
24963 fi
24964
24965
24966
24967 if test $pkg_failed = yes; then
24968         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24969 $as_echo "no" >&6; }
24970
24971 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24972         _pkg_short_errors_supported=yes
24973 else
24974         _pkg_short_errors_supported=no
24975 fi
24976         if test $_pkg_short_errors_supported = yes; then
24977                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libecal-1.2" 2>&1`
24978         else
24979                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libecal-1.2" 2>&1`
24980         fi
24981         # Put the nasty error message in config.log where it belongs
24982         echo "$LIBICAL_PKG_ERRORS" >&5
24983
24984         as_fn_error $? "Package requirements (libecal-1.2) were not met:
24985
24986 $LIBICAL_PKG_ERRORS
24987
24988 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24989 installed software in a non-standard prefix.
24990
24991 Alternatively, you may set the environment variables LIBICAL_CFLAGS
24992 and LIBICAL_LIBS to avoid the need to call pkg-config.
24993 See the pkg-config man page for more details." "$LINENO" 5
24994 elif test $pkg_failed = untried; then
24995         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24996 $as_echo "no" >&6; }
24997         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24999 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
25000 is in your PATH or set the PKG_CONFIG environment variable to the full
25001 path to pkg-config.
25002
25003 Alternatively, you may set the environment variables LIBICAL_CFLAGS
25004 and LIBICAL_LIBS to avoid the need to call pkg-config.
25005 See the pkg-config man page for more details.
25006
25007 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
25008 See \`config.log' for more details" "$LINENO" 5; }
25009 else
25010         LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
25011         LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
25012         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25013 $as_echo "yes" >&6; }
25014
25015 fi
25016 else
25017         LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
25018         LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
25019         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25020 $as_echo "yes" >&6; }
25021         true
25022 fi
25023 fi
25024
25025 if test "$need_ical" = "yes"; then
25026
25027 $as_echo "#define ENABLE_ICAL 1" >>confdefs.h
25028
25029 fi
25030  if test "$need_ical" = "yes"; then
25031   ENABLE_ICAL_TRUE=
25032   ENABLE_ICAL_FALSE='#'
25033 else
25034   ENABLE_ICAL_TRUE='#'
25035   ENABLE_ICAL_FALSE=
25036 fi
25037
25038
25039 # Check for Qt if some backend needs it.
25040 if test "$need_qt_modules"; then
25041    echo "$as_me: this is autotroll.m4 serial 5" >&5
25042
25043   test x"$TROLL" != x && echo 'ViM rox emacs.'
25044
25045
25046 # Check whether --with-qt was given.
25047 if test "${with_qt+set}" = set; then :
25048   withval=$with_qt; QT_PATH=$withval
25049 fi
25050
25051
25052   # this is a hack to get decent flow control with 'break'
25053   for _qt_ignored in once; do
25054
25055   # Find Qt.
25056
25057   if test -d /usr/local/Trolltech; then
25058     # Try to find the latest version.
25059     tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
25060                                               | xargs | sed 's/  */:/g'`
25061   fi
25062   # Path to which recent MacPorts (~v1.7) install Qt4.
25063   test -d /opt/local/libexec/qt4-mac/bin \
25064     && tmp_qt_paths="$tmp_qt_paths:/opt/local/libexec/qt4-mac/bin"
25065
25066   # Find qmake.
25067
25068   for ac_prog in qmake qmake-qt4 qmake-qt3
25069 do
25070   # Extract the first word of "$ac_prog", so it can be a program name with args.
25071 set dummy $ac_prog; ac_word=$2
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25073 $as_echo_n "checking for $ac_word... " >&6; }
25074 if ${ac_cv_path_QMAKE+:} false; then :
25075   $as_echo_n "(cached) " >&6
25076 else
25077   case $QMAKE in
25078   [\\/]* | ?:[\\/]*)
25079   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
25080   ;;
25081   *)
25082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25083 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
25084 for as_dir in $as_dummy
25085 do
25086   IFS=$as_save_IFS
25087   test -z "$as_dir" && as_dir=.
25088     for ac_exec_ext in '' $ac_executable_extensions; do
25089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25090     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
25091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25092     break 2
25093   fi
25094 done
25095   done
25096 IFS=$as_save_IFS
25097
25098   ;;
25099 esac
25100 fi
25101 QMAKE=$ac_cv_path_QMAKE
25102 if test -n "$QMAKE"; then
25103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
25104 $as_echo "$QMAKE" >&6; }
25105 else
25106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25107 $as_echo "no" >&6; }
25108 fi
25109
25110
25111   test -n "$QMAKE" && break
25112 done
25113 test -n "$QMAKE" || QMAKE="missing"
25114
25115   if test x"$QMAKE" = xmissing; then
25116     as_fn_error $? "Cannot find qmake in your PATH. Try using --with-qt." "$LINENO" 5
25117     break
25118   fi
25119
25120   # Find moc (Meta Object Compiler).
25121
25122   for ac_prog in moc moc-qt4 moc-qt3
25123 do
25124   # Extract the first word of "$ac_prog", so it can be a program name with args.
25125 set dummy $ac_prog; ac_word=$2
25126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25127 $as_echo_n "checking for $ac_word... " >&6; }
25128 if ${ac_cv_path_MOC+:} false; then :
25129   $as_echo_n "(cached) " >&6
25130 else
25131   case $MOC in
25132   [\\/]* | ?:[\\/]*)
25133   ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
25134   ;;
25135   *)
25136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25137 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
25138 for as_dir in $as_dummy
25139 do
25140   IFS=$as_save_IFS
25141   test -z "$as_dir" && as_dir=.
25142     for ac_exec_ext in '' $ac_executable_extensions; do
25143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25144     ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
25145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25146     break 2
25147   fi
25148 done
25149   done
25150 IFS=$as_save_IFS
25151
25152   ;;
25153 esac
25154 fi
25155 MOC=$ac_cv_path_MOC
25156 if test -n "$MOC"; then
25157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
25158 $as_echo "$MOC" >&6; }
25159 else
25160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25161 $as_echo "no" >&6; }
25162 fi
25163
25164
25165   test -n "$MOC" && break
25166 done
25167 test -n "$MOC" || MOC="missing"
25168
25169   if test x"$MOC" = xmissing; then
25170     as_fn_error $? "Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
25171     break
25172   fi
25173
25174   # Find uic (User Interface Compiler).
25175
25176   for ac_prog in uic uic-qt4 uic-qt3 uic3
25177 do
25178   # Extract the first word of "$ac_prog", so it can be a program name with args.
25179 set dummy $ac_prog; ac_word=$2
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25181 $as_echo_n "checking for $ac_word... " >&6; }
25182 if ${ac_cv_path_UIC+:} false; then :
25183   $as_echo_n "(cached) " >&6
25184 else
25185   case $UIC in
25186   [\\/]* | ?:[\\/]*)
25187   ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
25188   ;;
25189   *)
25190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25191 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
25192 for as_dir in $as_dummy
25193 do
25194   IFS=$as_save_IFS
25195   test -z "$as_dir" && as_dir=.
25196     for ac_exec_ext in '' $ac_executable_extensions; do
25197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25198     ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
25199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25200     break 2
25201   fi
25202 done
25203   done
25204 IFS=$as_save_IFS
25205
25206   ;;
25207 esac
25208 fi
25209 UIC=$ac_cv_path_UIC
25210 if test -n "$UIC"; then
25211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
25212 $as_echo "$UIC" >&6; }
25213 else
25214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25215 $as_echo "no" >&6; }
25216 fi
25217
25218
25219   test -n "$UIC" && break
25220 done
25221 test -n "$UIC" || UIC="missing"
25222
25223   if test x"$UIC" = xmissing; then
25224     as_fn_error $? "Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
25225     break
25226   fi
25227
25228   # Find rcc (Qt Resource Compiler).
25229
25230   for ac_prog in rcc
25231 do
25232   # Extract the first word of "$ac_prog", so it can be a program name with args.
25233 set dummy $ac_prog; ac_word=$2
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25235 $as_echo_n "checking for $ac_word... " >&6; }
25236 if ${ac_cv_path_RCC+:} false; then :
25237   $as_echo_n "(cached) " >&6
25238 else
25239   case $RCC in
25240   [\\/]* | ?:[\\/]*)
25241   ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
25242   ;;
25243   *)
25244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25245 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
25246 for as_dir in $as_dummy
25247 do
25248   IFS=$as_save_IFS
25249   test -z "$as_dir" && as_dir=.
25250     for ac_exec_ext in '' $ac_executable_extensions; do
25251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25252     ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
25253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25254     break 2
25255   fi
25256 done
25257   done
25258 IFS=$as_save_IFS
25259
25260   ;;
25261 esac
25262 fi
25263 RCC=$ac_cv_path_RCC
25264 if test -n "$RCC"; then
25265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5
25266 $as_echo "$RCC" >&6; }
25267 else
25268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25269 $as_echo "no" >&6; }
25270 fi
25271
25272
25273   test -n "$RCC" && break
25274 done
25275 test -n "$RCC" || RCC="false"
25276
25277   if test x"$UIC" = xfalse; then
25278     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH.\
25279   Try using --with-qt." >&5
25280 $as_echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH.\
25281   Try using --with-qt." >&2;}
25282   fi
25283
25284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host operating system is Darwin" >&5
25285 $as_echo_n "checking whether host operating system is Darwin... " >&6; }
25286   at_darwin=no
25287   at_qmake_args=
25288   case $host_os in
25289     darwin*)
25290       at_darwin=yes
25291       at_qmake_args='-spec macx-g++'
25292       ;;
25293   esac
25294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_darwin" >&5
25295 $as_echo "$at_darwin" >&6; }
25296
25297   # If we don't know the path to Qt, guess it from the path to qmake.
25298   if test x"$QT_PATH" = x; then
25299     QT_PATH=`dirname "$QMAKE"`
25300   fi
25301   if test x"$QT_PATH" = x; then
25302     as_fn_error $? "Cannot find the path to your Qt install. Use --with-qt." "$LINENO" 5
25303     break
25304   fi
25305
25306
25307   # Get ready to build a test-app with Qt.
25308   if mkdir conftest.dir && cd conftest.dir; then :; else
25309     as_fn_error $? "Cannot mkdir conftest.dir or cd to that directory." "$LINENO" 5
25310     break
25311   fi
25312
25313   cat >conftest.h <<_ASEOF
25314 #include <QObject>
25315
25316 class Foo: public QObject
25317 {
25318   Q_OBJECT;
25319 public:
25320   Foo();
25321   ~Foo() {}
25322 public Q_SLOTS:
25323   void setValue(int value);
25324 Q_SIGNALS:
25325   void valueChanged(int newValue);
25326 private:
25327   int value_;
25328 };
25329 _ASEOF
25330
25331   cat >conftest.cpp <<_ASEOF
25332 #include "conftest.h"
25333 Foo::Foo()
25334   : value_ (42)
25335 {
25336   connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
25337 }
25338
25339 void Foo::setValue(int value)
25340 {
25341   value_ = value;
25342 }
25343
25344 int main()
25345 {
25346   Foo f;
25347 }
25348 _ASEOF
25349   if $QMAKE -project; then :; else
25350     as_fn_error $? "Calling $QMAKE -project failed." "$LINENO" 5
25351     break
25352   fi
25353
25354   # Find the .pro file generated by qmake.
25355   pro_file='conftest.dir.pro'
25356   test -f $pro_file || pro_file=`echo *.pro`
25357   if test -f "$pro_file"; then :; else
25358     as_fn_error $? "Can't find the .pro file generated by Qmake." "$LINENO" 5
25359     break
25360   fi
25361
25362  # Tweak the value of QT in the .pro file for -gui $need_qt_modules.
25363
25364   qt_conf=''
25365   for at_mod in -gui $need_qt_modules; do
25366     at_mod=`echo "$at_mod" | sed 's/^-//; tough
25367                                   s/^+//; beef
25368                                   :ough
25369                                   s/^/QT -= /;n
25370                                   :eef
25371                                   s/^/QT += /'`
25372     qt_conf="$qt_conf
25373 $at_mod"
25374   done
25375   echo "$qt_conf" | sed 1d >>"$pro_file"
25376
25377
25378  # Tweak the value of CONFIG in the .pro file for $qt_config.
25379
25380   qt_conf=''
25381   for at_mod in $qt_config; do
25382     at_mod=`echo "$at_mod" | sed 's/^-//; tough
25383                                   s/^+//; beef
25384                                   :ough
25385                                   s/^/CONFIG -= /;n
25386                                   :eef
25387                                   s/^/CONFIG += /'`
25388     qt_conf="$qt_conf
25389 $at_mod"
25390   done
25391   echo "$qt_conf" | sed 1d >>"$pro_file"
25392
25393
25394  # Add the extra-settings the user wants to set in the .pro
25395   echo "$qt_misc" >>"$pro_file"
25396
25397
25398   echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
25399   sed 's/^/| /' "$pro_file" >&5
25400
25401   if $QMAKE $at_qmake_args; then :; else
25402     as_fn_error $? "Calling $QMAKE $at_qmake_args failed." "$LINENO" 5
25403     break
25404   fi
25405
25406   # QMake has a very annoying misfeature: sometimes it generates Makefiles
25407   # where all the references to the files from the Qt installation are
25408   # relative.  We can't use them as-is because if we take, say, a
25409   # -I../../usr/include/Qt from that Makefile, the flag is invalid as soon
25410   # as we use it in another (sub) directory.  So what this perl pass does is
25411   # that it rewrite all relative paths to absolute paths.  Another problem
25412   # when building on Cygwin is that QMake mixes paths with blackslashes and
25413   # forward slashes and paths must be handled with extra care because of the
25414   # stupid Windows drive letters.
25415   echo "$as_me:$LINENO: fixing the Makefiles:" Makefile* >&5
25416   cat >fixmk.pl <<\EOF
25417 use strict;
25418 use Cwd qw(cwd abs_path);
25419 # This variable is useful on Cygwin for the following reason: Say that you are
25420 # in `/' (that is, in fact you are in C:/cygwin, or something like that) if you
25421 # `cd ..' then obviously you remain in `/' (that is in C:/cygwin).  QMake
25422 # generates paths that are relative to C:/ (or another driver letter, whatever)
25423 # so the trick to get the `..' resolved properly is to prepend the absolute
25424 # path of the current working directory in a Windows-style.  C:/cygwin/../ will
25425 # properly become C:/.
25426 my $d = "";
25427 my $r2a = 0;
25428 my $b2f = 0;
25429
25430 my $cygwin = 0;
25431 if ($^O eq "cygwin") {
25432   $cygwin = 1;
25433   $d = cwd();
25434   $d = `cygpath --mixed '$d'`;
25435   chomp($d);
25436   $d .= "/";
25437 }
25438
25439 sub rel2abs($)
25440 {
25441   my $p = $d . shift;
25442   # print "r2a p=$p";
25443   -e $p || return $p;
25444   if ($cygwin) {
25445     $p = `cygpath --mixed '$p'`;
25446     chomp($p);
25447   }
25448   else {
25449     # Do not use abs_path on Cygwin: it incorrectly resolves the paths that are
25450     # relative to C:/ rather than `/'.
25451     $p = abs_path($p);
25452   }
25453   # print " -> $p\n";
25454   ++$r2a;
25455   return $p;
25456 }
25457
25458 # Only useful on Cygwin.
25459 sub back2forward($)
25460 {
25461   my $p = shift;
25462   # print "b2f p=$p";
25463   -e $p || return $p;
25464   $p = `cygpath --mixed '$p'`;
25465   chomp($p);
25466   # print " -> $p\n";
25467   ++$b2f;
25468   return $p;
25469 }
25470
25471 foreach my $mk (@ARGV)
25472 {
25473   next if $mk =~ /~$/;
25474   open(MK, $mk) or die("open $mk: $!");
25475   # print "mk=$mk\n";
25476   my $file = join("", <MK>);
25477   close(MK) or die("close $mk: $!");
25478   rename $mk, $mk . "~" or die("rename $mk: $!");
25479   $file =~ s{(?:\.\.[\\/])+(?:[^"'\s:]+)}{rel2abs($&)}gse;
25480   $file =~ s{(?:[a-zA-Z]:[\\/])?(?:[^"\s]+\\[^"\s:]+)+}
25481             {back2forward($&)}gse if $cygwin;
25482   open(MK, ">", $mk) or die("open >$mk: $!");
25483   print MK $file;
25484   close(MK) or die("close >$mk: $!");
25485   print "$mk: updated $r2a relative paths and $b2f backslash-style paths\n";
25486   $r2a = 0;
25487   $b2f = 0;
25488 }
25489 EOF
25490
25491   perl >&5 -w fixmk.pl Makefile* ||
25492   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to fix the Makefiles generated by $QMAKE" >&5
25493 $as_echo "$as_me: WARNING: failed to fix the Makefiles generated by $QMAKE" >&2;}
25494   rm -f fixmk.pl
25495
25496   # Try to compile a simple Qt app.
25497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a simple Qt app" >&5
25498 $as_echo_n "checking whether we can build a simple Qt app... " >&6; }
25499 if ${at_cv_qt_build+:} false; then :
25500   $as_echo_n "(cached) " >&6
25501 else
25502   at_cv_qt_build=ko
25503   : ${MAKE=make}
25504
25505   if $MAKE >&5 2>&1; then
25506     at_cv_qt_build='ok, looks like Qt 4'
25507   else
25508     echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
25509 instead" >&5
25510     sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
25511     if $MAKE >&5 2>&1; then
25512       at_cv_qt_build='ok, looks like Qt 3'
25513     else
25514       # Sometimes (such as on Debian) build will fail because Qt hasn't been
25515       # installed in debug mode and qmake tries (by default) to build apps in
25516       # debug mode => Try again in release mode.
25517       echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
25518             >&5
25519
25520        # Tweak the value of CONFIG in the .pro file for +release.
25521
25522   qt_conf=''
25523   for at_mod in +release; do
25524     at_mod=`echo "$at_mod" | sed 's/^-//; tough
25525                                   s/^+//; beef
25526                                   :ough
25527                                   s/^/CONFIG -= /;n
25528                                   :eef
25529                                   s/^/CONFIG += /'`
25530     qt_conf="$qt_conf
25531 $at_mod"
25532   done
25533   echo "$qt_conf" | sed 1d >>"$pro_file"
25534
25535
25536       sed 's/<qobject.h>/<QObject>/' conftest.h > tmp.h && mv tmp.h conftest.h
25537       if $MAKE >&5 2>&1; then
25538         at_cv_qt_build='ok, looks like Qt 4, release mode forced'
25539       else
25540         echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
25541 instead" >&5
25542         sed 's/<QObject>/<qobject.h>/' conftest.h >tmp.h && mv tmp.h conftest.h
25543         if $MAKE >&5 2>&1; then
25544           at_cv_qt_build='ok, looks like Qt 3, release mode forced'
25545         else
25546           at_cv_qt_build=ko
25547           echo "$as_me:$LINENO: failed program was:" >&5
25548           sed 's/^/| /' conftest.h >&5
25549           echo "$as_me:$LINENO: failed program was:" >&5
25550           sed 's/^/| /' conftest.cpp >&5
25551         fi # if make with Qt3-style #include and release mode forced.
25552       fi # if make with Qt4-style #include and release mode forced.
25553     fi # if make with Qt3-style #include.
25554   fi # if make with Qt4-style #include.
25555
25556 fi
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_qt_build" >&5
25558 $as_echo "$at_cv_qt_build" >&6; }
25559   if test x"$at_cv_qt_build" = xko; then
25560     as_fn_error $? "Cannot build a test Qt program" "$LINENO" 5
25561     cd ..
25562     break
25563   fi
25564   QT_VERSION_MAJOR=`echo "$at_cv_qt_build" | sed 's/[^0-9]*//g'`
25565
25566
25567   # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
25568   # It starts by removing the beginning of the line, removing references to
25569   # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
25570   # all variable uses by QT_.
25571   qt_sed_filter='s///;
25572                  s/$(SUBLIBS)//g;
25573                  s/^ *//;
25574                  s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
25575
25576   # Find the Makefile (qmake happens to generate a fake Makefile which invokes
25577   # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
25578   # Makefile.Release. The reason is that the main difference is that release
25579   # uses -Os and debug -g. We can override -Os by passing another -O but we
25580   # usually don't override -g.
25581   if test -f Makefile.Release; then
25582     at_mfile='Makefile.Release'
25583   else
25584     at_mfile='Makefile'
25585   fi
25586   if test -f $at_mfile; then :; else
25587     as_fn_error $? "Cannot find the Makefile generated by qmake." "$LINENO" 5
25588     cd ..
25589     break
25590   fi
25591
25592   # Find the DEFINES of Qt (should have been named CPPFLAGS).
25593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the DEFINES to use with Qt" >&5
25594 $as_echo_n "checking for the DEFINES to use with Qt... " >&6; }
25595 if ${at_cv_env_QT_DEFINES+:} false; then :
25596   $as_echo_n "(cached) " >&6
25597 else
25598   at_cv_env_QT_DEFINES=`sed "/^DEFINES[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
25599 fi
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_DEFINES" >&5
25601 $as_echo "$at_cv_env_QT_DEFINES" >&6; }
25602   QT_DEFINES=$at_cv_env_QT_DEFINES
25603
25604
25605   # Find the CFLAGS of Qt (We can use Qt in C?!)
25606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CFLAGS to use with Qt" >&5
25607 $as_echo_n "checking for the CFLAGS to use with Qt... " >&6; }
25608 if ${at_cv_env_QT_CFLAGS+:} false; then :
25609   $as_echo_n "(cached) " >&6
25610 else
25611   at_cv_env_QT_CFLAGS=`sed "/^CFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
25612 fi
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CFLAGS" >&5
25614 $as_echo "$at_cv_env_QT_CFLAGS" >&6; }
25615   QT_CFLAGS=$at_cv_env_QT_CFLAGS
25616
25617
25618   # Find the CXXFLAGS of Qt.
25619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CXXFLAGS to use with Qt" >&5
25620 $as_echo_n "checking for the CXXFLAGS to use with Qt... " >&6; }
25621 if ${at_cv_env_QT_CXXFLAGS+:} false; then :
25622   $as_echo_n "(cached) " >&6
25623 else
25624   at_cv_env_QT_CXXFLAGS=`sed "/^CXXFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
25625 fi
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CXXFLAGS" >&5
25627 $as_echo "$at_cv_env_QT_CXXFLAGS" >&6; }
25628   QT_CXXFLAGS=$at_cv_env_QT_CXXFLAGS
25629
25630
25631   # Find the INCPATH of Qt.
25632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the INCPATH to use with Qt" >&5
25633 $as_echo_n "checking for the INCPATH to use with Qt... " >&6; }
25634 if ${at_cv_env_QT_INCPATH+:} false; then :
25635   $as_echo_n "(cached) " >&6
25636 else
25637   at_cv_env_QT_INCPATH=`sed "/^INCPATH[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
25638 fi
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_INCPATH" >&5
25640 $as_echo "$at_cv_env_QT_INCPATH" >&6; }
25641   QT_INCPATH=$at_cv_env_QT_INCPATH
25642
25643
25644   QT_CPPFLAGS="$at_cv_env_QT_DEFINES $at_cv_env_QT_INCPATH"
25645
25646
25647   # Find the LFLAGS of Qt (Should have been named LDFLAGS)
25648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LDFLAGS to use with Qt" >&5
25649 $as_echo_n "checking for the LDFLAGS to use with Qt... " >&6; }
25650 if ${at_cv_env_QT_LDFLAGS+:} false; then :
25651   $as_echo_n "(cached) " >&6
25652 else
25653   at_cv_env_QT_LDFLAGS=`sed "/^LFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
25654 fi
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LDFLAGS" >&5
25656 $as_echo "$at_cv_env_QT_LDFLAGS" >&6; }
25657   QT_LFLAGS=$at_cv_env_QT_LDFLAGS
25658
25659   QT_LDFLAGS=$at_cv_env_QT_LDFLAGS
25660
25661
25662   # Find the LIBS of Qt.
25663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LIBS to use with Qt" >&5
25664 $as_echo_n "checking for the LIBS to use with Qt... " >&6; }
25665 if ${at_cv_env_QT_LIBS+:} false; then :
25666   $as_echo_n "(cached) " >&6
25667 else
25668   at_cv_env_QT_LIBS=`sed "/^LIBS[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
25669    if test x$at_darwin = xyes; then
25670      # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
25671      # -F properly. The "bug" has been fixed on 22 October 2006
25672      # by Peter O'Gorman but we provide backward compatibility here.
25673      at_cv_env_QT_LIBS=`echo "$at_cv_env_QT_LIBS" \
25674                              | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
25675    fi
25676
25677 fi
25678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LIBS" >&5
25679 $as_echo "$at_cv_env_QT_LIBS" >&6; }
25680   QT_LIBS=$at_cv_env_QT_LIBS
25681
25682
25683   cd .. && rm -rf conftest.dir
25684
25685   # Run the user code
25686
25687
25688   done  # end hack (useless for to be able to use break)
25689
25690 fi
25691
25692 # determine from where we can get a SHA-256 implementation
25693 have_sha="no"
25694 if test "$GLIBFOUND" = "yes"; then
25695    # only use glib if we need it anyway, also has to be at lease 2.16
25696
25697 pkg_failed=no
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB216" >&5
25699 $as_echo_n "checking for GLIB216... " >&6; }
25700
25701 if test -n "$GLIB216_CFLAGS"; then
25702     pkg_cv_GLIB216_CFLAGS="$GLIB216_CFLAGS"
25703  elif test -n "$PKG_CONFIG"; then
25704     if test -n "$PKG_CONFIG" && \
25705     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
25706   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
25707   ac_status=$?
25708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25709   test $ac_status = 0; }; then
25710   pkg_cv_GLIB216_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 2>/dev/null`
25711                       test "x$?" != "x0" && pkg_failed=yes
25712 else
25713   pkg_failed=yes
25714 fi
25715  else
25716     pkg_failed=untried
25717 fi
25718 if test -n "$GLIB216_LIBS"; then
25719     pkg_cv_GLIB216_LIBS="$GLIB216_LIBS"
25720  elif test -n "$PKG_CONFIG"; then
25721     if test -n "$PKG_CONFIG" && \
25722     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
25723   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
25724   ac_status=$?
25725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25726   test $ac_status = 0; }; then
25727   pkg_cv_GLIB216_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null`
25728                       test "x$?" != "x0" && pkg_failed=yes
25729 else
25730   pkg_failed=yes
25731 fi
25732  else
25733     pkg_failed=untried
25734 fi
25735
25736
25737
25738 if test $pkg_failed = yes; then
25739         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25740 $as_echo "no" >&6; }
25741
25742 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25743         _pkg_short_errors_supported=yes
25744 else
25745         _pkg_short_errors_supported=no
25746 fi
25747         if test $_pkg_short_errors_supported = yes; then
25748                 GLIB216_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1`
25749         else
25750                 GLIB216_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1`
25751         fi
25752         # Put the nasty error message in config.log where it belongs
25753         echo "$GLIB216_PKG_ERRORS" >&5
25754
25755         true
25756 elif test $pkg_failed = untried; then
25757         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25758 $as_echo "no" >&6; }
25759         true
25760 else
25761         GLIB216_CFLAGS=$pkg_cv_GLIB216_CFLAGS
25762         GLIB216_LIBS=$pkg_cv_GLIB216_LIBS
25763         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25764 $as_echo "yes" >&6; }
25765
25766 $as_echo "#define USE_SHA256 1" >>confdefs.h
25767
25768                       have_sha="glib"
25769 fi
25770 fi
25771 if test "$have_sha" = "no"; then
25772    # Fallback is Mozilla NSS. In contrast to libgcrypt it has a .pc
25773    # file and a simple API.
25774
25775 pkg_failed=no
25776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
25777 $as_echo_n "checking for NSS... " >&6; }
25778
25779 if test -n "$NSS_CFLAGS"; then
25780     pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
25781  elif test -n "$PKG_CONFIG"; then
25782     if test -n "$PKG_CONFIG" && \
25783     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"nss\"\""; } >&5
25784   ($PKG_CONFIG --exists --print-errors ""nss"") 2>&5
25785   ac_status=$?
25786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25787   test $ac_status = 0; }; then
25788   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags ""nss"" 2>/dev/null`
25789                       test "x$?" != "x0" && pkg_failed=yes
25790 else
25791   pkg_failed=yes
25792 fi
25793  else
25794     pkg_failed=untried
25795 fi
25796 if test -n "$NSS_LIBS"; then
25797     pkg_cv_NSS_LIBS="$NSS_LIBS"
25798  elif test -n "$PKG_CONFIG"; then
25799     if test -n "$PKG_CONFIG" && \
25800     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"nss\"\""; } >&5
25801   ($PKG_CONFIG --exists --print-errors ""nss"") 2>&5
25802   ac_status=$?
25803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25804   test $ac_status = 0; }; then
25805   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs ""nss"" 2>/dev/null`
25806                       test "x$?" != "x0" && pkg_failed=yes
25807 else
25808   pkg_failed=yes
25809 fi
25810  else
25811     pkg_failed=untried
25812 fi
25813
25814
25815
25816 if test $pkg_failed = yes; then
25817         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25818 $as_echo "no" >&6; }
25819
25820 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25821         _pkg_short_errors_supported=yes
25822 else
25823         _pkg_short_errors_supported=no
25824 fi
25825         if test $_pkg_short_errors_supported = yes; then
25826                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""nss"" 2>&1`
25827         else
25828                 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""nss"" 2>&1`
25829         fi
25830         # Put the nasty error message in config.log where it belongs
25831         echo "$NSS_PKG_ERRORS" >&5
25832
25833         true
25834 elif test $pkg_failed = untried; then
25835         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25836 $as_echo "no" >&6; }
25837         true
25838 else
25839         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
25840         NSS_LIBS=$pkg_cv_NSS_LIBS
25841         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25842 $as_echo "yes" >&6; }
25843
25844 $as_echo "#define USE_SHA256 2" >>confdefs.h
25845
25846                       have_sha="nss"
25847 fi
25848 fi
25849
25850  if test "$enable_shared" = "yes"; then
25851   ENABLE_MODULES_TRUE=
25852   ENABLE_MODULES_FALSE='#'
25853 else
25854   ENABLE_MODULES_TRUE='#'
25855   ENABLE_MODULES_FALSE=
25856 fi
25857
25858 if test "$enable_shared" = "yes"; then
25859
25860 $as_echo "#define ENABLE_MODULES 1" >>confdefs.h
25861
25862 fi
25863
25864
25865
25866
25867 if test "$host" = "arm-apple-darwin"; then
25868
25869 $as_echo "#define IPHONE 1" >>confdefs.h
25870
25871    DEVICE_TYPE=iPhone
25872 fi
25873
25874 if test "$enable_evolution_compatibility" = "yes"; then
25875
25876 $as_echo "#define EVOLUTION_COMPATIBILITY 1" >>confdefs.h
25877
25878    # don't link against libs wrapped by eds_abi_wrapper (no longer limited to EDS alone...)
25879    ECAL_LIBS=
25880    EBOOK_LIBS=
25881    EPACKAGE_LIBS=
25882    BLUEZ_LIBS=
25883 fi
25884 if test "$enable_evolution_compatibility" = "ical" || test "$enable_evolution_compatibility" = "yes"; then
25885
25886 $as_echo "#define EVOLUTION_ICAL_COMPATIBILITY 1" >>confdefs.h
25887
25888 fi
25889  if test "$enable_evolution_compatibility" = "yes"; then
25890   ENABLE_EVOLUTION_COMPATIBILITY_TRUE=
25891   ENABLE_EVOLUTION_COMPATIBILITY_FALSE='#'
25892 else
25893   ENABLE_EVOLUTION_COMPATIBILITY_TRUE='#'
25894   ENABLE_EVOLUTION_COMPATIBILITY_FALSE=
25895 fi
25896
25897
25898 pkg_failed=no
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL_AVAILABLE" >&5
25900 $as_echo_n "checking for LIBICAL_AVAILABLE... " >&6; }
25901
25902 if test -n "$LIBICAL_AVAILABLE_CFLAGS"; then
25903     pkg_cv_LIBICAL_AVAILABLE_CFLAGS="$LIBICAL_AVAILABLE_CFLAGS"
25904  elif test -n "$PKG_CONFIG"; then
25905     if test -n "$PKG_CONFIG" && \
25906     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical >= 0.43\""; } >&5
25907   ($PKG_CONFIG --exists --print-errors "libical >= 0.43") 2>&5
25908   ac_status=$?
25909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25910   test $ac_status = 0; }; then
25911   pkg_cv_LIBICAL_AVAILABLE_CFLAGS=`$PKG_CONFIG --cflags "libical >= 0.43" 2>/dev/null`
25912                       test "x$?" != "x0" && pkg_failed=yes
25913 else
25914   pkg_failed=yes
25915 fi
25916  else
25917     pkg_failed=untried
25918 fi
25919 if test -n "$LIBICAL_AVAILABLE_LIBS"; then
25920     pkg_cv_LIBICAL_AVAILABLE_LIBS="$LIBICAL_AVAILABLE_LIBS"
25921  elif test -n "$PKG_CONFIG"; then
25922     if test -n "$PKG_CONFIG" && \
25923     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical >= 0.43\""; } >&5
25924   ($PKG_CONFIG --exists --print-errors "libical >= 0.43") 2>&5
25925   ac_status=$?
25926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25927   test $ac_status = 0; }; then
25928   pkg_cv_LIBICAL_AVAILABLE_LIBS=`$PKG_CONFIG --libs "libical >= 0.43" 2>/dev/null`
25929                       test "x$?" != "x0" && pkg_failed=yes
25930 else
25931   pkg_failed=yes
25932 fi
25933  else
25934     pkg_failed=untried
25935 fi
25936
25937
25938
25939 if test $pkg_failed = yes; then
25940         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25941 $as_echo "no" >&6; }
25942
25943 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25944         _pkg_short_errors_supported=yes
25945 else
25946         _pkg_short_errors_supported=no
25947 fi
25948         if test $_pkg_short_errors_supported = yes; then
25949                 LIBICAL_AVAILABLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libical >= 0.43" 2>&1`
25950         else
25951                 LIBICAL_AVAILABLE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libical >= 0.43" 2>&1`
25952         fi
25953         # Put the nasty error message in config.log where it belongs
25954         echo "$LIBICAL_AVAILABLE_PKG_ERRORS" >&5
25955
25956         pass
25957 elif test $pkg_failed = untried; then
25958         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25959 $as_echo "no" >&6; }
25960         pass
25961 else
25962         LIBICAL_AVAILABLE_CFLAGS=$pkg_cv_LIBICAL_AVAILABLE_CFLAGS
25963         LIBICAL_AVAILABLE_LIBS=$pkg_cv_LIBICAL_AVAILABLE_LIBS
25964         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25965 $as_echo "yes" >&6; }
25966
25967 $as_echo "#define HAVE_LIBICAL_R 1" >>confdefs.h
25968
25969 fi
25970
25971 if test "$enable_developer_mode" = "yes"; then
25972 BACKENDS_SEARCH_DIRECTORY="`pwd`/src/backends/"
25973 else
25974 BACKENDS_SEARCH_DIRECTORY='$(libdir)/syncevolution/backends/'
25975 fi
25976
25977 BACKENDS_DIRECTORY='$(libdir)/syncevolution/backends'
25978
25979
25980
25981 # for ActiveSync backend
25982 syncevo_backenddir='$(libdir)'/syncevolution/backends
25983
25984
25985
25986 cat >>confdefs.h <<_ACEOF
25987 #define DEVICE_TYPE "$DEVICE_TYPE"
25988 _ACEOF
25989
25990
25991 for ac_header in stdarg.h valgrind/valgrind.h execinfo.h
25992 do :
25993   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25994 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25995 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25996   cat >>confdefs.h <<_ACEOF
25997 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25998 _ACEOF
25999
26000 fi
26001
26002 done
26003
26004
26005
26006 $as_echo "#define SYNTHESIS 1" >>confdefs.h
26007
26008
26009 # fallback for lack of --with-docdir support in older automake
26010 if test ! "$docdir"; then
26011    docdir = ${datadir}/doc/syncevolution
26012
26013 fi
26014
26015 # Check whether --enable-dbus-timeout-hack was given.
26016 if test "${enable_dbus_timeout_hack+set}" = set; then :
26017   enableval=$enable_dbus_timeout_hack; enable_dbus_timeout_hack=$enableval
26018 else
26019   if test $enable_ebook = "yes" || test $enable_ecal = "yes"; then
26020                   enable_dbus_timeout_hack="yes"
26021                fi
26022 fi
26023
26024 if test "$enable_dbus_timeout_hack" = "yes"; then
26025
26026 $as_echo "#define ENABLE_DBUS_TIMEOUT_HACK 1" >>confdefs.h
26027
26028 fi
26029
26030 # Avoid hard-coding paths in backends. These names are chosen so
26031 # that a backend can alternatively use its own top-level configure
26032 # with PKG_CHECK_MODULES(SYNCEVOLUTION, "syncevolution") to set them.
26033 # need absolute path, use pwd instead of relative $srcdir
26034 #
26035 # When adding something here, remember to also update syncevolution.pc.in.
26036 # -lrt is for clock_gettime() in the Timespec.h inline functions.
26037 SYNCEVOLUTION_CFLAGS=-I`cd $srcdir && pwd`/src
26038 # Linker flags including libsyncevolution.la and some libs.
26039 SYNCEVOLUTION_LIBS="src/syncevo/libsyncevolution.la -lrt"
26040
26041
26042
26043 # invoking syncevolution binary is allowed to fail when cross-compiling
26044  if test "$cross_compiling" = "yes"; then
26045   COND_CROSS_COMPILING_TRUE=
26046   COND_CROSS_COMPILING_FALSE='#'
26047 else
26048   COND_CROSS_COMPILING_TRUE='#'
26049   COND_CROSS_COMPILING_FALSE=
26050 fi
26051
26052
26053 # Set by any of the backends providing a keyring, determines the
26054 # default for the "keyring" option.
26055 if test "$have_keyring" = "yes"; then
26056
26057 $as_echo "#define HAVE_KEYRING 1" >>confdefs.h
26058
26059 fi
26060
26061 ac_config_files="$ac_config_files Makefile src/syncevo/syncevolution.pc src/synthesis-includes/Makefile po/Makefile.in src/dbus/glib/syncevo-dbus.pc"
26062
26063 cat >confcache <<\_ACEOF
26064 # This file is a shell script that caches the results of configure
26065 # tests run on this system so they can be shared between configure
26066 # scripts and configure runs, see configure's option --config-cache.
26067 # It is not useful on other systems.  If it contains results you don't
26068 # want to keep, you may remove or edit it.
26069 #
26070 # config.status only pays attention to the cache file if you give it
26071 # the --recheck option to rerun configure.
26072 #
26073 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26074 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26075 # following values.
26076
26077 _ACEOF
26078
26079 # The following way of writing the cache mishandles newlines in values,
26080 # but we know of no workaround that is simple, portable, and efficient.
26081 # So, we kill variables containing newlines.
26082 # Ultrix sh set writes to stderr and can't be redirected directly,
26083 # and sets the high bit in the cache file unless we assign to the vars.
26084 (
26085   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26086     eval ac_val=\$$ac_var
26087     case $ac_val in #(
26088     *${as_nl}*)
26089       case $ac_var in #(
26090       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26091 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26092       esac
26093       case $ac_var in #(
26094       _ | IFS | as_nl) ;; #(
26095       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26096       *) { eval $ac_var=; unset $ac_var;} ;;
26097       esac ;;
26098     esac
26099   done
26100
26101   (set) 2>&1 |
26102     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26103     *${as_nl}ac_space=\ *)
26104       # `set' does not quote correctly, so add quotes: double-quote
26105       # substitution turns \\\\ into \\, and sed turns \\ into \.
26106       sed -n \
26107         "s/'/'\\\\''/g;
26108           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26109       ;; #(
26110     *)
26111       # `set' quotes correctly as required by POSIX, so do not add quotes.
26112       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26113       ;;
26114     esac |
26115     sort
26116 ) |
26117   sed '
26118      /^ac_cv_env_/b end
26119      t clear
26120      :clear
26121      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26122      t end
26123      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26124      :end' >>confcache
26125 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26126   if test -w "$cache_file"; then
26127     if test "x$cache_file" != "x/dev/null"; then
26128       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26129 $as_echo "$as_me: updating cache $cache_file" >&6;}
26130       if test ! -f "$cache_file" || test -h "$cache_file"; then
26131         cat confcache >"$cache_file"
26132       else
26133         case $cache_file in #(
26134         */* | ?:*)
26135           mv -f confcache "$cache_file"$$ &&
26136           mv -f "$cache_file"$$ "$cache_file" ;; #(
26137         *)
26138           mv -f confcache "$cache_file" ;;
26139         esac
26140       fi
26141     fi
26142   else
26143     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26144 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26145   fi
26146 fi
26147 rm -f confcache
26148
26149 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26150 # Let make expand exec_prefix.
26151 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26152
26153 DEFS=-DHAVE_CONFIG_H
26154
26155 ac_libobjs=
26156 ac_ltlibobjs=
26157 U=
26158 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26159   # 1. Remove the extension, and $U if already installed.
26160   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26161   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26162   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26163   #    will be set to the directory where LIBOBJS objects are built.
26164   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26165   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26166 done
26167 LIBOBJS=$ac_libobjs
26168
26169 LTLIBOBJS=$ac_ltlibobjs
26170
26171
26172  if test -n "$EXEEXT"; then
26173   am__EXEEXT_TRUE=
26174   am__EXEEXT_FALSE='#'
26175 else
26176   am__EXEEXT_TRUE='#'
26177   am__EXEEXT_FALSE=
26178 fi
26179
26180 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26181   as_fn_error $? "conditional \"AMDEP\" was never defined.
26182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26183 fi
26184 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26185   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26187 fi
26188 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26189   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
26190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26191 fi
26192 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26193   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26195 fi
26196 if test -z "${ENABLE_ICALTZ_UTIL_TRUE}" && test -z "${ENABLE_ICALTZ_UTIL_FALSE}"; then
26197   as_fn_error $? "conditional \"ENABLE_ICALTZ_UTIL\" was never defined.
26198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26199 fi
26200 if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
26201   as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
26202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26203 fi
26204 if test -z "${ENABLE_TESTING_TRUE}" && test -z "${ENABLE_TESTING_FALSE}"; then
26205   as_fn_error $? "conditional \"ENABLE_TESTING\" was never defined.
26206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26207 fi
26208 if test -z "${ENABLE_OBEX_TRUE}" && test -z "${ENABLE_OBEX_FALSE}"; then
26209   as_fn_error $? "conditional \"ENABLE_OBEX\" was never defined.
26210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26211 fi
26212 if test -z "${ENABLE_BLUETOOTH_TRUE}" && test -z "${ENABLE_BLUETOOTH_FALSE}"; then
26213   as_fn_error $? "conditional \"ENABLE_BLUETOOTH\" was never defined.
26214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26215 fi
26216 if test -z "${COND_GTK2_TRUE}" && test -z "${COND_GTK2_FALSE}"; then
26217   as_fn_error $? "conditional \"COND_GTK2\" was never defined.
26218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26219 fi
26220 if test -z "${COND_GUI_TRUE}" && test -z "${COND_GUI_FALSE}"; then
26221   as_fn_error $? "conditional \"COND_GUI\" was never defined.
26222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26223 fi
26224 if test -z "${COND_CORE_TRUE}" && test -z "${COND_CORE_FALSE}"; then
26225   as_fn_error $? "conditional \"COND_CORE\" was never defined.
26226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26227 fi
26228 if test -z "${COND_DBUS_TRUE}" && test -z "${COND_DBUS_FALSE}"; then
26229   as_fn_error $? "conditional \"COND_DBUS\" was never defined.
26230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26231 fi
26232 if test -z "${COND_GIO_GDBUS_TRUE}" && test -z "${COND_GIO_GDBUS_FALSE}"; then
26233   as_fn_error $? "conditional \"COND_GIO_GDBUS\" was never defined.
26234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26235 fi
26236 if test -z "${NOTIFY_COMPATIBILITY_TRUE}" && test -z "${NOTIFY_COMPATIBILITY_FALSE}"; then
26237   as_fn_error $? "conditional \"NOTIFY_COMPATIBILITY\" was never defined.
26238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26239 fi
26240 if test -z "${COND_DBUS_PIM_TRUE}" && test -z "${COND_DBUS_PIM_FALSE}"; then
26241   as_fn_error $? "conditional \"COND_DBUS_PIM\" was never defined.
26242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26243 fi
26244
26245   ac_config_commands="$ac_config_commands po/stamp-it"
26246
26247
26248 if test -z "${COND_MAN_PAGES_TRUE}" && test -z "${COND_MAN_PAGES_FALSE}"; then
26249   as_fn_error $? "conditional \"COND_MAN_PAGES\" was never defined.
26250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26251 fi
26252 if test -z "${COND_HTML_README_TRUE}" && test -z "${COND_HTML_README_FALSE}"; then
26253   as_fn_error $? "conditional \"COND_HTML_README\" was never defined.
26254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26255 fi
26256 if test -z "${ENABLE_GNOME_BLUETOOTH_PANEL_TRUE}" && test -z "${ENABLE_GNOME_BLUETOOTH_PANEL_FALSE}"; then
26257   as_fn_error $? "conditional \"ENABLE_GNOME_BLUETOOTH_PANEL\" was never defined.
26258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26259 fi
26260 if test -z "${COND_DOC_TRUE}" && test -z "${COND_DOC_FALSE}"; then
26261   as_fn_error $? "conditional \"COND_DOC\" was never defined.
26262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26263 fi
26264 if test -z "${BUILD_ACTIVESYNCD_TRUE}" && test -z "${BUILD_ACTIVESYNCD_FALSE}"; then
26265   as_fn_error $? "conditional \"BUILD_ACTIVESYNCD\" was never defined.
26266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26267 fi
26268 if test -z "${ENABLE_AKONADI_TRUE}" && test -z "${ENABLE_AKONADI_FALSE}"; then
26269   as_fn_error $? "conditional \"ENABLE_AKONADI\" was never defined.
26270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26271 fi
26272 if test -z "${ENABLE_ECAL_TRUE}" && test -z "${ENABLE_ECAL_FALSE}"; then
26273   as_fn_error $? "conditional \"ENABLE_ECAL\" was never defined.
26274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26275 fi
26276 if test -z "${USE_GOA_TRUE}" && test -z "${USE_GOA_FALSE}"; then
26277   as_fn_error $? "conditional \"USE_GOA\" was never defined.
26278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26279 fi
26280 if test -z "${USE_KDE_KWALLET_TRUE}" && test -z "${USE_KDE_KWALLET_FALSE}"; then
26281   as_fn_error $? "conditional \"USE_KDE_KWALLET\" was never defined.
26282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26283 fi
26284 if test -z "${USE_OAUTH2_TRUE}" && test -z "${USE_OAUTH2_FALSE}"; then
26285   as_fn_error $? "conditional \"USE_OAUTH2\" was never defined.
26286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26287 fi
26288 if test -z "${USE_GSSO_TRUE}" && test -z "${USE_GSSO_FALSE}"; then
26289   as_fn_error $? "conditional \"USE_GSSO\" was never defined.
26290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26291 fi
26292 if test -z "${USE_UOA_TRUE}" && test -z "${USE_UOA_FALSE}"; then
26293   as_fn_error $? "conditional \"USE_UOA\" was never defined.
26294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26295 fi
26296 if test -z "${USE_SIGNON_TRUE}" && test -z "${USE_SIGNON_FALSE}"; then
26297   as_fn_error $? "conditional \"USE_SIGNON\" was never defined.
26298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26299 fi
26300 if test -z "${NEON_COMPATIBILITY_TRUE}" && test -z "${NEON_COMPATIBILITY_FALSE}"; then
26301   as_fn_error $? "conditional \"NEON_COMPATIBILITY\" was never defined.
26302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26303 fi
26304 if test -z "${ENABLE_QT_DBUS_TRUE}" && test -z "${ENABLE_QT_DBUS_FALSE}"; then
26305   as_fn_error $? "conditional \"ENABLE_QT_DBUS\" was never defined.
26306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26307 fi
26308 if test -z "${ENABLE_ICAL_TRUE}" && test -z "${ENABLE_ICAL_FALSE}"; then
26309   as_fn_error $? "conditional \"ENABLE_ICAL\" was never defined.
26310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26311 fi
26312 if test -z "${ENABLE_MODULES_TRUE}" && test -z "${ENABLE_MODULES_FALSE}"; then
26313   as_fn_error $? "conditional \"ENABLE_MODULES\" was never defined.
26314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26315 fi
26316 if test -z "${ENABLE_EVOLUTION_COMPATIBILITY_TRUE}" && test -z "${ENABLE_EVOLUTION_COMPATIBILITY_FALSE}"; then
26317   as_fn_error $? "conditional \"ENABLE_EVOLUTION_COMPATIBILITY\" was never defined.
26318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26319 fi
26320 if test -z "${COND_CROSS_COMPILING_TRUE}" && test -z "${COND_CROSS_COMPILING_FALSE}"; then
26321   as_fn_error $? "conditional \"COND_CROSS_COMPILING\" was never defined.
26322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26323 fi
26324
26325 : "${CONFIG_STATUS=./config.status}"
26326 ac_write_fail=0
26327 ac_clean_files_save=$ac_clean_files
26328 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26330 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26331 as_write_fail=0
26332 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26333 #! $SHELL
26334 # Generated by $as_me.
26335 # Run this file to recreate the current configuration.
26336 # Compiler output produced by configure, useful for debugging
26337 # configure, is in config.log if it exists.
26338
26339 debug=false
26340 ac_cs_recheck=false
26341 ac_cs_silent=false
26342
26343 SHELL=\${CONFIG_SHELL-$SHELL}
26344 export SHELL
26345 _ASEOF
26346 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26347 ## -------------------- ##
26348 ## M4sh Initialization. ##
26349 ## -------------------- ##
26350
26351 # Be more Bourne compatible
26352 DUALCASE=1; export DUALCASE # for MKS sh
26353 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26354   emulate sh
26355   NULLCMD=:
26356   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26357   # is contrary to our usage.  Disable this feature.
26358   alias -g '${1+"$@"}'='"$@"'
26359   setopt NO_GLOB_SUBST
26360 else
26361   case `(set -o) 2>/dev/null` in #(
26362   *posix*) :
26363     set -o posix ;; #(
26364   *) :
26365      ;;
26366 esac
26367 fi
26368
26369
26370 as_nl='
26371 '
26372 export as_nl
26373 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26374 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26375 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26376 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26377 # Prefer a ksh shell builtin over an external printf program on Solaris,
26378 # but without wasting forks for bash or zsh.
26379 if test -z "$BASH_VERSION$ZSH_VERSION" \
26380     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26381   as_echo='print -r --'
26382   as_echo_n='print -rn --'
26383 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26384   as_echo='printf %s\n'
26385   as_echo_n='printf %s'
26386 else
26387   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26388     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26389     as_echo_n='/usr/ucb/echo -n'
26390   else
26391     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26392     as_echo_n_body='eval
26393       arg=$1;
26394       case $arg in #(
26395       *"$as_nl"*)
26396         expr "X$arg" : "X\\(.*\\)$as_nl";
26397         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26398       esac;
26399       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26400     '
26401     export as_echo_n_body
26402     as_echo_n='sh -c $as_echo_n_body as_echo'
26403   fi
26404   export as_echo_body
26405   as_echo='sh -c $as_echo_body as_echo'
26406 fi
26407
26408 # The user is always right.
26409 if test "${PATH_SEPARATOR+set}" != set; then
26410   PATH_SEPARATOR=:
26411   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26412     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26413       PATH_SEPARATOR=';'
26414   }
26415 fi
26416
26417
26418 # IFS
26419 # We need space, tab and new line, in precisely that order.  Quoting is
26420 # there to prevent editors from complaining about space-tab.
26421 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26422 # splitting by setting IFS to empty value.)
26423 IFS=" ""        $as_nl"
26424
26425 # Find who we are.  Look in the path if we contain no directory separator.
26426 as_myself=
26427 case $0 in #((
26428   *[\\/]* ) as_myself=$0 ;;
26429   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26430 for as_dir in $PATH
26431 do
26432   IFS=$as_save_IFS
26433   test -z "$as_dir" && as_dir=.
26434     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26435   done
26436 IFS=$as_save_IFS
26437
26438      ;;
26439 esac
26440 # We did not find ourselves, most probably we were run as `sh COMMAND'
26441 # in which case we are not to be found in the path.
26442 if test "x$as_myself" = x; then
26443   as_myself=$0
26444 fi
26445 if test ! -f "$as_myself"; then
26446   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26447   exit 1
26448 fi
26449
26450 # Unset variables that we do not need and which cause bugs (e.g. in
26451 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26452 # suppresses any "Segmentation fault" message there.  '((' could
26453 # trigger a bug in pdksh 5.2.14.
26454 for as_var in BASH_ENV ENV MAIL MAILPATH
26455 do eval test x\${$as_var+set} = xset \
26456   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26457 done
26458 PS1='$ '
26459 PS2='> '
26460 PS4='+ '
26461
26462 # NLS nuisances.
26463 LC_ALL=C
26464 export LC_ALL
26465 LANGUAGE=C
26466 export LANGUAGE
26467
26468 # CDPATH.
26469 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26470
26471
26472 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26473 # ----------------------------------------
26474 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26475 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26476 # script with STATUS, using 1 if that was 0.
26477 as_fn_error ()
26478 {
26479   as_status=$1; test $as_status -eq 0 && as_status=1
26480   if test "$4"; then
26481     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26482     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26483   fi
26484   $as_echo "$as_me: error: $2" >&2
26485   as_fn_exit $as_status
26486 } # as_fn_error
26487
26488
26489 # as_fn_set_status STATUS
26490 # -----------------------
26491 # Set $? to STATUS, without forking.
26492 as_fn_set_status ()
26493 {
26494   return $1
26495 } # as_fn_set_status
26496
26497 # as_fn_exit STATUS
26498 # -----------------
26499 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26500 as_fn_exit ()
26501 {
26502   set +e
26503   as_fn_set_status $1
26504   exit $1
26505 } # as_fn_exit
26506
26507 # as_fn_unset VAR
26508 # ---------------
26509 # Portably unset VAR.
26510 as_fn_unset ()
26511 {
26512   { eval $1=; unset $1;}
26513 }
26514 as_unset=as_fn_unset
26515 # as_fn_append VAR VALUE
26516 # ----------------------
26517 # Append the text in VALUE to the end of the definition contained in VAR. Take
26518 # advantage of any shell optimizations that allow amortized linear growth over
26519 # repeated appends, instead of the typical quadratic growth present in naive
26520 # implementations.
26521 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26522   eval 'as_fn_append ()
26523   {
26524     eval $1+=\$2
26525   }'
26526 else
26527   as_fn_append ()
26528   {
26529     eval $1=\$$1\$2
26530   }
26531 fi # as_fn_append
26532
26533 # as_fn_arith ARG...
26534 # ------------------
26535 # Perform arithmetic evaluation on the ARGs, and store the result in the
26536 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26537 # must be portable across $(()) and expr.
26538 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26539   eval 'as_fn_arith ()
26540   {
26541     as_val=$(( $* ))
26542   }'
26543 else
26544   as_fn_arith ()
26545   {
26546     as_val=`expr "$@" || test $? -eq 1`
26547   }
26548 fi # as_fn_arith
26549
26550
26551 if expr a : '\(a\)' >/dev/null 2>&1 &&
26552    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26553   as_expr=expr
26554 else
26555   as_expr=false
26556 fi
26557
26558 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26559   as_basename=basename
26560 else
26561   as_basename=false
26562 fi
26563
26564 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26565   as_dirname=dirname
26566 else
26567   as_dirname=false
26568 fi
26569
26570 as_me=`$as_basename -- "$0" ||
26571 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26572          X"$0" : 'X\(//\)$' \| \
26573          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26574 $as_echo X/"$0" |
26575     sed '/^.*\/\([^/][^/]*\)\/*$/{
26576             s//\1/
26577             q
26578           }
26579           /^X\/\(\/\/\)$/{
26580             s//\1/
26581             q
26582           }
26583           /^X\/\(\/\).*/{
26584             s//\1/
26585             q
26586           }
26587           s/.*/./; q'`
26588
26589 # Avoid depending upon Character Ranges.
26590 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26591 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26592 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26593 as_cr_digits='0123456789'
26594 as_cr_alnum=$as_cr_Letters$as_cr_digits
26595
26596 ECHO_C= ECHO_N= ECHO_T=
26597 case `echo -n x` in #(((((
26598 -n*)
26599   case `echo 'xy\c'` in
26600   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26601   xy)  ECHO_C='\c';;
26602   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26603        ECHO_T=' ';;
26604   esac;;
26605 *)
26606   ECHO_N='-n';;
26607 esac
26608
26609 rm -f conf$$ conf$$.exe conf$$.file
26610 if test -d conf$$.dir; then
26611   rm -f conf$$.dir/conf$$.file
26612 else
26613   rm -f conf$$.dir
26614   mkdir conf$$.dir 2>/dev/null
26615 fi
26616 if (echo >conf$$.file) 2>/dev/null; then
26617   if ln -s conf$$.file conf$$ 2>/dev/null; then
26618     as_ln_s='ln -s'
26619     # ... but there are two gotchas:
26620     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26621     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26622     # In both cases, we have to default to `cp -pR'.
26623     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26624       as_ln_s='cp -pR'
26625   elif ln conf$$.file conf$$ 2>/dev/null; then
26626     as_ln_s=ln
26627   else
26628     as_ln_s='cp -pR'
26629   fi
26630 else
26631   as_ln_s='cp -pR'
26632 fi
26633 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26634 rmdir conf$$.dir 2>/dev/null
26635
26636
26637 # as_fn_mkdir_p
26638 # -------------
26639 # Create "$as_dir" as a directory, including parents if necessary.
26640 as_fn_mkdir_p ()
26641 {
26642
26643   case $as_dir in #(
26644   -*) as_dir=./$as_dir;;
26645   esac
26646   test -d "$as_dir" || eval $as_mkdir_p || {
26647     as_dirs=
26648     while :; do
26649       case $as_dir in #(
26650       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26651       *) as_qdir=$as_dir;;
26652       esac
26653       as_dirs="'$as_qdir' $as_dirs"
26654       as_dir=`$as_dirname -- "$as_dir" ||
26655 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26656          X"$as_dir" : 'X\(//\)[^/]' \| \
26657          X"$as_dir" : 'X\(//\)$' \| \
26658          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26659 $as_echo X"$as_dir" |
26660     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26661             s//\1/
26662             q
26663           }
26664           /^X\(\/\/\)[^/].*/{
26665             s//\1/
26666             q
26667           }
26668           /^X\(\/\/\)$/{
26669             s//\1/
26670             q
26671           }
26672           /^X\(\/\).*/{
26673             s//\1/
26674             q
26675           }
26676           s/.*/./; q'`
26677       test -d "$as_dir" && break
26678     done
26679     test -z "$as_dirs" || eval "mkdir $as_dirs"
26680   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26681
26682
26683 } # as_fn_mkdir_p
26684 if mkdir -p . 2>/dev/null; then
26685   as_mkdir_p='mkdir -p "$as_dir"'
26686 else
26687   test -d ./-p && rmdir ./-p
26688   as_mkdir_p=false
26689 fi
26690
26691
26692 # as_fn_executable_p FILE
26693 # -----------------------
26694 # Test if FILE is an executable regular file.
26695 as_fn_executable_p ()
26696 {
26697   test -f "$1" && test -x "$1"
26698 } # as_fn_executable_p
26699 as_test_x='test -x'
26700 as_executable_p=as_fn_executable_p
26701
26702 # Sed expression to map a string onto a valid CPP name.
26703 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26704
26705 # Sed expression to map a string onto a valid variable name.
26706 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26707
26708
26709 exec 6>&1
26710 ## ----------------------------------- ##
26711 ## Main body of $CONFIG_STATUS script. ##
26712 ## ----------------------------------- ##
26713 _ASEOF
26714 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26715
26716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26717 # Save the log message, to keep $0 and so on meaningful, and to
26718 # report actual input values of CONFIG_FILES etc. instead of their
26719 # values after options handling.
26720 ac_log="
26721 This file was extended by syncevolution $as_me 1.5, which was
26722 generated by GNU Autoconf 2.69.  Invocation command line was
26723
26724   CONFIG_FILES    = $CONFIG_FILES
26725   CONFIG_HEADERS  = $CONFIG_HEADERS
26726   CONFIG_LINKS    = $CONFIG_LINKS
26727   CONFIG_COMMANDS = $CONFIG_COMMANDS
26728   $ $0 $@
26729
26730 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26731 "
26732
26733 _ACEOF
26734
26735 case $ac_config_files in *"
26736 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26737 esac
26738
26739 case $ac_config_headers in *"
26740 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26741 esac
26742
26743
26744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26745 # Files that config.status was made for.
26746 config_files="$ac_config_files"
26747 config_headers="$ac_config_headers"
26748 config_commands="$ac_config_commands"
26749
26750 _ACEOF
26751
26752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26753 ac_cs_usage="\
26754 \`$as_me' instantiates files and other configuration actions
26755 from templates according to the current configuration.  Unless the files
26756 and actions are specified as TAGs, all are instantiated by default.
26757
26758 Usage: $0 [OPTION]... [TAG]...
26759
26760   -h, --help       print this help, then exit
26761   -V, --version    print version number and configuration settings, then exit
26762       --config     print configuration, then exit
26763   -q, --quiet, --silent
26764                    do not print progress messages
26765   -d, --debug      don't remove temporary files
26766       --recheck    update $as_me by reconfiguring in the same conditions
26767       --file=FILE[:TEMPLATE]
26768                    instantiate the configuration file FILE
26769       --header=FILE[:TEMPLATE]
26770                    instantiate the configuration header FILE
26771
26772 Configuration files:
26773 $config_files
26774
26775 Configuration headers:
26776 $config_headers
26777
26778 Configuration commands:
26779 $config_commands
26780
26781 Report bugs to the package provider."
26782
26783 _ACEOF
26784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26785 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26786 ac_cs_version="\\
26787 syncevolution config.status 1.5
26788 configured by $0, generated by GNU Autoconf 2.69,
26789   with options \\"\$ac_cs_config\\"
26790
26791 Copyright (C) 2012 Free Software Foundation, Inc.
26792 This config.status script is free software; the Free Software Foundation
26793 gives unlimited permission to copy, distribute and modify it."
26794
26795 ac_pwd='$ac_pwd'
26796 srcdir='$srcdir'
26797 INSTALL='$INSTALL'
26798 MKDIR_P='$MKDIR_P'
26799 AWK='$AWK'
26800 test -n "\$AWK" || AWK=awk
26801 _ACEOF
26802
26803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26804 # The default lists apply if the user does not specify any file.
26805 ac_need_defaults=:
26806 while test $# != 0
26807 do
26808   case $1 in
26809   --*=?*)
26810     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26811     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26812     ac_shift=:
26813     ;;
26814   --*=)
26815     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26816     ac_optarg=
26817     ac_shift=:
26818     ;;
26819   *)
26820     ac_option=$1
26821     ac_optarg=$2
26822     ac_shift=shift
26823     ;;
26824   esac
26825
26826   case $ac_option in
26827   # Handling of the options.
26828   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26829     ac_cs_recheck=: ;;
26830   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26831     $as_echo "$ac_cs_version"; exit ;;
26832   --config | --confi | --conf | --con | --co | --c )
26833     $as_echo "$ac_cs_config"; exit ;;
26834   --debug | --debu | --deb | --de | --d | -d )
26835     debug=: ;;
26836   --file | --fil | --fi | --f )
26837     $ac_shift
26838     case $ac_optarg in
26839     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26840     '') as_fn_error $? "missing file argument" ;;
26841     esac
26842     as_fn_append CONFIG_FILES " '$ac_optarg'"
26843     ac_need_defaults=false;;
26844   --header | --heade | --head | --hea )
26845     $ac_shift
26846     case $ac_optarg in
26847     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26848     esac
26849     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26850     ac_need_defaults=false;;
26851   --he | --h)
26852     # Conflict between --help and --header
26853     as_fn_error $? "ambiguous option: \`$1'
26854 Try \`$0 --help' for more information.";;
26855   --help | --hel | -h )
26856     $as_echo "$ac_cs_usage"; exit ;;
26857   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26858   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26859     ac_cs_silent=: ;;
26860
26861   # This is an error.
26862   -*) as_fn_error $? "unrecognized option: \`$1'
26863 Try \`$0 --help' for more information." ;;
26864
26865   *) as_fn_append ac_config_targets " $1"
26866      ac_need_defaults=false ;;
26867
26868   esac
26869   shift
26870 done
26871
26872 ac_configure_extra_args=
26873
26874 if $ac_cs_silent; then
26875   exec 6>/dev/null
26876   ac_configure_extra_args="$ac_configure_extra_args --silent"
26877 fi
26878
26879 _ACEOF
26880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26881 if \$ac_cs_recheck; then
26882   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26883   shift
26884   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26885   CONFIG_SHELL='$SHELL'
26886   export CONFIG_SHELL
26887   exec "\$@"
26888 fi
26889
26890 _ACEOF
26891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26892 exec 5>>config.log
26893 {
26894   echo
26895   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26896 ## Running $as_me. ##
26897 _ASBOX
26898   $as_echo "$ac_log"
26899 } >&5
26900
26901 _ACEOF
26902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26903 #
26904 # INIT-COMMANDS
26905 #
26906 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26907
26908
26909 # The HP-UX ksh and POSIX shell print the target directory to stdout
26910 # if CDPATH is set.
26911 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26912
26913 sed_quote_subst='$sed_quote_subst'
26914 double_quote_subst='$double_quote_subst'
26915 delay_variable_subst='$delay_variable_subst'
26916 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26917 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26918 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26919 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26920 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26921 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26922 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26923 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26924 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26925 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26926 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26927 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26928 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26929 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26930 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26931 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26932 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26933 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26934 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26935 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26936 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26937 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26938 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26939 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26940 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26941 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26942 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26943 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26944 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26945 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26946 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26947 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26948 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26949 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26950 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26951 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26952 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26953 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26954 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26955 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26956 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26957 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26958 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26959 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26960 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26961 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26962 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26963 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26964 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26965 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26966 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26967 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26968 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26969 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26970 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26971 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26972 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"`'
26973 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26974 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26975 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26976 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26977 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26978 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26979 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26980 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26981 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26982 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26983 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26984 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26985 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26986 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26987 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26988 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26989 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26990 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26991 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26992 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26993 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26994 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26995 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26996 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26997 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26998 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26999 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27000 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27001 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27002 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27003 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27004 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27005 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27006 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27007 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27008 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27009 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27010 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27011 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27012 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27013 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27014 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27015 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27016 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27017 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27018 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27019 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27020 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27021 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27022 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27023 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27024 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27025 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27026 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27027 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27028 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27029 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27030 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27031 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27032 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27033 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27034 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27035 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27036 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27037 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27038 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27039 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27040 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27041 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27042 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27043 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27044 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27045 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27046 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27047 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27048 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27049 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27050 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27051 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27052 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27053 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27054 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27055 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27056 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27057 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27058 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27059 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27060 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27061 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27062 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27063 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27064 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27065 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27066 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27067 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27068 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27069 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27070 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27071 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27072 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27073 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27074 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27075 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27076 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27077 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27078 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27079 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27080 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27081 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27082 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27083 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27084 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27085 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27086 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27087 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27088 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27089 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27090 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27091 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27092 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27093 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27094 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27095 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27096 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27097 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27098 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27099 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27100
27101 LTCC='$LTCC'
27102 LTCFLAGS='$LTCFLAGS'
27103 compiler='$compiler_DEFAULT'
27104
27105 # A function that is used when there is no print builtin or printf.
27106 func_fallback_echo ()
27107 {
27108   eval 'cat <<_LTECHO_EOF
27109 \$1
27110 _LTECHO_EOF'
27111 }
27112
27113 # Quote evaled strings.
27114 for var in SHELL \
27115 ECHO \
27116 PATH_SEPARATOR \
27117 SED \
27118 GREP \
27119 EGREP \
27120 FGREP \
27121 LD \
27122 NM \
27123 LN_S \
27124 lt_SP2NL \
27125 lt_NL2SP \
27126 reload_flag \
27127 OBJDUMP \
27128 deplibs_check_method \
27129 file_magic_cmd \
27130 file_magic_glob \
27131 want_nocaseglob \
27132 DLLTOOL \
27133 sharedlib_from_linklib_cmd \
27134 AR \
27135 AR_FLAGS \
27136 archiver_list_spec \
27137 STRIP \
27138 RANLIB \
27139 CC \
27140 CFLAGS \
27141 compiler \
27142 lt_cv_sys_global_symbol_pipe \
27143 lt_cv_sys_global_symbol_to_cdecl \
27144 lt_cv_sys_global_symbol_to_c_name_address \
27145 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27146 nm_file_list_spec \
27147 lt_prog_compiler_no_builtin_flag \
27148 lt_prog_compiler_pic \
27149 lt_prog_compiler_wl \
27150 lt_prog_compiler_static \
27151 lt_cv_prog_compiler_c_o \
27152 need_locks \
27153 MANIFEST_TOOL \
27154 DSYMUTIL \
27155 NMEDIT \
27156 LIPO \
27157 OTOOL \
27158 OTOOL64 \
27159 shrext_cmds \
27160 export_dynamic_flag_spec \
27161 whole_archive_flag_spec \
27162 compiler_needs_object \
27163 with_gnu_ld \
27164 allow_undefined_flag \
27165 no_undefined_flag \
27166 hardcode_libdir_flag_spec \
27167 hardcode_libdir_separator \
27168 exclude_expsyms \
27169 include_expsyms \
27170 file_list_spec \
27171 variables_saved_for_relink \
27172 libname_spec \
27173 library_names_spec \
27174 soname_spec \
27175 install_override_mode \
27176 finish_eval \
27177 old_striplib \
27178 striplib \
27179 compiler_lib_search_dirs \
27180 predep_objects \
27181 postdep_objects \
27182 predeps \
27183 postdeps \
27184 compiler_lib_search_path \
27185 LD_CXX \
27186 reload_flag_CXX \
27187 compiler_CXX \
27188 lt_prog_compiler_no_builtin_flag_CXX \
27189 lt_prog_compiler_pic_CXX \
27190 lt_prog_compiler_wl_CXX \
27191 lt_prog_compiler_static_CXX \
27192 lt_cv_prog_compiler_c_o_CXX \
27193 export_dynamic_flag_spec_CXX \
27194 whole_archive_flag_spec_CXX \
27195 compiler_needs_object_CXX \
27196 with_gnu_ld_CXX \
27197 allow_undefined_flag_CXX \
27198 no_undefined_flag_CXX \
27199 hardcode_libdir_flag_spec_CXX \
27200 hardcode_libdir_separator_CXX \
27201 exclude_expsyms_CXX \
27202 include_expsyms_CXX \
27203 file_list_spec_CXX \
27204 compiler_lib_search_dirs_CXX \
27205 predep_objects_CXX \
27206 postdep_objects_CXX \
27207 predeps_CXX \
27208 postdeps_CXX \
27209 compiler_lib_search_path_CXX; do
27210     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27211     *[\\\\\\\`\\"\\\$]*)
27212       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27213       ;;
27214     *)
27215       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27216       ;;
27217     esac
27218 done
27219
27220 # Double-quote double-evaled strings.
27221 for var in reload_cmds \
27222 old_postinstall_cmds \
27223 old_postuninstall_cmds \
27224 old_archive_cmds \
27225 extract_expsyms_cmds \
27226 old_archive_from_new_cmds \
27227 old_archive_from_expsyms_cmds \
27228 archive_cmds \
27229 archive_expsym_cmds \
27230 module_cmds \
27231 module_expsym_cmds \
27232 export_symbols_cmds \
27233 prelink_cmds \
27234 postlink_cmds \
27235 postinstall_cmds \
27236 postuninstall_cmds \
27237 finish_cmds \
27238 sys_lib_search_path_spec \
27239 sys_lib_dlsearch_path_spec \
27240 reload_cmds_CXX \
27241 old_archive_cmds_CXX \
27242 old_archive_from_new_cmds_CXX \
27243 old_archive_from_expsyms_cmds_CXX \
27244 archive_cmds_CXX \
27245 archive_expsym_cmds_CXX \
27246 module_cmds_CXX \
27247 module_expsym_cmds_CXX \
27248 export_symbols_cmds_CXX \
27249 prelink_cmds_CXX \
27250 postlink_cmds_CXX; do
27251     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27252     *[\\\\\\\`\\"\\\$]*)
27253       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27254       ;;
27255     *)
27256       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27257       ;;
27258     esac
27259 done
27260
27261 ac_aux_dir='$ac_aux_dir'
27262 xsi_shell='$xsi_shell'
27263 lt_shell_append='$lt_shell_append'
27264
27265 # See if we are running on zsh, and set the options which allow our
27266 # commands through without removal of \ escapes INIT.
27267 if test -n "\${ZSH_VERSION+set}" ; then
27268    setopt NO_GLOB_SUBST
27269 fi
27270
27271
27272     PACKAGE='$PACKAGE'
27273     VERSION='$VERSION'
27274     TIMESTAMP='$TIMESTAMP'
27275     RM='$RM'
27276     ofile='$ofile'
27277
27278
27279
27280
27281
27282
27283
27284 _ACEOF
27285
27286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27287
27288 # Handling of arguments.
27289 for ac_config_target in $ac_config_targets
27290 do
27291   case $ac_config_target in
27292     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27293     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27294     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27295     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27296     "src/backends/signon/accounts/google-caldav.service") CONFIG_FILES="$CONFIG_FILES src/backends/signon/accounts/google-caldav.service" ;;
27297     "src/backends/signon/accounts/google-carddav.service") CONFIG_FILES="$CONFIG_FILES src/backends/signon/accounts/google-carddav.service" ;;
27298     "src/backends/signon/accounts/google.provider") CONFIG_FILES="$CONFIG_FILES src/backends/signon/accounts/google.provider" ;;
27299     "src/dbus/qt/syncevolution-qt-dbus.pc") CONFIG_FILES="$CONFIG_FILES src/dbus/qt/syncevolution-qt-dbus.pc" ;;
27300     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27301     "src/syncevo/syncevolution.pc") CONFIG_FILES="$CONFIG_FILES src/syncevo/syncevolution.pc" ;;
27302     "src/synthesis-includes/Makefile") CONFIG_FILES="$CONFIG_FILES src/synthesis-includes/Makefile" ;;
27303     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
27304     "src/dbus/glib/syncevo-dbus.pc") CONFIG_FILES="$CONFIG_FILES src/dbus/glib/syncevo-dbus.pc" ;;
27305     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
27306
27307   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27308   esac
27309 done
27310
27311
27312 # If the user did not use the arguments to specify the items to instantiate,
27313 # then the envvar interface is used.  Set only those that are not.
27314 # We use the long form for the default assignment because of an extremely
27315 # bizarre bug on SunOS 4.1.3.
27316 if $ac_need_defaults; then
27317   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27318   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27319   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27320 fi
27321
27322 # Have a temporary directory for convenience.  Make it in the build tree
27323 # simply because there is no reason against having it here, and in addition,
27324 # creating and moving files from /tmp can sometimes cause problems.
27325 # Hook for its removal unless debugging.
27326 # Note that there is a small window in which the directory will not be cleaned:
27327 # after its creation but before its name has been assigned to `$tmp'.
27328 $debug ||
27329 {
27330   tmp= ac_tmp=
27331   trap 'exit_status=$?
27332   : "${ac_tmp:=$tmp}"
27333   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27334 ' 0
27335   trap 'as_fn_exit 1' 1 2 13 15
27336 }
27337 # Create a (secure) tmp directory for tmp files.
27338
27339 {
27340   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27341   test -d "$tmp"
27342 }  ||
27343 {
27344   tmp=./conf$$-$RANDOM
27345   (umask 077 && mkdir "$tmp")
27346 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27347 ac_tmp=$tmp
27348
27349 # Set up the scripts for CONFIG_FILES section.
27350 # No need to generate them if there are no CONFIG_FILES.
27351 # This happens for instance with `./config.status config.h'.
27352 if test -n "$CONFIG_FILES"; then
27353
27354
27355 ac_cr=`echo X | tr X '\015'`
27356 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27357 # But we know of no other shell where ac_cr would be empty at this
27358 # point, so we can use a bashism as a fallback.
27359 if test "x$ac_cr" = x; then
27360   eval ac_cr=\$\'\\r\'
27361 fi
27362 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27363 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27364   ac_cs_awk_cr='\\r'
27365 else
27366   ac_cs_awk_cr=$ac_cr
27367 fi
27368
27369 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27370 _ACEOF
27371
27372
27373 {
27374   echo "cat >conf$$subs.awk <<_ACEOF" &&
27375   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27376   echo "_ACEOF"
27377 } >conf$$subs.sh ||
27378   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27379 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27380 ac_delim='%!_!# '
27381 for ac_last_try in false false false false false :; do
27382   . ./conf$$subs.sh ||
27383     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27384
27385   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27386   if test $ac_delim_n = $ac_delim_num; then
27387     break
27388   elif $ac_last_try; then
27389     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27390   else
27391     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27392   fi
27393 done
27394 rm -f conf$$subs.sh
27395
27396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27397 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27398 _ACEOF
27399 sed -n '
27400 h
27401 s/^/S["/; s/!.*/"]=/
27402 p
27403 g
27404 s/^[^!]*!//
27405 :repl
27406 t repl
27407 s/'"$ac_delim"'$//
27408 t delim
27409 :nl
27410 h
27411 s/\(.\{148\}\)..*/\1/
27412 t more1
27413 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27414 p
27415 n
27416 b repl
27417 :more1
27418 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27419 p
27420 g
27421 s/.\{148\}//
27422 t nl
27423 :delim
27424 h
27425 s/\(.\{148\}\)..*/\1/
27426 t more2
27427 s/["\\]/\\&/g; s/^/"/; s/$/"/
27428 p
27429 b
27430 :more2
27431 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27432 p
27433 g
27434 s/.\{148\}//
27435 t delim
27436 ' <conf$$subs.awk | sed '
27437 /^[^""]/{
27438   N
27439   s/\n//
27440 }
27441 ' >>$CONFIG_STATUS || ac_write_fail=1
27442 rm -f conf$$subs.awk
27443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27444 _ACAWK
27445 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27446   for (key in S) S_is_set[key] = 1
27447   FS = "\a"
27448
27449 }
27450 {
27451   line = $ 0
27452   nfields = split(line, field, "@")
27453   substed = 0
27454   len = length(field[1])
27455   for (i = 2; i < nfields; i++) {
27456     key = field[i]
27457     keylen = length(key)
27458     if (S_is_set[key]) {
27459       value = S[key]
27460       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27461       len += length(value) + length(field[++i])
27462       substed = 1
27463     } else
27464       len += 1 + keylen
27465   }
27466
27467   print line
27468 }
27469
27470 _ACAWK
27471 _ACEOF
27472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27473 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27474   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27475 else
27476   cat
27477 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27478   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27479 _ACEOF
27480
27481 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27482 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27483 # trailing colons and then remove the whole line if VPATH becomes empty
27484 # (actually we leave an empty line to preserve line numbers).
27485 if test "x$srcdir" = x.; then
27486   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
27487 h
27488 s///
27489 s/^/:/
27490 s/[      ]*$/:/
27491 s/:\$(srcdir):/:/g
27492 s/:\${srcdir}:/:/g
27493 s/:@srcdir@:/:/g
27494 s/^:*//
27495 s/:*$//
27496 x
27497 s/\(=[   ]*\).*/\1/
27498 G
27499 s/\n//
27500 s/^[^=]*=[       ]*$//
27501 }'
27502 fi
27503
27504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27505 fi # test -n "$CONFIG_FILES"
27506
27507 # Set up the scripts for CONFIG_HEADERS section.
27508 # No need to generate them if there are no CONFIG_HEADERS.
27509 # This happens for instance with `./config.status Makefile'.
27510 if test -n "$CONFIG_HEADERS"; then
27511 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27512 BEGIN {
27513 _ACEOF
27514
27515 # Transform confdefs.h into an awk script `defines.awk', embedded as
27516 # here-document in config.status, that substitutes the proper values into
27517 # config.h.in to produce config.h.
27518
27519 # Create a delimiter string that does not exist in confdefs.h, to ease
27520 # handling of long lines.
27521 ac_delim='%!_!# '
27522 for ac_last_try in false false :; do
27523   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27524   if test -z "$ac_tt"; then
27525     break
27526   elif $ac_last_try; then
27527     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27528   else
27529     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27530   fi
27531 done
27532
27533 # For the awk script, D is an array of macro values keyed by name,
27534 # likewise P contains macro parameters if any.  Preserve backslash
27535 # newline sequences.
27536
27537 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27538 sed -n '
27539 s/.\{148\}/&'"$ac_delim"'/g
27540 t rset
27541 :rset
27542 s/^[     ]*#[    ]*define[       ][      ]*/ /
27543 t def
27544 d
27545 :def
27546 s/\\$//
27547 t bsnl
27548 s/["\\]/\\&/g
27549 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27550 D["\1"]=" \3"/p
27551 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27552 d
27553 :bsnl
27554 s/["\\]/\\&/g
27555 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27556 D["\1"]=" \3\\\\\\n"\\/p
27557 t cont
27558 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27559 t cont
27560 d
27561 :cont
27562 n
27563 s/.\{148\}/&'"$ac_delim"'/g
27564 t clear
27565 :clear
27566 s/\\$//
27567 t bsnlc
27568 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27569 d
27570 :bsnlc
27571 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27572 b cont
27573 ' <confdefs.h | sed '
27574 s/'"$ac_delim"'/"\\\
27575 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27576
27577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27578   for (key in D) D_is_set[key] = 1
27579   FS = "\a"
27580 }
27581 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27582   line = \$ 0
27583   split(line, arg, " ")
27584   if (arg[1] == "#") {
27585     defundef = arg[2]
27586     mac1 = arg[3]
27587   } else {
27588     defundef = substr(arg[1], 2)
27589     mac1 = arg[2]
27590   }
27591   split(mac1, mac2, "(") #)
27592   macro = mac2[1]
27593   prefix = substr(line, 1, index(line, defundef) - 1)
27594   if (D_is_set[macro]) {
27595     # Preserve the white space surrounding the "#".
27596     print prefix "define", macro P[macro] D[macro]
27597     next
27598   } else {
27599     # Replace #undef with comments.  This is necessary, for example,
27600     # in the case of _POSIX_SOURCE, which is predefined and required
27601     # on some systems where configure will not decide to define it.
27602     if (defundef == "undef") {
27603       print "/*", prefix defundef, macro, "*/"
27604       next
27605     }
27606   }
27607 }
27608 { print }
27609 _ACAWK
27610 _ACEOF
27611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27612   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27613 fi # test -n "$CONFIG_HEADERS"
27614
27615
27616 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27617 shift
27618 for ac_tag
27619 do
27620   case $ac_tag in
27621   :[FHLC]) ac_mode=$ac_tag; continue;;
27622   esac
27623   case $ac_mode$ac_tag in
27624   :[FHL]*:*);;
27625   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27626   :[FH]-) ac_tag=-:-;;
27627   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27628   esac
27629   ac_save_IFS=$IFS
27630   IFS=:
27631   set x $ac_tag
27632   IFS=$ac_save_IFS
27633   shift
27634   ac_file=$1
27635   shift
27636
27637   case $ac_mode in
27638   :L) ac_source=$1;;
27639   :[FH])
27640     ac_file_inputs=
27641     for ac_f
27642     do
27643       case $ac_f in
27644       -) ac_f="$ac_tmp/stdin";;
27645       *) # Look for the file first in the build tree, then in the source tree
27646          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27647          # because $ac_f cannot contain `:'.
27648          test -f "$ac_f" ||
27649            case $ac_f in
27650            [\\/$]*) false;;
27651            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27652            esac ||
27653            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27654       esac
27655       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27656       as_fn_append ac_file_inputs " '$ac_f'"
27657     done
27658
27659     # Let's still pretend it is `configure' which instantiates (i.e., don't
27660     # use $as_me), people would be surprised to read:
27661     #    /* config.h.  Generated by config.status.  */
27662     configure_input='Generated from '`
27663           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27664         `' by configure.'
27665     if test x"$ac_file" != x-; then
27666       configure_input="$ac_file.  $configure_input"
27667       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27668 $as_echo "$as_me: creating $ac_file" >&6;}
27669     fi
27670     # Neutralize special characters interpreted by sed in replacement strings.
27671     case $configure_input in #(
27672     *\&* | *\|* | *\\* )
27673        ac_sed_conf_input=`$as_echo "$configure_input" |
27674        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27675     *) ac_sed_conf_input=$configure_input;;
27676     esac
27677
27678     case $ac_tag in
27679     *:-:* | *:-) cat >"$ac_tmp/stdin" \
27680       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27681     esac
27682     ;;
27683   esac
27684
27685   ac_dir=`$as_dirname -- "$ac_file" ||
27686 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27687          X"$ac_file" : 'X\(//\)[^/]' \| \
27688          X"$ac_file" : 'X\(//\)$' \| \
27689          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27690 $as_echo X"$ac_file" |
27691     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27692             s//\1/
27693             q
27694           }
27695           /^X\(\/\/\)[^/].*/{
27696             s//\1/
27697             q
27698           }
27699           /^X\(\/\/\)$/{
27700             s//\1/
27701             q
27702           }
27703           /^X\(\/\).*/{
27704             s//\1/
27705             q
27706           }
27707           s/.*/./; q'`
27708   as_dir="$ac_dir"; as_fn_mkdir_p
27709   ac_builddir=.
27710
27711 case "$ac_dir" in
27712 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27713 *)
27714   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27715   # A ".." for each directory in $ac_dir_suffix.
27716   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27717   case $ac_top_builddir_sub in
27718   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27719   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27720   esac ;;
27721 esac
27722 ac_abs_top_builddir=$ac_pwd
27723 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27724 # for backward compatibility:
27725 ac_top_builddir=$ac_top_build_prefix
27726
27727 case $srcdir in
27728   .)  # We are building in place.
27729     ac_srcdir=.
27730     ac_top_srcdir=$ac_top_builddir_sub
27731     ac_abs_top_srcdir=$ac_pwd ;;
27732   [\\/]* | ?:[\\/]* )  # Absolute name.
27733     ac_srcdir=$srcdir$ac_dir_suffix;
27734     ac_top_srcdir=$srcdir
27735     ac_abs_top_srcdir=$srcdir ;;
27736   *) # Relative name.
27737     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27738     ac_top_srcdir=$ac_top_build_prefix$srcdir
27739     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27740 esac
27741 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27742
27743
27744   case $ac_mode in
27745   :F)
27746   #
27747   # CONFIG_FILE
27748   #
27749
27750   case $INSTALL in
27751   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27752   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27753   esac
27754   ac_MKDIR_P=$MKDIR_P
27755   case $MKDIR_P in
27756   [\\/$]* | ?:[\\/]* ) ;;
27757   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27758   esac
27759 _ACEOF
27760
27761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27762 # If the template does not know about datarootdir, expand it.
27763 # FIXME: This hack should be removed a few years after 2.60.
27764 ac_datarootdir_hack=; ac_datarootdir_seen=
27765 ac_sed_dataroot='
27766 /datarootdir/ {
27767   p
27768   q
27769 }
27770 /@datadir@/p
27771 /@docdir@/p
27772 /@infodir@/p
27773 /@localedir@/p
27774 /@mandir@/p'
27775 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27776 *datarootdir*) ac_datarootdir_seen=yes;;
27777 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27778   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27779 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27780 _ACEOF
27781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27782   ac_datarootdir_hack='
27783   s&@datadir@&$datadir&g
27784   s&@docdir@&$docdir&g
27785   s&@infodir@&$infodir&g
27786   s&@localedir@&$localedir&g
27787   s&@mandir@&$mandir&g
27788   s&\\\${datarootdir}&$datarootdir&g' ;;
27789 esac
27790 _ACEOF
27791
27792 # Neutralize VPATH when `$srcdir' = `.'.
27793 # Shell code in configure.ac might set extrasub.
27794 # FIXME: do we really want to maintain this feature?
27795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27796 ac_sed_extra="$ac_vpsub
27797 $extrasub
27798 _ACEOF
27799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27800 :t
27801 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27802 s|@configure_input@|$ac_sed_conf_input|;t t
27803 s&@top_builddir@&$ac_top_builddir_sub&;t t
27804 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27805 s&@srcdir@&$ac_srcdir&;t t
27806 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27807 s&@top_srcdir@&$ac_top_srcdir&;t t
27808 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27809 s&@builddir@&$ac_builddir&;t t
27810 s&@abs_builddir@&$ac_abs_builddir&;t t
27811 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27812 s&@INSTALL@&$ac_INSTALL&;t t
27813 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27814 $ac_datarootdir_hack
27815 "
27816 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27817   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27818
27819 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27820   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27821   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
27822       "$ac_tmp/out"`; test -z "$ac_out"; } &&
27823   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27824 which seems to be undefined.  Please make sure it is defined" >&5
27825 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27826 which seems to be undefined.  Please make sure it is defined" >&2;}
27827
27828   rm -f "$ac_tmp/stdin"
27829   case $ac_file in
27830   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27831   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27832   esac \
27833   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27834  ;;
27835   :H)
27836   #
27837   # CONFIG_HEADER
27838   #
27839   if test x"$ac_file" != x-; then
27840     {
27841       $as_echo "/* $configure_input  */" \
27842       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27843     } >"$ac_tmp/config.h" \
27844       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27845     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27846       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27847 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27848     else
27849       rm -f "$ac_file"
27850       mv "$ac_tmp/config.h" "$ac_file" \
27851         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27852     fi
27853   else
27854     $as_echo "/* $configure_input  */" \
27855       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27856       || as_fn_error $? "could not create -" "$LINENO" 5
27857   fi
27858 # Compute "$ac_file"'s index in $config_headers.
27859 _am_arg="$ac_file"
27860 _am_stamp_count=1
27861 for _am_header in $config_headers :; do
27862   case $_am_header in
27863     $_am_arg | $_am_arg:* )
27864       break ;;
27865     * )
27866       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27867   esac
27868 done
27869 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27870 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27871          X"$_am_arg" : 'X\(//\)[^/]' \| \
27872          X"$_am_arg" : 'X\(//\)$' \| \
27873          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27874 $as_echo X"$_am_arg" |
27875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27876             s//\1/
27877             q
27878           }
27879           /^X\(\/\/\)[^/].*/{
27880             s//\1/
27881             q
27882           }
27883           /^X\(\/\/\)$/{
27884             s//\1/
27885             q
27886           }
27887           /^X\(\/\).*/{
27888             s//\1/
27889             q
27890           }
27891           s/.*/./; q'`/stamp-h$_am_stamp_count
27892  ;;
27893
27894   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27895 $as_echo "$as_me: executing $ac_file commands" >&6;}
27896  ;;
27897   esac
27898
27899
27900   case $ac_file$ac_mode in
27901     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27902   # Autoconf 2.62 quotes --file arguments for eval, but not when files
27903   # are listed without --file.  Let's play safe and only enable the eval
27904   # if we detect the quoting.
27905   case $CONFIG_FILES in
27906   *\'*) eval set x "$CONFIG_FILES" ;;
27907   *)   set x $CONFIG_FILES ;;
27908   esac
27909   shift
27910   for mf
27911   do
27912     # Strip MF so we end up with the name of the file.
27913     mf=`echo "$mf" | sed -e 's/:.*$//'`
27914     # Check whether this is an Automake generated Makefile or not.
27915     # We used to match only the files named `Makefile.in', but
27916     # some people rename them; so instead we look at the file content.
27917     # Grep'ing the first line is not enough: some people post-process
27918     # each Makefile.in and add a new line on top of each file to say so.
27919     # Grep'ing the whole file is not good either: AIX grep has a line
27920     # limit of 2048, but all sed's we know have understand at least 4000.
27921     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27922       dirpart=`$as_dirname -- "$mf" ||
27923 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27924          X"$mf" : 'X\(//\)[^/]' \| \
27925          X"$mf" : 'X\(//\)$' \| \
27926          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27927 $as_echo X"$mf" |
27928     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27929             s//\1/
27930             q
27931           }
27932           /^X\(\/\/\)[^/].*/{
27933             s//\1/
27934             q
27935           }
27936           /^X\(\/\/\)$/{
27937             s//\1/
27938             q
27939           }
27940           /^X\(\/\).*/{
27941             s//\1/
27942             q
27943           }
27944           s/.*/./; q'`
27945     else
27946       continue
27947     fi
27948     # Extract the definition of DEPDIR, am__include, and am__quote
27949     # from the Makefile without running `make'.
27950     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27951     test -z "$DEPDIR" && continue
27952     am__include=`sed -n 's/^am__include = //p' < "$mf"`
27953     test -z "am__include" && continue
27954     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27955     # When using ansi2knr, U may be empty or an underscore; expand it
27956     U=`sed -n 's/^U = //p' < "$mf"`
27957     # Find all dependency output files, they are included files with
27958     # $(DEPDIR) in their names.  We invoke sed twice because it is the
27959     # simplest approach to changing $(DEPDIR) to its actual value in the
27960     # expansion.
27961     for file in `sed -n "
27962       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27963          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27964       # Make sure the directory exists.
27965       test -f "$dirpart/$file" && continue
27966       fdir=`$as_dirname -- "$file" ||
27967 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27968          X"$file" : 'X\(//\)[^/]' \| \
27969          X"$file" : 'X\(//\)$' \| \
27970          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27971 $as_echo X"$file" |
27972     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27973             s//\1/
27974             q
27975           }
27976           /^X\(\/\/\)[^/].*/{
27977             s//\1/
27978             q
27979           }
27980           /^X\(\/\/\)$/{
27981             s//\1/
27982             q
27983           }
27984           /^X\(\/\).*/{
27985             s//\1/
27986             q
27987           }
27988           s/.*/./; q'`
27989       as_dir=$dirpart/$fdir; as_fn_mkdir_p
27990       # echo "creating $dirpart/$file"
27991       echo '# dummy' > "$dirpart/$file"
27992     done
27993   done
27994 }
27995  ;;
27996     "libtool":C)
27997
27998     # See if we are running on zsh, and set the options which allow our
27999     # commands through without removal of \ escapes.
28000     if test -n "${ZSH_VERSION+set}" ; then
28001       setopt NO_GLOB_SUBST
28002     fi
28003
28004     cfgfile="${ofile}T"
28005     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28006     $RM "$cfgfile"
28007
28008     cat <<_LT_EOF >> "$cfgfile"
28009 #! $SHELL
28010
28011 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28012 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28013 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28014 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28015 #
28016 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28017 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
28018 #                 Foundation, Inc.
28019 #   Written by Gordon Matzigkeit, 1996
28020 #
28021 #   This file is part of GNU Libtool.
28022 #
28023 # GNU Libtool is free software; you can redistribute it and/or
28024 # modify it under the terms of the GNU General Public License as
28025 # published by the Free Software Foundation; either version 2 of
28026 # the License, or (at your option) any later version.
28027 #
28028 # As a special exception to the GNU General Public License,
28029 # if you distribute this file as part of a program or library that
28030 # is built using GNU Libtool, you may include this file under the
28031 # same distribution terms that you use for the rest of that program.
28032 #
28033 # GNU Libtool is distributed in the hope that it will be useful,
28034 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28035 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28036 # GNU General Public License for more details.
28037 #
28038 # You should have received a copy of the GNU General Public License
28039 # along with GNU Libtool; see the file COPYING.  If not, a copy
28040 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28041 # obtained by writing to the Free Software Foundation, Inc.,
28042 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28043
28044
28045 # The names of the tagged configurations supported by this script.
28046 available_tags="CXX "
28047
28048 # ### BEGIN LIBTOOL CONFIG
28049
28050 # Which release of libtool.m4 was used?
28051 macro_version=$macro_version
28052 macro_revision=$macro_revision
28053
28054 # Whether or not to build shared libraries.
28055 build_libtool_libs=$enable_shared
28056
28057 # Whether or not to build static libraries.
28058 build_old_libs=$enable_static
28059
28060 # What type of objects to build.
28061 pic_mode=$pic_mode
28062
28063 # Whether or not to optimize for fast installation.
28064 fast_install=$enable_fast_install
28065
28066 # Shell to use when invoking shell scripts.
28067 SHELL=$lt_SHELL
28068
28069 # An echo program that protects backslashes.
28070 ECHO=$lt_ECHO
28071
28072 # The PATH separator for the build system.
28073 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28074
28075 # The host system.
28076 host_alias=$host_alias
28077 host=$host
28078 host_os=$host_os
28079
28080 # The build system.
28081 build_alias=$build_alias
28082 build=$build
28083 build_os=$build_os
28084
28085 # A sed program that does not truncate output.
28086 SED=$lt_SED
28087
28088 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28089 Xsed="\$SED -e 1s/^X//"
28090
28091 # A grep program that handles long lines.
28092 GREP=$lt_GREP
28093
28094 # An ERE matcher.
28095 EGREP=$lt_EGREP
28096
28097 # A literal string matcher.
28098 FGREP=$lt_FGREP
28099
28100 # A BSD- or MS-compatible name lister.
28101 NM=$lt_NM
28102
28103 # Whether we need soft or hard links.
28104 LN_S=$lt_LN_S
28105
28106 # What is the maximum length of a command?
28107 max_cmd_len=$max_cmd_len
28108
28109 # Object file suffix (normally "o").
28110 objext=$ac_objext
28111
28112 # Executable file suffix (normally "").
28113 exeext=$exeext
28114
28115 # whether the shell understands "unset".
28116 lt_unset=$lt_unset
28117
28118 # turn spaces into newlines.
28119 SP2NL=$lt_lt_SP2NL
28120
28121 # turn newlines into spaces.
28122 NL2SP=$lt_lt_NL2SP
28123
28124 # convert \$build file names to \$host format.
28125 to_host_file_cmd=$lt_cv_to_host_file_cmd
28126
28127 # convert \$build files to toolchain format.
28128 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28129
28130 # An object symbol dumper.
28131 OBJDUMP=$lt_OBJDUMP
28132
28133 # Method to check whether dependent libraries are shared objects.
28134 deplibs_check_method=$lt_deplibs_check_method
28135
28136 # Command to use when deplibs_check_method = "file_magic".
28137 file_magic_cmd=$lt_file_magic_cmd
28138
28139 # How to find potential files when deplibs_check_method = "file_magic".
28140 file_magic_glob=$lt_file_magic_glob
28141
28142 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28143 want_nocaseglob=$lt_want_nocaseglob
28144
28145 # DLL creation program.
28146 DLLTOOL=$lt_DLLTOOL
28147
28148 # Command to associate shared and link libraries.
28149 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28150
28151 # The archiver.
28152 AR=$lt_AR
28153
28154 # Flags to create an archive.
28155 AR_FLAGS=$lt_AR_FLAGS
28156
28157 # How to feed a file listing to the archiver.
28158 archiver_list_spec=$lt_archiver_list_spec
28159
28160 # A symbol stripping program.
28161 STRIP=$lt_STRIP
28162
28163 # Commands used to install an old-style archive.
28164 RANLIB=$lt_RANLIB
28165 old_postinstall_cmds=$lt_old_postinstall_cmds
28166 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28167
28168 # Whether to use a lock for old archive extraction.
28169 lock_old_archive_extraction=$lock_old_archive_extraction
28170
28171 # A C compiler.
28172 LTCC=$lt_CC
28173
28174 # LTCC compiler flags.
28175 LTCFLAGS=$lt_CFLAGS
28176
28177 # Take the output of nm and produce a listing of raw symbols and C names.
28178 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28179
28180 # Transform the output of nm in a proper C declaration.
28181 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28182
28183 # Transform the output of nm in a C name address pair.
28184 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28185
28186 # Transform the output of nm in a C name address pair when lib prefix is needed.
28187 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28188
28189 # Specify filename containing input files for \$NM.
28190 nm_file_list_spec=$lt_nm_file_list_spec
28191
28192 # The root where to search for dependent libraries,and in which our libraries should be installed.
28193 lt_sysroot=$lt_sysroot
28194
28195 # The name of the directory that contains temporary libtool files.
28196 objdir=$objdir
28197
28198 # Used to examine libraries when file_magic_cmd begins with "file".
28199 MAGIC_CMD=$MAGIC_CMD
28200
28201 # Must we lock files when doing compilation?
28202 need_locks=$lt_need_locks
28203
28204 # Manifest tool.
28205 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28206
28207 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28208 DSYMUTIL=$lt_DSYMUTIL
28209
28210 # Tool to change global to local symbols on Mac OS X.
28211 NMEDIT=$lt_NMEDIT
28212
28213 # Tool to manipulate fat objects and archives on Mac OS X.
28214 LIPO=$lt_LIPO
28215
28216 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28217 OTOOL=$lt_OTOOL
28218
28219 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28220 OTOOL64=$lt_OTOOL64
28221
28222 # Old archive suffix (normally "a").
28223 libext=$libext
28224
28225 # Shared library suffix (normally ".so").
28226 shrext_cmds=$lt_shrext_cmds
28227
28228 # The commands to extract the exported symbol list from a shared archive.
28229 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28230
28231 # Variables whose values should be saved in libtool wrapper scripts and
28232 # restored at link time.
28233 variables_saved_for_relink=$lt_variables_saved_for_relink
28234
28235 # Do we need the "lib" prefix for modules?
28236 need_lib_prefix=$need_lib_prefix
28237
28238 # Do we need a version for libraries?
28239 need_version=$need_version
28240
28241 # Library versioning type.
28242 version_type=$version_type
28243
28244 # Shared library runtime path variable.
28245 runpath_var=$runpath_var
28246
28247 # Shared library path variable.
28248 shlibpath_var=$shlibpath_var
28249
28250 # Is shlibpath searched before the hard-coded library search path?
28251 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28252
28253 # Format of library name prefix.
28254 libname_spec=$lt_libname_spec
28255
28256 # List of archive names.  First name is the real one, the rest are links.
28257 # The last name is the one that the linker finds with -lNAME
28258 library_names_spec=$lt_library_names_spec
28259
28260 # The coded name of the library, if different from the real name.
28261 soname_spec=$lt_soname_spec
28262
28263 # Permission mode override for installation of shared libraries.
28264 install_override_mode=$lt_install_override_mode
28265
28266 # Command to use after installation of a shared archive.
28267 postinstall_cmds=$lt_postinstall_cmds
28268
28269 # Command to use after uninstallation of a shared archive.
28270 postuninstall_cmds=$lt_postuninstall_cmds
28271
28272 # Commands used to finish a libtool library installation in a directory.
28273 finish_cmds=$lt_finish_cmds
28274
28275 # As "finish_cmds", except a single script fragment to be evaled but
28276 # not shown.
28277 finish_eval=$lt_finish_eval
28278
28279 # Whether we should hardcode library paths into libraries.
28280 hardcode_into_libs=$hardcode_into_libs
28281
28282 # Compile-time system search path for libraries.
28283 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28284
28285 # Run-time system search path for libraries.
28286 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28287
28288 # Whether dlopen is supported.
28289 dlopen_support=$enable_dlopen
28290
28291 # Whether dlopen of programs is supported.
28292 dlopen_self=$enable_dlopen_self
28293
28294 # Whether dlopen of statically linked programs is supported.
28295 dlopen_self_static=$enable_dlopen_self_static
28296
28297 # Commands to strip libraries.
28298 old_striplib=$lt_old_striplib
28299 striplib=$lt_striplib
28300
28301
28302 # The linker used to build libraries.
28303 LD=$lt_LD
28304
28305 # How to create reloadable object files.
28306 reload_flag=$lt_reload_flag
28307 reload_cmds=$lt_reload_cmds
28308
28309 # Commands used to build an old-style archive.
28310 old_archive_cmds=$lt_old_archive_cmds
28311
28312 # A language specific compiler.
28313 CC=$lt_compiler
28314
28315 # Is the compiler the GNU compiler?
28316 with_gcc=$GCC
28317
28318 # Compiler flag to turn off builtin functions.
28319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28320
28321 # Additional compiler flags for building library objects.
28322 pic_flag=$lt_lt_prog_compiler_pic
28323
28324 # How to pass a linker flag through the compiler.
28325 wl=$lt_lt_prog_compiler_wl
28326
28327 # Compiler flag to prevent dynamic linking.
28328 link_static_flag=$lt_lt_prog_compiler_static
28329
28330 # Does compiler simultaneously support -c and -o options?
28331 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28332
28333 # Whether or not to add -lc for building shared libraries.
28334 build_libtool_need_lc=$archive_cmds_need_lc
28335
28336 # Whether or not to disallow shared libs when runtime libs are static.
28337 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28338
28339 # Compiler flag to allow reflexive dlopens.
28340 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28341
28342 # Compiler flag to generate shared objects directly from archives.
28343 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28344
28345 # Whether the compiler copes with passing no objects directly.
28346 compiler_needs_object=$lt_compiler_needs_object
28347
28348 # Create an old-style archive from a shared archive.
28349 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28350
28351 # Create a temporary old-style archive to link instead of a shared archive.
28352 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28353
28354 # Commands used to build a shared archive.
28355 archive_cmds=$lt_archive_cmds
28356 archive_expsym_cmds=$lt_archive_expsym_cmds
28357
28358 # Commands used to build a loadable module if different from building
28359 # a shared archive.
28360 module_cmds=$lt_module_cmds
28361 module_expsym_cmds=$lt_module_expsym_cmds
28362
28363 # Whether we are building with GNU ld or not.
28364 with_gnu_ld=$lt_with_gnu_ld
28365
28366 # Flag that allows shared libraries with undefined symbols to be built.
28367 allow_undefined_flag=$lt_allow_undefined_flag
28368
28369 # Flag that enforces no undefined symbols.
28370 no_undefined_flag=$lt_no_undefined_flag
28371
28372 # Flag to hardcode \$libdir into a binary during linking.
28373 # This must work even if \$libdir does not exist
28374 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28375
28376 # Whether we need a single "-rpath" flag with a separated argument.
28377 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28378
28379 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28380 # DIR into the resulting binary.
28381 hardcode_direct=$hardcode_direct
28382
28383 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28384 # DIR into the resulting binary and the resulting library dependency is
28385 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28386 # library is relocated.
28387 hardcode_direct_absolute=$hardcode_direct_absolute
28388
28389 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28390 # into the resulting binary.
28391 hardcode_minus_L=$hardcode_minus_L
28392
28393 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28394 # into the resulting binary.
28395 hardcode_shlibpath_var=$hardcode_shlibpath_var
28396
28397 # Set to "yes" if building a shared library automatically hardcodes DIR
28398 # into the library and all subsequent libraries and executables linked
28399 # against it.
28400 hardcode_automatic=$hardcode_automatic
28401
28402 # Set to yes if linker adds runtime paths of dependent libraries
28403 # to runtime path list.
28404 inherit_rpath=$inherit_rpath
28405
28406 # Whether libtool must link a program against all its dependency libraries.
28407 link_all_deplibs=$link_all_deplibs
28408
28409 # Set to "yes" if exported symbols are required.
28410 always_export_symbols=$always_export_symbols
28411
28412 # The commands to list exported symbols.
28413 export_symbols_cmds=$lt_export_symbols_cmds
28414
28415 # Symbols that should not be listed in the preloaded symbols.
28416 exclude_expsyms=$lt_exclude_expsyms
28417
28418 # Symbols that must always be exported.
28419 include_expsyms=$lt_include_expsyms
28420
28421 # Commands necessary for linking programs (against libraries) with templates.
28422 prelink_cmds=$lt_prelink_cmds
28423
28424 # Commands necessary for finishing linking programs.
28425 postlink_cmds=$lt_postlink_cmds
28426
28427 # Specify filename containing input files.
28428 file_list_spec=$lt_file_list_spec
28429
28430 # How to hardcode a shared library path into an executable.
28431 hardcode_action=$hardcode_action
28432
28433 # The directories searched by this compiler when creating a shared library.
28434 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28435
28436 # Dependencies to place before and after the objects being linked to
28437 # create a shared library.
28438 predep_objects=$lt_predep_objects
28439 postdep_objects=$lt_postdep_objects
28440 predeps=$lt_predeps
28441 postdeps=$lt_postdeps
28442
28443 # The library search path used internally by the compiler when linking
28444 # a shared library.
28445 compiler_lib_search_path=$lt_compiler_lib_search_path
28446
28447 # ### END LIBTOOL CONFIG
28448
28449 _LT_EOF
28450
28451   case $host_os in
28452   aix3*)
28453     cat <<\_LT_EOF >> "$cfgfile"
28454 # AIX sometimes has problems with the GCC collect2 program.  For some
28455 # reason, if we set the COLLECT_NAMES environment variable, the problems
28456 # vanish in a puff of smoke.
28457 if test "X${COLLECT_NAMES+set}" != Xset; then
28458   COLLECT_NAMES=
28459   export COLLECT_NAMES
28460 fi
28461 _LT_EOF
28462     ;;
28463   esac
28464
28465
28466 ltmain="$ac_aux_dir/ltmain.sh"
28467
28468
28469   # We use sed instead of cat because bash on DJGPP gets confused if
28470   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28471   # text mode, it properly converts lines to CR/LF.  This bash problem
28472   # is reportedly fixed, but why not run on old versions too?
28473   sed '$q' "$ltmain" >> "$cfgfile" \
28474      || (rm -f "$cfgfile"; exit 1)
28475
28476   if test x"$xsi_shell" = xyes; then
28477   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
28478 func_dirname ()\
28479 {\
28480 \    case ${1} in\
28481 \      */*) func_dirname_result="${1%/*}${2}" ;;\
28482 \      *  ) func_dirname_result="${3}" ;;\
28483 \    esac\
28484 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
28485   && mv -f "$cfgfile.tmp" "$cfgfile" \
28486     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28487 test 0 -eq $? || _lt_function_replace_fail=:
28488
28489
28490   sed -e '/^func_basename ()$/,/^} # func_basename /c\
28491 func_basename ()\
28492 {\
28493 \    func_basename_result="${1##*/}"\
28494 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
28495   && mv -f "$cfgfile.tmp" "$cfgfile" \
28496     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28497 test 0 -eq $? || _lt_function_replace_fail=:
28498
28499
28500   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
28501 func_dirname_and_basename ()\
28502 {\
28503 \    case ${1} in\
28504 \      */*) func_dirname_result="${1%/*}${2}" ;;\
28505 \      *  ) func_dirname_result="${3}" ;;\
28506 \    esac\
28507 \    func_basename_result="${1##*/}"\
28508 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
28509   && mv -f "$cfgfile.tmp" "$cfgfile" \
28510     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28511 test 0 -eq $? || _lt_function_replace_fail=:
28512
28513
28514   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
28515 func_stripname ()\
28516 {\
28517 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
28518 \    # positional parameters, so assign one to ordinary parameter first.\
28519 \    func_stripname_result=${3}\
28520 \    func_stripname_result=${func_stripname_result#"${1}"}\
28521 \    func_stripname_result=${func_stripname_result%"${2}"}\
28522 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
28523   && mv -f "$cfgfile.tmp" "$cfgfile" \
28524     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28525 test 0 -eq $? || _lt_function_replace_fail=:
28526
28527
28528   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
28529 func_split_long_opt ()\
28530 {\
28531 \    func_split_long_opt_name=${1%%=*}\
28532 \    func_split_long_opt_arg=${1#*=}\
28533 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
28534   && mv -f "$cfgfile.tmp" "$cfgfile" \
28535     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28536 test 0 -eq $? || _lt_function_replace_fail=:
28537
28538
28539   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
28540 func_split_short_opt ()\
28541 {\
28542 \    func_split_short_opt_arg=${1#??}\
28543 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
28544 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
28545   && mv -f "$cfgfile.tmp" "$cfgfile" \
28546     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28547 test 0 -eq $? || _lt_function_replace_fail=:
28548
28549
28550   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
28551 func_lo2o ()\
28552 {\
28553 \    case ${1} in\
28554 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
28555 \      *)    func_lo2o_result=${1} ;;\
28556 \    esac\
28557 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
28558   && mv -f "$cfgfile.tmp" "$cfgfile" \
28559     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28560 test 0 -eq $? || _lt_function_replace_fail=:
28561
28562
28563   sed -e '/^func_xform ()$/,/^} # func_xform /c\
28564 func_xform ()\
28565 {\
28566     func_xform_result=${1%.*}.lo\
28567 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
28568   && mv -f "$cfgfile.tmp" "$cfgfile" \
28569     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28570 test 0 -eq $? || _lt_function_replace_fail=:
28571
28572
28573   sed -e '/^func_arith ()$/,/^} # func_arith /c\
28574 func_arith ()\
28575 {\
28576     func_arith_result=$(( $* ))\
28577 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
28578   && mv -f "$cfgfile.tmp" "$cfgfile" \
28579     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28580 test 0 -eq $? || _lt_function_replace_fail=:
28581
28582
28583   sed -e '/^func_len ()$/,/^} # func_len /c\
28584 func_len ()\
28585 {\
28586     func_len_result=${#1}\
28587 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
28588   && mv -f "$cfgfile.tmp" "$cfgfile" \
28589     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28590 test 0 -eq $? || _lt_function_replace_fail=:
28591
28592 fi
28593
28594 if test x"$lt_shell_append" = xyes; then
28595   sed -e '/^func_append ()$/,/^} # func_append /c\
28596 func_append ()\
28597 {\
28598     eval "${1}+=\\${2}"\
28599 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
28600   && mv -f "$cfgfile.tmp" "$cfgfile" \
28601     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28602 test 0 -eq $? || _lt_function_replace_fail=:
28603
28604
28605   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
28606 func_append_quoted ()\
28607 {\
28608 \    func_quote_for_eval "${2}"\
28609 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
28610 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
28611   && mv -f "$cfgfile.tmp" "$cfgfile" \
28612     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28613 test 0 -eq $? || _lt_function_replace_fail=:
28614
28615
28616   # Save a `func_append' function call where possible by direct use of '+='
28617   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
28618     && mv -f "$cfgfile.tmp" "$cfgfile" \
28619       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28620   test 0 -eq $? || _lt_function_replace_fail=:
28621 else
28622   # Save a `func_append' function call even when '+=' is not available
28623   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
28624     && mv -f "$cfgfile.tmp" "$cfgfile" \
28625       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28626   test 0 -eq $? || _lt_function_replace_fail=:
28627 fi
28628
28629 if test x"$_lt_function_replace_fail" = x":"; then
28630   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
28631 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
28632 fi
28633
28634
28635    mv -f "$cfgfile" "$ofile" ||
28636     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28637   chmod +x "$ofile"
28638
28639
28640     cat <<_LT_EOF >> "$ofile"
28641
28642 # ### BEGIN LIBTOOL TAG CONFIG: CXX
28643
28644 # The linker used to build libraries.
28645 LD=$lt_LD_CXX
28646
28647 # How to create reloadable object files.
28648 reload_flag=$lt_reload_flag_CXX
28649 reload_cmds=$lt_reload_cmds_CXX
28650
28651 # Commands used to build an old-style archive.
28652 old_archive_cmds=$lt_old_archive_cmds_CXX
28653
28654 # A language specific compiler.
28655 CC=$lt_compiler_CXX
28656
28657 # Is the compiler the GNU compiler?
28658 with_gcc=$GCC_CXX
28659
28660 # Compiler flag to turn off builtin functions.
28661 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28662
28663 # Additional compiler flags for building library objects.
28664 pic_flag=$lt_lt_prog_compiler_pic_CXX
28665
28666 # How to pass a linker flag through the compiler.
28667 wl=$lt_lt_prog_compiler_wl_CXX
28668
28669 # Compiler flag to prevent dynamic linking.
28670 link_static_flag=$lt_lt_prog_compiler_static_CXX
28671
28672 # Does compiler simultaneously support -c and -o options?
28673 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28674
28675 # Whether or not to add -lc for building shared libraries.
28676 build_libtool_need_lc=$archive_cmds_need_lc_CXX
28677
28678 # Whether or not to disallow shared libs when runtime libs are static.
28679 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28680
28681 # Compiler flag to allow reflexive dlopens.
28682 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28683
28684 # Compiler flag to generate shared objects directly from archives.
28685 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28686
28687 # Whether the compiler copes with passing no objects directly.
28688 compiler_needs_object=$lt_compiler_needs_object_CXX
28689
28690 # Create an old-style archive from a shared archive.
28691 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
28692
28693 # Create a temporary old-style archive to link instead of a shared archive.
28694 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
28695
28696 # Commands used to build a shared archive.
28697 archive_cmds=$lt_archive_cmds_CXX
28698 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28699
28700 # Commands used to build a loadable module if different from building
28701 # a shared archive.
28702 module_cmds=$lt_module_cmds_CXX
28703 module_expsym_cmds=$lt_module_expsym_cmds_CXX
28704
28705 # Whether we are building with GNU ld or not.
28706 with_gnu_ld=$lt_with_gnu_ld_CXX
28707
28708 # Flag that allows shared libraries with undefined symbols to be built.
28709 allow_undefined_flag=$lt_allow_undefined_flag_CXX
28710
28711 # Flag that enforces no undefined symbols.
28712 no_undefined_flag=$lt_no_undefined_flag_CXX
28713
28714 # Flag to hardcode \$libdir into a binary during linking.
28715 # This must work even if \$libdir does not exist
28716 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28717
28718 # Whether we need a single "-rpath" flag with a separated argument.
28719 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28720
28721 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28722 # DIR into the resulting binary.
28723 hardcode_direct=$hardcode_direct_CXX
28724
28725 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28726 # DIR into the resulting binary and the resulting library dependency is
28727 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28728 # library is relocated.
28729 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28730
28731 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28732 # into the resulting binary.
28733 hardcode_minus_L=$hardcode_minus_L_CXX
28734
28735 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28736 # into the resulting binary.
28737 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28738
28739 # Set to "yes" if building a shared library automatically hardcodes DIR
28740 # into the library and all subsequent libraries and executables linked
28741 # against it.
28742 hardcode_automatic=$hardcode_automatic_CXX
28743
28744 # Set to yes if linker adds runtime paths of dependent libraries
28745 # to runtime path list.
28746 inherit_rpath=$inherit_rpath_CXX
28747
28748 # Whether libtool must link a program against all its dependency libraries.
28749 link_all_deplibs=$link_all_deplibs_CXX
28750
28751 # Set to "yes" if exported symbols are required.
28752 always_export_symbols=$always_export_symbols_CXX
28753
28754 # The commands to list exported symbols.
28755 export_symbols_cmds=$lt_export_symbols_cmds_CXX
28756
28757 # Symbols that should not be listed in the preloaded symbols.
28758 exclude_expsyms=$lt_exclude_expsyms_CXX
28759
28760 # Symbols that must always be exported.
28761 include_expsyms=$lt_include_expsyms_CXX
28762
28763 # Commands necessary for linking programs (against libraries) with templates.
28764 prelink_cmds=$lt_prelink_cmds_CXX
28765
28766 # Commands necessary for finishing linking programs.
28767 postlink_cmds=$lt_postlink_cmds_CXX
28768
28769 # Specify filename containing input files.
28770 file_list_spec=$lt_file_list_spec_CXX
28771
28772 # How to hardcode a shared library path into an executable.
28773 hardcode_action=$hardcode_action_CXX
28774
28775 # The directories searched by this compiler when creating a shared library.
28776 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28777
28778 # Dependencies to place before and after the objects being linked to
28779 # create a shared library.
28780 predep_objects=$lt_predep_objects_CXX
28781 postdep_objects=$lt_postdep_objects_CXX
28782 predeps=$lt_predeps_CXX
28783 postdeps=$lt_postdeps_CXX
28784
28785 # The library search path used internally by the compiler when linking
28786 # a shared library.
28787 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28788
28789 # ### END LIBTOOL TAG CONFIG: CXX
28790 _LT_EOF
28791
28792  ;;
28793     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
28794         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
28795       esac ;;
28796     "po/stamp-it":C)
28797     if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
28798        as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
28799     fi
28800     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
28801     >"po/stamp-it.tmp"
28802     sed '/^#/d
28803          s/^[[].*] *//
28804          /^[    ]*$/d
28805         '"s|^|  $ac_top_srcdir/|" \
28806       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
28807
28808     sed '/^POTFILES =/,/[^\\]$/ {
28809                 /^POTFILES =/!d
28810                 r po/POTFILES
28811           }
28812          ' "po/Makefile.in" >"po/Makefile"
28813     rm -f "po/Makefile.tmp"
28814     mv "po/stamp-it.tmp" "po/stamp-it"
28815    ;;
28816
28817   esac
28818 done # for ac_tag
28819
28820
28821 as_fn_exit 0
28822 _ACEOF
28823 ac_clean_files=$ac_clean_files_save
28824
28825 test $ac_write_fail = 0 ||
28826   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28827
28828
28829 # configure is writing to config.log, and then calls config.status.
28830 # config.status does its own redirection, appending to config.log.
28831 # Unfortunately, on DOS this fails, as config.log is still kept open
28832 # by configure, so config.status won't be able to write to it; its
28833 # output is simply discarded.  So we exec the FD to /dev/null,
28834 # effectively closing config.log, so it can be properly (re)opened and
28835 # appended to by config.status.  When coming back to configure, we
28836 # need to make the FD available again.
28837 if test "$no_create" != yes; then
28838   ac_cs_success=:
28839   ac_config_status_args=
28840   test "$silent" = yes &&
28841     ac_config_status_args="$ac_config_status_args --quiet"
28842   exec 5>/dev/null
28843   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28844   exec 5>>config.log
28845   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28846   # would make configure fail if this is the last instruction.
28847   $ac_cs_success || as_fn_exit 1
28848 fi
28849 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28850   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28851 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28852 fi
28853
28854
28855 echo
28856 echo CONFIGURATION SUMMARY
28857 echo "Core SyncEvolution: $enable_core"
28858 for backend in $BACKENDS; do
28859     eval echo $backend: \${enable_${backend}}
28860 done
28861 echo "DBus service: $enable_dbus_service"
28862 echo "org._01.pim support in DBus service: $enable_dbus_pim"
28863 echo "Notifications: $enable_notify"
28864 echo "GIO GDBus: $with_gio_gdbus"
28865 echo "GNOME keyring: $enable_gnome_keyring"
28866 if test "$enable_gui" = "no"; then
28867     echo "UI (DBus client): no"
28868 else
28869     echo "UI (DBus client): $enable_gui (using $gtk_version)"
28870 fi
28871 echo "Bluetooth transport: $have_bluetooth"
28872 echo "GNOME Bluetooth panel plugin: $enable_gnome_bluetooth_panel"
28873 echo "SHA-256: $have_sha"
28874 echo "API documentation: $enable_doc"
28875 echo "D-Bus Timeout Hack: $enable_dbus_timeout_hack"
28876 echo