Imported Upstream version 1.3.99.4
[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.3.99.4.
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.3.99.4'
591 PACKAGE_STRING='syncevolution 1.3.99.4'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 #  include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 #  include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 COND_CROSS_COMPILING_FALSE
636 COND_CROSS_COMPILING_TRUE
637 SYNCEVOLUTION_LIBS
638 SYNCEVOLUTION_CFLAGS
639 syncevo_backenddir
640 BACKENDS_SEARCH_DIRECTORY
641 BACKENDS_DIRECTORY
642 LIBICAL_AVAILABLE_LIBS
643 LIBICAL_AVAILABLE_CFLAGS
644 ENABLE_EVOLUTION_COMPATIBILITY_FALSE
645 ENABLE_EVOLUTION_COMPATIBILITY_TRUE
646 SYNCEVOLUTION_CXXFLAGS
647 SYNCEVOLUTION_LDADD
648 ENABLE_MODULES_FALSE
649 ENABLE_MODULES_TRUE
650 NSS_LIBS
651 NSS_CFLAGS
652 GLIB216_LIBS
653 GLIB216_CFLAGS
654 QT_LIBS
655 QT_LDFLAGS
656 QT_LFLAGS
657 QT_CPPFLAGS
658 QT_INCPATH
659 QT_CXXFLAGS
660 QT_CFLAGS
661 QT_DEFINES
662 QT_VERSION_MAJOR
663 RCC
664 UIC
665 MOC
666 QT_PATH
667 ENABLE_ICAL_FALSE
668 ENABLE_ICAL_TRUE
669 LIBICAL_LIBS
670 LIBICAL_CFLAGS
671 GIO_LIBS
672 GIO_CFLAGS
673 GOBJECT_LIBS
674 GOBJECT_CFLAGS
675 GTHREAD_LIBS
676 GTHREAD_CFLAGS
677 GLIB_LIBS
678 GLIB_CFLAGS
679 QT_DBUS_LIBS
680 ENABLE_QT_DBUS_FALSE
681 ENABLE_QT_DBUS_TRUE
682 QDBUSXML_TO_CPP
683 XMLRPC_LIBS
684 XMLRPC_CFLAGS
685 XMLRPC_C_CONFIG
686 NEON_COMPATIBILITY_FALSE
687 NEON_COMPATIBILITY_TRUE
688 NEON_LIBS
689 NEON_CFLAGS
690 SQLITE_LIBS
691 SQLITE_CFLAGS
692 QT_CONTACTS_LIBS
693 BAP_LIBS
694 PBAP_CFLAGS
695 MCALB_LIBS
696 MCALB_CFLAGS
697 USE_KDE_KWALLET_FALSE
698 USE_KDE_KWALLET_TRUE
699 KDE_KWALLET_CFLAGS
700 KDE_KWALLET_LIBS
701 KDE4_CONFIG
702 KCALEXTENDED_LIBS
703 KCALEXTENDED_CFLAGS
704 KEYRING_2_20_LIBS
705 KEYRING_2_20_CFLAGS
706 KEYRING_LIBS
707 KEYRING_CFLAGS
708 FILE_LIBS
709 FILE_CFLAGS
710 EBOOKCONTACTS_LIBS
711 EBOOKCONTACTS_CFLAGS
712 EDS_VERSION_LIBS
713 EDS_VERSION_CFLAGS
714 ENABLE_ECAL_FALSE
715 ENABLE_ECAL_TRUE
716 EBOOK_VERSION_LIBS
717 EBOOK_VERSION_CFLAGS
718 EBOOK_LIBS
719 EBOOK_CFLAGS
720 ECAL_LIBS
721 ECAL_CFLAGS
722 EPACKAGE_LIBS
723 EPACKAGE_CFLAGS
724 ENABLE_AKONADI_FALSE
725 ENABLE_AKONADI_TRUE
726 KDEPIM_CFLAGS
727 KDEPIM_LIBS
728 QMAKE
729 ADDRESSBOOK_LIBS
730 ADDRESSBOOK_CFLAGS
731 EASCLIENT_CFLAGS
732 EASCLIENT_DEPENDENCIES
733 EASCLIENT_LIBS
734 LIBEASCLIENT_LA_DEPENDENCIES
735 BUILD_ACTIVESYNCD_FALSE
736 BUILD_ACTIVESYNCD_TRUE
737 BACKEND_DEFINES
738 SYNCSOURCES
739 COND_DOC_FALSE
740 COND_DOC_TRUE
741 ENABLE_GNOME_BLUETOOTH_PANEL_FALSE
742 ENABLE_GNOME_BLUETOOTH_PANEL_TRUE
743 GNOMEBLUETOOTH_DIR
744 GNOMEBLUETOOTH_LIBS
745 GNOMEBLUETOOTH_CFLAGS
746 BACKEND_CPPFLAGS
747 SYNTHESISSRC
748 SYNTHESIS_LIB
749 SYNTHESIS_ENGINE
750 SYNTHESIS_DEP
751 SYNTHESIS_SUBDIR_INCLUDES
752 SYNTHESIS_SUBDIR
753 SYNTHESIS
754 WITH_SYNTHESIS_SRC_LIBS
755 WITH_SYNTHESIS_SRC_CFLAGS
756 SYNTHESIS_LIBS
757 SYNTHESIS_CFLAGS
758 SYNTHESIS_SRC
759 COND_HTML_README_FALSE
760 COND_HTML_README_TRUE
761 RST2HTML
762 COND_MAN_PAGES_FALSE
763 COND_MAN_PAGES_TRUE
764 RST2MAN
765 PCRECPP_CFLAGS
766 PCRECPP_LIBS
767 GUI_DESKTOP_FILES
768 GUI_PROGRAMS
769 GETTEXT_PACKAGE
770 SYNCEVOLUTION_LOCALEDIR
771 GUI_LIBS
772 GUI_CFLAGS
773 GTK_2_18_LIBS
774 GTK_2_18_CFLAGS
775 UNIQUE_LIBS
776 UNIQUE_CFLAGS
777 MX_GTK_0_99_1_LIBS
778 MX_GTK_0_99_1_CFLAGS
779 GLIB_GENMARSHAL
780 DBUS_BINDING_TOOL
781 MKINSTALLDIRS
782 POSUB
783 POFILES
784 PO_IN_DATADIR_FALSE
785 PO_IN_DATADIR_TRUE
786 INTLLIBS
787 INSTOBJEXT
788 GMOFILES
789 CATOBJEXT
790 CATALOGS
791 MSGFMT_OPTS
792 DATADIRNAME
793 ALL_LINGUAS
794 INTLTOOL_PERL
795 GMSGFMT
796 MSGFMT
797 MSGMERGE
798 XGETTEXT
799 INTLTOOL_POLICY_RULE
800 INTLTOOL_SERVICE_RULE
801 INTLTOOL_THEME_RULE
802 INTLTOOL_SCHEMAS_RULE
803 INTLTOOL_CAVES_RULE
804 INTLTOOL_XML_NOMERGE_RULE
805 INTLTOOL_XML_RULE
806 INTLTOOL_KBD_RULE
807 INTLTOOL_XAM_RULE
808 INTLTOOL_UI_RULE
809 INTLTOOL_SOUNDLIST_RULE
810 INTLTOOL_SHEET_RULE
811 INTLTOOL_SERVER_RULE
812 INTLTOOL_PONG_RULE
813 INTLTOOL_OAF_RULE
814 INTLTOOL_PROP_RULE
815 INTLTOOL_KEYS_RULE
816 INTLTOOL_DIRECTORY_RULE
817 INTLTOOL_DESKTOP_RULE
818 intltool__v_merge_options_0
819 intltool__v_merge_options_
820 INTLTOOL_V_MERGE_OPTIONS
821 INTLTOOL__v_MERGE_0
822 INTLTOOL__v_MERGE_
823 INTLTOOL_V_MERGE
824 INTLTOOL_EXTRACT
825 INTLTOOL_MERGE
826 INTLTOOL_UPDATE
827 USE_NLS
828 DBUS_SERVICES_DIR
829 LIBEXECDIR
830 DBUS_GLIB_LIBS
831 DBUS_GLIB_CFLAGS
832 COND_DBUS_PIM_FALSE
833 COND_DBUS_PIM_TRUE
834 NOTIFY_COMPATIBILITY_FALSE
835 NOTIFY_COMPATIBILITY_TRUE
836 PHONENUMBERS_LIBS
837 PHONENUMBERS_CFLAGS
838 DBUS_PIM_PLUGIN_LDFLAGS
839 DBUS_PIM_PLUGIN_LIBS
840 DBUS_PIM_PLUGIN_CFLAGS
841 ICU_LIBS
842 ICU_CFLAGS
843 BOOST_LOCALE_LIB
844 DBUS_PIM_PLUGIN
845 FOLKS_LIBS
846 FOLKS_CFLAGS
847 MLITE_LIBS
848 MLITE_CFLAGS
849 LIBNOTIFY_LIBS
850 LIBNOTIFY_CFLAGS
851 DBUS_LIBS
852 DBUS_CFLAGS
853 COND_GIO_GDBUS_FALSE
854 COND_GIO_GDBUS_TRUE
855 COND_DBUS_FALSE
856 COND_DBUS_TRUE
857 COND_CORE_FALSE
858 COND_CORE_TRUE
859 COND_GUI_FALSE
860 COND_GUI_TRUE
861 COND_GTK2_FALSE
862 COND_GTK2_TRUE
863 XSLT
864 TRANSPORT_CFLAGS
865 TRANSPORT_LIBS
866 ENABLE_BLUETOOTH_FALSE
867 ENABLE_BLUETOOTH_TRUE
868 ENABLE_OBEX_FALSE
869 ENABLE_OBEX_TRUE
870 BLUEZ_LIBS
871 BLUEZ_CFLAGS
872 LIBOPENOBEX_LIBS
873 LIBOPENOBEX_CFLAGS
874 LIBSOUP_LIBS
875 LIBSOUP_CFLAGS
876 PKG_CONFIG_LIBDIR
877 PKG_CONFIG_PATH
878 PKG_CONFIG
879 CORE_LDADD_DEP
880 ENABLE_TESTING_FALSE
881 ENABLE_TESTING_TRUE
882 ENABLE_UNIT_TESTS_FALSE
883 ENABLE_UNIT_TESTS_TRUE
884 CPPUNIT_LDFLAGS
885 CPPUNIT_CXXFLAGS
886 CPPUNIT_CONFIG
887 MODIFY_SYNCCOMPARE
888 SYNCEVO_WFLAGS
889 BOOST_LDFLAGS
890 BOOST_CPPFLAGS
891 CXXCPP
892 am__fastdepCXX_FALSE
893 am__fastdepCXX_TRUE
894 CXXDEPMODE
895 ac_ct_CXX
896 CXXFLAGS
897 CXX
898 CPP
899 OTOOL64
900 OTOOL
901 LIPO
902 NMEDIT
903 DSYMUTIL
904 MANIFEST_TOOL
905 RANLIB
906 ac_ct_AR
907 AR
908 DLLTOOL
909 OBJDUMP
910 LN_S
911 NM
912 ac_ct_DUMPBIN
913 DUMPBIN
914 LD
915 FGREP
916 EGREP
917 GREP
918 SED
919 host_os
920 host_vendor
921 host_cpu
922 host
923 build_os
924 build_vendor
925 build_cpu
926 build
927 LIBTOOL
928 MAINT
929 MAINTAINER_MODE_FALSE
930 MAINTAINER_MODE_TRUE
931 am__fastdepCC_FALSE
932 am__fastdepCC_TRUE
933 CCDEPMODE
934 am__nodep
935 AMDEPBACKSLASH
936 AMDEP_FALSE
937 AMDEP_TRUE
938 am__quote
939 am__include
940 DEPDIR
941 OBJEXT
942 EXEEXT
943 ac_ct_CC
944 CPPFLAGS
945 LDFLAGS
946 CFLAGS
947 CC
948 AM_BACKSLASH
949 AM_DEFAULT_VERBOSITY
950 AM_DEFAULT_V
951 AM_V
952 am__untar
953 am__tar
954 AMTAR
955 am__leading_dot
956 SET_MAKE
957 AWK
958 mkdir_p
959 MKDIR_P
960 INSTALL_STRIP_PROGRAM
961 STRIP
962 install_sh
963 MAKEINFO
964 AUTOHEADER
965 AUTOMAKE
966 AUTOCONF
967 ACLOCAL
968 VERSION
969 PACKAGE
970 CYGPATH_W
971 am__isrc
972 INSTALL_DATA
973 INSTALL_SCRIPT
974 INSTALL_PROGRAM
975 STABLE_VERSION
976 target_alias
977 host_alias
978 build_alias
979 LIBS
980 ECHO_T
981 ECHO_N
982 ECHO_C
983 DEFS
984 mandir
985 localedir
986 libdir
987 psdir
988 pdfdir
989 dvidir
990 htmldir
991 infodir
992 docdir
993 oldincludedir
994 includedir
995 localstatedir
996 sharedstatedir
997 sysconfdir
998 datadir
999 datarootdir
1000 libexecdir
1001 sbindir
1002 bindir
1003 program_transform_name
1004 prefix
1005 exec_prefix
1006 PACKAGE_URL
1007 PACKAGE_BUGREPORT
1008 PACKAGE_STRING
1009 PACKAGE_VERSION
1010 PACKAGE_TARNAME
1011 PACKAGE_NAME
1012 PATH_SEPARATOR
1013 SHELL'
1014 ac_subst_files=''
1015 ac_user_opts='
1016 enable_option_checking
1017 enable_release_mode
1018 enable_silent_rules
1019 enable_dependency_tracking
1020 enable_maintainer_mode
1021 enable_shared
1022 enable_static
1023 with_pic
1024 enable_fast_install
1025 with_gnu_ld
1026 with_sysroot
1027 enable_libtool_lock
1028 with_boost
1029 with_boost_libdir
1030 enable_warnings
1031 with_synthesis_src
1032 with_syncml_engines
1033 with_synthesis_username
1034 with_synthesis_revision
1035 enable_unit_tests
1036 enable_integration_tests
1037 enable_static_cxx
1038 enable_evolution_compatibility
1039 enable_developer_mode
1040 enable_maemo
1041 with_ca_certificates
1042 enable_libcurl
1043 enable_libsoup
1044 enable_bluetooth
1045 enable_ssl_certificate_check
1046 enable_gtk
1047 enable_gui
1048 enable_core
1049 enable_dbus_service
1050 with_gio_gdbus
1051 enable_notify
1052 enable_notify_compatibility
1053 enable_mlite
1054 enable_dbus_service_pim
1055 with_boost_locale
1056 enable_nls
1057 with_rst2man
1058 with_rst2html
1059 enable_gnome_bluetooth_panel_plugin
1060 enable_doc
1061 enable_activesync
1062 with_activesyncd_src
1063 enable_addressbook
1064 enable_akonadi
1065 enable_ebook
1066 enable_ecal
1067 enable_file
1068 enable_gnome_keyring
1069 enable_kcalextended
1070 enable_kwallet
1071 enable_maemocal
1072 enable_pbap
1073 enable_qtcontacts
1074 enable_sqlite
1075 enable_dav
1076 enable_neon_compatibility
1077 enable_xmlrpc
1078 enable_qt_dbus
1079 with_qt
1080 enable_dbus_timeout_hack
1081 '
1082       ac_precious_vars='build_alias
1083 host_alias
1084 target_alias
1085 CC
1086 CFLAGS
1087 LDFLAGS
1088 LIBS
1089 CPPFLAGS
1090 CPP
1091 CXX
1092 CXXFLAGS
1093 CCC
1094 CXXCPP
1095 PKG_CONFIG
1096 PKG_CONFIG_PATH
1097 PKG_CONFIG_LIBDIR
1098 LIBSOUP_CFLAGS
1099 LIBSOUP_LIBS
1100 LIBOPENOBEX_CFLAGS
1101 LIBOPENOBEX_LIBS
1102 BLUEZ_CFLAGS
1103 BLUEZ_LIBS
1104 DBUS_CFLAGS
1105 DBUS_LIBS
1106 LIBNOTIFY_CFLAGS
1107 LIBNOTIFY_LIBS
1108 MLITE_CFLAGS
1109 MLITE_LIBS
1110 FOLKS_CFLAGS
1111 FOLKS_LIBS
1112 ICU_CFLAGS
1113 ICU_LIBS
1114 DBUS_GLIB_CFLAGS
1115 DBUS_GLIB_LIBS
1116 MX_GTK_0_99_1_CFLAGS
1117 MX_GTK_0_99_1_LIBS
1118 UNIQUE_CFLAGS
1119 UNIQUE_LIBS
1120 GTK_2_18_CFLAGS
1121 GTK_2_18_LIBS
1122 GUI_CFLAGS
1123 GUI_LIBS
1124 PCRECPP_CFLAGS
1125 PCRECPP_LIBS
1126 SYNTHESIS_CFLAGS
1127 SYNTHESIS_LIBS
1128 WITH_SYNTHESIS_SRC_CFLAGS
1129 WITH_SYNTHESIS_SRC_LIBS
1130 GNOMEBLUETOOTH_CFLAGS
1131 GNOMEBLUETOOTH_LIBS
1132 EASCLIENT_CFLAGS
1133 EASCLIENT_LIBS
1134 EPACKAGE_CFLAGS
1135 EPACKAGE_LIBS
1136 ECAL_CFLAGS
1137 ECAL_LIBS
1138 EBOOK_CFLAGS
1139 EBOOK_LIBS
1140 EBOOK_VERSION_CFLAGS
1141 EBOOK_VERSION_LIBS
1142 EDS_VERSION_CFLAGS
1143 EDS_VERSION_LIBS
1144 EBOOKCONTACTS_CFLAGS
1145 EBOOKCONTACTS_LIBS
1146 KEYRING_CFLAGS
1147 KEYRING_LIBS
1148 KEYRING_2_20_CFLAGS
1149 KEYRING_2_20_LIBS
1150 KCALEXTENDED_CFLAGS
1151 KCALEXTENDED_LIBS
1152 MCALB_CFLAGS
1153 MCALB_LIBS
1154 SQLITE_CFLAGS
1155 SQLITE_LIBS
1156 NEON_CFLAGS
1157 NEON_LIBS
1158 GLIB_CFLAGS
1159 GLIB_LIBS
1160 GTHREAD_CFLAGS
1161 GTHREAD_LIBS
1162 GOBJECT_CFLAGS
1163 GOBJECT_LIBS
1164 GIO_CFLAGS
1165 GIO_LIBS
1166 LIBICAL_CFLAGS
1167 LIBICAL_LIBS
1168 QT_PATH
1169 QMAKE
1170 MOC
1171 UIC
1172 RCC
1173 GLIB216_CFLAGS
1174 GLIB216_LIBS
1175 NSS_CFLAGS
1176 NSS_LIBS
1177 LIBICAL_AVAILABLE_CFLAGS
1178 LIBICAL_AVAILABLE_LIBS'
1179
1180
1181 # Initialize some variables set by options.
1182 ac_init_help=
1183 ac_init_version=false
1184 ac_unrecognized_opts=
1185 ac_unrecognized_sep=
1186 # The variables have the same names as the options, with
1187 # dashes changed to underlines.
1188 cache_file=/dev/null
1189 exec_prefix=NONE
1190 no_create=
1191 no_recursion=
1192 prefix=NONE
1193 program_prefix=NONE
1194 program_suffix=NONE
1195 program_transform_name=s,x,x,
1196 silent=
1197 site=
1198 srcdir=
1199 verbose=
1200 x_includes=NONE
1201 x_libraries=NONE
1202
1203 # Installation directory options.
1204 # These are left unexpanded so users can "make install exec_prefix=/foo"
1205 # and all the variables that are supposed to be based on exec_prefix
1206 # by default will actually change.
1207 # Use braces instead of parens because sh, perl, etc. also accept them.
1208 # (The list follows the same order as the GNU Coding Standards.)
1209 bindir='${exec_prefix}/bin'
1210 sbindir='${exec_prefix}/sbin'
1211 libexecdir='${exec_prefix}/libexec'
1212 datarootdir='${prefix}/share'
1213 datadir='${datarootdir}'
1214 sysconfdir='${prefix}/etc'
1215 sharedstatedir='${prefix}/com'
1216 localstatedir='${prefix}/var'
1217 includedir='${prefix}/include'
1218 oldincludedir='/usr/include'
1219 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1220 infodir='${datarootdir}/info'
1221 htmldir='${docdir}'
1222 dvidir='${docdir}'
1223 pdfdir='${docdir}'
1224 psdir='${docdir}'
1225 libdir='${exec_prefix}/lib'
1226 localedir='${datarootdir}/locale'
1227 mandir='${datarootdir}/man'
1228
1229 ac_prev=
1230 ac_dashdash=
1231 for ac_option
1232 do
1233   # If the previous option needs an argument, assign it.
1234   if test -n "$ac_prev"; then
1235     eval $ac_prev=\$ac_option
1236     ac_prev=
1237     continue
1238   fi
1239
1240   case $ac_option in
1241   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1242   *=)   ac_optarg= ;;
1243   *)    ac_optarg=yes ;;
1244   esac
1245
1246   # Accept the important Cygnus configure options, so we can diagnose typos.
1247
1248   case $ac_dashdash$ac_option in
1249   --)
1250     ac_dashdash=yes ;;
1251
1252   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1253     ac_prev=bindir ;;
1254   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1255     bindir=$ac_optarg ;;
1256
1257   -build | --build | --buil | --bui | --bu)
1258     ac_prev=build_alias ;;
1259   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1260     build_alias=$ac_optarg ;;
1261
1262   -cache-file | --cache-file | --cache-fil | --cache-fi \
1263   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1264     ac_prev=cache_file ;;
1265   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1266   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1267     cache_file=$ac_optarg ;;
1268
1269   --config-cache | -C)
1270     cache_file=config.cache ;;
1271
1272   -datadir | --datadir | --datadi | --datad)
1273     ac_prev=datadir ;;
1274   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1275     datadir=$ac_optarg ;;
1276
1277   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1278   | --dataroo | --dataro | --datar)
1279     ac_prev=datarootdir ;;
1280   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1281   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1282     datarootdir=$ac_optarg ;;
1283
1284   -disable-* | --disable-*)
1285     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1286     # Reject names that are not valid shell variable names.
1287     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288       as_fn_error $? "invalid feature name: $ac_useropt"
1289     ac_useropt_orig=$ac_useropt
1290     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291     case $ac_user_opts in
1292       *"
1293 "enable_$ac_useropt"
1294 "*) ;;
1295       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1296          ac_unrecognized_sep=', ';;
1297     esac
1298     eval enable_$ac_useropt=no ;;
1299
1300   -docdir | --docdir | --docdi | --doc | --do)
1301     ac_prev=docdir ;;
1302   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1303     docdir=$ac_optarg ;;
1304
1305   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1306     ac_prev=dvidir ;;
1307   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1308     dvidir=$ac_optarg ;;
1309
1310   -enable-* | --enable-*)
1311     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1312     # Reject names that are not valid shell variable names.
1313     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314       as_fn_error $? "invalid feature name: $ac_useropt"
1315     ac_useropt_orig=$ac_useropt
1316     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317     case $ac_user_opts in
1318       *"
1319 "enable_$ac_useropt"
1320 "*) ;;
1321       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1322          ac_unrecognized_sep=', ';;
1323     esac
1324     eval enable_$ac_useropt=\$ac_optarg ;;
1325
1326   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1327   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1328   | --exec | --exe | --ex)
1329     ac_prev=exec_prefix ;;
1330   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1331   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1332   | --exec=* | --exe=* | --ex=*)
1333     exec_prefix=$ac_optarg ;;
1334
1335   -gas | --gas | --ga | --g)
1336     # Obsolete; use --with-gas.
1337     with_gas=yes ;;
1338
1339   -help | --help | --hel | --he | -h)
1340     ac_init_help=long ;;
1341   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1342     ac_init_help=recursive ;;
1343   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1344     ac_init_help=short ;;
1345
1346   -host | --host | --hos | --ho)
1347     ac_prev=host_alias ;;
1348   -host=* | --host=* | --hos=* | --ho=*)
1349     host_alias=$ac_optarg ;;
1350
1351   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1352     ac_prev=htmldir ;;
1353   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1354   | --ht=*)
1355     htmldir=$ac_optarg ;;
1356
1357   -includedir | --includedir | --includedi | --included | --include \
1358   | --includ | --inclu | --incl | --inc)
1359     ac_prev=includedir ;;
1360   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1361   | --includ=* | --inclu=* | --incl=* | --inc=*)
1362     includedir=$ac_optarg ;;
1363
1364   -infodir | --infodir | --infodi | --infod | --info | --inf)
1365     ac_prev=infodir ;;
1366   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1367     infodir=$ac_optarg ;;
1368
1369   -libdir | --libdir | --libdi | --libd)
1370     ac_prev=libdir ;;
1371   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1372     libdir=$ac_optarg ;;
1373
1374   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1375   | --libexe | --libex | --libe)
1376     ac_prev=libexecdir ;;
1377   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1378   | --libexe=* | --libex=* | --libe=*)
1379     libexecdir=$ac_optarg ;;
1380
1381   -localedir | --localedir | --localedi | --localed | --locale)
1382     ac_prev=localedir ;;
1383   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1384     localedir=$ac_optarg ;;
1385
1386   -localstatedir | --localstatedir | --localstatedi | --localstated \
1387   | --localstate | --localstat | --localsta | --localst | --locals)
1388     ac_prev=localstatedir ;;
1389   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1390   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1391     localstatedir=$ac_optarg ;;
1392
1393   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1394     ac_prev=mandir ;;
1395   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1396     mandir=$ac_optarg ;;
1397
1398   -nfp | --nfp | --nf)
1399     # Obsolete; use --without-fp.
1400     with_fp=no ;;
1401
1402   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1403   | --no-cr | --no-c | -n)
1404     no_create=yes ;;
1405
1406   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1407   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1408     no_recursion=yes ;;
1409
1410   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1411   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1412   | --oldin | --oldi | --old | --ol | --o)
1413     ac_prev=oldincludedir ;;
1414   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1415   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1416   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1417     oldincludedir=$ac_optarg ;;
1418
1419   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1420     ac_prev=prefix ;;
1421   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1422     prefix=$ac_optarg ;;
1423
1424   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1425   | --program-pre | --program-pr | --program-p)
1426     ac_prev=program_prefix ;;
1427   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1428   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1429     program_prefix=$ac_optarg ;;
1430
1431   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1432   | --program-suf | --program-su | --program-s)
1433     ac_prev=program_suffix ;;
1434   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1435   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1436     program_suffix=$ac_optarg ;;
1437
1438   -program-transform-name | --program-transform-name \
1439   | --program-transform-nam | --program-transform-na \
1440   | --program-transform-n | --program-transform- \
1441   | --program-transform | --program-transfor \
1442   | --program-transfo | --program-transf \
1443   | --program-trans | --program-tran \
1444   | --progr-tra | --program-tr | --program-t)
1445     ac_prev=program_transform_name ;;
1446   -program-transform-name=* | --program-transform-name=* \
1447   | --program-transform-nam=* | --program-transform-na=* \
1448   | --program-transform-n=* | --program-transform-=* \
1449   | --program-transform=* | --program-transfor=* \
1450   | --program-transfo=* | --program-transf=* \
1451   | --program-trans=* | --program-tran=* \
1452   | --progr-tra=* | --program-tr=* | --program-t=*)
1453     program_transform_name=$ac_optarg ;;
1454
1455   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1456     ac_prev=pdfdir ;;
1457   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1458     pdfdir=$ac_optarg ;;
1459
1460   -psdir | --psdir | --psdi | --psd | --ps)
1461     ac_prev=psdir ;;
1462   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1463     psdir=$ac_optarg ;;
1464
1465   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1466   | -silent | --silent | --silen | --sile | --sil)
1467     silent=yes ;;
1468
1469   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1470     ac_prev=sbindir ;;
1471   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1472   | --sbi=* | --sb=*)
1473     sbindir=$ac_optarg ;;
1474
1475   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1476   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1477   | --sharedst | --shareds | --shared | --share | --shar \
1478   | --sha | --sh)
1479     ac_prev=sharedstatedir ;;
1480   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1481   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1482   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1483   | --sha=* | --sh=*)
1484     sharedstatedir=$ac_optarg ;;
1485
1486   -site | --site | --sit)
1487     ac_prev=site ;;
1488   -site=* | --site=* | --sit=*)
1489     site=$ac_optarg ;;
1490
1491   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1492     ac_prev=srcdir ;;
1493   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1494     srcdir=$ac_optarg ;;
1495
1496   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1497   | --syscon | --sysco | --sysc | --sys | --sy)
1498     ac_prev=sysconfdir ;;
1499   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1500   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1501     sysconfdir=$ac_optarg ;;
1502
1503   -target | --target | --targe | --targ | --tar | --ta | --t)
1504     ac_prev=target_alias ;;
1505   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1506     target_alias=$ac_optarg ;;
1507
1508   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1509     verbose=yes ;;
1510
1511   -version | --version | --versio | --versi | --vers | -V)
1512     ac_init_version=: ;;
1513
1514   -with-* | --with-*)
1515     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1516     # Reject names that are not valid shell variable names.
1517     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1518       as_fn_error $? "invalid package name: $ac_useropt"
1519     ac_useropt_orig=$ac_useropt
1520     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1521     case $ac_user_opts in
1522       *"
1523 "with_$ac_useropt"
1524 "*) ;;
1525       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1526          ac_unrecognized_sep=', ';;
1527     esac
1528     eval with_$ac_useropt=\$ac_optarg ;;
1529
1530   -without-* | --without-*)
1531     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1532     # Reject names that are not valid shell variable names.
1533     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1534       as_fn_error $? "invalid package name: $ac_useropt"
1535     ac_useropt_orig=$ac_useropt
1536     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1537     case $ac_user_opts in
1538       *"
1539 "with_$ac_useropt"
1540 "*) ;;
1541       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1542          ac_unrecognized_sep=', ';;
1543     esac
1544     eval with_$ac_useropt=no ;;
1545
1546   --x)
1547     # Obsolete; use --with-x.
1548     with_x=yes ;;
1549
1550   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1551   | --x-incl | --x-inc | --x-in | --x-i)
1552     ac_prev=x_includes ;;
1553   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1554   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1555     x_includes=$ac_optarg ;;
1556
1557   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1558   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1559     ac_prev=x_libraries ;;
1560   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1561   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1562     x_libraries=$ac_optarg ;;
1563
1564   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1565 Try \`$0 --help' for more information"
1566     ;;
1567
1568   *=*)
1569     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1570     # Reject names that are not valid shell variable names.
1571     case $ac_envvar in #(
1572       '' | [0-9]* | *[!_$as_cr_alnum]* )
1573       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1574     esac
1575     eval $ac_envvar=\$ac_optarg
1576     export $ac_envvar ;;
1577
1578   *)
1579     # FIXME: should be removed in autoconf 3.0.
1580     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1581     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1582       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1583     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1584     ;;
1585
1586   esac
1587 done
1588
1589 if test -n "$ac_prev"; then
1590   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1591   as_fn_error $? "missing argument to $ac_option"
1592 fi
1593
1594 if test -n "$ac_unrecognized_opts"; then
1595   case $enable_option_checking in
1596     no) ;;
1597     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1598     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1599   esac
1600 fi
1601
1602 # Check all directory arguments for consistency.
1603 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1604                 datadir sysconfdir sharedstatedir localstatedir includedir \
1605                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1606                 libdir localedir mandir
1607 do
1608   eval ac_val=\$$ac_var
1609   # Remove trailing slashes.
1610   case $ac_val in
1611     */ )
1612       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1613       eval $ac_var=\$ac_val;;
1614   esac
1615   # Be sure to have absolute directory names.
1616   case $ac_val in
1617     [\\/$]* | ?:[\\/]* )  continue;;
1618     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1619   esac
1620   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1621 done
1622
1623 # There might be people who depend on the old broken behavior: `$host'
1624 # used to hold the argument of --host etc.
1625 # FIXME: To remove some day.
1626 build=$build_alias
1627 host=$host_alias
1628 target=$target_alias
1629
1630 # FIXME: To remove some day.
1631 if test "x$host_alias" != x; then
1632   if test "x$build_alias" = x; then
1633     cross_compiling=maybe
1634   elif test "x$build_alias" != "x$host_alias"; then
1635     cross_compiling=yes
1636   fi
1637 fi
1638
1639 ac_tool_prefix=
1640 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1641
1642 test "$silent" = yes && exec 6>/dev/null
1643
1644
1645 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1646 ac_ls_di=`ls -di .` &&
1647 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1648   as_fn_error $? "working directory cannot be determined"
1649 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1650   as_fn_error $? "pwd does not report name of working directory"
1651
1652
1653 # Find the source files, if location was not specified.
1654 if test -z "$srcdir"; then
1655   ac_srcdir_defaulted=yes
1656   # Try the directory containing this script, then the parent directory.
1657   ac_confdir=`$as_dirname -- "$as_myself" ||
1658 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1659          X"$as_myself" : 'X\(//\)[^/]' \| \
1660          X"$as_myself" : 'X\(//\)$' \| \
1661          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1662 $as_echo X"$as_myself" |
1663     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1664             s//\1/
1665             q
1666           }
1667           /^X\(\/\/\)[^/].*/{
1668             s//\1/
1669             q
1670           }
1671           /^X\(\/\/\)$/{
1672             s//\1/
1673             q
1674           }
1675           /^X\(\/\).*/{
1676             s//\1/
1677             q
1678           }
1679           s/.*/./; q'`
1680   srcdir=$ac_confdir
1681   if test ! -r "$srcdir/$ac_unique_file"; then
1682     srcdir=..
1683   fi
1684 else
1685   ac_srcdir_defaulted=no
1686 fi
1687 if test ! -r "$srcdir/$ac_unique_file"; then
1688   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1689   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1690 fi
1691 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1692 ac_abs_confdir=`(
1693         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1694         pwd)`
1695 # When building in place, set srcdir=.
1696 if test "$ac_abs_confdir" = "$ac_pwd"; then
1697   srcdir=.
1698 fi
1699 # Remove unnecessary trailing slashes from srcdir.
1700 # Double slashes in file names in object file debugging info
1701 # mess up M-x gdb in Emacs.
1702 case $srcdir in
1703 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1704 esac
1705 for ac_var in $ac_precious_vars; do
1706   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1707   eval ac_env_${ac_var}_value=\$${ac_var}
1708   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1709   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1710 done
1711
1712 #
1713 # Report the --help message.
1714 #
1715 if test "$ac_init_help" = "long"; then
1716   # Omit some internal or obsolete options to make the list less imposing.
1717   # This message is too long to be a string in the A/UX 3.1 sh.
1718   cat <<_ACEOF
1719 \`configure' configures syncevolution 1.3.99.4 to adapt to many kinds of systems.
1720
1721 Usage: $0 [OPTION]... [VAR=VALUE]...
1722
1723 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1724 VAR=VALUE.  See below for descriptions of some of the useful variables.
1725
1726 Defaults for the options are specified in brackets.
1727
1728 Configuration:
1729   -h, --help              display this help and exit
1730       --help=short        display options specific to this package
1731       --help=recursive    display the short help of all the included packages
1732   -V, --version           display version information and exit
1733   -q, --quiet, --silent   do not print \`checking ...' messages
1734       --cache-file=FILE   cache test results in FILE [disabled]
1735   -C, --config-cache      alias for \`--cache-file=config.cache'
1736   -n, --no-create         do not create output files
1737       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1738
1739 Installation directories:
1740   --prefix=PREFIX         install architecture-independent files in PREFIX
1741                           [$ac_default_prefix]
1742   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1743                           [PREFIX]
1744
1745 By default, \`make install' will install all the files in
1746 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1747 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1748 for instance \`--prefix=\$HOME'.
1749
1750 For better control, use the options below.
1751
1752 Fine tuning of the installation directories:
1753   --bindir=DIR            user executables [EPREFIX/bin]
1754   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1755   --libexecdir=DIR        program executables [EPREFIX/libexec]
1756   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1757   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1758   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1759   --libdir=DIR            object code libraries [EPREFIX/lib]
1760   --includedir=DIR        C header files [PREFIX/include]
1761   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1762   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1763   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1764   --infodir=DIR           info documentation [DATAROOTDIR/info]
1765   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1766   --mandir=DIR            man documentation [DATAROOTDIR/man]
1767   --docdir=DIR            documentation root [DATAROOTDIR/doc/syncevolution]
1768   --htmldir=DIR           html documentation [DOCDIR]
1769   --dvidir=DIR            dvi documentation [DOCDIR]
1770   --pdfdir=DIR            pdf documentation [DOCDIR]
1771   --psdir=DIR             ps documentation [DOCDIR]
1772 _ACEOF
1773
1774   cat <<\_ACEOF
1775
1776 Program names:
1777   --program-prefix=PREFIX            prepend PREFIX to installed program names
1778   --program-suffix=SUFFIX            append SUFFIX to installed program names
1779   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1780
1781 System types:
1782   --build=BUILD     configure for building on BUILD [guessed]
1783   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1784 _ACEOF
1785 fi
1786
1787 if test -n "$ac_init_help"; then
1788   case $ac_init_help in
1789      short | recursive ) echo "Configuration of syncevolution 1.3.99.4:";;
1790    esac
1791   cat <<\_ACEOF
1792
1793 Optional Features:
1794   --disable-option-checking  ignore unrecognized --enable/--with options
1795   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1796   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1797   --enable-release-mode   Controls whether resulting binary is for end-users
1798                           or testers/developers. For example, stable releases
1799                           automatically migrate on-disk files without asking,
1800                           whereas other releases ask before making downgrades
1801                           impossible (or difficult). Default in this source
1802                           code is "stable release: no"
1803   --enable-silent-rules          less verbose build output (undo: `make V=1')
1804   --disable-silent-rules         verbose build output (undo: `make V=0')
1805   --disable-dependency-tracking  speeds up one-time build
1806   --enable-dependency-tracking   do not reject slow dependency extractors
1807   --disable-maintainer-mode  disable make rules and dependencies not useful
1808                           (and sometimes confusing) to the casual installer
1809   --enable-shared[=PKGS]  build shared libraries [default=yes]
1810   --enable-static[=PKGS]  build static libraries [default=yes]
1811   --enable-fast-install[=PKGS]
1812                           optimize for fast installation [default=yes]
1813   --disable-libtool-lock  avoid locking (might break parallel builds)
1814   --enable-warnings=[min|max|fatal|no]
1815                           control compiler pickyness [min]
1816   --enable-shared         build backends as dynamically loadable modules
1817   --enable-static         build backends also as static libraries
1818   --enable-unit-tests     enables tests embedded in the source code of the
1819                           library (changes content of executable)
1820   --enable-integration-tests
1821                           enables tests outside of the library (can be used
1822                           together with normal builds of the library)
1823   --enable-static-cxx     build executables which contain libstdc++ instead of
1824                           requiring suitable libstdc++.so to run
1825   --enable-evolution-compatibility
1826                           build executables which only call Evolution via
1827                           dlopen/dlsym: this avoids all hard dependencies on
1828                           EDS shared objects, but might lead to crashes when
1829                           their ABI changes
1830   --enable-developer-mode The dynamic loadble backend libraries is loaded from
1831                           current build directory instead of the standard
1832                           library path
1833   --enable-maemo          enables some hacks which work around problems with
1834                           the Maemo 2.0 until at least 3.0 EDS-Dbus
1835   --enable-libcurl        enable libcurl as transport layer
1836   --enable-libsoup        enable libsoup as transport layer
1837   --enable-bluetooth      enable bluetooth transport support
1838   --disable-ssl-certificate-check
1839                           Disable SSL certificate checking in all server
1840                           *templates*. Users can still choose to enable or
1841                           disable it in their configuration. This is necessary
1842                           on platforms where the transport library has
1843                           problems verifying the server's certificate (libsoup
1844                           + Google,
1845                           http://bugzilla.moblin.org/show_bug.cgi?id=4551)
1846   --enable-gtk=major version
1847                           Selects the gtk+ version ("2" or "3") to use for the
1848                           UI. If this option is used, --enable-gui should be
1849                           used as well. "3" is the default option if
1850                           available, otherwise "2".
1851   --enable-gui=gui type   enables building the GTK+ UI that uses the
1852                           SyncEvolution DBus API. Options: gtk, moblin, all
1853                           (builds sync-ui-gtk and sync-ui-moblin) "gtk" is the
1854                           default for --enable-gui without type. No GUI is
1855                           built when --enable-gui is not used.
1856   --enable-core           enables building the core SyncEvolution (library,
1857                           backends)
1858   --enable-dbus-service   enables building the dbus service executable and all
1859                           related features (the DBus wrapper library, command
1860                           line usage of server, etc).
1861   --enable-notify         send notifications for automatic sync events, using
1862                           libnotify
1863   --enable-notify-compatibility
1864                           increase compatibility with binary libnotify
1865                           installations by loading libnotify.so.1..4
1866                           dynamically instead of linking against it
1867   --enable-mlite          send notifications for automatic sync events, using
1868                           mlite (off by default)
1869   --enable-dbus-service-pim=<locale>
1870                           Enable implementation of org._01.pim D-Bus APIs
1871                           (depends on libfolks), using
1872                           src/dbus/server/pim/locale-factory-<locale>.cpp to
1873                           implement sorting and searching. The default is
1874                           <locale>=boost, which uses boost::locale.
1875   --disable-nls           do not use Native Language Support
1876   --enable-gnome-bluetooth-panel-plugin
1877                           GNOME Bluetooth panel plugin adding a "sync" button
1878                           for paired devices (off by default)
1879   --enable-doc            generate backend and DBus API documentation
1880   --enable-activesync     enable access to servers via ActiveSync (default
1881                           off)
1882   --enable-addressbook    enable access to Mac OS X address book (default off)
1883   --disable-akonadi       disable access to Akonadi (default is to use it if
1884                           akonadi.pc is found)
1885   --disable-ebook         disable access to Evolution addressbooks (must be
1886                           used to compile without it)
1887   --disable-ecal          disable access to Evolution calendars and tasks
1888                           (must be used to compile without it)
1889   --disable-file          disable file-based backend which stores items in
1890                           separate files in a fixed directory (default on)
1891   --enable-gnome-keyring  enables or disables support for the GNOME keyring;
1892                           default is on if development files are available
1893   --enable-kcalextended   enable support for Maemo's KCalExtended storage
1894   --enable-kwallet        enable access to KWallet
1895   --enable-maemocal       enable access to PIM data stored in Maemo 5 calendar
1896                           application (default off)
1897   --enable-pbap           enable Phone Book Access Protocol (PBAP) based
1898                           backend which provides one-way synchronization
1899                           (default off)
1900   --enable-qtcontacts     enable support for QtMobility's QtContacts storage
1901   --enable-sqlite         enable access to PIM data stored in SQLite files
1902                           (experimental, default off)
1903   --enable-dav            enable WebDAV based backends (CalDAV) (default off)
1904   --enable-neon-compatibility
1905                           increase compatibility with binary libneon
1906                           installations by loading libneon[-gnutls].27.so
1907                           dynamically instead of linking against it
1908   --enable-xmlrpc         enable XMLRPC-based backend which stores items on a
1909                           central web service (default off)
1910   --enable-qt-dbus        build Qt bindings for D-Bus
1911   --enable-dbus-timeout-hack
1912                           Enables code which overrides the default timeout in
1913                           dbus_connection_send_with_reply() so that the method
1914                           call never times out. Needed for libecal/ebook >=
1915                           2.30, so enabled by default if either of these is
1916                           enabled.
1917
1918 Optional Packages:
1919   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1920   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1921   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1922                           both]
1923   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1924   --with-sysroot=DIR Search for dependent libraries within DIR
1925                         (or the compiler's sysroot if not specified).
1926   --with-boost[=ARG]      use Boost library from a standard location
1927                           (ARG=yes), from the specified location (ARG=<path>),
1928                           or disable it (ARG=no) [ARG=yes]
1929   --with-boost-libdir=LIB_DIR
1930                           Force given directory for boost libraries. Note that
1931                           this will override library path detection, so use
1932                           this parameter only if default library detection
1933                           fails and you know exactly where your boost
1934                           libraries are located.
1935   --with-synthesis-src=<base directory|svn URL|git URL>
1936                           Specifies location of the Synthesis root directory.
1937                           Use this when the Synthesis library is to be
1938                           compiled as part of the SyncEvolution compilation.
1939                           In release versions of SyncEvolution, a copy of the
1940                           Synthesis code is bundled under 'src/synthesis' and
1941                           compiled unless something else is specified.
1942                           --with-synthesis-src can be given a path to sources
1943                           checked out already, a Subversion repository URL or
1944                           a git repository URL. When given a repository URL,
1945                           then the configure script will checkout the sources
1946                           into 'src/synthesis-workdir' or update that working
1947                           copy if the directory already exists. Default:
1948                           bundled source in src/synthesis (in released
1949                           SyncEvolution sources),  otherwise.
1950   --with-syncml-engines=client|server|both
1951                           Determines which kind of support for SyncML is
1952                           compiled and linked into SyncEvolution. Default is
1953                           both. Currently has no effect.
1954   --with-synthesis-username=<svn username>
1955                           username to use when checking out
1956                           --with-synthesis-src sources from Subversion,
1957                           default 'guest'
1958   --with-synthesis-revision=<git tag/branch/hash or Subversion revision>
1959                           Identifies which source revision to use from
1960                           --with-synthesis-src repository, empty string stands
1961                           for latest. Default for default --synthesis-src:
1962                           syncevolution-0.9
1963   --with-ca-certificates=<colon separated list of files>
1964                           Specifies location of one or more CA certificate
1965                           files. This sets the default value for the
1966                           SSLServerCertificates option. Default: empty when
1967                           using libcurl (because it has its own default), a
1968                           list of paths known to work for Debian and Red Hat
1969                           otherwise.
1970   --with-gio-gdbus        enables use of GIO's GDBus instead of the in-tree,
1971                           Bluez gdbus.
1972   --with-boost-locale[=special-lib]
1973                           use the Locale library from boost - it is possible
1974                           to specify a certain library for the linker e.g.
1975                           --with-boost-locale=boost_locale-gcc-mt
1976   --with-rst2man=<path to reStructuredText to man converter>
1977                           Specifies an explicit path to the utility if not
1978                           found in PATH. An explicit --without-rst2man or not
1979                           having it installed turn off building of man pages.
1980   --with-rst2html=<path to reStructuredText to HTML converter>
1981                           Specifies an explicit path to the utility if not
1982                           found in PATH. An explicit --without-rst2html or not
1983                           having it installed turn off building of README in
1984                           HTML format.
1985   --with-activesyncd-src=<base directory>
1986                           Specifies location of the activesyncd source root
1987                           directory. Use this when activesyncd is to be
1988                           compiled as part of the SyncEvolution compilation.
1989   --with-qt               Path to Qt [Look in PATH and /usr/local/Trolltech]
1990
1991 Some influential environment variables:
1992   CC          C compiler command
1993   CFLAGS      C compiler flags
1994   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1995               nonstandard directory <lib dir>
1996   LIBS        libraries to pass to the linker, e.g. -l<library>
1997   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1998               you have headers in a nonstandard directory <include dir>
1999   CPP         C preprocessor
2000   CXX         C++ compiler command
2001   CXXFLAGS    C++ compiler flags
2002   CXXCPP      C++ preprocessor
2003   PKG_CONFIG  path to pkg-config utility
2004   PKG_CONFIG_PATH
2005               directories to add to pkg-config's search path
2006   PKG_CONFIG_LIBDIR
2007               path overriding pkg-config's built-in search path
2008   LIBSOUP_CFLAGS
2009               C compiler flags for LIBSOUP, overriding pkg-config
2010   LIBSOUP_LIBS
2011               linker flags for LIBSOUP, overriding pkg-config
2012   LIBOPENOBEX_CFLAGS
2013               C compiler flags for LIBOPENOBEX, overriding pkg-config
2014   LIBOPENOBEX_LIBS
2015               linker flags for LIBOPENOBEX, overriding pkg-config
2016   BLUEZ_CFLAGS
2017               C compiler flags for BLUEZ, overriding pkg-config
2018   BLUEZ_LIBS  linker flags for BLUEZ, overriding pkg-config
2019   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2020   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
2021   LIBNOTIFY_CFLAGS
2022               C compiler flags for LIBNOTIFY, overriding pkg-config
2023   LIBNOTIFY_LIBS
2024               linker flags for LIBNOTIFY, overriding pkg-config
2025   MLITE_CFLAGS
2026               C compiler flags for MLITE, overriding pkg-config
2027   MLITE_LIBS  linker flags for MLITE, overriding pkg-config
2028   FOLKS_CFLAGS
2029               C compiler flags for FOLKS, overriding pkg-config
2030   FOLKS_LIBS  linker flags for FOLKS, overriding pkg-config
2031   ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
2032   ICU_LIBS    linker flags for ICU, overriding pkg-config
2033   DBUS_GLIB_CFLAGS
2034               C compiler flags for DBUS_GLIB, overriding pkg-config
2035   DBUS_GLIB_LIBS
2036               linker flags for DBUS_GLIB, overriding pkg-config
2037   MX_GTK_0_99_1_CFLAGS
2038               C compiler flags for MX_GTK_0_99_1, overriding pkg-config
2039   MX_GTK_0_99_1_LIBS
2040               linker flags for MX_GTK_0_99_1, overriding pkg-config
2041   UNIQUE_CFLAGS
2042               C compiler flags for UNIQUE, overriding pkg-config
2043   UNIQUE_LIBS linker flags for UNIQUE, overriding pkg-config
2044   GTK_2_18_CFLAGS
2045               C compiler flags for GTK_2_18, overriding pkg-config
2046   GTK_2_18_LIBS
2047               linker flags for GTK_2_18, overriding pkg-config
2048   GUI_CFLAGS  C compiler flags for GUI, overriding pkg-config
2049   GUI_LIBS    linker flags for GUI, overriding pkg-config
2050   PCRECPP_CFLAGS
2051               C compiler flags for PCRECPP, overriding pkg-config
2052   PCRECPP_LIBS
2053               linker flags for PCRECPP, overriding pkg-config
2054   SYNTHESIS_CFLAGS
2055               C compiler flags for SYNTHESIS, overriding pkg-config
2056   SYNTHESIS_LIBS
2057               linker flags for SYNTHESIS, overriding pkg-config
2058   WITH_SYNTHESIS_SRC_CFLAGS
2059               C compiler flags for WITH_SYNTHESIS_SRC, overriding pkg-config
2060   WITH_SYNTHESIS_SRC_LIBS
2061               linker flags for WITH_SYNTHESIS_SRC, overriding pkg-config
2062   GNOMEBLUETOOTH_CFLAGS
2063               C compiler flags for GNOMEBLUETOOTH, overriding pkg-config
2064   GNOMEBLUETOOTH_LIBS
2065               linker flags for GNOMEBLUETOOTH, overriding pkg-config
2066   EASCLIENT_CFLAGS
2067               C compiler flags for EASCLIENT, overriding pkg-config
2068   EASCLIENT_LIBS
2069               linker flags for EASCLIENT, overriding pkg-config
2070   EPACKAGE_CFLAGS
2071               C compiler flags for EPACKAGE, overriding pkg-config
2072   EPACKAGE_LIBS
2073               linker flags for EPACKAGE, overriding pkg-config
2074   ECAL_CFLAGS C compiler flags for ECAL, overriding pkg-config
2075   ECAL_LIBS   linker flags for ECAL, overriding pkg-config
2076   EBOOK_CFLAGS
2077               C compiler flags for EBOOK, overriding pkg-config
2078   EBOOK_LIBS  linker flags for EBOOK, overriding pkg-config
2079   EBOOK_VERSION_CFLAGS
2080               C compiler flags for EBOOK_VERSION, overriding pkg-config
2081   EBOOK_VERSION_LIBS
2082               linker flags for EBOOK_VERSION, overriding pkg-config
2083   EDS_VERSION_CFLAGS
2084               C compiler flags for EDS_VERSION, overriding pkg-config
2085   EDS_VERSION_LIBS
2086               linker flags for EDS_VERSION, overriding pkg-config
2087   EBOOKCONTACTS_CFLAGS
2088               C compiler flags for EBOOKCONTACTS, overriding pkg-config
2089   EBOOKCONTACTS_LIBS
2090               linker flags for EBOOKCONTACTS, overriding pkg-config
2091   KEYRING_CFLAGS
2092               C compiler flags for KEYRING, overriding pkg-config
2093   KEYRING_LIBS
2094               linker flags for KEYRING, overriding pkg-config
2095   KEYRING_2_20_CFLAGS
2096               C compiler flags for KEYRING_2_20, overriding pkg-config
2097   KEYRING_2_20_LIBS
2098               linker flags for KEYRING_2_20, overriding pkg-config
2099   KCALEXTENDED_CFLAGS
2100               C compiler flags for KCALEXTENDED, overriding pkg-config
2101   KCALEXTENDED_LIBS
2102               linker flags for KCALEXTENDED, overriding pkg-config
2103   MCALB_CFLAGS
2104               C compiler flags for MCALB, overriding pkg-config
2105   MCALB_LIBS  linker flags for MCALB, overriding pkg-config
2106   SQLITE_CFLAGS
2107               C compiler flags for SQLITE, overriding pkg-config
2108   SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
2109   NEON_CFLAGS C compiler flags for NEON, overriding pkg-config
2110   NEON_LIBS   linker flags for NEON, overriding pkg-config
2111   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
2112   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
2113   GTHREAD_CFLAGS
2114               C compiler flags for GTHREAD, overriding pkg-config
2115   GTHREAD_LIBS
2116               linker flags for GTHREAD, overriding pkg-config
2117   GOBJECT_CFLAGS
2118               C compiler flags for GOBJECT, overriding pkg-config
2119   GOBJECT_LIBS
2120               linker flags for GOBJECT, overriding pkg-config
2121   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
2122   GIO_LIBS    linker flags for GIO, overriding pkg-config
2123   LIBICAL_CFLAGS
2124               C compiler flags for LIBICAL, overriding pkg-config
2125   LIBICAL_LIBS
2126               linker flags for LIBICAL, overriding pkg-config
2127   QT_PATH     Path to the Qt installation
2128   QMAKE       Qt Makefile generator command
2129   MOC         Qt Meta Object Compiler command
2130   UIC         Qt User Interface Compiler command
2131   RCC         Qt Resource Compiler command
2132   GLIB216_CFLAGS
2133               C compiler flags for GLIB216, overriding pkg-config
2134   GLIB216_LIBS
2135               linker flags for GLIB216, overriding pkg-config
2136   NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
2137   NSS_LIBS    linker flags for NSS, overriding pkg-config
2138   LIBICAL_AVAILABLE_CFLAGS
2139               C compiler flags for LIBICAL_AVAILABLE, overriding pkg-config
2140   LIBICAL_AVAILABLE_LIBS
2141               linker flags for LIBICAL_AVAILABLE, overriding pkg-config
2142
2143 Use these variables to override the choices made by `configure' or to help
2144 it to find libraries and programs with nonstandard names/locations.
2145
2146 Report bugs to the package provider.
2147 _ACEOF
2148 ac_status=$?
2149 fi
2150
2151 if test "$ac_init_help" = "recursive"; then
2152   # If there are subdirs, report their specific --help.
2153   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2154     test -d "$ac_dir" ||
2155       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2156       continue
2157     ac_builddir=.
2158
2159 case "$ac_dir" in
2160 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2161 *)
2162   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2163   # A ".." for each directory in $ac_dir_suffix.
2164   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2165   case $ac_top_builddir_sub in
2166   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2167   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2168   esac ;;
2169 esac
2170 ac_abs_top_builddir=$ac_pwd
2171 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2172 # for backward compatibility:
2173 ac_top_builddir=$ac_top_build_prefix
2174
2175 case $srcdir in
2176   .)  # We are building in place.
2177     ac_srcdir=.
2178     ac_top_srcdir=$ac_top_builddir_sub
2179     ac_abs_top_srcdir=$ac_pwd ;;
2180   [\\/]* | ?:[\\/]* )  # Absolute name.
2181     ac_srcdir=$srcdir$ac_dir_suffix;
2182     ac_top_srcdir=$srcdir
2183     ac_abs_top_srcdir=$srcdir ;;
2184   *) # Relative name.
2185     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2186     ac_top_srcdir=$ac_top_build_prefix$srcdir
2187     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2188 esac
2189 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2190
2191     cd "$ac_dir" || { ac_status=$?; continue; }
2192     # Check for guested configure.
2193     if test -f "$ac_srcdir/configure.gnu"; then
2194       echo &&
2195       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2196     elif test -f "$ac_srcdir/configure"; then
2197       echo &&
2198       $SHELL "$ac_srcdir/configure" --help=recursive
2199     else
2200       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2201     fi || ac_status=$?
2202     cd "$ac_pwd" || { ac_status=$?; break; }
2203   done
2204 fi
2205
2206 test -n "$ac_init_help" && exit $ac_status
2207 if $ac_init_version; then
2208   cat <<\_ACEOF
2209 syncevolution configure 1.3.99.4
2210 generated by GNU Autoconf 2.69
2211
2212 Copyright (C) 2012 Free Software Foundation, Inc.
2213 This configure script is free software; the Free Software Foundation
2214 gives unlimited permission to copy, distribute and modify it.
2215 _ACEOF
2216   exit
2217 fi
2218
2219 ## ------------------------ ##
2220 ## Autoconf initialization. ##
2221 ## ------------------------ ##
2222
2223 # ac_fn_c_try_compile LINENO
2224 # --------------------------
2225 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2226 ac_fn_c_try_compile ()
2227 {
2228   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229   rm -f conftest.$ac_objext
2230   if { { ac_try="$ac_compile"
2231 case "(($ac_try" in
2232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233   *) ac_try_echo=$ac_try;;
2234 esac
2235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2236 $as_echo "$ac_try_echo"; } >&5
2237   (eval "$ac_compile") 2>conftest.err
2238   ac_status=$?
2239   if test -s conftest.err; then
2240     grep -v '^ *+' conftest.err >conftest.er1
2241     cat conftest.er1 >&5
2242     mv -f conftest.er1 conftest.err
2243   fi
2244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2245   test $ac_status = 0; } && {
2246          test -z "$ac_c_werror_flag" ||
2247          test ! -s conftest.err
2248        } && test -s conftest.$ac_objext; then :
2249   ac_retval=0
2250 else
2251   $as_echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2253
2254         ac_retval=1
2255 fi
2256   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257   as_fn_set_status $ac_retval
2258
2259 } # ac_fn_c_try_compile
2260
2261 # ac_fn_c_try_link LINENO
2262 # -----------------------
2263 # Try to link conftest.$ac_ext, and return whether this succeeded.
2264 ac_fn_c_try_link ()
2265 {
2266   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267   rm -f conftest.$ac_objext conftest$ac_exeext
2268   if { { ac_try="$ac_link"
2269 case "(($ac_try" in
2270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271   *) ac_try_echo=$ac_try;;
2272 esac
2273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2274 $as_echo "$ac_try_echo"; } >&5
2275   (eval "$ac_link") 2>conftest.err
2276   ac_status=$?
2277   if test -s conftest.err; then
2278     grep -v '^ *+' conftest.err >conftest.er1
2279     cat conftest.er1 >&5
2280     mv -f conftest.er1 conftest.err
2281   fi
2282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2283   test $ac_status = 0; } && {
2284          test -z "$ac_c_werror_flag" ||
2285          test ! -s conftest.err
2286        } && test -s conftest$ac_exeext && {
2287          test "$cross_compiling" = yes ||
2288          test -x conftest$ac_exeext
2289        }; then :
2290   ac_retval=0
2291 else
2292   $as_echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2294
2295         ac_retval=1
2296 fi
2297   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2298   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2299   # interfere with the next link command; also delete a directory that is
2300   # left behind by Apple's compiler.  We do this before executing the actions.
2301   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2302   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2303   as_fn_set_status $ac_retval
2304
2305 } # ac_fn_c_try_link
2306
2307 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2308 # -------------------------------------------------------
2309 # Tests whether HEADER exists and can be compiled using the include files in
2310 # INCLUDES, setting the cache variable VAR accordingly.
2311 ac_fn_c_check_header_compile ()
2312 {
2313   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2315 $as_echo_n "checking for $2... " >&6; }
2316 if eval \${$3+:} false; then :
2317   $as_echo_n "(cached) " >&6
2318 else
2319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h.  */
2321 $4
2322 #include <$2>
2323 _ACEOF
2324 if ac_fn_c_try_compile "$LINENO"; then :
2325   eval "$3=yes"
2326 else
2327   eval "$3=no"
2328 fi
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330 fi
2331 eval ac_res=\$$3
2332                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333 $as_echo "$ac_res" >&6; }
2334   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2335
2336 } # ac_fn_c_check_header_compile
2337
2338 # ac_fn_c_try_cpp LINENO
2339 # ----------------------
2340 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2341 ac_fn_c_try_cpp ()
2342 {
2343   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344   if { { ac_try="$ac_cpp conftest.$ac_ext"
2345 case "(($ac_try" in
2346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347   *) ac_try_echo=$ac_try;;
2348 esac
2349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2350 $as_echo "$ac_try_echo"; } >&5
2351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2352   ac_status=$?
2353   if test -s conftest.err; then
2354     grep -v '^ *+' conftest.err >conftest.er1
2355     cat conftest.er1 >&5
2356     mv -f conftest.er1 conftest.err
2357   fi
2358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2359   test $ac_status = 0; } > conftest.i && {
2360          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2361          test ! -s conftest.err
2362        }; then :
2363   ac_retval=0
2364 else
2365   $as_echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2367
2368     ac_retval=1
2369 fi
2370   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2371   as_fn_set_status $ac_retval
2372
2373 } # ac_fn_c_try_cpp
2374
2375 # ac_fn_c_try_run LINENO
2376 # ----------------------
2377 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2378 # that executables *can* be run.
2379 ac_fn_c_try_run ()
2380 {
2381   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382   if { { ac_try="$ac_link"
2383 case "(($ac_try" in
2384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385   *) ac_try_echo=$ac_try;;
2386 esac
2387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2388 $as_echo "$ac_try_echo"; } >&5
2389   (eval "$ac_link") 2>&5
2390   ac_status=$?
2391   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2392   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2393   { { case "(($ac_try" in
2394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395   *) ac_try_echo=$ac_try;;
2396 esac
2397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2398 $as_echo "$ac_try_echo"; } >&5
2399   (eval "$ac_try") 2>&5
2400   ac_status=$?
2401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2402   test $ac_status = 0; }; }; then :
2403   ac_retval=0
2404 else
2405   $as_echo "$as_me: program exited with status $ac_status" >&5
2406        $as_echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2408
2409        ac_retval=$ac_status
2410 fi
2411   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2412   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2413   as_fn_set_status $ac_retval
2414
2415 } # ac_fn_c_try_run
2416
2417 # ac_fn_c_check_func LINENO FUNC VAR
2418 # ----------------------------------
2419 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2420 ac_fn_c_check_func ()
2421 {
2422   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2424 $as_echo_n "checking for $2... " >&6; }
2425 if eval \${$3+:} false; then :
2426   $as_echo_n "(cached) " >&6
2427 else
2428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h.  */
2430 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2432 #define $2 innocuous_$2
2433
2434 /* System header to define __stub macros and hopefully few prototypes,
2435     which can conflict with char $2 (); below.
2436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2437     <limits.h> exists even on freestanding compilers.  */
2438
2439 #ifdef __STDC__
2440 # include <limits.h>
2441 #else
2442 # include <assert.h>
2443 #endif
2444
2445 #undef $2
2446
2447 /* Override any GCC internal prototype to avoid an error.
2448    Use char because int might match the return type of a GCC
2449    builtin and then its argument prototype would still apply.  */
2450 #ifdef __cplusplus
2451 extern "C"
2452 #endif
2453 char $2 ();
2454 /* The GNU C library defines this for functions which it implements
2455     to always fail with ENOSYS.  Some functions are actually named
2456     something starting with __ and the normal name is an alias.  */
2457 #if defined __stub_$2 || defined __stub___$2
2458 choke me
2459 #endif
2460
2461 int
2462 main ()
2463 {
2464 return $2 ();
2465   ;
2466   return 0;
2467 }
2468 _ACEOF
2469 if ac_fn_c_try_link "$LINENO"; then :
2470   eval "$3=yes"
2471 else
2472   eval "$3=no"
2473 fi
2474 rm -f core conftest.err conftest.$ac_objext \
2475     conftest$ac_exeext conftest.$ac_ext
2476 fi
2477 eval ac_res=\$$3
2478                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2479 $as_echo "$ac_res" >&6; }
2480   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2481
2482 } # ac_fn_c_check_func
2483
2484 # ac_fn_cxx_try_compile LINENO
2485 # ----------------------------
2486 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2487 ac_fn_cxx_try_compile ()
2488 {
2489   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2490   rm -f conftest.$ac_objext
2491   if { { ac_try="$ac_compile"
2492 case "(($ac_try" in
2493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494   *) ac_try_echo=$ac_try;;
2495 esac
2496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2497 $as_echo "$ac_try_echo"; } >&5
2498   (eval "$ac_compile") 2>conftest.err
2499   ac_status=$?
2500   if test -s conftest.err; then
2501     grep -v '^ *+' conftest.err >conftest.er1
2502     cat conftest.er1 >&5
2503     mv -f conftest.er1 conftest.err
2504   fi
2505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506   test $ac_status = 0; } && {
2507          test -z "$ac_cxx_werror_flag" ||
2508          test ! -s conftest.err
2509        } && test -s conftest.$ac_objext; then :
2510   ac_retval=0
2511 else
2512   $as_echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2514
2515         ac_retval=1
2516 fi
2517   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2518   as_fn_set_status $ac_retval
2519
2520 } # ac_fn_cxx_try_compile
2521
2522 # ac_fn_cxx_try_cpp LINENO
2523 # ------------------------
2524 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2525 ac_fn_cxx_try_cpp ()
2526 {
2527   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528   if { { ac_try="$ac_cpp conftest.$ac_ext"
2529 case "(($ac_try" in
2530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531   *) ac_try_echo=$ac_try;;
2532 esac
2533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2534 $as_echo "$ac_try_echo"; } >&5
2535   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2536   ac_status=$?
2537   if test -s conftest.err; then
2538     grep -v '^ *+' conftest.err >conftest.er1
2539     cat conftest.er1 >&5
2540     mv -f conftest.er1 conftest.err
2541   fi
2542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2543   test $ac_status = 0; } > conftest.i && {
2544          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2545          test ! -s conftest.err
2546        }; then :
2547   ac_retval=0
2548 else
2549   $as_echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2551
2552     ac_retval=1
2553 fi
2554   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2555   as_fn_set_status $ac_retval
2556
2557 } # ac_fn_cxx_try_cpp
2558
2559 # ac_fn_cxx_try_link LINENO
2560 # -------------------------
2561 # Try to link conftest.$ac_ext, and return whether this succeeded.
2562 ac_fn_cxx_try_link ()
2563 {
2564   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2565   rm -f conftest.$ac_objext conftest$ac_exeext
2566   if { { ac_try="$ac_link"
2567 case "(($ac_try" in
2568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569   *) ac_try_echo=$ac_try;;
2570 esac
2571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2572 $as_echo "$ac_try_echo"; } >&5
2573   (eval "$ac_link") 2>conftest.err
2574   ac_status=$?
2575   if test -s conftest.err; then
2576     grep -v '^ *+' conftest.err >conftest.er1
2577     cat conftest.er1 >&5
2578     mv -f conftest.er1 conftest.err
2579   fi
2580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2581   test $ac_status = 0; } && {
2582          test -z "$ac_cxx_werror_flag" ||
2583          test ! -s conftest.err
2584        } && test -s conftest$ac_exeext && {
2585          test "$cross_compiling" = yes ||
2586          test -x conftest$ac_exeext
2587        }; then :
2588   ac_retval=0
2589 else
2590   $as_echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2592
2593         ac_retval=1
2594 fi
2595   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2596   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2597   # interfere with the next link command; also delete a directory that is
2598   # left behind by Apple's compiler.  We do this before executing the actions.
2599   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2600   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2601   as_fn_set_status $ac_retval
2602
2603 } # ac_fn_cxx_try_link
2604
2605 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2606 # -------------------------------------------------------
2607 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2608 # the include files in INCLUDES and setting the cache variable VAR
2609 # accordingly.
2610 ac_fn_c_check_header_mongrel ()
2611 {
2612   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2613   if eval \${$3+:} false; then :
2614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2615 $as_echo_n "checking for $2... " >&6; }
2616 if eval \${$3+:} false; then :
2617   $as_echo_n "(cached) " >&6
2618 fi
2619 eval ac_res=\$$3
2620                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621 $as_echo "$ac_res" >&6; }
2622 else
2623   # Is the header compilable?
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2625 $as_echo_n "checking $2 usability... " >&6; }
2626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2627 /* end confdefs.h.  */
2628 $4
2629 #include <$2>
2630 _ACEOF
2631 if ac_fn_c_try_compile "$LINENO"; then :
2632   ac_header_compiler=yes
2633 else
2634   ac_header_compiler=no
2635 fi
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2638 $as_echo "$ac_header_compiler" >&6; }
2639
2640 # Is the header present?
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2642 $as_echo_n "checking $2 presence... " >&6; }
2643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644 /* end confdefs.h.  */
2645 #include <$2>
2646 _ACEOF
2647 if ac_fn_c_try_cpp "$LINENO"; then :
2648   ac_header_preproc=yes
2649 else
2650   ac_header_preproc=no
2651 fi
2652 rm -f conftest.err conftest.i conftest.$ac_ext
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2654 $as_echo "$ac_header_preproc" >&6; }
2655
2656 # So?  What about this header?
2657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2658   yes:no: )
2659     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2660 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2661     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2662 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2663     ;;
2664   no:yes:* )
2665     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2666 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2667     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2668 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2669     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2670 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2671     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2672 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2673     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2674 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2675     ;;
2676 esac
2677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2678 $as_echo_n "checking for $2... " >&6; }
2679 if eval \${$3+:} false; then :
2680   $as_echo_n "(cached) " >&6
2681 else
2682   eval "$3=\$ac_header_compiler"
2683 fi
2684 eval ac_res=\$$3
2685                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2686 $as_echo "$ac_res" >&6; }
2687 fi
2688   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2689
2690 } # ac_fn_c_check_header_mongrel
2691
2692 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2693 # ---------------------------------------------------------
2694 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2695 # the include files in INCLUDES and setting the cache variable VAR
2696 # accordingly.
2697 ac_fn_cxx_check_header_mongrel ()
2698 {
2699   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700   if eval \${$3+:} false; then :
2701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2702 $as_echo_n "checking for $2... " >&6; }
2703 if eval \${$3+:} false; then :
2704   $as_echo_n "(cached) " >&6
2705 fi
2706 eval ac_res=\$$3
2707                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2708 $as_echo "$ac_res" >&6; }
2709 else
2710   # Is the header compilable?
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2712 $as_echo_n "checking $2 usability... " >&6; }
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h.  */
2715 $4
2716 #include <$2>
2717 _ACEOF
2718 if ac_fn_cxx_try_compile "$LINENO"; then :
2719   ac_header_compiler=yes
2720 else
2721   ac_header_compiler=no
2722 fi
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2725 $as_echo "$ac_header_compiler" >&6; }
2726
2727 # Is the header present?
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2729 $as_echo_n "checking $2 presence... " >&6; }
2730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2731 /* end confdefs.h.  */
2732 #include <$2>
2733 _ACEOF
2734 if ac_fn_cxx_try_cpp "$LINENO"; then :
2735   ac_header_preproc=yes
2736 else
2737   ac_header_preproc=no
2738 fi
2739 rm -f conftest.err conftest.i conftest.$ac_ext
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2741 $as_echo "$ac_header_preproc" >&6; }
2742
2743 # So?  What about this header?
2744 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2745   yes:no: )
2746     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2747 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2748     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2749 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2750     ;;
2751   no:yes:* )
2752     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2753 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2754     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2755 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2756     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2757 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2758     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2759 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2760     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2761 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2762     ;;
2763 esac
2764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2765 $as_echo_n "checking for $2... " >&6; }
2766 if eval \${$3+:} false; then :
2767   $as_echo_n "(cached) " >&6
2768 else
2769   eval "$3=\$ac_header_compiler"
2770 fi
2771 eval ac_res=\$$3
2772                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2773 $as_echo "$ac_res" >&6; }
2774 fi
2775   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2776
2777 } # ac_fn_cxx_check_header_mongrel
2778
2779 # ac_fn_cxx_check_func LINENO FUNC VAR
2780 # ------------------------------------
2781 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2782 ac_fn_cxx_check_func ()
2783 {
2784   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2786 $as_echo_n "checking for $2... " >&6; }
2787 if eval \${$3+:} false; then :
2788   $as_echo_n "(cached) " >&6
2789 else
2790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h.  */
2792 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2794 #define $2 innocuous_$2
2795
2796 /* System header to define __stub macros and hopefully few prototypes,
2797     which can conflict with char $2 (); below.
2798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2799     <limits.h> exists even on freestanding compilers.  */
2800
2801 #ifdef __STDC__
2802 # include <limits.h>
2803 #else
2804 # include <assert.h>
2805 #endif
2806
2807 #undef $2
2808
2809 /* Override any GCC internal prototype to avoid an error.
2810    Use char because int might match the return type of a GCC
2811    builtin and then its argument prototype would still apply.  */
2812 #ifdef __cplusplus
2813 extern "C"
2814 #endif
2815 char $2 ();
2816 /* The GNU C library defines this for functions which it implements
2817     to always fail with ENOSYS.  Some functions are actually named
2818     something starting with __ and the normal name is an alias.  */
2819 #if defined __stub_$2 || defined __stub___$2
2820 choke me
2821 #endif
2822
2823 int
2824 main ()
2825 {
2826 return $2 ();
2827   ;
2828   return 0;
2829 }
2830 _ACEOF
2831 if ac_fn_cxx_try_link "$LINENO"; then :
2832   eval "$3=yes"
2833 else
2834   eval "$3=no"
2835 fi
2836 rm -f core conftest.err conftest.$ac_objext \
2837     conftest$ac_exeext conftest.$ac_ext
2838 fi
2839 eval ac_res=\$$3
2840                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2841 $as_echo "$ac_res" >&6; }
2842   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2843
2844 } # ac_fn_cxx_check_func
2845 cat >config.log <<_ACEOF
2846 This file contains any messages produced by compilers while
2847 running configure, to aid debugging if configure makes a mistake.
2848
2849 It was created by syncevolution $as_me 1.3.99.4, which was
2850 generated by GNU Autoconf 2.69.  Invocation command line was
2851
2852   $ $0 $@
2853
2854 _ACEOF
2855 exec 5>>config.log
2856 {
2857 cat <<_ASUNAME
2858 ## --------- ##
2859 ## Platform. ##
2860 ## --------- ##
2861
2862 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2863 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2864 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2865 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2866 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2867
2868 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2869 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2870
2871 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2872 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2873 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2874 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2875 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2876 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2877 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2878
2879 _ASUNAME
2880
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884   IFS=$as_save_IFS
2885   test -z "$as_dir" && as_dir=.
2886     $as_echo "PATH: $as_dir"
2887   done
2888 IFS=$as_save_IFS
2889
2890 } >&5
2891
2892 cat >&5 <<_ACEOF
2893
2894
2895 ## ----------- ##
2896 ## Core tests. ##
2897 ## ----------- ##
2898
2899 _ACEOF
2900
2901
2902 # Keep a trace of the command line.
2903 # Strip out --no-create and --no-recursion so they do not pile up.
2904 # Strip out --silent because we don't want to record it for future runs.
2905 # Also quote any args containing shell meta-characters.
2906 # Make two passes to allow for proper duplicate-argument suppression.
2907 ac_configure_args=
2908 ac_configure_args0=
2909 ac_configure_args1=
2910 ac_must_keep_next=false
2911 for ac_pass in 1 2
2912 do
2913   for ac_arg
2914   do
2915     case $ac_arg in
2916     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2917     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2918     | -silent | --silent | --silen | --sile | --sil)
2919       continue ;;
2920     *\'*)
2921       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2922     esac
2923     case $ac_pass in
2924     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2925     2)
2926       as_fn_append ac_configure_args1 " '$ac_arg'"
2927       if test $ac_must_keep_next = true; then
2928         ac_must_keep_next=false # Got value, back to normal.
2929       else
2930         case $ac_arg in
2931           *=* | --config-cache | -C | -disable-* | --disable-* \
2932           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2933           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2934           | -with-* | --with-* | -without-* | --without-* | --x)
2935             case "$ac_configure_args0 " in
2936               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2937             esac
2938             ;;
2939           -* ) ac_must_keep_next=true ;;
2940         esac
2941       fi
2942       as_fn_append ac_configure_args " '$ac_arg'"
2943       ;;
2944     esac
2945   done
2946 done
2947 { ac_configure_args0=; unset ac_configure_args0;}
2948 { ac_configure_args1=; unset ac_configure_args1;}
2949
2950 # When interrupted or exit'd, cleanup temporary files, and complete
2951 # config.log.  We remove comments because anyway the quotes in there
2952 # would cause problems or look ugly.
2953 # WARNING: Use '\'' to represent an apostrophe within the trap.
2954 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2955 trap 'exit_status=$?
2956   # Save into config.log some information that might help in debugging.
2957   {
2958     echo
2959
2960     $as_echo "## ---------------- ##
2961 ## Cache variables. ##
2962 ## ---------------- ##"
2963     echo
2964     # The following way of writing the cache mishandles newlines in values,
2965 (
2966   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2967     eval ac_val=\$$ac_var
2968     case $ac_val in #(
2969     *${as_nl}*)
2970       case $ac_var in #(
2971       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2972 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2973       esac
2974       case $ac_var in #(
2975       _ | IFS | as_nl) ;; #(
2976       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2977       *) { eval $ac_var=; unset $ac_var;} ;;
2978       esac ;;
2979     esac
2980   done
2981   (set) 2>&1 |
2982     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2983     *${as_nl}ac_space=\ *)
2984       sed -n \
2985         "s/'\''/'\''\\\\'\'''\''/g;
2986           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2987       ;; #(
2988     *)
2989       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2990       ;;
2991     esac |
2992     sort
2993 )
2994     echo
2995
2996     $as_echo "## ----------------- ##
2997 ## Output variables. ##
2998 ## ----------------- ##"
2999     echo
3000     for ac_var in $ac_subst_vars
3001     do
3002       eval ac_val=\$$ac_var
3003       case $ac_val in
3004       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3005       esac
3006       $as_echo "$ac_var='\''$ac_val'\''"
3007     done | sort
3008     echo
3009
3010     if test -n "$ac_subst_files"; then
3011       $as_echo "## ------------------- ##
3012 ## File substitutions. ##
3013 ## ------------------- ##"
3014       echo
3015       for ac_var in $ac_subst_files
3016       do
3017         eval ac_val=\$$ac_var
3018         case $ac_val in
3019         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3020         esac
3021         $as_echo "$ac_var='\''$ac_val'\''"
3022       done | sort
3023       echo
3024     fi
3025
3026     if test -s confdefs.h; then
3027       $as_echo "## ----------- ##
3028 ## confdefs.h. ##
3029 ## ----------- ##"
3030       echo
3031       cat confdefs.h
3032       echo
3033     fi
3034     test "$ac_signal" != 0 &&
3035       $as_echo "$as_me: caught signal $ac_signal"
3036     $as_echo "$as_me: exit $exit_status"
3037   } >&5
3038   rm -f core *.core core.conftest.* &&
3039     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3040     exit $exit_status
3041 ' 0
3042 for ac_signal in 1 2 13 15; do
3043   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3044 done
3045 ac_signal=0
3046
3047 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3048 rm -f -r conftest* confdefs.h
3049
3050 $as_echo "/* confdefs.h */" > confdefs.h
3051
3052 # Predefined preprocessor variables.
3053
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_NAME "$PACKAGE_NAME"
3056 _ACEOF
3057
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3060 _ACEOF
3061
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3064 _ACEOF
3065
3066 cat >>confdefs.h <<_ACEOF
3067 #define PACKAGE_STRING "$PACKAGE_STRING"
3068 _ACEOF
3069
3070 cat >>confdefs.h <<_ACEOF
3071 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3072 _ACEOF
3073
3074 cat >>confdefs.h <<_ACEOF
3075 #define PACKAGE_URL "$PACKAGE_URL"
3076 _ACEOF
3077
3078
3079 # Let the site file select an alternate cache file if it wants to.
3080 # Prefer an explicitly selected file to automatically selected ones.
3081 ac_site_file1=NONE
3082 ac_site_file2=NONE
3083 if test -n "$CONFIG_SITE"; then
3084   # We do not want a PATH search for config.site.
3085   case $CONFIG_SITE in #((
3086     -*)  ac_site_file1=./$CONFIG_SITE;;
3087     */*) ac_site_file1=$CONFIG_SITE;;
3088     *)   ac_site_file1=./$CONFIG_SITE;;
3089   esac
3090 elif test "x$prefix" != xNONE; then
3091   ac_site_file1=$prefix/share/config.site
3092   ac_site_file2=$prefix/etc/config.site
3093 else
3094   ac_site_file1=$ac_default_prefix/share/config.site
3095   ac_site_file2=$ac_default_prefix/etc/config.site
3096 fi
3097 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3098 do
3099   test "x$ac_site_file" = xNONE && continue
3100   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3101     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3102 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3103     sed 's/^/| /' "$ac_site_file" >&5
3104     . "$ac_site_file" \
3105       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3107 as_fn_error $? "failed to load site script $ac_site_file
3108 See \`config.log' for more details" "$LINENO" 5; }
3109   fi
3110 done
3111
3112 if test -r "$cache_file"; then
3113   # Some versions of bash will fail to source /dev/null (special files
3114   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3115   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3116     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3117 $as_echo "$as_me: loading cache $cache_file" >&6;}
3118     case $cache_file in
3119       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3120       *)                      . "./$cache_file";;
3121     esac
3122   fi
3123 else
3124   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3125 $as_echo "$as_me: creating cache $cache_file" >&6;}
3126   >$cache_file
3127 fi
3128
3129 # Check that the precious variables saved in the cache have kept the same
3130 # value.
3131 ac_cache_corrupted=false
3132 for ac_var in $ac_precious_vars; do
3133   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3134   eval ac_new_set=\$ac_env_${ac_var}_set
3135   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3136   eval ac_new_val=\$ac_env_${ac_var}_value
3137   case $ac_old_set,$ac_new_set in
3138     set,)
3139       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3140 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3141       ac_cache_corrupted=: ;;
3142     ,set)
3143       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3144 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3145       ac_cache_corrupted=: ;;
3146     ,);;
3147     *)
3148       if test "x$ac_old_val" != "x$ac_new_val"; then
3149         # differences in whitespace do not lead to failure.
3150         ac_old_val_w=`echo x $ac_old_val`
3151         ac_new_val_w=`echo x $ac_new_val`
3152         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3153           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3154 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3155           ac_cache_corrupted=:
3156         else
3157           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3158 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3159           eval $ac_var=\$ac_old_val
3160         fi
3161         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3162 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3163         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3164 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3165       fi;;
3166   esac
3167   # Pass precious variables to config.status.
3168   if test "$ac_new_set" = set; then
3169     case $ac_new_val in
3170     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3171     *) ac_arg=$ac_var=$ac_new_val ;;
3172     esac
3173     case " $ac_configure_args " in
3174       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3175       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3176     esac
3177   fi
3178 done
3179 if $ac_cache_corrupted; then
3180   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3183 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3184   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3185 fi
3186 ## -------------------- ##
3187 ## Main body of script. ##
3188 ## -------------------- ##
3189
3190 ac_ext=c
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195
3196
3197 # STABLE_VERSION=1.0.1+
3198
3199
3200 # Generate some files.
3201
3202
3203
3204
3205
3206
3207
3208 # Default value for --enable/disable-release-mode.
3209 # Determined by gen-autotools.sh based on versioning.
3210 # Official, stable releases enable it, pre-releases
3211 # disable it.
3212 #
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237 # Minimum version of libsynthesis as defined in its
3238 # configure script and thus .pc files:
3239
3240
3241 # Line above is patched by gen-autotools.sh. Handle
3242 # both "yes" and "no".
3243
3244
3245 # Check whether --enable-release-mode was given.
3246 if test "${enable_release_mode+set}" = set; then :
3247   enableval=$enable_release_mode; enable_release_mode="$enableval"
3248 else
3249   enable_release_mode="no"
3250 fi
3251
3252 if test "$enable_release_mode" = "yes"; then
3253
3254 $as_echo "#define SYNCEVOLUTION_STABLE_RELEASE 1" >>confdefs.h
3255
3256 fi
3257
3258 am__api_version='1.11'
3259
3260 ac_aux_dir=
3261 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3262   if test -f "$ac_dir/install-sh"; then
3263     ac_aux_dir=$ac_dir
3264     ac_install_sh="$ac_aux_dir/install-sh -c"
3265     break
3266   elif test -f "$ac_dir/install.sh"; then
3267     ac_aux_dir=$ac_dir
3268     ac_install_sh="$ac_aux_dir/install.sh -c"
3269     break
3270   elif test -f "$ac_dir/shtool"; then
3271     ac_aux_dir=$ac_dir
3272     ac_install_sh="$ac_aux_dir/shtool install -c"
3273     break
3274   fi
3275 done
3276 if test -z "$ac_aux_dir"; then
3277   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3278 fi
3279
3280 # These three variables are undocumented and unsupported,
3281 # and are intended to be withdrawn in a future Autoconf release.
3282 # They can cause serious problems if a builder's source tree is in a directory
3283 # whose full name contains unusual characters.
3284 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3285 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3286 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3287
3288
3289 # Find a good install program.  We prefer a C program (faster),
3290 # so one script is as good as another.  But avoid the broken or
3291 # incompatible versions:
3292 # SysV /etc/install, /usr/sbin/install
3293 # SunOS /usr/etc/install
3294 # IRIX /sbin/install
3295 # AIX /bin/install
3296 # AmigaOS /C/install, which installs bootblocks on floppy discs
3297 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3298 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3299 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3300 # OS/2's system install, which has a completely different semantic
3301 # ./install, which can be erroneously created by make from ./install.sh.
3302 # Reject install programs that cannot install multiple files.
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3304 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3305 if test -z "$INSTALL"; then
3306 if ${ac_cv_path_install+:} false; then :
3307   $as_echo_n "(cached) " >&6
3308 else
3309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3311 do
3312   IFS=$as_save_IFS
3313   test -z "$as_dir" && as_dir=.
3314     # Account for people who put trailing slashes in PATH elements.
3315 case $as_dir/ in #((
3316   ./ | .// | /[cC]/* | \
3317   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3318   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3319   /usr/ucb/* ) ;;
3320   *)
3321     # OSF1 and SCO ODT 3.0 have their own names for install.
3322     # Don't use installbsd from OSF since it installs stuff as root
3323     # by default.
3324     for ac_prog in ginstall scoinst install; do
3325       for ac_exec_ext in '' $ac_executable_extensions; do
3326         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3327           if test $ac_prog = install &&
3328             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3329             # AIX install.  It has an incompatible calling convention.
3330             :
3331           elif test $ac_prog = install &&
3332             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3333             # program-specific install script used by HP pwplus--don't use.
3334             :
3335           else
3336             rm -rf conftest.one conftest.two conftest.dir
3337             echo one > conftest.one
3338             echo two > conftest.two
3339             mkdir conftest.dir
3340             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3341               test -s conftest.one && test -s conftest.two &&
3342               test -s conftest.dir/conftest.one &&
3343               test -s conftest.dir/conftest.two
3344             then
3345               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3346               break 3
3347             fi
3348           fi
3349         fi
3350       done
3351     done
3352     ;;
3353 esac
3354
3355   done
3356 IFS=$as_save_IFS
3357
3358 rm -rf conftest.one conftest.two conftest.dir
3359
3360 fi
3361   if test "${ac_cv_path_install+set}" = set; then
3362     INSTALL=$ac_cv_path_install
3363   else
3364     # As a last resort, use the slow shell script.  Don't cache a
3365     # value for INSTALL within a source directory, because that will
3366     # break other packages using the cache if that directory is
3367     # removed, or if the value is a relative name.
3368     INSTALL=$ac_install_sh
3369   fi
3370 fi
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3372 $as_echo "$INSTALL" >&6; }
3373
3374 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3375 # It thinks the first close brace ends the variable substitution.
3376 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3377
3378 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3379
3380 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3381
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3383 $as_echo_n "checking whether build environment is sane... " >&6; }
3384 # Just in case
3385 sleep 1
3386 echo timestamp > conftest.file
3387 # Reject unsafe characters in $srcdir or the absolute working directory
3388 # name.  Accept space and tab only in the latter.
3389 am_lf='
3390 '
3391 case `pwd` in
3392   *[\\\"\#\$\&\'\`$am_lf]*)
3393     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3394 esac
3395 case $srcdir in
3396   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3397     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3398 esac
3399
3400 # Do `set' in a subshell so we don't clobber the current shell's
3401 # arguments.  Must try -L first in case configure is actually a
3402 # symlink; some systems play weird games with the mod time of symlinks
3403 # (eg FreeBSD returns the mod time of the symlink's containing
3404 # directory).
3405 if (
3406    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3407    if test "$*" = "X"; then
3408       # -L didn't work.
3409       set X `ls -t "$srcdir/configure" conftest.file`
3410    fi
3411    rm -f conftest.file
3412    if test "$*" != "X $srcdir/configure conftest.file" \
3413       && test "$*" != "X conftest.file $srcdir/configure"; then
3414
3415       # If neither matched, then we have a broken ls.  This can happen
3416       # if, for instance, CONFIG_SHELL is bash and it inherits a
3417       # broken ls alias from the environment.  This has actually
3418       # happened.  Such a system could not be considered "sane".
3419       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3420 alias in your environment" "$LINENO" 5
3421    fi
3422
3423    test "$2" = conftest.file
3424    )
3425 then
3426    # Ok.
3427    :
3428 else
3429    as_fn_error $? "newly created file is older than distributed files!
3430 Check your system clock" "$LINENO" 5
3431 fi
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3433 $as_echo "yes" >&6; }
3434 test "$program_prefix" != NONE &&
3435   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3436 # Use a double $ so make ignores it.
3437 test "$program_suffix" != NONE &&
3438   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3439 # Double any \ or $.
3440 # By default was `s,x,x', remove it if useless.
3441 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3442 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3443
3444 # expand $ac_aux_dir to an absolute path
3445 am_aux_dir=`cd $ac_aux_dir && pwd`
3446
3447 if test x"${MISSING+set}" != xset; then
3448   case $am_aux_dir in
3449   *\ * | *\     *)
3450     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3451   *)
3452     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3453   esac
3454 fi
3455 # Use eval to expand $SHELL
3456 if eval "$MISSING --run true"; then
3457   am_missing_run="$MISSING --run "
3458 else
3459   am_missing_run=
3460   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3461 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3462 fi
3463
3464 if test x"${install_sh}" != xset; then
3465   case $am_aux_dir in
3466   *\ * | *\     *)
3467     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3468   *)
3469     install_sh="\${SHELL} $am_aux_dir/install-sh"
3470   esac
3471 fi
3472
3473 # Installed binaries are usually stripped using `strip' when the user
3474 # run `make install-strip'.  However `strip' might not be the right
3475 # tool to use in cross-compilation environments, therefore Automake
3476 # will honor the `STRIP' environment variable to overrule this program.
3477 if test "$cross_compiling" != no; then
3478   if test -n "$ac_tool_prefix"; then
3479   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3480 set dummy ${ac_tool_prefix}strip; ac_word=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if ${ac_cv_prog_STRIP+:} false; then :
3484   $as_echo_n "(cached) " >&6
3485 else
3486   if test -n "$STRIP"; then
3487   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3488 else
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492   IFS=$as_save_IFS
3493   test -z "$as_dir" && as_dir=.
3494     for ac_exec_ext in '' $ac_executable_extensions; do
3495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3496     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498     break 2
3499   fi
3500 done
3501   done
3502 IFS=$as_save_IFS
3503
3504 fi
3505 fi
3506 STRIP=$ac_cv_prog_STRIP
3507 if test -n "$STRIP"; then
3508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3509 $as_echo "$STRIP" >&6; }
3510 else
3511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3513 fi
3514
3515
3516 fi
3517 if test -z "$ac_cv_prog_STRIP"; then
3518   ac_ct_STRIP=$STRIP
3519   # Extract the first word of "strip", so it can be a program name with args.
3520 set dummy strip; ac_word=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3524   $as_echo_n "(cached) " >&6
3525 else
3526   if test -n "$ac_ct_STRIP"; then
3527   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3528 else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3531 do
3532   IFS=$as_save_IFS
3533   test -z "$as_dir" && as_dir=.
3534     for ac_exec_ext in '' $ac_executable_extensions; do
3535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536     ac_cv_prog_ac_ct_STRIP="strip"
3537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538     break 2
3539   fi
3540 done
3541   done
3542 IFS=$as_save_IFS
3543
3544 fi
3545 fi
3546 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3547 if test -n "$ac_ct_STRIP"; then
3548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3549 $as_echo "$ac_ct_STRIP" >&6; }
3550 else
3551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 fi
3554
3555   if test "x$ac_ct_STRIP" = x; then
3556     STRIP=":"
3557   else
3558     case $cross_compiling:$ac_tool_warned in
3559 yes:)
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3562 ac_tool_warned=yes ;;
3563 esac
3564     STRIP=$ac_ct_STRIP
3565   fi
3566 else
3567   STRIP="$ac_cv_prog_STRIP"
3568 fi
3569
3570 fi
3571 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3572
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3574 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3575 if test -z "$MKDIR_P"; then
3576   if ${ac_cv_path_mkdir+:} false; then :
3577   $as_echo_n "(cached) " >&6
3578 else
3579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3581 do
3582   IFS=$as_save_IFS
3583   test -z "$as_dir" && as_dir=.
3584     for ac_prog in mkdir gmkdir; do
3585          for ac_exec_ext in '' $ac_executable_extensions; do
3586            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3587            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3588              'mkdir (GNU coreutils) '* | \
3589              'mkdir (coreutils) '* | \
3590              'mkdir (fileutils) '4.1*)
3591                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3592                break 3;;
3593            esac
3594          done
3595        done
3596   done
3597 IFS=$as_save_IFS
3598
3599 fi
3600
3601   test -d ./--version && rmdir ./--version
3602   if test "${ac_cv_path_mkdir+set}" = set; then
3603     MKDIR_P="$ac_cv_path_mkdir -p"
3604   else
3605     # As a last resort, use the slow shell script.  Don't cache a
3606     # value for MKDIR_P within a source directory, because that will
3607     # break other packages using the cache if that directory is
3608     # removed, or if the value is a relative name.
3609     MKDIR_P="$ac_install_sh -d"
3610   fi
3611 fi
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3613 $as_echo "$MKDIR_P" >&6; }
3614
3615 mkdir_p="$MKDIR_P"
3616 case $mkdir_p in
3617   [\\/$]* | ?:[\\/]*) ;;
3618   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3619 esac
3620
3621 for ac_prog in gawk mawk nawk awk
3622 do
3623   # Extract the first word of "$ac_prog", so it can be a program name with args.
3624 set dummy $ac_prog; ac_word=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if ${ac_cv_prog_AWK+:} false; then :
3628   $as_echo_n "(cached) " >&6
3629 else
3630   if test -n "$AWK"; then
3631   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3632 else
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3635 do
3636   IFS=$as_save_IFS
3637   test -z "$as_dir" && as_dir=.
3638     for ac_exec_ext in '' $ac_executable_extensions; do
3639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3640     ac_cv_prog_AWK="$ac_prog"
3641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642     break 2
3643   fi
3644 done
3645   done
3646 IFS=$as_save_IFS
3647
3648 fi
3649 fi
3650 AWK=$ac_cv_prog_AWK
3651 if test -n "$AWK"; then
3652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3653 $as_echo "$AWK" >&6; }
3654 else
3655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3657 fi
3658
3659
3660   test -n "$AWK" && break
3661 done
3662
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3664 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3665 set x ${MAKE-make}
3666 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3667 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3668   $as_echo_n "(cached) " >&6
3669 else
3670   cat >conftest.make <<\_ACEOF
3671 SHELL = /bin/sh
3672 all:
3673         @echo '@@@%%%=$(MAKE)=@@@%%%'
3674 _ACEOF
3675 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3676 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3677   *@@@%%%=?*=@@@%%%*)
3678     eval ac_cv_prog_make_${ac_make}_set=yes;;
3679   *)
3680     eval ac_cv_prog_make_${ac_make}_set=no;;
3681 esac
3682 rm -f conftest.make
3683 fi
3684 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3686 $as_echo "yes" >&6; }
3687   SET_MAKE=
3688 else
3689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 $as_echo "no" >&6; }
3691   SET_MAKE="MAKE=${MAKE-make}"
3692 fi
3693
3694 rm -rf .tst 2>/dev/null
3695 mkdir .tst 2>/dev/null
3696 if test -d .tst; then
3697   am__leading_dot=.
3698 else
3699   am__leading_dot=_
3700 fi
3701 rmdir .tst 2>/dev/null
3702
3703 # Check whether --enable-silent-rules was given.
3704 if test "${enable_silent_rules+set}" = set; then :
3705   enableval=$enable_silent_rules;
3706 fi
3707
3708 case $enable_silent_rules in
3709 yes) AM_DEFAULT_VERBOSITY=0;;
3710 no)  AM_DEFAULT_VERBOSITY=1;;
3711 *)   AM_DEFAULT_VERBOSITY=1;;
3712 esac
3713 am_make=${MAKE-make}
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3715 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3716 if ${am_cv_make_support_nested_variables+:} false; then :
3717   $as_echo_n "(cached) " >&6
3718 else
3719   if $as_echo 'TRUE=$(BAR$(V))
3720 BAR0=false
3721 BAR1=true
3722 V=1
3723 am__doit:
3724         @$(TRUE)
3725 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3726   am_cv_make_support_nested_variables=yes
3727 else
3728   am_cv_make_support_nested_variables=no
3729 fi
3730 fi
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3732 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3733 if test $am_cv_make_support_nested_variables = yes; then
3734     AM_V='$(V)'
3735   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3736 else
3737   AM_V=$AM_DEFAULT_VERBOSITY
3738   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3739 fi
3740 AM_BACKSLASH='\'
3741
3742 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3743   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3744   # is not polluted with repeated "-I."
3745   am__isrc=' -I$(srcdir)'
3746   # test to see if srcdir already configured
3747   if test -f $srcdir/config.status; then
3748     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3749   fi
3750 fi
3751
3752 # test whether we have cygpath
3753 if test -z "$CYGPATH_W"; then
3754   if (cygpath --version) >/dev/null 2>/dev/null; then
3755     CYGPATH_W='cygpath -w'
3756   else
3757     CYGPATH_W=echo
3758   fi
3759 fi
3760
3761
3762 # Define the identity of the package.
3763  PACKAGE='syncevolution'
3764  VERSION='1.3.99.4'
3765
3766
3767 cat >>confdefs.h <<_ACEOF
3768 #define PACKAGE "$PACKAGE"
3769 _ACEOF
3770
3771
3772 cat >>confdefs.h <<_ACEOF
3773 #define VERSION "$VERSION"
3774 _ACEOF
3775
3776 # Some tools Automake needs.
3777
3778 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3779
3780
3781 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3782
3783
3784 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3785
3786
3787 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3788
3789
3790 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3791
3792 # We need awk for the "check" target.  The system "awk" is bad on
3793 # some platforms.
3794 # Always define AMTAR for backward compatibility.  Yes, it's still used
3795 # in the wild :-(  We should find a proper way to deprecate it ...
3796 AMTAR='$${TAR-tar}'
3797
3798
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3800 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3801 # Loop over all known methods to create a tar archive until one works.
3802 _am_tools='gnutar plaintar pax cpio none'
3803 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3804 # Do not fold the above two line into one, because Tru64 sh and
3805 # Solaris sh will not grok spaces in the rhs of `-'.
3806 for _am_tool in $_am_tools
3807 do
3808   case $_am_tool in
3809   gnutar)
3810     for _am_tar in tar gnutar gtar;
3811     do
3812       { echo "$as_me:$LINENO: $_am_tar --version" >&5
3813    ($_am_tar --version) >&5 2>&5
3814    ac_status=$?
3815    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816    (exit $ac_status); } && break
3817     done
3818     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3819     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3820     am__untar="$_am_tar -xf -"
3821     ;;
3822   plaintar)
3823     # Must skip GNU tar: if it does not support --format= it doesn't create
3824     # ustar tarball either.
3825     (tar --version) >/dev/null 2>&1 && continue
3826     am__tar='tar chf - "$$tardir"'
3827     am__tar_='tar chf - "$tardir"'
3828     am__untar='tar xf -'
3829     ;;
3830   pax)
3831     am__tar='pax -L -x ustar -w "$$tardir"'
3832     am__tar_='pax -L -x ustar -w "$tardir"'
3833     am__untar='pax -r'
3834     ;;
3835   cpio)
3836     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3837     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3838     am__untar='cpio -i -H ustar -d'
3839     ;;
3840   none)
3841     am__tar=false
3842     am__tar_=false
3843     am__untar=false
3844     ;;
3845   esac
3846
3847   # If the value was cached, stop now.  We just wanted to have am__tar
3848   # and am__untar set.
3849   test -n "${am_cv_prog_tar_ustar}" && break
3850
3851   # tar/untar a dummy directory, and stop if the command works
3852   rm -rf conftest.dir
3853   mkdir conftest.dir
3854   echo GrepMe > conftest.dir/file
3855   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3856    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3857    ac_status=$?
3858    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859    (exit $ac_status); }
3860   rm -rf conftest.dir
3861   if test -s conftest.tar; then
3862     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3863    ($am__untar <conftest.tar) >&5 2>&5
3864    ac_status=$?
3865    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866    (exit $ac_status); }
3867     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3868   fi
3869 done
3870 rm -rf conftest.dir
3871
3872 if ${am_cv_prog_tar_ustar+:} false; then :
3873   $as_echo_n "(cached) " >&6
3874 else
3875   am_cv_prog_tar_ustar=$_am_tool
3876 fi
3877
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3879 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3880
3881
3882
3883
3884
3885
3886 DEPDIR="${am__leading_dot}deps"
3887
3888 ac_config_commands="$ac_config_commands depfiles"
3889
3890
3891 am_make=${MAKE-make}
3892 cat > confinc << 'END'
3893 am__doit:
3894         @echo this is the am__doit target
3895 .PHONY: am__doit
3896 END
3897 # If we don't find an include directive, just comment out the code.
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3899 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3900 am__include="#"
3901 am__quote=
3902 _am_result=none
3903 # First try GNU make style include.
3904 echo "include confinc" > confmf
3905 # Ignore all kinds of additional output from `make'.
3906 case `$am_make -s -f confmf 2> /dev/null` in #(
3907 *the\ am__doit\ target*)
3908   am__include=include
3909   am__quote=
3910   _am_result=GNU
3911   ;;
3912 esac
3913 # Now try BSD make style include.
3914 if test "$am__include" = "#"; then
3915    echo '.include "confinc"' > confmf
3916    case `$am_make -s -f confmf 2> /dev/null` in #(
3917    *the\ am__doit\ target*)
3918      am__include=.include
3919      am__quote="\""
3920      _am_result=BSD
3921      ;;
3922    esac
3923 fi
3924
3925
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3927 $as_echo "$_am_result" >&6; }
3928 rm -f confinc confmf
3929
3930 # Check whether --enable-dependency-tracking was given.
3931 if test "${enable_dependency_tracking+set}" = set; then :
3932   enableval=$enable_dependency_tracking;
3933 fi
3934
3935 if test "x$enable_dependency_tracking" != xno; then
3936   am_depcomp="$ac_aux_dir/depcomp"
3937   AMDEPBACKSLASH='\'
3938   am__nodep='_no'
3939 fi
3940  if test "x$enable_dependency_tracking" != xno; then
3941   AMDEP_TRUE=
3942   AMDEP_FALSE='#'
3943 else
3944   AMDEP_TRUE='#'
3945   AMDEP_FALSE=
3946 fi
3947
3948
3949 ac_ext=c
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954 if test -n "$ac_tool_prefix"; then
3955   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3956 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958 $as_echo_n "checking for $ac_word... " >&6; }
3959 if ${ac_cv_prog_CC+:} false; then :
3960   $as_echo_n "(cached) " >&6
3961 else
3962   if test -n "$CC"; then
3963   ac_cv_prog_CC="$CC" # Let the user override the test.
3964 else
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH
3967 do
3968   IFS=$as_save_IFS
3969   test -z "$as_dir" && as_dir=.
3970     for ac_exec_ext in '' $ac_executable_extensions; do
3971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3972     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974     break 2
3975   fi
3976 done
3977   done
3978 IFS=$as_save_IFS
3979
3980 fi
3981 fi
3982 CC=$ac_cv_prog_CC
3983 if test -n "$CC"; then
3984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3985 $as_echo "$CC" >&6; }
3986 else
3987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 $as_echo "no" >&6; }
3989 fi
3990
3991
3992 fi
3993 if test -z "$ac_cv_prog_CC"; then
3994   ac_ct_CC=$CC
3995   # Extract the first word of "gcc", so it can be a program name with args.
3996 set dummy gcc; ac_word=$2
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4000   $as_echo_n "(cached) " >&6
4001 else
4002   if test -n "$ac_ct_CC"; then
4003   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4004 else
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4007 do
4008   IFS=$as_save_IFS
4009   test -z "$as_dir" && as_dir=.
4010     for ac_exec_ext in '' $ac_executable_extensions; do
4011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012     ac_cv_prog_ac_ct_CC="gcc"
4013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4014     break 2
4015   fi
4016 done
4017   done
4018 IFS=$as_save_IFS
4019
4020 fi
4021 fi
4022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4023 if test -n "$ac_ct_CC"; then
4024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4025 $as_echo "$ac_ct_CC" >&6; }
4026 else
4027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028 $as_echo "no" >&6; }
4029 fi
4030
4031   if test "x$ac_ct_CC" = x; then
4032     CC=""
4033   else
4034     case $cross_compiling:$ac_tool_warned in
4035 yes:)
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4038 ac_tool_warned=yes ;;
4039 esac
4040     CC=$ac_ct_CC
4041   fi
4042 else
4043   CC="$ac_cv_prog_CC"
4044 fi
4045
4046 if test -z "$CC"; then
4047           if test -n "$ac_tool_prefix"; then
4048     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4049 set dummy ${ac_tool_prefix}cc; ac_word=$2
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051 $as_echo_n "checking for $ac_word... " >&6; }
4052 if ${ac_cv_prog_CC+:} false; then :
4053   $as_echo_n "(cached) " >&6
4054 else
4055   if test -n "$CC"; then
4056   ac_cv_prog_CC="$CC" # Let the user override the test.
4057 else
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 for as_dir in $PATH
4060 do
4061   IFS=$as_save_IFS
4062   test -z "$as_dir" && as_dir=.
4063     for ac_exec_ext in '' $ac_executable_extensions; do
4064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4065     ac_cv_prog_CC="${ac_tool_prefix}cc"
4066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4067     break 2
4068   fi
4069 done
4070   done
4071 IFS=$as_save_IFS
4072
4073 fi
4074 fi
4075 CC=$ac_cv_prog_CC
4076 if test -n "$CC"; then
4077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4078 $as_echo "$CC" >&6; }
4079 else
4080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 $as_echo "no" >&6; }
4082 fi
4083
4084
4085   fi
4086 fi
4087 if test -z "$CC"; then
4088   # Extract the first word of "cc", so it can be a program name with args.
4089 set dummy cc; ac_word=$2
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4091 $as_echo_n "checking for $ac_word... " >&6; }
4092 if ${ac_cv_prog_CC+:} false; then :
4093   $as_echo_n "(cached) " >&6
4094 else
4095   if test -n "$CC"; then
4096   ac_cv_prog_CC="$CC" # Let the user override the test.
4097 else
4098   ac_prog_rejected=no
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4101 do
4102   IFS=$as_save_IFS
4103   test -z "$as_dir" && as_dir=.
4104     for ac_exec_ext in '' $ac_executable_extensions; do
4105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4107        ac_prog_rejected=yes
4108        continue
4109      fi
4110     ac_cv_prog_CC="cc"
4111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112     break 2
4113   fi
4114 done
4115   done
4116 IFS=$as_save_IFS
4117
4118 if test $ac_prog_rejected = yes; then
4119   # We found a bogon in the path, so make sure we never use it.
4120   set dummy $ac_cv_prog_CC
4121   shift
4122   if test $# != 0; then
4123     # We chose a different compiler from the bogus one.
4124     # However, it has the same basename, so the bogon will be chosen
4125     # first if we set CC to just the basename; use the full file name.
4126     shift
4127     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4128   fi
4129 fi
4130 fi
4131 fi
4132 CC=$ac_cv_prog_CC
4133 if test -n "$CC"; then
4134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4135 $as_echo "$CC" >&6; }
4136 else
4137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4138 $as_echo "no" >&6; }
4139 fi
4140
4141
4142 fi
4143 if test -z "$CC"; then
4144   if test -n "$ac_tool_prefix"; then
4145   for ac_prog in cl.exe
4146   do
4147     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4148 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150 $as_echo_n "checking for $ac_word... " >&6; }
4151 if ${ac_cv_prog_CC+:} false; then :
4152   $as_echo_n "(cached) " >&6
4153 else
4154   if test -n "$CC"; then
4155   ac_cv_prog_CC="$CC" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160   IFS=$as_save_IFS
4161   test -z "$as_dir" && as_dir=.
4162     for ac_exec_ext in '' $ac_executable_extensions; do
4163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166     break 2
4167   fi
4168 done
4169   done
4170 IFS=$as_save_IFS
4171
4172 fi
4173 fi
4174 CC=$ac_cv_prog_CC
4175 if test -n "$CC"; then
4176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4177 $as_echo "$CC" >&6; }
4178 else
4179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 $as_echo "no" >&6; }
4181 fi
4182
4183
4184     test -n "$CC" && break
4185   done
4186 fi
4187 if test -z "$CC"; then
4188   ac_ct_CC=$CC
4189   for ac_prog in cl.exe
4190 do
4191   # Extract the first word of "$ac_prog", so it can be a program name with args.
4192 set dummy $ac_prog; 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_ac_ct_CC+:} false; then :
4196   $as_echo_n "(cached) " >&6
4197 else
4198   if test -n "$ac_ct_CC"; then
4199   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4203 do
4204   IFS=$as_save_IFS
4205   test -z "$as_dir" && as_dir=.
4206     for ac_exec_ext in '' $ac_executable_extensions; do
4207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4208     ac_cv_prog_ac_ct_CC="$ac_prog"
4209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210     break 2
4211   fi
4212 done
4213   done
4214 IFS=$as_save_IFS
4215
4216 fi
4217 fi
4218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4219 if test -n "$ac_ct_CC"; then
4220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4221 $as_echo "$ac_ct_CC" >&6; }
4222 else
4223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 $as_echo "no" >&6; }
4225 fi
4226
4227
4228   test -n "$ac_ct_CC" && break
4229 done
4230
4231   if test "x$ac_ct_CC" = x; then
4232     CC=""
4233   else
4234     case $cross_compiling:$ac_tool_warned in
4235 yes:)
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4238 ac_tool_warned=yes ;;
4239 esac
4240     CC=$ac_ct_CC
4241   fi
4242 fi
4243
4244 fi
4245
4246
4247 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4249 as_fn_error $? "no acceptable C compiler found in \$PATH
4250 See \`config.log' for more details" "$LINENO" 5; }
4251
4252 # Provide some information about the compiler.
4253 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4254 set X $ac_compile
4255 ac_compiler=$2
4256 for ac_option in --version -v -V -qversion; do
4257   { { ac_try="$ac_compiler $ac_option >&5"
4258 case "(($ac_try" in
4259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260   *) ac_try_echo=$ac_try;;
4261 esac
4262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4263 $as_echo "$ac_try_echo"; } >&5
4264   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4265   ac_status=$?
4266   if test -s conftest.err; then
4267     sed '10a\
4268 ... rest of stderr output deleted ...
4269          10q' conftest.err >conftest.er1
4270     cat conftest.er1 >&5
4271   fi
4272   rm -f conftest.er1 conftest.err
4273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4274   test $ac_status = 0; }
4275 done
4276
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h.  */
4279
4280 int
4281 main ()
4282 {
4283
4284   ;
4285   return 0;
4286 }
4287 _ACEOF
4288 ac_clean_files_save=$ac_clean_files
4289 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4290 # Try to create an executable without -o first, disregard a.out.
4291 # It will help us diagnose broken compilers, and finding out an intuition
4292 # of exeext.
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4294 $as_echo_n "checking whether the C compiler works... " >&6; }
4295 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4296
4297 # The possible output files:
4298 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4299
4300 ac_rmfiles=
4301 for ac_file in $ac_files
4302 do
4303   case $ac_file in
4304     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4305     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4306   esac
4307 done
4308 rm -f $ac_rmfiles
4309
4310 if { { ac_try="$ac_link_default"
4311 case "(($ac_try" in
4312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313   *) ac_try_echo=$ac_try;;
4314 esac
4315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4316 $as_echo "$ac_try_echo"; } >&5
4317   (eval "$ac_link_default") 2>&5
4318   ac_status=$?
4319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320   test $ac_status = 0; }; then :
4321   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4322 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4323 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4324 # so that the user can short-circuit this test for compilers unknown to
4325 # Autoconf.
4326 for ac_file in $ac_files ''
4327 do
4328   test -f "$ac_file" || continue
4329   case $ac_file in
4330     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4331         ;;
4332     [ab].out )
4333         # We found the default executable, but exeext='' is most
4334         # certainly right.
4335         break;;
4336     *.* )
4337         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4338         then :; else
4339            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4340         fi
4341         # We set ac_cv_exeext here because the later test for it is not
4342         # safe: cross compilers may not add the suffix if given an `-o'
4343         # argument, so we may need to know it at that point already.
4344         # Even if this section looks crufty: it has the advantage of
4345         # actually working.
4346         break;;
4347     * )
4348         break;;
4349   esac
4350 done
4351 test "$ac_cv_exeext" = no && ac_cv_exeext=
4352
4353 else
4354   ac_file=''
4355 fi
4356 if test -z "$ac_file"; then :
4357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4359 $as_echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4361
4362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364 as_fn_error 77 "C compiler cannot create executables
4365 See \`config.log' for more details" "$LINENO" 5; }
4366 else
4367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4368 $as_echo "yes" >&6; }
4369 fi
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4371 $as_echo_n "checking for C compiler default output file name... " >&6; }
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4373 $as_echo "$ac_file" >&6; }
4374 ac_exeext=$ac_cv_exeext
4375
4376 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4377 ac_clean_files=$ac_clean_files_save
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4379 $as_echo_n "checking for suffix of executables... " >&6; }
4380 if { { ac_try="$ac_link"
4381 case "(($ac_try" in
4382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383   *) ac_try_echo=$ac_try;;
4384 esac
4385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4386 $as_echo "$ac_try_echo"; } >&5
4387   (eval "$ac_link") 2>&5
4388   ac_status=$?
4389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390   test $ac_status = 0; }; then :
4391   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4392 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4393 # work properly (i.e., refer to `conftest.exe'), while it won't with
4394 # `rm'.
4395 for ac_file in conftest.exe conftest conftest.*; do
4396   test -f "$ac_file" || continue
4397   case $ac_file in
4398     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4399     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4400           break;;
4401     * ) break;;
4402   esac
4403 done
4404 else
4405   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4407 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4408 See \`config.log' for more details" "$LINENO" 5; }
4409 fi
4410 rm -f conftest conftest$ac_cv_exeext
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4412 $as_echo "$ac_cv_exeext" >&6; }
4413
4414 rm -f conftest.$ac_ext
4415 EXEEXT=$ac_cv_exeext
4416 ac_exeext=$EXEEXT
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h.  */
4419 #include <stdio.h>
4420 int
4421 main ()
4422 {
4423 FILE *f = fopen ("conftest.out", "w");
4424  return ferror (f) || fclose (f) != 0;
4425
4426   ;
4427   return 0;
4428 }
4429 _ACEOF
4430 ac_clean_files="$ac_clean_files conftest.out"
4431 # Check that the compiler produces executables we can run.  If not, either
4432 # the compiler is broken, or we cross compile.
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4434 $as_echo_n "checking whether we are cross compiling... " >&6; }
4435 if test "$cross_compiling" != yes; then
4436   { { ac_try="$ac_link"
4437 case "(($ac_try" in
4438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439   *) ac_try_echo=$ac_try;;
4440 esac
4441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442 $as_echo "$ac_try_echo"; } >&5
4443   (eval "$ac_link") 2>&5
4444   ac_status=$?
4445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446   test $ac_status = 0; }
4447   if { ac_try='./conftest$ac_cv_exeext'
4448   { { case "(($ac_try" in
4449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450   *) ac_try_echo=$ac_try;;
4451 esac
4452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4453 $as_echo "$ac_try_echo"; } >&5
4454   (eval "$ac_try") 2>&5
4455   ac_status=$?
4456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457   test $ac_status = 0; }; }; then
4458     cross_compiling=no
4459   else
4460     if test "$cross_compiling" = maybe; then
4461         cross_compiling=yes
4462     else
4463         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4465 as_fn_error $? "cannot run C compiled programs.
4466 If you meant to cross compile, use \`--host'.
4467 See \`config.log' for more details" "$LINENO" 5; }
4468     fi
4469   fi
4470 fi
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4472 $as_echo "$cross_compiling" >&6; }
4473
4474 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4475 ac_clean_files=$ac_clean_files_save
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4477 $as_echo_n "checking for suffix of object files... " >&6; }
4478 if ${ac_cv_objext+:} false; then :
4479   $as_echo_n "(cached) " >&6
4480 else
4481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h.  */
4483
4484 int
4485 main ()
4486 {
4487
4488   ;
4489   return 0;
4490 }
4491 _ACEOF
4492 rm -f conftest.o conftest.obj
4493 if { { ac_try="$ac_compile"
4494 case "(($ac_try" in
4495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496   *) ac_try_echo=$ac_try;;
4497 esac
4498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499 $as_echo "$ac_try_echo"; } >&5
4500   (eval "$ac_compile") 2>&5
4501   ac_status=$?
4502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503   test $ac_status = 0; }; then :
4504   for ac_file in conftest.o conftest.obj conftest.*; do
4505   test -f "$ac_file" || continue;
4506   case $ac_file in
4507     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4508     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4509        break;;
4510   esac
4511 done
4512 else
4513   $as_echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4515
4516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4518 as_fn_error $? "cannot compute suffix of object files: cannot compile
4519 See \`config.log' for more details" "$LINENO" 5; }
4520 fi
4521 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4522 fi
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4524 $as_echo "$ac_cv_objext" >&6; }
4525 OBJEXT=$ac_cv_objext
4526 ac_objext=$OBJEXT
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4528 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4529 if ${ac_cv_c_compiler_gnu+:} false; then :
4530   $as_echo_n "(cached) " >&6
4531 else
4532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h.  */
4534
4535 int
4536 main ()
4537 {
4538 #ifndef __GNUC__
4539        choke me
4540 #endif
4541
4542   ;
4543   return 0;
4544 }
4545 _ACEOF
4546 if ac_fn_c_try_compile "$LINENO"; then :
4547   ac_compiler_gnu=yes
4548 else
4549   ac_compiler_gnu=no
4550 fi
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4553
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4556 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4557 if test $ac_compiler_gnu = yes; then
4558   GCC=yes
4559 else
4560   GCC=
4561 fi
4562 ac_test_CFLAGS=${CFLAGS+set}
4563 ac_save_CFLAGS=$CFLAGS
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4565 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4566 if ${ac_cv_prog_cc_g+:} false; then :
4567   $as_echo_n "(cached) " >&6
4568 else
4569   ac_save_c_werror_flag=$ac_c_werror_flag
4570    ac_c_werror_flag=yes
4571    ac_cv_prog_cc_g=no
4572    CFLAGS="-g"
4573    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h.  */
4575
4576 int
4577 main ()
4578 {
4579
4580   ;
4581   return 0;
4582 }
4583 _ACEOF
4584 if ac_fn_c_try_compile "$LINENO"; then :
4585   ac_cv_prog_cc_g=yes
4586 else
4587   CFLAGS=""
4588       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h.  */
4590
4591 int
4592 main ()
4593 {
4594
4595   ;
4596   return 0;
4597 }
4598 _ACEOF
4599 if ac_fn_c_try_compile "$LINENO"; then :
4600
4601 else
4602   ac_c_werror_flag=$ac_save_c_werror_flag
4603          CFLAGS="-g"
4604          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h.  */
4606
4607 int
4608 main ()
4609 {
4610
4611   ;
4612   return 0;
4613 }
4614 _ACEOF
4615 if ac_fn_c_try_compile "$LINENO"; then :
4616   ac_cv_prog_cc_g=yes
4617 fi
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 fi
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 fi
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623    ac_c_werror_flag=$ac_save_c_werror_flag
4624 fi
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4626 $as_echo "$ac_cv_prog_cc_g" >&6; }
4627 if test "$ac_test_CFLAGS" = set; then
4628   CFLAGS=$ac_save_CFLAGS
4629 elif test $ac_cv_prog_cc_g = yes; then
4630   if test "$GCC" = yes; then
4631     CFLAGS="-g -O2"
4632   else
4633     CFLAGS="-g"
4634   fi
4635 else
4636   if test "$GCC" = yes; then
4637     CFLAGS="-O2"
4638   else
4639     CFLAGS=
4640   fi
4641 fi
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4643 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4644 if ${ac_cv_prog_cc_c89+:} false; then :
4645   $as_echo_n "(cached) " >&6
4646 else
4647   ac_cv_prog_cc_c89=no
4648 ac_save_CC=$CC
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h.  */
4651 #include <stdarg.h>
4652 #include <stdio.h>
4653 struct stat;
4654 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4655 struct buf { int x; };
4656 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4657 static char *e (p, i)
4658      char **p;
4659      int i;
4660 {
4661   return p[i];
4662 }
4663 static char *f (char * (*g) (char **, int), char **p, ...)
4664 {
4665   char *s;
4666   va_list v;
4667   va_start (v,p);
4668   s = g (p, va_arg (v,int));
4669   va_end (v);
4670   return s;
4671 }
4672
4673 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4674    function prototypes and stuff, but not '\xHH' hex character constants.
4675    These don't provoke an error unfortunately, instead are silently treated
4676    as 'x'.  The following induces an error, until -std is added to get
4677    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4678    array size at least.  It's necessary to write '\x00'==0 to get something
4679    that's true only with -std.  */
4680 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4681
4682 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4683    inside strings and character constants.  */
4684 #define FOO(x) 'x'
4685 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4686
4687 int test (int i, double x);
4688 struct s1 {int (*f) (int a);};
4689 struct s2 {int (*f) (double a);};
4690 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4691 int argc;
4692 char **argv;
4693 int
4694 main ()
4695 {
4696 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4697   ;
4698   return 0;
4699 }
4700 _ACEOF
4701 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4702         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4703 do
4704   CC="$ac_save_CC $ac_arg"
4705   if ac_fn_c_try_compile "$LINENO"; then :
4706   ac_cv_prog_cc_c89=$ac_arg
4707 fi
4708 rm -f core conftest.err conftest.$ac_objext
4709   test "x$ac_cv_prog_cc_c89" != "xno" && break
4710 done
4711 rm -f conftest.$ac_ext
4712 CC=$ac_save_CC
4713
4714 fi
4715 # AC_CACHE_VAL
4716 case "x$ac_cv_prog_cc_c89" in
4717   x)
4718     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4719 $as_echo "none needed" >&6; } ;;
4720   xno)
4721     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4722 $as_echo "unsupported" >&6; } ;;
4723   *)
4724     CC="$CC $ac_cv_prog_cc_c89"
4725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4726 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4727 esac
4728 if test "x$ac_cv_prog_cc_c89" != xno; then :
4729
4730 fi
4731
4732 ac_ext=c
4733 ac_cpp='$CPP $CPPFLAGS'
4734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737
4738 depcc="$CC"   am_compiler_list=
4739
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4741 $as_echo_n "checking dependency style of $depcc... " >&6; }
4742 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4743   $as_echo_n "(cached) " >&6
4744 else
4745   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4746   # We make a subdir and do the tests there.  Otherwise we can end up
4747   # making bogus files that we don't know about and never remove.  For
4748   # instance it was reported that on HP-UX the gcc test will end up
4749   # making a dummy file named `D' -- because `-MD' means `put the output
4750   # in D'.
4751   rm -rf conftest.dir
4752   mkdir conftest.dir
4753   # Copy depcomp to subdir because otherwise we won't find it if we're
4754   # using a relative directory.
4755   cp "$am_depcomp" conftest.dir
4756   cd conftest.dir
4757   # We will build objects and dependencies in a subdirectory because
4758   # it helps to detect inapplicable dependency modes.  For instance
4759   # both Tru64's cc and ICC support -MD to output dependencies as a
4760   # side effect of compilation, but ICC will put the dependencies in
4761   # the current directory while Tru64 will put them in the object
4762   # directory.
4763   mkdir sub
4764
4765   am_cv_CC_dependencies_compiler_type=none
4766   if test "$am_compiler_list" = ""; then
4767      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4768   fi
4769   am__universal=false
4770   case " $depcc " in #(
4771      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4772      esac
4773
4774   for depmode in $am_compiler_list; do
4775     # Setup a source with many dependencies, because some compilers
4776     # like to wrap large dependency lists on column 80 (with \), and
4777     # we should not choose a depcomp mode which is confused by this.
4778     #
4779     # We need to recreate these files for each test, as the compiler may
4780     # overwrite some of them when testing with obscure command lines.
4781     # This happens at least with the AIX C compiler.
4782     : > sub/conftest.c
4783     for i in 1 2 3 4 5 6; do
4784       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4785       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4786       # Solaris 8's {/usr,}/bin/sh.
4787       touch sub/conftst$i.h
4788     done
4789     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4790
4791     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4792     # mode.  It turns out that the SunPro C++ compiler does not properly
4793     # handle `-M -o', and we need to detect this.  Also, some Intel
4794     # versions had trouble with output in subdirs
4795     am__obj=sub/conftest.${OBJEXT-o}
4796     am__minus_obj="-o $am__obj"
4797     case $depmode in
4798     gcc)
4799       # This depmode causes a compiler race in universal mode.
4800       test "$am__universal" = false || continue
4801       ;;
4802     nosideeffect)
4803       # after this tag, mechanisms are not by side-effect, so they'll
4804       # only be used when explicitly requested
4805       if test "x$enable_dependency_tracking" = xyes; then
4806         continue
4807       else
4808         break
4809       fi
4810       ;;
4811     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4812       # This compiler won't grok `-c -o', but also, the minuso test has
4813       # not run yet.  These depmodes are late enough in the game, and
4814       # so weak that their functioning should not be impacted.
4815       am__obj=conftest.${OBJEXT-o}
4816       am__minus_obj=
4817       ;;
4818     none) break ;;
4819     esac
4820     if depmode=$depmode \
4821        source=sub/conftest.c object=$am__obj \
4822        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4823        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4824          >/dev/null 2>conftest.err &&
4825        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4826        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4827        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4828        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4829       # icc doesn't choke on unknown options, it will just issue warnings
4830       # or remarks (even with -Werror).  So we grep stderr for any message
4831       # that says an option was ignored or not supported.
4832       # When given -MP, icc 7.0 and 7.1 complain thusly:
4833       #   icc: Command line warning: ignoring option '-M'; no argument required
4834       # The diagnosis changed in icc 8.0:
4835       #   icc: Command line remark: option '-MP' not supported
4836       if (grep 'ignoring option' conftest.err ||
4837           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4838         am_cv_CC_dependencies_compiler_type=$depmode
4839         break
4840       fi
4841     fi
4842   done
4843
4844   cd ..
4845   rm -rf conftest.dir
4846 else
4847   am_cv_CC_dependencies_compiler_type=none
4848 fi
4849
4850 fi
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4852 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4853 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4854
4855  if
4856   test "x$enable_dependency_tracking" != xno \
4857   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4858   am__fastdepCC_TRUE=
4859   am__fastdepCC_FALSE='#'
4860 else
4861   am__fastdepCC_TRUE='#'
4862   am__fastdepCC_FALSE=
4863 fi
4864
4865
4866 if test "x$CC" != xcc; then
4867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4868 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4869 else
4870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4871 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4872 fi
4873 set dummy $CC; ac_cc=`$as_echo "$2" |
4874                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4875 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4876   $as_echo_n "(cached) " >&6
4877 else
4878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h.  */
4880
4881 int
4882 main ()
4883 {
4884
4885   ;
4886   return 0;
4887 }
4888 _ACEOF
4889 # Make sure it works both with $CC and with simple cc.
4890 # We do the test twice because some compilers refuse to overwrite an
4891 # existing .o file with -o, though they will create one.
4892 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4893 rm -f conftest2.*
4894 if { { case "(($ac_try" in
4895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896   *) ac_try_echo=$ac_try;;
4897 esac
4898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4899 $as_echo "$ac_try_echo"; } >&5
4900   (eval "$ac_try") 2>&5
4901   ac_status=$?
4902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4903   test $ac_status = 0; } &&
4904    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906   *) ac_try_echo=$ac_try;;
4907 esac
4908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4909 $as_echo "$ac_try_echo"; } >&5
4910   (eval "$ac_try") 2>&5
4911   ac_status=$?
4912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4913   test $ac_status = 0; };
4914 then
4915   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4916   if test "x$CC" != xcc; then
4917     # Test first that cc exists at all.
4918     if { ac_try='cc -c conftest.$ac_ext >&5'
4919   { { case "(($ac_try" in
4920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4921   *) ac_try_echo=$ac_try;;
4922 esac
4923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4924 $as_echo "$ac_try_echo"; } >&5
4925   (eval "$ac_try") 2>&5
4926   ac_status=$?
4927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4928   test $ac_status = 0; }; }; then
4929       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4930       rm -f conftest2.*
4931       if { { case "(($ac_try" in
4932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933   *) ac_try_echo=$ac_try;;
4934 esac
4935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4936 $as_echo "$ac_try_echo"; } >&5
4937   (eval "$ac_try") 2>&5
4938   ac_status=$?
4939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4940   test $ac_status = 0; } &&
4941          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943   *) ac_try_echo=$ac_try;;
4944 esac
4945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4946 $as_echo "$ac_try_echo"; } >&5
4947   (eval "$ac_try") 2>&5
4948   ac_status=$?
4949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4950   test $ac_status = 0; };
4951       then
4952         # cc works too.
4953         :
4954       else
4955         # cc exists but doesn't like -o.
4956         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4957       fi
4958     fi
4959   fi
4960 else
4961   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4962 fi
4963 rm -f core conftest*
4964
4965 fi
4966 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4968 $as_echo "yes" >&6; }
4969 else
4970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971 $as_echo "no" >&6; }
4972
4973 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4974
4975 fi
4976
4977 # FIXME: we rely on the cache variable name because
4978 # there is no other way.
4979 set dummy $CC
4980 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4981 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4982 if test "$am_t" != yes; then
4983    # Losing compiler, so override with the script.
4984    # FIXME: It is wrong to rewrite CC.
4985    # But if we don't then we get into trouble of one sort or another.
4986    # A longer-term fix would be to have automake use am__CC in this case,
4987    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4988    CC="$am_aux_dir/compile $CC"
4989 fi
4990
4991
4992
4993
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4995 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4996     # Check whether --enable-maintainer-mode was given.
4997 if test "${enable_maintainer_mode+set}" = set; then :
4998   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4999 else
5000   USE_MAINTAINER_MODE=yes
5001 fi
5002
5003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5004 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5005    if test $USE_MAINTAINER_MODE = yes; then
5006   MAINTAINER_MODE_TRUE=
5007   MAINTAINER_MODE_FALSE='#'
5008 else
5009   MAINTAINER_MODE_TRUE='#'
5010   MAINTAINER_MODE_FALSE=
5011 fi
5012
5013   MAINT=$MAINTAINER_MODE_TRUE
5014
5015  # needed for nightly builds where reconfiguration fails under certain chroots
5016
5017
5018
5019 ac_config_headers="$ac_config_headers config.h"
5020
5021 enable_dlopen=yes
5022
5023
5024
5025 case `pwd` in
5026   *\ * | *\     *)
5027     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5028 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5029 esac
5030
5031
5032
5033 macro_version='2.4.2'
5034 macro_revision='1.3337'
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048 ltmain="$ac_aux_dir/ltmain.sh"
5049
5050 # Make sure we can run config.sub.
5051 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5052   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5053
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5055 $as_echo_n "checking build system type... " >&6; }
5056 if ${ac_cv_build+:} false; then :
5057   $as_echo_n "(cached) " >&6
5058 else
5059   ac_build_alias=$build_alias
5060 test "x$ac_build_alias" = x &&
5061   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5062 test "x$ac_build_alias" = x &&
5063   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5064 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5065   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5066
5067 fi
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5069 $as_echo "$ac_cv_build" >&6; }
5070 case $ac_cv_build in
5071 *-*-*) ;;
5072 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5073 esac
5074 build=$ac_cv_build
5075 ac_save_IFS=$IFS; IFS='-'
5076 set x $ac_cv_build
5077 shift
5078 build_cpu=$1
5079 build_vendor=$2
5080 shift; shift
5081 # Remember, the first character of IFS is used to create $*,
5082 # except with old shells:
5083 build_os=$*
5084 IFS=$ac_save_IFS
5085 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5086
5087
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5089 $as_echo_n "checking host system type... " >&6; }
5090 if ${ac_cv_host+:} false; then :
5091   $as_echo_n "(cached) " >&6
5092 else
5093   if test "x$host_alias" = x; then
5094   ac_cv_host=$ac_cv_build
5095 else
5096   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5097     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5098 fi
5099
5100 fi
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5102 $as_echo "$ac_cv_host" >&6; }
5103 case $ac_cv_host in
5104 *-*-*) ;;
5105 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5106 esac
5107 host=$ac_cv_host
5108 ac_save_IFS=$IFS; IFS='-'
5109 set x $ac_cv_host
5110 shift
5111 host_cpu=$1
5112 host_vendor=$2
5113 shift; shift
5114 # Remember, the first character of IFS is used to create $*,
5115 # except with old shells:
5116 host_os=$*
5117 IFS=$ac_save_IFS
5118 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5119
5120
5121 # Backslashify metacharacters that are still active within
5122 # double-quoted strings.
5123 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5124
5125 # Same as above, but do not quote variable references.
5126 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5127
5128 # Sed substitution to delay expansion of an escaped shell variable in a
5129 # double_quote_subst'ed string.
5130 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5131
5132 # Sed substitution to delay expansion of an escaped single quote.
5133 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5134
5135 # Sed substitution to avoid accidental globbing in evaled expressions
5136 no_glob_subst='s/\*/\\\*/g'
5137
5138 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5139 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5140 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5141
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5143 $as_echo_n "checking how to print strings... " >&6; }
5144 # Test print first, because it will be a builtin if present.
5145 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5146    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5147   ECHO='print -r --'
5148 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5149   ECHO='printf %s\n'
5150 else
5151   # Use this function as a fallback that always works.
5152   func_fallback_echo ()
5153   {
5154     eval 'cat <<_LTECHO_EOF
5155 $1
5156 _LTECHO_EOF'
5157   }
5158   ECHO='func_fallback_echo'
5159 fi
5160
5161 # func_echo_all arg...
5162 # Invoke $ECHO with all args, space-separated.
5163 func_echo_all ()
5164 {
5165     $ECHO ""
5166 }
5167
5168 case "$ECHO" in
5169   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5170 $as_echo "printf" >&6; } ;;
5171   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5172 $as_echo "print -r" >&6; } ;;
5173   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5174 $as_echo "cat" >&6; } ;;
5175 esac
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5191 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5192 if ${ac_cv_path_SED+:} false; then :
5193   $as_echo_n "(cached) " >&6
5194 else
5195             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5196      for ac_i in 1 2 3 4 5 6 7; do
5197        ac_script="$ac_script$as_nl$ac_script"
5198      done
5199      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5200      { ac_script=; unset ac_script;}
5201      if test -z "$SED"; then
5202   ac_path_SED_found=false
5203   # Loop through the user's path and test for each of PROGNAME-LIST
5204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5206 do
5207   IFS=$as_save_IFS
5208   test -z "$as_dir" && as_dir=.
5209     for ac_prog in sed gsed; do
5210     for ac_exec_ext in '' $ac_executable_extensions; do
5211       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5212       as_fn_executable_p "$ac_path_SED" || continue
5213 # Check for GNU ac_path_SED and select it if it is found.
5214   # Check for GNU $ac_path_SED
5215 case `"$ac_path_SED" --version 2>&1` in
5216 *GNU*)
5217   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5218 *)
5219   ac_count=0
5220   $as_echo_n 0123456789 >"conftest.in"
5221   while :
5222   do
5223     cat "conftest.in" "conftest.in" >"conftest.tmp"
5224     mv "conftest.tmp" "conftest.in"
5225     cp "conftest.in" "conftest.nl"
5226     $as_echo '' >> "conftest.nl"
5227     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5228     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5229     as_fn_arith $ac_count + 1 && ac_count=$as_val
5230     if test $ac_count -gt ${ac_path_SED_max-0}; then
5231       # Best one so far, save it but keep looking for a better one
5232       ac_cv_path_SED="$ac_path_SED"
5233       ac_path_SED_max=$ac_count
5234     fi
5235     # 10*(2^10) chars as input seems more than enough
5236     test $ac_count -gt 10 && break
5237   done
5238   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5239 esac
5240
5241       $ac_path_SED_found && break 3
5242     done
5243   done
5244   done
5245 IFS=$as_save_IFS
5246   if test -z "$ac_cv_path_SED"; then
5247     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5248   fi
5249 else
5250   ac_cv_path_SED=$SED
5251 fi
5252
5253 fi
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5255 $as_echo "$ac_cv_path_SED" >&6; }
5256  SED="$ac_cv_path_SED"
5257   rm -f conftest.sed
5258
5259 test -z "$SED" && SED=sed
5260 Xsed="$SED -e 1s/^X//"
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5273 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5274 if ${ac_cv_path_GREP+:} false; then :
5275   $as_echo_n "(cached) " >&6
5276 else
5277   if test -z "$GREP"; then
5278   ac_path_GREP_found=false
5279   # Loop through the user's path and test for each of PROGNAME-LIST
5280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5282 do
5283   IFS=$as_save_IFS
5284   test -z "$as_dir" && as_dir=.
5285     for ac_prog in grep ggrep; do
5286     for ac_exec_ext in '' $ac_executable_extensions; do
5287       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5288       as_fn_executable_p "$ac_path_GREP" || continue
5289 # Check for GNU ac_path_GREP and select it if it is found.
5290   # Check for GNU $ac_path_GREP
5291 case `"$ac_path_GREP" --version 2>&1` in
5292 *GNU*)
5293   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5294 *)
5295   ac_count=0
5296   $as_echo_n 0123456789 >"conftest.in"
5297   while :
5298   do
5299     cat "conftest.in" "conftest.in" >"conftest.tmp"
5300     mv "conftest.tmp" "conftest.in"
5301     cp "conftest.in" "conftest.nl"
5302     $as_echo 'GREP' >> "conftest.nl"
5303     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5304     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5305     as_fn_arith $ac_count + 1 && ac_count=$as_val
5306     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5307       # Best one so far, save it but keep looking for a better one
5308       ac_cv_path_GREP="$ac_path_GREP"
5309       ac_path_GREP_max=$ac_count
5310     fi
5311     # 10*(2^10) chars as input seems more than enough
5312     test $ac_count -gt 10 && break
5313   done
5314   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5315 esac
5316
5317       $ac_path_GREP_found && break 3
5318     done
5319   done
5320   done
5321 IFS=$as_save_IFS
5322   if test -z "$ac_cv_path_GREP"; then
5323     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5324   fi
5325 else
5326   ac_cv_path_GREP=$GREP
5327 fi
5328
5329 fi
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5331 $as_echo "$ac_cv_path_GREP" >&6; }
5332  GREP="$ac_cv_path_GREP"
5333
5334
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5336 $as_echo_n "checking for egrep... " >&6; }
5337 if ${ac_cv_path_EGREP+:} false; then :
5338   $as_echo_n "(cached) " >&6
5339 else
5340   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5341    then ac_cv_path_EGREP="$GREP -E"
5342    else
5343      if test -z "$EGREP"; then
5344   ac_path_EGREP_found=false
5345   # Loop through the user's path and test for each of PROGNAME-LIST
5346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5348 do
5349   IFS=$as_save_IFS
5350   test -z "$as_dir" && as_dir=.
5351     for ac_prog in egrep; do
5352     for ac_exec_ext in '' $ac_executable_extensions; do
5353       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5354       as_fn_executable_p "$ac_path_EGREP" || continue
5355 # Check for GNU ac_path_EGREP and select it if it is found.
5356   # Check for GNU $ac_path_EGREP
5357 case `"$ac_path_EGREP" --version 2>&1` in
5358 *GNU*)
5359   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5360 *)
5361   ac_count=0
5362   $as_echo_n 0123456789 >"conftest.in"
5363   while :
5364   do
5365     cat "conftest.in" "conftest.in" >"conftest.tmp"
5366     mv "conftest.tmp" "conftest.in"
5367     cp "conftest.in" "conftest.nl"
5368     $as_echo 'EGREP' >> "conftest.nl"
5369     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5370     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5371     as_fn_arith $ac_count + 1 && ac_count=$as_val
5372     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5373       # Best one so far, save it but keep looking for a better one
5374       ac_cv_path_EGREP="$ac_path_EGREP"
5375       ac_path_EGREP_max=$ac_count
5376     fi
5377     # 10*(2^10) chars as input seems more than enough
5378     test $ac_count -gt 10 && break
5379   done
5380   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5381 esac
5382
5383       $ac_path_EGREP_found && break 3
5384     done
5385   done
5386   done
5387 IFS=$as_save_IFS
5388   if test -z "$ac_cv_path_EGREP"; then
5389     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5390   fi
5391 else
5392   ac_cv_path_EGREP=$EGREP
5393 fi
5394
5395    fi
5396 fi
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5398 $as_echo "$ac_cv_path_EGREP" >&6; }
5399  EGREP="$ac_cv_path_EGREP"
5400
5401
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5403 $as_echo_n "checking for fgrep... " >&6; }
5404 if ${ac_cv_path_FGREP+:} false; then :
5405   $as_echo_n "(cached) " >&6
5406 else
5407   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5408    then ac_cv_path_FGREP="$GREP -F"
5409    else
5410      if test -z "$FGREP"; then
5411   ac_path_FGREP_found=false
5412   # Loop through the user's path and test for each of PROGNAME-LIST
5413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5415 do
5416   IFS=$as_save_IFS
5417   test -z "$as_dir" && as_dir=.
5418     for ac_prog in fgrep; do
5419     for ac_exec_ext in '' $ac_executable_extensions; do
5420       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5421       as_fn_executable_p "$ac_path_FGREP" || continue
5422 # Check for GNU ac_path_FGREP and select it if it is found.
5423   # Check for GNU $ac_path_FGREP
5424 case `"$ac_path_FGREP" --version 2>&1` in
5425 *GNU*)
5426   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5427 *)
5428   ac_count=0
5429   $as_echo_n 0123456789 >"conftest.in"
5430   while :
5431   do
5432     cat "conftest.in" "conftest.in" >"conftest.tmp"
5433     mv "conftest.tmp" "conftest.in"
5434     cp "conftest.in" "conftest.nl"
5435     $as_echo 'FGREP' >> "conftest.nl"
5436     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5437     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5438     as_fn_arith $ac_count + 1 && ac_count=$as_val
5439     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5440       # Best one so far, save it but keep looking for a better one
5441       ac_cv_path_FGREP="$ac_path_FGREP"
5442       ac_path_FGREP_max=$ac_count
5443     fi
5444     # 10*(2^10) chars as input seems more than enough
5445     test $ac_count -gt 10 && break
5446   done
5447   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5448 esac
5449
5450       $ac_path_FGREP_found && break 3
5451     done
5452   done
5453   done
5454 IFS=$as_save_IFS
5455   if test -z "$ac_cv_path_FGREP"; then
5456     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5457   fi
5458 else
5459   ac_cv_path_FGREP=$FGREP
5460 fi
5461
5462    fi
5463 fi
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5465 $as_echo "$ac_cv_path_FGREP" >&6; }
5466  FGREP="$ac_cv_path_FGREP"
5467
5468
5469 test -z "$GREP" && GREP=grep
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489 # Check whether --with-gnu-ld was given.
5490 if test "${with_gnu_ld+set}" = set; then :
5491   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5492 else
5493   with_gnu_ld=no
5494 fi
5495
5496 ac_prog=ld
5497 if test "$GCC" = yes; then
5498   # Check if gcc -print-prog-name=ld gives a path.
5499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5500 $as_echo_n "checking for ld used by $CC... " >&6; }
5501   case $host in
5502   *-*-mingw*)
5503     # gcc leaves a trailing carriage return which upsets mingw
5504     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5505   *)
5506     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5507   esac
5508   case $ac_prog in
5509     # Accept absolute paths.
5510     [\\/]* | ?:[\\/]*)
5511       re_direlt='/[^/][^/]*/\.\./'
5512       # Canonicalize the pathname of ld
5513       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5514       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5515         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5516       done
5517       test -z "$LD" && LD="$ac_prog"
5518       ;;
5519   "")
5520     # If it fails, then pretend we aren't using GCC.
5521     ac_prog=ld
5522     ;;
5523   *)
5524     # If it is relative, then search for the first ld in PATH.
5525     with_gnu_ld=unknown
5526     ;;
5527   esac
5528 elif test "$with_gnu_ld" = yes; then
5529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5530 $as_echo_n "checking for GNU ld... " >&6; }
5531 else
5532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5533 $as_echo_n "checking for non-GNU ld... " >&6; }
5534 fi
5535 if ${lt_cv_path_LD+:} false; then :
5536   $as_echo_n "(cached) " >&6
5537 else
5538   if test -z "$LD"; then
5539   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5540   for ac_dir in $PATH; do
5541     IFS="$lt_save_ifs"
5542     test -z "$ac_dir" && ac_dir=.
5543     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5544       lt_cv_path_LD="$ac_dir/$ac_prog"
5545       # Check to see if the program is GNU ld.  I'd rather use --version,
5546       # but apparently some variants of GNU ld only accept -v.
5547       # Break only if it was the GNU/non-GNU ld that we prefer.
5548       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5549       *GNU* | *'with BFD'*)
5550         test "$with_gnu_ld" != no && break
5551         ;;
5552       *)
5553         test "$with_gnu_ld" != yes && break
5554         ;;
5555       esac
5556     fi
5557   done
5558   IFS="$lt_save_ifs"
5559 else
5560   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5561 fi
5562 fi
5563
5564 LD="$lt_cv_path_LD"
5565 if test -n "$LD"; then
5566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5567 $as_echo "$LD" >&6; }
5568 else
5569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5571 fi
5572 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5574 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5575 if ${lt_cv_prog_gnu_ld+:} false; then :
5576   $as_echo_n "(cached) " >&6
5577 else
5578   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5579 case `$LD -v 2>&1 </dev/null` in
5580 *GNU* | *'with BFD'*)
5581   lt_cv_prog_gnu_ld=yes
5582   ;;
5583 *)
5584   lt_cv_prog_gnu_ld=no
5585   ;;
5586 esac
5587 fi
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5589 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5590 with_gnu_ld=$lt_cv_prog_gnu_ld
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5601 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5602 if ${lt_cv_path_NM+:} false; then :
5603   $as_echo_n "(cached) " >&6
5604 else
5605   if test -n "$NM"; then
5606   # Let the user override the test.
5607   lt_cv_path_NM="$NM"
5608 else
5609   lt_nm_to_check="${ac_tool_prefix}nm"
5610   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5611     lt_nm_to_check="$lt_nm_to_check nm"
5612   fi
5613   for lt_tmp_nm in $lt_nm_to_check; do
5614     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5615     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5616       IFS="$lt_save_ifs"
5617       test -z "$ac_dir" && ac_dir=.
5618       tmp_nm="$ac_dir/$lt_tmp_nm"
5619       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5620         # Check to see if the nm accepts a BSD-compat flag.
5621         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5622         #   nm: unknown option "B" ignored
5623         # Tru64's nm complains that /dev/null is an invalid object file
5624         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5625         */dev/null* | *'Invalid file or object type'*)
5626           lt_cv_path_NM="$tmp_nm -B"
5627           break
5628           ;;
5629         *)
5630           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5631           */dev/null*)
5632             lt_cv_path_NM="$tmp_nm -p"
5633             break
5634             ;;
5635           *)
5636             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5637             continue # so that we can try to find one that supports BSD flags
5638             ;;
5639           esac
5640           ;;
5641         esac
5642       fi
5643     done
5644     IFS="$lt_save_ifs"
5645   done
5646   : ${lt_cv_path_NM=no}
5647 fi
5648 fi
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5650 $as_echo "$lt_cv_path_NM" >&6; }
5651 if test "$lt_cv_path_NM" != "no"; then
5652   NM="$lt_cv_path_NM"
5653 else
5654   # Didn't find any BSD compatible name lister, look for dumpbin.
5655   if test -n "$DUMPBIN"; then :
5656     # Let the user override the test.
5657   else
5658     if test -n "$ac_tool_prefix"; then
5659   for ac_prog in dumpbin "link -dump"
5660   do
5661     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if ${ac_cv_prog_DUMPBIN+:} false; then :
5666   $as_echo_n "(cached) " >&6
5667 else
5668   if test -n "$DUMPBIN"; then
5669   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5670 else
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5673 do
5674   IFS=$as_save_IFS
5675   test -z "$as_dir" && as_dir=.
5676     for ac_exec_ext in '' $ac_executable_extensions; do
5677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680     break 2
5681   fi
5682 done
5683   done
5684 IFS=$as_save_IFS
5685
5686 fi
5687 fi
5688 DUMPBIN=$ac_cv_prog_DUMPBIN
5689 if test -n "$DUMPBIN"; then
5690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5691 $as_echo "$DUMPBIN" >&6; }
5692 else
5693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5695 fi
5696
5697
5698     test -n "$DUMPBIN" && break
5699   done
5700 fi
5701 if test -z "$DUMPBIN"; then
5702   ac_ct_DUMPBIN=$DUMPBIN
5703   for ac_prog in dumpbin "link -dump"
5704 do
5705   # Extract the first word of "$ac_prog", so it can be a program name with args.
5706 set dummy $ac_prog; ac_word=$2
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 $as_echo_n "checking for $ac_word... " >&6; }
5709 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5710   $as_echo_n "(cached) " >&6
5711 else
5712   if test -n "$ac_ct_DUMPBIN"; then
5713   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5714 else
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 for as_dir in $PATH
5717 do
5718   IFS=$as_save_IFS
5719   test -z "$as_dir" && as_dir=.
5720     for ac_exec_ext in '' $ac_executable_extensions; do
5721   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5722     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724     break 2
5725   fi
5726 done
5727   done
5728 IFS=$as_save_IFS
5729
5730 fi
5731 fi
5732 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5733 if test -n "$ac_ct_DUMPBIN"; then
5734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5735 $as_echo "$ac_ct_DUMPBIN" >&6; }
5736 else
5737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5739 fi
5740
5741
5742   test -n "$ac_ct_DUMPBIN" && break
5743 done
5744
5745   if test "x$ac_ct_DUMPBIN" = x; then
5746     DUMPBIN=":"
5747   else
5748     case $cross_compiling:$ac_tool_warned in
5749 yes:)
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5752 ac_tool_warned=yes ;;
5753 esac
5754     DUMPBIN=$ac_ct_DUMPBIN
5755   fi
5756 fi
5757
5758     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5759     *COFF*)
5760       DUMPBIN="$DUMPBIN -symbols"
5761       ;;
5762     *)
5763       DUMPBIN=:
5764       ;;
5765     esac
5766   fi
5767
5768   if test "$DUMPBIN" != ":"; then
5769     NM="$DUMPBIN"
5770   fi
5771 fi
5772 test -z "$NM" && NM=nm
5773
5774
5775
5776
5777
5778
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5780 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5781 if ${lt_cv_nm_interface+:} false; then :
5782   $as_echo_n "(cached) " >&6
5783 else
5784   lt_cv_nm_interface="BSD nm"
5785   echo "int some_variable = 0;" > conftest.$ac_ext
5786   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5787   (eval "$ac_compile" 2>conftest.err)
5788   cat conftest.err >&5
5789   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5790   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5791   cat conftest.err >&5
5792   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5793   cat conftest.out >&5
5794   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5795     lt_cv_nm_interface="MS dumpbin"
5796   fi
5797   rm -f conftest*
5798 fi
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5800 $as_echo "$lt_cv_nm_interface" >&6; }
5801
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5803 $as_echo_n "checking whether ln -s works... " >&6; }
5804 LN_S=$as_ln_s
5805 if test "$LN_S" = "ln -s"; then
5806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5807 $as_echo "yes" >&6; }
5808 else
5809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5810 $as_echo "no, using $LN_S" >&6; }
5811 fi
5812
5813 # find the maximum length of command line arguments
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5815 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5816 if ${lt_cv_sys_max_cmd_len+:} false; then :
5817   $as_echo_n "(cached) " >&6
5818 else
5819     i=0
5820   teststring="ABCD"
5821
5822   case $build_os in
5823   msdosdjgpp*)
5824     # On DJGPP, this test can blow up pretty badly due to problems in libc
5825     # (any single argument exceeding 2000 bytes causes a buffer overrun
5826     # during glob expansion).  Even if it were fixed, the result of this
5827     # check would be larger than it should be.
5828     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5829     ;;
5830
5831   gnu*)
5832     # Under GNU Hurd, this test is not required because there is
5833     # no limit to the length of command line arguments.
5834     # Libtool will interpret -1 as no limit whatsoever
5835     lt_cv_sys_max_cmd_len=-1;
5836     ;;
5837
5838   cygwin* | mingw* | cegcc*)
5839     # On Win9x/ME, this test blows up -- it succeeds, but takes
5840     # about 5 minutes as the teststring grows exponentially.
5841     # Worse, since 9x/ME are not pre-emptively multitasking,
5842     # you end up with a "frozen" computer, even though with patience
5843     # the test eventually succeeds (with a max line length of 256k).
5844     # Instead, let's just punt: use the minimum linelength reported by
5845     # all of the supported platforms: 8192 (on NT/2K/XP).
5846     lt_cv_sys_max_cmd_len=8192;
5847     ;;
5848
5849   mint*)
5850     # On MiNT this can take a long time and run out of memory.
5851     lt_cv_sys_max_cmd_len=8192;
5852     ;;
5853
5854   amigaos*)
5855     # On AmigaOS with pdksh, this test takes hours, literally.
5856     # So we just punt and use a minimum line length of 8192.
5857     lt_cv_sys_max_cmd_len=8192;
5858     ;;
5859
5860   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5861     # This has been around since 386BSD, at least.  Likely further.
5862     if test -x /sbin/sysctl; then
5863       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5864     elif test -x /usr/sbin/sysctl; then
5865       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5866     else
5867       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5868     fi
5869     # And add a safety zone
5870     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5871     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5872     ;;
5873
5874   interix*)
5875     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5876     lt_cv_sys_max_cmd_len=196608
5877     ;;
5878
5879   os2*)
5880     # The test takes a long time on OS/2.
5881     lt_cv_sys_max_cmd_len=8192
5882     ;;
5883
5884   osf*)
5885     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5886     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5887     # nice to cause kernel panics so lets avoid the loop below.
5888     # First set a reasonable default.
5889     lt_cv_sys_max_cmd_len=16384
5890     #
5891     if test -x /sbin/sysconfig; then
5892       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5893         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5894       esac
5895     fi
5896     ;;
5897   sco3.2v5*)
5898     lt_cv_sys_max_cmd_len=102400
5899     ;;
5900   sysv5* | sco5v6* | sysv4.2uw2*)
5901     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5902     if test -n "$kargmax"; then
5903       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5904     else
5905       lt_cv_sys_max_cmd_len=32768
5906     fi
5907     ;;
5908   *)
5909     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5910     if test -n "$lt_cv_sys_max_cmd_len"; then
5911       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5912       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5913     else
5914       # Make teststring a little bigger before we do anything with it.
5915       # a 1K string should be a reasonable start.
5916       for i in 1 2 3 4 5 6 7 8 ; do
5917         teststring=$teststring$teststring
5918       done
5919       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5920       # If test is not a shell built-in, we'll probably end up computing a
5921       # maximum length that is only half of the actual maximum length, but
5922       # we can't tell.
5923       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5924                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5925               test $i != 17 # 1/2 MB should be enough
5926       do
5927         i=`expr $i + 1`
5928         teststring=$teststring$teststring
5929       done
5930       # Only check the string length outside the loop.
5931       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5932       teststring=
5933       # Add a significant safety factor because C++ compilers can tack on
5934       # massive amounts of additional arguments before passing them to the
5935       # linker.  It appears as though 1/2 is a usable value.
5936       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5937     fi
5938     ;;
5939   esac
5940
5941 fi
5942
5943 if test -n $lt_cv_sys_max_cmd_len ; then
5944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5945 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5946 else
5947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5948 $as_echo "none" >&6; }
5949 fi
5950 max_cmd_len=$lt_cv_sys_max_cmd_len
5951
5952
5953
5954
5955
5956
5957 : ${CP="cp -f"}
5958 : ${MV="mv -f"}
5959 : ${RM="rm -f"}
5960
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5962 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5963 # Try some XSI features
5964 xsi_shell=no
5965 ( _lt_dummy="a/b/c"
5966   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5967       = c,a/b,b/c, \
5968     && eval 'test $(( 1 + 1 )) -eq 2 \
5969     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5970   && xsi_shell=yes
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5972 $as_echo "$xsi_shell" >&6; }
5973
5974
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5976 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5977 lt_shell_append=no
5978 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5979     >/dev/null 2>&1 \
5980   && lt_shell_append=yes
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5982 $as_echo "$lt_shell_append" >&6; }
5983
5984
5985 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5986   lt_unset=unset
5987 else
5988   lt_unset=false
5989 fi
5990
5991
5992
5993
5994
5995 # test EBCDIC or ASCII
5996 case `echo X|tr X '\101'` in
5997  A) # ASCII based system
5998     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5999   lt_SP2NL='tr \040 \012'
6000   lt_NL2SP='tr \015\012 \040\040'
6001   ;;
6002  *) # EBCDIC based system
6003   lt_SP2NL='tr \100 \n'
6004   lt_NL2SP='tr \r\n \100\100'
6005   ;;
6006 esac
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6017 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6018 if ${lt_cv_to_host_file_cmd+:} false; then :
6019   $as_echo_n "(cached) " >&6
6020 else
6021   case $host in
6022   *-*-mingw* )
6023     case $build in
6024       *-*-mingw* ) # actually msys
6025         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6026         ;;
6027       *-*-cygwin* )
6028         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6029         ;;
6030       * ) # otherwise, assume *nix
6031         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6032         ;;
6033     esac
6034     ;;
6035   *-*-cygwin* )
6036     case $build in
6037       *-*-mingw* ) # actually msys
6038         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6039         ;;
6040       *-*-cygwin* )
6041         lt_cv_to_host_file_cmd=func_convert_file_noop
6042         ;;
6043       * ) # otherwise, assume *nix
6044         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6045         ;;
6046     esac
6047     ;;
6048   * ) # unhandled hosts (and "normal" native builds)
6049     lt_cv_to_host_file_cmd=func_convert_file_noop
6050     ;;
6051 esac
6052
6053 fi
6054
6055 to_host_file_cmd=$lt_cv_to_host_file_cmd
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6057 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6058
6059
6060
6061
6062
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6064 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6065 if ${lt_cv_to_tool_file_cmd+:} false; then :
6066   $as_echo_n "(cached) " >&6
6067 else
6068   #assume ordinary cross tools, or native build.
6069 lt_cv_to_tool_file_cmd=func_convert_file_noop
6070 case $host in
6071   *-*-mingw* )
6072     case $build in
6073       *-*-mingw* ) # actually msys
6074         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6075         ;;
6076     esac
6077     ;;
6078 esac
6079
6080 fi
6081
6082 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6084 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6085
6086
6087
6088
6089
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6091 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6092 if ${lt_cv_ld_reload_flag+:} false; then :
6093   $as_echo_n "(cached) " >&6
6094 else
6095   lt_cv_ld_reload_flag='-r'
6096 fi
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6098 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6099 reload_flag=$lt_cv_ld_reload_flag
6100 case $reload_flag in
6101 "" | " "*) ;;
6102 *) reload_flag=" $reload_flag" ;;
6103 esac
6104 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6105 case $host_os in
6106   cygwin* | mingw* | pw32* | cegcc*)
6107     if test "$GCC" != yes; then
6108       reload_cmds=false
6109     fi
6110     ;;
6111   darwin*)
6112     if test "$GCC" = yes; then
6113       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6114     else
6115       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6116     fi
6117     ;;
6118 esac
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128 if test -n "$ac_tool_prefix"; then
6129   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6130 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6132 $as_echo_n "checking for $ac_word... " >&6; }
6133 if ${ac_cv_prog_OBJDUMP+:} false; then :
6134   $as_echo_n "(cached) " >&6
6135 else
6136   if test -n "$OBJDUMP"; then
6137   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6138 else
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH
6141 do
6142   IFS=$as_save_IFS
6143   test -z "$as_dir" && as_dir=.
6144     for ac_exec_ext in '' $ac_executable_extensions; do
6145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6146     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6148     break 2
6149   fi
6150 done
6151   done
6152 IFS=$as_save_IFS
6153
6154 fi
6155 fi
6156 OBJDUMP=$ac_cv_prog_OBJDUMP
6157 if test -n "$OBJDUMP"; then
6158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6159 $as_echo "$OBJDUMP" >&6; }
6160 else
6161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 $as_echo "no" >&6; }
6163 fi
6164
6165
6166 fi
6167 if test -z "$ac_cv_prog_OBJDUMP"; then
6168   ac_ct_OBJDUMP=$OBJDUMP
6169   # Extract the first word of "objdump", so it can be a program name with args.
6170 set dummy objdump; ac_word=$2
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172 $as_echo_n "checking for $ac_word... " >&6; }
6173 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6174   $as_echo_n "(cached) " >&6
6175 else
6176   if test -n "$ac_ct_OBJDUMP"; then
6177   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6178 else
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6181 do
6182   IFS=$as_save_IFS
6183   test -z "$as_dir" && as_dir=.
6184     for ac_exec_ext in '' $ac_executable_extensions; do
6185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6186     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188     break 2
6189   fi
6190 done
6191   done
6192 IFS=$as_save_IFS
6193
6194 fi
6195 fi
6196 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6197 if test -n "$ac_ct_OBJDUMP"; then
6198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6199 $as_echo "$ac_ct_OBJDUMP" >&6; }
6200 else
6201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202 $as_echo "no" >&6; }
6203 fi
6204
6205   if test "x$ac_ct_OBJDUMP" = x; then
6206     OBJDUMP="false"
6207   else
6208     case $cross_compiling:$ac_tool_warned in
6209 yes:)
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6212 ac_tool_warned=yes ;;
6213 esac
6214     OBJDUMP=$ac_ct_OBJDUMP
6215   fi
6216 else
6217   OBJDUMP="$ac_cv_prog_OBJDUMP"
6218 fi
6219
6220 test -z "$OBJDUMP" && OBJDUMP=objdump
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6231 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6232 if ${lt_cv_deplibs_check_method+:} false; then :
6233   $as_echo_n "(cached) " >&6
6234 else
6235   lt_cv_file_magic_cmd='$MAGIC_CMD'
6236 lt_cv_file_magic_test_file=
6237 lt_cv_deplibs_check_method='unknown'
6238 # Need to set the preceding variable on all platforms that support
6239 # interlibrary dependencies.
6240 # 'none' -- dependencies not supported.
6241 # `unknown' -- same as none, but documents that we really don't know.
6242 # 'pass_all' -- all dependencies passed with no checks.
6243 # 'test_compile' -- check by making test program.
6244 # 'file_magic [[regex]]' -- check by looking for files in library path
6245 # which responds to the $file_magic_cmd with a given extended regex.
6246 # If you have `file' or equivalent on your system and you're not sure
6247 # whether `pass_all' will *always* work, you probably want this one.
6248
6249 case $host_os in
6250 aix[4-9]*)
6251   lt_cv_deplibs_check_method=pass_all
6252   ;;
6253
6254 beos*)
6255   lt_cv_deplibs_check_method=pass_all
6256   ;;
6257
6258 bsdi[45]*)
6259   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6260   lt_cv_file_magic_cmd='/usr/bin/file -L'
6261   lt_cv_file_magic_test_file=/shlib/libc.so
6262   ;;
6263
6264 cygwin*)
6265   # func_win32_libid is a shell function defined in ltmain.sh
6266   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6267   lt_cv_file_magic_cmd='func_win32_libid'
6268   ;;
6269
6270 mingw* | pw32*)
6271   # Base MSYS/MinGW do not provide the 'file' command needed by
6272   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6273   # unless we find 'file', for example because we are cross-compiling.
6274   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6275   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6276     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6277     lt_cv_file_magic_cmd='func_win32_libid'
6278   else
6279     # Keep this pattern in sync with the one in func_win32_libid.
6280     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6281     lt_cv_file_magic_cmd='$OBJDUMP -f'
6282   fi
6283   ;;
6284
6285 cegcc*)
6286   # use the weaker test based on 'objdump'. See mingw*.
6287   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6288   lt_cv_file_magic_cmd='$OBJDUMP -f'
6289   ;;
6290
6291 darwin* | rhapsody*)
6292   lt_cv_deplibs_check_method=pass_all
6293   ;;
6294
6295 freebsd* | dragonfly*)
6296   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6297     case $host_cpu in
6298     i*86 )
6299       # Not sure whether the presence of OpenBSD here was a mistake.
6300       # Let's accept both of them until this is cleared up.
6301       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6302       lt_cv_file_magic_cmd=/usr/bin/file
6303       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6304       ;;
6305     esac
6306   else
6307     lt_cv_deplibs_check_method=pass_all
6308   fi
6309   ;;
6310
6311 haiku*)
6312   lt_cv_deplibs_check_method=pass_all
6313   ;;
6314
6315 hpux10.20* | hpux11*)
6316   lt_cv_file_magic_cmd=/usr/bin/file
6317   case $host_cpu in
6318   ia64*)
6319     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6320     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6321     ;;
6322   hppa*64*)
6323     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]'
6324     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6325     ;;
6326   *)
6327     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6328     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6329     ;;
6330   esac
6331   ;;
6332
6333 interix[3-9]*)
6334   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6335   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6336   ;;
6337
6338 irix5* | irix6* | nonstopux*)
6339   case $LD in
6340   *-32|*"-32 ") libmagic=32-bit;;
6341   *-n32|*"-n32 ") libmagic=N32;;
6342   *-64|*"-64 ") libmagic=64-bit;;
6343   *) libmagic=never-match;;
6344   esac
6345   lt_cv_deplibs_check_method=pass_all
6346   ;;
6347
6348 # This must be glibc/ELF.
6349 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6350   lt_cv_deplibs_check_method=pass_all
6351   ;;
6352
6353 netbsd* | netbsdelf*-gnu)
6354   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6355     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6356   else
6357     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6358   fi
6359   ;;
6360
6361 newos6*)
6362   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6363   lt_cv_file_magic_cmd=/usr/bin/file
6364   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6365   ;;
6366
6367 *nto* | *qnx*)
6368   lt_cv_deplibs_check_method=pass_all
6369   ;;
6370
6371 openbsd*)
6372   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6373     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6374   else
6375     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6376   fi
6377   ;;
6378
6379 osf3* | osf4* | osf5*)
6380   lt_cv_deplibs_check_method=pass_all
6381   ;;
6382
6383 rdos*)
6384   lt_cv_deplibs_check_method=pass_all
6385   ;;
6386
6387 solaris*)
6388   lt_cv_deplibs_check_method=pass_all
6389   ;;
6390
6391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6392   lt_cv_deplibs_check_method=pass_all
6393   ;;
6394
6395 sysv4 | sysv4.3*)
6396   case $host_vendor in
6397   motorola)
6398     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]'
6399     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6400     ;;
6401   ncr)
6402     lt_cv_deplibs_check_method=pass_all
6403     ;;
6404   sequent)
6405     lt_cv_file_magic_cmd='/bin/file'
6406     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6407     ;;
6408   sni)
6409     lt_cv_file_magic_cmd='/bin/file'
6410     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6411     lt_cv_file_magic_test_file=/lib/libc.so
6412     ;;
6413   siemens)
6414     lt_cv_deplibs_check_method=pass_all
6415     ;;
6416   pc)
6417     lt_cv_deplibs_check_method=pass_all
6418     ;;
6419   esac
6420   ;;
6421
6422 tpf*)
6423   lt_cv_deplibs_check_method=pass_all
6424   ;;
6425 esac
6426
6427 fi
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6429 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6430
6431 file_magic_glob=
6432 want_nocaseglob=no
6433 if test "$build" = "$host"; then
6434   case $host_os in
6435   mingw* | pw32*)
6436     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6437       want_nocaseglob=yes
6438     else
6439       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6440     fi
6441     ;;
6442   esac
6443 fi
6444
6445 file_magic_cmd=$lt_cv_file_magic_cmd
6446 deplibs_check_method=$lt_cv_deplibs_check_method
6447 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470 if test -n "$ac_tool_prefix"; then
6471   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6472 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if ${ac_cv_prog_DLLTOOL+:} false; then :
6476   $as_echo_n "(cached) " >&6
6477 else
6478   if test -n "$DLLTOOL"; then
6479   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484   IFS=$as_save_IFS
6485   test -z "$as_dir" && as_dir=.
6486     for ac_exec_ext in '' $ac_executable_extensions; do
6487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490     break 2
6491   fi
6492 done
6493   done
6494 IFS=$as_save_IFS
6495
6496 fi
6497 fi
6498 DLLTOOL=$ac_cv_prog_DLLTOOL
6499 if test -n "$DLLTOOL"; then
6500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6501 $as_echo "$DLLTOOL" >&6; }
6502 else
6503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6505 fi
6506
6507
6508 fi
6509 if test -z "$ac_cv_prog_DLLTOOL"; then
6510   ac_ct_DLLTOOL=$DLLTOOL
6511   # Extract the first word of "dlltool", so it can be a program name with args.
6512 set dummy dlltool; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6516   $as_echo_n "(cached) " >&6
6517 else
6518   if test -n "$ac_ct_DLLTOOL"; then
6519   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524   IFS=$as_save_IFS
6525   test -z "$as_dir" && as_dir=.
6526     for ac_exec_ext in '' $ac_executable_extensions; do
6527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6528     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530     break 2
6531   fi
6532 done
6533   done
6534 IFS=$as_save_IFS
6535
6536 fi
6537 fi
6538 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6539 if test -n "$ac_ct_DLLTOOL"; then
6540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6541 $as_echo "$ac_ct_DLLTOOL" >&6; }
6542 else
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6545 fi
6546
6547   if test "x$ac_ct_DLLTOOL" = x; then
6548     DLLTOOL="false"
6549   else
6550     case $cross_compiling:$ac_tool_warned in
6551 yes:)
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6554 ac_tool_warned=yes ;;
6555 esac
6556     DLLTOOL=$ac_ct_DLLTOOL
6557   fi
6558 else
6559   DLLTOOL="$ac_cv_prog_DLLTOOL"
6560 fi
6561
6562 test -z "$DLLTOOL" && DLLTOOL=dlltool
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6574 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6575 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6576   $as_echo_n "(cached) " >&6
6577 else
6578   lt_cv_sharedlib_from_linklib_cmd='unknown'
6579
6580 case $host_os in
6581 cygwin* | mingw* | pw32* | cegcc*)
6582   # two different shell functions defined in ltmain.sh
6583   # decide which to use based on capabilities of $DLLTOOL
6584   case `$DLLTOOL --help 2>&1` in
6585   *--identify-strict*)
6586     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6587     ;;
6588   *)
6589     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6590     ;;
6591   esac
6592   ;;
6593 *)
6594   # fallback: assume linklib IS sharedlib
6595   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6596   ;;
6597 esac
6598
6599 fi
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6601 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6602 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6603 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6604
6605
6606
6607
6608
6609
6610
6611
6612 if test -n "$ac_tool_prefix"; then
6613   for ac_prog in ar
6614   do
6615     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618 $as_echo_n "checking for $ac_word... " >&6; }
6619 if ${ac_cv_prog_AR+:} false; then :
6620   $as_echo_n "(cached) " >&6
6621 else
6622   if test -n "$AR"; then
6623   ac_cv_prog_AR="$AR" # Let the user override the test.
6624 else
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628   IFS=$as_save_IFS
6629   test -z "$as_dir" && as_dir=.
6630     for ac_exec_ext in '' $ac_executable_extensions; do
6631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6632     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634     break 2
6635   fi
6636 done
6637   done
6638 IFS=$as_save_IFS
6639
6640 fi
6641 fi
6642 AR=$ac_cv_prog_AR
6643 if test -n "$AR"; then
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6645 $as_echo "$AR" >&6; }
6646 else
6647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6649 fi
6650
6651
6652     test -n "$AR" && break
6653   done
6654 fi
6655 if test -z "$AR"; then
6656   ac_ct_AR=$AR
6657   for ac_prog in ar
6658 do
6659   # Extract the first word of "$ac_prog", so it can be a program name with args.
6660 set dummy $ac_prog; ac_word=$2
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662 $as_echo_n "checking for $ac_word... " >&6; }
6663 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6664   $as_echo_n "(cached) " >&6
6665 else
6666   if test -n "$ac_ct_AR"; then
6667   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6668 else
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in $PATH
6671 do
6672   IFS=$as_save_IFS
6673   test -z "$as_dir" && as_dir=.
6674     for ac_exec_ext in '' $ac_executable_extensions; do
6675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6676     ac_cv_prog_ac_ct_AR="$ac_prog"
6677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678     break 2
6679   fi
6680 done
6681   done
6682 IFS=$as_save_IFS
6683
6684 fi
6685 fi
6686 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6687 if test -n "$ac_ct_AR"; then
6688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6689 $as_echo "$ac_ct_AR" >&6; }
6690 else
6691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 $as_echo "no" >&6; }
6693 fi
6694
6695
6696   test -n "$ac_ct_AR" && break
6697 done
6698
6699   if test "x$ac_ct_AR" = x; then
6700     AR="false"
6701   else
6702     case $cross_compiling:$ac_tool_warned in
6703 yes:)
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6706 ac_tool_warned=yes ;;
6707 esac
6708     AR=$ac_ct_AR
6709   fi
6710 fi
6711
6712 : ${AR=ar}
6713 : ${AR_FLAGS=cru}
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6726 $as_echo_n "checking for archiver @FILE support... " >&6; }
6727 if ${lt_cv_ar_at_file+:} false; then :
6728   $as_echo_n "(cached) " >&6
6729 else
6730   lt_cv_ar_at_file=no
6731    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h.  */
6733
6734 int
6735 main ()
6736 {
6737
6738   ;
6739   return 0;
6740 }
6741 _ACEOF
6742 if ac_fn_c_try_compile "$LINENO"; then :
6743   echo conftest.$ac_objext > conftest.lst
6744       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6745       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6746   (eval $lt_ar_try) 2>&5
6747   ac_status=$?
6748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749   test $ac_status = 0; }
6750       if test "$ac_status" -eq 0; then
6751         # Ensure the archiver fails upon bogus file names.
6752         rm -f conftest.$ac_objext libconftest.a
6753         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6754   (eval $lt_ar_try) 2>&5
6755   ac_status=$?
6756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6757   test $ac_status = 0; }
6758         if test "$ac_status" -ne 0; then
6759           lt_cv_ar_at_file=@
6760         fi
6761       fi
6762       rm -f conftest.* libconftest.a
6763
6764 fi
6765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766
6767 fi
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6769 $as_echo "$lt_cv_ar_at_file" >&6; }
6770
6771 if test "x$lt_cv_ar_at_file" = xno; then
6772   archiver_list_spec=
6773 else
6774   archiver_list_spec=$lt_cv_ar_at_file
6775 fi
6776
6777
6778
6779
6780
6781
6782
6783 if test -n "$ac_tool_prefix"; then
6784   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6785 set dummy ${ac_tool_prefix}strip; ac_word=$2
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787 $as_echo_n "checking for $ac_word... " >&6; }
6788 if ${ac_cv_prog_STRIP+:} false; then :
6789   $as_echo_n "(cached) " >&6
6790 else
6791   if test -n "$STRIP"; then
6792   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6793 else
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797   IFS=$as_save_IFS
6798   test -z "$as_dir" && as_dir=.
6799     for ac_exec_ext in '' $ac_executable_extensions; do
6800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6801     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6803     break 2
6804   fi
6805 done
6806   done
6807 IFS=$as_save_IFS
6808
6809 fi
6810 fi
6811 STRIP=$ac_cv_prog_STRIP
6812 if test -n "$STRIP"; then
6813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6814 $as_echo "$STRIP" >&6; }
6815 else
6816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817 $as_echo "no" >&6; }
6818 fi
6819
6820
6821 fi
6822 if test -z "$ac_cv_prog_STRIP"; then
6823   ac_ct_STRIP=$STRIP
6824   # Extract the first word of "strip", so it can be a program name with args.
6825 set dummy strip; ac_word=$2
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6829   $as_echo_n "(cached) " >&6
6830 else
6831   if test -n "$ac_ct_STRIP"; then
6832   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6833 else
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6836 do
6837   IFS=$as_save_IFS
6838   test -z "$as_dir" && as_dir=.
6839     for ac_exec_ext in '' $ac_executable_extensions; do
6840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6841     ac_cv_prog_ac_ct_STRIP="strip"
6842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843     break 2
6844   fi
6845 done
6846   done
6847 IFS=$as_save_IFS
6848
6849 fi
6850 fi
6851 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6852 if test -n "$ac_ct_STRIP"; then
6853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6854 $as_echo "$ac_ct_STRIP" >&6; }
6855 else
6856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857 $as_echo "no" >&6; }
6858 fi
6859
6860   if test "x$ac_ct_STRIP" = x; then
6861     STRIP=":"
6862   else
6863     case $cross_compiling:$ac_tool_warned in
6864 yes:)
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6867 ac_tool_warned=yes ;;
6868 esac
6869     STRIP=$ac_ct_STRIP
6870   fi
6871 else
6872   STRIP="$ac_cv_prog_STRIP"
6873 fi
6874
6875 test -z "$STRIP" && STRIP=:
6876
6877
6878
6879
6880
6881
6882 if test -n "$ac_tool_prefix"; then
6883   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6884 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if ${ac_cv_prog_RANLIB+:} false; then :
6888   $as_echo_n "(cached) " >&6
6889 else
6890   if test -n "$RANLIB"; then
6891   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896   IFS=$as_save_IFS
6897   test -z "$as_dir" && as_dir=.
6898     for ac_exec_ext in '' $ac_executable_extensions; do
6899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6900     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902     break 2
6903   fi
6904 done
6905   done
6906 IFS=$as_save_IFS
6907
6908 fi
6909 fi
6910 RANLIB=$ac_cv_prog_RANLIB
6911 if test -n "$RANLIB"; then
6912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6913 $as_echo "$RANLIB" >&6; }
6914 else
6915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6917 fi
6918
6919
6920 fi
6921 if test -z "$ac_cv_prog_RANLIB"; then
6922   ac_ct_RANLIB=$RANLIB
6923   # Extract the first word of "ranlib", so it can be a program name with args.
6924 set dummy ranlib; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6928   $as_echo_n "(cached) " >&6
6929 else
6930   if test -n "$ac_ct_RANLIB"; then
6931   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936   IFS=$as_save_IFS
6937   test -z "$as_dir" && as_dir=.
6938     for ac_exec_ext in '' $ac_executable_extensions; do
6939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940     ac_cv_prog_ac_ct_RANLIB="ranlib"
6941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942     break 2
6943   fi
6944 done
6945   done
6946 IFS=$as_save_IFS
6947
6948 fi
6949 fi
6950 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6951 if test -n "$ac_ct_RANLIB"; then
6952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6953 $as_echo "$ac_ct_RANLIB" >&6; }
6954 else
6955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6957 fi
6958
6959   if test "x$ac_ct_RANLIB" = x; then
6960     RANLIB=":"
6961   else
6962     case $cross_compiling:$ac_tool_warned in
6963 yes:)
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966 ac_tool_warned=yes ;;
6967 esac
6968     RANLIB=$ac_ct_RANLIB
6969   fi
6970 else
6971   RANLIB="$ac_cv_prog_RANLIB"
6972 fi
6973
6974 test -z "$RANLIB" && RANLIB=:
6975
6976
6977
6978
6979
6980
6981 # Determine commands to create old-style static archives.
6982 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6983 old_postinstall_cmds='chmod 644 $oldlib'
6984 old_postuninstall_cmds=
6985
6986 if test -n "$RANLIB"; then
6987   case $host_os in
6988   openbsd*)
6989     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6990     ;;
6991   *)
6992     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6993     ;;
6994   esac
6995   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6996 fi
6997
6998 case $host_os in
6999   darwin*)
7000     lock_old_archive_extraction=yes ;;
7001   *)
7002     lock_old_archive_extraction=no ;;
7003 esac
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043 # If no C compiler was specified, use CC.
7044 LTCC=${LTCC-"$CC"}
7045
7046 # If no C compiler flags were specified, use CFLAGS.
7047 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7048
7049 # Allow CC to be a program name with arguments.
7050 compiler=$CC
7051
7052
7053 # Check for command to grab the raw symbol name followed by C symbol from nm.
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7055 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7056 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7057   $as_echo_n "(cached) " >&6
7058 else
7059
7060 # These are sane defaults that work on at least a few old systems.
7061 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7062
7063 # Character class describing NM global symbol codes.
7064 symcode='[BCDEGRST]'
7065
7066 # Regexp to match symbols that can be accessed directly from C.
7067 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7068
7069 # Define system-specific variables.
7070 case $host_os in
7071 aix*)
7072   symcode='[BCDT]'
7073   ;;
7074 cygwin* | mingw* | pw32* | cegcc*)
7075   symcode='[ABCDGISTW]'
7076   ;;
7077 hpux*)
7078   if test "$host_cpu" = ia64; then
7079     symcode='[ABCDEGRST]'
7080   fi
7081   ;;
7082 irix* | nonstopux*)
7083   symcode='[BCDEGRST]'
7084   ;;
7085 osf*)
7086   symcode='[BCDEGQRST]'
7087   ;;
7088 solaris*)
7089   symcode='[BDRT]'
7090   ;;
7091 sco3.2v5*)
7092   symcode='[DT]'
7093   ;;
7094 sysv4.2uw2*)
7095   symcode='[DT]'
7096   ;;
7097 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7098   symcode='[ABDT]'
7099   ;;
7100 sysv4)
7101   symcode='[DFNSTU]'
7102   ;;
7103 esac
7104
7105 # If we're using GNU nm, then use its standard symbol codes.
7106 case `$NM -V 2>&1` in
7107 *GNU* | *'with BFD'*)
7108   symcode='[ABCDGIRSTW]' ;;
7109 esac
7110
7111 # Transform an extracted symbol line into a proper C declaration.
7112 # Some systems (esp. on ia64) link data and code symbols differently,
7113 # so use this general approach.
7114 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7115
7116 # Transform an extracted symbol line into symbol name and symbol address
7117 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7118 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'"
7119
7120 # Handle CRLF in mingw tool chain
7121 opt_cr=
7122 case $build_os in
7123 mingw*)
7124   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7125   ;;
7126 esac
7127
7128 # Try without a prefix underscore, then with it.
7129 for ac_symprfx in "" "_"; do
7130
7131   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7132   symxfrm="\\1 $ac_symprfx\\2 \\2"
7133
7134   # Write the raw and C identifiers.
7135   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7136     # Fake it for dumpbin and say T for any non-static function
7137     # and D for any global variable.
7138     # Also find C++ and __fastcall symbols from MSVC++,
7139     # which start with @ or ?.
7140     lt_cv_sys_global_symbol_pipe="$AWK '"\
7141 "     {last_section=section; section=\$ 3};"\
7142 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7143 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7144 "     \$ 0!~/External *\|/{next};"\
7145 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7146 "     {if(hide[section]) next};"\
7147 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7148 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7149 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7150 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7151 "     ' prfx=^$ac_symprfx"
7152   else
7153     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7154   fi
7155   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7156
7157   # Check to see that the pipe works correctly.
7158   pipe_works=no
7159
7160   rm -f conftest*
7161   cat > conftest.$ac_ext <<_LT_EOF
7162 #ifdef __cplusplus
7163 extern "C" {
7164 #endif
7165 char nm_test_var;
7166 void nm_test_func(void);
7167 void nm_test_func(void){}
7168 #ifdef __cplusplus
7169 }
7170 #endif
7171 int main(){nm_test_var='a';nm_test_func();return(0);}
7172 _LT_EOF
7173
7174   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7175   (eval $ac_compile) 2>&5
7176   ac_status=$?
7177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7178   test $ac_status = 0; }; then
7179     # Now try to grab the symbols.
7180     nlist=conftest.nm
7181     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7182   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7183   ac_status=$?
7184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7185   test $ac_status = 0; } && test -s "$nlist"; then
7186       # Try sorting and uniquifying the output.
7187       if sort "$nlist" | uniq > "$nlist"T; then
7188         mv -f "$nlist"T "$nlist"
7189       else
7190         rm -f "$nlist"T
7191       fi
7192
7193       # Make sure that we snagged all the symbols we need.
7194       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7195         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7196           cat <<_LT_EOF > conftest.$ac_ext
7197 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7198 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7199 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7200    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7201 # define LT_DLSYM_CONST
7202 #elif defined(__osf__)
7203 /* This system does not cope well with relocations in const data.  */
7204 # define LT_DLSYM_CONST
7205 #else
7206 # define LT_DLSYM_CONST const
7207 #endif
7208
7209 #ifdef __cplusplus
7210 extern "C" {
7211 #endif
7212
7213 _LT_EOF
7214           # Now generate the symbol file.
7215           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7216
7217           cat <<_LT_EOF >> conftest.$ac_ext
7218
7219 /* The mapping between symbol names and symbols.  */
7220 LT_DLSYM_CONST struct {
7221   const char *name;
7222   void       *address;
7223 }
7224 lt__PROGRAM__LTX_preloaded_symbols[] =
7225 {
7226   { "@PROGRAM@", (void *) 0 },
7227 _LT_EOF
7228           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7229           cat <<\_LT_EOF >> conftest.$ac_ext
7230   {0, (void *) 0}
7231 };
7232
7233 /* This works around a problem in FreeBSD linker */
7234 #ifdef FREEBSD_WORKAROUND
7235 static const void *lt_preloaded_setup() {
7236   return lt__PROGRAM__LTX_preloaded_symbols;
7237 }
7238 #endif
7239
7240 #ifdef __cplusplus
7241 }
7242 #endif
7243 _LT_EOF
7244           # Now try linking the two files.
7245           mv conftest.$ac_objext conftstm.$ac_objext
7246           lt_globsym_save_LIBS=$LIBS
7247           lt_globsym_save_CFLAGS=$CFLAGS
7248           LIBS="conftstm.$ac_objext"
7249           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7250           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7251   (eval $ac_link) 2>&5
7252   ac_status=$?
7253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7254   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7255             pipe_works=yes
7256           fi
7257           LIBS=$lt_globsym_save_LIBS
7258           CFLAGS=$lt_globsym_save_CFLAGS
7259         else
7260           echo "cannot find nm_test_func in $nlist" >&5
7261         fi
7262       else
7263         echo "cannot find nm_test_var in $nlist" >&5
7264       fi
7265     else
7266       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7267     fi
7268   else
7269     echo "$progname: failed program was:" >&5
7270     cat conftest.$ac_ext >&5
7271   fi
7272   rm -rf conftest* conftst*
7273
7274   # Do not use the global_symbol_pipe unless it works.
7275   if test "$pipe_works" = yes; then
7276     break
7277   else
7278     lt_cv_sys_global_symbol_pipe=
7279   fi
7280 done
7281
7282 fi
7283
7284 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7285   lt_cv_sys_global_symbol_to_cdecl=
7286 fi
7287 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7289 $as_echo "failed" >&6; }
7290 else
7291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7292 $as_echo "ok" >&6; }
7293 fi
7294
7295 # Response file support.
7296 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7297   nm_file_list_spec='@'
7298 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7299   nm_file_list_spec='@'
7300 fi
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7329 $as_echo_n "checking for sysroot... " >&6; }
7330
7331 # Check whether --with-sysroot was given.
7332 if test "${with_sysroot+set}" = set; then :
7333   withval=$with_sysroot;
7334 else
7335   with_sysroot=no
7336 fi
7337
7338
7339 lt_sysroot=
7340 case ${with_sysroot} in #(
7341  yes)
7342    if test "$GCC" = yes; then
7343      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7344    fi
7345    ;; #(
7346  /*)
7347    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7348    ;; #(
7349  no|'')
7350    ;; #(
7351  *)
7352    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7353 $as_echo "${with_sysroot}" >&6; }
7354    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7355    ;;
7356 esac
7357
7358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7359 $as_echo "${lt_sysroot:-no}" >&6; }
7360
7361
7362
7363
7364
7365 # Check whether --enable-libtool-lock was given.
7366 if test "${enable_libtool_lock+set}" = set; then :
7367   enableval=$enable_libtool_lock;
7368 fi
7369
7370 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7371
7372 # Some flags need to be propagated to the compiler or linker for good
7373 # libtool support.
7374 case $host in
7375 ia64-*-hpux*)
7376   # Find out which ABI we are using.
7377   echo 'int i;' > conftest.$ac_ext
7378   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7379   (eval $ac_compile) 2>&5
7380   ac_status=$?
7381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7382   test $ac_status = 0; }; then
7383     case `/usr/bin/file conftest.$ac_objext` in
7384       *ELF-32*)
7385         HPUX_IA64_MODE="32"
7386         ;;
7387       *ELF-64*)
7388         HPUX_IA64_MODE="64"
7389         ;;
7390     esac
7391   fi
7392   rm -rf conftest*
7393   ;;
7394 *-*-irix6*)
7395   # Find out which ABI we are using.
7396   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7397   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7398   (eval $ac_compile) 2>&5
7399   ac_status=$?
7400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7401   test $ac_status = 0; }; then
7402     if test "$lt_cv_prog_gnu_ld" = yes; then
7403       case `/usr/bin/file conftest.$ac_objext` in
7404         *32-bit*)
7405           LD="${LD-ld} -melf32bsmip"
7406           ;;
7407         *N32*)
7408           LD="${LD-ld} -melf32bmipn32"
7409           ;;
7410         *64-bit*)
7411           LD="${LD-ld} -melf64bmip"
7412         ;;
7413       esac
7414     else
7415       case `/usr/bin/file conftest.$ac_objext` in
7416         *32-bit*)
7417           LD="${LD-ld} -32"
7418           ;;
7419         *N32*)
7420           LD="${LD-ld} -n32"
7421           ;;
7422         *64-bit*)
7423           LD="${LD-ld} -64"
7424           ;;
7425       esac
7426     fi
7427   fi
7428   rm -rf conftest*
7429   ;;
7430
7431 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7432 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7433   # Find out which ABI we are using.
7434   echo 'int i;' > conftest.$ac_ext
7435   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7436   (eval $ac_compile) 2>&5
7437   ac_status=$?
7438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7439   test $ac_status = 0; }; then
7440     case `/usr/bin/file conftest.o` in
7441       *32-bit*)
7442         case $host in
7443           x86_64-*kfreebsd*-gnu)
7444             LD="${LD-ld} -m elf_i386_fbsd"
7445             ;;
7446           x86_64-*linux*)
7447             LD="${LD-ld} -m elf_i386"
7448             ;;
7449           ppc64-*linux*|powerpc64-*linux*)
7450             LD="${LD-ld} -m elf32ppclinux"
7451             ;;
7452           s390x-*linux*)
7453             LD="${LD-ld} -m elf_s390"
7454             ;;
7455           sparc64-*linux*)
7456             LD="${LD-ld} -m elf32_sparc"
7457             ;;
7458         esac
7459         ;;
7460       *64-bit*)
7461         case $host in
7462           x86_64-*kfreebsd*-gnu)
7463             LD="${LD-ld} -m elf_x86_64_fbsd"
7464             ;;
7465           x86_64-*linux*)
7466             LD="${LD-ld} -m elf_x86_64"
7467             ;;
7468           ppc*-*linux*|powerpc*-*linux*)
7469             LD="${LD-ld} -m elf64ppc"
7470             ;;
7471           s390*-*linux*|s390*-*tpf*)
7472             LD="${LD-ld} -m elf64_s390"
7473             ;;
7474           sparc*-*linux*)
7475             LD="${LD-ld} -m elf64_sparc"
7476             ;;
7477         esac
7478         ;;
7479     esac
7480   fi
7481   rm -rf conftest*
7482   ;;
7483
7484 *-*-sco3.2v5*)
7485   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7486   SAVE_CFLAGS="$CFLAGS"
7487   CFLAGS="$CFLAGS -belf"
7488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7489 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7490 if ${lt_cv_cc_needs_belf+:} false; then :
7491   $as_echo_n "(cached) " >&6
7492 else
7493   ac_ext=c
7494 ac_cpp='$CPP $CPPFLAGS'
7495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7498
7499      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h.  */
7501
7502 int
7503 main ()
7504 {
7505
7506   ;
7507   return 0;
7508 }
7509 _ACEOF
7510 if ac_fn_c_try_link "$LINENO"; then :
7511   lt_cv_cc_needs_belf=yes
7512 else
7513   lt_cv_cc_needs_belf=no
7514 fi
7515 rm -f core conftest.err conftest.$ac_objext \
7516     conftest$ac_exeext conftest.$ac_ext
7517      ac_ext=c
7518 ac_cpp='$CPP $CPPFLAGS'
7519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7522
7523 fi
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7525 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7526   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7527     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7528     CFLAGS="$SAVE_CFLAGS"
7529   fi
7530   ;;
7531 *-*solaris*)
7532   # Find out which ABI we are using.
7533   echo 'int i;' > conftest.$ac_ext
7534   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7535   (eval $ac_compile) 2>&5
7536   ac_status=$?
7537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7538   test $ac_status = 0; }; then
7539     case `/usr/bin/file conftest.o` in
7540     *64-bit*)
7541       case $lt_cv_prog_gnu_ld in
7542       yes*)
7543         case $host in
7544         i?86-*-solaris*)
7545           LD="${LD-ld} -m elf_x86_64"
7546           ;;
7547         sparc*-*-solaris*)
7548           LD="${LD-ld} -m elf64_sparc"
7549           ;;
7550         esac
7551         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7552         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7553           LD="${LD-ld}_sol2"
7554         fi
7555         ;;
7556       *)
7557         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7558           LD="${LD-ld} -64"
7559         fi
7560         ;;
7561       esac
7562       ;;
7563     esac
7564   fi
7565   rm -rf conftest*
7566   ;;
7567 esac
7568
7569 need_locks="$enable_libtool_lock"
7570
7571 if test -n "$ac_tool_prefix"; then
7572   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7573 set dummy ${ac_tool_prefix}mt; ac_word=$2
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 $as_echo_n "checking for $ac_word... " >&6; }
7576 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7577   $as_echo_n "(cached) " >&6
7578 else
7579   if test -n "$MANIFEST_TOOL"; then
7580   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7581 else
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7584 do
7585   IFS=$as_save_IFS
7586   test -z "$as_dir" && as_dir=.
7587     for ac_exec_ext in '' $ac_executable_extensions; do
7588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7591     break 2
7592   fi
7593 done
7594   done
7595 IFS=$as_save_IFS
7596
7597 fi
7598 fi
7599 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7600 if test -n "$MANIFEST_TOOL"; then
7601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7602 $as_echo "$MANIFEST_TOOL" >&6; }
7603 else
7604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7606 fi
7607
7608
7609 fi
7610 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7611   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7612   # Extract the first word of "mt", so it can be a program name with args.
7613 set dummy mt; ac_word=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7617   $as_echo_n "(cached) " >&6
7618 else
7619   if test -n "$ac_ct_MANIFEST_TOOL"; then
7620   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7621 else
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 for as_dir in $PATH
7624 do
7625   IFS=$as_save_IFS
7626   test -z "$as_dir" && as_dir=.
7627     for ac_exec_ext in '' $ac_executable_extensions; do
7628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7629     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631     break 2
7632   fi
7633 done
7634   done
7635 IFS=$as_save_IFS
7636
7637 fi
7638 fi
7639 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7640 if test -n "$ac_ct_MANIFEST_TOOL"; then
7641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7642 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7643 else
7644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7646 fi
7647
7648   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7649     MANIFEST_TOOL=":"
7650   else
7651     case $cross_compiling:$ac_tool_warned in
7652 yes:)
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7655 ac_tool_warned=yes ;;
7656 esac
7657     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7658   fi
7659 else
7660   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7661 fi
7662
7663 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7665 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7666 if ${lt_cv_path_mainfest_tool+:} false; then :
7667   $as_echo_n "(cached) " >&6
7668 else
7669   lt_cv_path_mainfest_tool=no
7670   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7671   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7672   cat conftest.err >&5
7673   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7674     lt_cv_path_mainfest_tool=yes
7675   fi
7676   rm -f conftest*
7677 fi
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7679 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7680 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7681   MANIFEST_TOOL=:
7682 fi
7683
7684
7685
7686
7687
7688
7689   case $host_os in
7690     rhapsody* | darwin*)
7691     if test -n "$ac_tool_prefix"; then
7692   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7693 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7697   $as_echo_n "(cached) " >&6
7698 else
7699   if test -n "$DSYMUTIL"; then
7700   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7701 else
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705   IFS=$as_save_IFS
7706   test -z "$as_dir" && as_dir=.
7707     for ac_exec_ext in '' $ac_executable_extensions; do
7708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7709     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711     break 2
7712   fi
7713 done
7714   done
7715 IFS=$as_save_IFS
7716
7717 fi
7718 fi
7719 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7720 if test -n "$DSYMUTIL"; then
7721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7722 $as_echo "$DSYMUTIL" >&6; }
7723 else
7724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7726 fi
7727
7728
7729 fi
7730 if test -z "$ac_cv_prog_DSYMUTIL"; then
7731   ac_ct_DSYMUTIL=$DSYMUTIL
7732   # Extract the first word of "dsymutil", so it can be a program name with args.
7733 set dummy dsymutil; ac_word=$2
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735 $as_echo_n "checking for $ac_word... " >&6; }
7736 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7737   $as_echo_n "(cached) " >&6
7738 else
7739   if test -n "$ac_ct_DSYMUTIL"; then
7740   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7741 else
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 for as_dir in $PATH
7744 do
7745   IFS=$as_save_IFS
7746   test -z "$as_dir" && as_dir=.
7747     for ac_exec_ext in '' $ac_executable_extensions; do
7748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751     break 2
7752   fi
7753 done
7754   done
7755 IFS=$as_save_IFS
7756
7757 fi
7758 fi
7759 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7760 if test -n "$ac_ct_DSYMUTIL"; then
7761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7762 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7763 else
7764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7766 fi
7767
7768   if test "x$ac_ct_DSYMUTIL" = x; then
7769     DSYMUTIL=":"
7770   else
7771     case $cross_compiling:$ac_tool_warned in
7772 yes:)
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7775 ac_tool_warned=yes ;;
7776 esac
7777     DSYMUTIL=$ac_ct_DSYMUTIL
7778   fi
7779 else
7780   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7781 fi
7782
7783     if test -n "$ac_tool_prefix"; then
7784   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7785 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7787 $as_echo_n "checking for $ac_word... " >&6; }
7788 if ${ac_cv_prog_NMEDIT+:} false; then :
7789   $as_echo_n "(cached) " >&6
7790 else
7791   if test -n "$NMEDIT"; then
7792   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7793 else
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in $PATH
7796 do
7797   IFS=$as_save_IFS
7798   test -z "$as_dir" && as_dir=.
7799     for ac_exec_ext in '' $ac_executable_extensions; do
7800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7801     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7803     break 2
7804   fi
7805 done
7806   done
7807 IFS=$as_save_IFS
7808
7809 fi
7810 fi
7811 NMEDIT=$ac_cv_prog_NMEDIT
7812 if test -n "$NMEDIT"; then
7813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7814 $as_echo "$NMEDIT" >&6; }
7815 else
7816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7818 fi
7819
7820
7821 fi
7822 if test -z "$ac_cv_prog_NMEDIT"; then
7823   ac_ct_NMEDIT=$NMEDIT
7824   # Extract the first word of "nmedit", so it can be a program name with args.
7825 set dummy nmedit; ac_word=$2
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827 $as_echo_n "checking for $ac_word... " >&6; }
7828 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7829   $as_echo_n "(cached) " >&6
7830 else
7831   if test -n "$ac_ct_NMEDIT"; then
7832   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7833 else
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 for as_dir in $PATH
7836 do
7837   IFS=$as_save_IFS
7838   test -z "$as_dir" && as_dir=.
7839     for ac_exec_ext in '' $ac_executable_extensions; do
7840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7841     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843     break 2
7844   fi
7845 done
7846   done
7847 IFS=$as_save_IFS
7848
7849 fi
7850 fi
7851 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7852 if test -n "$ac_ct_NMEDIT"; then
7853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7854 $as_echo "$ac_ct_NMEDIT" >&6; }
7855 else
7856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857 $as_echo "no" >&6; }
7858 fi
7859
7860   if test "x$ac_ct_NMEDIT" = x; then
7861     NMEDIT=":"
7862   else
7863     case $cross_compiling:$ac_tool_warned in
7864 yes:)
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7867 ac_tool_warned=yes ;;
7868 esac
7869     NMEDIT=$ac_ct_NMEDIT
7870   fi
7871 else
7872   NMEDIT="$ac_cv_prog_NMEDIT"
7873 fi
7874
7875     if test -n "$ac_tool_prefix"; then
7876   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7877 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879 $as_echo_n "checking for $ac_word... " >&6; }
7880 if ${ac_cv_prog_LIPO+:} false; then :
7881   $as_echo_n "(cached) " >&6
7882 else
7883   if test -n "$LIPO"; then
7884   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7885 else
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7888 do
7889   IFS=$as_save_IFS
7890   test -z "$as_dir" && as_dir=.
7891     for ac_exec_ext in '' $ac_executable_extensions; do
7892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7893     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7895     break 2
7896   fi
7897 done
7898   done
7899 IFS=$as_save_IFS
7900
7901 fi
7902 fi
7903 LIPO=$ac_cv_prog_LIPO
7904 if test -n "$LIPO"; then
7905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7906 $as_echo "$LIPO" >&6; }
7907 else
7908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909 $as_echo "no" >&6; }
7910 fi
7911
7912
7913 fi
7914 if test -z "$ac_cv_prog_LIPO"; then
7915   ac_ct_LIPO=$LIPO
7916   # Extract the first word of "lipo", so it can be a program name with args.
7917 set dummy lipo; ac_word=$2
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7919 $as_echo_n "checking for $ac_word... " >&6; }
7920 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7921   $as_echo_n "(cached) " >&6
7922 else
7923   if test -n "$ac_ct_LIPO"; then
7924   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7925 else
7926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927 for as_dir in $PATH
7928 do
7929   IFS=$as_save_IFS
7930   test -z "$as_dir" && as_dir=.
7931     for ac_exec_ext in '' $ac_executable_extensions; do
7932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7933     ac_cv_prog_ac_ct_LIPO="lipo"
7934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7935     break 2
7936   fi
7937 done
7938   done
7939 IFS=$as_save_IFS
7940
7941 fi
7942 fi
7943 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7944 if test -n "$ac_ct_LIPO"; then
7945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7946 $as_echo "$ac_ct_LIPO" >&6; }
7947 else
7948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 $as_echo "no" >&6; }
7950 fi
7951
7952   if test "x$ac_ct_LIPO" = x; then
7953     LIPO=":"
7954   else
7955     case $cross_compiling:$ac_tool_warned in
7956 yes:)
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7959 ac_tool_warned=yes ;;
7960 esac
7961     LIPO=$ac_ct_LIPO
7962   fi
7963 else
7964   LIPO="$ac_cv_prog_LIPO"
7965 fi
7966
7967     if test -n "$ac_tool_prefix"; then
7968   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7969 set dummy ${ac_tool_prefix}otool; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if ${ac_cv_prog_OTOOL+:} false; then :
7973   $as_echo_n "(cached) " >&6
7974 else
7975   if test -n "$OTOOL"; then
7976   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7977 else
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 for as_dir in $PATH
7980 do
7981   IFS=$as_save_IFS
7982   test -z "$as_dir" && as_dir=.
7983     for ac_exec_ext in '' $ac_executable_extensions; do
7984   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7985     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987     break 2
7988   fi
7989 done
7990   done
7991 IFS=$as_save_IFS
7992
7993 fi
7994 fi
7995 OTOOL=$ac_cv_prog_OTOOL
7996 if test -n "$OTOOL"; then
7997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7998 $as_echo "$OTOOL" >&6; }
7999 else
8000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8002 fi
8003
8004
8005 fi
8006 if test -z "$ac_cv_prog_OTOOL"; then
8007   ac_ct_OTOOL=$OTOOL
8008   # Extract the first word of "otool", so it can be a program name with args.
8009 set dummy otool; ac_word=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8013   $as_echo_n "(cached) " >&6
8014 else
8015   if test -n "$ac_ct_OTOOL"; then
8016   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8017 else
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8020 do
8021   IFS=$as_save_IFS
8022   test -z "$as_dir" && as_dir=.
8023     for ac_exec_ext in '' $ac_executable_extensions; do
8024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8025     ac_cv_prog_ac_ct_OTOOL="otool"
8026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027     break 2
8028   fi
8029 done
8030   done
8031 IFS=$as_save_IFS
8032
8033 fi
8034 fi
8035 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8036 if test -n "$ac_ct_OTOOL"; then
8037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8038 $as_echo "$ac_ct_OTOOL" >&6; }
8039 else
8040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041 $as_echo "no" >&6; }
8042 fi
8043
8044   if test "x$ac_ct_OTOOL" = x; then
8045     OTOOL=":"
8046   else
8047     case $cross_compiling:$ac_tool_warned in
8048 yes:)
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8051 ac_tool_warned=yes ;;
8052 esac
8053     OTOOL=$ac_ct_OTOOL
8054   fi
8055 else
8056   OTOOL="$ac_cv_prog_OTOOL"
8057 fi
8058
8059     if test -n "$ac_tool_prefix"; then
8060   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8061 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 $as_echo_n "checking for $ac_word... " >&6; }
8064 if ${ac_cv_prog_OTOOL64+:} false; then :
8065   $as_echo_n "(cached) " >&6
8066 else
8067   if test -n "$OTOOL64"; then
8068   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8069 else
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 for as_dir in $PATH
8072 do
8073   IFS=$as_save_IFS
8074   test -z "$as_dir" && as_dir=.
8075     for ac_exec_ext in '' $ac_executable_extensions; do
8076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8077     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8079     break 2
8080   fi
8081 done
8082   done
8083 IFS=$as_save_IFS
8084
8085 fi
8086 fi
8087 OTOOL64=$ac_cv_prog_OTOOL64
8088 if test -n "$OTOOL64"; then
8089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8090 $as_echo "$OTOOL64" >&6; }
8091 else
8092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8094 fi
8095
8096
8097 fi
8098 if test -z "$ac_cv_prog_OTOOL64"; then
8099   ac_ct_OTOOL64=$OTOOL64
8100   # Extract the first word of "otool64", so it can be a program name with args.
8101 set dummy otool64; ac_word=$2
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8103 $as_echo_n "checking for $ac_word... " >&6; }
8104 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8105   $as_echo_n "(cached) " >&6
8106 else
8107   if test -n "$ac_ct_OTOOL64"; then
8108   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8109 else
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 for as_dir in $PATH
8112 do
8113   IFS=$as_save_IFS
8114   test -z "$as_dir" && as_dir=.
8115     for ac_exec_ext in '' $ac_executable_extensions; do
8116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8117     ac_cv_prog_ac_ct_OTOOL64="otool64"
8118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8119     break 2
8120   fi
8121 done
8122   done
8123 IFS=$as_save_IFS
8124
8125 fi
8126 fi
8127 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8128 if test -n "$ac_ct_OTOOL64"; then
8129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8130 $as_echo "$ac_ct_OTOOL64" >&6; }
8131 else
8132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8134 fi
8135
8136   if test "x$ac_ct_OTOOL64" = x; then
8137     OTOOL64=":"
8138   else
8139     case $cross_compiling:$ac_tool_warned in
8140 yes:)
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8143 ac_tool_warned=yes ;;
8144 esac
8145     OTOOL64=$ac_ct_OTOOL64
8146   fi
8147 else
8148   OTOOL64="$ac_cv_prog_OTOOL64"
8149 fi
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8178 $as_echo_n "checking for -single_module linker flag... " >&6; }
8179 if ${lt_cv_apple_cc_single_mod+:} false; then :
8180   $as_echo_n "(cached) " >&6
8181 else
8182   lt_cv_apple_cc_single_mod=no
8183       if test -z "${LT_MULTI_MODULE}"; then
8184         # By default we will add the -single_module flag. You can override
8185         # by either setting the environment variable LT_MULTI_MODULE
8186         # non-empty at configure time, or by adding -multi_module to the
8187         # link flags.
8188         rm -rf libconftest.dylib*
8189         echo "int foo(void){return 1;}" > conftest.c
8190         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8191 -dynamiclib -Wl,-single_module conftest.c" >&5
8192         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8193           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8194         _lt_result=$?
8195         # If there is a non-empty error log, and "single_module"
8196         # appears in it, assume the flag caused a linker warning
8197         if test -s conftest.err && $GREP single_module conftest.err; then
8198           cat conftest.err >&5
8199         # Otherwise, if the output was created with a 0 exit code from
8200         # the compiler, it worked.
8201         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8202           lt_cv_apple_cc_single_mod=yes
8203         else
8204           cat conftest.err >&5
8205         fi
8206         rm -rf libconftest.dylib*
8207         rm -f conftest.*
8208       fi
8209 fi
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8211 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8212
8213     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8214 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8215 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8216   $as_echo_n "(cached) " >&6
8217 else
8218   lt_cv_ld_exported_symbols_list=no
8219       save_LDFLAGS=$LDFLAGS
8220       echo "_main" > conftest.sym
8221       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8222       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h.  */
8224
8225 int
8226 main ()
8227 {
8228
8229   ;
8230   return 0;
8231 }
8232 _ACEOF
8233 if ac_fn_c_try_link "$LINENO"; then :
8234   lt_cv_ld_exported_symbols_list=yes
8235 else
8236   lt_cv_ld_exported_symbols_list=no
8237 fi
8238 rm -f core conftest.err conftest.$ac_objext \
8239     conftest$ac_exeext conftest.$ac_ext
8240         LDFLAGS="$save_LDFLAGS"
8241
8242 fi
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8244 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8245
8246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8247 $as_echo_n "checking for -force_load linker flag... " >&6; }
8248 if ${lt_cv_ld_force_load+:} false; then :
8249   $as_echo_n "(cached) " >&6
8250 else
8251   lt_cv_ld_force_load=no
8252       cat > conftest.c << _LT_EOF
8253 int forced_loaded() { return 2;}
8254 _LT_EOF
8255       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8256       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8257       echo "$AR cru libconftest.a conftest.o" >&5
8258       $AR cru libconftest.a conftest.o 2>&5
8259       echo "$RANLIB libconftest.a" >&5
8260       $RANLIB libconftest.a 2>&5
8261       cat > conftest.c << _LT_EOF
8262 int main() { return 0;}
8263 _LT_EOF
8264       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8265       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8266       _lt_result=$?
8267       if test -s conftest.err && $GREP force_load conftest.err; then
8268         cat conftest.err >&5
8269       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8270         lt_cv_ld_force_load=yes
8271       else
8272         cat conftest.err >&5
8273       fi
8274         rm -f conftest.err libconftest.a conftest conftest.c
8275         rm -rf conftest.dSYM
8276
8277 fi
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8279 $as_echo "$lt_cv_ld_force_load" >&6; }
8280     case $host_os in
8281     rhapsody* | darwin1.[012])
8282       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8283     darwin1.*)
8284       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8285     darwin*) # darwin 5.x on
8286       # if running on 10.5 or later, the deployment target defaults
8287       # to the OS version, if on x86, and 10.4, the deployment
8288       # target defaults to 10.4. Don't you love it?
8289       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8290         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8291           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8292         10.[012]*)
8293           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8294         10.*)
8295           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8296       esac
8297     ;;
8298   esac
8299     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8300       _lt_dar_single_mod='$single_module'
8301     fi
8302     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8303       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8304     else
8305       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8306     fi
8307     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8308       _lt_dsymutil='~$DSYMUTIL $lib || :'
8309     else
8310       _lt_dsymutil=
8311     fi
8312     ;;
8313   esac
8314
8315 ac_ext=c
8316 ac_cpp='$CPP $CPPFLAGS'
8317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8321 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8322 # On Suns, sometimes $CPP names a directory.
8323 if test -n "$CPP" && test -d "$CPP"; then
8324   CPP=
8325 fi
8326 if test -z "$CPP"; then
8327   if ${ac_cv_prog_CPP+:} false; then :
8328   $as_echo_n "(cached) " >&6
8329 else
8330       # Double quotes because CPP needs to be expanded
8331     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8332     do
8333       ac_preproc_ok=false
8334 for ac_c_preproc_warn_flag in '' yes
8335 do
8336   # Use a header file that comes with gcc, so configuring glibc
8337   # with a fresh cross-compiler works.
8338   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8339   # <limits.h> exists even on freestanding compilers.
8340   # On the NeXT, cc -E runs the code through the compiler's parser,
8341   # not just through cpp. "Syntax error" is here to catch this case.
8342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343 /* end confdefs.h.  */
8344 #ifdef __STDC__
8345 # include <limits.h>
8346 #else
8347 # include <assert.h>
8348 #endif
8349                      Syntax error
8350 _ACEOF
8351 if ac_fn_c_try_cpp "$LINENO"; then :
8352
8353 else
8354   # Broken: fails on valid input.
8355 continue
8356 fi
8357 rm -f conftest.err conftest.i conftest.$ac_ext
8358
8359   # OK, works on sane cases.  Now check whether nonexistent headers
8360   # can be detected and how.
8361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h.  */
8363 #include <ac_nonexistent.h>
8364 _ACEOF
8365 if ac_fn_c_try_cpp "$LINENO"; then :
8366   # Broken: success on invalid input.
8367 continue
8368 else
8369   # Passes both tests.
8370 ac_preproc_ok=:
8371 break
8372 fi
8373 rm -f conftest.err conftest.i conftest.$ac_ext
8374
8375 done
8376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8377 rm -f conftest.i conftest.err conftest.$ac_ext
8378 if $ac_preproc_ok; then :
8379   break
8380 fi
8381
8382     done
8383     ac_cv_prog_CPP=$CPP
8384
8385 fi
8386   CPP=$ac_cv_prog_CPP
8387 else
8388   ac_cv_prog_CPP=$CPP
8389 fi
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8391 $as_echo "$CPP" >&6; }
8392 ac_preproc_ok=false
8393 for ac_c_preproc_warn_flag in '' yes
8394 do
8395   # Use a header file that comes with gcc, so configuring glibc
8396   # with a fresh cross-compiler works.
8397   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8398   # <limits.h> exists even on freestanding compilers.
8399   # On the NeXT, cc -E runs the code through the compiler's parser,
8400   # not just through cpp. "Syntax error" is here to catch this case.
8401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h.  */
8403 #ifdef __STDC__
8404 # include <limits.h>
8405 #else
8406 # include <assert.h>
8407 #endif
8408                      Syntax error
8409 _ACEOF
8410 if ac_fn_c_try_cpp "$LINENO"; then :
8411
8412 else
8413   # Broken: fails on valid input.
8414 continue
8415 fi
8416 rm -f conftest.err conftest.i conftest.$ac_ext
8417
8418   # OK, works on sane cases.  Now check whether nonexistent headers
8419   # can be detected and how.
8420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h.  */
8422 #include <ac_nonexistent.h>
8423 _ACEOF
8424 if ac_fn_c_try_cpp "$LINENO"; then :
8425   # Broken: success on invalid input.
8426 continue
8427 else
8428   # Passes both tests.
8429 ac_preproc_ok=:
8430 break
8431 fi
8432 rm -f conftest.err conftest.i conftest.$ac_ext
8433
8434 done
8435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8436 rm -f conftest.i conftest.err conftest.$ac_ext
8437 if $ac_preproc_ok; then :
8438
8439 else
8440   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8442 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8443 See \`config.log' for more details" "$LINENO" 5; }
8444 fi
8445
8446 ac_ext=c
8447 ac_cpp='$CPP $CPPFLAGS'
8448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8451
8452
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8454 $as_echo_n "checking for ANSI C header files... " >&6; }
8455 if ${ac_cv_header_stdc+:} false; then :
8456   $as_echo_n "(cached) " >&6
8457 else
8458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h.  */
8460 #include <stdlib.h>
8461 #include <stdarg.h>
8462 #include <string.h>
8463 #include <float.h>
8464
8465 int
8466 main ()
8467 {
8468
8469   ;
8470   return 0;
8471 }
8472 _ACEOF
8473 if ac_fn_c_try_compile "$LINENO"; then :
8474   ac_cv_header_stdc=yes
8475 else
8476   ac_cv_header_stdc=no
8477 fi
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479
8480 if test $ac_cv_header_stdc = yes; then
8481   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h.  */
8484 #include <string.h>
8485
8486 _ACEOF
8487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8488   $EGREP "memchr" >/dev/null 2>&1; then :
8489
8490 else
8491   ac_cv_header_stdc=no
8492 fi
8493 rm -f conftest*
8494
8495 fi
8496
8497 if test $ac_cv_header_stdc = yes; then
8498   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h.  */
8501 #include <stdlib.h>
8502
8503 _ACEOF
8504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8505   $EGREP "free" >/dev/null 2>&1; then :
8506
8507 else
8508   ac_cv_header_stdc=no
8509 fi
8510 rm -f conftest*
8511
8512 fi
8513
8514 if test $ac_cv_header_stdc = yes; then
8515   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8516   if test "$cross_compiling" = yes; then :
8517   :
8518 else
8519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h.  */
8521 #include <ctype.h>
8522 #include <stdlib.h>
8523 #if ((' ' & 0x0FF) == 0x020)
8524 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8525 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8526 #else
8527 # define ISLOWER(c) \
8528                    (('a' <= (c) && (c) <= 'i') \
8529                      || ('j' <= (c) && (c) <= 'r') \
8530                      || ('s' <= (c) && (c) <= 'z'))
8531 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8532 #endif
8533
8534 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8535 int
8536 main ()
8537 {
8538   int i;
8539   for (i = 0; i < 256; i++)
8540     if (XOR (islower (i), ISLOWER (i))
8541         || toupper (i) != TOUPPER (i))
8542       return 2;
8543   return 0;
8544 }
8545 _ACEOF
8546 if ac_fn_c_try_run "$LINENO"; then :
8547
8548 else
8549   ac_cv_header_stdc=no
8550 fi
8551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8552   conftest.$ac_objext conftest.beam conftest.$ac_ext
8553 fi
8554
8555 fi
8556 fi
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8558 $as_echo "$ac_cv_header_stdc" >&6; }
8559 if test $ac_cv_header_stdc = yes; then
8560
8561 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8562
8563 fi
8564
8565 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8566 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8567                   inttypes.h stdint.h unistd.h
8568 do :
8569   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8570 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8571 "
8572 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8573   cat >>confdefs.h <<_ACEOF
8574 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8575 _ACEOF
8576
8577 fi
8578
8579 done
8580
8581
8582 for ac_header in dlfcn.h
8583 do :
8584   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8585 "
8586 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8587   cat >>confdefs.h <<_ACEOF
8588 #define HAVE_DLFCN_H 1
8589 _ACEOF
8590
8591 fi
8592
8593 done
8594
8595
8596
8597
8598
8599 # Set options
8600
8601
8602
8603
8604   enable_win32_dll=no
8605
8606
8607             # Check whether --enable-shared was given.
8608 if test "${enable_shared+set}" = set; then :
8609   enableval=$enable_shared; p=${PACKAGE-default}
8610     case $enableval in
8611     yes) enable_shared=yes ;;
8612     no) enable_shared=no ;;
8613     *)
8614       enable_shared=no
8615       # Look at the argument we got.  We use all the common list separators.
8616       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8617       for pkg in $enableval; do
8618         IFS="$lt_save_ifs"
8619         if test "X$pkg" = "X$p"; then
8620           enable_shared=yes
8621         fi
8622       done
8623       IFS="$lt_save_ifs"
8624       ;;
8625     esac
8626 else
8627   enable_shared=yes
8628 fi
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638   # Check whether --enable-static was given.
8639 if test "${enable_static+set}" = set; then :
8640   enableval=$enable_static; p=${PACKAGE-default}
8641     case $enableval in
8642     yes) enable_static=yes ;;
8643     no) enable_static=no ;;
8644     *)
8645      enable_static=no
8646       # Look at the argument we got.  We use all the common list separators.
8647       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8648       for pkg in $enableval; do
8649         IFS="$lt_save_ifs"
8650         if test "X$pkg" = "X$p"; then
8651           enable_static=yes
8652         fi
8653       done
8654       IFS="$lt_save_ifs"
8655       ;;
8656     esac
8657 else
8658   enable_static=yes
8659 fi
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670 # Check whether --with-pic was given.
8671 if test "${with_pic+set}" = set; then :
8672   withval=$with_pic; lt_p=${PACKAGE-default}
8673     case $withval in
8674     yes|no) pic_mode=$withval ;;
8675     *)
8676       pic_mode=default
8677       # Look at the argument we got.  We use all the common list separators.
8678       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8679       for lt_pkg in $withval; do
8680         IFS="$lt_save_ifs"
8681         if test "X$lt_pkg" = "X$lt_p"; then
8682           pic_mode=yes
8683         fi
8684       done
8685       IFS="$lt_save_ifs"
8686       ;;
8687     esac
8688 else
8689   pic_mode=default
8690 fi
8691
8692
8693 test -z "$pic_mode" && pic_mode=default
8694
8695
8696
8697
8698
8699
8700
8701   # Check whether --enable-fast-install was given.
8702 if test "${enable_fast_install+set}" = set; then :
8703   enableval=$enable_fast_install; p=${PACKAGE-default}
8704     case $enableval in
8705     yes) enable_fast_install=yes ;;
8706     no) enable_fast_install=no ;;
8707     *)
8708       enable_fast_install=no
8709       # Look at the argument we got.  We use all the common list separators.
8710       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8711       for pkg in $enableval; do
8712         IFS="$lt_save_ifs"
8713         if test "X$pkg" = "X$p"; then
8714           enable_fast_install=yes
8715         fi
8716       done
8717       IFS="$lt_save_ifs"
8718       ;;
8719     esac
8720 else
8721   enable_fast_install=yes
8722 fi
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734 # This can be used to rebuild libtool when needed
8735 LIBTOOL_DEPS="$ltmain"
8736
8737 # Always use our own libtool.
8738 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769 test -z "$LN_S" && LN_S="ln -s"
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784 if test -n "${ZSH_VERSION+set}" ; then
8785    setopt NO_GLOB_SUBST
8786 fi
8787
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8789 $as_echo_n "checking for objdir... " >&6; }
8790 if ${lt_cv_objdir+:} false; then :
8791   $as_echo_n "(cached) " >&6
8792 else
8793   rm -f .libs 2>/dev/null
8794 mkdir .libs 2>/dev/null
8795 if test -d .libs; then
8796   lt_cv_objdir=.libs
8797 else
8798   # MS-DOS does not allow filenames that begin with a dot.
8799   lt_cv_objdir=_libs
8800 fi
8801 rmdir .libs 2>/dev/null
8802 fi
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8804 $as_echo "$lt_cv_objdir" >&6; }
8805 objdir=$lt_cv_objdir
8806
8807
8808
8809
8810
8811 cat >>confdefs.h <<_ACEOF
8812 #define LT_OBJDIR "$lt_cv_objdir/"
8813 _ACEOF
8814
8815
8816
8817
8818 case $host_os in
8819 aix3*)
8820   # AIX sometimes has problems with the GCC collect2 program.  For some
8821   # reason, if we set the COLLECT_NAMES environment variable, the problems
8822   # vanish in a puff of smoke.
8823   if test "X${COLLECT_NAMES+set}" != Xset; then
8824     COLLECT_NAMES=
8825     export COLLECT_NAMES
8826   fi
8827   ;;
8828 esac
8829
8830 # Global variables:
8831 ofile=libtool
8832 can_build_shared=yes
8833
8834 # All known linkers require a `.a' archive for static linking (except MSVC,
8835 # which needs '.lib').
8836 libext=a
8837
8838 with_gnu_ld="$lt_cv_prog_gnu_ld"
8839
8840 old_CC="$CC"
8841 old_CFLAGS="$CFLAGS"
8842
8843 # Set sane defaults for various variables
8844 test -z "$CC" && CC=cc
8845 test -z "$LTCC" && LTCC=$CC
8846 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8847 test -z "$LD" && LD=ld
8848 test -z "$ac_objext" && ac_objext=o
8849
8850 for cc_temp in $compiler""; do
8851   case $cc_temp in
8852     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8853     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8854     \-*) ;;
8855     *) break;;
8856   esac
8857 done
8858 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8859
8860
8861 # Only perform the check for file, if the check method requires it
8862 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8863 case $deplibs_check_method in
8864 file_magic*)
8865   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8867 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8868 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8869   $as_echo_n "(cached) " >&6
8870 else
8871   case $MAGIC_CMD in
8872 [\\/*] |  ?:[\\/]*)
8873   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8874   ;;
8875 *)
8876   lt_save_MAGIC_CMD="$MAGIC_CMD"
8877   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8878   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8879   for ac_dir in $ac_dummy; do
8880     IFS="$lt_save_ifs"
8881     test -z "$ac_dir" && ac_dir=.
8882     if test -f $ac_dir/${ac_tool_prefix}file; then
8883       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8884       if test -n "$file_magic_test_file"; then
8885         case $deplibs_check_method in
8886         "file_magic "*)
8887           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8888           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8889           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8890             $EGREP "$file_magic_regex" > /dev/null; then
8891             :
8892           else
8893             cat <<_LT_EOF 1>&2
8894
8895 *** Warning: the command libtool uses to detect shared libraries,
8896 *** $file_magic_cmd, produces output that libtool cannot recognize.
8897 *** The result is that libtool may fail to recognize shared libraries
8898 *** as such.  This will affect the creation of libtool libraries that
8899 *** depend on shared libraries, but programs linked with such libtool
8900 *** libraries will work regardless of this problem.  Nevertheless, you
8901 *** may want to report the problem to your system manager and/or to
8902 *** bug-libtool@gnu.org
8903
8904 _LT_EOF
8905           fi ;;
8906         esac
8907       fi
8908       break
8909     fi
8910   done
8911   IFS="$lt_save_ifs"
8912   MAGIC_CMD="$lt_save_MAGIC_CMD"
8913   ;;
8914 esac
8915 fi
8916
8917 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8918 if test -n "$MAGIC_CMD"; then
8919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8920 $as_echo "$MAGIC_CMD" >&6; }
8921 else
8922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923 $as_echo "no" >&6; }
8924 fi
8925
8926
8927
8928
8929
8930 if test -z "$lt_cv_path_MAGIC_CMD"; then
8931   if test -n "$ac_tool_prefix"; then
8932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8933 $as_echo_n "checking for file... " >&6; }
8934 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8935   $as_echo_n "(cached) " >&6
8936 else
8937   case $MAGIC_CMD in
8938 [\\/*] |  ?:[\\/]*)
8939   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8940   ;;
8941 *)
8942   lt_save_MAGIC_CMD="$MAGIC_CMD"
8943   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8944   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8945   for ac_dir in $ac_dummy; do
8946     IFS="$lt_save_ifs"
8947     test -z "$ac_dir" && ac_dir=.
8948     if test -f $ac_dir/file; then
8949       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8950       if test -n "$file_magic_test_file"; then
8951         case $deplibs_check_method in
8952         "file_magic "*)
8953           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8954           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8955           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8956             $EGREP "$file_magic_regex" > /dev/null; then
8957             :
8958           else
8959             cat <<_LT_EOF 1>&2
8960
8961 *** Warning: the command libtool uses to detect shared libraries,
8962 *** $file_magic_cmd, produces output that libtool cannot recognize.
8963 *** The result is that libtool may fail to recognize shared libraries
8964 *** as such.  This will affect the creation of libtool libraries that
8965 *** depend on shared libraries, but programs linked with such libtool
8966 *** libraries will work regardless of this problem.  Nevertheless, you
8967 *** may want to report the problem to your system manager and/or to
8968 *** bug-libtool@gnu.org
8969
8970 _LT_EOF
8971           fi ;;
8972         esac
8973       fi
8974       break
8975     fi
8976   done
8977   IFS="$lt_save_ifs"
8978   MAGIC_CMD="$lt_save_MAGIC_CMD"
8979   ;;
8980 esac
8981 fi
8982
8983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8984 if test -n "$MAGIC_CMD"; then
8985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8986 $as_echo "$MAGIC_CMD" >&6; }
8987 else
8988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 $as_echo "no" >&6; }
8990 fi
8991
8992
8993   else
8994     MAGIC_CMD=:
8995   fi
8996 fi
8997
8998   fi
8999   ;;
9000 esac
9001
9002 # Use C for the default configuration in the libtool script
9003
9004 lt_save_CC="$CC"
9005 ac_ext=c
9006 ac_cpp='$CPP $CPPFLAGS'
9007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9010
9011
9012 # Source file extension for C test sources.
9013 ac_ext=c
9014
9015 # Object file extension for compiled C test sources.
9016 objext=o
9017 objext=$objext
9018
9019 # Code to be used in simple compile tests
9020 lt_simple_compile_test_code="int some_variable = 0;"
9021
9022 # Code to be used in simple link tests
9023 lt_simple_link_test_code='int main(){return(0);}'
9024
9025
9026
9027
9028
9029
9030
9031 # If no C compiler was specified, use CC.
9032 LTCC=${LTCC-"$CC"}
9033
9034 # If no C compiler flags were specified, use CFLAGS.
9035 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9036
9037 # Allow CC to be a program name with arguments.
9038 compiler=$CC
9039
9040 # Save the default compiler, since it gets overwritten when the other
9041 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9042 compiler_DEFAULT=$CC
9043
9044 # save warnings/boilerplate of simple test code
9045 ac_outfile=conftest.$ac_objext
9046 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9047 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9048 _lt_compiler_boilerplate=`cat conftest.err`
9049 $RM conftest*
9050
9051 ac_outfile=conftest.$ac_objext
9052 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9053 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9054 _lt_linker_boilerplate=`cat conftest.err`
9055 $RM -r conftest*
9056
9057
9058 ## CAVEAT EMPTOR:
9059 ## There is no encapsulation within the following macros, do not change
9060 ## the running order or otherwise move them around unless you know exactly
9061 ## what you are doing...
9062 if test -n "$compiler"; then
9063
9064 lt_prog_compiler_no_builtin_flag=
9065
9066 if test "$GCC" = yes; then
9067   case $cc_basename in
9068   nvcc*)
9069     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9070   *)
9071     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9072   esac
9073
9074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9075 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9076 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9077   $as_echo_n "(cached) " >&6
9078 else
9079   lt_cv_prog_compiler_rtti_exceptions=no
9080    ac_outfile=conftest.$ac_objext
9081    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9082    lt_compiler_flag="-fno-rtti -fno-exceptions"
9083    # Insert the option either (1) after the last *FLAGS variable, or
9084    # (2) before a word containing "conftest.", or (3) at the end.
9085    # Note that $ac_compile itself does not contain backslashes and begins
9086    # with a dollar sign (not a hyphen), so the echo should work correctly.
9087    # The option is referenced via a variable to avoid confusing sed.
9088    lt_compile=`echo "$ac_compile" | $SED \
9089    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9090    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9091    -e 's:$: $lt_compiler_flag:'`
9092    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9093    (eval "$lt_compile" 2>conftest.err)
9094    ac_status=$?
9095    cat conftest.err >&5
9096    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097    if (exit $ac_status) && test -s "$ac_outfile"; then
9098      # The compiler can only warn and ignore the option if not recognized
9099      # So say no if there are warnings other than the usual output.
9100      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9101      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9102      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9103        lt_cv_prog_compiler_rtti_exceptions=yes
9104      fi
9105    fi
9106    $RM conftest*
9107
9108 fi
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9110 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9111
9112 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9113     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9114 else
9115     :
9116 fi
9117
9118 fi
9119
9120
9121
9122
9123
9124
9125   lt_prog_compiler_wl=
9126 lt_prog_compiler_pic=
9127 lt_prog_compiler_static=
9128
9129
9130   if test "$GCC" = yes; then
9131     lt_prog_compiler_wl='-Wl,'
9132     lt_prog_compiler_static='-static'
9133
9134     case $host_os in
9135       aix*)
9136       # All AIX code is PIC.
9137       if test "$host_cpu" = ia64; then
9138         # AIX 5 now supports IA64 processor
9139         lt_prog_compiler_static='-Bstatic'
9140       fi
9141       ;;
9142
9143     amigaos*)
9144       case $host_cpu in
9145       powerpc)
9146             # see comment about AmigaOS4 .so support
9147             lt_prog_compiler_pic='-fPIC'
9148         ;;
9149       m68k)
9150             # FIXME: we need at least 68020 code to build shared libraries, but
9151             # adding the `-m68020' flag to GCC prevents building anything better,
9152             # like `-m68040'.
9153             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9154         ;;
9155       esac
9156       ;;
9157
9158     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9159       # PIC is the default for these OSes.
9160       ;;
9161
9162     mingw* | cygwin* | pw32* | os2* | cegcc*)
9163       # This hack is so that the source file can tell whether it is being
9164       # built for inclusion in a dll (and should export symbols for example).
9165       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9166       # (--disable-auto-import) libraries
9167       lt_prog_compiler_pic='-DDLL_EXPORT'
9168       ;;
9169
9170     darwin* | rhapsody*)
9171       # PIC is the default on this platform
9172       # Common symbols not allowed in MH_DYLIB files
9173       lt_prog_compiler_pic='-fno-common'
9174       ;;
9175
9176     haiku*)
9177       # PIC is the default for Haiku.
9178       # The "-static" flag exists, but is broken.
9179       lt_prog_compiler_static=
9180       ;;
9181
9182     hpux*)
9183       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9184       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9185       # sets the default TLS model and affects inlining.
9186       case $host_cpu in
9187       hppa*64*)
9188         # +Z the default
9189         ;;
9190       *)
9191         lt_prog_compiler_pic='-fPIC'
9192         ;;
9193       esac
9194       ;;
9195
9196     interix[3-9]*)
9197       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9198       # Instead, we relocate shared libraries at runtime.
9199       ;;
9200
9201     msdosdjgpp*)
9202       # Just because we use GCC doesn't mean we suddenly get shared libraries
9203       # on systems that don't support them.
9204       lt_prog_compiler_can_build_shared=no
9205       enable_shared=no
9206       ;;
9207
9208     *nto* | *qnx*)
9209       # QNX uses GNU C++, but need to define -shared option too, otherwise
9210       # it will coredump.
9211       lt_prog_compiler_pic='-fPIC -shared'
9212       ;;
9213
9214     sysv4*MP*)
9215       if test -d /usr/nec; then
9216         lt_prog_compiler_pic=-Kconform_pic
9217       fi
9218       ;;
9219
9220     *)
9221       lt_prog_compiler_pic='-fPIC'
9222       ;;
9223     esac
9224
9225     case $cc_basename in
9226     nvcc*) # Cuda Compiler Driver 2.2
9227       lt_prog_compiler_wl='-Xlinker '
9228       if test -n "$lt_prog_compiler_pic"; then
9229         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9230       fi
9231       ;;
9232     esac
9233   else
9234     # PORTME Check for flag to pass linker flags through the system compiler.
9235     case $host_os in
9236     aix*)
9237       lt_prog_compiler_wl='-Wl,'
9238       if test "$host_cpu" = ia64; then
9239         # AIX 5 now supports IA64 processor
9240         lt_prog_compiler_static='-Bstatic'
9241       else
9242         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9243       fi
9244       ;;
9245
9246     mingw* | cygwin* | pw32* | os2* | cegcc*)
9247       # This hack is so that the source file can tell whether it is being
9248       # built for inclusion in a dll (and should export symbols for example).
9249       lt_prog_compiler_pic='-DDLL_EXPORT'
9250       ;;
9251
9252     hpux9* | hpux10* | hpux11*)
9253       lt_prog_compiler_wl='-Wl,'
9254       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9255       # not for PA HP-UX.
9256       case $host_cpu in
9257       hppa*64*|ia64*)
9258         # +Z the default
9259         ;;
9260       *)
9261         lt_prog_compiler_pic='+Z'
9262         ;;
9263       esac
9264       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9265       lt_prog_compiler_static='${wl}-a ${wl}archive'
9266       ;;
9267
9268     irix5* | irix6* | nonstopux*)
9269       lt_prog_compiler_wl='-Wl,'
9270       # PIC (with -KPIC) is the default.
9271       lt_prog_compiler_static='-non_shared'
9272       ;;
9273
9274     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9275       case $cc_basename in
9276       # old Intel for x86_64 which still supported -KPIC.
9277       ecc*)
9278         lt_prog_compiler_wl='-Wl,'
9279         lt_prog_compiler_pic='-KPIC'
9280         lt_prog_compiler_static='-static'
9281         ;;
9282       # icc used to be incompatible with GCC.
9283       # ICC 10 doesn't accept -KPIC any more.
9284       icc* | ifort*)
9285         lt_prog_compiler_wl='-Wl,'
9286         lt_prog_compiler_pic='-fPIC'
9287         lt_prog_compiler_static='-static'
9288         ;;
9289       # Lahey Fortran 8.1.
9290       lf95*)
9291         lt_prog_compiler_wl='-Wl,'
9292         lt_prog_compiler_pic='--shared'
9293         lt_prog_compiler_static='--static'
9294         ;;
9295       nagfor*)
9296         # NAG Fortran compiler
9297         lt_prog_compiler_wl='-Wl,-Wl,,'
9298         lt_prog_compiler_pic='-PIC'
9299         lt_prog_compiler_static='-Bstatic'
9300         ;;
9301       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9302         # Portland Group compilers (*not* the Pentium gcc compiler,
9303         # which looks to be a dead project)
9304         lt_prog_compiler_wl='-Wl,'
9305         lt_prog_compiler_pic='-fpic'
9306         lt_prog_compiler_static='-Bstatic'
9307         ;;
9308       ccc*)
9309         lt_prog_compiler_wl='-Wl,'
9310         # All Alpha code is PIC.
9311         lt_prog_compiler_static='-non_shared'
9312         ;;
9313       xl* | bgxl* | bgf* | mpixl*)
9314         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9315         lt_prog_compiler_wl='-Wl,'
9316         lt_prog_compiler_pic='-qpic'
9317         lt_prog_compiler_static='-qstaticlink'
9318         ;;
9319       *)
9320         case `$CC -V 2>&1 | sed 5q` in
9321         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9322           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9323           lt_prog_compiler_pic='-KPIC'
9324           lt_prog_compiler_static='-Bstatic'
9325           lt_prog_compiler_wl=''
9326           ;;
9327         *Sun\ F* | *Sun*Fortran*)
9328           lt_prog_compiler_pic='-KPIC'
9329           lt_prog_compiler_static='-Bstatic'
9330           lt_prog_compiler_wl='-Qoption ld '
9331           ;;
9332         *Sun\ C*)
9333           # Sun C 5.9
9334           lt_prog_compiler_pic='-KPIC'
9335           lt_prog_compiler_static='-Bstatic'
9336           lt_prog_compiler_wl='-Wl,'
9337           ;;
9338         *Intel*\ [CF]*Compiler*)
9339           lt_prog_compiler_wl='-Wl,'
9340           lt_prog_compiler_pic='-fPIC'
9341           lt_prog_compiler_static='-static'
9342           ;;
9343         *Portland\ Group*)
9344           lt_prog_compiler_wl='-Wl,'
9345           lt_prog_compiler_pic='-fpic'
9346           lt_prog_compiler_static='-Bstatic'
9347           ;;
9348         esac
9349         ;;
9350       esac
9351       ;;
9352
9353     newsos6)
9354       lt_prog_compiler_pic='-KPIC'
9355       lt_prog_compiler_static='-Bstatic'
9356       ;;
9357
9358     *nto* | *qnx*)
9359       # QNX uses GNU C++, but need to define -shared option too, otherwise
9360       # it will coredump.
9361       lt_prog_compiler_pic='-fPIC -shared'
9362       ;;
9363
9364     osf3* | osf4* | osf5*)
9365       lt_prog_compiler_wl='-Wl,'
9366       # All OSF/1 code is PIC.
9367       lt_prog_compiler_static='-non_shared'
9368       ;;
9369
9370     rdos*)
9371       lt_prog_compiler_static='-non_shared'
9372       ;;
9373
9374     solaris*)
9375       lt_prog_compiler_pic='-KPIC'
9376       lt_prog_compiler_static='-Bstatic'
9377       case $cc_basename in
9378       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9379         lt_prog_compiler_wl='-Qoption ld ';;
9380       *)
9381         lt_prog_compiler_wl='-Wl,';;
9382       esac
9383       ;;
9384
9385     sunos4*)
9386       lt_prog_compiler_wl='-Qoption ld '
9387       lt_prog_compiler_pic='-PIC'
9388       lt_prog_compiler_static='-Bstatic'
9389       ;;
9390
9391     sysv4 | sysv4.2uw2* | sysv4.3*)
9392       lt_prog_compiler_wl='-Wl,'
9393       lt_prog_compiler_pic='-KPIC'
9394       lt_prog_compiler_static='-Bstatic'
9395       ;;
9396
9397     sysv4*MP*)
9398       if test -d /usr/nec ;then
9399         lt_prog_compiler_pic='-Kconform_pic'
9400         lt_prog_compiler_static='-Bstatic'
9401       fi
9402       ;;
9403
9404     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9405       lt_prog_compiler_wl='-Wl,'
9406       lt_prog_compiler_pic='-KPIC'
9407       lt_prog_compiler_static='-Bstatic'
9408       ;;
9409
9410     unicos*)
9411       lt_prog_compiler_wl='-Wl,'
9412       lt_prog_compiler_can_build_shared=no
9413       ;;
9414
9415     uts4*)
9416       lt_prog_compiler_pic='-pic'
9417       lt_prog_compiler_static='-Bstatic'
9418       ;;
9419
9420     *)
9421       lt_prog_compiler_can_build_shared=no
9422       ;;
9423     esac
9424   fi
9425
9426 case $host_os in
9427   # For platforms which do not support PIC, -DPIC is meaningless:
9428   *djgpp*)
9429     lt_prog_compiler_pic=
9430     ;;
9431   *)
9432     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9433     ;;
9434 esac
9435
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9437 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9438 if ${lt_cv_prog_compiler_pic+:} false; then :
9439   $as_echo_n "(cached) " >&6
9440 else
9441   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9442 fi
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9444 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9445 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9446
9447 #
9448 # Check to make sure the PIC flag actually works.
9449 #
9450 if test -n "$lt_prog_compiler_pic"; then
9451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9452 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9453 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9454   $as_echo_n "(cached) " >&6
9455 else
9456   lt_cv_prog_compiler_pic_works=no
9457    ac_outfile=conftest.$ac_objext
9458    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9459    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9460    # Insert the option either (1) after the last *FLAGS variable, or
9461    # (2) before a word containing "conftest.", or (3) at the end.
9462    # Note that $ac_compile itself does not contain backslashes and begins
9463    # with a dollar sign (not a hyphen), so the echo should work correctly.
9464    # The option is referenced via a variable to avoid confusing sed.
9465    lt_compile=`echo "$ac_compile" | $SED \
9466    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9467    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9468    -e 's:$: $lt_compiler_flag:'`
9469    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9470    (eval "$lt_compile" 2>conftest.err)
9471    ac_status=$?
9472    cat conftest.err >&5
9473    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474    if (exit $ac_status) && test -s "$ac_outfile"; then
9475      # The compiler can only warn and ignore the option if not recognized
9476      # So say no if there are warnings other than the usual output.
9477      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9478      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9479      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9480        lt_cv_prog_compiler_pic_works=yes
9481      fi
9482    fi
9483    $RM conftest*
9484
9485 fi
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9487 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9488
9489 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9490     case $lt_prog_compiler_pic in
9491      "" | " "*) ;;
9492      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9493      esac
9494 else
9495     lt_prog_compiler_pic=
9496      lt_prog_compiler_can_build_shared=no
9497 fi
9498
9499 fi
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511 #
9512 # Check to make sure the static flag actually works.
9513 #
9514 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9516 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9517 if ${lt_cv_prog_compiler_static_works+:} false; then :
9518   $as_echo_n "(cached) " >&6
9519 else
9520   lt_cv_prog_compiler_static_works=no
9521    save_LDFLAGS="$LDFLAGS"
9522    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9523    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9524    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9525      # The linker can only warn and ignore the option if not recognized
9526      # So say no if there are warnings
9527      if test -s conftest.err; then
9528        # Append any errors to the config.log.
9529        cat conftest.err 1>&5
9530        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9531        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9532        if diff conftest.exp conftest.er2 >/dev/null; then
9533          lt_cv_prog_compiler_static_works=yes
9534        fi
9535      else
9536        lt_cv_prog_compiler_static_works=yes
9537      fi
9538    fi
9539    $RM -r conftest*
9540    LDFLAGS="$save_LDFLAGS"
9541
9542 fi
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9544 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9545
9546 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9547     :
9548 else
9549     lt_prog_compiler_static=
9550 fi
9551
9552
9553
9554
9555
9556
9557
9558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9559 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9560 if ${lt_cv_prog_compiler_c_o+:} false; then :
9561   $as_echo_n "(cached) " >&6
9562 else
9563   lt_cv_prog_compiler_c_o=no
9564    $RM -r conftest 2>/dev/null
9565    mkdir conftest
9566    cd conftest
9567    mkdir out
9568    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9569
9570    lt_compiler_flag="-o out/conftest2.$ac_objext"
9571    # Insert the option either (1) after the last *FLAGS variable, or
9572    # (2) before a word containing "conftest.", or (3) at the end.
9573    # Note that $ac_compile itself does not contain backslashes and begins
9574    # with a dollar sign (not a hyphen), so the echo should work correctly.
9575    lt_compile=`echo "$ac_compile" | $SED \
9576    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9577    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9578    -e 's:$: $lt_compiler_flag:'`
9579    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9580    (eval "$lt_compile" 2>out/conftest.err)
9581    ac_status=$?
9582    cat out/conftest.err >&5
9583    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9585    then
9586      # The compiler can only warn and ignore the option if not recognized
9587      # So say no if there are warnings
9588      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9589      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9590      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9591        lt_cv_prog_compiler_c_o=yes
9592      fi
9593    fi
9594    chmod u+w . 2>&5
9595    $RM conftest*
9596    # SGI C++ compiler will create directory out/ii_files/ for
9597    # template instantiation
9598    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9599    $RM out/* && rmdir out
9600    cd ..
9601    $RM -r conftest
9602    $RM conftest*
9603
9604 fi
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9606 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9607
9608
9609
9610
9611
9612
9613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9614 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9615 if ${lt_cv_prog_compiler_c_o+:} false; then :
9616   $as_echo_n "(cached) " >&6
9617 else
9618   lt_cv_prog_compiler_c_o=no
9619    $RM -r conftest 2>/dev/null
9620    mkdir conftest
9621    cd conftest
9622    mkdir out
9623    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9624
9625    lt_compiler_flag="-o out/conftest2.$ac_objext"
9626    # Insert the option either (1) after the last *FLAGS variable, or
9627    # (2) before a word containing "conftest.", or (3) at the end.
9628    # Note that $ac_compile itself does not contain backslashes and begins
9629    # with a dollar sign (not a hyphen), so the echo should work correctly.
9630    lt_compile=`echo "$ac_compile" | $SED \
9631    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9632    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9633    -e 's:$: $lt_compiler_flag:'`
9634    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9635    (eval "$lt_compile" 2>out/conftest.err)
9636    ac_status=$?
9637    cat out/conftest.err >&5
9638    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9640    then
9641      # The compiler can only warn and ignore the option if not recognized
9642      # So say no if there are warnings
9643      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9644      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9645      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9646        lt_cv_prog_compiler_c_o=yes
9647      fi
9648    fi
9649    chmod u+w . 2>&5
9650    $RM conftest*
9651    # SGI C++ compiler will create directory out/ii_files/ for
9652    # template instantiation
9653    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9654    $RM out/* && rmdir out
9655    cd ..
9656    $RM -r conftest
9657    $RM conftest*
9658
9659 fi
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9661 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9662
9663
9664
9665
9666 hard_links="nottested"
9667 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9668   # do not overwrite the value of need_locks provided by the user
9669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9670 $as_echo_n "checking if we can lock with hard links... " >&6; }
9671   hard_links=yes
9672   $RM conftest*
9673   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9674   touch conftest.a
9675   ln conftest.a conftest.b 2>&5 || hard_links=no
9676   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9678 $as_echo "$hard_links" >&6; }
9679   if test "$hard_links" = no; then
9680     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9681 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9682     need_locks=warn
9683   fi
9684 else
9685   need_locks=no
9686 fi
9687
9688
9689
9690
9691
9692
9693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9694 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9695
9696   runpath_var=
9697   allow_undefined_flag=
9698   always_export_symbols=no
9699   archive_cmds=
9700   archive_expsym_cmds=
9701   compiler_needs_object=no
9702   enable_shared_with_static_runtimes=no
9703   export_dynamic_flag_spec=
9704   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9705   hardcode_automatic=no
9706   hardcode_direct=no
9707   hardcode_direct_absolute=no
9708   hardcode_libdir_flag_spec=
9709   hardcode_libdir_separator=
9710   hardcode_minus_L=no
9711   hardcode_shlibpath_var=unsupported
9712   inherit_rpath=no
9713   link_all_deplibs=unknown
9714   module_cmds=
9715   module_expsym_cmds=
9716   old_archive_from_new_cmds=
9717   old_archive_from_expsyms_cmds=
9718   thread_safe_flag_spec=
9719   whole_archive_flag_spec=
9720   # include_expsyms should be a list of space-separated symbols to be *always*
9721   # included in the symbol list
9722   include_expsyms=
9723   # exclude_expsyms can be an extended regexp of symbols to exclude
9724   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9725   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9726   # as well as any symbol that contains `d'.
9727   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9728   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9729   # platforms (ab)use it in PIC code, but their linkers get confused if
9730   # the symbol is explicitly referenced.  Since portable code cannot
9731   # rely on this symbol name, it's probably fine to never include it in
9732   # preloaded symbol tables.
9733   # Exclude shared library initialization/finalization symbols.
9734   extract_expsyms_cmds=
9735
9736   case $host_os in
9737   cygwin* | mingw* | pw32* | cegcc*)
9738     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9739     # When not using gcc, we currently assume that we are using
9740     # Microsoft Visual C++.
9741     if test "$GCC" != yes; then
9742       with_gnu_ld=no
9743     fi
9744     ;;
9745   interix*)
9746     # we just hope/assume this is gcc and not c89 (= MSVC++)
9747     with_gnu_ld=yes
9748     ;;
9749   openbsd*)
9750     with_gnu_ld=no
9751     ;;
9752   linux* | k*bsd*-gnu | gnu*)
9753     link_all_deplibs=no
9754     ;;
9755   esac
9756
9757   ld_shlibs=yes
9758
9759   # On some targets, GNU ld is compatible enough with the native linker
9760   # that we're better off using the native interface for both.
9761   lt_use_gnu_ld_interface=no
9762   if test "$with_gnu_ld" = yes; then
9763     case $host_os in
9764       aix*)
9765         # The AIX port of GNU ld has always aspired to compatibility
9766         # with the native linker.  However, as the warning in the GNU ld
9767         # block says, versions before 2.19.5* couldn't really create working
9768         # shared libraries, regardless of the interface used.
9769         case `$LD -v 2>&1` in
9770           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9771           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9772           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9773           *)
9774             lt_use_gnu_ld_interface=yes
9775             ;;
9776         esac
9777         ;;
9778       *)
9779         lt_use_gnu_ld_interface=yes
9780         ;;
9781     esac
9782   fi
9783
9784   if test "$lt_use_gnu_ld_interface" = yes; then
9785     # If archive_cmds runs LD, not CC, wlarc should be empty
9786     wlarc='${wl}'
9787
9788     # Set some defaults for GNU ld with shared library support. These
9789     # are reset later if shared libraries are not supported. Putting them
9790     # here allows them to be overridden if necessary.
9791     runpath_var=LD_RUN_PATH
9792     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9793     export_dynamic_flag_spec='${wl}--export-dynamic'
9794     # ancient GNU ld didn't support --whole-archive et. al.
9795     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9796       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9797     else
9798       whole_archive_flag_spec=
9799     fi
9800     supports_anon_versioning=no
9801     case `$LD -v 2>&1` in
9802       *GNU\ gold*) supports_anon_versioning=yes ;;
9803       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9804       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9805       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9806       *\ 2.11.*) ;; # other 2.11 versions
9807       *) supports_anon_versioning=yes ;;
9808     esac
9809
9810     # See if GNU ld supports shared libraries.
9811     case $host_os in
9812     aix[3-9]*)
9813       # On AIX/PPC, the GNU linker is very broken
9814       if test "$host_cpu" != ia64; then
9815         ld_shlibs=no
9816         cat <<_LT_EOF 1>&2
9817
9818 *** Warning: the GNU linker, at least up to release 2.19, is reported
9819 *** to be unable to reliably create shared libraries on AIX.
9820 *** Therefore, libtool is disabling shared libraries support.  If you
9821 *** really care for shared libraries, you may want to install binutils
9822 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9823 *** You will then need to restart the configuration process.
9824
9825 _LT_EOF
9826       fi
9827       ;;
9828
9829     amigaos*)
9830       case $host_cpu in
9831       powerpc)
9832             # see comment about AmigaOS4 .so support
9833             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9834             archive_expsym_cmds=''
9835         ;;
9836       m68k)
9837             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)'
9838             hardcode_libdir_flag_spec='-L$libdir'
9839             hardcode_minus_L=yes
9840         ;;
9841       esac
9842       ;;
9843
9844     beos*)
9845       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9846         allow_undefined_flag=unsupported
9847         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9848         # support --undefined.  This deserves some investigation.  FIXME
9849         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9850       else
9851         ld_shlibs=no
9852       fi
9853       ;;
9854
9855     cygwin* | mingw* | pw32* | cegcc*)
9856       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9857       # as there is no search path for DLLs.
9858       hardcode_libdir_flag_spec='-L$libdir'
9859       export_dynamic_flag_spec='${wl}--export-all-symbols'
9860       allow_undefined_flag=unsupported
9861       always_export_symbols=no
9862       enable_shared_with_static_runtimes=yes
9863       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'
9864       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9865
9866       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9867         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9868         # If the export-symbols file already is a .def file (1st line
9869         # is EXPORTS), use it as is; otherwise, prepend...
9870         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9871           cp $export_symbols $output_objdir/$soname.def;
9872         else
9873           echo EXPORTS > $output_objdir/$soname.def;
9874           cat $export_symbols >> $output_objdir/$soname.def;
9875         fi~
9876         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9877       else
9878         ld_shlibs=no
9879       fi
9880       ;;
9881
9882     haiku*)
9883       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9884       link_all_deplibs=yes
9885       ;;
9886
9887     interix[3-9]*)
9888       hardcode_direct=no
9889       hardcode_shlibpath_var=no
9890       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9891       export_dynamic_flag_spec='${wl}-E'
9892       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9893       # Instead, shared libraries are loaded at an image base (0x10000000 by
9894       # default) and relocated if they conflict, which is a slow very memory
9895       # consuming and fragmenting process.  To avoid this, we pick a random,
9896       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9897       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9898       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9899       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'
9900       ;;
9901
9902     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9903       tmp_diet=no
9904       if test "$host_os" = linux-dietlibc; then
9905         case $cc_basename in
9906           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9907         esac
9908       fi
9909       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9910          && test "$tmp_diet" = no
9911       then
9912         tmp_addflag=' $pic_flag'
9913         tmp_sharedflag='-shared'
9914         case $cc_basename,$host_cpu in
9915         pgcc*)                          # Portland Group C compiler
9916           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'
9917           tmp_addflag=' $pic_flag'
9918           ;;
9919         pgf77* | pgf90* | pgf95* | pgfortran*)
9920                                         # Portland Group f77 and f90 compilers
9921           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'
9922           tmp_addflag=' $pic_flag -Mnomain' ;;
9923         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9924           tmp_addflag=' -i_dynamic' ;;
9925         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9926           tmp_addflag=' -i_dynamic -nofor_main' ;;
9927         ifc* | ifort*)                  # Intel Fortran compiler
9928           tmp_addflag=' -nofor_main' ;;
9929         lf95*)                          # Lahey Fortran 8.1
9930           whole_archive_flag_spec=
9931           tmp_sharedflag='--shared' ;;
9932         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9933           tmp_sharedflag='-qmkshrobj'
9934           tmp_addflag= ;;
9935         nvcc*)  # Cuda Compiler Driver 2.2
9936           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'
9937           compiler_needs_object=yes
9938           ;;
9939         esac
9940         case `$CC -V 2>&1 | sed 5q` in
9941         *Sun\ C*)                       # Sun C 5.9
9942           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'
9943           compiler_needs_object=yes
9944           tmp_sharedflag='-G' ;;
9945         *Sun\ F*)                       # Sun Fortran 8.3
9946           tmp_sharedflag='-G' ;;
9947         esac
9948         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9949
9950         if test "x$supports_anon_versioning" = xyes; then
9951           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9952             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9953             echo "local: *; };" >> $output_objdir/$libname.ver~
9954             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9955         fi
9956
9957         case $cc_basename in
9958         xlf* | bgf* | bgxlf* | mpixlf*)
9959           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9960           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9961           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9962           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9963           if test "x$supports_anon_versioning" = xyes; then
9964             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9965               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9966               echo "local: *; };" >> $output_objdir/$libname.ver~
9967               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9968           fi
9969           ;;
9970         esac
9971       else
9972         ld_shlibs=no
9973       fi
9974       ;;
9975
9976     netbsd* | netbsdelf*-gnu)
9977       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9978         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9979         wlarc=
9980       else
9981         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9982         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9983       fi
9984       ;;
9985
9986     solaris*)
9987       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9988         ld_shlibs=no
9989         cat <<_LT_EOF 1>&2
9990
9991 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9992 *** create shared libraries on Solaris systems.  Therefore, libtool
9993 *** is disabling shared libraries support.  We urge you to upgrade GNU
9994 *** binutils to release 2.9.1 or newer.  Another option is to modify
9995 *** your PATH or compiler configuration so that the native linker is
9996 *** used, and then restart.
9997
9998 _LT_EOF
9999       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10000         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10001         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10002       else
10003         ld_shlibs=no
10004       fi
10005       ;;
10006
10007     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10008       case `$LD -v 2>&1` in
10009         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10010         ld_shlibs=no
10011         cat <<_LT_EOF 1>&2
10012
10013 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10014 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10015 *** is disabling shared libraries support.  We urge you to upgrade GNU
10016 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10017 *** your PATH or compiler configuration so that the native linker is
10018 *** used, and then restart.
10019
10020 _LT_EOF
10021         ;;
10022         *)
10023           # For security reasons, it is highly recommended that you always
10024           # use absolute paths for naming shared libraries, and exclude the
10025           # DT_RUNPATH tag from executables and libraries.  But doing so
10026           # requires that you compile everything twice, which is a pain.
10027           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10028             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10029             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10030             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10031           else
10032             ld_shlibs=no
10033           fi
10034         ;;
10035       esac
10036       ;;
10037
10038     sunos4*)
10039       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10040       wlarc=
10041       hardcode_direct=yes
10042       hardcode_shlibpath_var=no
10043       ;;
10044
10045     *)
10046       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10047         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10048         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10049       else
10050         ld_shlibs=no
10051       fi
10052       ;;
10053     esac
10054
10055     if test "$ld_shlibs" = no; then
10056       runpath_var=
10057       hardcode_libdir_flag_spec=
10058       export_dynamic_flag_spec=
10059       whole_archive_flag_spec=
10060     fi
10061   else
10062     # PORTME fill in a description of your system's linker (not GNU ld)
10063     case $host_os in
10064     aix3*)
10065       allow_undefined_flag=unsupported
10066       always_export_symbols=yes
10067       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'
10068       # Note: this linker hardcodes the directories in LIBPATH if there
10069       # are no directories specified by -L.
10070       hardcode_minus_L=yes
10071       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10072         # Neither direct hardcoding nor static linking is supported with a
10073         # broken collect2.
10074         hardcode_direct=unsupported
10075       fi
10076       ;;
10077
10078     aix[4-9]*)
10079       if test "$host_cpu" = ia64; then
10080         # On IA64, the linker does run time linking by default, so we don't
10081         # have to do anything special.
10082         aix_use_runtimelinking=no
10083         exp_sym_flag='-Bexport'
10084         no_entry_flag=""
10085       else
10086         # If we're using GNU nm, then we don't want the "-C" option.
10087         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10088         # Also, AIX nm treats weak defined symbols like other global
10089         # defined symbols, whereas GNU nm marks them as "W".
10090         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10091           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'
10092         else
10093           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'
10094         fi
10095         aix_use_runtimelinking=no
10096
10097         # Test if we are trying to use run time linking or normal
10098         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10099         # need to do runtime linking.
10100         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10101           for ld_flag in $LDFLAGS; do
10102           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10103             aix_use_runtimelinking=yes
10104             break
10105           fi
10106           done
10107           ;;
10108         esac
10109
10110         exp_sym_flag='-bexport'
10111         no_entry_flag='-bnoentry'
10112       fi
10113
10114       # When large executables or shared objects are built, AIX ld can
10115       # have problems creating the table of contents.  If linking a library
10116       # or program results in "error TOC overflow" add -mminimal-toc to
10117       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10118       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10119
10120       archive_cmds=''
10121       hardcode_direct=yes
10122       hardcode_direct_absolute=yes
10123       hardcode_libdir_separator=':'
10124       link_all_deplibs=yes
10125       file_list_spec='${wl}-f,'
10126
10127       if test "$GCC" = yes; then
10128         case $host_os in aix4.[012]|aix4.[012].*)
10129         # We only want to do this on AIX 4.2 and lower, the check
10130         # below for broken collect2 doesn't work under 4.3+
10131           collect2name=`${CC} -print-prog-name=collect2`
10132           if test -f "$collect2name" &&
10133            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10134           then
10135           # We have reworked collect2
10136           :
10137           else
10138           # We have old collect2
10139           hardcode_direct=unsupported
10140           # It fails to find uninstalled libraries when the uninstalled
10141           # path is not listed in the libpath.  Setting hardcode_minus_L
10142           # to unsupported forces relinking
10143           hardcode_minus_L=yes
10144           hardcode_libdir_flag_spec='-L$libdir'
10145           hardcode_libdir_separator=
10146           fi
10147           ;;
10148         esac
10149         shared_flag='-shared'
10150         if test "$aix_use_runtimelinking" = yes; then
10151           shared_flag="$shared_flag "'${wl}-G'
10152         fi
10153         link_all_deplibs=no
10154       else
10155         # not using gcc
10156         if test "$host_cpu" = ia64; then
10157         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10158         # chokes on -Wl,-G. The following line is correct:
10159           shared_flag='-G'
10160         else
10161           if test "$aix_use_runtimelinking" = yes; then
10162             shared_flag='${wl}-G'
10163           else
10164             shared_flag='${wl}-bM:SRE'
10165           fi
10166         fi
10167       fi
10168
10169       export_dynamic_flag_spec='${wl}-bexpall'
10170       # It seems that -bexpall does not export symbols beginning with
10171       # underscore (_), so it is better to generate a list of symbols to export.
10172       always_export_symbols=yes
10173       if test "$aix_use_runtimelinking" = yes; then
10174         # Warning - without using the other runtime loading flags (-brtl),
10175         # -berok will link without error, but may produce a broken library.
10176         allow_undefined_flag='-berok'
10177         # Determine the default libpath from the value encoded in an
10178         # empty executable.
10179         if test "${lt_cv_aix_libpath+set}" = set; then
10180   aix_libpath=$lt_cv_aix_libpath
10181 else
10182   if ${lt_cv_aix_libpath_+:} false; then :
10183   $as_echo_n "(cached) " >&6
10184 else
10185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h.  */
10187
10188 int
10189 main ()
10190 {
10191
10192   ;
10193   return 0;
10194 }
10195 _ACEOF
10196 if ac_fn_c_try_link "$LINENO"; then :
10197
10198   lt_aix_libpath_sed='
10199       /Import File Strings/,/^$/ {
10200           /^0/ {
10201               s/^0  *\([^ ]*\) *$/\1/
10202               p
10203           }
10204       }'
10205   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10206   # Check for a 64-bit object if we didn't find anything.
10207   if test -z "$lt_cv_aix_libpath_"; then
10208     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10209   fi
10210 fi
10211 rm -f core conftest.err conftest.$ac_objext \
10212     conftest$ac_exeext conftest.$ac_ext
10213   if test -z "$lt_cv_aix_libpath_"; then
10214     lt_cv_aix_libpath_="/usr/lib:/lib"
10215   fi
10216
10217 fi
10218
10219   aix_libpath=$lt_cv_aix_libpath_
10220 fi
10221
10222         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10223         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"
10224       else
10225         if test "$host_cpu" = ia64; then
10226           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10227           allow_undefined_flag="-z nodefs"
10228           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"
10229         else
10230          # Determine the default libpath from the value encoded in an
10231          # empty executable.
10232          if test "${lt_cv_aix_libpath+set}" = set; then
10233   aix_libpath=$lt_cv_aix_libpath
10234 else
10235   if ${lt_cv_aix_libpath_+:} false; then :
10236   $as_echo_n "(cached) " >&6
10237 else
10238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h.  */
10240
10241 int
10242 main ()
10243 {
10244
10245   ;
10246   return 0;
10247 }
10248 _ACEOF
10249 if ac_fn_c_try_link "$LINENO"; then :
10250
10251   lt_aix_libpath_sed='
10252       /Import File Strings/,/^$/ {
10253           /^0/ {
10254               s/^0  *\([^ ]*\) *$/\1/
10255               p
10256           }
10257       }'
10258   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10259   # Check for a 64-bit object if we didn't find anything.
10260   if test -z "$lt_cv_aix_libpath_"; then
10261     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10262   fi
10263 fi
10264 rm -f core conftest.err conftest.$ac_objext \
10265     conftest$ac_exeext conftest.$ac_ext
10266   if test -z "$lt_cv_aix_libpath_"; then
10267     lt_cv_aix_libpath_="/usr/lib:/lib"
10268   fi
10269
10270 fi
10271
10272   aix_libpath=$lt_cv_aix_libpath_
10273 fi
10274
10275          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10276           # Warning - without using the other run time loading flags,
10277           # -berok will link without error, but may produce a broken library.
10278           no_undefined_flag=' ${wl}-bernotok'
10279           allow_undefined_flag=' ${wl}-berok'
10280           if test "$with_gnu_ld" = yes; then
10281             # We only use this code for GNU lds that support --whole-archive.
10282             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10283           else
10284             # Exported symbols can be pulled into shared objects from archives
10285             whole_archive_flag_spec='$convenience'
10286           fi
10287           archive_cmds_need_lc=yes
10288           # This is similar to how AIX traditionally builds its shared libraries.
10289           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'
10290         fi
10291       fi
10292       ;;
10293
10294     amigaos*)
10295       case $host_cpu in
10296       powerpc)
10297             # see comment about AmigaOS4 .so support
10298             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10299             archive_expsym_cmds=''
10300         ;;
10301       m68k)
10302             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)'
10303             hardcode_libdir_flag_spec='-L$libdir'
10304             hardcode_minus_L=yes
10305         ;;
10306       esac
10307       ;;
10308
10309     bsdi[45]*)
10310       export_dynamic_flag_spec=-rdynamic
10311       ;;
10312
10313     cygwin* | mingw* | pw32* | cegcc*)
10314       # When not using gcc, we currently assume that we are using
10315       # Microsoft Visual C++.
10316       # hardcode_libdir_flag_spec is actually meaningless, as there is
10317       # no search path for DLLs.
10318       case $cc_basename in
10319       cl*)
10320         # Native MSVC
10321         hardcode_libdir_flag_spec=' '
10322         allow_undefined_flag=unsupported
10323         always_export_symbols=yes
10324         file_list_spec='@'
10325         # Tell ltmain to make .lib files, not .a files.
10326         libext=lib
10327         # Tell ltmain to make .dll files, not .so files.
10328         shrext_cmds=".dll"
10329         # FIXME: Setting linknames here is a bad hack.
10330         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10331         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10332             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10333           else
10334             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10335           fi~
10336           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10337           linknames='
10338         # The linker will not automatically build a static lib if we build a DLL.
10339         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10340         enable_shared_with_static_runtimes=yes
10341         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10342         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10343         # Don't use ranlib
10344         old_postinstall_cmds='chmod 644 $oldlib'
10345         postlink_cmds='lt_outputfile="@OUTPUT@"~
10346           lt_tool_outputfile="@TOOL_OUTPUT@"~
10347           case $lt_outputfile in
10348             *.exe|*.EXE) ;;
10349             *)
10350               lt_outputfile="$lt_outputfile.exe"
10351               lt_tool_outputfile="$lt_tool_outputfile.exe"
10352               ;;
10353           esac~
10354           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10355             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10356             $RM "$lt_outputfile.manifest";
10357           fi'
10358         ;;
10359       *)
10360         # Assume MSVC wrapper
10361         hardcode_libdir_flag_spec=' '
10362         allow_undefined_flag=unsupported
10363         # Tell ltmain to make .lib files, not .a files.
10364         libext=lib
10365         # Tell ltmain to make .dll files, not .so files.
10366         shrext_cmds=".dll"
10367         # FIXME: Setting linknames here is a bad hack.
10368         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10369         # The linker will automatically build a .lib file if we build a DLL.
10370         old_archive_from_new_cmds='true'
10371         # FIXME: Should let the user specify the lib program.
10372         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10373         enable_shared_with_static_runtimes=yes
10374         ;;
10375       esac
10376       ;;
10377
10378     darwin* | rhapsody*)
10379
10380
10381   archive_cmds_need_lc=no
10382   hardcode_direct=no
10383   hardcode_automatic=yes
10384   hardcode_shlibpath_var=unsupported
10385   if test "$lt_cv_ld_force_load" = "yes"; then
10386     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\"`'
10387
10388   else
10389     whole_archive_flag_spec=''
10390   fi
10391   link_all_deplibs=yes
10392   allow_undefined_flag="$_lt_dar_allow_undefined"
10393   case $cc_basename in
10394      ifort*) _lt_dar_can_shared=yes ;;
10395      *) _lt_dar_can_shared=$GCC ;;
10396   esac
10397   if test "$_lt_dar_can_shared" = "yes"; then
10398     output_verbose_link_cmd=func_echo_all
10399     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10400     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10401     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}"
10402     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}"
10403
10404   else
10405   ld_shlibs=no
10406   fi
10407
10408       ;;
10409
10410     dgux*)
10411       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10412       hardcode_libdir_flag_spec='-L$libdir'
10413       hardcode_shlibpath_var=no
10414       ;;
10415
10416     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10417     # support.  Future versions do this automatically, but an explicit c++rt0.o
10418     # does not break anything, and helps significantly (at the cost of a little
10419     # extra space).
10420     freebsd2.2*)
10421       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10422       hardcode_libdir_flag_spec='-R$libdir'
10423       hardcode_direct=yes
10424       hardcode_shlibpath_var=no
10425       ;;
10426
10427     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10428     freebsd2.*)
10429       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10430       hardcode_direct=yes
10431       hardcode_minus_L=yes
10432       hardcode_shlibpath_var=no
10433       ;;
10434
10435     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10436     freebsd* | dragonfly*)
10437       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10438       hardcode_libdir_flag_spec='-R$libdir'
10439       hardcode_direct=yes
10440       hardcode_shlibpath_var=no
10441       ;;
10442
10443     hpux9*)
10444       if test "$GCC" = yes; then
10445         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'
10446       else
10447         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'
10448       fi
10449       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10450       hardcode_libdir_separator=:
10451       hardcode_direct=yes
10452
10453       # hardcode_minus_L: Not really in the search PATH,
10454       # but as the default location of the library.
10455       hardcode_minus_L=yes
10456       export_dynamic_flag_spec='${wl}-E'
10457       ;;
10458
10459     hpux10*)
10460       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10461         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10462       else
10463         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10464       fi
10465       if test "$with_gnu_ld" = no; then
10466         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10467         hardcode_libdir_separator=:
10468         hardcode_direct=yes
10469         hardcode_direct_absolute=yes
10470         export_dynamic_flag_spec='${wl}-E'
10471         # hardcode_minus_L: Not really in the search PATH,
10472         # but as the default location of the library.
10473         hardcode_minus_L=yes
10474       fi
10475       ;;
10476
10477     hpux11*)
10478       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10479         case $host_cpu in
10480         hppa*64*)
10481           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10482           ;;
10483         ia64*)
10484           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10485           ;;
10486         *)
10487           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10488           ;;
10489         esac
10490       else
10491         case $host_cpu in
10492         hppa*64*)
10493           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10494           ;;
10495         ia64*)
10496           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10497           ;;
10498         *)
10499
10500           # Older versions of the 11.00 compiler do not understand -b yet
10501           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10502           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10503 $as_echo_n "checking if $CC understands -b... " >&6; }
10504 if ${lt_cv_prog_compiler__b+:} false; then :
10505   $as_echo_n "(cached) " >&6
10506 else
10507   lt_cv_prog_compiler__b=no
10508    save_LDFLAGS="$LDFLAGS"
10509    LDFLAGS="$LDFLAGS -b"
10510    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10511    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10512      # The linker can only warn and ignore the option if not recognized
10513      # So say no if there are warnings
10514      if test -s conftest.err; then
10515        # Append any errors to the config.log.
10516        cat conftest.err 1>&5
10517        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10518        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10519        if diff conftest.exp conftest.er2 >/dev/null; then
10520          lt_cv_prog_compiler__b=yes
10521        fi
10522      else
10523        lt_cv_prog_compiler__b=yes
10524      fi
10525    fi
10526    $RM -r conftest*
10527    LDFLAGS="$save_LDFLAGS"
10528
10529 fi
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10531 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10532
10533 if test x"$lt_cv_prog_compiler__b" = xyes; then
10534     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10535 else
10536     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10537 fi
10538
10539           ;;
10540         esac
10541       fi
10542       if test "$with_gnu_ld" = no; then
10543         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10544         hardcode_libdir_separator=:
10545
10546         case $host_cpu in
10547         hppa*64*|ia64*)
10548           hardcode_direct=no
10549           hardcode_shlibpath_var=no
10550           ;;
10551         *)
10552           hardcode_direct=yes
10553           hardcode_direct_absolute=yes
10554           export_dynamic_flag_spec='${wl}-E'
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           ;;
10560         esac
10561       fi
10562       ;;
10563
10564     irix5* | irix6* | nonstopux*)
10565       if test "$GCC" = yes; then
10566         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'
10567         # Try to use the -exported_symbol ld option, if it does not
10568         # work, assume that -exports_file does not work either and
10569         # implicitly export all symbols.
10570         # This should be the same for all languages, so no per-tag cache variable.
10571         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10572 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10573 if ${lt_cv_irix_exported_symbol+:} false; then :
10574   $as_echo_n "(cached) " >&6
10575 else
10576   save_LDFLAGS="$LDFLAGS"
10577            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10578            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h.  */
10580 int foo (void) { return 0; }
10581 _ACEOF
10582 if ac_fn_c_try_link "$LINENO"; then :
10583   lt_cv_irix_exported_symbol=yes
10584 else
10585   lt_cv_irix_exported_symbol=no
10586 fi
10587 rm -f core conftest.err conftest.$ac_objext \
10588     conftest$ac_exeext conftest.$ac_ext
10589            LDFLAGS="$save_LDFLAGS"
10590 fi
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10592 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10593         if test "$lt_cv_irix_exported_symbol" = yes; then
10594           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'
10595         fi
10596       else
10597         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'
10598         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'
10599       fi
10600       archive_cmds_need_lc='no'
10601       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10602       hardcode_libdir_separator=:
10603       inherit_rpath=yes
10604       link_all_deplibs=yes
10605       ;;
10606
10607     netbsd* | netbsdelf*-gnu)
10608       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10609         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10610       else
10611         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10612       fi
10613       hardcode_libdir_flag_spec='-R$libdir'
10614       hardcode_direct=yes
10615       hardcode_shlibpath_var=no
10616       ;;
10617
10618     newsos6)
10619       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10620       hardcode_direct=yes
10621       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10622       hardcode_libdir_separator=:
10623       hardcode_shlibpath_var=no
10624       ;;
10625
10626     *nto* | *qnx*)
10627       ;;
10628
10629     openbsd*)
10630       if test -f /usr/libexec/ld.so; then
10631         hardcode_direct=yes
10632         hardcode_shlibpath_var=no
10633         hardcode_direct_absolute=yes
10634         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10635           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10636           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10637           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10638           export_dynamic_flag_spec='${wl}-E'
10639         else
10640           case $host_os in
10641            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10642              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10643              hardcode_libdir_flag_spec='-R$libdir'
10644              ;;
10645            *)
10646              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10647              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10648              ;;
10649           esac
10650         fi
10651       else
10652         ld_shlibs=no
10653       fi
10654       ;;
10655
10656     os2*)
10657       hardcode_libdir_flag_spec='-L$libdir'
10658       hardcode_minus_L=yes
10659       allow_undefined_flag=unsupported
10660       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'
10661       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10662       ;;
10663
10664     osf3*)
10665       if test "$GCC" = yes; then
10666         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10667         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'
10668       else
10669         allow_undefined_flag=' -expect_unresolved \*'
10670         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'
10671       fi
10672       archive_cmds_need_lc='no'
10673       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10674       hardcode_libdir_separator=:
10675       ;;
10676
10677     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10678       if test "$GCC" = yes; then
10679         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10680         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'
10681         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10682       else
10683         allow_undefined_flag=' -expect_unresolved \*'
10684         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'
10685         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~
10686         $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'
10687
10688         # Both c and cxx compiler support -rpath directly
10689         hardcode_libdir_flag_spec='-rpath $libdir'
10690       fi
10691       archive_cmds_need_lc='no'
10692       hardcode_libdir_separator=:
10693       ;;
10694
10695     solaris*)
10696       no_undefined_flag=' -z defs'
10697       if test "$GCC" = yes; then
10698         wlarc='${wl}'
10699         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10700         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10701           $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'
10702       else
10703         case `$CC -V 2>&1` in
10704         *"Compilers 5.0"*)
10705           wlarc=''
10706           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10707           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10708           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10709           ;;
10710         *)
10711           wlarc='${wl}'
10712           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10713           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10714           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10715           ;;
10716         esac
10717       fi
10718       hardcode_libdir_flag_spec='-R$libdir'
10719       hardcode_shlibpath_var=no
10720       case $host_os in
10721       solaris2.[0-5] | solaris2.[0-5].*) ;;
10722       *)
10723         # The compiler driver will combine and reorder linker options,
10724         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10725         # but is careful enough not to reorder.
10726         # Supported since Solaris 2.6 (maybe 2.5.1?)
10727         if test "$GCC" = yes; then
10728           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10729         else
10730           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10731         fi
10732         ;;
10733       esac
10734       link_all_deplibs=yes
10735       ;;
10736
10737     sunos4*)
10738       if test "x$host_vendor" = xsequent; then
10739         # Use $CC to link under sequent, because it throws in some extra .o
10740         # files that make .init and .fini sections work.
10741         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10742       else
10743         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10744       fi
10745       hardcode_libdir_flag_spec='-L$libdir'
10746       hardcode_direct=yes
10747       hardcode_minus_L=yes
10748       hardcode_shlibpath_var=no
10749       ;;
10750
10751     sysv4)
10752       case $host_vendor in
10753         sni)
10754           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10755           hardcode_direct=yes # is this really true???
10756         ;;
10757         siemens)
10758           ## LD is ld it makes a PLAMLIB
10759           ## CC just makes a GrossModule.
10760           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10761           reload_cmds='$CC -r -o $output$reload_objs'
10762           hardcode_direct=no
10763         ;;
10764         motorola)
10765           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10767         ;;
10768       esac
10769       runpath_var='LD_RUN_PATH'
10770       hardcode_shlibpath_var=no
10771       ;;
10772
10773     sysv4.3*)
10774       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10775       hardcode_shlibpath_var=no
10776       export_dynamic_flag_spec='-Bexport'
10777       ;;
10778
10779     sysv4*MP*)
10780       if test -d /usr/nec; then
10781         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10782         hardcode_shlibpath_var=no
10783         runpath_var=LD_RUN_PATH
10784         hardcode_runpath_var=yes
10785         ld_shlibs=yes
10786       fi
10787       ;;
10788
10789     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10790       no_undefined_flag='${wl}-z,text'
10791       archive_cmds_need_lc=no
10792       hardcode_shlibpath_var=no
10793       runpath_var='LD_RUN_PATH'
10794
10795       if test "$GCC" = yes; then
10796         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10797         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10798       else
10799         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10800         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10801       fi
10802       ;;
10803
10804     sysv5* | sco3.2v5* | sco5v6*)
10805       # Note: We can NOT use -z defs as we might desire, because we do not
10806       # link with -lc, and that would cause any symbols used from libc to
10807       # always be unresolved, which means just about no library would
10808       # ever link correctly.  If we're not using GNU ld we use -z text
10809       # though, which does catch some bad symbols but isn't as heavy-handed
10810       # as -z defs.
10811       no_undefined_flag='${wl}-z,text'
10812       allow_undefined_flag='${wl}-z,nodefs'
10813       archive_cmds_need_lc=no
10814       hardcode_shlibpath_var=no
10815       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10816       hardcode_libdir_separator=':'
10817       link_all_deplibs=yes
10818       export_dynamic_flag_spec='${wl}-Bexport'
10819       runpath_var='LD_RUN_PATH'
10820
10821       if test "$GCC" = yes; then
10822         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10823         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10824       else
10825         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10826         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10827       fi
10828       ;;
10829
10830     uts4*)
10831       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10832       hardcode_libdir_flag_spec='-L$libdir'
10833       hardcode_shlibpath_var=no
10834       ;;
10835
10836     *)
10837       ld_shlibs=no
10838       ;;
10839     esac
10840
10841     if test x$host_vendor = xsni; then
10842       case $host in
10843       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10844         export_dynamic_flag_spec='${wl}-Blargedynsym'
10845         ;;
10846       esac
10847     fi
10848   fi
10849
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10851 $as_echo "$ld_shlibs" >&6; }
10852 test "$ld_shlibs" = no && can_build_shared=no
10853
10854 with_gnu_ld=$with_gnu_ld
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870 #
10871 # Do we need to explicitly link libc?
10872 #
10873 case "x$archive_cmds_need_lc" in
10874 x|xyes)
10875   # Assume -lc should be added
10876   archive_cmds_need_lc=yes
10877
10878   if test "$enable_shared" = yes && test "$GCC" = yes; then
10879     case $archive_cmds in
10880     *'~'*)
10881       # FIXME: we may have to deal with multi-command sequences.
10882       ;;
10883     '$CC '*)
10884       # Test whether the compiler implicitly links with -lc since on some
10885       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10886       # to ld, don't add -lc before -lgcc.
10887       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10888 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10889 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10890   $as_echo_n "(cached) " >&6
10891 else
10892   $RM conftest*
10893         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10894
10895         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10896   (eval $ac_compile) 2>&5
10897   ac_status=$?
10898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10899   test $ac_status = 0; } 2>conftest.err; then
10900           soname=conftest
10901           lib=conftest
10902           libobjs=conftest.$ac_objext
10903           deplibs=
10904           wl=$lt_prog_compiler_wl
10905           pic_flag=$lt_prog_compiler_pic
10906           compiler_flags=-v
10907           linker_flags=-v
10908           verstring=
10909           output_objdir=.
10910           libname=conftest
10911           lt_save_allow_undefined_flag=$allow_undefined_flag
10912           allow_undefined_flag=
10913           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10914   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10915   ac_status=$?
10916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10917   test $ac_status = 0; }
10918           then
10919             lt_cv_archive_cmds_need_lc=no
10920           else
10921             lt_cv_archive_cmds_need_lc=yes
10922           fi
10923           allow_undefined_flag=$lt_save_allow_undefined_flag
10924         else
10925           cat conftest.err 1>&5
10926         fi
10927         $RM conftest*
10928
10929 fi
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10931 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10932       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10933       ;;
10934     esac
10935   fi
10936   ;;
10937 esac
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11091 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11092
11093 if test "$GCC" = yes; then
11094   case $host_os in
11095     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11096     *) lt_awk_arg="/^libraries:/" ;;
11097   esac
11098   case $host_os in
11099     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11100     *) lt_sed_strip_eq="s,=/,/,g" ;;
11101   esac
11102   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11103   case $lt_search_path_spec in
11104   *\;*)
11105     # if the path contains ";" then we assume it to be the separator
11106     # otherwise default to the standard path separator (i.e. ":") - it is
11107     # assumed that no part of a normal pathname contains ";" but that should
11108     # okay in the real world where ";" in dirpaths is itself problematic.
11109     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11110     ;;
11111   *)
11112     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11113     ;;
11114   esac
11115   # Ok, now we have the path, separated by spaces, we can step through it
11116   # and add multilib dir if necessary.
11117   lt_tmp_lt_search_path_spec=
11118   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11119   for lt_sys_path in $lt_search_path_spec; do
11120     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11121       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11122     else
11123       test -d "$lt_sys_path" && \
11124         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11125     fi
11126   done
11127   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11128 BEGIN {RS=" "; FS="/|\n";} {
11129   lt_foo="";
11130   lt_count=0;
11131   for (lt_i = NF; lt_i > 0; lt_i--) {
11132     if ($lt_i != "" && $lt_i != ".") {
11133       if ($lt_i == "..") {
11134         lt_count++;
11135       } else {
11136         if (lt_count == 0) {
11137           lt_foo="/" $lt_i lt_foo;
11138         } else {
11139           lt_count--;
11140         }
11141       }
11142     }
11143   }
11144   if (lt_foo != "") { lt_freq[lt_foo]++; }
11145   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11146 }'`
11147   # AWK program above erroneously prepends '/' to C:/dos/paths
11148   # for these hosts.
11149   case $host_os in
11150     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11151       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11152   esac
11153   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11154 else
11155   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11156 fi
11157 library_names_spec=
11158 libname_spec='lib$name'
11159 soname_spec=
11160 shrext_cmds=".so"
11161 postinstall_cmds=
11162 postuninstall_cmds=
11163 finish_cmds=
11164 finish_eval=
11165 shlibpath_var=
11166 shlibpath_overrides_runpath=unknown
11167 version_type=none
11168 dynamic_linker="$host_os ld.so"
11169 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11170 need_lib_prefix=unknown
11171 hardcode_into_libs=no
11172
11173 # when you set need_version to no, make sure it does not cause -set_version
11174 # flags to be left without arguments
11175 need_version=unknown
11176
11177 case $host_os in
11178 aix3*)
11179   version_type=linux # correct to gnu/linux during the next big refactor
11180   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11181   shlibpath_var=LIBPATH
11182
11183   # AIX 3 has no versioning support, so we append a major version to the name.
11184   soname_spec='${libname}${release}${shared_ext}$major'
11185   ;;
11186
11187 aix[4-9]*)
11188   version_type=linux # correct to gnu/linux during the next big refactor
11189   need_lib_prefix=no
11190   need_version=no
11191   hardcode_into_libs=yes
11192   if test "$host_cpu" = ia64; then
11193     # AIX 5 supports IA64
11194     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11195     shlibpath_var=LD_LIBRARY_PATH
11196   else
11197     # With GCC up to 2.95.x, collect2 would create an import file
11198     # for dependence libraries.  The import file would start with
11199     # the line `#! .'.  This would cause the generated library to
11200     # depend on `.', always an invalid library.  This was fixed in
11201     # development snapshots of GCC prior to 3.0.
11202     case $host_os in
11203       aix4 | aix4.[01] | aix4.[01].*)
11204       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11205            echo ' yes '
11206            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11207         :
11208       else
11209         can_build_shared=no
11210       fi
11211       ;;
11212     esac
11213     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11214     # soname into executable. Probably we can add versioning support to
11215     # collect2, so additional links can be useful in future.
11216     if test "$aix_use_runtimelinking" = yes; then
11217       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11218       # instead of lib<name>.a to let people know that these are not
11219       # typical AIX shared libraries.
11220       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11221     else
11222       # We preserve .a as extension for shared libraries through AIX4.2
11223       # and later when we are not doing run time linking.
11224       library_names_spec='${libname}${release}.a $libname.a'
11225       soname_spec='${libname}${release}${shared_ext}$major'
11226     fi
11227     shlibpath_var=LIBPATH
11228   fi
11229   ;;
11230
11231 amigaos*)
11232   case $host_cpu in
11233   powerpc)
11234     # Since July 2007 AmigaOS4 officially supports .so libraries.
11235     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11236     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11237     ;;
11238   m68k)
11239     library_names_spec='$libname.ixlibrary $libname.a'
11240     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11241     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'
11242     ;;
11243   esac
11244   ;;
11245
11246 beos*)
11247   library_names_spec='${libname}${shared_ext}'
11248   dynamic_linker="$host_os ld.so"
11249   shlibpath_var=LIBRARY_PATH
11250   ;;
11251
11252 bsdi[45]*)
11253   version_type=linux # correct to gnu/linux during the next big refactor
11254   need_version=no
11255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11256   soname_spec='${libname}${release}${shared_ext}$major'
11257   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11258   shlibpath_var=LD_LIBRARY_PATH
11259   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11260   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11261   # the default ld.so.conf also contains /usr/contrib/lib and
11262   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11263   # libtool to hard-code these into programs
11264   ;;
11265
11266 cygwin* | mingw* | pw32* | cegcc*)
11267   version_type=windows
11268   shrext_cmds=".dll"
11269   need_version=no
11270   need_lib_prefix=no
11271
11272   case $GCC,$cc_basename in
11273   yes,*)
11274     # gcc
11275     library_names_spec='$libname.dll.a'
11276     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11277     postinstall_cmds='base_file=`basename \${file}`~
11278       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11279       dldir=$destdir/`dirname \$dlpath`~
11280       test -d \$dldir || mkdir -p \$dldir~
11281       $install_prog $dir/$dlname \$dldir/$dlname~
11282       chmod a+x \$dldir/$dlname~
11283       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11284         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11285       fi'
11286     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11287       dlpath=$dir/\$dldll~
11288        $RM \$dlpath'
11289     shlibpath_overrides_runpath=yes
11290
11291     case $host_os in
11292     cygwin*)
11293       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11294       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11295
11296       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11297       ;;
11298     mingw* | cegcc*)
11299       # MinGW DLLs use traditional 'lib' prefix
11300       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11301       ;;
11302     pw32*)
11303       # pw32 DLLs use 'pw' prefix rather than 'lib'
11304       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11305       ;;
11306     esac
11307     dynamic_linker='Win32 ld.exe'
11308     ;;
11309
11310   *,cl*)
11311     # Native MSVC
11312     libname_spec='$name'
11313     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11314     library_names_spec='${libname}.dll.lib'
11315
11316     case $build_os in
11317     mingw*)
11318       sys_lib_search_path_spec=
11319       lt_save_ifs=$IFS
11320       IFS=';'
11321       for lt_path in $LIB
11322       do
11323         IFS=$lt_save_ifs
11324         # Let DOS variable expansion print the short 8.3 style file name.
11325         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11326         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11327       done
11328       IFS=$lt_save_ifs
11329       # Convert to MSYS style.
11330       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11331       ;;
11332     cygwin*)
11333       # Convert to unix form, then to dos form, then back to unix form
11334       # but this time dos style (no spaces!) so that the unix form looks
11335       # like /cygdrive/c/PROGRA~1:/cygdr...
11336       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11337       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11338       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11339       ;;
11340     *)
11341       sys_lib_search_path_spec="$LIB"
11342       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11343         # It is most probably a Windows format PATH.
11344         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11345       else
11346         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11347       fi
11348       # FIXME: find the short name or the path components, as spaces are
11349       # common. (e.g. "Program Files" -> "PROGRA~1")
11350       ;;
11351     esac
11352
11353     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11354     postinstall_cmds='base_file=`basename \${file}`~
11355       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11356       dldir=$destdir/`dirname \$dlpath`~
11357       test -d \$dldir || mkdir -p \$dldir~
11358       $install_prog $dir/$dlname \$dldir/$dlname'
11359     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11360       dlpath=$dir/\$dldll~
11361        $RM \$dlpath'
11362     shlibpath_overrides_runpath=yes
11363     dynamic_linker='Win32 link.exe'
11364     ;;
11365
11366   *)
11367     # Assume MSVC wrapper
11368     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11369     dynamic_linker='Win32 ld.exe'
11370     ;;
11371   esac
11372   # FIXME: first we should search . and the directory the executable is in
11373   shlibpath_var=PATH
11374   ;;
11375
11376 darwin* | rhapsody*)
11377   dynamic_linker="$host_os dyld"
11378   version_type=darwin
11379   need_lib_prefix=no
11380   need_version=no
11381   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11382   soname_spec='${libname}${release}${major}$shared_ext'
11383   shlibpath_overrides_runpath=yes
11384   shlibpath_var=DYLD_LIBRARY_PATH
11385   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11386
11387   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11388   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11389   ;;
11390
11391 dgux*)
11392   version_type=linux # correct to gnu/linux during the next big refactor
11393   need_lib_prefix=no
11394   need_version=no
11395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11396   soname_spec='${libname}${release}${shared_ext}$major'
11397   shlibpath_var=LD_LIBRARY_PATH
11398   ;;
11399
11400 freebsd* | dragonfly*)
11401   # DragonFly does not have aout.  When/if they implement a new
11402   # versioning mechanism, adjust this.
11403   if test -x /usr/bin/objformat; then
11404     objformat=`/usr/bin/objformat`
11405   else
11406     case $host_os in
11407     freebsd[23].*) objformat=aout ;;
11408     *) objformat=elf ;;
11409     esac
11410   fi
11411   version_type=freebsd-$objformat
11412   case $version_type in
11413     freebsd-elf*)
11414       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11415       need_version=no
11416       need_lib_prefix=no
11417       ;;
11418     freebsd-*)
11419       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11420       need_version=yes
11421       ;;
11422   esac
11423   shlibpath_var=LD_LIBRARY_PATH
11424   case $host_os in
11425   freebsd2.*)
11426     shlibpath_overrides_runpath=yes
11427     ;;
11428   freebsd3.[01]* | freebsdelf3.[01]*)
11429     shlibpath_overrides_runpath=yes
11430     hardcode_into_libs=yes
11431     ;;
11432   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11433   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11434     shlibpath_overrides_runpath=no
11435     hardcode_into_libs=yes
11436     ;;
11437   *) # from 4.6 on, and DragonFly
11438     shlibpath_overrides_runpath=yes
11439     hardcode_into_libs=yes
11440     ;;
11441   esac
11442   ;;
11443
11444 haiku*)
11445   version_type=linux # correct to gnu/linux during the next big refactor
11446   need_lib_prefix=no
11447   need_version=no
11448   dynamic_linker="$host_os runtime_loader"
11449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11450   soname_spec='${libname}${release}${shared_ext}$major'
11451   shlibpath_var=LIBRARY_PATH
11452   shlibpath_overrides_runpath=yes
11453   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11454   hardcode_into_libs=yes
11455   ;;
11456
11457 hpux9* | hpux10* | hpux11*)
11458   # Give a soname corresponding to the major version so that dld.sl refuses to
11459   # link against other versions.
11460   version_type=sunos
11461   need_lib_prefix=no
11462   need_version=no
11463   case $host_cpu in
11464   ia64*)
11465     shrext_cmds='.so'
11466     hardcode_into_libs=yes
11467     dynamic_linker="$host_os dld.so"
11468     shlibpath_var=LD_LIBRARY_PATH
11469     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11470     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11471     soname_spec='${libname}${release}${shared_ext}$major'
11472     if test "X$HPUX_IA64_MODE" = X32; then
11473       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11474     else
11475       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11476     fi
11477     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11478     ;;
11479   hppa*64*)
11480     shrext_cmds='.sl'
11481     hardcode_into_libs=yes
11482     dynamic_linker="$host_os dld.sl"
11483     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11484     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11485     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11486     soname_spec='${libname}${release}${shared_ext}$major'
11487     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11488     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11489     ;;
11490   *)
11491     shrext_cmds='.sl'
11492     dynamic_linker="$host_os dld.sl"
11493     shlibpath_var=SHLIB_PATH
11494     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11495     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11496     soname_spec='${libname}${release}${shared_ext}$major'
11497     ;;
11498   esac
11499   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11500   postinstall_cmds='chmod 555 $lib'
11501   # or fails outright, so override atomically:
11502   install_override_mode=555
11503   ;;
11504
11505 interix[3-9]*)
11506   version_type=linux # correct to gnu/linux during the next big refactor
11507   need_lib_prefix=no
11508   need_version=no
11509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11510   soname_spec='${libname}${release}${shared_ext}$major'
11511   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11512   shlibpath_var=LD_LIBRARY_PATH
11513   shlibpath_overrides_runpath=no
11514   hardcode_into_libs=yes
11515   ;;
11516
11517 irix5* | irix6* | nonstopux*)
11518   case $host_os in
11519     nonstopux*) version_type=nonstopux ;;
11520     *)
11521         if test "$lt_cv_prog_gnu_ld" = yes; then
11522                 version_type=linux # correct to gnu/linux during the next big refactor
11523         else
11524                 version_type=irix
11525         fi ;;
11526   esac
11527   need_lib_prefix=no
11528   need_version=no
11529   soname_spec='${libname}${release}${shared_ext}$major'
11530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11531   case $host_os in
11532   irix5* | nonstopux*)
11533     libsuff= shlibsuff=
11534     ;;
11535   *)
11536     case $LD in # libtool.m4 will add one of these switches to LD
11537     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11538       libsuff= shlibsuff= libmagic=32-bit;;
11539     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11540       libsuff=32 shlibsuff=N32 libmagic=N32;;
11541     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11542       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11543     *) libsuff= shlibsuff= libmagic=never-match;;
11544     esac
11545     ;;
11546   esac
11547   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11548   shlibpath_overrides_runpath=no
11549   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11550   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11551   hardcode_into_libs=yes
11552   ;;
11553
11554 # No shared lib support for Linux oldld, aout, or coff.
11555 linux*oldld* | linux*aout* | linux*coff*)
11556   dynamic_linker=no
11557   ;;
11558
11559 # This must be glibc/ELF.
11560 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11561   version_type=linux # correct to gnu/linux during the next big refactor
11562   need_lib_prefix=no
11563   need_version=no
11564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11565   soname_spec='${libname}${release}${shared_ext}$major'
11566   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11567   shlibpath_var=LD_LIBRARY_PATH
11568   shlibpath_overrides_runpath=no
11569
11570   # Some binutils ld are patched to set DT_RUNPATH
11571   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11572   $as_echo_n "(cached) " >&6
11573 else
11574   lt_cv_shlibpath_overrides_runpath=no
11575     save_LDFLAGS=$LDFLAGS
11576     save_libdir=$libdir
11577     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11578          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11579     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h.  */
11581
11582 int
11583 main ()
11584 {
11585
11586   ;
11587   return 0;
11588 }
11589 _ACEOF
11590 if ac_fn_c_try_link "$LINENO"; then :
11591   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11592   lt_cv_shlibpath_overrides_runpath=yes
11593 fi
11594 fi
11595 rm -f core conftest.err conftest.$ac_objext \
11596     conftest$ac_exeext conftest.$ac_ext
11597     LDFLAGS=$save_LDFLAGS
11598     libdir=$save_libdir
11599
11600 fi
11601
11602   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11603
11604   # This implies no fast_install, which is unacceptable.
11605   # Some rework will be needed to allow for fast_install
11606   # before this can be enabled.
11607   hardcode_into_libs=yes
11608
11609   # Append ld.so.conf contents to the search path
11610   if test -f /etc/ld.so.conf; then
11611     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' ' '`
11612     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11613   fi
11614
11615   # We used to test for /lib/ld.so.1 and disable shared libraries on
11616   # powerpc, because MkLinux only supported shared libraries with the
11617   # GNU dynamic linker.  Since this was broken with cross compilers,
11618   # most powerpc-linux boxes support dynamic linking these days and
11619   # people can always --disable-shared, the test was removed, and we
11620   # assume the GNU/Linux dynamic linker is in use.
11621   dynamic_linker='GNU/Linux ld.so'
11622   ;;
11623
11624 netbsdelf*-gnu)
11625   version_type=linux
11626   need_lib_prefix=no
11627   need_version=no
11628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11629   soname_spec='${libname}${release}${shared_ext}$major'
11630   shlibpath_var=LD_LIBRARY_PATH
11631   shlibpath_overrides_runpath=no
11632   hardcode_into_libs=yes
11633   dynamic_linker='NetBSD ld.elf_so'
11634   ;;
11635
11636 netbsd*)
11637   version_type=sunos
11638   need_lib_prefix=no
11639   need_version=no
11640   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11641     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11642     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11643     dynamic_linker='NetBSD (a.out) ld.so'
11644   else
11645     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11646     soname_spec='${libname}${release}${shared_ext}$major'
11647     dynamic_linker='NetBSD ld.elf_so'
11648   fi
11649   shlibpath_var=LD_LIBRARY_PATH
11650   shlibpath_overrides_runpath=yes
11651   hardcode_into_libs=yes
11652   ;;
11653
11654 newsos6)
11655   version_type=linux # correct to gnu/linux during the next big refactor
11656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11657   shlibpath_var=LD_LIBRARY_PATH
11658   shlibpath_overrides_runpath=yes
11659   ;;
11660
11661 *nto* | *qnx*)
11662   version_type=qnx
11663   need_lib_prefix=no
11664   need_version=no
11665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11666   soname_spec='${libname}${release}${shared_ext}$major'
11667   shlibpath_var=LD_LIBRARY_PATH
11668   shlibpath_overrides_runpath=no
11669   hardcode_into_libs=yes
11670   dynamic_linker='ldqnx.so'
11671   ;;
11672
11673 openbsd*)
11674   version_type=sunos
11675   sys_lib_dlsearch_path_spec="/usr/lib"
11676   need_lib_prefix=no
11677   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11678   case $host_os in
11679     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11680     *)                          need_version=no  ;;
11681   esac
11682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11683   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11684   shlibpath_var=LD_LIBRARY_PATH
11685   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11686     case $host_os in
11687       openbsd2.[89] | openbsd2.[89].*)
11688         shlibpath_overrides_runpath=no
11689         ;;
11690       *)
11691         shlibpath_overrides_runpath=yes
11692         ;;
11693       esac
11694   else
11695     shlibpath_overrides_runpath=yes
11696   fi
11697   ;;
11698
11699 os2*)
11700   libname_spec='$name'
11701   shrext_cmds=".dll"
11702   need_lib_prefix=no
11703   library_names_spec='$libname${shared_ext} $libname.a'
11704   dynamic_linker='OS/2 ld.exe'
11705   shlibpath_var=LIBPATH
11706   ;;
11707
11708 osf3* | osf4* | osf5*)
11709   version_type=osf
11710   need_lib_prefix=no
11711   need_version=no
11712   soname_spec='${libname}${release}${shared_ext}$major'
11713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11714   shlibpath_var=LD_LIBRARY_PATH
11715   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11716   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11717   ;;
11718
11719 rdos*)
11720   dynamic_linker=no
11721   ;;
11722
11723 solaris*)
11724   version_type=linux # correct to gnu/linux during the next big refactor
11725   need_lib_prefix=no
11726   need_version=no
11727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11728   soname_spec='${libname}${release}${shared_ext}$major'
11729   shlibpath_var=LD_LIBRARY_PATH
11730   shlibpath_overrides_runpath=yes
11731   hardcode_into_libs=yes
11732   # ldd complains unless libraries are executable
11733   postinstall_cmds='chmod +x $lib'
11734   ;;
11735
11736 sunos4*)
11737   version_type=sunos
11738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11739   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11740   shlibpath_var=LD_LIBRARY_PATH
11741   shlibpath_overrides_runpath=yes
11742   if test "$with_gnu_ld" = yes; then
11743     need_lib_prefix=no
11744   fi
11745   need_version=yes
11746   ;;
11747
11748 sysv4 | sysv4.3*)
11749   version_type=linux # correct to gnu/linux during the next big refactor
11750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751   soname_spec='${libname}${release}${shared_ext}$major'
11752   shlibpath_var=LD_LIBRARY_PATH
11753   case $host_vendor in
11754     sni)
11755       shlibpath_overrides_runpath=no
11756       need_lib_prefix=no
11757       runpath_var=LD_RUN_PATH
11758       ;;
11759     siemens)
11760       need_lib_prefix=no
11761       ;;
11762     motorola)
11763       need_lib_prefix=no
11764       need_version=no
11765       shlibpath_overrides_runpath=no
11766       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11767       ;;
11768   esac
11769   ;;
11770
11771 sysv4*MP*)
11772   if test -d /usr/nec ;then
11773     version_type=linux # correct to gnu/linux during the next big refactor
11774     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11775     soname_spec='$libname${shared_ext}.$major'
11776     shlibpath_var=LD_LIBRARY_PATH
11777   fi
11778   ;;
11779
11780 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11781   version_type=freebsd-elf
11782   need_lib_prefix=no
11783   need_version=no
11784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11785   soname_spec='${libname}${release}${shared_ext}$major'
11786   shlibpath_var=LD_LIBRARY_PATH
11787   shlibpath_overrides_runpath=yes
11788   hardcode_into_libs=yes
11789   if test "$with_gnu_ld" = yes; then
11790     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11791   else
11792     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11793     case $host_os in
11794       sco3.2v5*)
11795         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11796         ;;
11797     esac
11798   fi
11799   sys_lib_dlsearch_path_spec='/usr/lib'
11800   ;;
11801
11802 tpf*)
11803   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11804   version_type=linux # correct to gnu/linux during the next big refactor
11805   need_lib_prefix=no
11806   need_version=no
11807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808   shlibpath_var=LD_LIBRARY_PATH
11809   shlibpath_overrides_runpath=no
11810   hardcode_into_libs=yes
11811   ;;
11812
11813 uts4*)
11814   version_type=linux # correct to gnu/linux during the next big refactor
11815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816   soname_spec='${libname}${release}${shared_ext}$major'
11817   shlibpath_var=LD_LIBRARY_PATH
11818   ;;
11819
11820 *)
11821   dynamic_linker=no
11822   ;;
11823 esac
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11825 $as_echo "$dynamic_linker" >&6; }
11826 test "$dynamic_linker" = no && can_build_shared=no
11827
11828 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11829 if test "$GCC" = yes; then
11830   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11831 fi
11832
11833 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11834   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11835 fi
11836 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11837   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11838 fi
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11932 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11933 hardcode_action=
11934 if test -n "$hardcode_libdir_flag_spec" ||
11935    test -n "$runpath_var" ||
11936    test "X$hardcode_automatic" = "Xyes" ; then
11937
11938   # We can hardcode non-existent directories.
11939   if test "$hardcode_direct" != no &&
11940      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11941      # have to relink, otherwise we might link with an installed library
11942      # when we should be linking with a yet-to-be-installed one
11943      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11944      test "$hardcode_minus_L" != no; then
11945     # Linking always hardcodes the temporary library directory.
11946     hardcode_action=relink
11947   else
11948     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11949     hardcode_action=immediate
11950   fi
11951 else
11952   # We cannot hardcode anything, or else we can only hardcode existing
11953   # directories.
11954   hardcode_action=unsupported
11955 fi
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11957 $as_echo "$hardcode_action" >&6; }
11958
11959 if test "$hardcode_action" = relink ||
11960    test "$inherit_rpath" = yes; then
11961   # Fast installation is not supported
11962   enable_fast_install=no
11963 elif test "$shlibpath_overrides_runpath" = yes ||
11964      test "$enable_shared" = no; then
11965   # Fast installation is not necessary
11966   enable_fast_install=needless
11967 fi
11968
11969
11970
11971
11972
11973
11974   if test "x$enable_dlopen" != xyes; then
11975   enable_dlopen=unknown
11976   enable_dlopen_self=unknown
11977   enable_dlopen_self_static=unknown
11978 else
11979   lt_cv_dlopen=no
11980   lt_cv_dlopen_libs=
11981
11982   case $host_os in
11983   beos*)
11984     lt_cv_dlopen="load_add_on"
11985     lt_cv_dlopen_libs=
11986     lt_cv_dlopen_self=yes
11987     ;;
11988
11989   mingw* | pw32* | cegcc*)
11990     lt_cv_dlopen="LoadLibrary"
11991     lt_cv_dlopen_libs=
11992     ;;
11993
11994   cygwin*)
11995     lt_cv_dlopen="dlopen"
11996     lt_cv_dlopen_libs=
11997     ;;
11998
11999   darwin*)
12000   # if libdl is installed we need to link against it
12001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12002 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12003 if ${ac_cv_lib_dl_dlopen+:} false; then :
12004   $as_echo_n "(cached) " >&6
12005 else
12006   ac_check_lib_save_LIBS=$LIBS
12007 LIBS="-ldl  $LIBS"
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h.  */
12010
12011 /* Override any GCC internal prototype to avoid an error.
12012    Use char because int might match the return type of a GCC
12013    builtin and then its argument prototype would still apply.  */
12014 #ifdef __cplusplus
12015 extern "C"
12016 #endif
12017 char dlopen ();
12018 int
12019 main ()
12020 {
12021 return dlopen ();
12022   ;
12023   return 0;
12024 }
12025 _ACEOF
12026 if ac_fn_c_try_link "$LINENO"; then :
12027   ac_cv_lib_dl_dlopen=yes
12028 else
12029   ac_cv_lib_dl_dlopen=no
12030 fi
12031 rm -f core conftest.err conftest.$ac_objext \
12032     conftest$ac_exeext conftest.$ac_ext
12033 LIBS=$ac_check_lib_save_LIBS
12034 fi
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12036 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12037 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12038   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12039 else
12040
12041     lt_cv_dlopen="dyld"
12042     lt_cv_dlopen_libs=
12043     lt_cv_dlopen_self=yes
12044
12045 fi
12046
12047     ;;
12048
12049   *)
12050     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12051 if test "x$ac_cv_func_shl_load" = xyes; then :
12052   lt_cv_dlopen="shl_load"
12053 else
12054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12055 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12056 if ${ac_cv_lib_dld_shl_load+:} false; then :
12057   $as_echo_n "(cached) " >&6
12058 else
12059   ac_check_lib_save_LIBS=$LIBS
12060 LIBS="-ldld  $LIBS"
12061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h.  */
12063
12064 /* Override any GCC internal prototype to avoid an error.
12065    Use char because int might match the return type of a GCC
12066    builtin and then its argument prototype would still apply.  */
12067 #ifdef __cplusplus
12068 extern "C"
12069 #endif
12070 char shl_load ();
12071 int
12072 main ()
12073 {
12074 return shl_load ();
12075   ;
12076   return 0;
12077 }
12078 _ACEOF
12079 if ac_fn_c_try_link "$LINENO"; then :
12080   ac_cv_lib_dld_shl_load=yes
12081 else
12082   ac_cv_lib_dld_shl_load=no
12083 fi
12084 rm -f core conftest.err conftest.$ac_objext \
12085     conftest$ac_exeext conftest.$ac_ext
12086 LIBS=$ac_check_lib_save_LIBS
12087 fi
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12089 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12090 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12091   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12092 else
12093   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12094 if test "x$ac_cv_func_dlopen" = xyes; then :
12095   lt_cv_dlopen="dlopen"
12096 else
12097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12098 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12099 if ${ac_cv_lib_dl_dlopen+:} false; then :
12100   $as_echo_n "(cached) " >&6
12101 else
12102   ac_check_lib_save_LIBS=$LIBS
12103 LIBS="-ldl  $LIBS"
12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h.  */
12106
12107 /* Override any GCC internal prototype to avoid an error.
12108    Use char because int might match the return type of a GCC
12109    builtin and then its argument prototype would still apply.  */
12110 #ifdef __cplusplus
12111 extern "C"
12112 #endif
12113 char dlopen ();
12114 int
12115 main ()
12116 {
12117 return dlopen ();
12118   ;
12119   return 0;
12120 }
12121 _ACEOF
12122 if ac_fn_c_try_link "$LINENO"; then :
12123   ac_cv_lib_dl_dlopen=yes
12124 else
12125   ac_cv_lib_dl_dlopen=no
12126 fi
12127 rm -f core conftest.err conftest.$ac_objext \
12128     conftest$ac_exeext conftest.$ac_ext
12129 LIBS=$ac_check_lib_save_LIBS
12130 fi
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12132 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12133 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12134   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12135 else
12136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12137 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12138 if ${ac_cv_lib_svld_dlopen+:} false; then :
12139   $as_echo_n "(cached) " >&6
12140 else
12141   ac_check_lib_save_LIBS=$LIBS
12142 LIBS="-lsvld  $LIBS"
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h.  */
12145
12146 /* Override any GCC internal prototype to avoid an error.
12147    Use char because int might match the return type of a GCC
12148    builtin and then its argument prototype would still apply.  */
12149 #ifdef __cplusplus
12150 extern "C"
12151 #endif
12152 char dlopen ();
12153 int
12154 main ()
12155 {
12156 return dlopen ();
12157   ;
12158   return 0;
12159 }
12160 _ACEOF
12161 if ac_fn_c_try_link "$LINENO"; then :
12162   ac_cv_lib_svld_dlopen=yes
12163 else
12164   ac_cv_lib_svld_dlopen=no
12165 fi
12166 rm -f core conftest.err conftest.$ac_objext \
12167     conftest$ac_exeext conftest.$ac_ext
12168 LIBS=$ac_check_lib_save_LIBS
12169 fi
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12171 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12172 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12173   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12174 else
12175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12176 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12177 if ${ac_cv_lib_dld_dld_link+:} false; then :
12178   $as_echo_n "(cached) " >&6
12179 else
12180   ac_check_lib_save_LIBS=$LIBS
12181 LIBS="-ldld  $LIBS"
12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h.  */
12184
12185 /* Override any GCC internal prototype to avoid an error.
12186    Use char because int might match the return type of a GCC
12187    builtin and then its argument prototype would still apply.  */
12188 #ifdef __cplusplus
12189 extern "C"
12190 #endif
12191 char dld_link ();
12192 int
12193 main ()
12194 {
12195 return dld_link ();
12196   ;
12197   return 0;
12198 }
12199 _ACEOF
12200 if ac_fn_c_try_link "$LINENO"; then :
12201   ac_cv_lib_dld_dld_link=yes
12202 else
12203   ac_cv_lib_dld_dld_link=no
12204 fi
12205 rm -f core conftest.err conftest.$ac_objext \
12206     conftest$ac_exeext conftest.$ac_ext
12207 LIBS=$ac_check_lib_save_LIBS
12208 fi
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12210 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12211 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12212   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12213 fi
12214
12215
12216 fi
12217
12218
12219 fi
12220
12221
12222 fi
12223
12224
12225 fi
12226
12227
12228 fi
12229
12230     ;;
12231   esac
12232
12233   if test "x$lt_cv_dlopen" != xno; then
12234     enable_dlopen=yes
12235   else
12236     enable_dlopen=no
12237   fi
12238
12239   case $lt_cv_dlopen in
12240   dlopen)
12241     save_CPPFLAGS="$CPPFLAGS"
12242     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12243
12244     save_LDFLAGS="$LDFLAGS"
12245     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12246
12247     save_LIBS="$LIBS"
12248     LIBS="$lt_cv_dlopen_libs $LIBS"
12249
12250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12251 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12252 if ${lt_cv_dlopen_self+:} false; then :
12253   $as_echo_n "(cached) " >&6
12254 else
12255           if test "$cross_compiling" = yes; then :
12256   lt_cv_dlopen_self=cross
12257 else
12258   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12259   lt_status=$lt_dlunknown
12260   cat > conftest.$ac_ext <<_LT_EOF
12261 #line $LINENO "configure"
12262 #include "confdefs.h"
12263
12264 #if HAVE_DLFCN_H
12265 #include <dlfcn.h>
12266 #endif
12267
12268 #include <stdio.h>
12269
12270 #ifdef RTLD_GLOBAL
12271 #  define LT_DLGLOBAL           RTLD_GLOBAL
12272 #else
12273 #  ifdef DL_GLOBAL
12274 #    define LT_DLGLOBAL         DL_GLOBAL
12275 #  else
12276 #    define LT_DLGLOBAL         0
12277 #  endif
12278 #endif
12279
12280 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12281    find out it does not work in some platform. */
12282 #ifndef LT_DLLAZY_OR_NOW
12283 #  ifdef RTLD_LAZY
12284 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12285 #  else
12286 #    ifdef DL_LAZY
12287 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12288 #    else
12289 #      ifdef RTLD_NOW
12290 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12291 #      else
12292 #        ifdef DL_NOW
12293 #          define LT_DLLAZY_OR_NOW      DL_NOW
12294 #        else
12295 #          define LT_DLLAZY_OR_NOW      0
12296 #        endif
12297 #      endif
12298 #    endif
12299 #  endif
12300 #endif
12301
12302 /* When -fvisbility=hidden is used, assume the code has been annotated
12303    correspondingly for the symbols needed.  */
12304 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12305 int fnord () __attribute__((visibility("default")));
12306 #endif
12307
12308 int fnord () { return 42; }
12309 int main ()
12310 {
12311   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12312   int status = $lt_dlunknown;
12313
12314   if (self)
12315     {
12316       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12317       else
12318         {
12319           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12320           else puts (dlerror ());
12321         }
12322       /* dlclose (self); */
12323     }
12324   else
12325     puts (dlerror ());
12326
12327   return status;
12328 }
12329 _LT_EOF
12330   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12331   (eval $ac_link) 2>&5
12332   ac_status=$?
12333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12334   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12335     (./conftest; exit; ) >&5 2>/dev/null
12336     lt_status=$?
12337     case x$lt_status in
12338       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12339       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12340       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12341     esac
12342   else :
12343     # compilation failed
12344     lt_cv_dlopen_self=no
12345   fi
12346 fi
12347 rm -fr conftest*
12348
12349
12350 fi
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12352 $as_echo "$lt_cv_dlopen_self" >&6; }
12353
12354     if test "x$lt_cv_dlopen_self" = xyes; then
12355       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12356       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12357 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12358 if ${lt_cv_dlopen_self_static+:} false; then :
12359   $as_echo_n "(cached) " >&6
12360 else
12361           if test "$cross_compiling" = yes; then :
12362   lt_cv_dlopen_self_static=cross
12363 else
12364   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12365   lt_status=$lt_dlunknown
12366   cat > conftest.$ac_ext <<_LT_EOF
12367 #line $LINENO "configure"
12368 #include "confdefs.h"
12369
12370 #if HAVE_DLFCN_H
12371 #include <dlfcn.h>
12372 #endif
12373
12374 #include <stdio.h>
12375
12376 #ifdef RTLD_GLOBAL
12377 #  define LT_DLGLOBAL           RTLD_GLOBAL
12378 #else
12379 #  ifdef DL_GLOBAL
12380 #    define LT_DLGLOBAL         DL_GLOBAL
12381 #  else
12382 #    define LT_DLGLOBAL         0
12383 #  endif
12384 #endif
12385
12386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12387    find out it does not work in some platform. */
12388 #ifndef LT_DLLAZY_OR_NOW
12389 #  ifdef RTLD_LAZY
12390 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12391 #  else
12392 #    ifdef DL_LAZY
12393 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12394 #    else
12395 #      ifdef RTLD_NOW
12396 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12397 #      else
12398 #        ifdef DL_NOW
12399 #          define LT_DLLAZY_OR_NOW      DL_NOW
12400 #        else
12401 #          define LT_DLLAZY_OR_NOW      0
12402 #        endif
12403 #      endif
12404 #    endif
12405 #  endif
12406 #endif
12407
12408 /* When -fvisbility=hidden is used, assume the code has been annotated
12409    correspondingly for the symbols needed.  */
12410 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12411 int fnord () __attribute__((visibility("default")));
12412 #endif
12413
12414 int fnord () { return 42; }
12415 int main ()
12416 {
12417   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12418   int status = $lt_dlunknown;
12419
12420   if (self)
12421     {
12422       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12423       else
12424         {
12425           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12426           else puts (dlerror ());
12427         }
12428       /* dlclose (self); */
12429     }
12430   else
12431     puts (dlerror ());
12432
12433   return status;
12434 }
12435 _LT_EOF
12436   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12437   (eval $ac_link) 2>&5
12438   ac_status=$?
12439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12440   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12441     (./conftest; exit; ) >&5 2>/dev/null
12442     lt_status=$?
12443     case x$lt_status in
12444       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12445       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12446       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12447     esac
12448   else :
12449     # compilation failed
12450     lt_cv_dlopen_self_static=no
12451   fi
12452 fi
12453 rm -fr conftest*
12454
12455
12456 fi
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12458 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12459     fi
12460
12461     CPPFLAGS="$save_CPPFLAGS"
12462     LDFLAGS="$save_LDFLAGS"
12463     LIBS="$save_LIBS"
12464     ;;
12465   esac
12466
12467   case $lt_cv_dlopen_self in
12468   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12469   *) enable_dlopen_self=unknown ;;
12470   esac
12471
12472   case $lt_cv_dlopen_self_static in
12473   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12474   *) enable_dlopen_self_static=unknown ;;
12475   esac
12476 fi
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494 striplib=
12495 old_striplib=
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12497 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12498 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12499   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12500   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12502 $as_echo "yes" >&6; }
12503 else
12504 # FIXME - insert some real tests, host_os isn't really good enough
12505   case $host_os in
12506   darwin*)
12507     if test -n "$STRIP" ; then
12508       striplib="$STRIP -x"
12509       old_striplib="$STRIP -S"
12510       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12511 $as_echo "yes" >&6; }
12512     else
12513       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12514 $as_echo "no" >&6; }
12515     fi
12516     ;;
12517   *)
12518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12519 $as_echo "no" >&6; }
12520     ;;
12521   esac
12522 fi
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535   # Report which library types will actually be built
12536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12537 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12539 $as_echo "$can_build_shared" >&6; }
12540
12541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12542 $as_echo_n "checking whether to build shared libraries... " >&6; }
12543   test "$can_build_shared" = "no" && enable_shared=no
12544
12545   # On AIX, shared libraries and static libraries use the same namespace, and
12546   # are all built from PIC.
12547   case $host_os in
12548   aix3*)
12549     test "$enable_shared" = yes && enable_static=no
12550     if test -n "$RANLIB"; then
12551       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12552       postinstall_cmds='$RANLIB $lib'
12553     fi
12554     ;;
12555
12556   aix[4-9]*)
12557     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12558       test "$enable_shared" = yes && enable_static=no
12559     fi
12560     ;;
12561   esac
12562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12563 $as_echo "$enable_shared" >&6; }
12564
12565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12566 $as_echo_n "checking whether to build static libraries... " >&6; }
12567   # Make sure either enable_shared or enable_static is yes.
12568   test "$enable_shared" = yes || enable_static=yes
12569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12570 $as_echo "$enable_static" >&6; }
12571
12572
12573
12574
12575 fi
12576 ac_ext=c
12577 ac_cpp='$CPP $CPPFLAGS'
12578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12581
12582 CC="$lt_save_CC"
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598         ac_config_commands="$ac_config_commands libtool"
12599
12600
12601
12602
12603 # Only expand once:
12604
12605
12606
12607 ac_ext=cpp
12608 ac_cpp='$CXXCPP $CPPFLAGS'
12609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12612 if test -z "$CXX"; then
12613   if test -n "$CCC"; then
12614     CXX=$CCC
12615   else
12616     if test -n "$ac_tool_prefix"; then
12617   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12618   do
12619     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622 $as_echo_n "checking for $ac_word... " >&6; }
12623 if ${ac_cv_prog_CXX+:} false; then :
12624   $as_echo_n "(cached) " >&6
12625 else
12626   if test -n "$CXX"; then
12627   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12628 else
12629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630 for as_dir in $PATH
12631 do
12632   IFS=$as_save_IFS
12633   test -z "$as_dir" && as_dir=.
12634     for ac_exec_ext in '' $ac_executable_extensions; do
12635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12636     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12638     break 2
12639   fi
12640 done
12641   done
12642 IFS=$as_save_IFS
12643
12644 fi
12645 fi
12646 CXX=$ac_cv_prog_CXX
12647 if test -n "$CXX"; then
12648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12649 $as_echo "$CXX" >&6; }
12650 else
12651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12653 fi
12654
12655
12656     test -n "$CXX" && break
12657   done
12658 fi
12659 if test -z "$CXX"; then
12660   ac_ct_CXX=$CXX
12661   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12662 do
12663   # Extract the first word of "$ac_prog", so it can be a program name with args.
12664 set dummy $ac_prog; ac_word=$2
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12666 $as_echo_n "checking for $ac_word... " >&6; }
12667 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12668   $as_echo_n "(cached) " >&6
12669 else
12670   if test -n "$ac_ct_CXX"; then
12671   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12672 else
12673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12674 for as_dir in $PATH
12675 do
12676   IFS=$as_save_IFS
12677   test -z "$as_dir" && as_dir=.
12678     for ac_exec_ext in '' $ac_executable_extensions; do
12679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12680     ac_cv_prog_ac_ct_CXX="$ac_prog"
12681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12682     break 2
12683   fi
12684 done
12685   done
12686 IFS=$as_save_IFS
12687
12688 fi
12689 fi
12690 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12691 if test -n "$ac_ct_CXX"; then
12692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12693 $as_echo "$ac_ct_CXX" >&6; }
12694 else
12695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696 $as_echo "no" >&6; }
12697 fi
12698
12699
12700   test -n "$ac_ct_CXX" && break
12701 done
12702
12703   if test "x$ac_ct_CXX" = x; then
12704     CXX="g++"
12705   else
12706     case $cross_compiling:$ac_tool_warned in
12707 yes:)
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12710 ac_tool_warned=yes ;;
12711 esac
12712     CXX=$ac_ct_CXX
12713   fi
12714 fi
12715
12716   fi
12717 fi
12718 # Provide some information about the compiler.
12719 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12720 set X $ac_compile
12721 ac_compiler=$2
12722 for ac_option in --version -v -V -qversion; do
12723   { { ac_try="$ac_compiler $ac_option >&5"
12724 case "(($ac_try" in
12725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726   *) ac_try_echo=$ac_try;;
12727 esac
12728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12729 $as_echo "$ac_try_echo"; } >&5
12730   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12731   ac_status=$?
12732   if test -s conftest.err; then
12733     sed '10a\
12734 ... rest of stderr output deleted ...
12735          10q' conftest.err >conftest.er1
12736     cat conftest.er1 >&5
12737   fi
12738   rm -f conftest.er1 conftest.err
12739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12740   test $ac_status = 0; }
12741 done
12742
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12744 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12745 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12746   $as_echo_n "(cached) " >&6
12747 else
12748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12749 /* end confdefs.h.  */
12750
12751 int
12752 main ()
12753 {
12754 #ifndef __GNUC__
12755        choke me
12756 #endif
12757
12758   ;
12759   return 0;
12760 }
12761 _ACEOF
12762 if ac_fn_cxx_try_compile "$LINENO"; then :
12763   ac_compiler_gnu=yes
12764 else
12765   ac_compiler_gnu=no
12766 fi
12767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12768 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12769
12770 fi
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12772 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12773 if test $ac_compiler_gnu = yes; then
12774   GXX=yes
12775 else
12776   GXX=
12777 fi
12778 ac_test_CXXFLAGS=${CXXFLAGS+set}
12779 ac_save_CXXFLAGS=$CXXFLAGS
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12781 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12782 if ${ac_cv_prog_cxx_g+:} false; then :
12783   $as_echo_n "(cached) " >&6
12784 else
12785   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12786    ac_cxx_werror_flag=yes
12787    ac_cv_prog_cxx_g=no
12788    CXXFLAGS="-g"
12789    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h.  */
12791
12792 int
12793 main ()
12794 {
12795
12796   ;
12797   return 0;
12798 }
12799 _ACEOF
12800 if ac_fn_cxx_try_compile "$LINENO"; then :
12801   ac_cv_prog_cxx_g=yes
12802 else
12803   CXXFLAGS=""
12804       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h.  */
12806
12807 int
12808 main ()
12809 {
12810
12811   ;
12812   return 0;
12813 }
12814 _ACEOF
12815 if ac_fn_cxx_try_compile "$LINENO"; then :
12816
12817 else
12818   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12819          CXXFLAGS="-g"
12820          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h.  */
12822
12823 int
12824 main ()
12825 {
12826
12827   ;
12828   return 0;
12829 }
12830 _ACEOF
12831 if ac_fn_cxx_try_compile "$LINENO"; then :
12832   ac_cv_prog_cxx_g=yes
12833 fi
12834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12835 fi
12836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12837 fi
12838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12839    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12840 fi
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12842 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12843 if test "$ac_test_CXXFLAGS" = set; then
12844   CXXFLAGS=$ac_save_CXXFLAGS
12845 elif test $ac_cv_prog_cxx_g = yes; then
12846   if test "$GXX" = yes; then
12847     CXXFLAGS="-g -O2"
12848   else
12849     CXXFLAGS="-g"
12850   fi
12851 else
12852   if test "$GXX" = yes; then
12853     CXXFLAGS="-O2"
12854   else
12855     CXXFLAGS=
12856   fi
12857 fi
12858 ac_ext=c
12859 ac_cpp='$CPP $CPPFLAGS'
12860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12863
12864 depcc="$CXX"  am_compiler_list=
12865
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12867 $as_echo_n "checking dependency style of $depcc... " >&6; }
12868 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12869   $as_echo_n "(cached) " >&6
12870 else
12871   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12872   # We make a subdir and do the tests there.  Otherwise we can end up
12873   # making bogus files that we don't know about and never remove.  For
12874   # instance it was reported that on HP-UX the gcc test will end up
12875   # making a dummy file named `D' -- because `-MD' means `put the output
12876   # in D'.
12877   rm -rf conftest.dir
12878   mkdir conftest.dir
12879   # Copy depcomp to subdir because otherwise we won't find it if we're
12880   # using a relative directory.
12881   cp "$am_depcomp" conftest.dir
12882   cd conftest.dir
12883   # We will build objects and dependencies in a subdirectory because
12884   # it helps to detect inapplicable dependency modes.  For instance
12885   # both Tru64's cc and ICC support -MD to output dependencies as a
12886   # side effect of compilation, but ICC will put the dependencies in
12887   # the current directory while Tru64 will put them in the object
12888   # directory.
12889   mkdir sub
12890
12891   am_cv_CXX_dependencies_compiler_type=none
12892   if test "$am_compiler_list" = ""; then
12893      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12894   fi
12895   am__universal=false
12896   case " $depcc " in #(
12897      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12898      esac
12899
12900   for depmode in $am_compiler_list; do
12901     # Setup a source with many dependencies, because some compilers
12902     # like to wrap large dependency lists on column 80 (with \), and
12903     # we should not choose a depcomp mode which is confused by this.
12904     #
12905     # We need to recreate these files for each test, as the compiler may
12906     # overwrite some of them when testing with obscure command lines.
12907     # This happens at least with the AIX C compiler.
12908     : > sub/conftest.c
12909     for i in 1 2 3 4 5 6; do
12910       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12911       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12912       # Solaris 8's {/usr,}/bin/sh.
12913       touch sub/conftst$i.h
12914     done
12915     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12916
12917     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12918     # mode.  It turns out that the SunPro C++ compiler does not properly
12919     # handle `-M -o', and we need to detect this.  Also, some Intel
12920     # versions had trouble with output in subdirs
12921     am__obj=sub/conftest.${OBJEXT-o}
12922     am__minus_obj="-o $am__obj"
12923     case $depmode in
12924     gcc)
12925       # This depmode causes a compiler race in universal mode.
12926       test "$am__universal" = false || continue
12927       ;;
12928     nosideeffect)
12929       # after this tag, mechanisms are not by side-effect, so they'll
12930       # only be used when explicitly requested
12931       if test "x$enable_dependency_tracking" = xyes; then
12932         continue
12933       else
12934         break
12935       fi
12936       ;;
12937     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12938       # This compiler won't grok `-c -o', but also, the minuso test has
12939       # not run yet.  These depmodes are late enough in the game, and
12940       # so weak that their functioning should not be impacted.
12941       am__obj=conftest.${OBJEXT-o}
12942       am__minus_obj=
12943       ;;
12944     none) break ;;
12945     esac
12946     if depmode=$depmode \
12947        source=sub/conftest.c object=$am__obj \
12948        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12949        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12950          >/dev/null 2>conftest.err &&
12951        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12952        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12953        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12954        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12955       # icc doesn't choke on unknown options, it will just issue warnings
12956       # or remarks (even with -Werror).  So we grep stderr for any message
12957       # that says an option was ignored or not supported.
12958       # When given -MP, icc 7.0 and 7.1 complain thusly:
12959       #   icc: Command line warning: ignoring option '-M'; no argument required
12960       # The diagnosis changed in icc 8.0:
12961       #   icc: Command line remark: option '-MP' not supported
12962       if (grep 'ignoring option' conftest.err ||
12963           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12964         am_cv_CXX_dependencies_compiler_type=$depmode
12965         break
12966       fi
12967     fi
12968   done
12969
12970   cd ..
12971   rm -rf conftest.dir
12972 else
12973   am_cv_CXX_dependencies_compiler_type=none
12974 fi
12975
12976 fi
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12978 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12979 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12980
12981  if
12982   test "x$enable_dependency_tracking" != xno \
12983   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12984   am__fastdepCXX_TRUE=
12985   am__fastdepCXX_FALSE='#'
12986 else
12987   am__fastdepCXX_TRUE='#'
12988   am__fastdepCXX_FALSE=
12989 fi
12990
12991
12992
12993
12994 func_stripname_cnf ()
12995 {
12996   case ${2} in
12997   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12998   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12999   esac
13000 } # func_stripname_cnf
13001
13002       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13003     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13004     (test "X$CXX" != "Xg++"))) ; then
13005   ac_ext=cpp
13006 ac_cpp='$CXXCPP $CPPFLAGS'
13007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13011 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13012 if test -z "$CXXCPP"; then
13013   if ${ac_cv_prog_CXXCPP+:} false; then :
13014   $as_echo_n "(cached) " >&6
13015 else
13016       # Double quotes because CXXCPP needs to be expanded
13017     for CXXCPP in "$CXX -E" "/lib/cpp"
13018     do
13019       ac_preproc_ok=false
13020 for ac_cxx_preproc_warn_flag in '' yes
13021 do
13022   # Use a header file that comes with gcc, so configuring glibc
13023   # with a fresh cross-compiler works.
13024   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13025   # <limits.h> exists even on freestanding compilers.
13026   # On the NeXT, cc -E runs the code through the compiler's parser,
13027   # not just through cpp. "Syntax error" is here to catch this case.
13028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h.  */
13030 #ifdef __STDC__
13031 # include <limits.h>
13032 #else
13033 # include <assert.h>
13034 #endif
13035                      Syntax error
13036 _ACEOF
13037 if ac_fn_cxx_try_cpp "$LINENO"; then :
13038
13039 else
13040   # Broken: fails on valid input.
13041 continue
13042 fi
13043 rm -f conftest.err conftest.i conftest.$ac_ext
13044
13045   # OK, works on sane cases.  Now check whether nonexistent headers
13046   # can be detected and how.
13047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h.  */
13049 #include <ac_nonexistent.h>
13050 _ACEOF
13051 if ac_fn_cxx_try_cpp "$LINENO"; then :
13052   # Broken: success on invalid input.
13053 continue
13054 else
13055   # Passes both tests.
13056 ac_preproc_ok=:
13057 break
13058 fi
13059 rm -f conftest.err conftest.i conftest.$ac_ext
13060
13061 done
13062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13063 rm -f conftest.i conftest.err conftest.$ac_ext
13064 if $ac_preproc_ok; then :
13065   break
13066 fi
13067
13068     done
13069     ac_cv_prog_CXXCPP=$CXXCPP
13070
13071 fi
13072   CXXCPP=$ac_cv_prog_CXXCPP
13073 else
13074   ac_cv_prog_CXXCPP=$CXXCPP
13075 fi
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13077 $as_echo "$CXXCPP" >&6; }
13078 ac_preproc_ok=false
13079 for ac_cxx_preproc_warn_flag in '' yes
13080 do
13081   # Use a header file that comes with gcc, so configuring glibc
13082   # with a fresh cross-compiler works.
13083   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13084   # <limits.h> exists even on freestanding compilers.
13085   # On the NeXT, cc -E runs the code through the compiler's parser,
13086   # not just through cpp. "Syntax error" is here to catch this case.
13087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h.  */
13089 #ifdef __STDC__
13090 # include <limits.h>
13091 #else
13092 # include <assert.h>
13093 #endif
13094                      Syntax error
13095 _ACEOF
13096 if ac_fn_cxx_try_cpp "$LINENO"; then :
13097
13098 else
13099   # Broken: fails on valid input.
13100 continue
13101 fi
13102 rm -f conftest.err conftest.i conftest.$ac_ext
13103
13104   # OK, works on sane cases.  Now check whether nonexistent headers
13105   # can be detected and how.
13106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h.  */
13108 #include <ac_nonexistent.h>
13109 _ACEOF
13110 if ac_fn_cxx_try_cpp "$LINENO"; then :
13111   # Broken: success on invalid input.
13112 continue
13113 else
13114   # Passes both tests.
13115 ac_preproc_ok=:
13116 break
13117 fi
13118 rm -f conftest.err conftest.i conftest.$ac_ext
13119
13120 done
13121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13122 rm -f conftest.i conftest.err conftest.$ac_ext
13123 if $ac_preproc_ok; then :
13124
13125 else
13126   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13128 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13129 See \`config.log' for more details" "$LINENO" 5; }
13130 fi
13131
13132 ac_ext=c
13133 ac_cpp='$CPP $CPPFLAGS'
13134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13137
13138 else
13139   _lt_caught_CXX_error=yes
13140 fi
13141
13142 ac_ext=cpp
13143 ac_cpp='$CXXCPP $CPPFLAGS'
13144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13147
13148 archive_cmds_need_lc_CXX=no
13149 allow_undefined_flag_CXX=
13150 always_export_symbols_CXX=no
13151 archive_expsym_cmds_CXX=
13152 compiler_needs_object_CXX=no
13153 export_dynamic_flag_spec_CXX=
13154 hardcode_direct_CXX=no
13155 hardcode_direct_absolute_CXX=no
13156 hardcode_libdir_flag_spec_CXX=
13157 hardcode_libdir_separator_CXX=
13158 hardcode_minus_L_CXX=no
13159 hardcode_shlibpath_var_CXX=unsupported
13160 hardcode_automatic_CXX=no
13161 inherit_rpath_CXX=no
13162 module_cmds_CXX=
13163 module_expsym_cmds_CXX=
13164 link_all_deplibs_CXX=unknown
13165 old_archive_cmds_CXX=$old_archive_cmds
13166 reload_flag_CXX=$reload_flag
13167 reload_cmds_CXX=$reload_cmds
13168 no_undefined_flag_CXX=
13169 whole_archive_flag_spec_CXX=
13170 enable_shared_with_static_runtimes_CXX=no
13171
13172 # Source file extension for C++ test sources.
13173 ac_ext=cpp
13174
13175 # Object file extension for compiled C++ test sources.
13176 objext=o
13177 objext_CXX=$objext
13178
13179 # No sense in running all these tests if we already determined that
13180 # the CXX compiler isn't working.  Some variables (like enable_shared)
13181 # are currently assumed to apply to all compilers on this platform,
13182 # and will be corrupted by setting them based on a non-working compiler.
13183 if test "$_lt_caught_CXX_error" != yes; then
13184   # Code to be used in simple compile tests
13185   lt_simple_compile_test_code="int some_variable = 0;"
13186
13187   # Code to be used in simple link tests
13188   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13189
13190   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13191
13192
13193
13194
13195
13196
13197 # If no C compiler was specified, use CC.
13198 LTCC=${LTCC-"$CC"}
13199
13200 # If no C compiler flags were specified, use CFLAGS.
13201 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13202
13203 # Allow CC to be a program name with arguments.
13204 compiler=$CC
13205
13206
13207   # save warnings/boilerplate of simple test code
13208   ac_outfile=conftest.$ac_objext
13209 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13210 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13211 _lt_compiler_boilerplate=`cat conftest.err`
13212 $RM conftest*
13213
13214   ac_outfile=conftest.$ac_objext
13215 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13216 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13217 _lt_linker_boilerplate=`cat conftest.err`
13218 $RM -r conftest*
13219
13220
13221   # Allow CC to be a program name with arguments.
13222   lt_save_CC=$CC
13223   lt_save_CFLAGS=$CFLAGS
13224   lt_save_LD=$LD
13225   lt_save_GCC=$GCC
13226   GCC=$GXX
13227   lt_save_with_gnu_ld=$with_gnu_ld
13228   lt_save_path_LD=$lt_cv_path_LD
13229   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13230     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13231   else
13232     $as_unset lt_cv_prog_gnu_ld
13233   fi
13234   if test -n "${lt_cv_path_LDCXX+set}"; then
13235     lt_cv_path_LD=$lt_cv_path_LDCXX
13236   else
13237     $as_unset lt_cv_path_LD
13238   fi
13239   test -z "${LDCXX+set}" || LD=$LDCXX
13240   CC=${CXX-"c++"}
13241   CFLAGS=$CXXFLAGS
13242   compiler=$CC
13243   compiler_CXX=$CC
13244   for cc_temp in $compiler""; do
13245   case $cc_temp in
13246     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13247     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13248     \-*) ;;
13249     *) break;;
13250   esac
13251 done
13252 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13253
13254
13255   if test -n "$compiler"; then
13256     # We don't want -fno-exception when compiling C++ code, so set the
13257     # no_builtin_flag separately
13258     if test "$GXX" = yes; then
13259       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13260     else
13261       lt_prog_compiler_no_builtin_flag_CXX=
13262     fi
13263
13264     if test "$GXX" = yes; then
13265       # Set up default GNU C++ configuration
13266
13267
13268
13269 # Check whether --with-gnu-ld was given.
13270 if test "${with_gnu_ld+set}" = set; then :
13271   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13272 else
13273   with_gnu_ld=no
13274 fi
13275
13276 ac_prog=ld
13277 if test "$GCC" = yes; then
13278   # Check if gcc -print-prog-name=ld gives a path.
13279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13280 $as_echo_n "checking for ld used by $CC... " >&6; }
13281   case $host in
13282   *-*-mingw*)
13283     # gcc leaves a trailing carriage return which upsets mingw
13284     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13285   *)
13286     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13287   esac
13288   case $ac_prog in
13289     # Accept absolute paths.
13290     [\\/]* | ?:[\\/]*)
13291       re_direlt='/[^/][^/]*/\.\./'
13292       # Canonicalize the pathname of ld
13293       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13294       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13295         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13296       done
13297       test -z "$LD" && LD="$ac_prog"
13298       ;;
13299   "")
13300     # If it fails, then pretend we aren't using GCC.
13301     ac_prog=ld
13302     ;;
13303   *)
13304     # If it is relative, then search for the first ld in PATH.
13305     with_gnu_ld=unknown
13306     ;;
13307   esac
13308 elif test "$with_gnu_ld" = yes; then
13309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13310 $as_echo_n "checking for GNU ld... " >&6; }
13311 else
13312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13313 $as_echo_n "checking for non-GNU ld... " >&6; }
13314 fi
13315 if ${lt_cv_path_LD+:} false; then :
13316   $as_echo_n "(cached) " >&6
13317 else
13318   if test -z "$LD"; then
13319   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13320   for ac_dir in $PATH; do
13321     IFS="$lt_save_ifs"
13322     test -z "$ac_dir" && ac_dir=.
13323     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13324       lt_cv_path_LD="$ac_dir/$ac_prog"
13325       # Check to see if the program is GNU ld.  I'd rather use --version,
13326       # but apparently some variants of GNU ld only accept -v.
13327       # Break only if it was the GNU/non-GNU ld that we prefer.
13328       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13329       *GNU* | *'with BFD'*)
13330         test "$with_gnu_ld" != no && break
13331         ;;
13332       *)
13333         test "$with_gnu_ld" != yes && break
13334         ;;
13335       esac
13336     fi
13337   done
13338   IFS="$lt_save_ifs"
13339 else
13340   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13341 fi
13342 fi
13343
13344 LD="$lt_cv_path_LD"
13345 if test -n "$LD"; then
13346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13347 $as_echo "$LD" >&6; }
13348 else
13349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350 $as_echo "no" >&6; }
13351 fi
13352 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13354 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13355 if ${lt_cv_prog_gnu_ld+:} false; then :
13356   $as_echo_n "(cached) " >&6
13357 else
13358   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13359 case `$LD -v 2>&1 </dev/null` in
13360 *GNU* | *'with BFD'*)
13361   lt_cv_prog_gnu_ld=yes
13362   ;;
13363 *)
13364   lt_cv_prog_gnu_ld=no
13365   ;;
13366 esac
13367 fi
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13369 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13370 with_gnu_ld=$lt_cv_prog_gnu_ld
13371
13372
13373
13374
13375
13376
13377
13378       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13379       # archiving commands below assume that GNU ld is being used.
13380       if test "$with_gnu_ld" = yes; then
13381         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13382         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'
13383
13384         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13385         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13386
13387         # If archive_cmds runs LD, not CC, wlarc should be empty
13388         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13389         #     investigate it a little bit more. (MM)
13390         wlarc='${wl}'
13391
13392         # ancient GNU ld didn't support --whole-archive et. al.
13393         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13394           $GREP 'no-whole-archive' > /dev/null; then
13395           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13396         else
13397           whole_archive_flag_spec_CXX=
13398         fi
13399       else
13400         with_gnu_ld=no
13401         wlarc=
13402
13403         # A generic and very simple default shared library creation
13404         # command for GNU C++ for the case where it uses the native
13405         # linker, instead of GNU ld.  If possible, this setting should
13406         # overridden to take advantage of the native linker features on
13407         # the platform it is being used on.
13408         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13409       fi
13410
13411       # Commands to make compiler produce verbose output that lists
13412       # what "hidden" libraries, object files and flags are used when
13413       # linking a shared library.
13414       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13415
13416     else
13417       GXX=no
13418       with_gnu_ld=no
13419       wlarc=
13420     fi
13421
13422     # PORTME: fill in a description of your system's C++ link characteristics
13423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13424 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13425     ld_shlibs_CXX=yes
13426     case $host_os in
13427       aix3*)
13428         # FIXME: insert proper C++ library support
13429         ld_shlibs_CXX=no
13430         ;;
13431       aix[4-9]*)
13432         if test "$host_cpu" = ia64; then
13433           # On IA64, the linker does run time linking by default, so we don't
13434           # have to do anything special.
13435           aix_use_runtimelinking=no
13436           exp_sym_flag='-Bexport'
13437           no_entry_flag=""
13438         else
13439           aix_use_runtimelinking=no
13440
13441           # Test if we are trying to use run time linking or normal
13442           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13443           # need to do runtime linking.
13444           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13445             for ld_flag in $LDFLAGS; do
13446               case $ld_flag in
13447               *-brtl*)
13448                 aix_use_runtimelinking=yes
13449                 break
13450                 ;;
13451               esac
13452             done
13453             ;;
13454           esac
13455
13456           exp_sym_flag='-bexport'
13457           no_entry_flag='-bnoentry'
13458         fi
13459
13460         # When large executables or shared objects are built, AIX ld can
13461         # have problems creating the table of contents.  If linking a library
13462         # or program results in "error TOC overflow" add -mminimal-toc to
13463         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13464         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13465
13466         archive_cmds_CXX=''
13467         hardcode_direct_CXX=yes
13468         hardcode_direct_absolute_CXX=yes
13469         hardcode_libdir_separator_CXX=':'
13470         link_all_deplibs_CXX=yes
13471         file_list_spec_CXX='${wl}-f,'
13472
13473         if test "$GXX" = yes; then
13474           case $host_os in aix4.[012]|aix4.[012].*)
13475           # We only want to do this on AIX 4.2 and lower, the check
13476           # below for broken collect2 doesn't work under 4.3+
13477           collect2name=`${CC} -print-prog-name=collect2`
13478           if test -f "$collect2name" &&
13479              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13480           then
13481             # We have reworked collect2
13482             :
13483           else
13484             # We have old collect2
13485             hardcode_direct_CXX=unsupported
13486             # It fails to find uninstalled libraries when the uninstalled
13487             # path is not listed in the libpath.  Setting hardcode_minus_L
13488             # to unsupported forces relinking
13489             hardcode_minus_L_CXX=yes
13490             hardcode_libdir_flag_spec_CXX='-L$libdir'
13491             hardcode_libdir_separator_CXX=
13492           fi
13493           esac
13494           shared_flag='-shared'
13495           if test "$aix_use_runtimelinking" = yes; then
13496             shared_flag="$shared_flag "'${wl}-G'
13497           fi
13498         else
13499           # not using gcc
13500           if test "$host_cpu" = ia64; then
13501           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13502           # chokes on -Wl,-G. The following line is correct:
13503           shared_flag='-G'
13504           else
13505             if test "$aix_use_runtimelinking" = yes; then
13506               shared_flag='${wl}-G'
13507             else
13508               shared_flag='${wl}-bM:SRE'
13509             fi
13510           fi
13511         fi
13512
13513         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13514         # It seems that -bexpall does not export symbols beginning with
13515         # underscore (_), so it is better to generate a list of symbols to
13516         # export.
13517         always_export_symbols_CXX=yes
13518         if test "$aix_use_runtimelinking" = yes; then
13519           # Warning - without using the other runtime loading flags (-brtl),
13520           # -berok will link without error, but may produce a broken library.
13521           allow_undefined_flag_CXX='-berok'
13522           # Determine the default libpath from the value encoded in an empty
13523           # executable.
13524           if test "${lt_cv_aix_libpath+set}" = set; then
13525   aix_libpath=$lt_cv_aix_libpath
13526 else
13527   if ${lt_cv_aix_libpath__CXX+:} false; then :
13528   $as_echo_n "(cached) " >&6
13529 else
13530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h.  */
13532
13533 int
13534 main ()
13535 {
13536
13537   ;
13538   return 0;
13539 }
13540 _ACEOF
13541 if ac_fn_cxx_try_link "$LINENO"; then :
13542
13543   lt_aix_libpath_sed='
13544       /Import File Strings/,/^$/ {
13545           /^0/ {
13546               s/^0  *\([^ ]*\) *$/\1/
13547               p
13548           }
13549       }'
13550   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13551   # Check for a 64-bit object if we didn't find anything.
13552   if test -z "$lt_cv_aix_libpath__CXX"; then
13553     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13554   fi
13555 fi
13556 rm -f core conftest.err conftest.$ac_objext \
13557     conftest$ac_exeext conftest.$ac_ext
13558   if test -z "$lt_cv_aix_libpath__CXX"; then
13559     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13560   fi
13561
13562 fi
13563
13564   aix_libpath=$lt_cv_aix_libpath__CXX
13565 fi
13566
13567           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13568
13569           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"
13570         else
13571           if test "$host_cpu" = ia64; then
13572             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13573             allow_undefined_flag_CXX="-z nodefs"
13574             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"
13575           else
13576             # Determine the default libpath from the value encoded in an
13577             # empty executable.
13578             if test "${lt_cv_aix_libpath+set}" = set; then
13579   aix_libpath=$lt_cv_aix_libpath
13580 else
13581   if ${lt_cv_aix_libpath__CXX+:} false; then :
13582   $as_echo_n "(cached) " >&6
13583 else
13584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h.  */
13586
13587 int
13588 main ()
13589 {
13590
13591   ;
13592   return 0;
13593 }
13594 _ACEOF
13595 if ac_fn_cxx_try_link "$LINENO"; then :
13596
13597   lt_aix_libpath_sed='
13598       /Import File Strings/,/^$/ {
13599           /^0/ {
13600               s/^0  *\([^ ]*\) *$/\1/
13601               p
13602           }
13603       }'
13604   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13605   # Check for a 64-bit object if we didn't find anything.
13606   if test -z "$lt_cv_aix_libpath__CXX"; then
13607     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13608   fi
13609 fi
13610 rm -f core conftest.err conftest.$ac_objext \
13611     conftest$ac_exeext conftest.$ac_ext
13612   if test -z "$lt_cv_aix_libpath__CXX"; then
13613     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13614   fi
13615
13616 fi
13617
13618   aix_libpath=$lt_cv_aix_libpath__CXX
13619 fi
13620
13621             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13622             # Warning - without using the other run time loading flags,
13623             # -berok will link without error, but may produce a broken library.
13624             no_undefined_flag_CXX=' ${wl}-bernotok'
13625             allow_undefined_flag_CXX=' ${wl}-berok'
13626             if test "$with_gnu_ld" = yes; then
13627               # We only use this code for GNU lds that support --whole-archive.
13628               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13629             else
13630               # Exported symbols can be pulled into shared objects from archives
13631               whole_archive_flag_spec_CXX='$convenience'
13632             fi
13633             archive_cmds_need_lc_CXX=yes
13634             # This is similar to how AIX traditionally builds its shared
13635             # libraries.
13636             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'
13637           fi
13638         fi
13639         ;;
13640
13641       beos*)
13642         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13643           allow_undefined_flag_CXX=unsupported
13644           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13645           # support --undefined.  This deserves some investigation.  FIXME
13646           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13647         else
13648           ld_shlibs_CXX=no
13649         fi
13650         ;;
13651
13652       chorus*)
13653         case $cc_basename in
13654           *)
13655           # FIXME: insert proper C++ library support
13656           ld_shlibs_CXX=no
13657           ;;
13658         esac
13659         ;;
13660
13661       cygwin* | mingw* | pw32* | cegcc*)
13662         case $GXX,$cc_basename in
13663         ,cl* | no,cl*)
13664           # Native MSVC
13665           # hardcode_libdir_flag_spec is actually meaningless, as there is
13666           # no search path for DLLs.
13667           hardcode_libdir_flag_spec_CXX=' '
13668           allow_undefined_flag_CXX=unsupported
13669           always_export_symbols_CXX=yes
13670           file_list_spec_CXX='@'
13671           # Tell ltmain to make .lib files, not .a files.
13672           libext=lib
13673           # Tell ltmain to make .dll files, not .so files.
13674           shrext_cmds=".dll"
13675           # FIXME: Setting linknames here is a bad hack.
13676           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13677           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13678               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13679             else
13680               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13681             fi~
13682             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13683             linknames='
13684           # The linker will not automatically build a static lib if we build a DLL.
13685           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13686           enable_shared_with_static_runtimes_CXX=yes
13687           # Don't use ranlib
13688           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13689           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13690             lt_tool_outputfile="@TOOL_OUTPUT@"~
13691             case $lt_outputfile in
13692               *.exe|*.EXE) ;;
13693               *)
13694                 lt_outputfile="$lt_outputfile.exe"
13695                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13696                 ;;
13697             esac~
13698             func_to_tool_file "$lt_outputfile"~
13699             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13700               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13701               $RM "$lt_outputfile.manifest";
13702             fi'
13703           ;;
13704         *)
13705           # g++
13706           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13707           # as there is no search path for DLLs.
13708           hardcode_libdir_flag_spec_CXX='-L$libdir'
13709           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13710           allow_undefined_flag_CXX=unsupported
13711           always_export_symbols_CXX=no
13712           enable_shared_with_static_runtimes_CXX=yes
13713
13714           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13715             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'
13716             # If the export-symbols file already is a .def file (1st line
13717             # is EXPORTS), use it as is; otherwise, prepend...
13718             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13719               cp $export_symbols $output_objdir/$soname.def;
13720             else
13721               echo EXPORTS > $output_objdir/$soname.def;
13722               cat $export_symbols >> $output_objdir/$soname.def;
13723             fi~
13724             $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'
13725           else
13726             ld_shlibs_CXX=no
13727           fi
13728           ;;
13729         esac
13730         ;;
13731       darwin* | rhapsody*)
13732
13733
13734   archive_cmds_need_lc_CXX=no
13735   hardcode_direct_CXX=no
13736   hardcode_automatic_CXX=yes
13737   hardcode_shlibpath_var_CXX=unsupported
13738   if test "$lt_cv_ld_force_load" = "yes"; then
13739     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\"`'
13740
13741   else
13742     whole_archive_flag_spec_CXX=''
13743   fi
13744   link_all_deplibs_CXX=yes
13745   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13746   case $cc_basename in
13747      ifort*) _lt_dar_can_shared=yes ;;
13748      *) _lt_dar_can_shared=$GCC ;;
13749   esac
13750   if test "$_lt_dar_can_shared" = "yes"; then
13751     output_verbose_link_cmd=func_echo_all
13752     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}"
13753     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13754     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}"
13755     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}"
13756        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13757       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}"
13758       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}"
13759     fi
13760
13761   else
13762   ld_shlibs_CXX=no
13763   fi
13764
13765         ;;
13766
13767       dgux*)
13768         case $cc_basename in
13769           ec++*)
13770             # FIXME: insert proper C++ library support
13771             ld_shlibs_CXX=no
13772             ;;
13773           ghcx*)
13774             # Green Hills C++ Compiler
13775             # FIXME: insert proper C++ library support
13776             ld_shlibs_CXX=no
13777             ;;
13778           *)
13779             # FIXME: insert proper C++ library support
13780             ld_shlibs_CXX=no
13781             ;;
13782         esac
13783         ;;
13784
13785       freebsd2.*)
13786         # C++ shared libraries reported to be fairly broken before
13787         # switch to ELF
13788         ld_shlibs_CXX=no
13789         ;;
13790
13791       freebsd-elf*)
13792         archive_cmds_need_lc_CXX=no
13793         ;;
13794
13795       freebsd* | dragonfly*)
13796         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13797         # conventions
13798         ld_shlibs_CXX=yes
13799         ;;
13800
13801       haiku*)
13802         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13803         link_all_deplibs_CXX=yes
13804         ;;
13805
13806       hpux9*)
13807         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13808         hardcode_libdir_separator_CXX=:
13809         export_dynamic_flag_spec_CXX='${wl}-E'
13810         hardcode_direct_CXX=yes
13811         hardcode_minus_L_CXX=yes # Not in the search PATH,
13812                                              # but as the default
13813                                              # location of the library.
13814
13815         case $cc_basename in
13816           CC*)
13817             # FIXME: insert proper C++ library support
13818             ld_shlibs_CXX=no
13819             ;;
13820           aCC*)
13821             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'
13822             # Commands to make compiler produce verbose output that lists
13823             # what "hidden" libraries, object files and flags are used when
13824             # linking a shared library.
13825             #
13826             # There doesn't appear to be a way to prevent this compiler from
13827             # explicitly linking system object files so we need to strip them
13828             # from the output so that they don't get included in the library
13829             # dependencies.
13830             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"'
13831             ;;
13832           *)
13833             if test "$GXX" = yes; then
13834               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'
13835             else
13836               # FIXME: insert proper C++ library support
13837               ld_shlibs_CXX=no
13838             fi
13839             ;;
13840         esac
13841         ;;
13842
13843       hpux10*|hpux11*)
13844         if test $with_gnu_ld = no; then
13845           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13846           hardcode_libdir_separator_CXX=:
13847
13848           case $host_cpu in
13849             hppa*64*|ia64*)
13850               ;;
13851             *)
13852               export_dynamic_flag_spec_CXX='${wl}-E'
13853               ;;
13854           esac
13855         fi
13856         case $host_cpu in
13857           hppa*64*|ia64*)
13858             hardcode_direct_CXX=no
13859             hardcode_shlibpath_var_CXX=no
13860             ;;
13861           *)
13862             hardcode_direct_CXX=yes
13863             hardcode_direct_absolute_CXX=yes
13864             hardcode_minus_L_CXX=yes # Not in the search PATH,
13865                                                  # but as the default
13866                                                  # location of the library.
13867             ;;
13868         esac
13869
13870         case $cc_basename in
13871           CC*)
13872             # FIXME: insert proper C++ library support
13873             ld_shlibs_CXX=no
13874             ;;
13875           aCC*)
13876             case $host_cpu in
13877               hppa*64*)
13878                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13879                 ;;
13880               ia64*)
13881                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13882                 ;;
13883               *)
13884                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13885                 ;;
13886             esac
13887             # Commands to make compiler produce verbose output that lists
13888             # what "hidden" libraries, object files and flags are used when
13889             # linking a shared library.
13890             #
13891             # There doesn't appear to be a way to prevent this compiler from
13892             # explicitly linking system object files so we need to strip them
13893             # from the output so that they don't get included in the library
13894             # dependencies.
13895             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"'
13896             ;;
13897           *)
13898             if test "$GXX" = yes; then
13899               if test $with_gnu_ld = no; then
13900                 case $host_cpu in
13901                   hppa*64*)
13902                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13903                     ;;
13904                   ia64*)
13905                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13906                     ;;
13907                   *)
13908                     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'
13909                     ;;
13910                 esac
13911               fi
13912             else
13913               # FIXME: insert proper C++ library support
13914               ld_shlibs_CXX=no
13915             fi
13916             ;;
13917         esac
13918         ;;
13919
13920       interix[3-9]*)
13921         hardcode_direct_CXX=no
13922         hardcode_shlibpath_var_CXX=no
13923         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13924         export_dynamic_flag_spec_CXX='${wl}-E'
13925         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13926         # Instead, shared libraries are loaded at an image base (0x10000000 by
13927         # default) and relocated if they conflict, which is a slow very memory
13928         # consuming and fragmenting process.  To avoid this, we pick a random,
13929         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13930         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13931         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'
13932         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'
13933         ;;
13934       irix5* | irix6*)
13935         case $cc_basename in
13936           CC*)
13937             # SGI C++
13938             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'
13939
13940             # Archives containing C++ object files must be created using
13941             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13942             # necessary to make sure instantiated templates are included
13943             # in the archive.
13944             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13945             ;;
13946           *)
13947             if test "$GXX" = yes; then
13948               if test "$with_gnu_ld" = no; then
13949                 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'
13950               else
13951                 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'
13952               fi
13953             fi
13954             link_all_deplibs_CXX=yes
13955             ;;
13956         esac
13957         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13958         hardcode_libdir_separator_CXX=:
13959         inherit_rpath_CXX=yes
13960         ;;
13961
13962       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13963         case $cc_basename in
13964           KCC*)
13965             # Kuck and Associates, Inc. (KAI) C++ Compiler
13966
13967             # KCC will only create a shared library if the output file
13968             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13969             # to its proper name (with version) after linking.
13970             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'
13971             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'
13972             # Commands to make compiler produce verbose output that lists
13973             # what "hidden" libraries, object files and flags are used when
13974             # linking a shared library.
13975             #
13976             # There doesn't appear to be a way to prevent this compiler from
13977             # explicitly linking system object files so we need to strip them
13978             # from the output so that they don't get included in the library
13979             # dependencies.
13980             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"'
13981
13982             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13983             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13984
13985             # Archives containing C++ object files must be created using
13986             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13987             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13988             ;;
13989           icpc* | ecpc* )
13990             # Intel C++
13991             with_gnu_ld=yes
13992             # version 8.0 and above of icpc choke on multiply defined symbols
13993             # if we add $predep_objects and $postdep_objects, however 7.1 and
13994             # earlier do not add the objects themselves.
13995             case `$CC -V 2>&1` in
13996               *"Version 7."*)
13997                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13998                 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'
13999                 ;;
14000               *)  # Version 8.0 or newer
14001                 tmp_idyn=
14002                 case $host_cpu in
14003                   ia64*) tmp_idyn=' -i_dynamic';;
14004                 esac
14005                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14006                 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'
14007                 ;;
14008             esac
14009             archive_cmds_need_lc_CXX=no
14010             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14011             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14012             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14013             ;;
14014           pgCC* | pgcpp*)
14015             # Portland Group C++ compiler
14016             case `$CC -V` in
14017             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14018               prelink_cmds_CXX='tpldir=Template.dir~
14019                 rm -rf $tpldir~
14020                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14021                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14022               old_archive_cmds_CXX='tpldir=Template.dir~
14023                 rm -rf $tpldir~
14024                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14025                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14026                 $RANLIB $oldlib'
14027               archive_cmds_CXX='tpldir=Template.dir~
14028                 rm -rf $tpldir~
14029                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14030                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14031               archive_expsym_cmds_CXX='tpldir=Template.dir~
14032                 rm -rf $tpldir~
14033                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14034                 $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'
14035               ;;
14036             *) # Version 6 and above use weak symbols
14037               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14038               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'
14039               ;;
14040             esac
14041
14042             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14043             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14044             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'
14045             ;;
14046           cxx*)
14047             # Compaq C++
14048             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14049             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'
14050
14051             runpath_var=LD_RUN_PATH
14052             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14053             hardcode_libdir_separator_CXX=:
14054
14055             # Commands to make compiler produce verbose output that lists
14056             # what "hidden" libraries, object files and flags are used when
14057             # linking a shared library.
14058             #
14059             # There doesn't appear to be a way to prevent this compiler from
14060             # explicitly linking system object files so we need to strip them
14061             # from the output so that they don't get included in the library
14062             # dependencies.
14063             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'
14064             ;;
14065           xl* | mpixl* | bgxl*)
14066             # IBM XL 8.0 on PPC, with GNU ld
14067             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14068             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14069             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14070             if test "x$supports_anon_versioning" = xyes; then
14071               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14072                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14073                 echo "local: *; };" >> $output_objdir/$libname.ver~
14074                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14075             fi
14076             ;;
14077           *)
14078             case `$CC -V 2>&1 | sed 5q` in
14079             *Sun\ C*)
14080               # Sun C++ 5.9
14081               no_undefined_flag_CXX=' -zdefs'
14082               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14083               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'
14084               hardcode_libdir_flag_spec_CXX='-R$libdir'
14085               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'
14086               compiler_needs_object_CXX=yes
14087
14088               # Not sure whether something based on
14089               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14090               # would be better.
14091               output_verbose_link_cmd='func_echo_all'
14092
14093               # Archives containing C++ object files must be created using
14094               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14095               # necessary to make sure instantiated templates are included
14096               # in the archive.
14097               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14098               ;;
14099             esac
14100             ;;
14101         esac
14102         ;;
14103
14104       lynxos*)
14105         # FIXME: insert proper C++ library support
14106         ld_shlibs_CXX=no
14107         ;;
14108
14109       m88k*)
14110         # FIXME: insert proper C++ library support
14111         ld_shlibs_CXX=no
14112         ;;
14113
14114       mvs*)
14115         case $cc_basename in
14116           cxx*)
14117             # FIXME: insert proper C++ library support
14118             ld_shlibs_CXX=no
14119             ;;
14120           *)
14121             # FIXME: insert proper C++ library support
14122             ld_shlibs_CXX=no
14123             ;;
14124         esac
14125         ;;
14126
14127       netbsd*)
14128         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14129           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14130           wlarc=
14131           hardcode_libdir_flag_spec_CXX='-R$libdir'
14132           hardcode_direct_CXX=yes
14133           hardcode_shlibpath_var_CXX=no
14134         fi
14135         # Workaround some broken pre-1.5 toolchains
14136         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14137         ;;
14138
14139       *nto* | *qnx*)
14140         ld_shlibs_CXX=yes
14141         ;;
14142
14143       openbsd2*)
14144         # C++ shared libraries are fairly broken
14145         ld_shlibs_CXX=no
14146         ;;
14147
14148       openbsd*)
14149         if test -f /usr/libexec/ld.so; then
14150           hardcode_direct_CXX=yes
14151           hardcode_shlibpath_var_CXX=no
14152           hardcode_direct_absolute_CXX=yes
14153           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14154           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14155           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14156             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14157             export_dynamic_flag_spec_CXX='${wl}-E'
14158             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14159           fi
14160           output_verbose_link_cmd=func_echo_all
14161         else
14162           ld_shlibs_CXX=no
14163         fi
14164         ;;
14165
14166       osf3* | osf4* | osf5*)
14167         case $cc_basename in
14168           KCC*)
14169             # Kuck and Associates, Inc. (KAI) C++ Compiler
14170
14171             # KCC will only create a shared library if the output file
14172             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14173             # to its proper name (with version) after linking.
14174             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'
14175
14176             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14177             hardcode_libdir_separator_CXX=:
14178
14179             # Archives containing C++ object files must be created using
14180             # the KAI C++ compiler.
14181             case $host in
14182               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14183               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14184             esac
14185             ;;
14186           RCC*)
14187             # Rational C++ 2.4.1
14188             # FIXME: insert proper C++ library support
14189             ld_shlibs_CXX=no
14190             ;;
14191           cxx*)
14192             case $host in
14193               osf3*)
14194                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14195                 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'
14196                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14197                 ;;
14198               *)
14199                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14200                 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'
14201                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14202                   echo "-hidden">> $lib.exp~
14203                   $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~
14204                   $RM $lib.exp'
14205                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14206                 ;;
14207             esac
14208
14209             hardcode_libdir_separator_CXX=:
14210
14211             # Commands to make compiler produce verbose output that lists
14212             # what "hidden" libraries, object files and flags are used when
14213             # linking a shared library.
14214             #
14215             # There doesn't appear to be a way to prevent this compiler from
14216             # explicitly linking system object files so we need to strip them
14217             # from the output so that they don't get included in the library
14218             # dependencies.
14219             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"'
14220             ;;
14221           *)
14222             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14223               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14224               case $host in
14225                 osf3*)
14226                   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'
14227                   ;;
14228                 *)
14229                   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'
14230                   ;;
14231               esac
14232
14233               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14234               hardcode_libdir_separator_CXX=:
14235
14236               # Commands to make compiler produce verbose output that lists
14237               # what "hidden" libraries, object files and flags are used when
14238               # linking a shared library.
14239               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14240
14241             else
14242               # FIXME: insert proper C++ library support
14243               ld_shlibs_CXX=no
14244             fi
14245             ;;
14246         esac
14247         ;;
14248
14249       psos*)
14250         # FIXME: insert proper C++ library support
14251         ld_shlibs_CXX=no
14252         ;;
14253
14254       sunos4*)
14255         case $cc_basename in
14256           CC*)
14257             # Sun C++ 4.x
14258             # FIXME: insert proper C++ library support
14259             ld_shlibs_CXX=no
14260             ;;
14261           lcc*)
14262             # Lucid
14263             # FIXME: insert proper C++ library support
14264             ld_shlibs_CXX=no
14265             ;;
14266           *)
14267             # FIXME: insert proper C++ library support
14268             ld_shlibs_CXX=no
14269             ;;
14270         esac
14271         ;;
14272
14273       solaris*)
14274         case $cc_basename in
14275           CC* | sunCC*)
14276             # Sun C++ 4.2, 5.x and Centerline C++
14277             archive_cmds_need_lc_CXX=yes
14278             no_undefined_flag_CXX=' -zdefs'
14279             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14280             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14281               $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'
14282
14283             hardcode_libdir_flag_spec_CXX='-R$libdir'
14284             hardcode_shlibpath_var_CXX=no
14285             case $host_os in
14286               solaris2.[0-5] | solaris2.[0-5].*) ;;
14287               *)
14288                 # The compiler driver will combine and reorder linker options,
14289                 # but understands `-z linker_flag'.
14290                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14291                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14292                 ;;
14293             esac
14294             link_all_deplibs_CXX=yes
14295
14296             output_verbose_link_cmd='func_echo_all'
14297
14298             # Archives containing C++ object files must be created using
14299             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14300             # necessary to make sure instantiated templates are included
14301             # in the archive.
14302             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14303             ;;
14304           gcx*)
14305             # Green Hills C++ Compiler
14306             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14307
14308             # The C++ compiler must be used to create the archive.
14309             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14310             ;;
14311           *)
14312             # GNU C++ compiler with Solaris linker
14313             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14314               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14315               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14316                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14317                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14318                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14319
14320                 # Commands to make compiler produce verbose output that lists
14321                 # what "hidden" libraries, object files and flags are used when
14322                 # linking a shared library.
14323                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14324               else
14325                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14326                 # platform.
14327                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14328                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14329                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14330
14331                 # Commands to make compiler produce verbose output that lists
14332                 # what "hidden" libraries, object files and flags are used when
14333                 # linking a shared library.
14334                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14335               fi
14336
14337               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14338               case $host_os in
14339                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14340                 *)
14341                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14342                   ;;
14343               esac
14344             fi
14345             ;;
14346         esac
14347         ;;
14348
14349     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14350       no_undefined_flag_CXX='${wl}-z,text'
14351       archive_cmds_need_lc_CXX=no
14352       hardcode_shlibpath_var_CXX=no
14353       runpath_var='LD_RUN_PATH'
14354
14355       case $cc_basename in
14356         CC*)
14357           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14358           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14359           ;;
14360         *)
14361           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14362           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14363           ;;
14364       esac
14365       ;;
14366
14367       sysv5* | sco3.2v5* | sco5v6*)
14368         # Note: We can NOT use -z defs as we might desire, because we do not
14369         # link with -lc, and that would cause any symbols used from libc to
14370         # always be unresolved, which means just about no library would
14371         # ever link correctly.  If we're not using GNU ld we use -z text
14372         # though, which does catch some bad symbols but isn't as heavy-handed
14373         # as -z defs.
14374         no_undefined_flag_CXX='${wl}-z,text'
14375         allow_undefined_flag_CXX='${wl}-z,nodefs'
14376         archive_cmds_need_lc_CXX=no
14377         hardcode_shlibpath_var_CXX=no
14378         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14379         hardcode_libdir_separator_CXX=':'
14380         link_all_deplibs_CXX=yes
14381         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14382         runpath_var='LD_RUN_PATH'
14383
14384         case $cc_basename in
14385           CC*)
14386             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14387             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14388             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14389               '"$old_archive_cmds_CXX"
14390             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14391               '"$reload_cmds_CXX"
14392             ;;
14393           *)
14394             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14395             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14396             ;;
14397         esac
14398       ;;
14399
14400       tandem*)
14401         case $cc_basename in
14402           NCC*)
14403             # NonStop-UX NCC 3.20
14404             # FIXME: insert proper C++ library support
14405             ld_shlibs_CXX=no
14406             ;;
14407           *)
14408             # FIXME: insert proper C++ library support
14409             ld_shlibs_CXX=no
14410             ;;
14411         esac
14412         ;;
14413
14414       vxworks*)
14415         # FIXME: insert proper C++ library support
14416         ld_shlibs_CXX=no
14417         ;;
14418
14419       *)
14420         # FIXME: insert proper C++ library support
14421         ld_shlibs_CXX=no
14422         ;;
14423     esac
14424
14425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14426 $as_echo "$ld_shlibs_CXX" >&6; }
14427     test "$ld_shlibs_CXX" = no && can_build_shared=no
14428
14429     GCC_CXX="$GXX"
14430     LD_CXX="$LD"
14431
14432     ## CAVEAT EMPTOR:
14433     ## There is no encapsulation within the following macros, do not change
14434     ## the running order or otherwise move them around unless you know exactly
14435     ## what you are doing...
14436     # Dependencies to place before and after the object being linked:
14437 predep_objects_CXX=
14438 postdep_objects_CXX=
14439 predeps_CXX=
14440 postdeps_CXX=
14441 compiler_lib_search_path_CXX=
14442
14443 cat > conftest.$ac_ext <<_LT_EOF
14444 class Foo
14445 {
14446 public:
14447   Foo (void) { a = 0; }
14448 private:
14449   int a;
14450 };
14451 _LT_EOF
14452
14453
14454 _lt_libdeps_save_CFLAGS=$CFLAGS
14455 case "$CC $CFLAGS " in #(
14456 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14457 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14458 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14459 esac
14460
14461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14462   (eval $ac_compile) 2>&5
14463   ac_status=$?
14464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14465   test $ac_status = 0; }; then
14466   # Parse the compiler output and extract the necessary
14467   # objects, libraries and library flags.
14468
14469   # Sentinel used to keep track of whether or not we are before
14470   # the conftest object file.
14471   pre_test_object_deps_done=no
14472
14473   for p in `eval "$output_verbose_link_cmd"`; do
14474     case ${prev}${p} in
14475
14476     -L* | -R* | -l*)
14477        # Some compilers place space between "-{L,R}" and the path.
14478        # Remove the space.
14479        if test $p = "-L" ||
14480           test $p = "-R"; then
14481          prev=$p
14482          continue
14483        fi
14484
14485        # Expand the sysroot to ease extracting the directories later.
14486        if test -z "$prev"; then
14487          case $p in
14488          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14489          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14490          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14491          esac
14492        fi
14493        case $p in
14494        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14495        esac
14496        if test "$pre_test_object_deps_done" = no; then
14497          case ${prev} in
14498          -L | -R)
14499            # Internal compiler library paths should come after those
14500            # provided the user.  The postdeps already come after the
14501            # user supplied libs so there is no need to process them.
14502            if test -z "$compiler_lib_search_path_CXX"; then
14503              compiler_lib_search_path_CXX="${prev}${p}"
14504            else
14505              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14506            fi
14507            ;;
14508          # The "-l" case would never come before the object being
14509          # linked, so don't bother handling this case.
14510          esac
14511        else
14512          if test -z "$postdeps_CXX"; then
14513            postdeps_CXX="${prev}${p}"
14514          else
14515            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14516          fi
14517        fi
14518        prev=
14519        ;;
14520
14521     *.lto.$objext) ;; # Ignore GCC LTO objects
14522     *.$objext)
14523        # This assumes that the test object file only shows up
14524        # once in the compiler output.
14525        if test "$p" = "conftest.$objext"; then
14526          pre_test_object_deps_done=yes
14527          continue
14528        fi
14529
14530        if test "$pre_test_object_deps_done" = no; then
14531          if test -z "$predep_objects_CXX"; then
14532            predep_objects_CXX="$p"
14533          else
14534            predep_objects_CXX="$predep_objects_CXX $p"
14535          fi
14536        else
14537          if test -z "$postdep_objects_CXX"; then
14538            postdep_objects_CXX="$p"
14539          else
14540            postdep_objects_CXX="$postdep_objects_CXX $p"
14541          fi
14542        fi
14543        ;;
14544
14545     *) ;; # Ignore the rest.
14546
14547     esac
14548   done
14549
14550   # Clean up.
14551   rm -f a.out a.exe
14552 else
14553   echo "libtool.m4: error: problem compiling CXX test program"
14554 fi
14555
14556 $RM -f confest.$objext
14557 CFLAGS=$_lt_libdeps_save_CFLAGS
14558
14559 # PORTME: override above test on systems where it is broken
14560 case $host_os in
14561 interix[3-9]*)
14562   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14563   # hack all around it, let's just trust "g++" to DTRT.
14564   predep_objects_CXX=
14565   postdep_objects_CXX=
14566   postdeps_CXX=
14567   ;;
14568
14569 linux*)
14570   case `$CC -V 2>&1 | sed 5q` in
14571   *Sun\ C*)
14572     # Sun C++ 5.9
14573
14574     # The more standards-conforming stlport4 library is
14575     # incompatible with the Cstd library. Avoid specifying
14576     # it if it's in CXXFLAGS. Ignore libCrun as
14577     # -library=stlport4 depends on it.
14578     case " $CXX $CXXFLAGS " in
14579     *" -library=stlport4 "*)
14580       solaris_use_stlport4=yes
14581       ;;
14582     esac
14583
14584     if test "$solaris_use_stlport4" != yes; then
14585       postdeps_CXX='-library=Cstd -library=Crun'
14586     fi
14587     ;;
14588   esac
14589   ;;
14590
14591 solaris*)
14592   case $cc_basename in
14593   CC* | sunCC*)
14594     # The more standards-conforming stlport4 library is
14595     # incompatible with the Cstd library. Avoid specifying
14596     # it if it's in CXXFLAGS. Ignore libCrun as
14597     # -library=stlport4 depends on it.
14598     case " $CXX $CXXFLAGS " in
14599     *" -library=stlport4 "*)
14600       solaris_use_stlport4=yes
14601       ;;
14602     esac
14603
14604     # Adding this requires a known-good setup of shared libraries for
14605     # Sun compiler versions before 5.6, else PIC objects from an old
14606     # archive will be linked into the output, leading to subtle bugs.
14607     if test "$solaris_use_stlport4" != yes; then
14608       postdeps_CXX='-library=Cstd -library=Crun'
14609     fi
14610     ;;
14611   esac
14612   ;;
14613 esac
14614
14615
14616 case " $postdeps_CXX " in
14617 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14618 esac
14619  compiler_lib_search_dirs_CXX=
14620 if test -n "${compiler_lib_search_path_CXX}"; then
14621  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14622 fi
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654     lt_prog_compiler_wl_CXX=
14655 lt_prog_compiler_pic_CXX=
14656 lt_prog_compiler_static_CXX=
14657
14658
14659   # C++ specific cases for pic, static, wl, etc.
14660   if test "$GXX" = yes; then
14661     lt_prog_compiler_wl_CXX='-Wl,'
14662     lt_prog_compiler_static_CXX='-static'
14663
14664     case $host_os in
14665     aix*)
14666       # All AIX code is PIC.
14667       if test "$host_cpu" = ia64; then
14668         # AIX 5 now supports IA64 processor
14669         lt_prog_compiler_static_CXX='-Bstatic'
14670       fi
14671       ;;
14672
14673     amigaos*)
14674       case $host_cpu in
14675       powerpc)
14676             # see comment about AmigaOS4 .so support
14677             lt_prog_compiler_pic_CXX='-fPIC'
14678         ;;
14679       m68k)
14680             # FIXME: we need at least 68020 code to build shared libraries, but
14681             # adding the `-m68020' flag to GCC prevents building anything better,
14682             # like `-m68040'.
14683             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14684         ;;
14685       esac
14686       ;;
14687
14688     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14689       # PIC is the default for these OSes.
14690       ;;
14691     mingw* | cygwin* | os2* | pw32* | cegcc*)
14692       # This hack is so that the source file can tell whether it is being
14693       # built for inclusion in a dll (and should export symbols for example).
14694       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14695       # (--disable-auto-import) libraries
14696       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14697       ;;
14698     darwin* | rhapsody*)
14699       # PIC is the default on this platform
14700       # Common symbols not allowed in MH_DYLIB files
14701       lt_prog_compiler_pic_CXX='-fno-common'
14702       ;;
14703     *djgpp*)
14704       # DJGPP does not support shared libraries at all
14705       lt_prog_compiler_pic_CXX=
14706       ;;
14707     haiku*)
14708       # PIC is the default for Haiku.
14709       # The "-static" flag exists, but is broken.
14710       lt_prog_compiler_static_CXX=
14711       ;;
14712     interix[3-9]*)
14713       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14714       # Instead, we relocate shared libraries at runtime.
14715       ;;
14716     sysv4*MP*)
14717       if test -d /usr/nec; then
14718         lt_prog_compiler_pic_CXX=-Kconform_pic
14719       fi
14720       ;;
14721     hpux*)
14722       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14723       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14724       # sets the default TLS model and affects inlining.
14725       case $host_cpu in
14726       hppa*64*)
14727         ;;
14728       *)
14729         lt_prog_compiler_pic_CXX='-fPIC'
14730         ;;
14731       esac
14732       ;;
14733     *qnx* | *nto*)
14734       # QNX uses GNU C++, but need to define -shared option too, otherwise
14735       # it will coredump.
14736       lt_prog_compiler_pic_CXX='-fPIC -shared'
14737       ;;
14738     *)
14739       lt_prog_compiler_pic_CXX='-fPIC'
14740       ;;
14741     esac
14742   else
14743     case $host_os in
14744       aix[4-9]*)
14745         # All AIX code is PIC.
14746         if test "$host_cpu" = ia64; then
14747           # AIX 5 now supports IA64 processor
14748           lt_prog_compiler_static_CXX='-Bstatic'
14749         else
14750           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14751         fi
14752         ;;
14753       chorus*)
14754         case $cc_basename in
14755         cxch68*)
14756           # Green Hills C++ Compiler
14757           # _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"
14758           ;;
14759         esac
14760         ;;
14761       mingw* | cygwin* | os2* | pw32* | cegcc*)
14762         # This hack is so that the source file can tell whether it is being
14763         # built for inclusion in a dll (and should export symbols for example).
14764         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14765         ;;
14766       dgux*)
14767         case $cc_basename in
14768           ec++*)
14769             lt_prog_compiler_pic_CXX='-KPIC'
14770             ;;
14771           ghcx*)
14772             # Green Hills C++ Compiler
14773             lt_prog_compiler_pic_CXX='-pic'
14774             ;;
14775           *)
14776             ;;
14777         esac
14778         ;;
14779       freebsd* | dragonfly*)
14780         # FreeBSD uses GNU C++
14781         ;;
14782       hpux9* | hpux10* | hpux11*)
14783         case $cc_basename in
14784           CC*)
14785             lt_prog_compiler_wl_CXX='-Wl,'
14786             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14787             if test "$host_cpu" != ia64; then
14788               lt_prog_compiler_pic_CXX='+Z'
14789             fi
14790             ;;
14791           aCC*)
14792             lt_prog_compiler_wl_CXX='-Wl,'
14793             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14794             case $host_cpu in
14795             hppa*64*|ia64*)
14796               # +Z the default
14797               ;;
14798             *)
14799               lt_prog_compiler_pic_CXX='+Z'
14800               ;;
14801             esac
14802             ;;
14803           *)
14804             ;;
14805         esac
14806         ;;
14807       interix*)
14808         # This is c89, which is MS Visual C++ (no shared libs)
14809         # Anyone wants to do a port?
14810         ;;
14811       irix5* | irix6* | nonstopux*)
14812         case $cc_basename in
14813           CC*)
14814             lt_prog_compiler_wl_CXX='-Wl,'
14815             lt_prog_compiler_static_CXX='-non_shared'
14816             # CC pic flag -KPIC is the default.
14817             ;;
14818           *)
14819             ;;
14820         esac
14821         ;;
14822       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14823         case $cc_basename in
14824           KCC*)
14825             # KAI C++ Compiler
14826             lt_prog_compiler_wl_CXX='--backend -Wl,'
14827             lt_prog_compiler_pic_CXX='-fPIC'
14828             ;;
14829           ecpc* )
14830             # old Intel C++ for x86_64 which still supported -KPIC.
14831             lt_prog_compiler_wl_CXX='-Wl,'
14832             lt_prog_compiler_pic_CXX='-KPIC'
14833             lt_prog_compiler_static_CXX='-static'
14834             ;;
14835           icpc* )
14836             # Intel C++, used to be incompatible with GCC.
14837             # ICC 10 doesn't accept -KPIC any more.
14838             lt_prog_compiler_wl_CXX='-Wl,'
14839             lt_prog_compiler_pic_CXX='-fPIC'
14840             lt_prog_compiler_static_CXX='-static'
14841             ;;
14842           pgCC* | pgcpp*)
14843             # Portland Group C++ compiler
14844             lt_prog_compiler_wl_CXX='-Wl,'
14845             lt_prog_compiler_pic_CXX='-fpic'
14846             lt_prog_compiler_static_CXX='-Bstatic'
14847             ;;
14848           cxx*)
14849             # Compaq C++
14850             # Make sure the PIC flag is empty.  It appears that all Alpha
14851             # Linux and Compaq Tru64 Unix objects are PIC.
14852             lt_prog_compiler_pic_CXX=
14853             lt_prog_compiler_static_CXX='-non_shared'
14854             ;;
14855           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14856             # IBM XL 8.0, 9.0 on PPC and BlueGene
14857             lt_prog_compiler_wl_CXX='-Wl,'
14858             lt_prog_compiler_pic_CXX='-qpic'
14859             lt_prog_compiler_static_CXX='-qstaticlink'
14860             ;;
14861           *)
14862             case `$CC -V 2>&1 | sed 5q` in
14863             *Sun\ C*)
14864               # Sun C++ 5.9
14865               lt_prog_compiler_pic_CXX='-KPIC'
14866               lt_prog_compiler_static_CXX='-Bstatic'
14867               lt_prog_compiler_wl_CXX='-Qoption ld '
14868               ;;
14869             esac
14870             ;;
14871         esac
14872         ;;
14873       lynxos*)
14874         ;;
14875       m88k*)
14876         ;;
14877       mvs*)
14878         case $cc_basename in
14879           cxx*)
14880             lt_prog_compiler_pic_CXX='-W c,exportall'
14881             ;;
14882           *)
14883             ;;
14884         esac
14885         ;;
14886       netbsd* | netbsdelf*-gnu)
14887         ;;
14888       *qnx* | *nto*)
14889         # QNX uses GNU C++, but need to define -shared option too, otherwise
14890         # it will coredump.
14891         lt_prog_compiler_pic_CXX='-fPIC -shared'
14892         ;;
14893       osf3* | osf4* | osf5*)
14894         case $cc_basename in
14895           KCC*)
14896             lt_prog_compiler_wl_CXX='--backend -Wl,'
14897             ;;
14898           RCC*)
14899             # Rational C++ 2.4.1
14900             lt_prog_compiler_pic_CXX='-pic'
14901             ;;
14902           cxx*)
14903             # Digital/Compaq C++
14904             lt_prog_compiler_wl_CXX='-Wl,'
14905             # Make sure the PIC flag is empty.  It appears that all Alpha
14906             # Linux and Compaq Tru64 Unix objects are PIC.
14907             lt_prog_compiler_pic_CXX=
14908             lt_prog_compiler_static_CXX='-non_shared'
14909             ;;
14910           *)
14911             ;;
14912         esac
14913         ;;
14914       psos*)
14915         ;;
14916       solaris*)
14917         case $cc_basename in
14918           CC* | sunCC*)
14919             # Sun C++ 4.2, 5.x and Centerline C++
14920             lt_prog_compiler_pic_CXX='-KPIC'
14921             lt_prog_compiler_static_CXX='-Bstatic'
14922             lt_prog_compiler_wl_CXX='-Qoption ld '
14923             ;;
14924           gcx*)
14925             # Green Hills C++ Compiler
14926             lt_prog_compiler_pic_CXX='-PIC'
14927             ;;
14928           *)
14929             ;;
14930         esac
14931         ;;
14932       sunos4*)
14933         case $cc_basename in
14934           CC*)
14935             # Sun C++ 4.x
14936             lt_prog_compiler_pic_CXX='-pic'
14937             lt_prog_compiler_static_CXX='-Bstatic'
14938             ;;
14939           lcc*)
14940             # Lucid
14941             lt_prog_compiler_pic_CXX='-pic'
14942             ;;
14943           *)
14944             ;;
14945         esac
14946         ;;
14947       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14948         case $cc_basename in
14949           CC*)
14950             lt_prog_compiler_wl_CXX='-Wl,'
14951             lt_prog_compiler_pic_CXX='-KPIC'
14952             lt_prog_compiler_static_CXX='-Bstatic'
14953             ;;
14954         esac
14955         ;;
14956       tandem*)
14957         case $cc_basename in
14958           NCC*)
14959             # NonStop-UX NCC 3.20
14960             lt_prog_compiler_pic_CXX='-KPIC'
14961             ;;
14962           *)
14963             ;;
14964         esac
14965         ;;
14966       vxworks*)
14967         ;;
14968       *)
14969         lt_prog_compiler_can_build_shared_CXX=no
14970         ;;
14971     esac
14972   fi
14973
14974 case $host_os in
14975   # For platforms which do not support PIC, -DPIC is meaningless:
14976   *djgpp*)
14977     lt_prog_compiler_pic_CXX=
14978     ;;
14979   *)
14980     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14981     ;;
14982 esac
14983
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14985 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14986 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14987   $as_echo_n "(cached) " >&6
14988 else
14989   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14990 fi
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14992 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14993 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14994
14995 #
14996 # Check to make sure the PIC flag actually works.
14997 #
14998 if test -n "$lt_prog_compiler_pic_CXX"; then
14999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15000 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15001 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15002   $as_echo_n "(cached) " >&6
15003 else
15004   lt_cv_prog_compiler_pic_works_CXX=no
15005    ac_outfile=conftest.$ac_objext
15006    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15007    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15008    # Insert the option either (1) after the last *FLAGS variable, or
15009    # (2) before a word containing "conftest.", or (3) at the end.
15010    # Note that $ac_compile itself does not contain backslashes and begins
15011    # with a dollar sign (not a hyphen), so the echo should work correctly.
15012    # The option is referenced via a variable to avoid confusing sed.
15013    lt_compile=`echo "$ac_compile" | $SED \
15014    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15015    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15016    -e 's:$: $lt_compiler_flag:'`
15017    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15018    (eval "$lt_compile" 2>conftest.err)
15019    ac_status=$?
15020    cat conftest.err >&5
15021    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022    if (exit $ac_status) && test -s "$ac_outfile"; then
15023      # The compiler can only warn and ignore the option if not recognized
15024      # So say no if there are warnings other than the usual output.
15025      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15026      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15027      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15028        lt_cv_prog_compiler_pic_works_CXX=yes
15029      fi
15030    fi
15031    $RM conftest*
15032
15033 fi
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15035 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15036
15037 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15038     case $lt_prog_compiler_pic_CXX in
15039      "" | " "*) ;;
15040      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15041      esac
15042 else
15043     lt_prog_compiler_pic_CXX=
15044      lt_prog_compiler_can_build_shared_CXX=no
15045 fi
15046
15047 fi
15048
15049
15050
15051
15052
15053 #
15054 # Check to make sure the static flag actually works.
15055 #
15056 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15058 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15059 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15060   $as_echo_n "(cached) " >&6
15061 else
15062   lt_cv_prog_compiler_static_works_CXX=no
15063    save_LDFLAGS="$LDFLAGS"
15064    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15065    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15066    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15067      # The linker can only warn and ignore the option if not recognized
15068      # So say no if there are warnings
15069      if test -s conftest.err; then
15070        # Append any errors to the config.log.
15071        cat conftest.err 1>&5
15072        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15073        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15074        if diff conftest.exp conftest.er2 >/dev/null; then
15075          lt_cv_prog_compiler_static_works_CXX=yes
15076        fi
15077      else
15078        lt_cv_prog_compiler_static_works_CXX=yes
15079      fi
15080    fi
15081    $RM -r conftest*
15082    LDFLAGS="$save_LDFLAGS"
15083
15084 fi
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15086 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15087
15088 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15089     :
15090 else
15091     lt_prog_compiler_static_CXX=
15092 fi
15093
15094
15095
15096
15097     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15098 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15099 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15100   $as_echo_n "(cached) " >&6
15101 else
15102   lt_cv_prog_compiler_c_o_CXX=no
15103    $RM -r conftest 2>/dev/null
15104    mkdir conftest
15105    cd conftest
15106    mkdir out
15107    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15108
15109    lt_compiler_flag="-o out/conftest2.$ac_objext"
15110    # Insert the option either (1) after the last *FLAGS variable, or
15111    # (2) before a word containing "conftest.", or (3) at the end.
15112    # Note that $ac_compile itself does not contain backslashes and begins
15113    # with a dollar sign (not a hyphen), so the echo should work correctly.
15114    lt_compile=`echo "$ac_compile" | $SED \
15115    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15116    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15117    -e 's:$: $lt_compiler_flag:'`
15118    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15119    (eval "$lt_compile" 2>out/conftest.err)
15120    ac_status=$?
15121    cat out/conftest.err >&5
15122    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15124    then
15125      # The compiler can only warn and ignore the option if not recognized
15126      # So say no if there are warnings
15127      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15128      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15129      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15130        lt_cv_prog_compiler_c_o_CXX=yes
15131      fi
15132    fi
15133    chmod u+w . 2>&5
15134    $RM conftest*
15135    # SGI C++ compiler will create directory out/ii_files/ for
15136    # template instantiation
15137    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15138    $RM out/* && rmdir out
15139    cd ..
15140    $RM -r conftest
15141    $RM conftest*
15142
15143 fi
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15145 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15146
15147
15148
15149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15150 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15151 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15152   $as_echo_n "(cached) " >&6
15153 else
15154   lt_cv_prog_compiler_c_o_CXX=no
15155    $RM -r conftest 2>/dev/null
15156    mkdir conftest
15157    cd conftest
15158    mkdir out
15159    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15160
15161    lt_compiler_flag="-o out/conftest2.$ac_objext"
15162    # Insert the option either (1) after the last *FLAGS variable, or
15163    # (2) before a word containing "conftest.", or (3) at the end.
15164    # Note that $ac_compile itself does not contain backslashes and begins
15165    # with a dollar sign (not a hyphen), so the echo should work correctly.
15166    lt_compile=`echo "$ac_compile" | $SED \
15167    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15168    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15169    -e 's:$: $lt_compiler_flag:'`
15170    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15171    (eval "$lt_compile" 2>out/conftest.err)
15172    ac_status=$?
15173    cat out/conftest.err >&5
15174    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15176    then
15177      # The compiler can only warn and ignore the option if not recognized
15178      # So say no if there are warnings
15179      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15180      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15181      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15182        lt_cv_prog_compiler_c_o_CXX=yes
15183      fi
15184    fi
15185    chmod u+w . 2>&5
15186    $RM conftest*
15187    # SGI C++ compiler will create directory out/ii_files/ for
15188    # template instantiation
15189    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15190    $RM out/* && rmdir out
15191    cd ..
15192    $RM -r conftest
15193    $RM conftest*
15194
15195 fi
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15197 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15198
15199
15200
15201
15202 hard_links="nottested"
15203 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15204   # do not overwrite the value of need_locks provided by the user
15205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15206 $as_echo_n "checking if we can lock with hard links... " >&6; }
15207   hard_links=yes
15208   $RM conftest*
15209   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15210   touch conftest.a
15211   ln conftest.a conftest.b 2>&5 || hard_links=no
15212   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15214 $as_echo "$hard_links" >&6; }
15215   if test "$hard_links" = no; then
15216     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15217 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15218     need_locks=warn
15219   fi
15220 else
15221   need_locks=no
15222 fi
15223
15224
15225
15226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15227 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15228
15229   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15230   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15231   case $host_os in
15232   aix[4-9]*)
15233     # If we're using GNU nm, then we don't want the "-C" option.
15234     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15235     # Also, AIX nm treats weak defined symbols like other global defined
15236     # symbols, whereas GNU nm marks them as "W".
15237     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15238       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'
15239     else
15240       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'
15241     fi
15242     ;;
15243   pw32*)
15244     export_symbols_cmds_CXX="$ltdll_cmds"
15245     ;;
15246   cygwin* | mingw* | cegcc*)
15247     case $cc_basename in
15248     cl*)
15249       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15250       ;;
15251     *)
15252       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'
15253       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15254       ;;
15255     esac
15256     ;;
15257   linux* | k*bsd*-gnu | gnu*)
15258     link_all_deplibs_CXX=no
15259     ;;
15260   *)
15261     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15262     ;;
15263   esac
15264
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15266 $as_echo "$ld_shlibs_CXX" >&6; }
15267 test "$ld_shlibs_CXX" = no && can_build_shared=no
15268
15269 with_gnu_ld_CXX=$with_gnu_ld
15270
15271
15272
15273
15274
15275
15276 #
15277 # Do we need to explicitly link libc?
15278 #
15279 case "x$archive_cmds_need_lc_CXX" in
15280 x|xyes)
15281   # Assume -lc should be added
15282   archive_cmds_need_lc_CXX=yes
15283
15284   if test "$enable_shared" = yes && test "$GCC" = yes; then
15285     case $archive_cmds_CXX in
15286     *'~'*)
15287       # FIXME: we may have to deal with multi-command sequences.
15288       ;;
15289     '$CC '*)
15290       # Test whether the compiler implicitly links with -lc since on some
15291       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15292       # to ld, don't add -lc before -lgcc.
15293       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15294 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15295 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15296   $as_echo_n "(cached) " >&6
15297 else
15298   $RM conftest*
15299         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15300
15301         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15302   (eval $ac_compile) 2>&5
15303   ac_status=$?
15304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15305   test $ac_status = 0; } 2>conftest.err; then
15306           soname=conftest
15307           lib=conftest
15308           libobjs=conftest.$ac_objext
15309           deplibs=
15310           wl=$lt_prog_compiler_wl_CXX
15311           pic_flag=$lt_prog_compiler_pic_CXX
15312           compiler_flags=-v
15313           linker_flags=-v
15314           verstring=
15315           output_objdir=.
15316           libname=conftest
15317           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15318           allow_undefined_flag_CXX=
15319           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15320   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15321   ac_status=$?
15322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15323   test $ac_status = 0; }
15324           then
15325             lt_cv_archive_cmds_need_lc_CXX=no
15326           else
15327             lt_cv_archive_cmds_need_lc_CXX=yes
15328           fi
15329           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15330         else
15331           cat conftest.err 1>&5
15332         fi
15333         $RM conftest*
15334
15335 fi
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15337 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15338       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15339       ;;
15340     esac
15341   fi
15342   ;;
15343 esac
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15407 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15408
15409 library_names_spec=
15410 libname_spec='lib$name'
15411 soname_spec=
15412 shrext_cmds=".so"
15413 postinstall_cmds=
15414 postuninstall_cmds=
15415 finish_cmds=
15416 finish_eval=
15417 shlibpath_var=
15418 shlibpath_overrides_runpath=unknown
15419 version_type=none
15420 dynamic_linker="$host_os ld.so"
15421 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15422 need_lib_prefix=unknown
15423 hardcode_into_libs=no
15424
15425 # when you set need_version to no, make sure it does not cause -set_version
15426 # flags to be left without arguments
15427 need_version=unknown
15428
15429 case $host_os in
15430 aix3*)
15431   version_type=linux # correct to gnu/linux during the next big refactor
15432   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15433   shlibpath_var=LIBPATH
15434
15435   # AIX 3 has no versioning support, so we append a major version to the name.
15436   soname_spec='${libname}${release}${shared_ext}$major'
15437   ;;
15438
15439 aix[4-9]*)
15440   version_type=linux # correct to gnu/linux during the next big refactor
15441   need_lib_prefix=no
15442   need_version=no
15443   hardcode_into_libs=yes
15444   if test "$host_cpu" = ia64; then
15445     # AIX 5 supports IA64
15446     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15447     shlibpath_var=LD_LIBRARY_PATH
15448   else
15449     # With GCC up to 2.95.x, collect2 would create an import file
15450     # for dependence libraries.  The import file would start with
15451     # the line `#! .'.  This would cause the generated library to
15452     # depend on `.', always an invalid library.  This was fixed in
15453     # development snapshots of GCC prior to 3.0.
15454     case $host_os in
15455       aix4 | aix4.[01] | aix4.[01].*)
15456       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15457            echo ' yes '
15458            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15459         :
15460       else
15461         can_build_shared=no
15462       fi
15463       ;;
15464     esac
15465     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15466     # soname into executable. Probably we can add versioning support to
15467     # collect2, so additional links can be useful in future.
15468     if test "$aix_use_runtimelinking" = yes; then
15469       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15470       # instead of lib<name>.a to let people know that these are not
15471       # typical AIX shared libraries.
15472       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15473     else
15474       # We preserve .a as extension for shared libraries through AIX4.2
15475       # and later when we are not doing run time linking.
15476       library_names_spec='${libname}${release}.a $libname.a'
15477       soname_spec='${libname}${release}${shared_ext}$major'
15478     fi
15479     shlibpath_var=LIBPATH
15480   fi
15481   ;;
15482
15483 amigaos*)
15484   case $host_cpu in
15485   powerpc)
15486     # Since July 2007 AmigaOS4 officially supports .so libraries.
15487     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15488     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15489     ;;
15490   m68k)
15491     library_names_spec='$libname.ixlibrary $libname.a'
15492     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15493     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'
15494     ;;
15495   esac
15496   ;;
15497
15498 beos*)
15499   library_names_spec='${libname}${shared_ext}'
15500   dynamic_linker="$host_os ld.so"
15501   shlibpath_var=LIBRARY_PATH
15502   ;;
15503
15504 bsdi[45]*)
15505   version_type=linux # correct to gnu/linux during the next big refactor
15506   need_version=no
15507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15508   soname_spec='${libname}${release}${shared_ext}$major'
15509   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15510   shlibpath_var=LD_LIBRARY_PATH
15511   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15512   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15513   # the default ld.so.conf also contains /usr/contrib/lib and
15514   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15515   # libtool to hard-code these into programs
15516   ;;
15517
15518 cygwin* | mingw* | pw32* | cegcc*)
15519   version_type=windows
15520   shrext_cmds=".dll"
15521   need_version=no
15522   need_lib_prefix=no
15523
15524   case $GCC,$cc_basename in
15525   yes,*)
15526     # gcc
15527     library_names_spec='$libname.dll.a'
15528     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15529     postinstall_cmds='base_file=`basename \${file}`~
15530       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15531       dldir=$destdir/`dirname \$dlpath`~
15532       test -d \$dldir || mkdir -p \$dldir~
15533       $install_prog $dir/$dlname \$dldir/$dlname~
15534       chmod a+x \$dldir/$dlname~
15535       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15536         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15537       fi'
15538     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15539       dlpath=$dir/\$dldll~
15540        $RM \$dlpath'
15541     shlibpath_overrides_runpath=yes
15542
15543     case $host_os in
15544     cygwin*)
15545       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15546       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15547
15548       ;;
15549     mingw* | cegcc*)
15550       # MinGW DLLs use traditional 'lib' prefix
15551       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15552       ;;
15553     pw32*)
15554       # pw32 DLLs use 'pw' prefix rather than 'lib'
15555       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15556       ;;
15557     esac
15558     dynamic_linker='Win32 ld.exe'
15559     ;;
15560
15561   *,cl*)
15562     # Native MSVC
15563     libname_spec='$name'
15564     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15565     library_names_spec='${libname}.dll.lib'
15566
15567     case $build_os in
15568     mingw*)
15569       sys_lib_search_path_spec=
15570       lt_save_ifs=$IFS
15571       IFS=';'
15572       for lt_path in $LIB
15573       do
15574         IFS=$lt_save_ifs
15575         # Let DOS variable expansion print the short 8.3 style file name.
15576         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15577         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15578       done
15579       IFS=$lt_save_ifs
15580       # Convert to MSYS style.
15581       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15582       ;;
15583     cygwin*)
15584       # Convert to unix form, then to dos form, then back to unix form
15585       # but this time dos style (no spaces!) so that the unix form looks
15586       # like /cygdrive/c/PROGRA~1:/cygdr...
15587       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15588       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15589       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15590       ;;
15591     *)
15592       sys_lib_search_path_spec="$LIB"
15593       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15594         # It is most probably a Windows format PATH.
15595         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15596       else
15597         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15598       fi
15599       # FIXME: find the short name or the path components, as spaces are
15600       # common. (e.g. "Program Files" -> "PROGRA~1")
15601       ;;
15602     esac
15603
15604     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15605     postinstall_cmds='base_file=`basename \${file}`~
15606       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15607       dldir=$destdir/`dirname \$dlpath`~
15608       test -d \$dldir || mkdir -p \$dldir~
15609       $install_prog $dir/$dlname \$dldir/$dlname'
15610     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15611       dlpath=$dir/\$dldll~
15612        $RM \$dlpath'
15613     shlibpath_overrides_runpath=yes
15614     dynamic_linker='Win32 link.exe'
15615     ;;
15616
15617   *)
15618     # Assume MSVC wrapper
15619     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15620     dynamic_linker='Win32 ld.exe'
15621     ;;
15622   esac
15623   # FIXME: first we should search . and the directory the executable is in
15624   shlibpath_var=PATH
15625   ;;
15626
15627 darwin* | rhapsody*)
15628   dynamic_linker="$host_os dyld"
15629   version_type=darwin
15630   need_lib_prefix=no
15631   need_version=no
15632   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15633   soname_spec='${libname}${release}${major}$shared_ext'
15634   shlibpath_overrides_runpath=yes
15635   shlibpath_var=DYLD_LIBRARY_PATH
15636   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15637
15638   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15639   ;;
15640
15641 dgux*)
15642   version_type=linux # correct to gnu/linux during the next big refactor
15643   need_lib_prefix=no
15644   need_version=no
15645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15646   soname_spec='${libname}${release}${shared_ext}$major'
15647   shlibpath_var=LD_LIBRARY_PATH
15648   ;;
15649
15650 freebsd* | dragonfly*)
15651   # DragonFly does not have aout.  When/if they implement a new
15652   # versioning mechanism, adjust this.
15653   if test -x /usr/bin/objformat; then
15654     objformat=`/usr/bin/objformat`
15655   else
15656     case $host_os in
15657     freebsd[23].*) objformat=aout ;;
15658     *) objformat=elf ;;
15659     esac
15660   fi
15661   version_type=freebsd-$objformat
15662   case $version_type in
15663     freebsd-elf*)
15664       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15665       need_version=no
15666       need_lib_prefix=no
15667       ;;
15668     freebsd-*)
15669       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15670       need_version=yes
15671       ;;
15672   esac
15673   shlibpath_var=LD_LIBRARY_PATH
15674   case $host_os in
15675   freebsd2.*)
15676     shlibpath_overrides_runpath=yes
15677     ;;
15678   freebsd3.[01]* | freebsdelf3.[01]*)
15679     shlibpath_overrides_runpath=yes
15680     hardcode_into_libs=yes
15681     ;;
15682   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15683   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15684     shlibpath_overrides_runpath=no
15685     hardcode_into_libs=yes
15686     ;;
15687   *) # from 4.6 on, and DragonFly
15688     shlibpath_overrides_runpath=yes
15689     hardcode_into_libs=yes
15690     ;;
15691   esac
15692   ;;
15693
15694 haiku*)
15695   version_type=linux # correct to gnu/linux during the next big refactor
15696   need_lib_prefix=no
15697   need_version=no
15698   dynamic_linker="$host_os runtime_loader"
15699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15700   soname_spec='${libname}${release}${shared_ext}$major'
15701   shlibpath_var=LIBRARY_PATH
15702   shlibpath_overrides_runpath=yes
15703   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15704   hardcode_into_libs=yes
15705   ;;
15706
15707 hpux9* | hpux10* | hpux11*)
15708   # Give a soname corresponding to the major version so that dld.sl refuses to
15709   # link against other versions.
15710   version_type=sunos
15711   need_lib_prefix=no
15712   need_version=no
15713   case $host_cpu in
15714   ia64*)
15715     shrext_cmds='.so'
15716     hardcode_into_libs=yes
15717     dynamic_linker="$host_os dld.so"
15718     shlibpath_var=LD_LIBRARY_PATH
15719     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15720     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721     soname_spec='${libname}${release}${shared_ext}$major'
15722     if test "X$HPUX_IA64_MODE" = X32; then
15723       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15724     else
15725       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15726     fi
15727     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15728     ;;
15729   hppa*64*)
15730     shrext_cmds='.sl'
15731     hardcode_into_libs=yes
15732     dynamic_linker="$host_os dld.sl"
15733     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15734     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15735     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15736     soname_spec='${libname}${release}${shared_ext}$major'
15737     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15738     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15739     ;;
15740   *)
15741     shrext_cmds='.sl'
15742     dynamic_linker="$host_os dld.sl"
15743     shlibpath_var=SHLIB_PATH
15744     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15745     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15746     soname_spec='${libname}${release}${shared_ext}$major'
15747     ;;
15748   esac
15749   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15750   postinstall_cmds='chmod 555 $lib'
15751   # or fails outright, so override atomically:
15752   install_override_mode=555
15753   ;;
15754
15755 interix[3-9]*)
15756   version_type=linux # correct to gnu/linux during the next big refactor
15757   need_lib_prefix=no
15758   need_version=no
15759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15760   soname_spec='${libname}${release}${shared_ext}$major'
15761   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15762   shlibpath_var=LD_LIBRARY_PATH
15763   shlibpath_overrides_runpath=no
15764   hardcode_into_libs=yes
15765   ;;
15766
15767 irix5* | irix6* | nonstopux*)
15768   case $host_os in
15769     nonstopux*) version_type=nonstopux ;;
15770     *)
15771         if test "$lt_cv_prog_gnu_ld" = yes; then
15772                 version_type=linux # correct to gnu/linux during the next big refactor
15773         else
15774                 version_type=irix
15775         fi ;;
15776   esac
15777   need_lib_prefix=no
15778   need_version=no
15779   soname_spec='${libname}${release}${shared_ext}$major'
15780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15781   case $host_os in
15782   irix5* | nonstopux*)
15783     libsuff= shlibsuff=
15784     ;;
15785   *)
15786     case $LD in # libtool.m4 will add one of these switches to LD
15787     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15788       libsuff= shlibsuff= libmagic=32-bit;;
15789     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15790       libsuff=32 shlibsuff=N32 libmagic=N32;;
15791     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15792       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15793     *) libsuff= shlibsuff= libmagic=never-match;;
15794     esac
15795     ;;
15796   esac
15797   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15798   shlibpath_overrides_runpath=no
15799   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15800   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15801   hardcode_into_libs=yes
15802   ;;
15803
15804 # No shared lib support for Linux oldld, aout, or coff.
15805 linux*oldld* | linux*aout* | linux*coff*)
15806   dynamic_linker=no
15807   ;;
15808
15809 # This must be glibc/ELF.
15810 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15811   version_type=linux # correct to gnu/linux during the next big refactor
15812   need_lib_prefix=no
15813   need_version=no
15814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15815   soname_spec='${libname}${release}${shared_ext}$major'
15816   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15817   shlibpath_var=LD_LIBRARY_PATH
15818   shlibpath_overrides_runpath=no
15819
15820   # Some binutils ld are patched to set DT_RUNPATH
15821   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15822   $as_echo_n "(cached) " >&6
15823 else
15824   lt_cv_shlibpath_overrides_runpath=no
15825     save_LDFLAGS=$LDFLAGS
15826     save_libdir=$libdir
15827     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15828          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15829     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15830 /* end confdefs.h.  */
15831
15832 int
15833 main ()
15834 {
15835
15836   ;
15837   return 0;
15838 }
15839 _ACEOF
15840 if ac_fn_cxx_try_link "$LINENO"; then :
15841   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15842   lt_cv_shlibpath_overrides_runpath=yes
15843 fi
15844 fi
15845 rm -f core conftest.err conftest.$ac_objext \
15846     conftest$ac_exeext conftest.$ac_ext
15847     LDFLAGS=$save_LDFLAGS
15848     libdir=$save_libdir
15849
15850 fi
15851
15852   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15853
15854   # This implies no fast_install, which is unacceptable.
15855   # Some rework will be needed to allow for fast_install
15856   # before this can be enabled.
15857   hardcode_into_libs=yes
15858
15859   # Append ld.so.conf contents to the search path
15860   if test -f /etc/ld.so.conf; then
15861     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' ' '`
15862     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15863   fi
15864
15865   # We used to test for /lib/ld.so.1 and disable shared libraries on
15866   # powerpc, because MkLinux only supported shared libraries with the
15867   # GNU dynamic linker.  Since this was broken with cross compilers,
15868   # most powerpc-linux boxes support dynamic linking these days and
15869   # people can always --disable-shared, the test was removed, and we
15870   # assume the GNU/Linux dynamic linker is in use.
15871   dynamic_linker='GNU/Linux ld.so'
15872   ;;
15873
15874 netbsdelf*-gnu)
15875   version_type=linux
15876   need_lib_prefix=no
15877   need_version=no
15878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15879   soname_spec='${libname}${release}${shared_ext}$major'
15880   shlibpath_var=LD_LIBRARY_PATH
15881   shlibpath_overrides_runpath=no
15882   hardcode_into_libs=yes
15883   dynamic_linker='NetBSD ld.elf_so'
15884   ;;
15885
15886 netbsd*)
15887   version_type=sunos
15888   need_lib_prefix=no
15889   need_version=no
15890   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15891     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15892     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15893     dynamic_linker='NetBSD (a.out) ld.so'
15894   else
15895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15896     soname_spec='${libname}${release}${shared_ext}$major'
15897     dynamic_linker='NetBSD ld.elf_so'
15898   fi
15899   shlibpath_var=LD_LIBRARY_PATH
15900   shlibpath_overrides_runpath=yes
15901   hardcode_into_libs=yes
15902   ;;
15903
15904 newsos6)
15905   version_type=linux # correct to gnu/linux during the next big refactor
15906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15907   shlibpath_var=LD_LIBRARY_PATH
15908   shlibpath_overrides_runpath=yes
15909   ;;
15910
15911 *nto* | *qnx*)
15912   version_type=qnx
15913   need_lib_prefix=no
15914   need_version=no
15915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15916   soname_spec='${libname}${release}${shared_ext}$major'
15917   shlibpath_var=LD_LIBRARY_PATH
15918   shlibpath_overrides_runpath=no
15919   hardcode_into_libs=yes
15920   dynamic_linker='ldqnx.so'
15921   ;;
15922
15923 openbsd*)
15924   version_type=sunos
15925   sys_lib_dlsearch_path_spec="/usr/lib"
15926   need_lib_prefix=no
15927   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15928   case $host_os in
15929     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15930     *)                          need_version=no  ;;
15931   esac
15932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15933   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15934   shlibpath_var=LD_LIBRARY_PATH
15935   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15936     case $host_os in
15937       openbsd2.[89] | openbsd2.[89].*)
15938         shlibpath_overrides_runpath=no
15939         ;;
15940       *)
15941         shlibpath_overrides_runpath=yes
15942         ;;
15943       esac
15944   else
15945     shlibpath_overrides_runpath=yes
15946   fi
15947   ;;
15948
15949 os2*)
15950   libname_spec='$name'
15951   shrext_cmds=".dll"
15952   need_lib_prefix=no
15953   library_names_spec='$libname${shared_ext} $libname.a'
15954   dynamic_linker='OS/2 ld.exe'
15955   shlibpath_var=LIBPATH
15956   ;;
15957
15958 osf3* | osf4* | osf5*)
15959   version_type=osf
15960   need_lib_prefix=no
15961   need_version=no
15962   soname_spec='${libname}${release}${shared_ext}$major'
15963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15964   shlibpath_var=LD_LIBRARY_PATH
15965   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15966   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15967   ;;
15968
15969 rdos*)
15970   dynamic_linker=no
15971   ;;
15972
15973 solaris*)
15974   version_type=linux # correct to gnu/linux during the next big refactor
15975   need_lib_prefix=no
15976   need_version=no
15977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15978   soname_spec='${libname}${release}${shared_ext}$major'
15979   shlibpath_var=LD_LIBRARY_PATH
15980   shlibpath_overrides_runpath=yes
15981   hardcode_into_libs=yes
15982   # ldd complains unless libraries are executable
15983   postinstall_cmds='chmod +x $lib'
15984   ;;
15985
15986 sunos4*)
15987   version_type=sunos
15988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15989   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15990   shlibpath_var=LD_LIBRARY_PATH
15991   shlibpath_overrides_runpath=yes
15992   if test "$with_gnu_ld" = yes; then
15993     need_lib_prefix=no
15994   fi
15995   need_version=yes
15996   ;;
15997
15998 sysv4 | sysv4.3*)
15999   version_type=linux # correct to gnu/linux during the next big refactor
16000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16001   soname_spec='${libname}${release}${shared_ext}$major'
16002   shlibpath_var=LD_LIBRARY_PATH
16003   case $host_vendor in
16004     sni)
16005       shlibpath_overrides_runpath=no
16006       need_lib_prefix=no
16007       runpath_var=LD_RUN_PATH
16008       ;;
16009     siemens)
16010       need_lib_prefix=no
16011       ;;
16012     motorola)
16013       need_lib_prefix=no
16014       need_version=no
16015       shlibpath_overrides_runpath=no
16016       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16017       ;;
16018   esac
16019   ;;
16020
16021 sysv4*MP*)
16022   if test -d /usr/nec ;then
16023     version_type=linux # correct to gnu/linux during the next big refactor
16024     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16025     soname_spec='$libname${shared_ext}.$major'
16026     shlibpath_var=LD_LIBRARY_PATH
16027   fi
16028   ;;
16029
16030 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16031   version_type=freebsd-elf
16032   need_lib_prefix=no
16033   need_version=no
16034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16035   soname_spec='${libname}${release}${shared_ext}$major'
16036   shlibpath_var=LD_LIBRARY_PATH
16037   shlibpath_overrides_runpath=yes
16038   hardcode_into_libs=yes
16039   if test "$with_gnu_ld" = yes; then
16040     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16041   else
16042     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16043     case $host_os in
16044       sco3.2v5*)
16045         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16046         ;;
16047     esac
16048   fi
16049   sys_lib_dlsearch_path_spec='/usr/lib'
16050   ;;
16051
16052 tpf*)
16053   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16054   version_type=linux # correct to gnu/linux during the next big refactor
16055   need_lib_prefix=no
16056   need_version=no
16057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16058   shlibpath_var=LD_LIBRARY_PATH
16059   shlibpath_overrides_runpath=no
16060   hardcode_into_libs=yes
16061   ;;
16062
16063 uts4*)
16064   version_type=linux # correct to gnu/linux during the next big refactor
16065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16066   soname_spec='${libname}${release}${shared_ext}$major'
16067   shlibpath_var=LD_LIBRARY_PATH
16068   ;;
16069
16070 *)
16071   dynamic_linker=no
16072   ;;
16073 esac
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16075 $as_echo "$dynamic_linker" >&6; }
16076 test "$dynamic_linker" = no && can_build_shared=no
16077
16078 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16079 if test "$GCC" = yes; then
16080   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16081 fi
16082
16083 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16084   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16085 fi
16086 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16087   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16088 fi
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16128 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16129 hardcode_action_CXX=
16130 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16131    test -n "$runpath_var_CXX" ||
16132    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16133
16134   # We can hardcode non-existent directories.
16135   if test "$hardcode_direct_CXX" != no &&
16136      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16137      # have to relink, otherwise we might link with an installed library
16138      # when we should be linking with a yet-to-be-installed one
16139      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16140      test "$hardcode_minus_L_CXX" != no; then
16141     # Linking always hardcodes the temporary library directory.
16142     hardcode_action_CXX=relink
16143   else
16144     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16145     hardcode_action_CXX=immediate
16146   fi
16147 else
16148   # We cannot hardcode anything, or else we can only hardcode existing
16149   # directories.
16150   hardcode_action_CXX=unsupported
16151 fi
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16153 $as_echo "$hardcode_action_CXX" >&6; }
16154
16155 if test "$hardcode_action_CXX" = relink ||
16156    test "$inherit_rpath_CXX" = yes; then
16157   # Fast installation is not supported
16158   enable_fast_install=no
16159 elif test "$shlibpath_overrides_runpath" = yes ||
16160      test "$enable_shared" = no; then
16161   # Fast installation is not necessary
16162   enable_fast_install=needless
16163 fi
16164
16165
16166
16167
16168
16169
16170
16171   fi # test -n "$compiler"
16172
16173   CC=$lt_save_CC
16174   CFLAGS=$lt_save_CFLAGS
16175   LDCXX=$LD
16176   LD=$lt_save_LD
16177   GCC=$lt_save_GCC
16178   with_gnu_ld=$lt_save_with_gnu_ld
16179   lt_cv_path_LDCXX=$lt_cv_path_LD
16180   lt_cv_path_LD=$lt_save_path_LD
16181   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16182   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16183 fi # test "$_lt_caught_CXX_error" != yes
16184
16185 ac_ext=c
16186 ac_cpp='$CPP $CPPFLAGS'
16187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16190
16191
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16193 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16194 set x ${MAKE-make}
16195 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16196 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16197   $as_echo_n "(cached) " >&6
16198 else
16199   cat >conftest.make <<\_ACEOF
16200 SHELL = /bin/sh
16201 all:
16202         @echo '@@@%%%=$(MAKE)=@@@%%%'
16203 _ACEOF
16204 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16205 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16206   *@@@%%%=?*=@@@%%%*)
16207     eval ac_cv_prog_make_${ac_make}_set=yes;;
16208   *)
16209     eval ac_cv_prog_make_${ac_make}_set=no;;
16210 esac
16211 rm -f conftest.make
16212 fi
16213 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16215 $as_echo "yes" >&6; }
16216   SET_MAKE=
16217 else
16218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16219 $as_echo "no" >&6; }
16220   SET_MAKE="MAKE=${MAKE-make}"
16221 fi
16222
16223
16224 # Boost headers: boost/foreach.hpp is needed (1.33/Debian Etch
16225 # doesn't have it, 1.34/Ubuntu 8.10 Hardy does). 1.35 is available
16226 # as Debian Etch backport.
16227
16228
16229 # Check whether --with-boost was given.
16230 if test "${with_boost+set}" = set; then :
16231   withval=$with_boost;
16232     if test "$withval" = "no"; then
16233         want_boost="no"
16234     elif test "$withval" = "yes"; then
16235         want_boost="yes"
16236         ac_boost_path=""
16237     else
16238         want_boost="yes"
16239         ac_boost_path="$withval"
16240     fi
16241
16242 else
16243   want_boost="yes"
16244 fi
16245
16246
16247
16248
16249 # Check whether --with-boost-libdir was given.
16250 if test "${with_boost_libdir+set}" = set; then :
16251   withval=$with_boost_libdir;
16252         if test -d "$withval"
16253         then
16254                 ac_boost_lib_path="$withval"
16255         else
16256                 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
16257         fi
16258
16259 else
16260   ac_boost_lib_path=""
16261
16262 fi
16263
16264
16265 if test "x$want_boost" = "xyes"; then
16266     boost_lib_version_req=1.34
16267     boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
16268     boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
16269     boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
16270     boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
16271     if test "x$boost_lib_version_req_sub_minor" = "x" ; then
16272         boost_lib_version_req_sub_minor="0"
16273         fi
16274     WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
16275     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
16276 $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
16277     succeeded=no
16278
16279                         libsubdirs="lib"
16280     ax_arch=`uname -m`
16281     if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
16282         libsubdirs="lib64 lib lib64"
16283     fi
16284
16285                 if test "$ac_boost_path" != ""; then
16286         BOOST_CPPFLAGS="-I$ac_boost_path/include"
16287         for ac_boost_path_tmp in $libsubdirs; do
16288                 if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
16289                         BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
16290                         break
16291                 fi
16292         done
16293     elif test "$cross_compiling" != yes; then
16294         for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
16295             if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
16296                 for libsubdir in $libsubdirs ; do
16297                     if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
16298                 done
16299                 BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
16300                 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
16301                 break;
16302             fi
16303         done
16304     fi
16305
16306             if test "$ac_boost_lib_path" != ""; then
16307        BOOST_LDFLAGS="-L$ac_boost_lib_path"
16308     fi
16309
16310     CPPFLAGS_SAVED="$CPPFLAGS"
16311     CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16312     export CPPFLAGS
16313
16314     LDFLAGS_SAVED="$LDFLAGS"
16315     LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
16316     export LDFLAGS
16317
16318
16319     ac_ext=cpp
16320 ac_cpp='$CXXCPP $CPPFLAGS'
16321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16324
16325         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326 /* end confdefs.h.  */
16327
16328     #include <boost/version.hpp>
16329
16330 int
16331 main ()
16332 {
16333
16334     #if BOOST_VERSION >= $WANT_BOOST_VERSION
16335     // Everything is okay
16336     #else
16337     #  error Boost version is too old
16338     #endif
16339
16340   ;
16341   return 0;
16342 }
16343 _ACEOF
16344 if ac_fn_cxx_try_compile "$LINENO"; then :
16345
16346         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16347 $as_echo "yes" >&6; }
16348     succeeded=yes
16349     found_system=yes
16350
16351 fi
16352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16353     ac_ext=c
16354 ac_cpp='$CPP $CPPFLAGS'
16355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16358
16359
16360
16361
16362             if test "x$succeeded" != "xyes"; then
16363         _version=0
16364         if test "$ac_boost_path" != ""; then
16365             if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
16366                 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
16367                     _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
16368                     V_CHECK=`expr $_version_tmp \> $_version`
16369                     if test "$V_CHECK" = "1" ; then
16370                         _version=$_version_tmp
16371                     fi
16372                     VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
16373                     BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
16374                 done
16375             fi
16376         else
16377             if test "$cross_compiling" != yes; then
16378                 for ac_boost_path in /usr /usr/local /opt /opt/local ; do
16379                     if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
16380                         for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
16381                             _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
16382                             V_CHECK=`expr $_version_tmp \> $_version`
16383                             if test "$V_CHECK" = "1" ; then
16384                                 _version=$_version_tmp
16385                                 best_path=$ac_boost_path
16386                             fi
16387                         done
16388                     fi
16389                 done
16390
16391                 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
16392                 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
16393                 if test "$ac_boost_lib_path" = ""; then
16394                     for libsubdir in $libsubdirs ; do
16395                         if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
16396                     done
16397                     BOOST_LDFLAGS="-L$best_path/$libsubdir"
16398                 fi
16399             fi
16400
16401             if test "x$BOOST_ROOT" != "x"; then
16402                 for libsubdir in $libsubdirs ; do
16403                     if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
16404                 done
16405                 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
16406                     version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
16407                     stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
16408                         stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
16409                     V_CHECK=`expr $stage_version_shorten \>\= $_version`
16410                     if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
16411                         { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
16412 $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
16413                         BOOST_CPPFLAGS="-I$BOOST_ROOT"
16414                         BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
16415                     fi
16416                 fi
16417             fi
16418         fi
16419
16420         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16421         export CPPFLAGS
16422         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
16423         export LDFLAGS
16424
16425         ac_ext=cpp
16426 ac_cpp='$CXXCPP $CPPFLAGS'
16427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16430
16431             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432 /* end confdefs.h.  */
16433
16434         #include <boost/version.hpp>
16435
16436 int
16437 main ()
16438 {
16439
16440         #if BOOST_VERSION >= $WANT_BOOST_VERSION
16441         // Everything is okay
16442         #else
16443         #  error Boost version is too old
16444         #endif
16445
16446   ;
16447   return 0;
16448 }
16449 _ACEOF
16450 if ac_fn_cxx_try_compile "$LINENO"; then :
16451
16452             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16453 $as_echo "yes" >&6; }
16454         succeeded=yes
16455         found_system=yes
16456
16457 fi
16458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16459         ac_ext=c
16460 ac_cpp='$CPP $CPPFLAGS'
16461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16464
16465     fi
16466
16467     if test "$succeeded" != "yes" ; then
16468         if test "$_version" = "0" ; then
16469             { $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
16470 $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;}
16471         else
16472             { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
16473 $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
16474         fi
16475         # execute ACTION-IF-NOT-FOUND (if present):
16476         :
16477     else
16478
16479
16480
16481 $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
16482
16483         # execute ACTION-IF-FOUND (if present):
16484         :
16485     fi
16486
16487     CPPFLAGS="$CPPFLAGS_SAVED"
16488     LDFLAGS="$LDFLAGS_SAVED"
16489 fi
16490
16491
16492
16493 # TODO: Fix code to pass with -pedantic -Wextra.
16494 # -Wno-unknown-pragmas needed because icalstrdup.h
16495 # currently uses the "#pragma }" trick. Should remove that.
16496 # Fix code to work without deprecated methods: G GDK GDK_PIXBUF CAIRO PANGO GTK
16497 # Check whether --enable-warnings was given.
16498 if test "${enable_warnings+set}" = set; then :
16499   enableval=$enable_warnings; dk_enable_warnings=$enableval
16500 else
16501   dk_enable_warnings=min
16502 fi
16503
16504 dk_lang=
16505 case $ac_compile in
16506   *'$CXXFLAGS '*)
16507     dk_lang='C++'
16508     dk_cc=$CXX
16509     dk_conftest=conftest.${ac_ext-cc}
16510     ;;
16511   *'$CFLAGS '*)
16512     dk_lang=C
16513     dk_cc=$CC
16514     dk_conftest=conftest.${ac_ext-c}
16515     ;;
16516 esac
16517
16518 if test "x$dk_lang" != x; then :
16519
16520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which $dk_lang compiler warning flags to use" >&5
16521 $as_echo_n "checking which $dk_lang compiler warning flags to use... " >&6; }
16522
16523   case $dk_enable_warnings in
16524     no) dk_warning_flags=;;
16525     max) dk_warning_flags="-Wall -Wno-unknown-pragmas -Wno-deprecated-declarations";;
16526     fatal) dk_warning_flags="-Wall -Wno-unknown-pragmas -Wno-deprecated-declarations -Werror";;
16527     *) dk_warning_flags="-Wall -Wno-unknown-pragmas -Wno-deprecated-declarations";;
16528   esac
16529
16530   dk_deprecation_flags=
16531   dk_tested_flags=
16532
16533   if test "x$dk_warning_flags" != x; then :
16534
16535     # Keep in mind that the dummy source must be devoid of any
16536     # problems that might cause diagnostics.
16537     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16538 /* end confdefs.h.  */
16539 int main(int argc, char** argv) { return (argv != 0) ? argc : 0; }
16540 _ACEOF
16541
16542     for dk_flag in $dk_warning_flags
16543     do
16544       # Test whether the compiler accepts the flag. GCC doesn't bail
16545       # out when given an unsupported flag but prints a warning, so
16546       # check the compiler output instead.
16547       dk_cc_out=`$dk_cc $dk_tested_flags $dk_flag -c "$dk_conftest" 2>&1 || echo failed`
16548       rm -f "conftest.${OBJEXT-o}"
16549
16550       if test "x$dk_cc_out" = x; then :
16551
16552         if test "x$dk_tested_flags" = x; then :
16553   dk_tested_flags=$dk_flag
16554 else
16555   dk_tested_flags="$dk_tested_flags $dk_flag"
16556 fi
16557
16558 else
16559
16560         echo "$dk_cc_out" >&5
16561
16562 fi
16563     done
16564
16565     rm -f "$dk_conftest"
16566
16567 fi
16568   dk_all_flags=$dk_deprecation_flags$dk_tested_flags
16569   SYNCEVO_WFLAGS=$dk_all_flags
16570
16571
16572   test "x$dk_all_flags" != x || dk_all_flags=none
16573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dk_all_flags" >&5
16574 $as_echo "$dk_all_flags" >&6; }
16575
16576 fi
16577
16578
16579 DEVICE_TYPE=workstation
16580
16581
16582 # Check whether --with-synthesis-src was given.
16583 if test "${with_synthesis_src+set}" = set; then :
16584   withval=$with_synthesis_src; SYNTHESISSRC="$withval"
16585              test "$SYNTHESISSRC" != "yes" || as_fn_error $? "--with-synthesis-src requires a parameter (base directory, svn URL or git URL)" "$LINENO" 5
16586 else
16587   SYNTHESISSRC="$SYNTHESISSRC_DEF"; REVISION="syncevolution-0.9"
16588 fi
16589
16590
16591
16592 # Check whether --with-syncml-engines was given.
16593 if test "${with_syncml_engines+set}" = set; then :
16594   withval=$with_syncml_engines; SYNCML_ENGINES="$withval"
16595 else
16596   SYNCML_ENGINES=both
16597 fi
16598
16599
16600 case $SYNCML_ENGINES in both|client)
16601 $as_echo "#define ENABLE_SYNCML_CLIENT 1" >>confdefs.h
16602 ;; esac
16603 case $SYNCML_ENGINES in both|server)
16604 $as_echo "#define ENABLE_SYNCML_SERVER 1" >>confdefs.h
16605 ;; esac
16606 case $SYNCML_ENGINES in both|server|client) true;; *) as_fn_error $? "Invalid value for --with-syncml-engines: $SYNCML_ENGINES" "$LINENO" 5;; esac
16607
16608
16609 # Check whether --with-synthesis-username was given.
16610 if test "${with_synthesis_username+set}" = set; then :
16611   withval=$with_synthesis_username; USERNAME="$withval"
16612 else
16613   USERNAME="guest"
16614 fi
16615
16616
16617
16618 # Check whether --with-synthesis-revision was given.
16619 if test "${with_synthesis_revision+set}" = set; then :
16620   withval=$with_synthesis_revision; REVISION="$withval"
16621 fi
16622
16623
16624 # Check whether --enable-shared was given.
16625 if test "${enable_shared+set}" = set; then :
16626   enableval=$enable_shared; enable_shared="$enableval"
16627 else
16628   enable_shared="no"
16629 fi
16630
16631
16632 # Check whether --enable-static was given.
16633 if test "${enable_static+set}" = set; then :
16634   enableval=$enable_static; enable_static="$enableval"
16635 else
16636   enable_static="no"
16637 fi
16638
16639
16640 # Check whether --enable-unit-tests was given.
16641 if test "${enable_unit_tests+set}" = set; then :
16642   enableval=$enable_unit_tests; enable_unit_tests="$enableval"
16643 else
16644   enable_unit_tests="no"
16645 fi
16646
16647 # Check whether --enable-integration-tests was given.
16648 if test "${enable_integration_tests+set}" = set; then :
16649   enableval=$enable_integration_tests; enable_integration_tests="$enableval"
16650 else
16651   enable_integration_tests="no"
16652 fi
16653
16654
16655 # Check whether --enable-static-cxx was given.
16656 if test "${enable_static_cxx+set}" = set; then :
16657   enableval=$enable_static_cxx; enable_static_cxx="$enableval"
16658 else
16659   enable_static_cxx="no"
16660 fi
16661
16662
16663 # Check whether --enable-evolution-compatibility was given.
16664 if test "${enable_evolution_compatibility+set}" = set; then :
16665   enableval=$enable_evolution_compatibility; enable_evolution_compatibility="$enableval"
16666 else
16667   enable_evolution_compatibility="no"
16668 fi
16669
16670
16671 # Check whether --enable-developer-mode was given.
16672 if test "${enable_developer_mode+set}" = set; then :
16673   enableval=$enable_developer_mode; enable_developer_mode="$enableval"
16674 else
16675   enable_developer_mode="no"
16676 fi
16677
16678
16679 # Maemo hacks:
16680 # - wrap e_book_from_string() to fix invalid parameter
16681 # - don't use UTF-8 encoding in Perl script
16682 # Check whether --enable-maemo was given.
16683 if test "${enable_maemo+set}" = set; then :
16684   enableval=$enable_maemo;
16685 $as_echo "#define ENABLE_MAEMO 1" >>confdefs.h
16686
16687                DEVICE_TYPE=Maemo
16688                MODIFY_SYNCCOMPARE='-e "s/use encoding/#use encoding/;" -e "s/:utf8//;"'
16689 fi
16690
16691
16692
16693 for ac_header in signal.h dlfcn.h
16694 do :
16695   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16696 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16697 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16698   cat >>confdefs.h <<_ACEOF
16699 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16700 _ACEOF
16701
16702 fi
16703
16704 done
16705
16706
16707 # cppunit-config is used even when both unit tests and integration tests are disabled.
16708 # Extract the first word of "cppunit-config", so it can be a program name with args.
16709 set dummy cppunit-config; ac_word=$2
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16711 $as_echo_n "checking for $ac_word... " >&6; }
16712 if ${ac_cv_path_CPPUNIT_CONFIG+:} false; then :
16713   $as_echo_n "(cached) " >&6
16714 else
16715   case $CPPUNIT_CONFIG in
16716   [\\/]* | ?:[\\/]*)
16717   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
16718   ;;
16719   *)
16720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16721 for as_dir in $PATH
16722 do
16723   IFS=$as_save_IFS
16724   test -z "$as_dir" && as_dir=.
16725     for ac_exec_ext in '' $ac_executable_extensions; do
16726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16727     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16729     break 2
16730   fi
16731 done
16732   done
16733 IFS=$as_save_IFS
16734
16735   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
16736   ;;
16737 esac
16738 fi
16739 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
16740 if test -n "$CPPUNIT_CONFIG"; then
16741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
16742 $as_echo "$CPPUNIT_CONFIG" >&6; }
16743 else
16744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16745 $as_echo "no" >&6; }
16746 fi
16747
16748
16749
16750 test "x$CPPUNIT_CONFIG" != 'xno' || as_fn_error $? "\"cppunit-config not found.\"" "$LINENO" 5
16751
16752 # cppunit needed?
16753 #if test "x$enable_unit_tests" = 'xyes' || test "x$enable_integration_tests" = 'xyes'
16754 #then
16755   CPPUNIT_CXXFLAGS=`$CPPUNIT_CONFIG --cflags`
16756   CPPUNIT_LDFLAGS=`$CPPUNIT_CONFIG --libs`
16757 #fi
16758
16759
16760
16761 if test "x$enable_unit_tests" = 'xyes'; then
16762
16763 $as_echo "#define ENABLE_UNIT_TESTS 1" >>confdefs.h
16764
16765 fi
16766 if test "x$enable_integration_tests" = 'xyes'; then
16767
16768 $as_echo "#define ENABLE_INTEGRATION_TESTS 1" >>confdefs.h
16769
16770 fi
16771  if test "$enable_unit_tests" = "yes"; then
16772   ENABLE_UNIT_TESTS_TRUE=
16773   ENABLE_UNIT_TESTS_FALSE='#'
16774 else
16775   ENABLE_UNIT_TESTS_TRUE='#'
16776   ENABLE_UNIT_TESTS_FALSE=
16777 fi
16778
16779  if test "$enable_unit_tests" = "yes" || test "$enable_integration_tests" = "yes" ; then
16780   ENABLE_TESTING_TRUE=
16781   ENABLE_TESTING_FALSE='#'
16782 else
16783   ENABLE_TESTING_TRUE='#'
16784   ENABLE_TESTING_FALSE=
16785 fi
16786
16787
16788 if test $enable_static_cxx = "yes"; then
16789         LIBS="$LIBS -L."
16790         CORE_LDADD_DEP=libstdc++.a
16791 fi
16792
16793
16794 # Check for transport layer.
16795 # Both curl and libsoup can be enabled and disabled explicitly.
16796 # The default is to use libsoup if available, otherwise curl.
16797
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
16799 $as_echo_n "checking for libcurl... " >&6; }
16800 if LIBCURL_LIBS=`sh -c 'curl-config --libs' 2>&5` && \
16801     LIBCURL_CFLAGS=`sh -c 'curl-config --cflags' 2>&5`; then
16802     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16803 $as_echo "yes" >&6; }
16804     have_libcurl="yes"
16805 else
16806     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16807 $as_echo "no" >&6; }
16808     have_libcurl="no"
16809 fi
16810
16811
16812
16813
16814
16815
16816
16817
16818 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16819         if test -n "$ac_tool_prefix"; then
16820   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16821 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16823 $as_echo_n "checking for $ac_word... " >&6; }
16824 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16825   $as_echo_n "(cached) " >&6
16826 else
16827   case $PKG_CONFIG in
16828   [\\/]* | ?:[\\/]*)
16829   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16830   ;;
16831   *)
16832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16833 for as_dir in $PATH
16834 do
16835   IFS=$as_save_IFS
16836   test -z "$as_dir" && as_dir=.
16837     for ac_exec_ext in '' $ac_executable_extensions; do
16838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16839     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16841     break 2
16842   fi
16843 done
16844   done
16845 IFS=$as_save_IFS
16846
16847   ;;
16848 esac
16849 fi
16850 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16851 if test -n "$PKG_CONFIG"; then
16852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16853 $as_echo "$PKG_CONFIG" >&6; }
16854 else
16855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16856 $as_echo "no" >&6; }
16857 fi
16858
16859
16860 fi
16861 if test -z "$ac_cv_path_PKG_CONFIG"; then
16862   ac_pt_PKG_CONFIG=$PKG_CONFIG
16863   # Extract the first word of "pkg-config", so it can be a program name with args.
16864 set dummy pkg-config; ac_word=$2
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16866 $as_echo_n "checking for $ac_word... " >&6; }
16867 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16868   $as_echo_n "(cached) " >&6
16869 else
16870   case $ac_pt_PKG_CONFIG in
16871   [\\/]* | ?:[\\/]*)
16872   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16873   ;;
16874   *)
16875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16876 for as_dir in $PATH
16877 do
16878   IFS=$as_save_IFS
16879   test -z "$as_dir" && as_dir=.
16880     for ac_exec_ext in '' $ac_executable_extensions; do
16881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16882     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16884     break 2
16885   fi
16886 done
16887   done
16888 IFS=$as_save_IFS
16889
16890   ;;
16891 esac
16892 fi
16893 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16894 if test -n "$ac_pt_PKG_CONFIG"; then
16895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16896 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16897 else
16898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16899 $as_echo "no" >&6; }
16900 fi
16901
16902   if test "x$ac_pt_PKG_CONFIG" = x; then
16903     PKG_CONFIG=""
16904   else
16905     case $cross_compiling:$ac_tool_warned in
16906 yes:)
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16909 ac_tool_warned=yes ;;
16910 esac
16911     PKG_CONFIG=$ac_pt_PKG_CONFIG
16912   fi
16913 else
16914   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16915 fi
16916
16917 fi
16918 if test -n "$PKG_CONFIG"; then
16919         _pkg_min_version=0.9.0
16920         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16921 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16922         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16923                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16924 $as_echo "yes" >&6; }
16925         else
16926                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16927 $as_echo "no" >&6; }
16928                 PKG_CONFIG=""
16929         fi
16930 fi
16931
16932 pkg_failed=no
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSOUP" >&5
16934 $as_echo_n "checking for LIBSOUP... " >&6; }
16935
16936 if test -n "$LIBSOUP_CFLAGS"; then
16937     pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
16938  elif test -n "$PKG_CONFIG"; then
16939     if test -n "$PKG_CONFIG" && \
16940     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4\""; } >&5
16941   ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4") 2>&5
16942   ac_status=$?
16943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16944   test $ac_status = 0; }; then
16945   pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-gnome-2.4" 2>/dev/null`
16946                       test "x$?" != "x0" && pkg_failed=yes
16947 else
16948   pkg_failed=yes
16949 fi
16950  else
16951     pkg_failed=untried
16952 fi
16953 if test -n "$LIBSOUP_LIBS"; then
16954     pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
16955  elif test -n "$PKG_CONFIG"; then
16956     if test -n "$PKG_CONFIG" && \
16957     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4\""; } >&5
16958   ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4") 2>&5
16959   ac_status=$?
16960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16961   test $ac_status = 0; }; then
16962   pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-gnome-2.4" 2>/dev/null`
16963                       test "x$?" != "x0" && pkg_failed=yes
16964 else
16965   pkg_failed=yes
16966 fi
16967  else
16968     pkg_failed=untried
16969 fi
16970
16971
16972
16973 if test $pkg_failed = yes; then
16974         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16975 $as_echo "no" >&6; }
16976
16977 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16978         _pkg_short_errors_supported=yes
16979 else
16980         _pkg_short_errors_supported=no
16981 fi
16982         if test $_pkg_short_errors_supported = yes; then
16983                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsoup-gnome-2.4" 2>&1`
16984         else
16985                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsoup-gnome-2.4" 2>&1`
16986         fi
16987         # Put the nasty error message in config.log where it belongs
16988         echo "$LIBSOUP_PKG_ERRORS" >&5
16989
16990
16991 pkg_failed=no
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSOUP" >&5
16993 $as_echo_n "checking for LIBSOUP... " >&6; }
16994
16995 if test -n "$LIBSOUP_CFLAGS"; then
16996     pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
16997  elif test -n "$PKG_CONFIG"; then
16998     if test -n "$PKG_CONFIG" && \
16999     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
17000   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
17001   ac_status=$?
17002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17003   test $ac_status = 0; }; then
17004   pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
17005                       test "x$?" != "x0" && pkg_failed=yes
17006 else
17007   pkg_failed=yes
17008 fi
17009  else
17010     pkg_failed=untried
17011 fi
17012 if test -n "$LIBSOUP_LIBS"; then
17013     pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
17014  elif test -n "$PKG_CONFIG"; then
17015     if test -n "$PKG_CONFIG" && \
17016     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
17017   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
17018   ac_status=$?
17019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17020   test $ac_status = 0; }; then
17021   pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
17022                       test "x$?" != "x0" && pkg_failed=yes
17023 else
17024   pkg_failed=yes
17025 fi
17026  else
17027     pkg_failed=untried
17028 fi
17029
17030
17031
17032 if test $pkg_failed = yes; then
17033         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17034 $as_echo "no" >&6; }
17035
17036 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17037         _pkg_short_errors_supported=yes
17038 else
17039         _pkg_short_errors_supported=no
17040 fi
17041         if test $_pkg_short_errors_supported = yes; then
17042                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsoup-2.4" 2>&1`
17043         else
17044                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsoup-2.4" 2>&1`
17045         fi
17046         # Put the nasty error message in config.log where it belongs
17047         echo "$LIBSOUP_PKG_ERRORS" >&5
17048
17049         have_libsoup="no"
17050 elif test $pkg_failed = untried; then
17051         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17052 $as_echo "no" >&6; }
17053         have_libsoup="no"
17054 else
17055         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
17056         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
17057         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17058 $as_echo "yes" >&6; }
17059         have_libsoup="yes"
17060 fi
17061 elif test $pkg_failed = untried; then
17062         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17063 $as_echo "no" >&6; }
17064
17065 pkg_failed=no
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSOUP" >&5
17067 $as_echo_n "checking for LIBSOUP... " >&6; }
17068
17069 if test -n "$LIBSOUP_CFLAGS"; then
17070     pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
17071  elif test -n "$PKG_CONFIG"; then
17072     if test -n "$PKG_CONFIG" && \
17073     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
17074   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
17075   ac_status=$?
17076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17077   test $ac_status = 0; }; then
17078   pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
17079                       test "x$?" != "x0" && pkg_failed=yes
17080 else
17081   pkg_failed=yes
17082 fi
17083  else
17084     pkg_failed=untried
17085 fi
17086 if test -n "$LIBSOUP_LIBS"; then
17087     pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
17088  elif test -n "$PKG_CONFIG"; then
17089     if test -n "$PKG_CONFIG" && \
17090     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
17091   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
17092   ac_status=$?
17093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17094   test $ac_status = 0; }; then
17095   pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
17096                       test "x$?" != "x0" && pkg_failed=yes
17097 else
17098   pkg_failed=yes
17099 fi
17100  else
17101     pkg_failed=untried
17102 fi
17103
17104
17105
17106 if test $pkg_failed = yes; then
17107         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17108 $as_echo "no" >&6; }
17109
17110 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17111         _pkg_short_errors_supported=yes
17112 else
17113         _pkg_short_errors_supported=no
17114 fi
17115         if test $_pkg_short_errors_supported = yes; then
17116                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsoup-2.4" 2>&1`
17117         else
17118                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsoup-2.4" 2>&1`
17119         fi
17120         # Put the nasty error message in config.log where it belongs
17121         echo "$LIBSOUP_PKG_ERRORS" >&5
17122
17123         have_libsoup="no"
17124 elif test $pkg_failed = untried; then
17125         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17126 $as_echo "no" >&6; }
17127         have_libsoup="no"
17128 else
17129         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
17130         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
17131         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17132 $as_echo "yes" >&6; }
17133         have_libsoup="yes"
17134 fi
17135 else
17136         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
17137         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
17138         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17139 $as_echo "yes" >&6; }
17140         have_libsoup="yes"
17141
17142 $as_echo "#define HAVE_LIBSOUP_SOUP_GNOME_FEATURES_H 1" >>confdefs.h
17143
17144 fi
17145
17146
17147 pkg_failed=no
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENOBEX" >&5
17149 $as_echo_n "checking for LIBOPENOBEX... " >&6; }
17150
17151 if test -n "$LIBOPENOBEX_CFLAGS"; then
17152     pkg_cv_LIBOPENOBEX_CFLAGS="$LIBOPENOBEX_CFLAGS"
17153  elif test -n "$PKG_CONFIG"; then
17154     if test -n "$PKG_CONFIG" && \
17155     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openobex\""; } >&5
17156   ($PKG_CONFIG --exists --print-errors "openobex") 2>&5
17157   ac_status=$?
17158   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17159   test $ac_status = 0; }; then
17160   pkg_cv_LIBOPENOBEX_CFLAGS=`$PKG_CONFIG --cflags "openobex" 2>/dev/null`
17161                       test "x$?" != "x0" && pkg_failed=yes
17162 else
17163   pkg_failed=yes
17164 fi
17165  else
17166     pkg_failed=untried
17167 fi
17168 if test -n "$LIBOPENOBEX_LIBS"; then
17169     pkg_cv_LIBOPENOBEX_LIBS="$LIBOPENOBEX_LIBS"
17170  elif test -n "$PKG_CONFIG"; then
17171     if test -n "$PKG_CONFIG" && \
17172     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openobex\""; } >&5
17173   ($PKG_CONFIG --exists --print-errors "openobex") 2>&5
17174   ac_status=$?
17175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17176   test $ac_status = 0; }; then
17177   pkg_cv_LIBOPENOBEX_LIBS=`$PKG_CONFIG --libs "openobex" 2>/dev/null`
17178                       test "x$?" != "x0" && pkg_failed=yes
17179 else
17180   pkg_failed=yes
17181 fi
17182  else
17183     pkg_failed=untried
17184 fi
17185
17186
17187
17188 if test $pkg_failed = yes; then
17189         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17190 $as_echo "no" >&6; }
17191
17192 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17193         _pkg_short_errors_supported=yes
17194 else
17195         _pkg_short_errors_supported=no
17196 fi
17197         if test $_pkg_short_errors_supported = yes; then
17198                 LIBOPENOBEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openobex" 2>&1`
17199         else
17200                 LIBOPENOBEX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openobex" 2>&1`
17201         fi
17202         # Put the nasty error message in config.log where it belongs
17203         echo "$LIBOPENOBEX_PKG_ERRORS" >&5
17204
17205         have_obex="no"
17206 elif test $pkg_failed = untried; then
17207         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17208 $as_echo "no" >&6; }
17209         have_obex="no"
17210 else
17211         LIBOPENOBEX_CFLAGS=$pkg_cv_LIBOPENOBEX_CFLAGS
17212         LIBOPENOBEX_LIBS=$pkg_cv_LIBOPENOBEX_LIBS
17213         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17214 $as_echo "yes" >&6; }
17215         have_obex="yes"
17216 fi
17217 have_bluetooth="no"
17218 if test $have_obex = "yes"; then
17219
17220 pkg_failed=no
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLUEZ" >&5
17222 $as_echo_n "checking for BLUEZ... " >&6; }
17223
17224 if test -n "$BLUEZ_CFLAGS"; then
17225     pkg_cv_BLUEZ_CFLAGS="$BLUEZ_CFLAGS"
17226  elif test -n "$PKG_CONFIG"; then
17227     if test -n "$PKG_CONFIG" && \
17228     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez\""; } >&5
17229   ($PKG_CONFIG --exists --print-errors "bluez") 2>&5
17230   ac_status=$?
17231   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17232   test $ac_status = 0; }; then
17233   pkg_cv_BLUEZ_CFLAGS=`$PKG_CONFIG --cflags "bluez" 2>/dev/null`
17234                       test "x$?" != "x0" && pkg_failed=yes
17235 else
17236   pkg_failed=yes
17237 fi
17238  else
17239     pkg_failed=untried
17240 fi
17241 if test -n "$BLUEZ_LIBS"; then
17242     pkg_cv_BLUEZ_LIBS="$BLUEZ_LIBS"
17243  elif test -n "$PKG_CONFIG"; then
17244     if test -n "$PKG_CONFIG" && \
17245     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez\""; } >&5
17246   ($PKG_CONFIG --exists --print-errors "bluez") 2>&5
17247   ac_status=$?
17248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17249   test $ac_status = 0; }; then
17250   pkg_cv_BLUEZ_LIBS=`$PKG_CONFIG --libs "bluez" 2>/dev/null`
17251                       test "x$?" != "x0" && pkg_failed=yes
17252 else
17253   pkg_failed=yes
17254 fi
17255  else
17256     pkg_failed=untried
17257 fi
17258
17259
17260
17261 if test $pkg_failed = yes; then
17262         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17263 $as_echo "no" >&6; }
17264
17265 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17266         _pkg_short_errors_supported=yes
17267 else
17268         _pkg_short_errors_supported=no
17269 fi
17270         if test $_pkg_short_errors_supported = yes; then
17271                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bluez" 2>&1`
17272         else
17273                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bluez" 2>&1`
17274         fi
17275         # Put the nasty error message in config.log where it belongs
17276         echo "$BLUEZ_PKG_ERRORS" >&5
17277
17278         have_bluez="no"
17279 elif test $pkg_failed = untried; then
17280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17281 $as_echo "no" >&6; }
17282         have_bluez="no"
17283 else
17284         BLUEZ_CFLAGS=$pkg_cv_BLUEZ_CFLAGS
17285         BLUEZ_LIBS=$pkg_cv_BLUEZ_LIBS
17286         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17287 $as_echo "yes" >&6; }
17288         have_bluez="yes"
17289 fi
17290     if test $have_bluez = "yes"; then
17291         have_bluetooth="yes"
17292     fi
17293 fi
17294
17295
17296
17297
17298
17299 TRANSPORT=
17300 TRANSPORT_LIBS=
17301 TRANSPORT_CFLAGS=
17302
17303
17304 # Check whether --with-ca-certificates was given.
17305 if test "${with_ca_certificates+set}" = set; then :
17306   withval=$with_ca_certificates; CA_CERTIFICATES="$withval"
17307 fi
17308
17309
17310
17311 # choose default http transport (mirrors code in EvolutionSyncClient::createTransportAgent())
17312 if test "$have_libsoup" = "yes"; then
17313    default_http_transport="libsoup"
17314 elif test "$have_libcurl" = "yes"; then
17315    default_http_transport="libcurl"
17316 fi
17317
17318 # Check whether --enable-libcurl was given.
17319 if test "${enable_libcurl+set}" = set; then :
17320   enableval=$enable_libcurl;  if test "$enableval" = "yes"; then
17321                    test "$have_libcurl" = "yes" || as_fn_error $? "libcurl not found" "$LINENO" 5
17322                    TRANSPORT="$TRANSPORT libcurl"
17323                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBCURL_LIBS"
17324                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBCURL_CFLAGS"
17325
17326 $as_echo "#define ENABLE_LIBCURL 1" >>confdefs.h
17327
17328                 else
17329                    libcurl_disabled="yes"
17330                 fi
17331 else
17332    if test "$have_libcurl" = "yes" && test "$default_http_transport" = "libcurl" ; then
17333                    TRANSPORT="$TRANSPORT libcurl"
17334                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBCURL_LIBS"
17335                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBCURL_CFLAGS"
17336
17337 $as_echo "#define ENABLE_LIBCURL 1" >>confdefs.h
17338
17339                 fi
17340 fi
17341
17342
17343 # Check whether --enable-libsoup was given.
17344 if test "${enable_libsoup+set}" = set; then :
17345   enableval=$enable_libsoup;  if test "$enableval" = "yes"; then
17346                    test "$have_libsoup" = "yes" || as_fn_error $? "libsoup not found" "$LINENO" 5
17347                    TRANSPORT="$TRANSPORT libsoup"
17348                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBSOUP_LIBS"
17349                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBSOUP_CFLAGS"
17350
17351 $as_echo "#define ENABLE_LIBSOUP 1" >>confdefs.h
17352
17353                 else
17354                    libsoup_disabled="yes"
17355                 fi
17356 else
17357    if test "$have_libsoup" = "yes" && test "$default_http_transport" = "libsoup"; then
17358                    TRANSPORT="$TRANSPORT libsoup"
17359                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBSOUP_LIBS"
17360                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBSOUP_CFLAGS"
17361
17362 $as_echo "#define ENABLE_LIBSOUP 1" >>confdefs.h
17363
17364                 fi
17365 fi
17366
17367
17368 # SoupTransportAgent depends on glib
17369 case "$TRANSPORT" in *libsoup*) need_glib=yes;; esac
17370
17371 bluetooth_disabled=no
17372 # Check whether --enable-bluetooth was given.
17373 if test "${enable_bluetooth+set}" = set; then :
17374   enableval=$enable_bluetooth;  enable_bluetooth="$enableval"
17375                 if test "$enableval" = "no"; then
17376                     bluetooth_disabled=yes
17377                 fi
17378
17379 else
17380    enable_bluetooth="$have_bluetooth"
17381 fi
17382
17383
17384 if test "$enable_bluetooth" = "yes"; then
17385    # currently we need Bluetooth and OBEX support
17386    test "$have_bluetooth" = "yes" || as_fn_error $? "openobex or bluez not found" "$LINENO" 5
17387
17388    ac_ext=c
17389 ac_cpp='$CPP $CPPFLAGS'
17390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17393
17394    CFLAGS_old="$CFLAGS"
17395    CFLAGS="$CPPFLAGS $BLUEZ_CFLAGS"
17396    # test in this order:
17397    # - recent libbluetooth (no _safe variant, base function has bufsize)
17398    # - intermediate with _safe
17399    # - else assume old-style (no bufsize, no _safe)
17400    #
17401    # The source code checks the signature both by via pointer assignment and calling
17402    # it (better safe than sorry). One these should fail if the signature is not right.
17403    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17404 /* end confdefs.h.  */
17405
17406                       #include <bluetooth/sdp.h>
17407                       #include <bluetooth/sdp_lib.h>
17408                       sdp_record_t *(*extract_pdu)(const uint8_t *pdata, int bufsize, int *scanned) =
17409                            sdp_extract_pdu;
17410                       void foo(void) {
17411                           uint8_t *pdata = NULL;
17412                           int scanned;
17413                           sdp_extract_pdu(pdata, 100, &scanned);
17414                       }
17415
17416 _ACEOF
17417 if ac_fn_c_try_compile "$LINENO"; then :
17418
17419 $as_echo "#define HAVE_BLUEZ_BUFSIZE 1" >>confdefs.h
17420
17421 else
17422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17423 /* end confdefs.h.  */
17424
17425                                         #include <bluetooth/sdp.h>
17426                                         #include <bluetooth/sdp_lib.h>
17427                                         sdp_record_t *(*extract_pdu)(const uint8_t *pdata, int bufsize, int *scanned) =
17428                                                sdp_extract_pdu_safe;
17429                                         void foo(void) {
17430                                             uint8_t *pdata = NULL;
17431                                             int scanned;
17432                                             sdp_extract_pdu_safe(pdata, 100, &scanned);
17433                                         }
17434
17435 _ACEOF
17436 if ac_fn_c_try_compile "$LINENO"; then :
17437
17438 $as_echo "#define HAVE_BLUEZ_SAFE 1" >>confdefs.h
17439
17440 fi
17441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17442 fi
17443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17444    CFLAGS="$CFLAGS_old"
17445
17446    if test "$have_obex" = "yes"; then
17447
17448 $as_echo "#define ENABLE_OBEX 1" >>confdefs.h
17449
17450    fi
17451    if test "$have_bluez" = "yes"; then
17452
17453 $as_echo "#define ENABLE_BLUETOOTH 1" >>confdefs.h
17454
17455    fi
17456 fi
17457  if test "$have_obex" = "yes" && test "$enable_bluetooth" = "yes"; then
17458   ENABLE_OBEX_TRUE=
17459   ENABLE_OBEX_FALSE='#'
17460 else
17461   ENABLE_OBEX_TRUE='#'
17462   ENABLE_OBEX_FALSE=
17463 fi
17464
17465  if test "$have_bluetooth" = "yes" && test "$enable_bluetooth" = "yes"; then
17466   ENABLE_BLUETOOTH_TRUE=
17467   ENABLE_BLUETOOTH_FALSE='#'
17468 else
17469   ENABLE_BLUETOOTH_TRUE='#'
17470   ENABLE_BLUETOOTH_FALSE=
17471 fi
17472
17473
17474 if test ! "$TRANSPORT" &&
17475    test "$libsoup_disabled" != "yes" &&
17476    test "$libcurl_disabled" != "yes" &&
17477    test "$bluetooth_disabled" != "yes" &&
17478    test "$have_bluetooth" != "yes" ; then
17479    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
17480 fi
17481
17482 # for libsoup we must specify the SSL certificate file outself
17483 if test "$libsoup_disabled" != "yes" && test -z "$CA_CERTIFICATES"; then
17484    # Debian and Red Hat paths
17485    CA_CERTIFICATES="/etc/ssl/certs/ca-certificates.crt:/etc/pki/tls/certs/ca-bundle.crt:/usr/share/ssl/certs/ca-bundle.crt"
17486 fi
17487
17488 cat >>confdefs.h <<_ACEOF
17489 #define SYNCEVOLUTION_SSL_SERVER_CERTIFICATES "$CA_CERTIFICATES"
17490 _ACEOF
17491
17492
17493
17494
17495
17496 # Check whether --enable-ssl-certificate-check was given.
17497 if test "${enable_ssl_certificate_check+set}" = set; then :
17498   enableval=$enable_ssl_certificate_check; enable_ssl_certificate_check="$enableval"
17499 else
17500   enable_ssl_certificate_check="yes"
17501 fi
17502
17503 if test "$enable_ssl_certificate_check" = "yes"; then
17504
17505 $as_echo "#define ENABLE_SSL_CERTIFICATE_CHECK 1" >>confdefs.h
17506
17507 fi
17508
17509 # for dbus interface file mangling
17510 # Extract the first word of "xsltproc", so it can be a program name with args.
17511 set dummy xsltproc; ac_word=$2
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17513 $as_echo_n "checking for $ac_word... " >&6; }
17514 if ${ac_cv_path_XSLT+:} false; then :
17515   $as_echo_n "(cached) " >&6
17516 else
17517   case $XSLT in
17518   [\\/]* | ?:[\\/]*)
17519   ac_cv_path_XSLT="$XSLT" # Let the user override the test with a path.
17520   ;;
17521   *)
17522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17523 for as_dir in $PATH
17524 do
17525   IFS=$as_save_IFS
17526   test -z "$as_dir" && as_dir=.
17527     for ac_exec_ext in '' $ac_executable_extensions; do
17528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17529     ac_cv_path_XSLT="$as_dir/$ac_word$ac_exec_ext"
17530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17531     break 2
17532   fi
17533 done
17534   done
17535 IFS=$as_save_IFS
17536
17537   ;;
17538 esac
17539 fi
17540 XSLT=$ac_cv_path_XSLT
17541 if test -n "$XSLT"; then
17542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT" >&5
17543 $as_echo "$XSLT" >&6; }
17544 else
17545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17546 $as_echo "no" >&6; }
17547 fi
17548
17549
17550
17551
17552 # Changes in GTK3 mean that supporting both GTK3 and GTK2 in the same codebase
17553 # is difficult. We want to support GTK2 for the time being so the code is forked.
17554 # Check whether --enable-gtk was given.
17555 if test "${enable_gtk+set}" = set; then :
17556   enableval=$enable_gtk;  if test "$enableval" = "3" ; then
17557                     gtk_version=gtk+-3.0
17558                 elif test "$enableval" = "2" ; then
17559                     gtk_version=gtk+-2.0
17560                 else
17561                     as_fn_error $? "Unknown gtk version: '$enableval'" "$LINENO" 5
17562                 fi
17563
17564 else
17565    if test -n "$PKG_CONFIG" && \
17566     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
17567   ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
17568   ac_status=$?
17569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17570   test $ac_status = 0; }; then
17571   gtk_version=gtk+-3.0
17572 else
17573   gtk_version=gtk+-2.0
17574 fi
17575 fi
17576
17577
17578
17579  if test "$gtk_version" = "gtk+-2.0"; then
17580   COND_GTK2_TRUE=
17581   COND_GTK2_FALSE='#'
17582 else
17583   COND_GTK2_TRUE='#'
17584   COND_GTK2_FALSE=
17585 fi
17586
17587
17588 # Check whether --enable-gui was given.
17589 if test "${enable_gui+set}" = set; then :
17590   enableval=$enable_gui;  if test "$enableval" = "gtk" ; then
17591                     enable_gui=gtk
17592                 elif test "$enableval" = "yes" ; then
17593                     enable_gui=gtk
17594                 elif test "$enableval" = "moblin" ; then
17595                     enable_gui=moblin
17596                 elif test "$enableval" = "no" ; then
17597                     enable_gui=no
17598                 elif test "$enableval" = "all" ; then
17599                     enable_gui=all
17600                 else
17601                     as_fn_error $? "Unknown gui type: '$enableval'" "$LINENO" 5
17602                 fi
17603
17604 else
17605    enable_gui=no
17606 fi
17607
17608
17609  if test "$enable_gui" != "no"; then
17610   COND_GUI_TRUE=
17611   COND_GUI_FALSE='#'
17612 else
17613   COND_GUI_TRUE='#'
17614   COND_GUI_FALSE=
17615 fi
17616
17617
17618 # Check whether --enable-core was given.
17619 if test "${enable_core+set}" = set; then :
17620   enableval=$enable_core; enable_core="$enableval"
17621 else
17622   enable_core="yes"
17623 fi
17624
17625  if test "$enable_core" = "yes"; then
17626   COND_CORE_TRUE=
17627   COND_CORE_FALSE='#'
17628 else
17629   COND_CORE_TRUE='#'
17630   COND_CORE_FALSE=
17631 fi
17632
17633
17634 # Check whether --enable-dbus-service was given.
17635 if test "${enable_dbus_service+set}" = set; then :
17636   enableval=$enable_dbus_service; enable_dbus_service="$enableval"
17637 else
17638   if test $enable_gui = "no"; then
17639                   enable_dbus_service="no"
17640                else
17641                   enable_dbus_service="yes"
17642                fi
17643 fi
17644
17645  if test "$enable_dbus_service" = "yes"; then
17646   COND_DBUS_TRUE=
17647   COND_DBUS_FALSE='#'
17648 else
17649   COND_DBUS_TRUE='#'
17650   COND_DBUS_FALSE=
17651 fi
17652
17653
17654
17655 # Check whether --with-gio-gdbus was given.
17656 if test "${with_gio_gdbus+set}" = set; then :
17657   withval=$with_gio_gdbus; with_gio_gdbus="$withval"
17658 else
17659   if test -n "$PKG_CONFIG" && \
17660     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.30\""; } >&5
17661   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.30") 2>&5
17662   ac_status=$?
17663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17664   test $ac_status = 0; }; then
17665   with_gio_gdbus="yes"
17666 else
17667   with_gio_gdbus="no"
17668 fi
17669 fi
17670
17671  if test "x$with_gio_gdbus" = "xyes"; then
17672   COND_GIO_GDBUS_TRUE=
17673   COND_GIO_GDBUS_FALSE='#'
17674 else
17675   COND_GIO_GDBUS_TRUE='#'
17676   COND_GIO_GDBUS_FALSE=
17677 fi
17678
17679
17680 # We only need to check for dbus-1 if gio-gdbus is not used.
17681 #
17682 # Local sync depends on D-Bus communication between parent
17683 # and child process (works without a D-Bus daemon), and local
17684 # sync is not an optional feature. Could be made one if
17685 # someone is interested enough.
17686 #
17687 # Therefore, at the moment, either libdbus or gio-gdbus are needed
17688 # unconditionally. glib is needed in all cases now.
17689 need_glib=yes
17690 if test "x$with_gio_gdbus" = "xyes"; then :
17691
17692 pkg_failed=no
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
17694 $as_echo_n "checking for DBUS... " >&6; }
17695
17696 if test -n "$DBUS_CFLAGS"; then
17697     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
17698  elif test -n "$PKG_CONFIG"; then
17699     if test -n "$PKG_CONFIG" && \
17700     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
17701   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
17702   ac_status=$?
17703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17704   test $ac_status = 0; }; then
17705   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
17706                       test "x$?" != "x0" && pkg_failed=yes
17707 else
17708   pkg_failed=yes
17709 fi
17710  else
17711     pkg_failed=untried
17712 fi
17713 if test -n "$DBUS_LIBS"; then
17714     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
17715  elif test -n "$PKG_CONFIG"; then
17716     if test -n "$PKG_CONFIG" && \
17717     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
17718   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
17719   ac_status=$?
17720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17721   test $ac_status = 0; }; then
17722   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
17723                       test "x$?" != "x0" && pkg_failed=yes
17724 else
17725   pkg_failed=yes
17726 fi
17727  else
17728     pkg_failed=untried
17729 fi
17730
17731
17732
17733 if test $pkg_failed = yes; then
17734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17735 $as_echo "no" >&6; }
17736
17737 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17738         _pkg_short_errors_supported=yes
17739 else
17740         _pkg_short_errors_supported=no
17741 fi
17742         if test $_pkg_short_errors_supported = yes; then
17743                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
17744         else
17745                 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
17746         fi
17747         # Put the nasty error message in config.log where it belongs
17748         echo "$DBUS_PKG_ERRORS" >&5
17749
17750         as_fn_error $? "Package requirements (gio-2.0 >= 2.26) were not met:
17751
17752 $DBUS_PKG_ERRORS
17753
17754 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17755 installed software in a non-standard prefix.
17756
17757 Alternatively, you may set the environment variables DBUS_CFLAGS
17758 and DBUS_LIBS to avoid the need to call pkg-config.
17759 See the pkg-config man page for more details." "$LINENO" 5
17760 elif test $pkg_failed = untried; then
17761         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17762 $as_echo "no" >&6; }
17763         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17765 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17766 is in your PATH or set the PKG_CONFIG environment variable to the full
17767 path to pkg-config.
17768
17769 Alternatively, you may set the environment variables DBUS_CFLAGS
17770 and DBUS_LIBS to avoid the need to call pkg-config.
17771 See the pkg-config man page for more details.
17772
17773 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17774 See \`config.log' for more details" "$LINENO" 5; }
17775 else
17776         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
17777         DBUS_LIBS=$pkg_cv_DBUS_LIBS
17778         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17779 $as_echo "yes" >&6; }
17780
17781 fi
17782
17783 $as_echo "#define WITH_GIO_GDBUS /**/" >>confdefs.h
17784
17785 else
17786
17787 pkg_failed=no
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
17789 $as_echo_n "checking for DBUS... " >&6; }
17790
17791 if test -n "$DBUS_CFLAGS"; then
17792     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
17793  elif test -n "$PKG_CONFIG"; then
17794     if test -n "$PKG_CONFIG" && \
17795     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
17796   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
17797   ac_status=$?
17798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17799   test $ac_status = 0; }; then
17800   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
17801                       test "x$?" != "x0" && pkg_failed=yes
17802 else
17803   pkg_failed=yes
17804 fi
17805  else
17806     pkg_failed=untried
17807 fi
17808 if test -n "$DBUS_LIBS"; then
17809     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
17810  elif test -n "$PKG_CONFIG"; then
17811     if test -n "$PKG_CONFIG" && \
17812     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
17813   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
17814   ac_status=$?
17815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17816   test $ac_status = 0; }; then
17817   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
17818                       test "x$?" != "x0" && pkg_failed=yes
17819 else
17820   pkg_failed=yes
17821 fi
17822  else
17823     pkg_failed=untried
17824 fi
17825
17826
17827
17828 if test $pkg_failed = yes; then
17829         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17830 $as_echo "no" >&6; }
17831
17832 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17833         _pkg_short_errors_supported=yes
17834 else
17835         _pkg_short_errors_supported=no
17836 fi
17837         if test $_pkg_short_errors_supported = yes; then
17838                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
17839         else
17840                 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
17841         fi
17842         # Put the nasty error message in config.log where it belongs
17843         echo "$DBUS_PKG_ERRORS" >&5
17844
17845         as_fn_error $? "libdbus-1 is required" "$LINENO" 5
17846 elif test $pkg_failed = untried; then
17847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17848 $as_echo "no" >&6; }
17849         as_fn_error $? "libdbus-1 is required" "$LINENO" 5
17850 else
17851         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
17852         DBUS_LIBS=$pkg_cv_DBUS_LIBS
17853         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17854 $as_echo "yes" >&6; }
17855         dummy=yes
17856 fi
17857        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_watch_get_unix_fd in -ldbus-1" >&5
17858 $as_echo_n "checking for dbus_watch_get_unix_fd in -ldbus-1... " >&6; }
17859 if ${ac_cv_lib_dbus_1_dbus_watch_get_unix_fd+:} false; then :
17860   $as_echo_n "(cached) " >&6
17861 else
17862   ac_check_lib_save_LIBS=$LIBS
17863 LIBS="-ldbus-1  $LIBS"
17864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17865 /* end confdefs.h.  */
17866
17867 /* Override any GCC internal prototype to avoid an error.
17868    Use char because int might match the return type of a GCC
17869    builtin and then its argument prototype would still apply.  */
17870 #ifdef __cplusplus
17871 extern "C"
17872 #endif
17873 char dbus_watch_get_unix_fd ();
17874 int
17875 main ()
17876 {
17877 return dbus_watch_get_unix_fd ();
17878   ;
17879   return 0;
17880 }
17881 _ACEOF
17882 if ac_fn_c_try_link "$LINENO"; then :
17883   ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=yes
17884 else
17885   ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=no
17886 fi
17887 rm -f core conftest.err conftest.$ac_objext \
17888     conftest$ac_exeext conftest.$ac_ext
17889 LIBS=$ac_check_lib_save_LIBS
17890 fi
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&5
17892 $as_echo "$ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&6; }
17893 if test "x$ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" = xyes; then :
17894   dummy=yes
17895 else
17896
17897 $as_echo "#define NEED_DBUS_WATCH_GET_UNIX_FD 1" >>confdefs.h
17898
17899 fi
17900
17901 fi
17902
17903 if test $enable_dbus_service = "yes"; then
17904     if test -z "$XSLT"; then
17905        as_fn_error $? "xsltproc not found, is required for D-Bus service" "$LINENO" 5
17906     fi
17907     # Recent libnotify releases work with gtk+-2.0 and gtk+-3.0.
17908     # Check whether --enable-notify was given.
17909 if test "${enable_notify+set}" = set; then :
17910   enableval=$enable_notify; enable_notify="$enableval"
17911 else
17912   if test -n "$PKG_CONFIG" && \
17913     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify \$gtk_version\""; } >&5
17914   ($PKG_CONFIG --exists --print-errors "libnotify $gtk_version") 2>&5
17915   ac_status=$?
17916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17917   test $ac_status = 0; }; then
17918   enable_notify="yes"
17919 else
17920   enable_notify="no"
17921 fi
17922 fi
17923
17924     if test "x$enable_notify" = "xyes"; then :
17925
17926 pkg_failed=no
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
17928 $as_echo_n "checking for LIBNOTIFY... " >&6; }
17929
17930 if test -n "$LIBNOTIFY_CFLAGS"; then
17931     pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
17932  elif test -n "$PKG_CONFIG"; then
17933     if test -n "$PKG_CONFIG" && \
17934     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify \$gtk_version\""; } >&5
17935   ($PKG_CONFIG --exists --print-errors "libnotify $gtk_version") 2>&5
17936   ac_status=$?
17937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17938   test $ac_status = 0; }; then
17939   pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify $gtk_version" 2>/dev/null`
17940                       test "x$?" != "x0" && pkg_failed=yes
17941 else
17942   pkg_failed=yes
17943 fi
17944  else
17945     pkg_failed=untried
17946 fi
17947 if test -n "$LIBNOTIFY_LIBS"; then
17948     pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
17949  elif test -n "$PKG_CONFIG"; then
17950     if test -n "$PKG_CONFIG" && \
17951     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify \$gtk_version\""; } >&5
17952   ($PKG_CONFIG --exists --print-errors "libnotify $gtk_version") 2>&5
17953   ac_status=$?
17954   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17955   test $ac_status = 0; }; then
17956   pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify $gtk_version" 2>/dev/null`
17957                       test "x$?" != "x0" && pkg_failed=yes
17958 else
17959   pkg_failed=yes
17960 fi
17961  else
17962     pkg_failed=untried
17963 fi
17964
17965
17966
17967 if test $pkg_failed = yes; then
17968         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17969 $as_echo "no" >&6; }
17970
17971 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17972         _pkg_short_errors_supported=yes
17973 else
17974         _pkg_short_errors_supported=no
17975 fi
17976         if test $_pkg_short_errors_supported = yes; then
17977                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify $gtk_version" 2>&1`
17978         else
17979                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify $gtk_version" 2>&1`
17980         fi
17981         # Put the nasty error message in config.log where it belongs
17982         echo "$LIBNOTIFY_PKG_ERRORS" >&5
17983
17984         as_fn_error $? "Package requirements (libnotify $gtk_version) were not met:
17985
17986 $LIBNOTIFY_PKG_ERRORS
17987
17988 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17989 installed software in a non-standard prefix.
17990
17991 Alternatively, you may set the environment variables LIBNOTIFY_CFLAGS
17992 and LIBNOTIFY_LIBS to avoid the need to call pkg-config.
17993 See the pkg-config man page for more details." "$LINENO" 5
17994 elif test $pkg_failed = untried; then
17995         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17996 $as_echo "no" >&6; }
17997         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17999 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18000 is in your PATH or set the PKG_CONFIG environment variable to the full
18001 path to pkg-config.
18002
18003 Alternatively, you may set the environment variables LIBNOTIFY_CFLAGS
18004 and LIBNOTIFY_LIBS to avoid the need to call pkg-config.
18005 See the pkg-config man page for more details.
18006
18007 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18008 See \`config.log' for more details" "$LINENO" 5; }
18009 else
18010         LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
18011         LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
18012         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18013 $as_echo "yes" >&6; }
18014
18015 fi
18016
18017 $as_echo "#define HAS_NOTIFY 1" >>confdefs.h
18018
18019 fi
18020
18021     # Check whether --enable-notify-compatibility was given.
18022 if test "${enable_notify_compatibility+set}" = set; then :
18023   enableval=$enable_notify_compatibility; enable_notify_compat="$enableval"
18024 else
18025   enable_notify_compat="no"
18026
18027 fi
18028
18029     if test "$enable_notify_compat" = "yes"; then
18030
18031 $as_echo "#define NOTIFY_COMPATIBILITY 1" >>confdefs.h
18032
18033         LIBNOTIFY_LIBS="`echo $LIBNOTIFY_LIBS | sed -e 's/\(-lnotify\|^ *libnotify.la\)/-ldl/'`"
18034     fi
18035
18036     # Here we're using QtGui too because mlite fails to depend on it,
18037     # despite using QAction.
18038
18039 pkg_failed=no
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MLITE" >&5
18041 $as_echo_n "checking for MLITE... " >&6; }
18042
18043 if test -n "$MLITE_CFLAGS"; then
18044     pkg_cv_MLITE_CFLAGS="$MLITE_CFLAGS"
18045  elif test -n "$PKG_CONFIG"; then
18046     if test -n "$PKG_CONFIG" && \
18047     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mlite QtGui\""; } >&5
18048   ($PKG_CONFIG --exists --print-errors "mlite QtGui") 2>&5
18049   ac_status=$?
18050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18051   test $ac_status = 0; }; then
18052   pkg_cv_MLITE_CFLAGS=`$PKG_CONFIG --cflags "mlite QtGui" 2>/dev/null`
18053                       test "x$?" != "x0" && pkg_failed=yes
18054 else
18055   pkg_failed=yes
18056 fi
18057  else
18058     pkg_failed=untried
18059 fi
18060 if test -n "$MLITE_LIBS"; then
18061     pkg_cv_MLITE_LIBS="$MLITE_LIBS"
18062  elif test -n "$PKG_CONFIG"; then
18063     if test -n "$PKG_CONFIG" && \
18064     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mlite QtGui\""; } >&5
18065   ($PKG_CONFIG --exists --print-errors "mlite QtGui") 2>&5
18066   ac_status=$?
18067   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18068   test $ac_status = 0; }; then
18069   pkg_cv_MLITE_LIBS=`$PKG_CONFIG --libs "mlite QtGui" 2>/dev/null`
18070                       test "x$?" != "x0" && pkg_failed=yes
18071 else
18072   pkg_failed=yes
18073 fi
18074  else
18075     pkg_failed=untried
18076 fi
18077
18078
18079
18080 if test $pkg_failed = yes; then
18081         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18082 $as_echo "no" >&6; }
18083
18084 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18085         _pkg_short_errors_supported=yes
18086 else
18087         _pkg_short_errors_supported=no
18088 fi
18089         if test $_pkg_short_errors_supported = yes; then
18090                 MLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mlite QtGui" 2>&1`
18091         else
18092                 MLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mlite QtGui" 2>&1`
18093         fi
18094         # Put the nasty error message in config.log where it belongs
18095         echo "$MLITE_PKG_ERRORS" >&5
18096
18097         HAVE_MLITE=no
18098 elif test $pkg_failed = untried; then
18099         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18100 $as_echo "no" >&6; }
18101         HAVE_MLITE=no
18102 else
18103         MLITE_CFLAGS=$pkg_cv_MLITE_CFLAGS
18104         MLITE_LIBS=$pkg_cv_MLITE_LIBS
18105         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18106 $as_echo "yes" >&6; }
18107         HAVE_MLITE=yes
18108 fi
18109     # Check whether --enable-mlite was given.
18110 if test "${enable_mlite+set}" = set; then :
18111   enableval=$enable_mlite;  enable_mlite="$enableval"
18112                     test "$enableval" = "no" || test $HAVE_MLITE = "yes" || as_fn_error $? "required mlite package not found" "$LINENO" 5
18113 else
18114    enable_mlite="no"
18115 fi
18116
18117     if test $enable_mlite = "yes"; then
18118
18119 $as_echo "#define HAS_MLITE 1" >>confdefs.h
18120
18121     else
18122         # don't use mlite, even if found
18123         MLITE_CFLAGS=
18124         MLITE_LIBS=
18125     fi
18126
18127 $as_echo "#define DBUS_SERVICE 1" >>confdefs.h
18128
18129
18130     # Check whether --enable-dbus-service-pim was given.
18131 if test "${enable_dbus_service_pim+set}" = set; then :
18132   enableval=$enable_dbus_service_pim;  enable_dbus_pim="$enableval"
18133 else
18134    enable_dbus_pim="no"
18135 fi
18136
18137     case "$enable_dbus_pim" in
18138          no) ;;
18139          *)
18140                 if test "$enable_dbus_pim" = "yes"; then
18141                     enable_dbus_pim=boost
18142                 fi
18143                 if ! test -r "$srcdir/src/dbus/server/pim/locale-factory-$enable_dbus_pim.cpp"; then
18144                     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
18145                 fi
18146
18147 pkg_failed=no
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOLKS" >&5
18149 $as_echo_n "checking for FOLKS... " >&6; }
18150
18151 if test -n "$FOLKS_CFLAGS"; then
18152     pkg_cv_FOLKS_CFLAGS="$FOLKS_CFLAGS"
18153  elif test -n "$PKG_CONFIG"; then
18154     if test -n "$PKG_CONFIG" && \
18155     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"folks folks-eds\""; } >&5
18156   ($PKG_CONFIG --exists --print-errors "folks folks-eds") 2>&5
18157   ac_status=$?
18158   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18159   test $ac_status = 0; }; then
18160   pkg_cv_FOLKS_CFLAGS=`$PKG_CONFIG --cflags "folks folks-eds" 2>/dev/null`
18161                       test "x$?" != "x0" && pkg_failed=yes
18162 else
18163   pkg_failed=yes
18164 fi
18165  else
18166     pkg_failed=untried
18167 fi
18168 if test -n "$FOLKS_LIBS"; then
18169     pkg_cv_FOLKS_LIBS="$FOLKS_LIBS"
18170  elif test -n "$PKG_CONFIG"; then
18171     if test -n "$PKG_CONFIG" && \
18172     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"folks folks-eds\""; } >&5
18173   ($PKG_CONFIG --exists --print-errors "folks folks-eds") 2>&5
18174   ac_status=$?
18175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18176   test $ac_status = 0; }; then
18177   pkg_cv_FOLKS_LIBS=`$PKG_CONFIG --libs "folks folks-eds" 2>/dev/null`
18178                       test "x$?" != "x0" && pkg_failed=yes
18179 else
18180   pkg_failed=yes
18181 fi
18182  else
18183     pkg_failed=untried
18184 fi
18185
18186
18187
18188 if test $pkg_failed = yes; then
18189         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18190 $as_echo "no" >&6; }
18191
18192 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18193         _pkg_short_errors_supported=yes
18194 else
18195         _pkg_short_errors_supported=no
18196 fi
18197         if test $_pkg_short_errors_supported = yes; then
18198                 FOLKS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "folks folks-eds" 2>&1`
18199         else
18200                 FOLKS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "folks folks-eds" 2>&1`
18201         fi
18202         # Put the nasty error message in config.log where it belongs
18203         echo "$FOLKS_PKG_ERRORS" >&5
18204
18205         as_fn_error $? "Package requirements (folks folks-eds) were not met:
18206
18207 $FOLKS_PKG_ERRORS
18208
18209 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18210 installed software in a non-standard prefix.
18211
18212 Alternatively, you may set the environment variables FOLKS_CFLAGS
18213 and FOLKS_LIBS to avoid the need to call pkg-config.
18214 See the pkg-config man page for more details." "$LINENO" 5
18215 elif test $pkg_failed = untried; then
18216         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18217 $as_echo "no" >&6; }
18218         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18220 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18221 is in your PATH or set the PKG_CONFIG environment variable to the full
18222 path to pkg-config.
18223
18224 Alternatively, you may set the environment variables FOLKS_CFLAGS
18225 and FOLKS_LIBS to avoid the need to call pkg-config.
18226 See the pkg-config man page for more details.
18227
18228 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18229 See \`config.log' for more details" "$LINENO" 5; }
18230 else
18231         FOLKS_CFLAGS=$pkg_cv_FOLKS_CFLAGS
18232         FOLKS_LIBS=$pkg_cv_FOLKS_LIBS
18233         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18234 $as_echo "yes" >&6; }
18235
18236 fi
18237
18238 $as_echo "#define ENABLE_DBUS_PIM 1" >>confdefs.h
18239
18240                 DBUS_PIM_PLUGIN=$enable_dbus_pim
18241
18242
18243                 case "$enable_dbus_pim" in
18244                     boost)
18245
18246
18247 # Check whether --with-boost-locale was given.
18248 if test "${with_boost_locale+set}" = set; then :
18249   withval=$with_boost_locale;
18250         if test "$withval" = "no"; then
18251                         want_boost="no"
18252         elif test "$withval" = "yes"; then
18253             want_boost="yes"
18254             ax_boost_user_locale_lib=""
18255         else
18256                     want_boost="yes"
18257                 ax_boost_user_locale_lib="$withval"
18258                 fi
18259
18260 else
18261   want_boost="yes"
18262
18263 fi
18264
18265
18266         if test "x$want_boost" = "xyes"; then
18267
18268
18269                 CPPFLAGS_SAVED="$CPPFLAGS"
18270                 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18271                 export CPPFLAGS
18272
18273                 LDFLAGS_SAVED="$LDFLAGS"
18274                 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
18275                 export LDFLAGS
18276
18277         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Locale library is available" >&5
18278 $as_echo_n "checking whether the Boost::Locale library is available... " >&6; }
18279 if ${ax_cv_boost_locale+:} false; then :
18280   $as_echo_n "(cached) " >&6
18281 else
18282   ac_ext=cpp
18283 ac_cpp='$CXXCPP $CPPFLAGS'
18284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18287
18288                          CXXFLAGS_SAVE=$CXXFLAGS
18289
18290                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18291 /* end confdefs.h.  */
18292 #include <boost/locale.hpp>
18293 int
18294 main ()
18295 {
18296 boost::locale::generator gen;
18297                                    std::locale::global(gen(""));
18298   ;
18299   return 0;
18300 }
18301 _ACEOF
18302 if ac_fn_cxx_try_compile "$LINENO"; then :
18303   ax_cv_boost_locale=yes
18304 else
18305   ax_cv_boost_locale=no
18306 fi
18307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18308                          CXXFLAGS=$CXXFLAGS_SAVE
18309              ac_ext=c
18310 ac_cpp='$CPP $CPPFLAGS'
18311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18314
18315
18316 fi
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_locale" >&5
18318 $as_echo "$ax_cv_boost_locale" >&6; }
18319                 if test "x$ax_cv_boost_locale" = "xyes"; then
18320
18321
18322
18323 $as_echo "#define HAVE_BOOST_LOCALE /**/" >>confdefs.h
18324
18325             BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
18326
18327                         LDFLAGS_SAVE=$LDFLAGS
18328             if test "x$ax_boost_user_locale_lib" = "x"; then
18329                 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
18330                      ax_lib=${libextension}
18331                                     as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
18333 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
18334 if eval \${$as_ac_Lib+:} false; then :
18335   $as_echo_n "(cached) " >&6
18336 else
18337   ac_check_lib_save_LIBS=$LIBS
18338 LIBS="-l$ax_lib  $LIBS"
18339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18340 /* end confdefs.h.  */
18341
18342 /* Override any GCC internal prototype to avoid an error.
18343    Use char because int might match the return type of a GCC
18344    builtin and then its argument prototype would still apply.  */
18345 #ifdef __cplusplus
18346 extern "C"
18347 #endif
18348 char exit ();
18349 int
18350 main ()
18351 {
18352 return exit ();
18353   ;
18354   return 0;
18355 }
18356 _ACEOF
18357 if ac_fn_c_try_link "$LINENO"; then :
18358   eval "$as_ac_Lib=yes"
18359 else
18360   eval "$as_ac_Lib=no"
18361 fi
18362 rm -f core conftest.err conftest.$ac_objext \
18363     conftest$ac_exeext conftest.$ac_ext
18364 LIBS=$ac_check_lib_save_LIBS
18365 fi
18366 eval ac_res=\$$as_ac_Lib
18367                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18368 $as_echo "$ac_res" >&6; }
18369 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18370   BOOST_LOCALE_LIB="-l$ax_lib";  link_locale="yes"; break
18371 else
18372   link_locale="no"
18373 fi
18374
18375                                 done
18376                 if test "x$link_locale" != "xyes"; then
18377                 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;'` ; do
18378                      ax_lib=${libextension}
18379                                     as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
18381 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
18382 if eval \${$as_ac_Lib+:} false; then :
18383   $as_echo_n "(cached) " >&6
18384 else
18385   ac_check_lib_save_LIBS=$LIBS
18386 LIBS="-l$ax_lib  $LIBS"
18387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18388 /* end confdefs.h.  */
18389
18390 /* Override any GCC internal prototype to avoid an error.
18391    Use char because int might match the return type of a GCC
18392    builtin and then its argument prototype would still apply.  */
18393 #ifdef __cplusplus
18394 extern "C"
18395 #endif
18396 char exit ();
18397 int
18398 main ()
18399 {
18400 return exit ();
18401   ;
18402   return 0;
18403 }
18404 _ACEOF
18405 if ac_fn_c_try_link "$LINENO"; then :
18406   eval "$as_ac_Lib=yes"
18407 else
18408   eval "$as_ac_Lib=no"
18409 fi
18410 rm -f core conftest.err conftest.$ac_objext \
18411     conftest$ac_exeext conftest.$ac_ext
18412 LIBS=$ac_check_lib_save_LIBS
18413 fi
18414 eval ac_res=\$$as_ac_Lib
18415                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18416 $as_echo "$ac_res" >&6; }
18417 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18418   BOOST_LOCALE_LIB="-l$ax_lib";  link_locale="yes"; break
18419 else
18420   link_locale="no"
18421 fi
18422
18423                                 done
18424                 fi
18425
18426             else
18427                for ax_lib in $ax_boost_user_locale_lib boost_locale-$ax_boost_user_locale_lib; do
18428                                       as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
18430 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
18431 if eval \${$as_ac_Lib+:} false; then :
18432   $as_echo_n "(cached) " >&6
18433 else
18434   ac_check_lib_save_LIBS=$LIBS
18435 LIBS="-l$ax_lib  $LIBS"
18436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18437 /* end confdefs.h.  */
18438
18439 /* Override any GCC internal prototype to avoid an error.
18440    Use char because int might match the return type of a GCC
18441    builtin and then its argument prototype would still apply.  */
18442 #ifdef __cplusplus
18443 extern "C"
18444 #endif
18445 char exit ();
18446 int
18447 main ()
18448 {
18449 return exit ();
18450   ;
18451   return 0;
18452 }
18453 _ACEOF
18454 if ac_fn_c_try_link "$LINENO"; then :
18455   eval "$as_ac_Lib=yes"
18456 else
18457   eval "$as_ac_Lib=no"
18458 fi
18459 rm -f core conftest.err conftest.$ac_objext \
18460     conftest$ac_exeext conftest.$ac_ext
18461 LIBS=$ac_check_lib_save_LIBS
18462 fi
18463 eval ac_res=\$$as_ac_Lib
18464                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18465 $as_echo "$ac_res" >&6; }
18466 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18467   BOOST_LOCALE_LIB="-l$ax_lib";  link_locale="yes"; break
18468 else
18469   link_locale="no"
18470 fi
18471
18472                   done
18473
18474             fi
18475             if test "x$ax_lib" = "x"; then
18476                 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
18477             fi
18478                         if test "x$link_locale" = "xno"; then
18479                                 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
18480                         fi
18481                 fi
18482
18483                 CPPFLAGS="$CPPFLAGS_SAVED"
18484         LDFLAGS="$LDFLAGS_SAVED"
18485         fi
18486
18487                         # AX_BOOST_LOCALE incorrectly puts -L/... into LDFLAGS.
18488                         # That's broken because it then overrides the search path
18489                         # for *all* libraries in a link, not just for boost. Fix
18490                         # this by putting the LDFLAGS before the lib and leaving
18491                         # DBUS_PIM_PLUGIN_LDFLAGS empty (for now - might have to
18492                         # be revised if there ever are any boost flags which need
18493                         # to go to the start of the link line).
18494                         DBUS_PIM_PLUGIN_LIBS='$(BOOST_LDFLAGS) $(BOOST_LOCALE_LIB)'
18495                         DBUS_PIM_PLUGIN_LDFLAGS=
18496                         # We need to call ICU directly for the Han->Latin transformation.
18497
18498 pkg_failed=no
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
18500 $as_echo_n "checking for ICU... " >&6; }
18501
18502 if test -n "$ICU_CFLAGS"; then
18503     pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
18504  elif test -n "$PKG_CONFIG"; then
18505     if test -n "$PKG_CONFIG" && \
18506     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
18507   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
18508   ac_status=$?
18509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18510   test $ac_status = 0; }; then
18511   pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
18512                       test "x$?" != "x0" && pkg_failed=yes
18513 else
18514   pkg_failed=yes
18515 fi
18516  else
18517     pkg_failed=untried
18518 fi
18519 if test -n "$ICU_LIBS"; then
18520     pkg_cv_ICU_LIBS="$ICU_LIBS"
18521  elif test -n "$PKG_CONFIG"; then
18522     if test -n "$PKG_CONFIG" && \
18523     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
18524   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
18525   ac_status=$?
18526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18527   test $ac_status = 0; }; then
18528   pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
18529                       test "x$?" != "x0" && pkg_failed=yes
18530 else
18531   pkg_failed=yes
18532 fi
18533  else
18534     pkg_failed=untried
18535 fi
18536
18537
18538
18539 if test $pkg_failed = yes; then
18540         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18541 $as_echo "no" >&6; }
18542
18543 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18544         _pkg_short_errors_supported=yes
18545 else
18546         _pkg_short_errors_supported=no
18547 fi
18548         if test $_pkg_short_errors_supported = yes; then
18549                 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc" 2>&1`
18550         else
18551                 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc" 2>&1`
18552         fi
18553         # Put the nasty error message in config.log where it belongs
18554         echo "$ICU_PKG_ERRORS" >&5
18555
18556         as_fn_error $? "Package requirements (icu-uc) were not met:
18557
18558 $ICU_PKG_ERRORS
18559
18560 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18561 installed software in a non-standard prefix.
18562
18563 Alternatively, you may set the environment variables ICU_CFLAGS
18564 and ICU_LIBS to avoid the need to call pkg-config.
18565 See the pkg-config man page for more details." "$LINENO" 5
18566 elif test $pkg_failed = untried; then
18567         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18568 $as_echo "no" >&6; }
18569         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18571 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18572 is in your PATH or set the PKG_CONFIG environment variable to the full
18573 path to pkg-config.
18574
18575 Alternatively, you may set the environment variables ICU_CFLAGS
18576 and ICU_LIBS to avoid the need to call pkg-config.
18577 See the pkg-config man page for more details.
18578
18579 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18580 See \`config.log' for more details" "$LINENO" 5; }
18581 else
18582         ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
18583         ICU_LIBS=$pkg_cv_ICU_LIBS
18584         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18585 $as_echo "yes" >&6; }
18586
18587 fi
18588                         ;;
18589                 esac
18590
18591
18592
18593
18594                 # http://code.google.com/p/libphonenumber/
18595                 ac_ext=cpp
18596 ac_cpp='$CXXCPP $CPPFLAGS'
18597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18600
18601                 SAVED_CPPFLAGS=$CPPFLAGS
18602                 CPPFLAGS="$CPPFLAGS ${PHONENUMBERS_CFLAGS}"
18603
18604 for ac_header in phonenumbers/phonenumberutil.h
18605 do :
18606   ac_fn_cxx_check_header_mongrel "$LINENO" "phonenumbers/phonenumberutil.h" "ac_cv_header_phonenumbers_phonenumberutil_h" "$ac_includes_default"
18607 if test "x$ac_cv_header_phonenumbers_phonenumberutil_h" = xyes; then :
18608   cat >>confdefs.h <<_ACEOF
18609 #define HAVE_PHONENUMBERS_PHONENUMBERUTIL_H 1
18610 _ACEOF
18611
18612 fi
18613
18614 done
18615
18616                 SAVED_LIBS=$LIBS
18617                 if test ! "$PHONENUMBERS_LIBS"; then
18618                       PHONENUMBERS_LIBS=-lphonenumber
18619                 fi
18620                 LIBS="$LIBS $PHONENUMBERS_LIBS"
18621                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18622 /* end confdefs.h.  */
18623 #include <phonenumbers/phonenumberutil.h>
18624 int
18625 main ()
18626 {
18627 i18n::phonenumbers::PhoneNumberUtil::GetInstance()
18628   ;
18629   return 0;
18630 }
18631 _ACEOF
18632 if ac_fn_cxx_try_link "$LINENO"; then :
18633   true
18634 else
18635   as_fn_error $? "libphonebook not found, set PHONENUMBERS_CFLAGS and PHONENUMBERS_LIBS." "$LINENO" 5
18636 fi
18637 rm -f core conftest.err conftest.$ac_objext \
18638     conftest$ac_exeext conftest.$ac_ext
18639
18640
18641                 LIBS=$SAVED_LIBS
18642                 CPPFLAGS=$SAVED_CPPFLAGS
18643                 ;;
18644     esac
18645 fi
18646  if test "$enable_notify_compat" = "yes"; then
18647   NOTIFY_COMPATIBILITY_TRUE=
18648   NOTIFY_COMPATIBILITY_FALSE='#'
18649 else
18650   NOTIFY_COMPATIBILITY_TRUE='#'
18651   NOTIFY_COMPATIBILITY_FALSE=
18652 fi
18653
18654  if test "$enable_dbus_pim" != "no"; then
18655   COND_DBUS_PIM_TRUE=
18656   COND_DBUS_PIM_FALSE='#'
18657 else
18658   COND_DBUS_PIM_TRUE='#'
18659   COND_DBUS_PIM_FALSE=
18660 fi
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671 DBUS_SERVICES_DIR="${datadir}/dbus-1/services"
18672
18673
18674 cat >>confdefs.h <<_ACEOF
18675 #define DBUS_SERVICES_DIR "$DBUS_SERVICES_DIR"
18676 _ACEOF
18677
18678
18679 if test $enable_gui != "no" || test $enable_dbus_service = "yes"; then
18680
18681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18682 $as_echo_n "checking whether NLS is requested... " >&6; }
18683     # Check whether --enable-nls was given.
18684 if test "${enable_nls+set}" = set; then :
18685   enableval=$enable_nls; USE_NLS=$enableval
18686 else
18687   USE_NLS=yes
18688 fi
18689
18690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18691 $as_echo "$USE_NLS" >&6; }
18692
18693
18694
18695
18696 case "$am__api_version" in
18697     1.01234)
18698         as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
18699     ;;
18700     *)
18701     ;;
18702 esac
18703
18704 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.37.1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
18705 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
18706 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
18707 if test -n "0.37.1"; then
18708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.37.1" >&5
18709 $as_echo_n "checking for intltool >= 0.37.1... " >&6; }
18710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
18711 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
18712     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
18713         as_fn_error $? "Your intltool is too old.  You need intltool 0.37.1 or later." "$LINENO" 5
18714 fi
18715
18716 # Extract the first word of "intltool-update", so it can be a program name with args.
18717 set dummy intltool-update; ac_word=$2
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18719 $as_echo_n "checking for $ac_word... " >&6; }
18720 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
18721   $as_echo_n "(cached) " >&6
18722 else
18723   case $INTLTOOL_UPDATE in
18724   [\\/]* | ?:[\\/]*)
18725   ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
18726   ;;
18727   *)
18728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18729 for as_dir in $PATH
18730 do
18731   IFS=$as_save_IFS
18732   test -z "$as_dir" && as_dir=.
18733     for ac_exec_ext in '' $ac_executable_extensions; do
18734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18735     ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
18736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18737     break 2
18738   fi
18739 done
18740   done
18741 IFS=$as_save_IFS
18742
18743   ;;
18744 esac
18745 fi
18746 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
18747 if test -n "$INTLTOOL_UPDATE"; then
18748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
18749 $as_echo "$INTLTOOL_UPDATE" >&6; }
18750 else
18751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18752 $as_echo "no" >&6; }
18753 fi
18754
18755
18756 # Extract the first word of "intltool-merge", so it can be a program name with args.
18757 set dummy intltool-merge; ac_word=$2
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18759 $as_echo_n "checking for $ac_word... " >&6; }
18760 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
18761   $as_echo_n "(cached) " >&6
18762 else
18763   case $INTLTOOL_MERGE in
18764   [\\/]* | ?:[\\/]*)
18765   ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
18766   ;;
18767   *)
18768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18769 for as_dir in $PATH
18770 do
18771   IFS=$as_save_IFS
18772   test -z "$as_dir" && as_dir=.
18773     for ac_exec_ext in '' $ac_executable_extensions; do
18774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18775     ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
18776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18777     break 2
18778   fi
18779 done
18780   done
18781 IFS=$as_save_IFS
18782
18783   ;;
18784 esac
18785 fi
18786 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
18787 if test -n "$INTLTOOL_MERGE"; then
18788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
18789 $as_echo "$INTLTOOL_MERGE" >&6; }
18790 else
18791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18792 $as_echo "no" >&6; }
18793 fi
18794
18795
18796 # Extract the first word of "intltool-extract", so it can be a program name with args.
18797 set dummy intltool-extract; ac_word=$2
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18799 $as_echo_n "checking for $ac_word... " >&6; }
18800 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
18801   $as_echo_n "(cached) " >&6
18802 else
18803   case $INTLTOOL_EXTRACT in
18804   [\\/]* | ?:[\\/]*)
18805   ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
18806   ;;
18807   *)
18808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18809 for as_dir in $PATH
18810 do
18811   IFS=$as_save_IFS
18812   test -z "$as_dir" && as_dir=.
18813     for ac_exec_ext in '' $ac_executable_extensions; do
18814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18815     ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
18816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18817     break 2
18818   fi
18819 done
18820   done
18821 IFS=$as_save_IFS
18822
18823   ;;
18824 esac
18825 fi
18826 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
18827 if test -n "$INTLTOOL_EXTRACT"; then
18828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
18829 $as_echo "$INTLTOOL_EXTRACT" >&6; }
18830 else
18831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18832 $as_echo "no" >&6; }
18833 fi
18834
18835
18836 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
18837     as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
18838 fi
18839
18840 if test -z "$AM_DEFAULT_VERBOSITY"; then
18841   AM_DEFAULT_VERBOSITY=1
18842 fi
18843
18844
18845 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
18846 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
18847 INTLTOOL__v_MERGE_0='@echo "  ITMRG " $@;'
18848
18849
18850
18851
18852 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
18853 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
18854 intltool__v_merge_options_0='-q'
18855
18856
18857
18858
18859   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 $< $@'
18860 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 $< $@'
18861      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 $< $@'
18862      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 $< $@'
18863       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 $< $@'
18864      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 $< $@'
18865    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 $< $@'
18866     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 $< $@'
18867 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 $< $@'
18868        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 $< $@'
18869       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 $< $@'
18870 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
18871       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 $< $@'
18872 else
18873       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'
18874 fi
18875       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 $< $@'
18876       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 $< $@'
18877     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 $< $@'
18878   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 $< $@'
18879     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 $< $@'
18880     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 $< $@'
18881    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 $< $@'
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979 # Check the gettext tools to make sure they are GNU
18980 # Extract the first word of "xgettext", so it can be a program name with args.
18981 set dummy xgettext; 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_XGETTEXT+:} false; then :
18985   $as_echo_n "(cached) " >&6
18986 else
18987   case $XGETTEXT in
18988   [\\/]* | ?:[\\/]*)
18989   ac_cv_path_XGETTEXT="$XGETTEXT" # 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_XGETTEXT="$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 XGETTEXT=$ac_cv_path_XGETTEXT
19011 if test -n "$XGETTEXT"; then
19012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19013 $as_echo "$XGETTEXT" >&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 "msgmerge", so it can be a program name with args.
19021 set dummy msgmerge; 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_MSGMERGE+:} false; then :
19025   $as_echo_n "(cached) " >&6
19026 else
19027   case $MSGMERGE in
19028   [\\/]* | ?:[\\/]*)
19029   ac_cv_path_MSGMERGE="$MSGMERGE" # 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_MSGMERGE="$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 MSGMERGE=$ac_cv_path_MSGMERGE
19051 if test -n "$MSGMERGE"; then
19052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
19053 $as_echo "$MSGMERGE" >&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 "msgfmt", so it can be a program name with args.
19061 set dummy msgfmt; 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_MSGFMT+:} false; then :
19065   $as_echo_n "(cached) " >&6
19066 else
19067   case $MSGFMT in
19068   [\\/]* | ?:[\\/]*)
19069   ac_cv_path_MSGFMT="$MSGFMT" # 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_MSGFMT="$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 MSGFMT=$ac_cv_path_MSGFMT
19091 if test -n "$MSGFMT"; then
19092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19093 $as_echo "$MSGFMT" >&6; }
19094 else
19095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19096 $as_echo "no" >&6; }
19097 fi
19098
19099
19100 # Extract the first word of "gmsgfmt", so it can be a program name with args.
19101 set dummy gmsgfmt; ac_word=$2
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19103 $as_echo_n "checking for $ac_word... " >&6; }
19104 if ${ac_cv_path_GMSGFMT+:} false; then :
19105   $as_echo_n "(cached) " >&6
19106 else
19107   case $GMSGFMT in
19108   [\\/]* | ?:[\\/]*)
19109   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
19110   ;;
19111   *)
19112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19113 for as_dir in $PATH
19114 do
19115   IFS=$as_save_IFS
19116   test -z "$as_dir" && as_dir=.
19117     for ac_exec_ext in '' $ac_executable_extensions; do
19118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19119     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
19120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19121     break 2
19122   fi
19123 done
19124   done
19125 IFS=$as_save_IFS
19126
19127   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
19128   ;;
19129 esac
19130 fi
19131 GMSGFMT=$ac_cv_path_GMSGFMT
19132 if test -n "$GMSGFMT"; then
19133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
19134 $as_echo "$GMSGFMT" >&6; }
19135 else
19136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19137 $as_echo "no" >&6; }
19138 fi
19139
19140
19141 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
19142     as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
19143 fi
19144 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
19145 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
19146 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
19147 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
19148     as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
19149 fi
19150
19151 # Extract the first word of "perl", so it can be a program name with args.
19152 set dummy perl; ac_word=$2
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19154 $as_echo_n "checking for $ac_word... " >&6; }
19155 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
19156   $as_echo_n "(cached) " >&6
19157 else
19158   case $INTLTOOL_PERL in
19159   [\\/]* | ?:[\\/]*)
19160   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
19161   ;;
19162   *)
19163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19164 for as_dir in $PATH
19165 do
19166   IFS=$as_save_IFS
19167   test -z "$as_dir" && as_dir=.
19168     for ac_exec_ext in '' $ac_executable_extensions; do
19169   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19170     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
19171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19172     break 2
19173   fi
19174 done
19175   done
19176 IFS=$as_save_IFS
19177
19178   ;;
19179 esac
19180 fi
19181 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
19182 if test -n "$INTLTOOL_PERL"; then
19183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
19184 $as_echo "$INTLTOOL_PERL" >&6; }
19185 else
19186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19187 $as_echo "no" >&6; }
19188 fi
19189
19190
19191 if test -z "$INTLTOOL_PERL"; then
19192    as_fn_error $? "perl not found" "$LINENO" 5
19193 fi
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
19195 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
19196 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
19197 if test $? -ne 0; then
19198    as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
19199 else
19200    IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
19201    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
19202 $as_echo "$IT_PERL_VERSION" >&6; }
19203 fi
19204 if test "x" != "xno-xml"; then
19205    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
19206 $as_echo_n "checking for XML::Parser... " >&6; }
19207    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
19208        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
19209 $as_echo "ok" >&6; }
19210    else
19211        as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
19212    fi
19213 fi
19214
19215 # Substitute ALL_LINGUAS so we can use it in po/Makefile
19216
19217
19218 # Set DATADIRNAME correctly if it is not set yet
19219 # (copied from glib-gettext.m4)
19220 if test -z "$DATADIRNAME"; then
19221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19222 /* end confdefs.h.  */
19223
19224 int
19225 main ()
19226 {
19227 extern int _nl_msg_cat_cntr;
19228                        return _nl_msg_cat_cntr
19229   ;
19230   return 0;
19231 }
19232 _ACEOF
19233 if ac_fn_cxx_try_link "$LINENO"; then :
19234   DATADIRNAME=share
19235 else
19236   case $host in
19237     *-*-solaris*)
19238                         ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19239 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19240   DATADIRNAME=share
19241 else
19242   DATADIRNAME=lib
19243 fi
19244
19245     ;;
19246     *)
19247     DATADIRNAME=lib
19248     ;;
19249     esac
19250 fi
19251 rm -f core conftest.err conftest.$ac_objext \
19252     conftest$ac_exeext conftest.$ac_ext
19253 fi
19254
19255
19256
19257
19258
19259     GETTEXT_PACKAGE=syncevolution
19260
19261 cat >>confdefs.h <<_ACEOF
19262 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
19263 _ACEOF
19264
19265
19266    for ac_header in locale.h
19267 do :
19268   ac_fn_cxx_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
19269 if test "x$ac_cv_header_locale_h" = xyes; then :
19270   cat >>confdefs.h <<_ACEOF
19271 #define HAVE_LOCALE_H 1
19272 _ACEOF
19273
19274 fi
19275
19276 done
19277
19278     if test $ac_cv_header_locale_h = yes; then
19279     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19280 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19281 if ${am_cv_val_LC_MESSAGES+:} false; then :
19282   $as_echo_n "(cached) " >&6
19283 else
19284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19285 /* end confdefs.h.  */
19286 #include <locale.h>
19287 int
19288 main ()
19289 {
19290 return LC_MESSAGES
19291   ;
19292   return 0;
19293 }
19294 _ACEOF
19295 if ac_fn_cxx_try_link "$LINENO"; then :
19296   am_cv_val_LC_MESSAGES=yes
19297 else
19298   am_cv_val_LC_MESSAGES=no
19299 fi
19300 rm -f core conftest.err conftest.$ac_objext \
19301     conftest$ac_exeext conftest.$ac_ext
19302 fi
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
19304 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
19305     if test $am_cv_val_LC_MESSAGES = yes; then
19306
19307 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19308
19309     fi
19310   fi
19311      USE_NLS=yes
19312
19313
19314     gt_cv_have_gettext=no
19315
19316     CATOBJEXT=NONE
19317     XGETTEXT=:
19318     INTLLIBS=
19319
19320     ac_fn_cxx_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
19321 if test "x$ac_cv_header_libintl_h" = xyes; then :
19322   gt_cv_func_dgettext_libintl="no"
19323       libintl_extra_libs=""
19324
19325       #
19326       # First check in libc
19327       #
19328       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
19329 $as_echo_n "checking for ngettext in libc... " >&6; }
19330 if ${gt_cv_func_ngettext_libc+:} false; then :
19331   $as_echo_n "(cached) " >&6
19332 else
19333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19334 /* end confdefs.h.  */
19335
19336 #include <libintl.h>
19337
19338 int
19339 main ()
19340 {
19341 return !ngettext ("","", 1)
19342   ;
19343   return 0;
19344 }
19345 _ACEOF
19346 if ac_fn_cxx_try_link "$LINENO"; then :
19347   gt_cv_func_ngettext_libc=yes
19348 else
19349   gt_cv_func_ngettext_libc=no
19350 fi
19351 rm -f core conftest.err conftest.$ac_objext \
19352     conftest$ac_exeext conftest.$ac_ext
19353
19354 fi
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
19356 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
19357
19358       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
19359               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
19360 $as_echo_n "checking for dgettext in libc... " >&6; }
19361 if ${gt_cv_func_dgettext_libc+:} false; then :
19362   $as_echo_n "(cached) " >&6
19363 else
19364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19365 /* end confdefs.h.  */
19366
19367 #include <libintl.h>
19368
19369 int
19370 main ()
19371 {
19372 return !dgettext ("","")
19373   ;
19374   return 0;
19375 }
19376 _ACEOF
19377 if ac_fn_cxx_try_link "$LINENO"; then :
19378   gt_cv_func_dgettext_libc=yes
19379 else
19380   gt_cv_func_dgettext_libc=no
19381 fi
19382 rm -f core conftest.err conftest.$ac_objext \
19383     conftest$ac_exeext conftest.$ac_ext
19384
19385 fi
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
19387 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
19388       fi
19389
19390       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
19391         for ac_func in bind_textdomain_codeset
19392 do :
19393   ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19394 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19395   cat >>confdefs.h <<_ACEOF
19396 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19397 _ACEOF
19398
19399 fi
19400 done
19401
19402       fi
19403
19404       #
19405       # If we don't have everything we want, check in libintl
19406       #
19407       if test "$gt_cv_func_dgettext_libc" != "yes" \
19408          || test "$gt_cv_func_ngettext_libc" != "yes" \
19409          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
19410
19411         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
19412 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
19413 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
19414   $as_echo_n "(cached) " >&6
19415 else
19416   ac_check_lib_save_LIBS=$LIBS
19417 LIBS="-lintl  $LIBS"
19418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19419 /* end confdefs.h.  */
19420
19421 /* Override any GCC internal prototype to avoid an error.
19422    Use char because int might match the return type of a GCC
19423    builtin and then its argument prototype would still apply.  */
19424 #ifdef __cplusplus
19425 extern "C"
19426 #endif
19427 char bindtextdomain ();
19428 int
19429 main ()
19430 {
19431 return bindtextdomain ();
19432   ;
19433   return 0;
19434 }
19435 _ACEOF
19436 if ac_fn_cxx_try_link "$LINENO"; then :
19437   ac_cv_lib_intl_bindtextdomain=yes
19438 else
19439   ac_cv_lib_intl_bindtextdomain=no
19440 fi
19441 rm -f core conftest.err conftest.$ac_objext \
19442     conftest$ac_exeext conftest.$ac_ext
19443 LIBS=$ac_check_lib_save_LIBS
19444 fi
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
19446 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
19447 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
19448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
19449 $as_echo_n "checking for ngettext in -lintl... " >&6; }
19450 if ${ac_cv_lib_intl_ngettext+:} false; then :
19451   $as_echo_n "(cached) " >&6
19452 else
19453   ac_check_lib_save_LIBS=$LIBS
19454 LIBS="-lintl  $LIBS"
19455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19456 /* end confdefs.h.  */
19457
19458 /* Override any GCC internal prototype to avoid an error.
19459    Use char because int might match the return type of a GCC
19460    builtin and then its argument prototype would still apply.  */
19461 #ifdef __cplusplus
19462 extern "C"
19463 #endif
19464 char ngettext ();
19465 int
19466 main ()
19467 {
19468 return ngettext ();
19469   ;
19470   return 0;
19471 }
19472 _ACEOF
19473 if ac_fn_cxx_try_link "$LINENO"; then :
19474   ac_cv_lib_intl_ngettext=yes
19475 else
19476   ac_cv_lib_intl_ngettext=no
19477 fi
19478 rm -f core conftest.err conftest.$ac_objext \
19479     conftest$ac_exeext conftest.$ac_ext
19480 LIBS=$ac_check_lib_save_LIBS
19481 fi
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
19483 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
19484 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
19485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
19486 $as_echo_n "checking for dgettext in -lintl... " >&6; }
19487 if ${ac_cv_lib_intl_dgettext+:} false; then :
19488   $as_echo_n "(cached) " >&6
19489 else
19490   ac_check_lib_save_LIBS=$LIBS
19491 LIBS="-lintl  $LIBS"
19492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19493 /* end confdefs.h.  */
19494
19495 /* Override any GCC internal prototype to avoid an error.
19496    Use char because int might match the return type of a GCC
19497    builtin and then its argument prototype would still apply.  */
19498 #ifdef __cplusplus
19499 extern "C"
19500 #endif
19501 char dgettext ();
19502 int
19503 main ()
19504 {
19505 return dgettext ();
19506   ;
19507   return 0;
19508 }
19509 _ACEOF
19510 if ac_fn_cxx_try_link "$LINENO"; then :
19511   ac_cv_lib_intl_dgettext=yes
19512 else
19513   ac_cv_lib_intl_dgettext=no
19514 fi
19515 rm -f core conftest.err conftest.$ac_objext \
19516     conftest$ac_exeext conftest.$ac_ext
19517 LIBS=$ac_check_lib_save_LIBS
19518 fi
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
19520 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19521 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
19522   gt_cv_func_dgettext_libintl=yes
19523 fi
19524
19525 fi
19526
19527 fi
19528
19529
19530         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
19531           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
19532 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
19533           { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
19534 $as_echo "" >&6; }
19535           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
19536 $as_echo_n "checking for ngettext in -lintl... " >&6; }
19537 if ${ac_cv_lib_intl_ngettext+:} false; then :
19538   $as_echo_n "(cached) " >&6
19539 else
19540   ac_check_lib_save_LIBS=$LIBS
19541 LIBS="-lintl -liconv $LIBS"
19542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19543 /* end confdefs.h.  */
19544
19545 /* Override any GCC internal prototype to avoid an error.
19546    Use char because int might match the return type of a GCC
19547    builtin and then its argument prototype would still apply.  */
19548 #ifdef __cplusplus
19549 extern "C"
19550 #endif
19551 char ngettext ();
19552 int
19553 main ()
19554 {
19555 return ngettext ();
19556   ;
19557   return 0;
19558 }
19559 _ACEOF
19560 if ac_fn_cxx_try_link "$LINENO"; then :
19561   ac_cv_lib_intl_ngettext=yes
19562 else
19563   ac_cv_lib_intl_ngettext=no
19564 fi
19565 rm -f core conftest.err conftest.$ac_objext \
19566     conftest$ac_exeext conftest.$ac_ext
19567 LIBS=$ac_check_lib_save_LIBS
19568 fi
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
19570 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
19571 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
19572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
19573 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
19574 if ${ac_cv_lib_intl_dcgettext+:} false; then :
19575   $as_echo_n "(cached) " >&6
19576 else
19577   ac_check_lib_save_LIBS=$LIBS
19578 LIBS="-lintl -liconv $LIBS"
19579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19580 /* end confdefs.h.  */
19581
19582 /* Override any GCC internal prototype to avoid an error.
19583    Use char because int might match the return type of a GCC
19584    builtin and then its argument prototype would still apply.  */
19585 #ifdef __cplusplus
19586 extern "C"
19587 #endif
19588 char dcgettext ();
19589 int
19590 main ()
19591 {
19592 return dcgettext ();
19593   ;
19594   return 0;
19595 }
19596 _ACEOF
19597 if ac_fn_cxx_try_link "$LINENO"; then :
19598   ac_cv_lib_intl_dcgettext=yes
19599 else
19600   ac_cv_lib_intl_dcgettext=no
19601 fi
19602 rm -f core conftest.err conftest.$ac_objext \
19603     conftest$ac_exeext conftest.$ac_ext
19604 LIBS=$ac_check_lib_save_LIBS
19605 fi
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
19607 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
19608 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
19609   gt_cv_func_dgettext_libintl=yes
19610                         libintl_extra_libs=-liconv
19611 else
19612   :
19613 fi
19614
19615 else
19616   :
19617 fi
19618
19619         fi
19620
19621         #
19622         # If we found libintl, then check in it for bind_textdomain_codeset();
19623         # we'll prefer libc if neither have bind_textdomain_codeset(),
19624         # and both have dgettext and ngettext
19625         #
19626         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
19627           glib_save_LIBS="$LIBS"
19628           LIBS="$LIBS -lintl $libintl_extra_libs"
19629           unset ac_cv_func_bind_textdomain_codeset
19630           for ac_func in bind_textdomain_codeset
19631 do :
19632   ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19633 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19634   cat >>confdefs.h <<_ACEOF
19635 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19636 _ACEOF
19637
19638 fi
19639 done
19640
19641           LIBS="$glib_save_LIBS"
19642
19643           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
19644             gt_cv_func_dgettext_libc=no
19645           else
19646             if test "$gt_cv_func_dgettext_libc" = "yes" \
19647                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
19648               gt_cv_func_dgettext_libintl=no
19649             fi
19650           fi
19651         fi
19652       fi
19653
19654       if test "$gt_cv_func_dgettext_libc" = "yes" \
19655         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
19656         gt_cv_have_gettext=yes
19657       fi
19658
19659       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
19660         INTLLIBS="-lintl $libintl_extra_libs"
19661       fi
19662
19663       if test "$gt_cv_have_gettext" = "yes"; then
19664
19665 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
19666
19667         # Extract the first word of "msgfmt", so it can be a program name with args.
19668 set dummy msgfmt; ac_word=$2
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19670 $as_echo_n "checking for $ac_word... " >&6; }
19671 if ${ac_cv_path_MSGFMT+:} false; then :
19672   $as_echo_n "(cached) " >&6
19673 else
19674   case "$MSGFMT" in
19675   /*)
19676   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19677   ;;
19678   *)
19679   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
19680   for ac_dir in $PATH; do
19681     test -z "$ac_dir" && ac_dir=.
19682     if test -f $ac_dir/$ac_word; then
19683       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
19684         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
19685         break
19686       fi
19687     fi
19688   done
19689   IFS="$ac_save_ifs"
19690   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
19691   ;;
19692 esac
19693 fi
19694 MSGFMT="$ac_cv_path_MSGFMT"
19695 if test "$MSGFMT" != "no"; then
19696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19697 $as_echo "$MSGFMT" >&6; }
19698 else
19699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19700 $as_echo "no" >&6; }
19701 fi
19702         if test "$MSGFMT" != "no"; then
19703           glib_save_LIBS="$LIBS"
19704           LIBS="$LIBS $INTLLIBS"
19705           for ac_func in dcgettext
19706 do :
19707   ac_fn_cxx_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
19708 if test "x$ac_cv_func_dcgettext" = xyes; then :
19709   cat >>confdefs.h <<_ACEOF
19710 #define HAVE_DCGETTEXT 1
19711 _ACEOF
19712
19713 fi
19714 done
19715
19716           MSGFMT_OPTS=
19717           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
19718 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
19719           cat >conftest.foo <<_ACEOF
19720
19721 msgid ""
19722 msgstr ""
19723 "Content-Type: text/plain; charset=UTF-8\n"
19724 "Project-Id-Version: test 1.0\n"
19725 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
19726 "Last-Translator: test <foo@bar.xx>\n"
19727 "Language-Team: C <LL@li.org>\n"
19728 "MIME-Version: 1.0\n"
19729 "Content-Transfer-Encoding: 8bit\n"
19730
19731 _ACEOF
19732 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
19733   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
19734   ac_status=$?
19735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19736   test $ac_status = 0; }; then
19737   MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19738 $as_echo "yes" >&6; }
19739 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19740 $as_echo "no" >&6; }
19741 echo "$as_me: failed input was:" >&5
19742 sed 's/^/| /' conftest.foo >&5
19743 fi
19744
19745           # Extract the first word of "gmsgfmt", so it can be a program name with args.
19746 set dummy gmsgfmt; ac_word=$2
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19748 $as_echo_n "checking for $ac_word... " >&6; }
19749 if ${ac_cv_path_GMSGFMT+:} false; then :
19750   $as_echo_n "(cached) " >&6
19751 else
19752   case $GMSGFMT in
19753   [\\/]* | ?:[\\/]*)
19754   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
19755   ;;
19756   *)
19757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19758 for as_dir in $PATH
19759 do
19760   IFS=$as_save_IFS
19761   test -z "$as_dir" && as_dir=.
19762     for ac_exec_ext in '' $ac_executable_extensions; do
19763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19764     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
19765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19766     break 2
19767   fi
19768 done
19769   done
19770 IFS=$as_save_IFS
19771
19772   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
19773   ;;
19774 esac
19775 fi
19776 GMSGFMT=$ac_cv_path_GMSGFMT
19777 if test -n "$GMSGFMT"; then
19778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
19779 $as_echo "$GMSGFMT" >&6; }
19780 else
19781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19782 $as_echo "no" >&6; }
19783 fi
19784
19785
19786           # Extract the first word of "xgettext", so it can be a program name with args.
19787 set dummy xgettext; ac_word=$2
19788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19789 $as_echo_n "checking for $ac_word... " >&6; }
19790 if ${ac_cv_path_XGETTEXT+:} false; then :
19791   $as_echo_n "(cached) " >&6
19792 else
19793   case "$XGETTEXT" in
19794   /*)
19795   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19796   ;;
19797   *)
19798   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
19799   for ac_dir in $PATH; do
19800     test -z "$ac_dir" && ac_dir=.
19801     if test -f $ac_dir/$ac_word; then
19802       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
19803         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
19804         break
19805       fi
19806     fi
19807   done
19808   IFS="$ac_save_ifs"
19809   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
19810   ;;
19811 esac
19812 fi
19813 XGETTEXT="$ac_cv_path_XGETTEXT"
19814 if test "$XGETTEXT" != ":"; then
19815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19816 $as_echo "$XGETTEXT" >&6; }
19817 else
19818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19819 $as_echo "no" >&6; }
19820 fi
19821
19822           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19823 /* end confdefs.h.  */
19824
19825 int
19826 main ()
19827 {
19828 extern int _nl_msg_cat_cntr;
19829                          return _nl_msg_cat_cntr
19830   ;
19831   return 0;
19832 }
19833 _ACEOF
19834 if ac_fn_cxx_try_link "$LINENO"; then :
19835   CATOBJEXT=.gmo
19836              DATADIRNAME=share
19837 else
19838   case $host in
19839             *-*-solaris*)
19840                                                                 ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19841 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19842   CATOBJEXT=.gmo
19843                DATADIRNAME=share
19844 else
19845   CATOBJEXT=.mo
19846                DATADIRNAME=lib
19847 fi
19848
19849             ;;
19850             *-*-openbsd*)
19851             CATOBJEXT=.mo
19852             DATADIRNAME=share
19853             ;;
19854             *)
19855             CATOBJEXT=.mo
19856             DATADIRNAME=lib
19857             ;;
19858             esac
19859 fi
19860 rm -f core conftest.err conftest.$ac_objext \
19861     conftest$ac_exeext conftest.$ac_ext
19862           LIBS="$glib_save_LIBS"
19863           INSTOBJEXT=.mo
19864         else
19865           gt_cv_have_gettext=no
19866         fi
19867       fi
19868
19869 fi
19870
19871
19872
19873     if test "$gt_cv_have_gettext" = "yes" ; then
19874
19875 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19876
19877     fi
19878
19879         if test "$XGETTEXT" != ":"; then
19880                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
19881         : ;
19882       else
19883         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
19884 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
19885         XGETTEXT=":"
19886       fi
19887     fi
19888
19889     # We need to process the po/ directory.
19890     POSUB=po
19891
19892     ac_config_commands="$ac_config_commands default-1"
19893
19894
19895                 for lang in $ALL_LINGUAS; do
19896       GMOFILES="$GMOFILES $lang.gmo"
19897       POFILES="$POFILES $lang.po"
19898     done
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912    if test "$gt_cv_have_gettext" = "yes"; then
19913      if test "x$ALL_LINGUAS" = "x"; then
19914        LINGUAS=
19915      else
19916        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
19917 $as_echo_n "checking for catalogs to be installed... " >&6; }
19918        NEW_LINGUAS=
19919        for presentlang in $ALL_LINGUAS; do
19920          useit=no
19921          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
19922            desiredlanguages="$LINGUAS"
19923          else
19924            desiredlanguages="$ALL_LINGUAS"
19925          fi
19926          for desiredlang in $desiredlanguages; do
19927            # Use the presentlang catalog if desiredlang is
19928            #   a. equal to presentlang, or
19929            #   b. a variant of presentlang (because in this case,
19930            #      presentlang can be used as a fallback for messages
19931            #      which are not translated in the desiredlang catalog).
19932            case "$desiredlang" in
19933              "$presentlang"*) useit=yes;;
19934            esac
19935          done
19936          if test $useit = yes; then
19937            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
19938          fi
19939        done
19940        LINGUAS=$NEW_LINGUAS
19941        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
19942 $as_echo "$LINGUAS" >&6; }
19943      fi
19944
19945           if test -n "$LINGUAS"; then
19946        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
19947      fi
19948    fi
19949
19950             MKINSTALLDIRS=
19951    if test -n "$ac_aux_dir"; then
19952      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
19953    fi
19954    if test -z "$MKINSTALLDIRS"; then
19955      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
19956    fi
19957
19958
19959          test -d po || mkdir po
19960    if test "x$srcdir" != "x."; then
19961      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
19962        posrcprefix="$srcdir/"
19963      else
19964        posrcprefix="../$srcdir/"
19965      fi
19966    else
19967      posrcprefix="../"
19968    fi
19969    rm -f po/POTFILES
19970    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
19971         < $srcdir/po/POTFILES.in > po/POTFILES
19972
19973     SYNCEVOLUTION_LOCALEDIR=${datadir}/locale
19974 fi
19975
19976 # decide which sync-ui(s) we are building:
19977 # sync-ui (in either GTK or Moblin mode) or both (in separate binaries)
19978
19979 if test $gtk_version = "gtk+-3.0"; then
19980     gtk_dir=src/gtk3-ui
19981 else
19982     gtk_dir=src/gtk-ui
19983 fi
19984
19985 case $enable_gui in
19986      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";;
19987      gtk|moblin) GUI_PROGRAMS=${gtk_dir}'/sync-ui${EXEEXT}'; GUI_DESKTOP_FILES="${gtk_dir}/sync.desktop";;
19988      no) GUI_PROGRAMS=; GUI_DESKTOP_FILES=;;
19989      *) as_fn_error $? "Unknown enable_gui type: '$enable_gui'" "$LINENO" 5
19990 esac
19991
19992 if test $enable_gui != "no"; then
19993
19994 pkg_failed=no
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS_GLIB" >&5
19996 $as_echo_n "checking for DBUS_GLIB... " >&6; }
19997
19998 if test -n "$DBUS_GLIB_CFLAGS"; then
19999     pkg_cv_DBUS_GLIB_CFLAGS="$DBUS_GLIB_CFLAGS"
20000  elif test -n "$PKG_CONFIG"; then
20001     if test -n "$PKG_CONFIG" && \
20002     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 glib-2.0\""; } >&5
20003   ($PKG_CONFIG --exists --print-errors "dbus-glib-1 glib-2.0") 2>&5
20004   ac_status=$?
20005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20006   test $ac_status = 0; }; then
20007   pkg_cv_DBUS_GLIB_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 glib-2.0" 2>/dev/null`
20008                       test "x$?" != "x0" && pkg_failed=yes
20009 else
20010   pkg_failed=yes
20011 fi
20012  else
20013     pkg_failed=untried
20014 fi
20015 if test -n "$DBUS_GLIB_LIBS"; then
20016     pkg_cv_DBUS_GLIB_LIBS="$DBUS_GLIB_LIBS"
20017  elif test -n "$PKG_CONFIG"; then
20018     if test -n "$PKG_CONFIG" && \
20019     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 glib-2.0\""; } >&5
20020   ($PKG_CONFIG --exists --print-errors "dbus-glib-1 glib-2.0") 2>&5
20021   ac_status=$?
20022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20023   test $ac_status = 0; }; then
20024   pkg_cv_DBUS_GLIB_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 glib-2.0" 2>/dev/null`
20025                       test "x$?" != "x0" && pkg_failed=yes
20026 else
20027   pkg_failed=yes
20028 fi
20029  else
20030     pkg_failed=untried
20031 fi
20032
20033
20034
20035 if test $pkg_failed = yes; then
20036         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20037 $as_echo "no" >&6; }
20038
20039 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20040         _pkg_short_errors_supported=yes
20041 else
20042         _pkg_short_errors_supported=no
20043 fi
20044         if test $_pkg_short_errors_supported = yes; then
20045                 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-glib-1 glib-2.0" 2>&1`
20046         else
20047                 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-glib-1 glib-2.0" 2>&1`
20048         fi
20049         # Put the nasty error message in config.log where it belongs
20050         echo "$DBUS_GLIB_PKG_ERRORS" >&5
20051
20052         as_fn_error $? "Package requirements (dbus-glib-1 glib-2.0) were not met:
20053
20054 $DBUS_GLIB_PKG_ERRORS
20055
20056 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20057 installed software in a non-standard prefix.
20058
20059 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
20060 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
20061 See the pkg-config man page for more details." "$LINENO" 5
20062 elif test $pkg_failed = untried; then
20063         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20064 $as_echo "no" >&6; }
20065         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20067 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20068 is in your PATH or set the PKG_CONFIG environment variable to the full
20069 path to pkg-config.
20070
20071 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
20072 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
20073 See the pkg-config man page for more details.
20074
20075 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20076 See \`config.log' for more details" "$LINENO" 5; }
20077 else
20078         DBUS_GLIB_CFLAGS=$pkg_cv_DBUS_GLIB_CFLAGS
20079         DBUS_GLIB_LIBS=$pkg_cv_DBUS_GLIB_LIBS
20080         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20081 $as_echo "yes" >&6; }
20082
20083 fi
20084     # Extract the first word of "dbus-binding-tool", so it can be a program name with args.
20085 set dummy dbus-binding-tool; ac_word=$2
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20087 $as_echo_n "checking for $ac_word... " >&6; }
20088 if ${ac_cv_path_DBUS_BINDING_TOOL+:} false; then :
20089   $as_echo_n "(cached) " >&6
20090 else
20091   case $DBUS_BINDING_TOOL in
20092   [\\/]* | ?:[\\/]*)
20093   ac_cv_path_DBUS_BINDING_TOOL="$DBUS_BINDING_TOOL" # Let the user override the test with a path.
20094   ;;
20095   *)
20096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20097 for as_dir in $PATH
20098 do
20099   IFS=$as_save_IFS
20100   test -z "$as_dir" && as_dir=.
20101     for ac_exec_ext in '' $ac_executable_extensions; do
20102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20103     ac_cv_path_DBUS_BINDING_TOOL="$as_dir/$ac_word$ac_exec_ext"
20104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20105     break 2
20106   fi
20107 done
20108   done
20109 IFS=$as_save_IFS
20110
20111   ;;
20112 esac
20113 fi
20114 DBUS_BINDING_TOOL=$ac_cv_path_DBUS_BINDING_TOOL
20115 if test -n "$DBUS_BINDING_TOOL"; then
20116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_BINDING_TOOL" >&5
20117 $as_echo "$DBUS_BINDING_TOOL" >&6; }
20118 else
20119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20120 $as_echo "no" >&6; }
20121 fi
20122
20123
20124     # Extract the first word of "glib-genmarshal", so it can be a program name with args.
20125 set dummy glib-genmarshal; ac_word=$2
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20127 $as_echo_n "checking for $ac_word... " >&6; }
20128 if ${ac_cv_path_GLIB_GENMARSHAL+:} false; then :
20129   $as_echo_n "(cached) " >&6
20130 else
20131   case $GLIB_GENMARSHAL in
20132   [\\/]* | ?:[\\/]*)
20133   ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
20134   ;;
20135   *)
20136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20137 for as_dir in $PATH
20138 do
20139   IFS=$as_save_IFS
20140   test -z "$as_dir" && as_dir=.
20141     for ac_exec_ext in '' $ac_executable_extensions; do
20142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20143     ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
20144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20145     break 2
20146   fi
20147 done
20148   done
20149 IFS=$as_save_IFS
20150
20151   ;;
20152 esac
20153 fi
20154 GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
20155 if test -n "$GLIB_GENMARSHAL"; then
20156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL" >&5
20157 $as_echo "$GLIB_GENMARSHAL" >&6; }
20158 else
20159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20160 $as_echo "no" >&6; }
20161 fi
20162
20163
20164
20165     gui_modules="$gtk_version glib-2.0 dbus-glib-1 >= 0.60 gio-2.0 gio-unix-2.0"
20166     if test $enable_gui = "moblin"; then
20167
20168 $as_echo "#define USE_MOBLIN_UX 1" >>confdefs.h
20169
20170     fi
20171
20172     # gtk3 provides a switch widget, otherwise we need mx-gtk
20173     if test $gtk_version != "gtk+-3.0" &&
20174        test $enable_gui = "moblin" -o $enable_gui = "all"; then
20175         gui_modules="$gui_modules mx-gtk-1.0"
20176
20177
20178 pkg_failed=no
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MX_GTK_0_99_1" >&5
20180 $as_echo_n "checking for MX_GTK_0_99_1... " >&6; }
20181
20182 if test -n "$MX_GTK_0_99_1_CFLAGS"; then
20183     pkg_cv_MX_GTK_0_99_1_CFLAGS="$MX_GTK_0_99_1_CFLAGS"
20184  elif test -n "$PKG_CONFIG"; then
20185     if test -n "$PKG_CONFIG" && \
20186     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mx-gtk-1.0 >= 0.99.1\""; } >&5
20187   ($PKG_CONFIG --exists --print-errors "mx-gtk-1.0 >= 0.99.1") 2>&5
20188   ac_status=$?
20189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20190   test $ac_status = 0; }; then
20191   pkg_cv_MX_GTK_0_99_1_CFLAGS=`$PKG_CONFIG --cflags "mx-gtk-1.0 >= 0.99.1" 2>/dev/null`
20192                       test "x$?" != "x0" && pkg_failed=yes
20193 else
20194   pkg_failed=yes
20195 fi
20196  else
20197     pkg_failed=untried
20198 fi
20199 if test -n "$MX_GTK_0_99_1_LIBS"; then
20200     pkg_cv_MX_GTK_0_99_1_LIBS="$MX_GTK_0_99_1_LIBS"
20201  elif test -n "$PKG_CONFIG"; then
20202     if test -n "$PKG_CONFIG" && \
20203     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mx-gtk-1.0 >= 0.99.1\""; } >&5
20204   ($PKG_CONFIG --exists --print-errors "mx-gtk-1.0 >= 0.99.1") 2>&5
20205   ac_status=$?
20206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20207   test $ac_status = 0; }; then
20208   pkg_cv_MX_GTK_0_99_1_LIBS=`$PKG_CONFIG --libs "mx-gtk-1.0 >= 0.99.1" 2>/dev/null`
20209                       test "x$?" != "x0" && pkg_failed=yes
20210 else
20211   pkg_failed=yes
20212 fi
20213  else
20214     pkg_failed=untried
20215 fi
20216
20217
20218
20219 if test $pkg_failed = yes; then
20220         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20221 $as_echo "no" >&6; }
20222
20223 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20224         _pkg_short_errors_supported=yes
20225 else
20226         _pkg_short_errors_supported=no
20227 fi
20228         if test $_pkg_short_errors_supported = yes; then
20229                 MX_GTK_0_99_1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mx-gtk-1.0 >= 0.99.1" 2>&1`
20230         else
20231                 MX_GTK_0_99_1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mx-gtk-1.0 >= 0.99.1" 2>&1`
20232         fi
20233         # Put the nasty error message in config.log where it belongs
20234         echo "$MX_GTK_0_99_1_PKG_ERRORS" >&5
20235
20236         have_mx_gtk_0_99_1="no"
20237 elif test $pkg_failed = untried; then
20238         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20239 $as_echo "no" >&6; }
20240         have_mx_gtk_0_99_1="no"
20241 else
20242         MX_GTK_0_99_1_CFLAGS=$pkg_cv_MX_GTK_0_99_1_CFLAGS
20243         MX_GTK_0_99_1_LIBS=$pkg_cv_MX_GTK_0_99_1_LIBS
20244         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20245 $as_echo "yes" >&6; }
20246         have_mx_gtk_0_99_1="yes"
20247 fi
20248         if test $have_mx_gtk_0_99_1 = "yes"; then
20249
20250 $as_echo "#define MX_GTK_0_99_1 1" >>confdefs.h
20251
20252         fi
20253     fi
20254
20255
20256 pkg_failed=no
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQUE" >&5
20258 $as_echo_n "checking for UNIQUE... " >&6; }
20259
20260 if test -n "$UNIQUE_CFLAGS"; then
20261     pkg_cv_UNIQUE_CFLAGS="$UNIQUE_CFLAGS"
20262  elif test -n "$PKG_CONFIG"; then
20263     if test -n "$PKG_CONFIG" && \
20264     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unique-1.0\""; } >&5
20265   ($PKG_CONFIG --exists --print-errors "unique-1.0") 2>&5
20266   ac_status=$?
20267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20268   test $ac_status = 0; }; then
20269   pkg_cv_UNIQUE_CFLAGS=`$PKG_CONFIG --cflags "unique-1.0" 2>/dev/null`
20270                       test "x$?" != "x0" && pkg_failed=yes
20271 else
20272   pkg_failed=yes
20273 fi
20274  else
20275     pkg_failed=untried
20276 fi
20277 if test -n "$UNIQUE_LIBS"; then
20278     pkg_cv_UNIQUE_LIBS="$UNIQUE_LIBS"
20279  elif test -n "$PKG_CONFIG"; then
20280     if test -n "$PKG_CONFIG" && \
20281     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unique-1.0\""; } >&5
20282   ($PKG_CONFIG --exists --print-errors "unique-1.0") 2>&5
20283   ac_status=$?
20284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20285   test $ac_status = 0; }; then
20286   pkg_cv_UNIQUE_LIBS=`$PKG_CONFIG --libs "unique-1.0" 2>/dev/null`
20287                       test "x$?" != "x0" && pkg_failed=yes
20288 else
20289   pkg_failed=yes
20290 fi
20291  else
20292     pkg_failed=untried
20293 fi
20294
20295
20296
20297 if test $pkg_failed = yes; then
20298         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20299 $as_echo "no" >&6; }
20300
20301 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20302         _pkg_short_errors_supported=yes
20303 else
20304         _pkg_short_errors_supported=no
20305 fi
20306         if test $_pkg_short_errors_supported = yes; then
20307                 UNIQUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unique-1.0" 2>&1`
20308         else
20309                 UNIQUE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unique-1.0" 2>&1`
20310         fi
20311         # Put the nasty error message in config.log where it belongs
20312         echo "$UNIQUE_PKG_ERRORS" >&5
20313
20314         have_unique="no"
20315 elif test $pkg_failed = untried; then
20316         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20317 $as_echo "no" >&6; }
20318         have_unique="no"
20319 else
20320         UNIQUE_CFLAGS=$pkg_cv_UNIQUE_CFLAGS
20321         UNIQUE_LIBS=$pkg_cv_UNIQUE_LIBS
20322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20323 $as_echo "yes" >&6; }
20324         have_unique="yes"
20325 fi
20326     if test $have_unique = "yes"; then
20327         gui_modules="$gui_modules unique-1.0"
20328
20329 $as_echo "#define ENABLE_UNIQUE 1" >>confdefs.h
20330
20331     fi
20332
20333
20334 pkg_failed=no
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK_2_18" >&5
20336 $as_echo_n "checking for GTK_2_18... " >&6; }
20337
20338 if test -n "$GTK_2_18_CFLAGS"; then
20339     pkg_cv_GTK_2_18_CFLAGS="$GTK_2_18_CFLAGS"
20340  elif test -n "$PKG_CONFIG"; then
20341     if test -n "$PKG_CONFIG" && \
20342     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
20343   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
20344   ac_status=$?
20345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20346   test $ac_status = 0; }; then
20347   pkg_cv_GTK_2_18_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
20348                       test "x$?" != "x0" && pkg_failed=yes
20349 else
20350   pkg_failed=yes
20351 fi
20352  else
20353     pkg_failed=untried
20354 fi
20355 if test -n "$GTK_2_18_LIBS"; then
20356     pkg_cv_GTK_2_18_LIBS="$GTK_2_18_LIBS"
20357  elif test -n "$PKG_CONFIG"; then
20358     if test -n "$PKG_CONFIG" && \
20359     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
20360   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
20361   ac_status=$?
20362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20363   test $ac_status = 0; }; then
20364   pkg_cv_GTK_2_18_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
20365                       test "x$?" != "x0" && pkg_failed=yes
20366 else
20367   pkg_failed=yes
20368 fi
20369  else
20370     pkg_failed=untried
20371 fi
20372
20373
20374
20375 if test $pkg_failed = yes; then
20376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20377 $as_echo "no" >&6; }
20378
20379 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20380         _pkg_short_errors_supported=yes
20381 else
20382         _pkg_short_errors_supported=no
20383 fi
20384         if test $_pkg_short_errors_supported = yes; then
20385                 GTK_2_18_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
20386         else
20387                 GTK_2_18_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
20388         fi
20389         # Put the nasty error message in config.log where it belongs
20390         echo "$GTK_2_18_PKG_ERRORS" >&5
20391
20392         have_gtk_2_18="no"
20393 elif test $pkg_failed = untried; then
20394         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20395 $as_echo "no" >&6; }
20396         have_gtk_2_18="no"
20397 else
20398         GTK_2_18_CFLAGS=$pkg_cv_GTK_2_18_CFLAGS
20399         GTK_2_18_LIBS=$pkg_cv_GTK_2_18_LIBS
20400         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20401 $as_echo "yes" >&6; }
20402         have_gtk_2_18="yes"
20403 fi
20404     if test $have_gtk_2_18 = "yes"; then
20405
20406 $as_echo "#define GTK_2_18 1" >>confdefs.h
20407
20408     fi
20409
20410
20411 pkg_failed=no
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUI" >&5
20413 $as_echo_n "checking for GUI... " >&6; }
20414
20415 if test -n "$GUI_CFLAGS"; then
20416     pkg_cv_GUI_CFLAGS="$GUI_CFLAGS"
20417  elif test -n "$PKG_CONFIG"; then
20418     if test -n "$PKG_CONFIG" && \
20419     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gui_modules\""; } >&5
20420   ($PKG_CONFIG --exists --print-errors "$gui_modules") 2>&5
20421   ac_status=$?
20422   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20423   test $ac_status = 0; }; then
20424   pkg_cv_GUI_CFLAGS=`$PKG_CONFIG --cflags "$gui_modules" 2>/dev/null`
20425                       test "x$?" != "x0" && pkg_failed=yes
20426 else
20427   pkg_failed=yes
20428 fi
20429  else
20430     pkg_failed=untried
20431 fi
20432 if test -n "$GUI_LIBS"; then
20433     pkg_cv_GUI_LIBS="$GUI_LIBS"
20434  elif test -n "$PKG_CONFIG"; then
20435     if test -n "$PKG_CONFIG" && \
20436     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gui_modules\""; } >&5
20437   ($PKG_CONFIG --exists --print-errors "$gui_modules") 2>&5
20438   ac_status=$?
20439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20440   test $ac_status = 0; }; then
20441   pkg_cv_GUI_LIBS=`$PKG_CONFIG --libs "$gui_modules" 2>/dev/null`
20442                       test "x$?" != "x0" && pkg_failed=yes
20443 else
20444   pkg_failed=yes
20445 fi
20446  else
20447     pkg_failed=untried
20448 fi
20449
20450
20451
20452 if test $pkg_failed = yes; then
20453         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20454 $as_echo "no" >&6; }
20455
20456 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20457         _pkg_short_errors_supported=yes
20458 else
20459         _pkg_short_errors_supported=no
20460 fi
20461         if test $_pkg_short_errors_supported = yes; then
20462                 GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$gui_modules" 2>&1`
20463         else
20464                 GUI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$gui_modules" 2>&1`
20465         fi
20466         # Put the nasty error message in config.log where it belongs
20467         echo "$GUI_PKG_ERRORS" >&5
20468
20469         as_fn_error $? "Package requirements ($gui_modules) were not met:
20470
20471 $GUI_PKG_ERRORS
20472
20473 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20474 installed software in a non-standard prefix.
20475
20476 Alternatively, you may set the environment variables GUI_CFLAGS
20477 and GUI_LIBS to avoid the need to call pkg-config.
20478 See the pkg-config man page for more details." "$LINENO" 5
20479 elif test $pkg_failed = untried; then
20480         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20481 $as_echo "no" >&6; }
20482         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20484 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20485 is in your PATH or set the PKG_CONFIG environment variable to the full
20486 path to pkg-config.
20487
20488 Alternatively, you may set the environment variables GUI_CFLAGS
20489 and GUI_LIBS to avoid the need to call pkg-config.
20490 See the pkg-config man page for more details.
20491
20492 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20493 See \`config.log' for more details" "$LINENO" 5; }
20494 else
20495         GUI_CFLAGS=$pkg_cv_GUI_CFLAGS
20496         GUI_LIBS=$pkg_cv_GUI_LIBS
20497         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20498 $as_echo "yes" >&6; }
20499
20500 fi
20501
20502 elif test "$enable_dbus_service" = "yes"; then
20503     # syncevo-dbus-server needs localization
20504     :
20505 else
20506     INTLTOOL_UPDATE="true"
20507     USE_NLS="no"
20508 fi
20509
20510
20511
20512
20513
20514
20515
20516 # C++ regular expression support is required often enough to make it
20517 # mandatory.
20518
20519 pkg_failed=no
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRECPP" >&5
20521 $as_echo_n "checking for PCRECPP... " >&6; }
20522
20523 if test -n "$PCRECPP_CFLAGS"; then
20524     pkg_cv_PCRECPP_CFLAGS="$PCRECPP_CFLAGS"
20525  elif test -n "$PKG_CONFIG"; then
20526     if test -n "$PKG_CONFIG" && \
20527     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcrecpp\""; } >&5
20528   ($PKG_CONFIG --exists --print-errors "libpcrecpp") 2>&5
20529   ac_status=$?
20530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20531   test $ac_status = 0; }; then
20532   pkg_cv_PCRECPP_CFLAGS=`$PKG_CONFIG --cflags "libpcrecpp" 2>/dev/null`
20533                       test "x$?" != "x0" && pkg_failed=yes
20534 else
20535   pkg_failed=yes
20536 fi
20537  else
20538     pkg_failed=untried
20539 fi
20540 if test -n "$PCRECPP_LIBS"; then
20541     pkg_cv_PCRECPP_LIBS="$PCRECPP_LIBS"
20542  elif test -n "$PKG_CONFIG"; then
20543     if test -n "$PKG_CONFIG" && \
20544     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcrecpp\""; } >&5
20545   ($PKG_CONFIG --exists --print-errors "libpcrecpp") 2>&5
20546   ac_status=$?
20547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20548   test $ac_status = 0; }; then
20549   pkg_cv_PCRECPP_LIBS=`$PKG_CONFIG --libs "libpcrecpp" 2>/dev/null`
20550                       test "x$?" != "x0" && pkg_failed=yes
20551 else
20552   pkg_failed=yes
20553 fi
20554  else
20555     pkg_failed=untried
20556 fi
20557
20558
20559
20560 if test $pkg_failed = yes; then
20561         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20562 $as_echo "no" >&6; }
20563
20564 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20565         _pkg_short_errors_supported=yes
20566 else
20567         _pkg_short_errors_supported=no
20568 fi
20569         if test $_pkg_short_errors_supported = yes; then
20570                 PCRECPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcrecpp" 2>&1`
20571         else
20572                 PCRECPP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcrecpp" 2>&1`
20573         fi
20574         # Put the nasty error message in config.log where it belongs
20575         echo "$PCRECPP_PKG_ERRORS" >&5
20576
20577         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpcrecpp" >&5
20578 $as_echo_n "checking for main in -lpcrecpp... " >&6; }
20579 if ${ac_cv_lib_pcrecpp_main+:} false; then :
20580   $as_echo_n "(cached) " >&6
20581 else
20582   ac_check_lib_save_LIBS=$LIBS
20583 LIBS="-lpcrecpp  $LIBS"
20584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20585 /* end confdefs.h.  */
20586
20587
20588 int
20589 main ()
20590 {
20591 return main ();
20592   ;
20593   return 0;
20594 }
20595 _ACEOF
20596 if ac_fn_cxx_try_link "$LINENO"; then :
20597   ac_cv_lib_pcrecpp_main=yes
20598 else
20599   ac_cv_lib_pcrecpp_main=no
20600 fi
20601 rm -f core conftest.err conftest.$ac_objext \
20602     conftest$ac_exeext conftest.$ac_ext
20603 LIBS=$ac_check_lib_save_LIBS
20604 fi
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcrecpp_main" >&5
20606 $as_echo "$ac_cv_lib_pcrecpp_main" >&6; }
20607 if test "x$ac_cv_lib_pcrecpp_main" = xyes; then :
20608   PCRECPP_LIBS=-lpcrecpp
20609
20610 else
20611   as_fn_error $? "pcrecpp not found" "$LINENO" 5
20612
20613 fi
20614
20615 elif test $pkg_failed = untried; then
20616         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20617 $as_echo "no" >&6; }
20618         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpcrecpp" >&5
20619 $as_echo_n "checking for main in -lpcrecpp... " >&6; }
20620 if ${ac_cv_lib_pcrecpp_main+:} false; then :
20621   $as_echo_n "(cached) " >&6
20622 else
20623   ac_check_lib_save_LIBS=$LIBS
20624 LIBS="-lpcrecpp  $LIBS"
20625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20626 /* end confdefs.h.  */
20627
20628
20629 int
20630 main ()
20631 {
20632 return main ();
20633   ;
20634   return 0;
20635 }
20636 _ACEOF
20637 if ac_fn_cxx_try_link "$LINENO"; then :
20638   ac_cv_lib_pcrecpp_main=yes
20639 else
20640   ac_cv_lib_pcrecpp_main=no
20641 fi
20642 rm -f core conftest.err conftest.$ac_objext \
20643     conftest$ac_exeext conftest.$ac_ext
20644 LIBS=$ac_check_lib_save_LIBS
20645 fi
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcrecpp_main" >&5
20647 $as_echo "$ac_cv_lib_pcrecpp_main" >&6; }
20648 if test "x$ac_cv_lib_pcrecpp_main" = xyes; then :
20649   PCRECPP_LIBS=-lpcrecpp
20650
20651 else
20652   as_fn_error $? "pcrecpp not found" "$LINENO" 5
20653
20654 fi
20655
20656 else
20657         PCRECPP_CFLAGS=$pkg_cv_PCRECPP_CFLAGS
20658         PCRECPP_LIBS=$pkg_cv_PCRECPP_LIBS
20659         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20660 $as_echo "yes" >&6; }
20661
20662 fi
20663
20664 # need rst2man for man pages
20665
20666 # Check whether --with-rst2man was given.
20667 if test "${with_rst2man+set}" = set; then :
20668   withval=$with_rst2man; RST2MAN=$withval
20669              if test "$RST2MAN" = "yes"; then
20670                  # Extract the first word of "rst2man", so it can be a program name with args.
20671 set dummy rst2man; ac_word=$2
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20673 $as_echo_n "checking for $ac_word... " >&6; }
20674 if ${ac_cv_path_RST2MAN+:} false; then :
20675   $as_echo_n "(cached) " >&6
20676 else
20677   case $RST2MAN in
20678   [\\/]* | ?:[\\/]*)
20679   ac_cv_path_RST2MAN="$RST2MAN" # Let the user override the test with a path.
20680   ;;
20681   *)
20682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20683 for as_dir in $PATH
20684 do
20685   IFS=$as_save_IFS
20686   test -z "$as_dir" && as_dir=.
20687     for ac_exec_ext in '' $ac_executable_extensions; do
20688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20689     ac_cv_path_RST2MAN="$as_dir/$ac_word$ac_exec_ext"
20690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20691     break 2
20692   fi
20693 done
20694   done
20695 IFS=$as_save_IFS
20696
20697   test -z "$ac_cv_path_RST2MAN" && ac_cv_path_RST2MAN=""no""
20698   ;;
20699 esac
20700 fi
20701 RST2MAN=$ac_cv_path_RST2MAN
20702 if test -n "$RST2MAN"; then
20703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2MAN" >&5
20704 $as_echo "$RST2MAN" >&6; }
20705 else
20706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20707 $as_echo "no" >&6; }
20708 fi
20709
20710
20711              fi
20712              test "$RST2MAN" = "no" || test -x "$RST2MAN" || as_fn_error $? "--with-rst2man=$RST2MAN: tool not found" "$LINENO" 5
20713 else
20714   # Extract the first word of "rst2man", so it can be a program name with args.
20715 set dummy rst2man; ac_word=$2
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20717 $as_echo_n "checking for $ac_word... " >&6; }
20718 if ${ac_cv_path_RST2MAN+:} false; then :
20719   $as_echo_n "(cached) " >&6
20720 else
20721   case $RST2MAN in
20722   [\\/]* | ?:[\\/]*)
20723   ac_cv_path_RST2MAN="$RST2MAN" # Let the user override the test with a path.
20724   ;;
20725   *)
20726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20727 for as_dir in $PATH
20728 do
20729   IFS=$as_save_IFS
20730   test -z "$as_dir" && as_dir=.
20731     for ac_exec_ext in '' $ac_executable_extensions; do
20732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20733     ac_cv_path_RST2MAN="$as_dir/$ac_word$ac_exec_ext"
20734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20735     break 2
20736   fi
20737 done
20738   done
20739 IFS=$as_save_IFS
20740
20741   test -z "$ac_cv_path_RST2MAN" && ac_cv_path_RST2MAN=""no""
20742   ;;
20743 esac
20744 fi
20745 RST2MAN=$ac_cv_path_RST2MAN
20746 if test -n "$RST2MAN"; then
20747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2MAN" >&5
20748 $as_echo "$RST2MAN" >&6; }
20749 else
20750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20751 $as_echo "no" >&6; }
20752 fi
20753
20754
20755 fi
20756
20757  if test "$RST2MAN" != "no"; then
20758   COND_MAN_PAGES_TRUE=
20759   COND_MAN_PAGES_FALSE='#'
20760 else
20761   COND_MAN_PAGES_TRUE='#'
20762   COND_MAN_PAGES_FALSE=
20763 fi
20764
20765
20766 # need rst2html for HTML version of README
20767
20768 # Check whether --with-rst2html was given.
20769 if test "${with_rst2html+set}" = set; then :
20770   withval=$with_rst2html; RST2HTML=$withval
20771              if test "$RST2HTML" = "yes"; then
20772                  # Extract the first word of "rst2html", so it can be a program name with args.
20773 set dummy rst2html; ac_word=$2
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20775 $as_echo_n "checking for $ac_word... " >&6; }
20776 if ${ac_cv_path_RST2HTML+:} false; then :
20777   $as_echo_n "(cached) " >&6
20778 else
20779   case $RST2HTML in
20780   [\\/]* | ?:[\\/]*)
20781   ac_cv_path_RST2HTML="$RST2HTML" # Let the user override the test with a path.
20782   ;;
20783   *)
20784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20785 for as_dir in $PATH
20786 do
20787   IFS=$as_save_IFS
20788   test -z "$as_dir" && as_dir=.
20789     for ac_exec_ext in '' $ac_executable_extensions; do
20790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20791     ac_cv_path_RST2HTML="$as_dir/$ac_word$ac_exec_ext"
20792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20793     break 2
20794   fi
20795 done
20796   done
20797 IFS=$as_save_IFS
20798
20799   test -z "$ac_cv_path_RST2HTML" && ac_cv_path_RST2HTML=""no""
20800   ;;
20801 esac
20802 fi
20803 RST2HTML=$ac_cv_path_RST2HTML
20804 if test -n "$RST2HTML"; then
20805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2HTML" >&5
20806 $as_echo "$RST2HTML" >&6; }
20807 else
20808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20809 $as_echo "no" >&6; }
20810 fi
20811
20812
20813              fi
20814              test "$RST2HTML" = "no" || test -x "$RST2HTML" || as_fn_error $? "--with-rst2html=$RST2HTML: tool not found" "$LINENO" 5
20815 else
20816   # Extract the first word of "rst2html", so it can be a program name with args.
20817 set dummy rst2html; ac_word=$2
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20819 $as_echo_n "checking for $ac_word... " >&6; }
20820 if ${ac_cv_path_RST2HTML+:} false; then :
20821   $as_echo_n "(cached) " >&6
20822 else
20823   case $RST2HTML in
20824   [\\/]* | ?:[\\/]*)
20825   ac_cv_path_RST2HTML="$RST2HTML" # Let the user override the test with a path.
20826   ;;
20827   *)
20828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20829 for as_dir in $PATH
20830 do
20831   IFS=$as_save_IFS
20832   test -z "$as_dir" && as_dir=.
20833     for ac_exec_ext in '' $ac_executable_extensions; do
20834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20835     ac_cv_path_RST2HTML="$as_dir/$ac_word$ac_exec_ext"
20836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20837     break 2
20838   fi
20839 done
20840   done
20841 IFS=$as_save_IFS
20842
20843   test -z "$ac_cv_path_RST2HTML" && ac_cv_path_RST2HTML=""no""
20844   ;;
20845 esac
20846 fi
20847 RST2HTML=$ac_cv_path_RST2HTML
20848 if test -n "$RST2HTML"; then
20849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2HTML" >&5
20850 $as_echo "$RST2HTML" >&6; }
20851 else
20852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20853 $as_echo "no" >&6; }
20854 fi
20855
20856
20857 fi
20858
20859  if test "$RST2HTML" != "no"; then
20860   COND_HTML_README_TRUE=
20861   COND_HTML_README_FALSE='#'
20862 else
20863   COND_HTML_README_TRUE='#'
20864   COND_HTML_README_FALSE=
20865 fi
20866
20867
20868 # absolute patch to source of Synthesis client library
20869 SYNTHESIS_SRC=no-synthesis-source
20870
20871 if test "$SYNTHESISSRC" && test "$SYNTHESISSRC" != "none"; then
20872     # default: checkout a copy of the sources, remove it during maintainer-clean and distclean
20873     CLEAN_CLIENT_SRC=synthesis-workdir
20874     SYNTHESIS_SRC=$PWD/src/synthesis-workdir
20875
20876     { $as_echo "$as_me:${as_lineno-$LINENO}: updating the content of $SYNTHESIS_SRC from $SYNTHESISSRC " >&5
20877 $as_echo "$as_me: updating the content of $SYNTHESIS_SRC from $SYNTHESISSRC " >&6;}
20878     case "$SYNTHESISSRC" in
20879         *.git) protocol=git;;
20880         *://*) protocol="`echo $SYNTHESISSRC | sed -e 's;://.*;;'`";;
20881         *) protocol="file";;
20882     esac
20883
20884     mkdir -p src
20885     case $protocol in
20886         file)
20887             # use existing copy of the sources
20888             CLEAN_CLIENT_SRC=
20889             case "$SYNTHESISSRC" in
20890                  /*) SYNTHESIS_SRC="$SYNTHESISSRC";;
20891                  *) SYNTHESIS_SRC="$PWD/$SYNTHESISSRC";;
20892             esac
20893             ;;
20894         *svn*|*http*)
20895             SYNTHESISSRCREV="$SYNTHESISSRC"
20896             if test "$REVISION"; then
20897                 revarg="-r $REVISION "
20898                 if `echo $SYNTHESISSRC | grep '@0123456789*'` >/dev/null; then
20899                     :
20900                 else
20901                     SYNTHESISSRCREV="$SYNTHESISSRC@$REVISION"
20902                 fi
20903             fi
20904             if test -d $SYNTHESIS_SRC ; then
20905                 ( set -x; cd $SYNTHESIS_SRC && svn --username=$USERNAME switch $revarg "$SYNTHESISSRC" ) || as_fn_error $? "updating from $SYNTHESISSRC failed" "$LINENO" 5
20906             else
20907                 (set -x; svn --username=$USERNAME checkout $revarg "$SYNTHESISSRCREV" $SYNTHESIS_SRC ) || as_fn_error $? "checking out $SYNTHESISSRC failed" "$LINENO" 5
20908             fi
20909             ;;
20910         *)
20911             if test -d $SYNTHESIS_SRC ; then
20912                 ( set -x; cd $SYNTHESIS_SRC && git fetch "$SYNTHESISSRC" ) || as_fn_error $? "updating from $SYNTHESISSRC failed" "$LINENO" 5
20913             else
20914                 ( set -x; git clone "$SYNTHESISSRC" $SYNTHESIS_SRC ) || as_fn_error $? "cloning $SYNTHESISSRC failed" "$LINENO" 5
20915             fi
20916             if test "$REVISION"; then
20917                 # git 1.6 finds tags and branches without explicit prefix, 1.4.4.4 doesn't
20918                 ( set -x; cd $SYNTHESIS_SRC &&
20919                   (git checkout "$REVISION" ||
20920                    git checkout "tags/$REVISION" ||
20921                    git checkout "origin/$REVISION") ) || as_fn_error $? "checking out $SYNTHESISSRC failed" "$LINENO" 5
20922             fi
20923             ;;
20924     esac
20925 elif test "$SYNTHESISSRC" != "none" && test -d $srcdir/src/synthesis; then
20926     # use existing copy of the sources; beware of
20927     # out-of-tree compilation
20928     case $srcdir in
20929          /*) SYNTHESIS_SRC="$srcdir/src/synthesis";;
20930          *) SYNTHESIS_SRC="$PWD/$srcdir/src/synthesis";;
20931     esac
20932 elif test "$enable_shared" = "no"; then
20933     # link against engine
20934
20935 pkg_failed=no
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYNTHESIS" >&5
20937 $as_echo_n "checking for SYNTHESIS... " >&6; }
20938
20939 if test -n "$SYNTHESIS_CFLAGS"; then
20940     pkg_cv_SYNTHESIS_CFLAGS="$SYNTHESIS_CFLAGS"
20941  elif test -n "$PKG_CONFIG"; then
20942     if test -n "$PKG_CONFIG" && \
20943     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4\""; } >&5
20944   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4") 2>&5
20945   ac_status=$?
20946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20947   test $ac_status = 0; }; then
20948   pkg_cv_SYNTHESIS_CFLAGS=`$PKG_CONFIG --cflags "synthesis >= 3.4" 2>/dev/null`
20949                       test "x$?" != "x0" && pkg_failed=yes
20950 else
20951   pkg_failed=yes
20952 fi
20953  else
20954     pkg_failed=untried
20955 fi
20956 if test -n "$SYNTHESIS_LIBS"; then
20957     pkg_cv_SYNTHESIS_LIBS="$SYNTHESIS_LIBS"
20958  elif test -n "$PKG_CONFIG"; then
20959     if test -n "$PKG_CONFIG" && \
20960     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4\""; } >&5
20961   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4") 2>&5
20962   ac_status=$?
20963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20964   test $ac_status = 0; }; then
20965   pkg_cv_SYNTHESIS_LIBS=`$PKG_CONFIG --libs "synthesis >= 3.4" 2>/dev/null`
20966                       test "x$?" != "x0" && pkg_failed=yes
20967 else
20968   pkg_failed=yes
20969 fi
20970  else
20971     pkg_failed=untried
20972 fi
20973
20974
20975
20976 if test $pkg_failed = yes; then
20977         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20978 $as_echo "no" >&6; }
20979
20980 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20981         _pkg_short_errors_supported=yes
20982 else
20983         _pkg_short_errors_supported=no
20984 fi
20985         if test $_pkg_short_errors_supported = yes; then
20986                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "synthesis >= 3.4" 2>&1`
20987         else
20988                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "synthesis >= 3.4" 2>&1`
20989         fi
20990         # Put the nasty error message in config.log where it belongs
20991         echo "$SYNTHESIS_PKG_ERRORS" >&5
20992
20993         as_fn_error $? "Package requirements (synthesis >= 3.4) were not met:
20994
20995 $SYNTHESIS_PKG_ERRORS
20996
20997 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20998 installed software in a non-standard prefix.
20999
21000 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
21001 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
21002 See the pkg-config man page for more details." "$LINENO" 5
21003 elif test $pkg_failed = untried; then
21004         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21005 $as_echo "no" >&6; }
21006         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21008 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21009 is in your PATH or set the PKG_CONFIG environment variable to the full
21010 path to pkg-config.
21011
21012 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
21013 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
21014 See the pkg-config man page for more details.
21015
21016 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21017 See \`config.log' for more details" "$LINENO" 5; }
21018 else
21019         SYNTHESIS_CFLAGS=$pkg_cv_SYNTHESIS_CFLAGS
21020         SYNTHESIS_LIBS=$pkg_cv_SYNTHESIS_LIBS
21021         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21022 $as_echo "yes" >&6; }
21023
21024 fi
21025     SYNTHESIS_ENGINE="$SYNTHESIS_LIBS -lsynthesis -lsmltk"
21026 else
21027     # link against SDK alone, except in client-test
21028     #PKG_CHECK_MODULES(SYNTHESIS, "synthesis-sdk")
21029     #SYNTHESIS_ENGINE="`echo $SYNTHESIS_LIBS | sed -e 's/-lsynthesisstubs/-lsynthesis/'`"
21030
21031     # can't use the SDK alone because of sysync::SySyncDebugPuts()
21032
21033 pkg_failed=no
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYNTHESIS" >&5
21035 $as_echo_n "checking for SYNTHESIS... " >&6; }
21036
21037 if test -n "$SYNTHESIS_CFLAGS"; then
21038     pkg_cv_SYNTHESIS_CFLAGS="$SYNTHESIS_CFLAGS"
21039  elif test -n "$PKG_CONFIG"; then
21040     if test -n "$PKG_CONFIG" && \
21041     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4.0.16.10\""; } >&5
21042   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4.0.16.10") 2>&5
21043   ac_status=$?
21044   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21045   test $ac_status = 0; }; then
21046   pkg_cv_SYNTHESIS_CFLAGS=`$PKG_CONFIG --cflags "synthesis >= 3.4.0.16.10" 2>/dev/null`
21047                       test "x$?" != "x0" && pkg_failed=yes
21048 else
21049   pkg_failed=yes
21050 fi
21051  else
21052     pkg_failed=untried
21053 fi
21054 if test -n "$SYNTHESIS_LIBS"; then
21055     pkg_cv_SYNTHESIS_LIBS="$SYNTHESIS_LIBS"
21056  elif test -n "$PKG_CONFIG"; then
21057     if test -n "$PKG_CONFIG" && \
21058     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4.0.16.10\""; } >&5
21059   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4.0.16.10") 2>&5
21060   ac_status=$?
21061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21062   test $ac_status = 0; }; then
21063   pkg_cv_SYNTHESIS_LIBS=`$PKG_CONFIG --libs "synthesis >= 3.4.0.16.10" 2>/dev/null`
21064                       test "x$?" != "x0" && pkg_failed=yes
21065 else
21066   pkg_failed=yes
21067 fi
21068  else
21069     pkg_failed=untried
21070 fi
21071
21072
21073
21074 if test $pkg_failed = yes; then
21075         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21076 $as_echo "no" >&6; }
21077
21078 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21079         _pkg_short_errors_supported=yes
21080 else
21081         _pkg_short_errors_supported=no
21082 fi
21083         if test $_pkg_short_errors_supported = yes; then
21084                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "synthesis >= 3.4.0.16.10" 2>&1`
21085         else
21086                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "synthesis >= 3.4.0.16.10" 2>&1`
21087         fi
21088         # Put the nasty error message in config.log where it belongs
21089         echo "$SYNTHESIS_PKG_ERRORS" >&5
21090
21091         as_fn_error $? "Package requirements (synthesis >= 3.4.0.16.10) were not met:
21092
21093 $SYNTHESIS_PKG_ERRORS
21094
21095 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21096 installed software in a non-standard prefix.
21097
21098 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
21099 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
21100 See the pkg-config man page for more details." "$LINENO" 5
21101 elif test $pkg_failed = untried; then
21102         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21103 $as_echo "no" >&6; }
21104         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21106 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21107 is in your PATH or set the PKG_CONFIG environment variable to the full
21108 path to pkg-config.
21109
21110 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
21111 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
21112 See the pkg-config man page for more details.
21113
21114 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21115 See \`config.log' for more details" "$LINENO" 5; }
21116 else
21117         SYNTHESIS_CFLAGS=$pkg_cv_SYNTHESIS_CFLAGS
21118         SYNTHESIS_LIBS=$pkg_cv_SYNTHESIS_LIBS
21119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21120 $as_echo "yes" >&6; }
21121
21122 fi
21123     SYNTHESIS_ENGINE="$SYNTHESIS_LIBS"
21124 fi
21125
21126 if test $SYNTHESIS_SRC != "no-synthesis-source"; then
21127     ( 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
21128
21129     SYNTHESIS_CONFIGURE="$SYNTHESIS_SRC/configure"
21130     chmod u+x $SYNTHESIS_SRC/configure $SYNTHESIS_SRC/config.sub $SYNTHESIS_SRC/config.guess
21131
21132     # use local copy of the sources, with dependencies
21133     # to trigger building the synthesis library
21134     SYNTHESIS_SUBDIR=$PWD/src/build-synthesis
21135     SYNTHESIS_CFLAGS="-I$SYNTHESIS_SUBDIR/src"
21136     SYNTHESIS_LIBS="$SYNTHESIS_SUBDIR/src/libsynthesissdk.la $SYNTHESIS_SUBDIR/src/libsmltk.la"
21137
21138     if test "x$enable_core" = "xno" && test "x$enable_gui" != "xno"; then
21139        # SYNTHESIS_SUBDIR is ignored, at least build headers for GUI
21140        SYNTHESIS_SUBDIR_INCLUDES=src/synthesis-includes
21141     fi
21142
21143     if test "$enable_shared" = "no"; then
21144         # link against the engines that were enabled
21145         case $SYNCML_ENGINES in both|client|server) SYNTHESIS_LIBS="$SYNTHESIS_LIBS $SYNTHESIS_SUBDIR/src/libsynthesis.la $SYNTHESIS_SUBDIR/src/libsmltk.la";; esac
21146
21147 $as_echo "#define ENABLE_SYNCML_LINKED 1" >>confdefs.h
21148
21149     else
21150         # It would be nice if we could avoid linking against libsynthesis.la here.
21151         # This doesn't work at the moment because sysync::SySyncDebugPuts()
21152         # is called directly by the libsynthesissdk instead of going through
21153         # the normal C function pointer lookup.
21154         SYNTHESIS_LIBS="$SYNTHESIS_LIBS $SYNTHESIS_SUBDIR/src/libsynthesis.la $SYNTHESIS_SUBDIR/src/libsmltk.la"
21155     fi
21156     SYNTHESIS_DEP=$SYNTHESIS_LIBS
21157
21158     # for linking client-test
21159     SYNTHESIS_ENGINE="$SYNTHESIS_SUBDIR/src/libsynthesis.la"
21160
21161     { $as_echo "$as_me:${as_lineno-$LINENO}: configuring the Synthesis library " >&5
21162 $as_echo "$as_me: configuring the Synthesis library " >&6;}
21163     if (set -x; mkdir -p $SYNTHESIS_SUBDIR && cd $SYNTHESIS_SUBDIR && eval "\$SHELL \"\$SYNTHESIS_CONFIGURE\" $ac_configure_args \"--srcdir=\$SYNTHESIS_SRC\" " ); then true; else
21164         as_fn_error $? "configuring Synthesis library failed " "$LINENO" 5
21165     fi
21166
21167     # do the version check with the .pc files prepared by the configure step above
21168     export PKG_CONFIG_PATH=$SYNTHESIS_SUBDIR:$PKG_CONFIG_PATH
21169
21170 pkg_failed=no
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WITH_SYNTHESIS_SRC" >&5
21172 $as_echo_n "checking for WITH_SYNTHESIS_SRC... " >&6; }
21173
21174 if test -n "$WITH_SYNTHESIS_SRC_CFLAGS"; then
21175     pkg_cv_WITH_SYNTHESIS_SRC_CFLAGS="$WITH_SYNTHESIS_SRC_CFLAGS"
21176  elif test -n "$PKG_CONFIG"; then
21177     if test -n "$PKG_CONFIG" && \
21178     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4.0.16.10\""; } >&5
21179   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4.0.16.10") 2>&5
21180   ac_status=$?
21181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21182   test $ac_status = 0; }; then
21183   pkg_cv_WITH_SYNTHESIS_SRC_CFLAGS=`$PKG_CONFIG --cflags "synthesis >= 3.4.0.16.10" 2>/dev/null`
21184                       test "x$?" != "x0" && pkg_failed=yes
21185 else
21186   pkg_failed=yes
21187 fi
21188  else
21189     pkg_failed=untried
21190 fi
21191 if test -n "$WITH_SYNTHESIS_SRC_LIBS"; then
21192     pkg_cv_WITH_SYNTHESIS_SRC_LIBS="$WITH_SYNTHESIS_SRC_LIBS"
21193  elif test -n "$PKG_CONFIG"; then
21194     if test -n "$PKG_CONFIG" && \
21195     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4.0.16.10\""; } >&5
21196   ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4.0.16.10") 2>&5
21197   ac_status=$?
21198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21199   test $ac_status = 0; }; then
21200   pkg_cv_WITH_SYNTHESIS_SRC_LIBS=`$PKG_CONFIG --libs "synthesis >= 3.4.0.16.10" 2>/dev/null`
21201                       test "x$?" != "x0" && pkg_failed=yes
21202 else
21203   pkg_failed=yes
21204 fi
21205  else
21206     pkg_failed=untried
21207 fi
21208
21209
21210
21211 if test $pkg_failed = yes; then
21212         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21213 $as_echo "no" >&6; }
21214
21215 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21216         _pkg_short_errors_supported=yes
21217 else
21218         _pkg_short_errors_supported=no
21219 fi
21220         if test $_pkg_short_errors_supported = yes; then
21221                 WITH_SYNTHESIS_SRC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "synthesis >= 3.4.0.16.10" 2>&1`
21222         else
21223                 WITH_SYNTHESIS_SRC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "synthesis >= 3.4.0.16.10" 2>&1`
21224         fi
21225         # Put the nasty error message in config.log where it belongs
21226         echo "$WITH_SYNTHESIS_SRC_PKG_ERRORS" >&5
21227
21228         as_fn_error $? "need at least libsynthesis >= 3.4.0.16.10; the latest libsynthesis for SyncEvolution is the one from http://cgit.freedesktop.org/SyncEvolution/" "$LINENO" 5
21229 elif test $pkg_failed = untried; then
21230         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21231 $as_echo "no" >&6; }
21232         as_fn_error $? "need at least libsynthesis >= 3.4.0.16.10; the latest libsynthesis for SyncEvolution is the one from http://cgit.freedesktop.org/SyncEvolution/" "$LINENO" 5
21233 else
21234         WITH_SYNTHESIS_SRC_CFLAGS=$pkg_cv_WITH_SYNTHESIS_SRC_CFLAGS
21235         WITH_SYNTHESIS_SRC_LIBS=$pkg_cv_WITH_SYNTHESIS_SRC_LIBS
21236         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21237 $as_echo "yes" >&6; }
21238
21239 fi
21240
21241 fi
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253 BACKEND_CPPFLAGS="$SYNTHESIS_CFLAGS $EPACKAGE_CFLAGS $EBOOK_CFLAGS $ECAL_CFLAGS $GLIB_CFLAGS $BOOST_CPPFLAGS"
21254
21255
21256 # GNOME Bluetooth Panel plugin
21257
21258 pkg_failed=no
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOMEBLUETOOTH" >&5
21260 $as_echo_n "checking for GNOMEBLUETOOTH... " >&6; }
21261
21262 if test -n "$GNOMEBLUETOOTH_CFLAGS"; then
21263     pkg_cv_GNOMEBLUETOOTH_CFLAGS="$GNOMEBLUETOOTH_CFLAGS"
21264  elif test -n "$PKG_CONFIG"; then
21265     if test -n "$PKG_CONFIG" && \
21266     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-bluetooth-1.0 >= 2.27.6\""; } >&5
21267   ($PKG_CONFIG --exists --print-errors "gnome-bluetooth-1.0 >= 2.27.6") 2>&5
21268   ac_status=$?
21269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21270   test $ac_status = 0; }; then
21271   pkg_cv_GNOMEBLUETOOTH_CFLAGS=`$PKG_CONFIG --cflags "gnome-bluetooth-1.0 >= 2.27.6" 2>/dev/null`
21272                       test "x$?" != "x0" && pkg_failed=yes
21273 else
21274   pkg_failed=yes
21275 fi
21276  else
21277     pkg_failed=untried
21278 fi
21279 if test -n "$GNOMEBLUETOOTH_LIBS"; then
21280     pkg_cv_GNOMEBLUETOOTH_LIBS="$GNOMEBLUETOOTH_LIBS"
21281  elif test -n "$PKG_CONFIG"; then
21282     if test -n "$PKG_CONFIG" && \
21283     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-bluetooth-1.0 >= 2.27.6\""; } >&5
21284   ($PKG_CONFIG --exists --print-errors "gnome-bluetooth-1.0 >= 2.27.6") 2>&5
21285   ac_status=$?
21286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21287   test $ac_status = 0; }; then
21288   pkg_cv_GNOMEBLUETOOTH_LIBS=`$PKG_CONFIG --libs "gnome-bluetooth-1.0 >= 2.27.6" 2>/dev/null`
21289                       test "x$?" != "x0" && pkg_failed=yes
21290 else
21291   pkg_failed=yes
21292 fi
21293  else
21294     pkg_failed=untried
21295 fi
21296
21297
21298
21299 if test $pkg_failed = yes; then
21300         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21301 $as_echo "no" >&6; }
21302
21303 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21304         _pkg_short_errors_supported=yes
21305 else
21306         _pkg_short_errors_supported=no
21307 fi
21308         if test $_pkg_short_errors_supported = yes; then
21309                 GNOMEBLUETOOTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnome-bluetooth-1.0 >= 2.27.6" 2>&1`
21310         else
21311                 GNOMEBLUETOOTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnome-bluetooth-1.0 >= 2.27.6" 2>&1`
21312         fi
21313         # Put the nasty error message in config.log where it belongs
21314         echo "$GNOMEBLUETOOTH_PKG_ERRORS" >&5
21315
21316         have_gbt="no"
21317 elif test $pkg_failed = untried; then
21318         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21319 $as_echo "no" >&6; }
21320         have_gbt="no"
21321 else
21322         GNOMEBLUETOOTH_CFLAGS=$pkg_cv_GNOMEBLUETOOTH_CFLAGS
21323         GNOMEBLUETOOTH_LIBS=$pkg_cv_GNOMEBLUETOOTH_LIBS
21324         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21325 $as_echo "yes" >&6; }
21326         have_gbt="yes"
21327                    GNOMEBLUETOOTH_DIR=`$PKG_CONFIG --variable=libdir gnome-bluetooth-1.0 2>/dev/null`/gnome-bluetooth
21328 fi
21329
21330
21331
21332 # Check whether --enable-gnome-bluetooth-panel-plugin was given.
21333 if test "${enable_gnome_bluetooth_panel_plugin+set}" = set; then :
21334   enableval=$enable_gnome_bluetooth_panel_plugin; enable_gnome_bluetooth_panel="$enableval"
21335 else
21336   enable_gnome_bluetooth_panel="no"
21337
21338 fi
21339
21340 if test "$enable_gnome_bluetooth_panel" = "yes"; then
21341    test "$have_gbt" = "yes" || as_fn_error $? "--enable-gnome-bluetooth-panel requires
21342            pkg-config information for gnome-bluetooth-1.0 >= 2.27.6 which was not found" "$LINENO" 5
21343 fi
21344  if test "$have_gbt" = "yes" && test "$enable_gnome_bluetooth_panel" = "yes"; then
21345   ENABLE_GNOME_BLUETOOTH_PANEL_TRUE=
21346   ENABLE_GNOME_BLUETOOTH_PANEL_FALSE='#'
21347 else
21348   ENABLE_GNOME_BLUETOOTH_PANEL_TRUE='#'
21349   ENABLE_GNOME_BLUETOOTH_PANEL_FALSE=
21350 fi
21351
21352
21353 # Check whether --enable-doc was given.
21354 if test "${enable_doc+set}" = set; then :
21355   enableval=$enable_doc; enable_doc="$enableval"
21356 else
21357   enable_doc="no"
21358 fi
21359
21360
21361  if test "$enable_doc" != "no"; then
21362   COND_DOC_TRUE=
21363   COND_DOC_FALSE='#'
21364 else
21365   COND_DOC_TRUE='#'
21366   COND_DOC_FALSE=
21367 fi
21368
21369
21370
21371
21372           BACKENDS=''
21373           BACKEND_DEFINES=''
21374           SYNCSOURCES=''
21375
21376 # vvvvvvvvvvvvvv src/backends/activesync/configure-sub.in vvvvvvvvvvvvvv
21377
21378
21379           # Check whether --enable-activesync was given.
21380 if test "${enable_activesync+set}" = set; then :
21381   enableval=$enable_activesync; enable_activesync="$enableval"
21382 else
21383   enable_activesync="no"
21384 fi
21385
21386           BACKENDS="$BACKENDS activesync"
21387           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_ACTIVESYNC"
21388           for source in activesync
21389           do
21390             SYNCSOURCES="$SYNCSOURCES src/backends/activesync/syncactivesync.la"
21391           done
21392
21393
21394
21395
21396 # Check whether --with-activesyncd-src was given.
21397 if test "${with_activesyncd_src+set}" = set; then :
21398   withval=$with_activesyncd_src; ACTIVESYNCDSRC="$withval"
21399              test "$ACTIVESYNCDSRC" != "yes" || as_fn_error $? "--with-synthesis-src requires a parameter (base directory, svn URL or git URL)" "$LINENO" 5
21400 else
21401   ACTIVESYNCDSRC=""
21402 fi
21403
21404
21405  if test "$enable_activesync" = "yes" && test "$ACTIVESYNCDSRC" != ""; then
21406   BUILD_ACTIVESYNCD_TRUE=
21407   BUILD_ACTIVESYNCD_FALSE='#'
21408 else
21409   BUILD_ACTIVESYNCD_TRUE='#'
21410   BUILD_ACTIVESYNCD_FALSE=
21411 fi
21412
21413
21414 if test "$enable_activesync" = "yes"; then
21415         if test "$ACTIVESYNCDSRC" != ""; then
21416                 # brute-force dependency on any file in the source repo
21417                 LIBEASCLIENT_LA_DEPENDENCIES=`find "$ACTIVESYNCDSRC"/* -type f -printf '%p ' `
21418
21419                 mkdir -p src/backends/activesync/activesyncd/build
21420                 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring activesyncd using the $ACTIVESYNCDSRC source code" >&5
21421 $as_echo "$as_me: configuring activesyncd using the $ACTIVESYNCDSRC source code" >&6;}
21422                 ( set -x; cd src/backends/activesync/activesyncd/build &&
21423                   $ACTIVESYNCDSRC/configure --disable-eplugin --disable-camel-backend --prefix=`pwd`/../install) ||
21424                 as_fn_error $? "configuring activesyncd failed" "$LINENO" 5
21425
21426                 # hard-coded replacement for pkg-config: necessary because
21427                 # .pc file not installed yet
21428                 EASCLIENT_LIBS=src/backends/activesync/activesyncd/install/lib/libeasclient.la
21429                 EASCLIENT_DEPENDENCIES=src/backends/activesync/activesyncd/install/lib/libeasclient.la
21430                 EASCLIENT_CFLAGS=-Isrc/backends/activesync/activesyncd/install/include/eas-daemon/eas-client
21431
21432
21433
21434         else
21435
21436 pkg_failed=no
21437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EASCLIENT" >&5
21438 $as_echo_n "checking for EASCLIENT... " >&6; }
21439
21440 if test -n "$EASCLIENT_CFLAGS"; then
21441     pkg_cv_EASCLIENT_CFLAGS="$EASCLIENT_CFLAGS"
21442  elif test -n "$PKG_CONFIG"; then
21443     if test -n "$PKG_CONFIG" && \
21444     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeasclient\""; } >&5
21445   ($PKG_CONFIG --exists --print-errors "libeasclient") 2>&5
21446   ac_status=$?
21447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21448   test $ac_status = 0; }; then
21449   pkg_cv_EASCLIENT_CFLAGS=`$PKG_CONFIG --cflags "libeasclient" 2>/dev/null`
21450                       test "x$?" != "x0" && pkg_failed=yes
21451 else
21452   pkg_failed=yes
21453 fi
21454  else
21455     pkg_failed=untried
21456 fi
21457 if test -n "$EASCLIENT_LIBS"; then
21458     pkg_cv_EASCLIENT_LIBS="$EASCLIENT_LIBS"
21459  elif test -n "$PKG_CONFIG"; then
21460     if test -n "$PKG_CONFIG" && \
21461     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeasclient\""; } >&5
21462   ($PKG_CONFIG --exists --print-errors "libeasclient") 2>&5
21463   ac_status=$?
21464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21465   test $ac_status = 0; }; then
21466   pkg_cv_EASCLIENT_LIBS=`$PKG_CONFIG --libs "libeasclient" 2>/dev/null`
21467                       test "x$?" != "x0" && pkg_failed=yes
21468 else
21469   pkg_failed=yes
21470 fi
21471  else
21472     pkg_failed=untried
21473 fi
21474
21475
21476
21477 if test $pkg_failed = yes; then
21478         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21479 $as_echo "no" >&6; }
21480
21481 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21482         _pkg_short_errors_supported=yes
21483 else
21484         _pkg_short_errors_supported=no
21485 fi
21486         if test $_pkg_short_errors_supported = yes; then
21487                 EASCLIENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libeasclient" 2>&1`
21488         else
21489                 EASCLIENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libeasclient" 2>&1`
21490         fi
21491         # Put the nasty error message in config.log where it belongs
21492         echo "$EASCLIENT_PKG_ERRORS" >&5
21493
21494         as_fn_error $? "Package requirements (libeasclient) were not met:
21495
21496 $EASCLIENT_PKG_ERRORS
21497
21498 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21499 installed software in a non-standard prefix.
21500
21501 Alternatively, you may set the environment variables EASCLIENT_CFLAGS
21502 and EASCLIENT_LIBS to avoid the need to call pkg-config.
21503 See the pkg-config man page for more details." "$LINENO" 5
21504 elif test $pkg_failed = untried; then
21505         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21506 $as_echo "no" >&6; }
21507         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21509 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21510 is in your PATH or set the PKG_CONFIG environment variable to the full
21511 path to pkg-config.
21512
21513 Alternatively, you may set the environment variables EASCLIENT_CFLAGS
21514 and EASCLIENT_LIBS to avoid the need to call pkg-config.
21515 See the pkg-config man page for more details.
21516
21517 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21518 See \`config.log' for more details" "$LINENO" 5; }
21519 else
21520         EASCLIENT_CFLAGS=$pkg_cv_EASCLIENT_CFLAGS
21521         EASCLIENT_LIBS=$pkg_cv_EASCLIENT_LIBS
21522         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21523 $as_echo "yes" >&6; }
21524
21525 fi
21526         fi
21527
21528 $as_echo "#define ENABLE_ACTIVESYNC 1" >>confdefs.h
21529
21530         need_ical="yes"
21531         need_glib="yes"
21532 fi
21533
21534 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EASCLIENT_CFLAGS"
21535 # ^^^^^^^^^^^^^^ src/backends/activesync/configure-sub.in ^^^^^^^^^^^^^^
21536
21537 # vvvvvvvvvvvvvv src/backends/addressbook/configure-sub.in vvvvvvvvvvvvvv
21538
21539 ADDRESSBOOK_CFLAGS=
21540
21541 ADDRESSBOOK_LIBS="-framework AddressBook -framework CoreFoundation"
21542
21543
21544 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $ADDRESSBOOK_CFLAGS"
21545
21546
21547           # Check whether --enable-addressbook was given.
21548 if test "${enable_addressbook+set}" = set; then :
21549   enableval=$enable_addressbook; enable_addressbook="$enableval"
21550 else
21551   enable_addressbook="no"
21552
21553 fi
21554
21555           BACKENDS="$BACKENDS addressbook"
21556           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_ADDRESSBOOK"
21557           for source in addressbook
21558           do
21559             SYNCSOURCES="$SYNCSOURCES src/backends/addressbook/syncaddressbook.la"
21560           done
21561
21562
21563
21564 if test "$enable_addressbook" = "yes"; then
21565
21566 $as_echo "#define ENABLE_ADDRESSBOOK 1" >>confdefs.h
21567
21568         DEVICE_TYPE=MacOS_X
21569         enable_any="yes"
21570 else
21571         ADDRESSBOOK_LIBS=
21572 fi
21573
21574 # ^^^^^^^^^^^^^^ src/backends/addressbook/configure-sub.in ^^^^^^^^^^^^^^
21575
21576 # vvvvvvvvvvvvvv src/backends/akonadi/configure-sub.in vvvvvvvvvvvvvv
21577
21578 for ac_prog in qmake qmake-qt4
21579 do
21580   # Extract the first word of "$ac_prog", so it can be a program name with args.
21581 set dummy $ac_prog; ac_word=$2
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21583 $as_echo_n "checking for $ac_word... " >&6; }
21584 if ${ac_cv_prog_QMAKE+:} false; then :
21585   $as_echo_n "(cached) " >&6
21586 else
21587   if test -n "$QMAKE"; then
21588   ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
21589 else
21590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21591 for as_dir in $PATH
21592 do
21593   IFS=$as_save_IFS
21594   test -z "$as_dir" && as_dir=.
21595     for ac_exec_ext in '' $ac_executable_extensions; do
21596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21597     ac_cv_prog_QMAKE="$ac_prog"
21598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21599     break 2
21600   fi
21601 done
21602   done
21603 IFS=$as_save_IFS
21604
21605 fi
21606 fi
21607 QMAKE=$ac_cv_prog_QMAKE
21608 if test -n "$QMAKE"; then
21609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
21610 $as_echo "$QMAKE" >&6; }
21611 else
21612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21613 $as_echo "no" >&6; }
21614 fi
21615
21616
21617   test -n "$QMAKE" && break
21618 done
21619
21620
21621 # Check for Akonadi. There is no .pc file for it,
21622 # so fall back to normal header file and library checking.
21623 # kdepimlibs5-dev >= 4.3 provides the necessary files.
21624 AKONADIFOUND=yes
21625 if ! test "$KDEPIM_CFLAGS"; then
21626    KDEPIM_CFLAGS="-I`kde4-config --path include` -I`kde4-config --path include`/KDE"
21627    if test "$QMAKE"; then
21628       KDEPIM_CFLAGS="$KDEPIM_CFLAGS -I`$QMAKE -query QT_INSTALL_HEADERS`"
21629    fi
21630 fi
21631 if ! test "$KDEPIM_LIBS"; then
21632    KDEPIM_LIBS="-L`kde4-config --install lib` -lakonadi-kde `pkg-config --libs QtDBus` -lQtCore -lkdeui -lkdecore"
21633 fi
21634 ac_ext=cpp
21635 ac_cpp='$CXXCPP $CPPFLAGS'
21636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21639
21640 old_CPPFLAGS="$CPPFLAGS"
21641 CPPFLAGS="$CPPFLAGS $KDEPIM_CFLAGS"
21642 for ac_header in Akonadi/Collection
21643 do :
21644   ac_fn_cxx_check_header_mongrel "$LINENO" "Akonadi/Collection" "ac_cv_header_Akonadi_Collection" "$ac_includes_default"
21645 if test "x$ac_cv_header_Akonadi_Collection" = xyes; then :
21646   cat >>confdefs.h <<_ACEOF
21647 #define HAVE_AKONADI_COLLECTION 1
21648 _ACEOF
21649
21650 else
21651   AKONADIFOUND=no
21652 fi
21653
21654 done
21655
21656 CPPFLAGS="$old_CPPFLAGS"
21657 ac_ext=cpp
21658 ac_cpp='$CXXCPP $CPPFLAGS'
21659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21662
21663
21664 # In contrast to the Evolution backend, the Akonadi backend is
21665 # currently considered optional. "configure" will enable it only
21666 # if explicitly enabled (was turned on automatically previously,
21667 # for example on Ubuntu Hardy, and didn't compile).
21668
21669           # Check whether --enable-akonadi was given.
21670 if test "${enable_akonadi+set}" = set; then :
21671   enableval=$enable_akonadi; enable_akonadi="$enableval"
21672                        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
21673 else
21674   enable_akonadi=no
21675
21676 fi
21677
21678           BACKENDS="$BACKENDS akonadi"
21679           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_AKONADI"
21680           for source in akonadi
21681           do
21682             SYNCSOURCES="$SYNCSOURCES src/backends/akonadi/syncakonadi.la"
21683           done
21684
21685
21686
21687 if test "$enable_akonadi" = "yes"; then
21688         # conditional compilation in preprocessor
21689
21690 $as_echo "#define ENABLE_AKONADI 1" >>confdefs.h
21691
21692 else
21693         # avoid unneeded dependencies on Akonadi
21694         KDEPIM_CFLAGS=
21695         KDEPIM_LIBS=
21696 fi
21697
21698
21699
21700 # conditional compilation in make
21701  if test "$enable_akonadi" = "yes"; then
21702   ENABLE_AKONADI_TRUE=
21703   ENABLE_AKONADI_FALSE='#'
21704 else
21705   ENABLE_AKONADI_TRUE='#'
21706   ENABLE_AKONADI_FALSE=
21707 fi
21708
21709
21710 # let others include Akonadi backend's header file
21711 # (not strictly necessary, could be avoided by not
21712 # including Akonadi header files in public header file
21713 # of source)
21714 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $KDEPIM_CFLAGS"
21715 # ^^^^^^^^^^^^^^ src/backends/akonadi/configure-sub.in ^^^^^^^^^^^^^^
21716
21717 # vvvvvvvvvvvvvv src/backends/evolution/configure-sub.in vvvvvvvvvvvvvv
21718
21719 anymissing="
21720 Please install the development packages of Evolution and/or
21721 set the PKG_CONFIG_PATH variable so that it points towards
21722 the .pc files of libedataserver, libecal and libebook (the
21723 latter two are optional).
21724
21725 You can check that these packages are available by running
21726 pkg-config --list-all."
21727
21728 evomissing="No compatible evolution-data-server was found.
21729 $anymissing"
21730
21731
21732 pkg_failed=no
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EPACKAGE" >&5
21734 $as_echo_n "checking for EPACKAGE... " >&6; }
21735
21736 if test -n "$EPACKAGE_CFLAGS"; then
21737     pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
21738  elif test -n "$PKG_CONFIG"; then
21739     if test -n "$PKG_CONFIG" && \
21740     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedataserver-1.2\""; } >&5
21741   ($PKG_CONFIG --exists --print-errors "libedataserver-1.2") 2>&5
21742   ac_status=$?
21743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21744   test $ac_status = 0; }; then
21745   pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "libedataserver-1.2" 2>/dev/null`
21746                       test "x$?" != "x0" && pkg_failed=yes
21747 else
21748   pkg_failed=yes
21749 fi
21750  else
21751     pkg_failed=untried
21752 fi
21753 if test -n "$EPACKAGE_LIBS"; then
21754     pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
21755  elif test -n "$PKG_CONFIG"; then
21756     if test -n "$PKG_CONFIG" && \
21757     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedataserver-1.2\""; } >&5
21758   ($PKG_CONFIG --exists --print-errors "libedataserver-1.2") 2>&5
21759   ac_status=$?
21760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21761   test $ac_status = 0; }; then
21762   pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "libedataserver-1.2" 2>/dev/null`
21763                       test "x$?" != "x0" && pkg_failed=yes
21764 else
21765   pkg_failed=yes
21766 fi
21767  else
21768     pkg_failed=untried
21769 fi
21770
21771
21772
21773 if test $pkg_failed = yes; then
21774         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21775 $as_echo "no" >&6; }
21776
21777 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21778         _pkg_short_errors_supported=yes
21779 else
21780         _pkg_short_errors_supported=no
21781 fi
21782         if test $_pkg_short_errors_supported = yes; then
21783                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedataserver-1.2" 2>&1`
21784         else
21785                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedataserver-1.2" 2>&1`
21786         fi
21787         # Put the nasty error message in config.log where it belongs
21788         echo "$EPACKAGE_PKG_ERRORS" >&5
21789
21790         EDSFOUND=no
21791 elif test $pkg_failed = untried; then
21792         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21793 $as_echo "no" >&6; }
21794         EDSFOUND=no
21795 else
21796         EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
21797         EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
21798         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21799 $as_echo "yes" >&6; }
21800         EDSFOUND=yes
21801 fi
21802
21803 pkg_failed=no
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECAL" >&5
21805 $as_echo_n "checking for ECAL... " >&6; }
21806
21807 if test -n "$ECAL_CFLAGS"; then
21808     pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
21809  elif test -n "$PKG_CONFIG"; then
21810     if test -n "$PKG_CONFIG" && \
21811     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
21812   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
21813   ac_status=$?
21814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21815   test $ac_status = 0; }; then
21816   pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
21817                       test "x$?" != "x0" && pkg_failed=yes
21818 else
21819   pkg_failed=yes
21820 fi
21821  else
21822     pkg_failed=untried
21823 fi
21824 if test -n "$ECAL_LIBS"; then
21825     pkg_cv_ECAL_LIBS="$ECAL_LIBS"
21826  elif test -n "$PKG_CONFIG"; then
21827     if test -n "$PKG_CONFIG" && \
21828     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
21829   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
21830   ac_status=$?
21831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21832   test $ac_status = 0; }; then
21833   pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
21834                       test "x$?" != "x0" && pkg_failed=yes
21835 else
21836   pkg_failed=yes
21837 fi
21838  else
21839     pkg_failed=untried
21840 fi
21841
21842
21843
21844 if test $pkg_failed = yes; then
21845         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21846 $as_echo "no" >&6; }
21847
21848 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21849         _pkg_short_errors_supported=yes
21850 else
21851         _pkg_short_errors_supported=no
21852 fi
21853         if test $_pkg_short_errors_supported = yes; then
21854                 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libecal-1.2" 2>&1`
21855         else
21856                 ECAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libecal-1.2" 2>&1`
21857         fi
21858         # Put the nasty error message in config.log where it belongs
21859         echo "$ECAL_PKG_ERRORS" >&5
21860
21861         ECALFOUND=no
21862 elif test $pkg_failed = untried; then
21863         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21864 $as_echo "no" >&6; }
21865         ECALFOUND=no
21866 else
21867         ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
21868         ECAL_LIBS=$pkg_cv_ECAL_LIBS
21869         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21870 $as_echo "yes" >&6; }
21871         ECALFOUND=yes
21872 fi
21873
21874 pkg_failed=no
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBOOK" >&5
21876 $as_echo_n "checking for EBOOK... " >&6; }
21877
21878 if test -n "$EBOOK_CFLAGS"; then
21879     pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
21880  elif test -n "$PKG_CONFIG"; then
21881     if test -n "$PKG_CONFIG" && \
21882     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2\""; } >&5
21883   ($PKG_CONFIG --exists --print-errors "libebook-1.2") 2>&5
21884   ac_status=$?
21885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21886   test $ac_status = 0; }; then
21887   pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "libebook-1.2" 2>/dev/null`
21888                       test "x$?" != "x0" && pkg_failed=yes
21889 else
21890   pkg_failed=yes
21891 fi
21892  else
21893     pkg_failed=untried
21894 fi
21895 if test -n "$EBOOK_LIBS"; then
21896     pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
21897  elif test -n "$PKG_CONFIG"; then
21898     if test -n "$PKG_CONFIG" && \
21899     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2\""; } >&5
21900   ($PKG_CONFIG --exists --print-errors "libebook-1.2") 2>&5
21901   ac_status=$?
21902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21903   test $ac_status = 0; }; then
21904   pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "libebook-1.2" 2>/dev/null`
21905                       test "x$?" != "x0" && pkg_failed=yes
21906 else
21907   pkg_failed=yes
21908 fi
21909  else
21910     pkg_failed=untried
21911 fi
21912
21913
21914
21915 if test $pkg_failed = yes; then
21916         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21917 $as_echo "no" >&6; }
21918
21919 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21920         _pkg_short_errors_supported=yes
21921 else
21922         _pkg_short_errors_supported=no
21923 fi
21924         if test $_pkg_short_errors_supported = yes; then
21925                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libebook-1.2" 2>&1`
21926         else
21927                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libebook-1.2" 2>&1`
21928         fi
21929         # Put the nasty error message in config.log where it belongs
21930         echo "$EBOOK_PKG_ERRORS" >&5
21931
21932         EBOOKFOUND=no
21933 elif test $pkg_failed = untried; then
21934         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21935 $as_echo "no" >&6; }
21936         EBOOKFOUND=no
21937 else
21938         EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
21939         EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
21940         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21941 $as_echo "yes" >&6; }
21942         EBOOKFOUND=yes
21943 fi
21944
21945
21946 pkg_failed=no
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBOOK_VERSION" >&5
21948 $as_echo_n "checking for EBOOK_VERSION... " >&6; }
21949
21950 if test -n "$EBOOK_VERSION_CFLAGS"; then
21951     pkg_cv_EBOOK_VERSION_CFLAGS="$EBOOK_VERSION_CFLAGS"
21952  elif test -n "$PKG_CONFIG"; then
21953     if test -n "$PKG_CONFIG" && \
21954     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2 >= 3.3\""; } >&5
21955   ($PKG_CONFIG --exists --print-errors "libebook-1.2 >= 3.3") 2>&5
21956   ac_status=$?
21957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21958   test $ac_status = 0; }; then
21959   pkg_cv_EBOOK_VERSION_CFLAGS=`$PKG_CONFIG --cflags "libebook-1.2 >= 3.3" 2>/dev/null`
21960                       test "x$?" != "x0" && pkg_failed=yes
21961 else
21962   pkg_failed=yes
21963 fi
21964  else
21965     pkg_failed=untried
21966 fi
21967 if test -n "$EBOOK_VERSION_LIBS"; then
21968     pkg_cv_EBOOK_VERSION_LIBS="$EBOOK_VERSION_LIBS"
21969  elif test -n "$PKG_CONFIG"; then
21970     if test -n "$PKG_CONFIG" && \
21971     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2 >= 3.3\""; } >&5
21972   ($PKG_CONFIG --exists --print-errors "libebook-1.2 >= 3.3") 2>&5
21973   ac_status=$?
21974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21975   test $ac_status = 0; }; then
21976   pkg_cv_EBOOK_VERSION_LIBS=`$PKG_CONFIG --libs "libebook-1.2 >= 3.3" 2>/dev/null`
21977                       test "x$?" != "x0" && pkg_failed=yes
21978 else
21979   pkg_failed=yes
21980 fi
21981  else
21982     pkg_failed=untried
21983 fi
21984
21985
21986
21987 if test $pkg_failed = yes; then
21988         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21989 $as_echo "no" >&6; }
21990
21991 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21992         _pkg_short_errors_supported=yes
21993 else
21994         _pkg_short_errors_supported=no
21995 fi
21996         if test $_pkg_short_errors_supported = yes; then
21997                 EBOOK_VERSION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libebook-1.2 >= 3.3" 2>&1`
21998         else
21999                 EBOOK_VERSION_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libebook-1.2 >= 3.3" 2>&1`
22000         fi
22001         # Put the nasty error message in config.log where it belongs
22002         echo "$EBOOK_VERSION_PKG_ERRORS" >&5
22003
22004         true
22005 elif test $pkg_failed = untried; then
22006         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22007 $as_echo "no" >&6; }
22008         true
22009 else
22010         EBOOK_VERSION_CFLAGS=$pkg_cv_EBOOK_VERSION_CFLAGS
22011         EBOOK_VERSION_LIBS=$pkg_cv_EBOOK_VERSION_LIBS
22012         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22013 $as_echo "yes" >&6; }
22014
22015 $as_echo "#define HAVE_E_CONTACT_INLINE_LOCAL_PHOTOS 1" >>confdefs.h
22016
22017 fi
22018
22019
22020           # Check whether --enable-ebook was given.
22021 if test "${enable_ebook+set}" = set; then :
22022   enableval=$enable_ebook; enable_ebook="$enableval"
22023 else
22024   test "$EBOOKFOUND" = "yes" && enable_ebook="yes" ||
22025                        as_fn_error $? "libebook not found. Use --disable-ebook to compile without or install the necessary development files." "$LINENO" 5
22026
22027 fi
22028
22029           BACKENDS="$BACKENDS ebook"
22030           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_EBOOK"
22031           for source in evolution
22032           do
22033             SYNCSOURCES="$SYNCSOURCES src/backends/evolution/syncebook.la"
22034           done
22035
22036
22037
22038           # Check whether --enable-ecal was given.
22039 if test "${enable_ecal+set}" = set; then :
22040   enableval=$enable_ecal; enable_ecal="$enableval"
22041 else
22042   test "$ECALFOUND" = "yes" && enable_ecal="yes" ||
22043                        as_fn_error $? "libecal not found. Use --disable-ecal to compile without or install the necessary development files." "$LINENO" 5
22044
22045 fi
22046
22047           BACKENDS="$BACKENDS ecal"
22048           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_ECAL"
22049           for source in evolution
22050           do
22051             SYNCSOURCES="$SYNCSOURCES src/backends/evolution/syncecal.la"
22052           done
22053
22054
22055
22056 enable_evo="no"
22057 if test "$enable_ebook" = "yes"; then
22058         test "x${EBOOKFOUND}" = "xyes" || as_fn_error $? "--enable-ebook requires pkg-config information for libebook, which was not found" "$LINENO" 5
22059
22060 $as_echo "#define ENABLE_EBOOK 1" >>confdefs.h
22061
22062         enable_evo="yes"
22063 else
22064         EBOOK_CFLAGS=
22065         EBOOK_LIBS=
22066 fi
22067
22068  if test "$enable_ecal" = "yes"; then
22069   ENABLE_ECAL_TRUE=
22070   ENABLE_ECAL_FALSE='#'
22071 else
22072   ENABLE_ECAL_TRUE='#'
22073   ENABLE_ECAL_FALSE=
22074 fi
22075
22076 if test "$enable_ecal" = "yes"; then
22077         need_ical="yes"
22078         test "x${ECALFOUND}" = "xyes" || as_fn_error $? "--enable-ecal requires pkg-config information for libecal, which was not found\"" "$LINENO" 5
22079
22080 $as_echo "#define ENABLE_ECAL 1" >>confdefs.h
22081
22082         enable_evo="yes"
22083 else
22084         ECAL_CFLAGS=
22085         ECAL_LIBS=
22086 fi
22087
22088 if test "$enable_evo" = "yes"; then
22089         need_glib="yes"
22090         if test "$EDSFOUND" = "yes"; then
22091
22092 $as_echo "#define HAVE_EDS 1" >>confdefs.h
22093
22094         else
22095                 as_fn_error $? "$evomissing" "$LINENO" 5
22096         fi
22097         # Only the EClient code supports the API in EDS 3.5.x.
22098
22099 pkg_failed=no
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EDS_VERSION" >&5
22101 $as_echo_n "checking for EDS_VERSION... " >&6; }
22102
22103 if test -n "$EDS_VERSION_CFLAGS"; then
22104     pkg_cv_EDS_VERSION_CFLAGS="$EDS_VERSION_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 \"libedataserver-1.2 >= 3.5\""; } >&5
22108   ($PKG_CONFIG --exists --print-errors "libedataserver-1.2 >= 3.5") 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_EDS_VERSION_CFLAGS=`$PKG_CONFIG --cflags "libedataserver-1.2 >= 3.5" 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 "$EDS_VERSION_LIBS"; then
22121     pkg_cv_EDS_VERSION_LIBS="$EDS_VERSION_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 \"libedataserver-1.2 >= 3.5\""; } >&5
22125   ($PKG_CONFIG --exists --print-errors "libedataserver-1.2 >= 3.5") 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_EDS_VERSION_LIBS=`$PKG_CONFIG --libs "libedataserver-1.2 >= 3.5" 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                 EDS_VERSION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedataserver-1.2 >= 3.5" 2>&1`
22151         else
22152                 EDS_VERSION_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedataserver-1.2 >= 3.5" 2>&1`
22153         fi
22154         # Put the nasty error message in config.log where it belongs
22155         echo "$EDS_VERSION_PKG_ERRORS" >&5
22156
22157         CFLAGS_old="$CFLAGS"
22158         CFLAGS="$CFLAGS $EPACKAGE_CFLAGS"
22159         for ac_header in libedataserver/eds-version.h
22160 do :
22161   ac_fn_cxx_check_header_mongrel "$LINENO" "libedataserver/eds-version.h" "ac_cv_header_libedataserver_eds_version_h" "$ac_includes_default"
22162 if test "x$ac_cv_header_libedataserver_eds_version_h" = xyes; then :
22163   cat >>confdefs.h <<_ACEOF
22164 #define HAVE_LIBEDATASERVER_EDS_VERSION_H 1
22165 _ACEOF
22166
22167 fi
22168
22169 done
22170
22171         CFLAGS="$CFLAGS_old"
22172 elif test $pkg_failed = untried; then
22173         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22174 $as_echo "no" >&6; }
22175         CFLAGS_old="$CFLAGS"
22176         CFLAGS="$CFLAGS $EPACKAGE_CFLAGS"
22177         for ac_header in libedataserver/eds-version.h
22178 do :
22179   ac_fn_cxx_check_header_mongrel "$LINENO" "libedataserver/eds-version.h" "ac_cv_header_libedataserver_eds_version_h" "$ac_includes_default"
22180 if test "x$ac_cv_header_libedataserver_eds_version_h" = xyes; then :
22181   cat >>confdefs.h <<_ACEOF
22182 #define HAVE_LIBEDATASERVER_EDS_VERSION_H 1
22183 _ACEOF
22184
22185 fi
22186
22187 done
22188
22189         CFLAGS="$CFLAGS_old"
22190 else
22191         EDS_VERSION_CFLAGS=$pkg_cv_EDS_VERSION_CFLAGS
22192         EDS_VERSION_LIBS=$pkg_cv_EDS_VERSION_LIBS
22193         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22194 $as_echo "yes" >&6; }
22195
22196 $as_echo "#define USE_EDS_CLIENT 1" >>confdefs.h
22197
22198                            # When using it, then we also need libebook-contacts-1.2
22199                            # for the ESourceBackendSummary extension.
22200
22201 pkg_failed=no
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBOOKCONTACTS" >&5
22203 $as_echo_n "checking for EBOOKCONTACTS... " >&6; }
22204
22205 if test -n "$EBOOKCONTACTS_CFLAGS"; then
22206     pkg_cv_EBOOKCONTACTS_CFLAGS="$EBOOKCONTACTS_CFLAGS"
22207  elif test -n "$PKG_CONFIG"; then
22208     if test -n "$PKG_CONFIG" && \
22209     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-contacts-1.2\""; } >&5
22210   ($PKG_CONFIG --exists --print-errors "libebook-contacts-1.2") 2>&5
22211   ac_status=$?
22212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22213   test $ac_status = 0; }; then
22214   pkg_cv_EBOOKCONTACTS_CFLAGS=`$PKG_CONFIG --cflags "libebook-contacts-1.2" 2>/dev/null`
22215                       test "x$?" != "x0" && pkg_failed=yes
22216 else
22217   pkg_failed=yes
22218 fi
22219  else
22220     pkg_failed=untried
22221 fi
22222 if test -n "$EBOOKCONTACTS_LIBS"; then
22223     pkg_cv_EBOOKCONTACTS_LIBS="$EBOOKCONTACTS_LIBS"
22224  elif test -n "$PKG_CONFIG"; then
22225     if test -n "$PKG_CONFIG" && \
22226     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-contacts-1.2\""; } >&5
22227   ($PKG_CONFIG --exists --print-errors "libebook-contacts-1.2") 2>&5
22228   ac_status=$?
22229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22230   test $ac_status = 0; }; then
22231   pkg_cv_EBOOKCONTACTS_LIBS=`$PKG_CONFIG --libs "libebook-contacts-1.2" 2>/dev/null`
22232                       test "x$?" != "x0" && pkg_failed=yes
22233 else
22234   pkg_failed=yes
22235 fi
22236  else
22237     pkg_failed=untried
22238 fi
22239
22240
22241
22242 if test $pkg_failed = yes; then
22243         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22244 $as_echo "no" >&6; }
22245
22246 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22247         _pkg_short_errors_supported=yes
22248 else
22249         _pkg_short_errors_supported=no
22250 fi
22251         if test $_pkg_short_errors_supported = yes; then
22252                 EBOOKCONTACTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libebook-contacts-1.2" 2>&1`
22253         else
22254                 EBOOKCONTACTS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libebook-contacts-1.2" 2>&1`
22255         fi
22256         # Put the nasty error message in config.log where it belongs
22257         echo "$EBOOKCONTACTS_PKG_ERRORS" >&5
22258
22259         as_fn_error $? "Package requirements (libebook-contacts-1.2) were not met:
22260
22261 $EBOOKCONTACTS_PKG_ERRORS
22262
22263 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22264 installed software in a non-standard prefix.
22265
22266 Alternatively, you may set the environment variables EBOOKCONTACTS_CFLAGS
22267 and EBOOKCONTACTS_LIBS to avoid the need to call pkg-config.
22268 See the pkg-config man page for more details." "$LINENO" 5
22269 elif test $pkg_failed = untried; then
22270         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22271 $as_echo "no" >&6; }
22272         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22274 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22275 is in your PATH or set the PKG_CONFIG environment variable to the full
22276 path to pkg-config.
22277
22278 Alternatively, you may set the environment variables EBOOKCONTACTS_CFLAGS
22279 and EBOOKCONTACTS_LIBS to avoid the need to call pkg-config.
22280 See the pkg-config man page for more details.
22281
22282 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22283 See \`config.log' for more details" "$LINENO" 5; }
22284 else
22285         EBOOKCONTACTS_CFLAGS=$pkg_cv_EBOOKCONTACTS_CFLAGS
22286         EBOOKCONTACTS_LIBS=$pkg_cv_EBOOKCONTACTS_LIBS
22287         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22288 $as_echo "yes" >&6; }
22289
22290 fi
22291                            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for e_book_client_new_direct in -lebook-1.2" >&5
22292 $as_echo_n "checking for e_book_client_new_direct in -lebook-1.2... " >&6; }
22293 if ${ac_cv_lib_ebook_1_2_e_book_client_new_direct+:} false; then :
22294   $as_echo_n "(cached) " >&6
22295 else
22296   ac_check_lib_save_LIBS=$LIBS
22297 LIBS="-lebook-1.2 $EDS_VERSION_LIBS $LIBS"
22298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22299 /* end confdefs.h.  */
22300
22301 /* Override any GCC internal prototype to avoid an error.
22302    Use char because int might match the return type of a GCC
22303    builtin and then its argument prototype would still apply.  */
22304 #ifdef __cplusplus
22305 extern "C"
22306 #endif
22307 char e_book_client_new_direct ();
22308 int
22309 main ()
22310 {
22311 return e_book_client_new_direct ();
22312   ;
22313   return 0;
22314 }
22315 _ACEOF
22316 if ac_fn_cxx_try_link "$LINENO"; then :
22317   ac_cv_lib_ebook_1_2_e_book_client_new_direct=yes
22318 else
22319   ac_cv_lib_ebook_1_2_e_book_client_new_direct=no
22320 fi
22321 rm -f core conftest.err conftest.$ac_objext \
22322     conftest$ac_exeext conftest.$ac_ext
22323 LIBS=$ac_check_lib_save_LIBS
22324 fi
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebook_1_2_e_book_client_new_direct" >&5
22326 $as_echo "$ac_cv_lib_ebook_1_2_e_book_client_new_direct" >&6; }
22327 if test "x$ac_cv_lib_ebook_1_2_e_book_client_new_direct" = xyes; then :
22328
22329 $as_echo "#define HAVE_E_BOOK_CLIENT_NEW_DIRECT 1" >>confdefs.h
22330
22331 else
22332   true
22333 fi
22334
22335                            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for e_book_client_connect_direct_sync in -lebook-1.2" >&5
22336 $as_echo_n "checking for e_book_client_connect_direct_sync in -lebook-1.2... " >&6; }
22337 if ${ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync+:} false; then :
22338   $as_echo_n "(cached) " >&6
22339 else
22340   ac_check_lib_save_LIBS=$LIBS
22341 LIBS="-lebook-1.2 $EDS_VERSION_LIBS $LIBS"
22342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22343 /* end confdefs.h.  */
22344
22345 /* Override any GCC internal prototype to avoid an error.
22346    Use char because int might match the return type of a GCC
22347    builtin and then its argument prototype would still apply.  */
22348 #ifdef __cplusplus
22349 extern "C"
22350 #endif
22351 char e_book_client_connect_direct_sync ();
22352 int
22353 main ()
22354 {
22355 return e_book_client_connect_direct_sync ();
22356   ;
22357   return 0;
22358 }
22359 _ACEOF
22360 if ac_fn_cxx_try_link "$LINENO"; then :
22361   ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync=yes
22362 else
22363   ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync=no
22364 fi
22365 rm -f core conftest.err conftest.$ac_objext \
22366     conftest$ac_exeext conftest.$ac_ext
22367 LIBS=$ac_check_lib_save_LIBS
22368 fi
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync" >&5
22370 $as_echo "$ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync" >&6; }
22371 if test "x$ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync" = xyes; then :
22372
22373 $as_echo "#define HAVE_E_BOOK_CLIENT_CONNECT_DIRECT_SYNC 1" >>confdefs.h
22374
22375 else
22376   true
22377 fi
22378
22379
22380 fi
22381 else
22382         EPACKAGE_CFLAGS=
22383         EPACKAGE_LIBS=
22384 fi
22385
22386 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EPACKAGE_CFLAGS $ECAL_CFLAGS $EBOOK_CFLAGS $EBOOKCONTACTS_CFLAGS"
22387 # ^^^^^^^^^^^^^^ src/backends/evolution/configure-sub.in ^^^^^^^^^^^^^^
22388
22389 # vvvvvvvvvvvvvv src/backends/file/configure-sub.in vvvvvvvvvvvvvv
22390
22391
22392 FILE_CFLAGS=
22393 FILE_LIBS=
22394
22395
22396
22397 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $FILE_CFLAGS"
22398
22399
22400           # Check whether --enable-file was given.
22401 if test "${enable_file+set}" = set; then :
22402   enableval=$enable_file; enable_file="$enableval"
22403 else
22404   enable_file="yes"
22405
22406 fi
22407
22408           BACKENDS="$BACKENDS file"
22409           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_FILE"
22410           for source in file
22411           do
22412             SYNCSOURCES="$SYNCSOURCES src/backends/file/syncfile.la"
22413           done
22414
22415
22416
22417 if test "$enable_file" = "yes"; then
22418
22419 $as_echo "#define ENABLE_FILE 1" >>confdefs.h
22420
22421 fi
22422 # ^^^^^^^^^^^^^^ src/backends/file/configure-sub.in ^^^^^^^^^^^^^^
22423
22424 # vvvvvvvvvvvvvv src/backends/gnome/configure-sub.in vvvvvvvvvvvvvv
22425
22426 pkg_failed=no
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KEYRING" >&5
22428 $as_echo_n "checking for KEYRING... " >&6; }
22429
22430 if test -n "$KEYRING_CFLAGS"; then
22431     pkg_cv_KEYRING_CFLAGS="$KEYRING_CFLAGS"
22432  elif test -n "$PKG_CONFIG"; then
22433     if test -n "$PKG_CONFIG" && \
22434     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1\""; } >&5
22435   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1") 2>&5
22436   ac_status=$?
22437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22438   test $ac_status = 0; }; then
22439   pkg_cv_KEYRING_CFLAGS=`$PKG_CONFIG --cflags "gnome-keyring-1" 2>/dev/null`
22440                       test "x$?" != "x0" && pkg_failed=yes
22441 else
22442   pkg_failed=yes
22443 fi
22444  else
22445     pkg_failed=untried
22446 fi
22447 if test -n "$KEYRING_LIBS"; then
22448     pkg_cv_KEYRING_LIBS="$KEYRING_LIBS"
22449  elif test -n "$PKG_CONFIG"; then
22450     if test -n "$PKG_CONFIG" && \
22451     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1\""; } >&5
22452   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1") 2>&5
22453   ac_status=$?
22454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22455   test $ac_status = 0; }; then
22456   pkg_cv_KEYRING_LIBS=`$PKG_CONFIG --libs "gnome-keyring-1" 2>/dev/null`
22457                       test "x$?" != "x0" && pkg_failed=yes
22458 else
22459   pkg_failed=yes
22460 fi
22461  else
22462     pkg_failed=untried
22463 fi
22464
22465
22466
22467 if test $pkg_failed = yes; then
22468         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22469 $as_echo "no" >&6; }
22470
22471 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22472         _pkg_short_errors_supported=yes
22473 else
22474         _pkg_short_errors_supported=no
22475 fi
22476         if test $_pkg_short_errors_supported = yes; then
22477                 KEYRING_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnome-keyring-1" 2>&1`
22478         else
22479                 KEYRING_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnome-keyring-1" 2>&1`
22480         fi
22481         # Put the nasty error message in config.log where it belongs
22482         echo "$KEYRING_PKG_ERRORS" >&5
22483
22484         HAVE_KEYRING=no
22485 elif test $pkg_failed = untried; then
22486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22487 $as_echo "no" >&6; }
22488         HAVE_KEYRING=no
22489 else
22490         KEYRING_CFLAGS=$pkg_cv_KEYRING_CFLAGS
22491         KEYRING_LIBS=$pkg_cv_KEYRING_LIBS
22492         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22493 $as_echo "yes" >&6; }
22494         HAVE_KEYRING=yes
22495 fi
22496 # Check whether --enable-gnome-keyring was given.
22497 if test "${enable_gnome_keyring+set}" = set; then :
22498   enableval=$enable_gnome_keyring; enable_gnome_keyring="$enableval"
22499                test "$enable_gnome_keyring" = "yes" || test "$enable_gnome_keyring" = "no" || as_fn_error $? "invalid value for --enable-gnome-keyring: $enable_gnome_keyring" "$LINENO" 5
22500                test "$enable_gnome_keyring" = "no" || test "$HAVE_KEYRING" = "yes" || as_fn_error $? "gnome-keyring-1 pkg not found, needed for --enable-gnome-keyring" "$LINENO" 5
22501 else
22502   enable_gnome_keyring="$HAVE_KEYRING"
22503 fi
22504
22505 if test $enable_gnome_keyring = "yes"; then
22506
22507 $as_echo "#define USE_GNOME_KEYRING 1" >>confdefs.h
22508
22509
22510 pkg_failed=no
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KEYRING_2_20" >&5
22512 $as_echo_n "checking for KEYRING_2_20... " >&6; }
22513
22514 if test -n "$KEYRING_2_20_CFLAGS"; then
22515     pkg_cv_KEYRING_2_20_CFLAGS="$KEYRING_2_20_CFLAGS"
22516  elif test -n "$PKG_CONFIG"; then
22517     if test -n "$PKG_CONFIG" && \
22518     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1 >= 2.20 \""; } >&5
22519   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1 >= 2.20 ") 2>&5
22520   ac_status=$?
22521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22522   test $ac_status = 0; }; then
22523   pkg_cv_KEYRING_2_20_CFLAGS=`$PKG_CONFIG --cflags "gnome-keyring-1 >= 2.20 " 2>/dev/null`
22524                       test "x$?" != "x0" && pkg_failed=yes
22525 else
22526   pkg_failed=yes
22527 fi
22528  else
22529     pkg_failed=untried
22530 fi
22531 if test -n "$KEYRING_2_20_LIBS"; then
22532     pkg_cv_KEYRING_2_20_LIBS="$KEYRING_2_20_LIBS"
22533  elif test -n "$PKG_CONFIG"; then
22534     if test -n "$PKG_CONFIG" && \
22535     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1 >= 2.20 \""; } >&5
22536   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1 >= 2.20 ") 2>&5
22537   ac_status=$?
22538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22539   test $ac_status = 0; }; then
22540   pkg_cv_KEYRING_2_20_LIBS=`$PKG_CONFIG --libs "gnome-keyring-1 >= 2.20 " 2>/dev/null`
22541                       test "x$?" != "x0" && pkg_failed=yes
22542 else
22543   pkg_failed=yes
22544 fi
22545  else
22546     pkg_failed=untried
22547 fi
22548
22549
22550
22551 if test $pkg_failed = yes; then
22552         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22553 $as_echo "no" >&6; }
22554
22555 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22556         _pkg_short_errors_supported=yes
22557 else
22558         _pkg_short_errors_supported=no
22559 fi
22560         if test $_pkg_short_errors_supported = yes; then
22561                 KEYRING_2_20_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnome-keyring-1 >= 2.20 " 2>&1`
22562         else
22563                 KEYRING_2_20_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnome-keyring-1 >= 2.20 " 2>&1`
22564         fi
22565         # Put the nasty error message in config.log where it belongs
22566         echo "$KEYRING_2_20_PKG_ERRORS" >&5
22567
22568         true
22569 elif test $pkg_failed = untried; then
22570         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22571 $as_echo "no" >&6; }
22572         true
22573 else
22574         KEYRING_2_20_CFLAGS=$pkg_cv_KEYRING_2_20_CFLAGS
22575         KEYRING_2_20_LIBS=$pkg_cv_KEYRING_2_20_LIBS
22576         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22577 $as_echo "yes" >&6; }
22578
22579 $as_echo "#define GNOME_KEYRING_220 1" >>confdefs.h
22580
22581 fi
22582     # link into static executables, similar to a SyncSource
22583     SYNCSOURCES="$SYNCSOURCES src/backends/gnome/platformgnome.la"
22584 fi
22585 # ^^^^^^^^^^^^^^ src/backends/gnome/configure-sub.in ^^^^^^^^^^^^^^
22586
22587 # vvvvvvvvvvvvvv src/backends/kcalextended/configure-sub.in vvvvvvvvvvvvvv
22588
22589 # BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS ..."
22590
22591
22592           # Check whether --enable-kcalextended was given.
22593 if test "${enable_kcalextended+set}" = set; then :
22594   enableval=$enable_kcalextended; enable_kcalextended="$enableval"
22595 else
22596   enable_kcalextended="no"
22597
22598 fi
22599
22600           BACKENDS="$BACKENDS kcalextended"
22601           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_KCALEXTENDED"
22602           for source in kcalextended
22603           do
22604             SYNCSOURCES="$SYNCSOURCES src/backends/kcalextended/synckcalextended.la"
22605           done
22606
22607
22608
22609 if test "$enable_kcalextended" = "yes"; then
22610
22611 $as_echo "#define ENABLE_KCALEXTENDED 1" >>confdefs.h
22612
22613
22614 pkg_failed=no
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KCALEXTENDED" >&5
22616 $as_echo_n "checking for KCALEXTENDED... " >&6; }
22617
22618 if test -n "$KCALEXTENDED_CFLAGS"; then
22619     pkg_cv_KCALEXTENDED_CFLAGS="$KCALEXTENDED_CFLAGS"
22620  elif test -n "$PKG_CONFIG"; then
22621     if test -n "$PKG_CONFIG" && \
22622     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmkcal libkcalcoren\""; } >&5
22623   ($PKG_CONFIG --exists --print-errors "libmkcal libkcalcoren") 2>&5
22624   ac_status=$?
22625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22626   test $ac_status = 0; }; then
22627   pkg_cv_KCALEXTENDED_CFLAGS=`$PKG_CONFIG --cflags "libmkcal libkcalcoren" 2>/dev/null`
22628                       test "x$?" != "x0" && pkg_failed=yes
22629 else
22630   pkg_failed=yes
22631 fi
22632  else
22633     pkg_failed=untried
22634 fi
22635 if test -n "$KCALEXTENDED_LIBS"; then
22636     pkg_cv_KCALEXTENDED_LIBS="$KCALEXTENDED_LIBS"
22637  elif test -n "$PKG_CONFIG"; then
22638     if test -n "$PKG_CONFIG" && \
22639     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmkcal libkcalcoren\""; } >&5
22640   ($PKG_CONFIG --exists --print-errors "libmkcal libkcalcoren") 2>&5
22641   ac_status=$?
22642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22643   test $ac_status = 0; }; then
22644   pkg_cv_KCALEXTENDED_LIBS=`$PKG_CONFIG --libs "libmkcal libkcalcoren" 2>/dev/null`
22645                       test "x$?" != "x0" && pkg_failed=yes
22646 else
22647   pkg_failed=yes
22648 fi
22649  else
22650     pkg_failed=untried
22651 fi
22652
22653
22654
22655 if test $pkg_failed = yes; then
22656         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22657 $as_echo "no" >&6; }
22658
22659 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22660         _pkg_short_errors_supported=yes
22661 else
22662         _pkg_short_errors_supported=no
22663 fi
22664         if test $_pkg_short_errors_supported = yes; then
22665                 KCALEXTENDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmkcal libkcalcoren" 2>&1`
22666         else
22667                 KCALEXTENDED_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmkcal libkcalcoren" 2>&1`
22668         fi
22669         # Put the nasty error message in config.log where it belongs
22670         echo "$KCALEXTENDED_PKG_ERRORS" >&5
22671
22672         as_fn_error $? "Package requirements (libmkcal libkcalcoren) were not met:
22673
22674 $KCALEXTENDED_PKG_ERRORS
22675
22676 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22677 installed software in a non-standard prefix.
22678
22679 Alternatively, you may set the environment variables KCALEXTENDED_CFLAGS
22680 and KCALEXTENDED_LIBS to avoid the need to call pkg-config.
22681 See the pkg-config man page for more details." "$LINENO" 5
22682 elif test $pkg_failed = untried; then
22683         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22684 $as_echo "no" >&6; }
22685         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22687 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22688 is in your PATH or set the PKG_CONFIG environment variable to the full
22689 path to pkg-config.
22690
22691 Alternatively, you may set the environment variables KCALEXTENDED_CFLAGS
22692 and KCALEXTENDED_LIBS to avoid the need to call pkg-config.
22693 See the pkg-config man page for more details.
22694
22695 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22696 See \`config.log' for more details" "$LINENO" 5; }
22697 else
22698         KCALEXTENDED_CFLAGS=$pkg_cv_KCALEXTENDED_CFLAGS
22699         KCALEXTENDED_LIBS=$pkg_cv_KCALEXTENDED_LIBS
22700         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22701 $as_echo "yes" >&6; }
22702
22703 fi
22704 fi
22705 # ^^^^^^^^^^^^^^ src/backends/kcalextended/configure-sub.in ^^^^^^^^^^^^^^
22706
22707 # vvvvvvvvvvvvvv src/backends/kde/configure-sub.in vvvvvvvvvvvvvv
22708 # first check for qmake-qt4, because qmake may point to qmake-qt3.
22709 for ac_prog in qmake-qt4 qmake
22710 do
22711   # Extract the first word of "$ac_prog", so it can be a program name with args.
22712 set dummy $ac_prog; ac_word=$2
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22714 $as_echo_n "checking for $ac_word... " >&6; }
22715 if ${ac_cv_prog_QMAKE+:} false; then :
22716   $as_echo_n "(cached) " >&6
22717 else
22718   if test -n "$QMAKE"; then
22719   ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
22720 else
22721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22722 for as_dir in $PATH
22723 do
22724   IFS=$as_save_IFS
22725   test -z "$as_dir" && as_dir=.
22726     for ac_exec_ext in '' $ac_executable_extensions; do
22727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22728     ac_cv_prog_QMAKE="$ac_prog"
22729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22730     break 2
22731   fi
22732 done
22733   done
22734 IFS=$as_save_IFS
22735
22736 fi
22737 fi
22738 QMAKE=$ac_cv_prog_QMAKE
22739 if test -n "$QMAKE"; then
22740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
22741 $as_echo "$QMAKE" >&6; }
22742 else
22743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22744 $as_echo "no" >&6; }
22745 fi
22746
22747
22748   test -n "$QMAKE" && break
22749 done
22750
22751
22752 if test "x$QMAKE" != 'x'
22753 then
22754   # Extract the first word of "kde4-config", so it can be a program name with args.
22755 set dummy kde4-config; ac_word=$2
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22757 $as_echo_n "checking for $ac_word... " >&6; }
22758 if ${ac_cv_path_KDE4_CONFIG+:} false; then :
22759   $as_echo_n "(cached) " >&6
22760 else
22761   case $KDE4_CONFIG in
22762   [\\/]* | ?:[\\/]*)
22763   ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
22764   ;;
22765   *)
22766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22767 for as_dir in $PATH
22768 do
22769   IFS=$as_save_IFS
22770   test -z "$as_dir" && as_dir=.
22771     for ac_exec_ext in '' $ac_executable_extensions; do
22772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22773     ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22775     break 2
22776   fi
22777 done
22778   done
22779 IFS=$as_save_IFS
22780
22781   test -z "$ac_cv_path_KDE4_CONFIG" && ac_cv_path_KDE4_CONFIG="no"
22782   ;;
22783 esac
22784 fi
22785 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
22786 if test -n "$KDE4_CONFIG"; then
22787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
22788 $as_echo "$KDE4_CONFIG" >&6; }
22789 else
22790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22791 $as_echo "no" >&6; }
22792 fi
22793
22794
22795
22796   if test "x$KDE4_CONFIG" != 'xno'
22797   then
22798     KDEKWALLETFOUND=yes
22799     if ! test "$KDE_KWALLET_CFLAGS"; then
22800       KDE_KWALLET_CFLAGS="-I`$KDE4_CONFIG --path include` -I`$KDE4_CONFIG --path include`/KDE `pkg-config --cflags QtDBus QtCore`"
22801     fi
22802     if ! test "$KDE_KWALLET_LIBS"; then
22803       KDE_KWALLET_LIBS="-lkdeui -lkdecore -L`kde4-config --install lib` `pkg-config --libs QtDBus QtCore`"
22804     fi
22805     ac_ext=cpp
22806 ac_cpp='$CXXCPP $CPPFLAGS'
22807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22810
22811     old_CPPFLAGS="$CPPFLAGS"
22812     CPPFLAGS="$CPPFLAGS $KDE_KWALLET_CFLAGS"
22813     for ac_header in kwallet.h
22814 do :
22815   ac_fn_cxx_check_header_mongrel "$LINENO" "kwallet.h" "ac_cv_header_kwallet_h" "$ac_includes_default"
22816 if test "x$ac_cv_header_kwallet_h" = xyes; then :
22817   cat >>confdefs.h <<_ACEOF
22818 #define HAVE_KWALLET_H 1
22819 _ACEOF
22820
22821 else
22822   KDEKWALLETFOUND=no
22823 fi
22824
22825 done
22826
22827     CPPFLAGS="$old_CPPFLAGS"
22828     ac_ext=cpp
22829 ac_cpp='$CXXCPP $CPPFLAGS'
22830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22833
22834   else
22835     KDEKWALLETFOUND=no
22836   fi
22837 else
22838   KDEKWALLETFOUND=no
22839 fi
22840
22841 # In contrast to the GNOME KEYRING, the KWallet is
22842 # currently considered optional. "configure" will never enable
22843 # by default, because that is a change that might not be
22844 # expected by traditional users.
22845 # Check whether --enable-kwallet was given.
22846 if test "${enable_kwallet+set}" = set; then :
22847   enableval=$enable_kwallet; use_kde_kwallet="$enableval"
22848               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
22849 else
22850   use_kde_kwallet="no"
22851 fi
22852
22853
22854 if test "$use_kde_kwallet" = "yes"; then
22855     # conditional compilation in preprocessor
22856
22857 $as_echo "#define USE_KDE_KWALLET 1" >>confdefs.h
22858
22859     # link into static executables, similar to a SyncSource
22860     SYNCSOURCES="$SYNCSOURCES src/backends/kde/platformkde.la"
22861     # TODO: KWallet needs Qt. Enable the Qt check in
22862     # configure-post.in, otherwise it fails to compiler
22863     # when none of the backends ask for Qt.
22864 else
22865     # avoid unneeded dependencies on KWallet
22866     KDE_KWALLET_CFLAGS=
22867     KDE_KWALLET_LIBS=
22868 fi
22869
22870
22871
22872 # conditional compilation in make
22873  if test "$use_kde_kwallet" = "yes"; then
22874   USE_KDE_KWALLET_TRUE=
22875   USE_KDE_KWALLET_FALSE='#'
22876 else
22877   USE_KDE_KWALLET_TRUE='#'
22878   USE_KDE_KWALLET_FALSE=
22879 fi
22880
22881 # ^^^^^^^^^^^^^^ src/backends/kde/configure-sub.in ^^^^^^^^^^^^^^
22882
22883 # vvvvvvvvvvvvvv src/backends/maemo/configure-sub.in vvvvvvvvvvvvvv
22884
22885
22886 pkg_failed=no
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCALB" >&5
22888 $as_echo_n "checking for MCALB... " >&6; }
22889
22890 if test -n "$MCALB_CFLAGS"; then
22891     pkg_cv_MCALB_CFLAGS="$MCALB_CFLAGS"
22892  elif test -n "$PKG_CONFIG"; then
22893     if test -n "$PKG_CONFIG" && \
22894     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"calendar-backend\""; } >&5
22895   ($PKG_CONFIG --exists --print-errors "calendar-backend") 2>&5
22896   ac_status=$?
22897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22898   test $ac_status = 0; }; then
22899   pkg_cv_MCALB_CFLAGS=`$PKG_CONFIG --cflags "calendar-backend" 2>/dev/null`
22900                       test "x$?" != "x0" && pkg_failed=yes
22901 else
22902   pkg_failed=yes
22903 fi
22904  else
22905     pkg_failed=untried
22906 fi
22907 if test -n "$MCALB_LIBS"; then
22908     pkg_cv_MCALB_LIBS="$MCALB_LIBS"
22909  elif test -n "$PKG_CONFIG"; then
22910     if test -n "$PKG_CONFIG" && \
22911     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"calendar-backend\""; } >&5
22912   ($PKG_CONFIG --exists --print-errors "calendar-backend") 2>&5
22913   ac_status=$?
22914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22915   test $ac_status = 0; }; then
22916   pkg_cv_MCALB_LIBS=`$PKG_CONFIG --libs "calendar-backend" 2>/dev/null`
22917                       test "x$?" != "x0" && pkg_failed=yes
22918 else
22919   pkg_failed=yes
22920 fi
22921  else
22922     pkg_failed=untried
22923 fi
22924
22925
22926
22927 if test $pkg_failed = yes; then
22928         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22929 $as_echo "no" >&6; }
22930
22931 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22932         _pkg_short_errors_supported=yes
22933 else
22934         _pkg_short_errors_supported=no
22935 fi
22936         if test $_pkg_short_errors_supported = yes; then
22937                 MCALB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "calendar-backend" 2>&1`
22938         else
22939                 MCALB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "calendar-backend" 2>&1`
22940         fi
22941         # Put the nasty error message in config.log where it belongs
22942         echo "$MCALB_PKG_ERRORS" >&5
22943
22944         MCALBFOUND=no
22945 elif test $pkg_failed = untried; then
22946         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22947 $as_echo "no" >&6; }
22948         MCALBFOUND=no
22949 else
22950         MCALB_CFLAGS=$pkg_cv_MCALB_CFLAGS
22951         MCALB_LIBS=$pkg_cv_MCALB_LIBS
22952         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22953 $as_echo "yes" >&6; }
22954         MCALBFOUND=yes
22955 fi
22956
22957
22958 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $MCALB_CFLAGS"
22959
22960
22961           # Check whether --enable-maemocal was given.
22962 if test "${enable_maemocal+set}" = set; then :
22963   enableval=$enable_maemocal; enable_maemocal="$enableval"
22964 else
22965   enable_maemocal="no"
22966
22967 fi
22968
22969           BACKENDS="$BACKENDS maemocal"
22970           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_MAEMOCAL"
22971           for source in maemo
22972           do
22973             SYNCSOURCES="$SYNCSOURCES src/backends/maemo/syncmaemocal.la"
22974           done
22975
22976
22977
22978 if test "$enable_maemocal" = "yes"; then
22979         test "x${MCALBFOUND}" = "xyes" || as_fn_error $? "--enable-maemocal requires pkg-config information for calendar-backend, which was not found" "$LINENO" 5
22980
22981 $as_echo "#define ENABLE_MAEMO_CALENDAR 1" >>confdefs.h
22982
22983 fi
22984 # ^^^^^^^^^^^^^^ src/backends/maemo/configure-sub.in ^^^^^^^^^^^^^^
22985
22986 # vvvvvvvvvvvvvv src/backends/pbap/configure-sub.in vvvvvvvvvvvvvv
22987
22988
22989 PBAP_CFLAGS=
22990 PBAP_LIBS=
22991
22992
22993
22994 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $PBAP_CFLAGS"
22995
22996
22997           # Check whether --enable-pbap was given.
22998 if test "${enable_pbap+set}" = set; then :
22999   enableval=$enable_pbap; enable_pbap="$enableval"
23000 else
23001   enable_pbap="no"
23002
23003 fi
23004
23005           BACKENDS="$BACKENDS pbap"
23006           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_PBAP"
23007           for source in pbap
23008           do
23009             SYNCSOURCES="$SYNCSOURCES src/backends/pbap/syncpbap.la"
23010           done
23011
23012
23013
23014 if test "$enable_pbap" = "yes"; then
23015
23016 $as_echo "#define ENABLE_PBAP 1" >>confdefs.h
23017
23018                 need_glib="yes"
23019 fi
23020 # ^^^^^^^^^^^^^^ src/backends/pbap/configure-sub.in ^^^^^^^^^^^^^^
23021
23022 # vvvvvvvvvvvvvv src/backends/qtcontacts/configure-sub.in vvvvvvvvvvvvvv
23023
23024 # BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS ..."
23025
23026
23027           # Check whether --enable-qtcontacts was given.
23028 if test "${enable_qtcontacts+set}" = set; then :
23029   enableval=$enable_qtcontacts; enable_qtcontacts="$enableval"
23030 else
23031   enable_qtcontacts="no"
23032
23033 fi
23034
23035           BACKENDS="$BACKENDS qtcontacts"
23036           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_QTCONTACTS"
23037           for source in qtcontacts
23038           do
23039             SYNCSOURCES="$SYNCSOURCES src/backends/qtcontacts/syncqtcontacts.la"
23040           done
23041
23042
23043
23044 if test "$enable_qtcontacts" = "yes"; then
23045
23046 $as_echo "#define ENABLE_QTCONTACTS 1" >>confdefs.h
23047
23048         # AC_WITH_QT() will be called in configure-post if need_qt_modules is not empty,
23049         # setting QT_* flags.
23050         need_qt_modules="$need_qt_modules +gui" # GUI needed for QVersit
23051         qt_config="$qt_config +mobility"
23052         qt_misc="$qt_misc
23053 MOBILITY += contacts versit"
23054 fi
23055
23056 # ^^^^^^^^^^^^^^ src/backends/qtcontacts/configure-sub.in ^^^^^^^^^^^^^^
23057
23058 # vvvvvvvvvvvvvv src/backends/sqlite/configure-sub.in vvvvvvvvvvvvvv
23059
23060
23061 pkg_failed=no
23062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
23063 $as_echo_n "checking for SQLITE... " >&6; }
23064
23065 if test -n "$SQLITE_CFLAGS"; then
23066     pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
23067  elif test -n "$PKG_CONFIG"; then
23068     if test -n "$PKG_CONFIG" && \
23069     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
23070   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
23071   ac_status=$?
23072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23073   test $ac_status = 0; }; then
23074   pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
23075                       test "x$?" != "x0" && pkg_failed=yes
23076 else
23077   pkg_failed=yes
23078 fi
23079  else
23080     pkg_failed=untried
23081 fi
23082 if test -n "$SQLITE_LIBS"; then
23083     pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
23084  elif test -n "$PKG_CONFIG"; then
23085     if test -n "$PKG_CONFIG" && \
23086     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
23087   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
23088   ac_status=$?
23089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23090   test $ac_status = 0; }; then
23091   pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
23092                       test "x$?" != "x0" && pkg_failed=yes
23093 else
23094   pkg_failed=yes
23095 fi
23096  else
23097     pkg_failed=untried
23098 fi
23099
23100
23101
23102 if test $pkg_failed = yes; then
23103         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23104 $as_echo "no" >&6; }
23105
23106 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23107         _pkg_short_errors_supported=yes
23108 else
23109         _pkg_short_errors_supported=no
23110 fi
23111         if test $_pkg_short_errors_supported = yes; then
23112                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
23113         else
23114                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
23115         fi
23116         # Put the nasty error message in config.log where it belongs
23117         echo "$SQLITE_PKG_ERRORS" >&5
23118
23119         SQLITEFOUND=no
23120 elif test $pkg_failed = untried; then
23121         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23122 $as_echo "no" >&6; }
23123         SQLITEFOUND=no
23124 else
23125         SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
23126         SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
23127         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23128 $as_echo "yes" >&6; }
23129         SQLITEFOUND=yes
23130 fi
23131
23132
23133 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $SQLITE_CFLAGS"
23134
23135
23136           # Check whether --enable-sqlite was given.
23137 if test "${enable_sqlite+set}" = set; then :
23138   enableval=$enable_sqlite; enable_sqlite="$enableval"
23139 else
23140   enable_sqlite="no"
23141
23142 fi
23143
23144           BACKENDS="$BACKENDS sqlite"
23145           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_SQLITE"
23146           for source in sqlite
23147           do
23148             SYNCSOURCES="$SYNCSOURCES src/backends/sqlite/syncsqlite.la"
23149           done
23150
23151
23152
23153 if test "$enable_sqlite" = "yes"; then
23154         test "x${SQLITEFOUND}" = "xyes" || as_fn_error $? "--enable-sqlite requires pkg-config information for sqlite3, which was not found" "$LINENO" 5
23155
23156 $as_echo "#define ENABLE_SQLITE 1" >>confdefs.h
23157
23158 else
23159         # avoid linking against it if not needed
23160         SQLITE_CFLAGS=
23161         SQLITE_LIBS=
23162 fi
23163 # ^^^^^^^^^^^^^^ src/backends/sqlite/configure-sub.in ^^^^^^^^^^^^^^
23164
23165 # vvvvvvvvvvvvvv src/backends/webdav/configure-sub.in vvvvvvvvvvvvvv
23166
23167
23168           # Check whether --enable-dav was given.
23169 if test "${enable_dav+set}" = set; then :
23170   enableval=$enable_dav; enable_dav="$enableval"
23171 else
23172   enable_dav="no"
23173
23174 fi
23175
23176           BACKENDS="$BACKENDS dav"
23177           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_DAV"
23178           for source in webdav
23179           do
23180             SYNCSOURCES="$SYNCSOURCES src/backends/webdav/syncdav.la"
23181           done
23182
23183
23184
23185 if test "$enable_dav" = "yes"; then
23186         need_ical="yes"
23187
23188 pkg_failed=no
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEON" >&5
23190 $as_echo_n "checking for NEON... " >&6; }
23191
23192 if test -n "$NEON_CFLAGS"; then
23193     pkg_cv_NEON_CFLAGS="$NEON_CFLAGS"
23194  elif test -n "$PKG_CONFIG"; then
23195     if test -n "$PKG_CONFIG" && \
23196     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.29\""; } >&5
23197   ($PKG_CONFIG --exists --print-errors "neon >= 0.29") 2>&5
23198   ac_status=$?
23199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23200   test $ac_status = 0; }; then
23201   pkg_cv_NEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.29" 2>/dev/null`
23202                       test "x$?" != "x0" && pkg_failed=yes
23203 else
23204   pkg_failed=yes
23205 fi
23206  else
23207     pkg_failed=untried
23208 fi
23209 if test -n "$NEON_LIBS"; then
23210     pkg_cv_NEON_LIBS="$NEON_LIBS"
23211  elif test -n "$PKG_CONFIG"; then
23212     if test -n "$PKG_CONFIG" && \
23213     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.29\""; } >&5
23214   ($PKG_CONFIG --exists --print-errors "neon >= 0.29") 2>&5
23215   ac_status=$?
23216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23217   test $ac_status = 0; }; then
23218   pkg_cv_NEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.29" 2>/dev/null`
23219                       test "x$?" != "x0" && pkg_failed=yes
23220 else
23221   pkg_failed=yes
23222 fi
23223  else
23224     pkg_failed=untried
23225 fi
23226
23227
23228
23229 if test $pkg_failed = yes; then
23230         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23231 $as_echo "no" >&6; }
23232
23233 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23234         _pkg_short_errors_supported=yes
23235 else
23236         _pkg_short_errors_supported=no
23237 fi
23238         if test $_pkg_short_errors_supported = yes; then
23239                 NEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "neon >= 0.29" 2>&1`
23240         else
23241                 NEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "neon >= 0.29" 2>&1`
23242         fi
23243         # Put the nasty error message in config.log where it belongs
23244         echo "$NEON_PKG_ERRORS" >&5
23245
23246
23247 pkg_failed=no
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEON" >&5
23249 $as_echo_n "checking for NEON... " >&6; }
23250
23251 if test -n "$NEON_CFLAGS"; then
23252     pkg_cv_NEON_CFLAGS="$NEON_CFLAGS"
23253  elif test -n "$PKG_CONFIG"; then
23254     if test -n "$PKG_CONFIG" && \
23255     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27\""; } >&5
23256   ($PKG_CONFIG --exists --print-errors "neon >= 0.27") 2>&5
23257   ac_status=$?
23258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23259   test $ac_status = 0; }; then
23260   pkg_cv_NEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.27" 2>/dev/null`
23261                       test "x$?" != "x0" && pkg_failed=yes
23262 else
23263   pkg_failed=yes
23264 fi
23265  else
23266     pkg_failed=untried
23267 fi
23268 if test -n "$NEON_LIBS"; then
23269     pkg_cv_NEON_LIBS="$NEON_LIBS"
23270  elif test -n "$PKG_CONFIG"; then
23271     if test -n "$PKG_CONFIG" && \
23272     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27\""; } >&5
23273   ($PKG_CONFIG --exists --print-errors "neon >= 0.27") 2>&5
23274   ac_status=$?
23275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23276   test $ac_status = 0; }; then
23277   pkg_cv_NEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.27" 2>/dev/null`
23278                       test "x$?" != "x0" && pkg_failed=yes
23279 else
23280   pkg_failed=yes
23281 fi
23282  else
23283     pkg_failed=untried
23284 fi
23285
23286
23287
23288 if test $pkg_failed = yes; then
23289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23290 $as_echo "no" >&6; }
23291
23292 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23293         _pkg_short_errors_supported=yes
23294 else
23295         _pkg_short_errors_supported=no
23296 fi
23297         if test $_pkg_short_errors_supported = yes; then
23298                 NEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "neon >= 0.27" 2>&1`
23299         else
23300                 NEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "neon >= 0.27" 2>&1`
23301         fi
23302         # Put the nasty error message in config.log where it belongs
23303         echo "$NEON_PKG_ERRORS" >&5
23304
23305         as_fn_error $? "Package requirements (neon >= 0.27) were not met:
23306
23307 $NEON_PKG_ERRORS
23308
23309 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23310 installed software in a non-standard prefix.
23311
23312 Alternatively, you may set the environment variables NEON_CFLAGS
23313 and NEON_LIBS to avoid the need to call pkg-config.
23314 See the pkg-config man page for more details." "$LINENO" 5
23315 elif test $pkg_failed = untried; then
23316         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23317 $as_echo "no" >&6; }
23318         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23320 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23321 is in your PATH or set the PKG_CONFIG environment variable to the full
23322 path to pkg-config.
23323
23324 Alternatively, you may set the environment variables NEON_CFLAGS
23325 and NEON_LIBS to avoid the need to call pkg-config.
23326 See the pkg-config man page for more details.
23327
23328 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23329 See \`config.log' for more details" "$LINENO" 5; }
23330 else
23331         NEON_CFLAGS=$pkg_cv_NEON_CFLAGS
23332         NEON_LIBS=$pkg_cv_NEON_LIBS
23333         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23334 $as_echo "yes" >&6; }
23335
23336 fi
23337 elif test $pkg_failed = untried; then
23338         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23339 $as_echo "no" >&6; }
23340
23341 pkg_failed=no
23342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEON" >&5
23343 $as_echo_n "checking for NEON... " >&6; }
23344
23345 if test -n "$NEON_CFLAGS"; then
23346     pkg_cv_NEON_CFLAGS="$NEON_CFLAGS"
23347  elif test -n "$PKG_CONFIG"; then
23348     if test -n "$PKG_CONFIG" && \
23349     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27\""; } >&5
23350   ($PKG_CONFIG --exists --print-errors "neon >= 0.27") 2>&5
23351   ac_status=$?
23352   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23353   test $ac_status = 0; }; then
23354   pkg_cv_NEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.27" 2>/dev/null`
23355                       test "x$?" != "x0" && pkg_failed=yes
23356 else
23357   pkg_failed=yes
23358 fi
23359  else
23360     pkg_failed=untried
23361 fi
23362 if test -n "$NEON_LIBS"; then
23363     pkg_cv_NEON_LIBS="$NEON_LIBS"
23364  elif test -n "$PKG_CONFIG"; then
23365     if test -n "$PKG_CONFIG" && \
23366     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27\""; } >&5
23367   ($PKG_CONFIG --exists --print-errors "neon >= 0.27") 2>&5
23368   ac_status=$?
23369   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23370   test $ac_status = 0; }; then
23371   pkg_cv_NEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.27" 2>/dev/null`
23372                       test "x$?" != "x0" && pkg_failed=yes
23373 else
23374   pkg_failed=yes
23375 fi
23376  else
23377     pkg_failed=untried
23378 fi
23379
23380
23381
23382 if test $pkg_failed = yes; then
23383         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23384 $as_echo "no" >&6; }
23385
23386 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23387         _pkg_short_errors_supported=yes
23388 else
23389         _pkg_short_errors_supported=no
23390 fi
23391         if test $_pkg_short_errors_supported = yes; then
23392                 NEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "neon >= 0.27" 2>&1`
23393         else
23394                 NEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "neon >= 0.27" 2>&1`
23395         fi
23396         # Put the nasty error message in config.log where it belongs
23397         echo "$NEON_PKG_ERRORS" >&5
23398
23399         as_fn_error $? "Package requirements (neon >= 0.27) were not met:
23400
23401 $NEON_PKG_ERRORS
23402
23403 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23404 installed software in a non-standard prefix.
23405
23406 Alternatively, you may set the environment variables NEON_CFLAGS
23407 and NEON_LIBS to avoid the need to call pkg-config.
23408 See the pkg-config man page for more details." "$LINENO" 5
23409 elif test $pkg_failed = untried; then
23410         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23411 $as_echo "no" >&6; }
23412         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23414 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23415 is in your PATH or set the PKG_CONFIG environment variable to the full
23416 path to pkg-config.
23417
23418 Alternatively, you may set the environment variables NEON_CFLAGS
23419 and NEON_LIBS to avoid the need to call pkg-config.
23420 See the pkg-config man page for more details.
23421
23422 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23423 See \`config.log' for more details" "$LINENO" 5; }
23424 else
23425         NEON_CFLAGS=$pkg_cv_NEON_CFLAGS
23426         NEON_LIBS=$pkg_cv_NEON_LIBS
23427         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23428 $as_echo "yes" >&6; }
23429
23430 fi
23431 else
23432         NEON_CFLAGS=$pkg_cv_NEON_CFLAGS
23433         NEON_LIBS=$pkg_cv_NEON_LIBS
23434         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23435 $as_echo "yes" >&6; }
23436
23437 $as_echo "#define HAVE_LIBNEON_SYSTEM_PROXY 1" >>confdefs.h
23438
23439
23440 $as_echo "#define HAVE_LIBNEON_OPTIONS 1" >>confdefs.h
23441
23442 fi
23443
23444 $as_echo "#define ENABLE_DAV 1" >>confdefs.h
23445
23446
23447 $as_echo "#define ENABLE_ICAL 1" >>confdefs.h
23448
23449         BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $NEON_CFLAGS"
23450 fi
23451
23452 # Check whether --enable-neon-compatibility was given.
23453 if test "${enable_neon_compatibility+set}" = set; then :
23454   enableval=$enable_neon_compatibility; enable_neon_compat="$enableval"
23455 else
23456   enable_neon_compat="no"
23457
23458 fi
23459
23460 if test "$enable_neon_compat" = "yes"; then
23461
23462 $as_echo "#define NEON_COMPATIBILITY 1" >>confdefs.h
23463
23464         NEON_LIBS="`echo $NEON_LIBS | sed -e 's/\(-lneon\(-gnutls\)*\|^ *libneon\(-gnutls\)*.la\)/-ldl/'`"
23465 fi
23466  if test "$enable_neon_compat" = "yes"; then
23467   NEON_COMPATIBILITY_TRUE=
23468   NEON_COMPATIBILITY_FALSE='#'
23469 else
23470   NEON_COMPATIBILITY_TRUE='#'
23471   NEON_COMPATIBILITY_FALSE=
23472 fi
23473
23474 # ^^^^^^^^^^^^^^ src/backends/webdav/configure-sub.in ^^^^^^^^^^^^^^
23475
23476 # vvvvvvvvvvvvvv src/backends/xmlrpc/configure-sub.in vvvvvvvvvvvvvv
23477
23478
23479
23480
23481           # Check whether --enable-xmlrpc was given.
23482 if test "${enable_xmlrpc+set}" = set; then :
23483   enableval=$enable_xmlrpc; enable_xmlrpc="$enableval"
23484 else
23485   enable_xmlrpc="no"
23486
23487 fi
23488
23489           BACKENDS="$BACKENDS xmlrpc"
23490           BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_XMLRPC"
23491           for source in xmlrpc
23492           do
23493             SYNCSOURCES="$SYNCSOURCES src/backends/xmlrpc/syncxmlrpc.la"
23494           done
23495
23496
23497
23498 if test "$enable_xmlrpc" = "yes"; then
23499
23500         # Extract the first word of "xmlrpc-c-config", so it can be a program name with args.
23501 set dummy xmlrpc-c-config; ac_word=$2
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23503 $as_echo_n "checking for $ac_word... " >&6; }
23504 if ${ac_cv_path_XMLRPC_C_CONFIG+:} false; then :
23505   $as_echo_n "(cached) " >&6
23506 else
23507   case $XMLRPC_C_CONFIG in
23508   [\\/]* | ?:[\\/]*)
23509   ac_cv_path_XMLRPC_C_CONFIG="$XMLRPC_C_CONFIG" # Let the user override the test with a path.
23510   ;;
23511   *)
23512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23513 for as_dir in $PATH
23514 do
23515   IFS=$as_save_IFS
23516   test -z "$as_dir" && as_dir=.
23517     for ac_exec_ext in '' $ac_executable_extensions; do
23518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23519     ac_cv_path_XMLRPC_C_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23521     break 2
23522   fi
23523 done
23524   done
23525 IFS=$as_save_IFS
23526
23527   test -z "$ac_cv_path_XMLRPC_C_CONFIG" && ac_cv_path_XMLRPC_C_CONFIG="no"
23528   ;;
23529 esac
23530 fi
23531 XMLRPC_C_CONFIG=$ac_cv_path_XMLRPC_C_CONFIG
23532 if test -n "$XMLRPC_C_CONFIG"; then
23533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLRPC_C_CONFIG" >&5
23534 $as_echo "$XMLRPC_C_CONFIG" >&6; }
23535 else
23536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23537 $as_echo "no" >&6; }
23538 fi
23539
23540
23541
23542         test "x$XMLRPC_C_CONFIG" != 'xno' || as_fn_error $? "--enable-xmlrpc requires xmlrpc-c-config, which was not found" "$LINENO" 5
23543
23544         XMLRPC_CFLAGS=`$XMLRPC_C_CONFIG c++2 client --cflags`
23545         XMLRPC_LIBS=`$XMLRPC_C_CONFIG c++2 client --libs`
23546
23547
23548
23549                         BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $XMLRPC_CFLAGS"
23550
23551
23552 $as_echo "#define ENABLE_XMLRPC 1" >>confdefs.h
23553
23554 fi
23555 # ^^^^^^^^^^^^^^ src/backends/xmlrpc/configure-sub.in ^^^^^^^^^^^^^^
23556
23557
23558
23559
23560
23561
23562 # Check whether --enable-qt-dbus was given.
23563 if test "${enable_qt_dbus+set}" = set; then :
23564   enableval=$enable_qt_dbus; enable_qt_dbus="$enableval"
23565 else
23566   enable_qt_dbus="no"
23567 fi
23568
23569
23570 if test "$enable_qt_dbus" = "yes"; then
23571
23572 $as_echo "#define ENABLE_QT_DBUS 1" >>confdefs.h
23573
23574         need_qt_modules="$need_qt_modules +dbus"
23575         # Extract the first word of "qdbusxml2cpp", so it can be a program name with args.
23576 set dummy qdbusxml2cpp; ac_word=$2
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23578 $as_echo_n "checking for $ac_word... " >&6; }
23579 if ${ac_cv_path_QDBUSXML_TO_CPP+:} false; then :
23580   $as_echo_n "(cached) " >&6
23581 else
23582   case $QDBUSXML_TO_CPP in
23583   [\\/]* | ?:[\\/]*)
23584   ac_cv_path_QDBUSXML_TO_CPP="$QDBUSXML_TO_CPP" # Let the user override the test with a path.
23585   ;;
23586   *)
23587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23588 for as_dir in $PATH
23589 do
23590   IFS=$as_save_IFS
23591   test -z "$as_dir" && as_dir=.
23592     for ac_exec_ext in '' $ac_executable_extensions; do
23593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23594     ac_cv_path_QDBUSXML_TO_CPP="$as_dir/$ac_word$ac_exec_ext"
23595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23596     break 2
23597   fi
23598 done
23599   done
23600 IFS=$as_save_IFS
23601
23602   test -z "$ac_cv_path_QDBUSXML_TO_CPP" && ac_cv_path_QDBUSXML_TO_CPP="no"
23603   ;;
23604 esac
23605 fi
23606 QDBUSXML_TO_CPP=$ac_cv_path_QDBUSXML_TO_CPP
23607 if test -n "$QDBUSXML_TO_CPP"; then
23608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QDBUSXML_TO_CPP" >&5
23609 $as_echo "$QDBUSXML_TO_CPP" >&6; }
23610 else
23611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23612 $as_echo "no" >&6; }
23613 fi
23614
23615
23616         test "x$QDBUSXML_TO_CPP" != 'xno' || as_fn_error $? "--enable-qt-dbus requires qdbusxml2cpp, which was not found" "$LINENO" 5
23617 fi
23618
23619  if test "$enable_qt_dbus" = "yes"; then
23620   ENABLE_QT_DBUS_TRUE=
23621   ENABLE_QT_DBUS_FALSE='#'
23622 else
23623   ENABLE_QT_DBUS_TRUE='#'
23624   ENABLE_QT_DBUS_FALSE=
23625 fi
23626
23627
23628
23629 ac_config_files="$ac_config_files src/dbus/qt/syncevolution-qt-dbus.pc"
23630
23631
23632
23633
23634
23635 enable_any="no"
23636 backend_is_enabled () {
23637     eval echo \${enable_${1}}
23638 }
23639 for backend in $BACKENDS; do
23640     if test `backend_is_enabled $backend` = "yes"; then
23641        enable_any="yes"
23642        SYNCEVOLUTION_MODULES="$SYNCEVOLUTION_MODULES src/backends/sync${backend}.la"
23643     fi
23644 done
23645
23646 if test "$enable_any" = "no"; then
23647         as_fn_error $? "no backend enabled - refusing to continue: $anymissing" "$LINENO" 5
23648 fi
23649
23650 if test "$need_glib" = "yes"; then
23651         # HAVE_GLIB (aka GLIBFOUND) are a catch-all for these
23652         # three GNOME libs. Assume we have all three unless one of
23653         # the checks fails.
23654         GLIBFOUND=yes
23655
23656
23657 pkg_failed=no
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
23659 $as_echo_n "checking for GLIB... " >&6; }
23660
23661 if test -n "$GLIB_CFLAGS"; then
23662     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
23663  elif test -n "$PKG_CONFIG"; then
23664     if test -n "$PKG_CONFIG" && \
23665     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\""; } >&5
23666   ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
23667   ac_status=$?
23668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23669   test $ac_status = 0; }; then
23670   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags ""glib-2.0"" 2>/dev/null`
23671                       test "x$?" != "x0" && pkg_failed=yes
23672 else
23673   pkg_failed=yes
23674 fi
23675  else
23676     pkg_failed=untried
23677 fi
23678 if test -n "$GLIB_LIBS"; then
23679     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
23680  elif test -n "$PKG_CONFIG"; then
23681     if test -n "$PKG_CONFIG" && \
23682     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\""; } >&5
23683   ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
23684   ac_status=$?
23685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23686   test $ac_status = 0; }; then
23687   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs ""glib-2.0"" 2>/dev/null`
23688                       test "x$?" != "x0" && pkg_failed=yes
23689 else
23690   pkg_failed=yes
23691 fi
23692  else
23693     pkg_failed=untried
23694 fi
23695
23696
23697
23698 if test $pkg_failed = yes; then
23699         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23700 $as_echo "no" >&6; }
23701
23702 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23703         _pkg_short_errors_supported=yes
23704 else
23705         _pkg_short_errors_supported=no
23706 fi
23707         if test $_pkg_short_errors_supported = yes; then
23708                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""glib-2.0"" 2>&1`
23709         else
23710                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""glib-2.0"" 2>&1`
23711         fi
23712         # Put the nasty error message in config.log where it belongs
23713         echo "$GLIB_PKG_ERRORS" >&5
23714
23715         GLIBFOUND=no
23716 elif test $pkg_failed = untried; then
23717         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23718 $as_echo "no" >&6; }
23719         GLIBFOUND=no
23720 else
23721         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
23722         GLIB_LIBS=$pkg_cv_GLIB_LIBS
23723         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23724 $as_echo "yes" >&6; }
23725
23726 fi
23727         # This check here is broken on Ubuntu 8.04: it calls glib-config,
23728         # which isn't found, but the error is not detected by configure.
23729         #if test "x${GLIBFOUND}" = "xno"; then
23730         #       PKG_CHECK_MODULES(GLIB, "glib", GLIBFOUND=yes, GLIBFOUND=no)
23731         #fi
23732
23733
23734 pkg_failed=no
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
23736 $as_echo_n "checking for GTHREAD... " >&6; }
23737
23738 if test -n "$GTHREAD_CFLAGS"; then
23739     pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
23740  elif test -n "$PKG_CONFIG"; then
23741     if test -n "$PKG_CONFIG" && \
23742     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gthread-2.0\"\""; } >&5
23743   ($PKG_CONFIG --exists --print-errors ""gthread-2.0"") 2>&5
23744   ac_status=$?
23745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23746   test $ac_status = 0; }; then
23747   pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags ""gthread-2.0"" 2>/dev/null`
23748                       test "x$?" != "x0" && pkg_failed=yes
23749 else
23750   pkg_failed=yes
23751 fi
23752  else
23753     pkg_failed=untried
23754 fi
23755 if test -n "$GTHREAD_LIBS"; then
23756     pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
23757  elif test -n "$PKG_CONFIG"; then
23758     if test -n "$PKG_CONFIG" && \
23759     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gthread-2.0\"\""; } >&5
23760   ($PKG_CONFIG --exists --print-errors ""gthread-2.0"") 2>&5
23761   ac_status=$?
23762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23763   test $ac_status = 0; }; then
23764   pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs ""gthread-2.0"" 2>/dev/null`
23765                       test "x$?" != "x0" && pkg_failed=yes
23766 else
23767   pkg_failed=yes
23768 fi
23769  else
23770     pkg_failed=untried
23771 fi
23772
23773
23774
23775 if test $pkg_failed = yes; then
23776         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23777 $as_echo "no" >&6; }
23778
23779 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23780         _pkg_short_errors_supported=yes
23781 else
23782         _pkg_short_errors_supported=no
23783 fi
23784         if test $_pkg_short_errors_supported = yes; then
23785                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""gthread-2.0"" 2>&1`
23786         else
23787                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""gthread-2.0"" 2>&1`
23788         fi
23789         # Put the nasty error message in config.log where it belongs
23790         echo "$GTHREAD_PKG_ERRORS" >&5
23791
23792         GLIBFOUND=no
23793 elif test $pkg_failed = untried; then
23794         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23795 $as_echo "no" >&6; }
23796         GLIBFOUND=no
23797 else
23798         GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
23799         GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
23800         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23801 $as_echo "yes" >&6; }
23802
23803 fi
23804
23805 pkg_failed=no
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
23807 $as_echo_n "checking for GOBJECT... " >&6; }
23808
23809 if test -n "$GOBJECT_CFLAGS"; then
23810     pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
23811  elif test -n "$PKG_CONFIG"; then
23812     if test -n "$PKG_CONFIG" && \
23813     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gobject-2.0\"\""; } >&5
23814   ($PKG_CONFIG --exists --print-errors ""gobject-2.0"") 2>&5
23815   ac_status=$?
23816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23817   test $ac_status = 0; }; then
23818   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags ""gobject-2.0"" 2>/dev/null`
23819                       test "x$?" != "x0" && pkg_failed=yes
23820 else
23821   pkg_failed=yes
23822 fi
23823  else
23824     pkg_failed=untried
23825 fi
23826 if test -n "$GOBJECT_LIBS"; then
23827     pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
23828  elif test -n "$PKG_CONFIG"; then
23829     if test -n "$PKG_CONFIG" && \
23830     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gobject-2.0\"\""; } >&5
23831   ($PKG_CONFIG --exists --print-errors ""gobject-2.0"") 2>&5
23832   ac_status=$?
23833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23834   test $ac_status = 0; }; then
23835   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs ""gobject-2.0"" 2>/dev/null`
23836                       test "x$?" != "x0" && pkg_failed=yes
23837 else
23838   pkg_failed=yes
23839 fi
23840  else
23841     pkg_failed=untried
23842 fi
23843
23844
23845
23846 if test $pkg_failed = yes; then
23847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23848 $as_echo "no" >&6; }
23849
23850 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23851         _pkg_short_errors_supported=yes
23852 else
23853         _pkg_short_errors_supported=no
23854 fi
23855         if test $_pkg_short_errors_supported = yes; then
23856                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""gobject-2.0"" 2>&1`
23857         else
23858                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""gobject-2.0"" 2>&1`
23859         fi
23860         # Put the nasty error message in config.log where it belongs
23861         echo "$GOBJECT_PKG_ERRORS" >&5
23862
23863         GLIBFOUND=no
23864 elif test $pkg_failed = untried; then
23865         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23866 $as_echo "no" >&6; }
23867         GLIBFOUND=no
23868 else
23869         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
23870         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
23871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23872 $as_echo "yes" >&6; }
23873
23874 fi
23875
23876 pkg_failed=no
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
23878 $as_echo_n "checking for GIO... " >&6; }
23879
23880 if test -n "$GIO_CFLAGS"; then
23881     pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
23882  elif test -n "$PKG_CONFIG"; then
23883     if test -n "$PKG_CONFIG" && \
23884     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gio-2.0\"\""; } >&5
23885   ($PKG_CONFIG --exists --print-errors ""gio-2.0"") 2>&5
23886   ac_status=$?
23887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23888   test $ac_status = 0; }; then
23889   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags ""gio-2.0"" 2>/dev/null`
23890                       test "x$?" != "x0" && pkg_failed=yes
23891 else
23892   pkg_failed=yes
23893 fi
23894  else
23895     pkg_failed=untried
23896 fi
23897 if test -n "$GIO_LIBS"; then
23898     pkg_cv_GIO_LIBS="$GIO_LIBS"
23899  elif test -n "$PKG_CONFIG"; then
23900     if test -n "$PKG_CONFIG" && \
23901     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gio-2.0\"\""; } >&5
23902   ($PKG_CONFIG --exists --print-errors ""gio-2.0"") 2>&5
23903   ac_status=$?
23904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23905   test $ac_status = 0; }; then
23906   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs ""gio-2.0"" 2>/dev/null`
23907                       test "x$?" != "x0" && pkg_failed=yes
23908 else
23909   pkg_failed=yes
23910 fi
23911  else
23912     pkg_failed=untried
23913 fi
23914
23915
23916
23917 if test $pkg_failed = yes; then
23918         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23919 $as_echo "no" >&6; }
23920
23921 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23922         _pkg_short_errors_supported=yes
23923 else
23924         _pkg_short_errors_supported=no
23925 fi
23926         if test $_pkg_short_errors_supported = yes; then
23927                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""gio-2.0"" 2>&1`
23928         else
23929                 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""gio-2.0"" 2>&1`
23930         fi
23931         # Put the nasty error message in config.log where it belongs
23932         echo "$GIO_PKG_ERRORS" >&5
23933
23934         GLIBFOUND=no
23935 elif test $pkg_failed = untried; then
23936         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23937 $as_echo "no" >&6; }
23938         GLIBFOUND=no
23939 else
23940         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
23941         GIO_LIBS=$pkg_cv_GIO_LIBS
23942         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23943 $as_echo "yes" >&6; }
23944
23945 fi
23946
23947         if  test "x${GLIBFOUND}" = "xyes"; then
23948
23949 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
23950
23951         else
23952             as_fn_error $? "not all GNOME libraries found" "$LINENO" 5
23953         fi
23954         BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $GLIB_CFLAGS $GTHREAD_CFLAGS $GOBJECT_CFLAGS"
23955 fi
23956
23957 if test "$need_ical" = "yes"; then
23958
23959 pkg_failed=no
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL" >&5
23961 $as_echo_n "checking for LIBICAL... " >&6; }
23962
23963 if test -n "$LIBICAL_CFLAGS"; then
23964     pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
23965  elif test -n "$PKG_CONFIG"; then
23966     if test -n "$PKG_CONFIG" && \
23967     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
23968   ($PKG_CONFIG --exists --print-errors "libical") 2>&5
23969   ac_status=$?
23970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23971   test $ac_status = 0; }; then
23972   pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libical" 2>/dev/null`
23973                       test "x$?" != "x0" && pkg_failed=yes
23974 else
23975   pkg_failed=yes
23976 fi
23977  else
23978     pkg_failed=untried
23979 fi
23980 if test -n "$LIBICAL_LIBS"; then
23981     pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
23982  elif test -n "$PKG_CONFIG"; then
23983     if test -n "$PKG_CONFIG" && \
23984     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
23985   ($PKG_CONFIG --exists --print-errors "libical") 2>&5
23986   ac_status=$?
23987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23988   test $ac_status = 0; }; then
23989   pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libical" 2>/dev/null`
23990                       test "x$?" != "x0" && pkg_failed=yes
23991 else
23992   pkg_failed=yes
23993 fi
23994  else
23995     pkg_failed=untried
23996 fi
23997
23998
23999
24000 if test $pkg_failed = yes; then
24001         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24002 $as_echo "no" >&6; }
24003
24004 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24005         _pkg_short_errors_supported=yes
24006 else
24007         _pkg_short_errors_supported=no
24008 fi
24009         if test $_pkg_short_errors_supported = yes; then
24010                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libical" 2>&1`
24011         else
24012                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libical" 2>&1`
24013         fi
24014         # Put the nasty error message in config.log where it belongs
24015         echo "$LIBICAL_PKG_ERRORS" >&5
24016
24017
24018 pkg_failed=no
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL" >&5
24020 $as_echo_n "checking for LIBICAL... " >&6; }
24021
24022 if test -n "$LIBICAL_CFLAGS"; then
24023     pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
24024  elif test -n "$PKG_CONFIG"; then
24025     if test -n "$PKG_CONFIG" && \
24026     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
24027   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
24028   ac_status=$?
24029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24030   test $ac_status = 0; }; then
24031   pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
24032                       test "x$?" != "x0" && pkg_failed=yes
24033 else
24034   pkg_failed=yes
24035 fi
24036  else
24037     pkg_failed=untried
24038 fi
24039 if test -n "$LIBICAL_LIBS"; then
24040     pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
24041  elif test -n "$PKG_CONFIG"; then
24042     if test -n "$PKG_CONFIG" && \
24043     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
24044   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
24045   ac_status=$?
24046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24047   test $ac_status = 0; }; then
24048   pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
24049                       test "x$?" != "x0" && pkg_failed=yes
24050 else
24051   pkg_failed=yes
24052 fi
24053  else
24054     pkg_failed=untried
24055 fi
24056
24057
24058
24059 if test $pkg_failed = yes; then
24060         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24061 $as_echo "no" >&6; }
24062
24063 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24064         _pkg_short_errors_supported=yes
24065 else
24066         _pkg_short_errors_supported=no
24067 fi
24068         if test $_pkg_short_errors_supported = yes; then
24069                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libecal-1.2" 2>&1`
24070         else
24071                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libecal-1.2" 2>&1`
24072         fi
24073         # Put the nasty error message in config.log where it belongs
24074         echo "$LIBICAL_PKG_ERRORS" >&5
24075
24076         as_fn_error $? "Package requirements (libecal-1.2) were not met:
24077
24078 $LIBICAL_PKG_ERRORS
24079
24080 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24081 installed software in a non-standard prefix.
24082
24083 Alternatively, you may set the environment variables LIBICAL_CFLAGS
24084 and LIBICAL_LIBS to avoid the need to call pkg-config.
24085 See the pkg-config man page for more details." "$LINENO" 5
24086 elif test $pkg_failed = untried; then
24087         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24088 $as_echo "no" >&6; }
24089         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24091 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24092 is in your PATH or set the PKG_CONFIG environment variable to the full
24093 path to pkg-config.
24094
24095 Alternatively, you may set the environment variables LIBICAL_CFLAGS
24096 and LIBICAL_LIBS to avoid the need to call pkg-config.
24097 See the pkg-config man page for more details.
24098
24099 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24100 See \`config.log' for more details" "$LINENO" 5; }
24101 else
24102         LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
24103         LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
24104         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24105 $as_echo "yes" >&6; }
24106
24107 fi
24108 elif test $pkg_failed = untried; then
24109         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24110 $as_echo "no" >&6; }
24111
24112 pkg_failed=no
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL" >&5
24114 $as_echo_n "checking for LIBICAL... " >&6; }
24115
24116 if test -n "$LIBICAL_CFLAGS"; then
24117     pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
24118  elif test -n "$PKG_CONFIG"; then
24119     if test -n "$PKG_CONFIG" && \
24120     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
24121   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
24122   ac_status=$?
24123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24124   test $ac_status = 0; }; then
24125   pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
24126                       test "x$?" != "x0" && pkg_failed=yes
24127 else
24128   pkg_failed=yes
24129 fi
24130  else
24131     pkg_failed=untried
24132 fi
24133 if test -n "$LIBICAL_LIBS"; then
24134     pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
24135  elif test -n "$PKG_CONFIG"; then
24136     if test -n "$PKG_CONFIG" && \
24137     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
24138   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
24139   ac_status=$?
24140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24141   test $ac_status = 0; }; then
24142   pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
24143                       test "x$?" != "x0" && pkg_failed=yes
24144 else
24145   pkg_failed=yes
24146 fi
24147  else
24148     pkg_failed=untried
24149 fi
24150
24151
24152
24153 if test $pkg_failed = yes; then
24154         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24155 $as_echo "no" >&6; }
24156
24157 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24158         _pkg_short_errors_supported=yes
24159 else
24160         _pkg_short_errors_supported=no
24161 fi
24162         if test $_pkg_short_errors_supported = yes; then
24163                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libecal-1.2" 2>&1`
24164         else
24165                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libecal-1.2" 2>&1`
24166         fi
24167         # Put the nasty error message in config.log where it belongs
24168         echo "$LIBICAL_PKG_ERRORS" >&5
24169
24170         as_fn_error $? "Package requirements (libecal-1.2) were not met:
24171
24172 $LIBICAL_PKG_ERRORS
24173
24174 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24175 installed software in a non-standard prefix.
24176
24177 Alternatively, you may set the environment variables LIBICAL_CFLAGS
24178 and LIBICAL_LIBS to avoid the need to call pkg-config.
24179 See the pkg-config man page for more details." "$LINENO" 5
24180 elif test $pkg_failed = untried; then
24181         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24182 $as_echo "no" >&6; }
24183         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24185 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24186 is in your PATH or set the PKG_CONFIG environment variable to the full
24187 path to pkg-config.
24188
24189 Alternatively, you may set the environment variables LIBICAL_CFLAGS
24190 and LIBICAL_LIBS to avoid the need to call pkg-config.
24191 See the pkg-config man page for more details.
24192
24193 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24194 See \`config.log' for more details" "$LINENO" 5; }
24195 else
24196         LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
24197         LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
24198         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24199 $as_echo "yes" >&6; }
24200
24201 fi
24202 else
24203         LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
24204         LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
24205         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24206 $as_echo "yes" >&6; }
24207         true
24208 fi
24209
24210 $as_echo "#define ENABLE_ICAL 1" >>confdefs.h
24211
24212 fi
24213  if test "$need_ical" = "yes"; then
24214   ENABLE_ICAL_TRUE=
24215   ENABLE_ICAL_FALSE='#'
24216 else
24217   ENABLE_ICAL_TRUE='#'
24218   ENABLE_ICAL_FALSE=
24219 fi
24220
24221
24222
24223 # Check for Qt if some backend needs it.
24224 if test "$need_qt_modules"; then
24225    echo "$as_me: this is autotroll.m4 serial 5" >&5
24226
24227   test x"$TROLL" != x && echo 'ViM rox emacs.'
24228
24229
24230 # Check whether --with-qt was given.
24231 if test "${with_qt+set}" = set; then :
24232   withval=$with_qt; QT_PATH=$withval
24233 fi
24234
24235
24236   # this is a hack to get decent flow control with 'break'
24237   for _qt_ignored in once; do
24238
24239   # Find Qt.
24240
24241   if test -d /usr/local/Trolltech; then
24242     # Try to find the latest version.
24243     tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
24244                                               | xargs | sed 's/  */:/g'`
24245   fi
24246   # Path to which recent MacPorts (~v1.7) install Qt4.
24247   test -d /opt/local/libexec/qt4-mac/bin \
24248     && tmp_qt_paths="$tmp_qt_paths:/opt/local/libexec/qt4-mac/bin"
24249
24250   # Find qmake.
24251
24252   for ac_prog in qmake qmake-qt4 qmake-qt3
24253 do
24254   # Extract the first word of "$ac_prog", so it can be a program name with args.
24255 set dummy $ac_prog; ac_word=$2
24256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24257 $as_echo_n "checking for $ac_word... " >&6; }
24258 if ${ac_cv_path_QMAKE+:} false; then :
24259   $as_echo_n "(cached) " >&6
24260 else
24261   case $QMAKE in
24262   [\\/]* | ?:[\\/]*)
24263   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
24264   ;;
24265   *)
24266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24267 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
24268 for as_dir in $as_dummy
24269 do
24270   IFS=$as_save_IFS
24271   test -z "$as_dir" && as_dir=.
24272     for ac_exec_ext in '' $ac_executable_extensions; do
24273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24274     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
24275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24276     break 2
24277   fi
24278 done
24279   done
24280 IFS=$as_save_IFS
24281
24282   ;;
24283 esac
24284 fi
24285 QMAKE=$ac_cv_path_QMAKE
24286 if test -n "$QMAKE"; then
24287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
24288 $as_echo "$QMAKE" >&6; }
24289 else
24290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24291 $as_echo "no" >&6; }
24292 fi
24293
24294
24295   test -n "$QMAKE" && break
24296 done
24297 test -n "$QMAKE" || QMAKE="missing"
24298
24299   if test x"$QMAKE" = xmissing; then
24300     as_fn_error $? "Cannot find qmake in your PATH. Try using --with-qt." "$LINENO" 5
24301     break
24302   fi
24303
24304   # Find moc (Meta Object Compiler).
24305
24306   for ac_prog in moc moc-qt4 moc-qt3
24307 do
24308   # Extract the first word of "$ac_prog", so it can be a program name with args.
24309 set dummy $ac_prog; ac_word=$2
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24311 $as_echo_n "checking for $ac_word... " >&6; }
24312 if ${ac_cv_path_MOC+:} false; then :
24313   $as_echo_n "(cached) " >&6
24314 else
24315   case $MOC in
24316   [\\/]* | ?:[\\/]*)
24317   ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
24318   ;;
24319   *)
24320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24321 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
24322 for as_dir in $as_dummy
24323 do
24324   IFS=$as_save_IFS
24325   test -z "$as_dir" && as_dir=.
24326     for ac_exec_ext in '' $ac_executable_extensions; do
24327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24328     ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
24329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24330     break 2
24331   fi
24332 done
24333   done
24334 IFS=$as_save_IFS
24335
24336   ;;
24337 esac
24338 fi
24339 MOC=$ac_cv_path_MOC
24340 if test -n "$MOC"; then
24341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
24342 $as_echo "$MOC" >&6; }
24343 else
24344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24345 $as_echo "no" >&6; }
24346 fi
24347
24348
24349   test -n "$MOC" && break
24350 done
24351 test -n "$MOC" || MOC="missing"
24352
24353   if test x"$MOC" = xmissing; then
24354     as_fn_error $? "Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
24355     break
24356   fi
24357
24358   # Find uic (User Interface Compiler).
24359
24360   for ac_prog in uic uic-qt4 uic-qt3 uic3
24361 do
24362   # Extract the first word of "$ac_prog", so it can be a program name with args.
24363 set dummy $ac_prog; ac_word=$2
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24365 $as_echo_n "checking for $ac_word... " >&6; }
24366 if ${ac_cv_path_UIC+:} false; then :
24367   $as_echo_n "(cached) " >&6
24368 else
24369   case $UIC in
24370   [\\/]* | ?:[\\/]*)
24371   ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
24372   ;;
24373   *)
24374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24375 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
24376 for as_dir in $as_dummy
24377 do
24378   IFS=$as_save_IFS
24379   test -z "$as_dir" && as_dir=.
24380     for ac_exec_ext in '' $ac_executable_extensions; do
24381   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24382     ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
24383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24384     break 2
24385   fi
24386 done
24387   done
24388 IFS=$as_save_IFS
24389
24390   ;;
24391 esac
24392 fi
24393 UIC=$ac_cv_path_UIC
24394 if test -n "$UIC"; then
24395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
24396 $as_echo "$UIC" >&6; }
24397 else
24398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24399 $as_echo "no" >&6; }
24400 fi
24401
24402
24403   test -n "$UIC" && break
24404 done
24405 test -n "$UIC" || UIC="missing"
24406
24407   if test x"$UIC" = xmissing; then
24408     as_fn_error $? "Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
24409     break
24410   fi
24411
24412   # Find rcc (Qt Resource Compiler).
24413
24414   for ac_prog in rcc
24415 do
24416   # Extract the first word of "$ac_prog", so it can be a program name with args.
24417 set dummy $ac_prog; ac_word=$2
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24419 $as_echo_n "checking for $ac_word... " >&6; }
24420 if ${ac_cv_path_RCC+:} false; then :
24421   $as_echo_n "(cached) " >&6
24422 else
24423   case $RCC in
24424   [\\/]* | ?:[\\/]*)
24425   ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
24426   ;;
24427   *)
24428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24429 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
24430 for as_dir in $as_dummy
24431 do
24432   IFS=$as_save_IFS
24433   test -z "$as_dir" && as_dir=.
24434     for ac_exec_ext in '' $ac_executable_extensions; do
24435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24436     ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
24437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24438     break 2
24439   fi
24440 done
24441   done
24442 IFS=$as_save_IFS
24443
24444   ;;
24445 esac
24446 fi
24447 RCC=$ac_cv_path_RCC
24448 if test -n "$RCC"; then
24449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5
24450 $as_echo "$RCC" >&6; }
24451 else
24452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24453 $as_echo "no" >&6; }
24454 fi
24455
24456
24457   test -n "$RCC" && break
24458 done
24459 test -n "$RCC" || RCC="false"
24460
24461   if test x"$UIC" = xfalse; then
24462     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH.\
24463   Try using --with-qt." >&5
24464 $as_echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH.\
24465   Try using --with-qt." >&2;}
24466   fi
24467
24468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host operating system is Darwin" >&5
24469 $as_echo_n "checking whether host operating system is Darwin... " >&6; }
24470   at_darwin=no
24471   at_qmake_args=
24472   case $host_os in
24473     darwin*)
24474       at_darwin=yes
24475       at_qmake_args='-spec macx-g++'
24476       ;;
24477   esac
24478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_darwin" >&5
24479 $as_echo "$at_darwin" >&6; }
24480
24481   # If we don't know the path to Qt, guess it from the path to qmake.
24482   if test x"$QT_PATH" = x; then
24483     QT_PATH=`dirname "$QMAKE"`
24484   fi
24485   if test x"$QT_PATH" = x; then
24486     as_fn_error $? "Cannot find the path to your Qt install. Use --with-qt." "$LINENO" 5
24487     break
24488   fi
24489
24490
24491   # Get ready to build a test-app with Qt.
24492   if mkdir conftest.dir && cd conftest.dir; then :; else
24493     as_fn_error $? "Cannot mkdir conftest.dir or cd to that directory." "$LINENO" 5
24494     break
24495   fi
24496
24497   cat >conftest.h <<_ASEOF
24498 #include <QObject>
24499
24500 class Foo: public QObject
24501 {
24502   Q_OBJECT;
24503 public:
24504   Foo();
24505   ~Foo() {}
24506 public Q_SLOTS:
24507   void setValue(int value);
24508 Q_SIGNALS:
24509   void valueChanged(int newValue);
24510 private:
24511   int value_;
24512 };
24513 _ASEOF
24514
24515   cat >conftest.cpp <<_ASEOF
24516 #include "conftest.h"
24517 Foo::Foo()
24518   : value_ (42)
24519 {
24520   connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
24521 }
24522
24523 void Foo::setValue(int value)
24524 {
24525   value_ = value;
24526 }
24527
24528 int main()
24529 {
24530   Foo f;
24531 }
24532 _ASEOF
24533   if $QMAKE -project; then :; else
24534     as_fn_error $? "Calling $QMAKE -project failed." "$LINENO" 5
24535     break
24536   fi
24537
24538   # Find the .pro file generated by qmake.
24539   pro_file='conftest.dir.pro'
24540   test -f $pro_file || pro_file=`echo *.pro`
24541   if test -f "$pro_file"; then :; else
24542     as_fn_error $? "Can't find the .pro file generated by Qmake." "$LINENO" 5
24543     break
24544   fi
24545
24546  # Tweak the value of QT in the .pro file for -gui $need_qt_modules.
24547
24548   qt_conf=''
24549   for at_mod in -gui $need_qt_modules; do
24550     at_mod=`echo "$at_mod" | sed 's/^-//; tough
24551                                   s/^+//; beef
24552                                   :ough
24553                                   s/^/QT -= /;n
24554                                   :eef
24555                                   s/^/QT += /'`
24556     qt_conf="$qt_conf
24557 $at_mod"
24558   done
24559   echo "$qt_conf" | sed 1d >>"$pro_file"
24560
24561
24562  # Tweak the value of CONFIG in the .pro file for $qt_config.
24563
24564   qt_conf=''
24565   for at_mod in $qt_config; do
24566     at_mod=`echo "$at_mod" | sed 's/^-//; tough
24567                                   s/^+//; beef
24568                                   :ough
24569                                   s/^/CONFIG -= /;n
24570                                   :eef
24571                                   s/^/CONFIG += /'`
24572     qt_conf="$qt_conf
24573 $at_mod"
24574   done
24575   echo "$qt_conf" | sed 1d >>"$pro_file"
24576
24577
24578  # Add the extra-settings the user wants to set in the .pro
24579   echo "$qt_misc" >>"$pro_file"
24580
24581
24582   echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
24583   sed 's/^/| /' "$pro_file" >&5
24584
24585   if $QMAKE $at_qmake_args; then :; else
24586     as_fn_error $? "Calling $QMAKE $at_qmake_args failed." "$LINENO" 5
24587     break
24588   fi
24589
24590   # QMake has a very annoying misfeature: sometimes it generates Makefiles
24591   # where all the references to the files from the Qt installation are
24592   # relative.  We can't use them as-is because if we take, say, a
24593   # -I../../usr/include/Qt from that Makefile, the flag is invalid as soon
24594   # as we use it in another (sub) directory.  So what this perl pass does is
24595   # that it rewrite all relative paths to absolute paths.  Another problem
24596   # when building on Cygwin is that QMake mixes paths with blackslashes and
24597   # forward slashes and paths must be handled with extra care because of the
24598   # stupid Windows drive letters.
24599   echo "$as_me:$LINENO: fixing the Makefiles:" Makefile* >&5
24600   cat >fixmk.pl <<\EOF
24601 use strict;
24602 use Cwd qw(cwd abs_path);
24603 # This variable is useful on Cygwin for the following reason: Say that you are
24604 # in `/' (that is, in fact you are in C:/cygwin, or something like that) if you
24605 # `cd ..' then obviously you remain in `/' (that is in C:/cygwin).  QMake
24606 # generates paths that are relative to C:/ (or another driver letter, whatever)
24607 # so the trick to get the `..' resolved properly is to prepend the absolute
24608 # path of the current working directory in a Windows-style.  C:/cygwin/../ will
24609 # properly become C:/.
24610 my $d = "";
24611 my $r2a = 0;
24612 my $b2f = 0;
24613
24614 my $cygwin = 0;
24615 if ($^O eq "cygwin") {
24616   $cygwin = 1;
24617   $d = cwd();
24618   $d = `cygpath --mixed '$d'`;
24619   chomp($d);
24620   $d .= "/";
24621 }
24622
24623 sub rel2abs($)
24624 {
24625   my $p = $d . shift;
24626   # print "r2a p=$p";
24627   -e $p || return $p;
24628   if ($cygwin) {
24629     $p = `cygpath --mixed '$p'`;
24630     chomp($p);
24631   }
24632   else {
24633     # Do not use abs_path on Cygwin: it incorrectly resolves the paths that are
24634     # relative to C:/ rather than `/'.
24635     $p = abs_path($p);
24636   }
24637   # print " -> $p\n";
24638   ++$r2a;
24639   return $p;
24640 }
24641
24642 # Only useful on Cygwin.
24643 sub back2forward($)
24644 {
24645   my $p = shift;
24646   # print "b2f p=$p";
24647   -e $p || return $p;
24648   $p = `cygpath --mixed '$p'`;
24649   chomp($p);
24650   # print " -> $p\n";
24651   ++$b2f;
24652   return $p;
24653 }
24654
24655 foreach my $mk (@ARGV)
24656 {
24657   next if $mk =~ /~$/;
24658   open(MK, $mk) or die("open $mk: $!");
24659   # print "mk=$mk\n";
24660   my $file = join("", <MK>);
24661   close(MK) or die("close $mk: $!");
24662   rename $mk, $mk . "~" or die("rename $mk: $!");
24663   $file =~ s{(?:\.\.[\\/])+(?:[^"'\s:]+)}{rel2abs($&)}gse;
24664   $file =~ s{(?:[a-zA-Z]:[\\/])?(?:[^"\s]+\\[^"\s:]+)+}
24665             {back2forward($&)}gse if $cygwin;
24666   open(MK, ">", $mk) or die("open >$mk: $!");
24667   print MK $file;
24668   close(MK) or die("close >$mk: $!");
24669   print "$mk: updated $r2a relative paths and $b2f backslash-style paths\n";
24670   $r2a = 0;
24671   $b2f = 0;
24672 }
24673 EOF
24674
24675   perl >&5 -w fixmk.pl Makefile* ||
24676   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to fix the Makefiles generated by $QMAKE" >&5
24677 $as_echo "$as_me: WARNING: failed to fix the Makefiles generated by $QMAKE" >&2;}
24678   rm -f fixmk.pl
24679
24680   # Try to compile a simple Qt app.
24681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a simple Qt app" >&5
24682 $as_echo_n "checking whether we can build a simple Qt app... " >&6; }
24683 if ${at_cv_qt_build+:} false; then :
24684   $as_echo_n "(cached) " >&6
24685 else
24686   at_cv_qt_build=ko
24687   : ${MAKE=make}
24688
24689   if $MAKE >&5 2>&1; then
24690     at_cv_qt_build='ok, looks like Qt 4'
24691   else
24692     echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
24693 instead" >&5
24694     sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
24695     if $MAKE >&5 2>&1; then
24696       at_cv_qt_build='ok, looks like Qt 3'
24697     else
24698       # Sometimes (such as on Debian) build will fail because Qt hasn't been
24699       # installed in debug mode and qmake tries (by default) to build apps in
24700       # debug mode => Try again in release mode.
24701       echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
24702             >&5
24703
24704        # Tweak the value of CONFIG in the .pro file for +release.
24705
24706   qt_conf=''
24707   for at_mod in +release; do
24708     at_mod=`echo "$at_mod" | sed 's/^-//; tough
24709                                   s/^+//; beef
24710                                   :ough
24711                                   s/^/CONFIG -= /;n
24712                                   :eef
24713                                   s/^/CONFIG += /'`
24714     qt_conf="$qt_conf
24715 $at_mod"
24716   done
24717   echo "$qt_conf" | sed 1d >>"$pro_file"
24718
24719
24720       sed 's/<qobject.h>/<QObject>/' conftest.h > tmp.h && mv tmp.h conftest.h
24721       if $MAKE >&5 2>&1; then
24722         at_cv_qt_build='ok, looks like Qt 4, release mode forced'
24723       else
24724         echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
24725 instead" >&5
24726         sed 's/<QObject>/<qobject.h>/' conftest.h >tmp.h && mv tmp.h conftest.h
24727         if $MAKE >&5 2>&1; then
24728           at_cv_qt_build='ok, looks like Qt 3, release mode forced'
24729         else
24730           at_cv_qt_build=ko
24731           echo "$as_me:$LINENO: failed program was:" >&5
24732           sed 's/^/| /' conftest.h >&5
24733           echo "$as_me:$LINENO: failed program was:" >&5
24734           sed 's/^/| /' conftest.cpp >&5
24735         fi # if make with Qt3-style #include and release mode forced.
24736       fi # if make with Qt4-style #include and release mode forced.
24737     fi # if make with Qt3-style #include.
24738   fi # if make with Qt4-style #include.
24739
24740 fi
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_qt_build" >&5
24742 $as_echo "$at_cv_qt_build" >&6; }
24743   if test x"$at_cv_qt_build" = xko; then
24744     as_fn_error $? "Cannot build a test Qt program" "$LINENO" 5
24745     cd ..
24746     break
24747   fi
24748   QT_VERSION_MAJOR=`echo "$at_cv_qt_build" | sed 's/[^0-9]*//g'`
24749
24750
24751   # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
24752   # It starts by removing the beginning of the line, removing references to
24753   # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
24754   # all variable uses by QT_.
24755   qt_sed_filter='s///;
24756                  s/$(SUBLIBS)//g;
24757                  s/^ *//;
24758                  s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
24759
24760   # Find the Makefile (qmake happens to generate a fake Makefile which invokes
24761   # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
24762   # Makefile.Release. The reason is that the main difference is that release
24763   # uses -Os and debug -g. We can override -Os by passing another -O but we
24764   # usually don't override -g.
24765   if test -f Makefile.Release; then
24766     at_mfile='Makefile.Release'
24767   else
24768     at_mfile='Makefile'
24769   fi
24770   if test -f $at_mfile; then :; else
24771     as_fn_error $? "Cannot find the Makefile generated by qmake." "$LINENO" 5
24772     cd ..
24773     break
24774   fi
24775
24776   # Find the DEFINES of Qt (should have been named CPPFLAGS).
24777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the DEFINES to use with Qt" >&5
24778 $as_echo_n "checking for the DEFINES to use with Qt... " >&6; }
24779 if ${at_cv_env_QT_DEFINES+:} false; then :
24780   $as_echo_n "(cached) " >&6
24781 else
24782   at_cv_env_QT_DEFINES=`sed "/^DEFINES[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
24783 fi
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_DEFINES" >&5
24785 $as_echo "$at_cv_env_QT_DEFINES" >&6; }
24786   QT_DEFINES=$at_cv_env_QT_DEFINES
24787
24788
24789   # Find the CFLAGS of Qt (We can use Qt in C?!)
24790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CFLAGS to use with Qt" >&5
24791 $as_echo_n "checking for the CFLAGS to use with Qt... " >&6; }
24792 if ${at_cv_env_QT_CFLAGS+:} false; then :
24793   $as_echo_n "(cached) " >&6
24794 else
24795   at_cv_env_QT_CFLAGS=`sed "/^CFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
24796 fi
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CFLAGS" >&5
24798 $as_echo "$at_cv_env_QT_CFLAGS" >&6; }
24799   QT_CFLAGS=$at_cv_env_QT_CFLAGS
24800
24801
24802   # Find the CXXFLAGS of Qt.
24803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CXXFLAGS to use with Qt" >&5
24804 $as_echo_n "checking for the CXXFLAGS to use with Qt... " >&6; }
24805 if ${at_cv_env_QT_CXXFLAGS+:} false; then :
24806   $as_echo_n "(cached) " >&6
24807 else
24808   at_cv_env_QT_CXXFLAGS=`sed "/^CXXFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
24809 fi
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CXXFLAGS" >&5
24811 $as_echo "$at_cv_env_QT_CXXFLAGS" >&6; }
24812   QT_CXXFLAGS=$at_cv_env_QT_CXXFLAGS
24813
24814
24815   # Find the INCPATH of Qt.
24816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the INCPATH to use with Qt" >&5
24817 $as_echo_n "checking for the INCPATH to use with Qt... " >&6; }
24818 if ${at_cv_env_QT_INCPATH+:} false; then :
24819   $as_echo_n "(cached) " >&6
24820 else
24821   at_cv_env_QT_INCPATH=`sed "/^INCPATH[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
24822 fi
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_INCPATH" >&5
24824 $as_echo "$at_cv_env_QT_INCPATH" >&6; }
24825   QT_INCPATH=$at_cv_env_QT_INCPATH
24826
24827
24828   QT_CPPFLAGS="$at_cv_env_QT_DEFINES $at_cv_env_QT_INCPATH"
24829
24830
24831   # Find the LFLAGS of Qt (Should have been named LDFLAGS)
24832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LDFLAGS to use with Qt" >&5
24833 $as_echo_n "checking for the LDFLAGS to use with Qt... " >&6; }
24834 if ${at_cv_env_QT_LDFLAGS+:} false; then :
24835   $as_echo_n "(cached) " >&6
24836 else
24837   at_cv_env_QT_LDFLAGS=`sed "/^LFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
24838 fi
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LDFLAGS" >&5
24840 $as_echo "$at_cv_env_QT_LDFLAGS" >&6; }
24841   QT_LFLAGS=$at_cv_env_QT_LDFLAGS
24842
24843   QT_LDFLAGS=$at_cv_env_QT_LDFLAGS
24844
24845
24846   # Find the LIBS of Qt.
24847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LIBS to use with Qt" >&5
24848 $as_echo_n "checking for the LIBS to use with Qt... " >&6; }
24849 if ${at_cv_env_QT_LIBS+:} false; then :
24850   $as_echo_n "(cached) " >&6
24851 else
24852   at_cv_env_QT_LIBS=`sed "/^LIBS[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
24853    if test x$at_darwin = xyes; then
24854      # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
24855      # -F properly. The "bug" has been fixed on 22 October 2006
24856      # by Peter O'Gorman but we provide backward compatibility here.
24857      at_cv_env_QT_LIBS=`echo "$at_cv_env_QT_LIBS" \
24858                              | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
24859    fi
24860
24861 fi
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LIBS" >&5
24863 $as_echo "$at_cv_env_QT_LIBS" >&6; }
24864   QT_LIBS=$at_cv_env_QT_LIBS
24865
24866
24867   cd .. && rm -rf conftest.dir
24868
24869   # Run the user code
24870
24871
24872   done  # end hack (useless for to be able to use break)
24873
24874 fi
24875
24876 # determine from where we can get a SHA-256 implementation
24877 have_sha="no"
24878 if test "$GLIBFOUND" = "yes"; then
24879    # only use glib if we need it anyway, also has to be at lease 2.16
24880
24881 pkg_failed=no
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB216" >&5
24883 $as_echo_n "checking for GLIB216... " >&6; }
24884
24885 if test -n "$GLIB216_CFLAGS"; then
24886     pkg_cv_GLIB216_CFLAGS="$GLIB216_CFLAGS"
24887  elif test -n "$PKG_CONFIG"; then
24888     if test -n "$PKG_CONFIG" && \
24889     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
24890   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
24891   ac_status=$?
24892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24893   test $ac_status = 0; }; then
24894   pkg_cv_GLIB216_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 2>/dev/null`
24895                       test "x$?" != "x0" && pkg_failed=yes
24896 else
24897   pkg_failed=yes
24898 fi
24899  else
24900     pkg_failed=untried
24901 fi
24902 if test -n "$GLIB216_LIBS"; then
24903     pkg_cv_GLIB216_LIBS="$GLIB216_LIBS"
24904  elif test -n "$PKG_CONFIG"; then
24905     if test -n "$PKG_CONFIG" && \
24906     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
24907   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
24908   ac_status=$?
24909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24910   test $ac_status = 0; }; then
24911   pkg_cv_GLIB216_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null`
24912                       test "x$?" != "x0" && pkg_failed=yes
24913 else
24914   pkg_failed=yes
24915 fi
24916  else
24917     pkg_failed=untried
24918 fi
24919
24920
24921
24922 if test $pkg_failed = yes; then
24923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24924 $as_echo "no" >&6; }
24925
24926 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24927         _pkg_short_errors_supported=yes
24928 else
24929         _pkg_short_errors_supported=no
24930 fi
24931         if test $_pkg_short_errors_supported = yes; then
24932                 GLIB216_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1`
24933         else
24934                 GLIB216_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1`
24935         fi
24936         # Put the nasty error message in config.log where it belongs
24937         echo "$GLIB216_PKG_ERRORS" >&5
24938
24939         true
24940 elif test $pkg_failed = untried; then
24941         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24942 $as_echo "no" >&6; }
24943         true
24944 else
24945         GLIB216_CFLAGS=$pkg_cv_GLIB216_CFLAGS
24946         GLIB216_LIBS=$pkg_cv_GLIB216_LIBS
24947         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24948 $as_echo "yes" >&6; }
24949
24950 $as_echo "#define USE_SHA256 1" >>confdefs.h
24951
24952                       have_sha="glib"
24953 fi
24954 fi
24955 if test "$have_sha" = "no"; then
24956    # Fallback is Mozilla NSS. In contrast to libgcrypt it has a .pc
24957    # file and a simple API.
24958
24959 pkg_failed=no
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
24961 $as_echo_n "checking for NSS... " >&6; }
24962
24963 if test -n "$NSS_CFLAGS"; then
24964     pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
24965  elif test -n "$PKG_CONFIG"; then
24966     if test -n "$PKG_CONFIG" && \
24967     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"nss\"\""; } >&5
24968   ($PKG_CONFIG --exists --print-errors ""nss"") 2>&5
24969   ac_status=$?
24970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24971   test $ac_status = 0; }; then
24972   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags ""nss"" 2>/dev/null`
24973                       test "x$?" != "x0" && pkg_failed=yes
24974 else
24975   pkg_failed=yes
24976 fi
24977  else
24978     pkg_failed=untried
24979 fi
24980 if test -n "$NSS_LIBS"; then
24981     pkg_cv_NSS_LIBS="$NSS_LIBS"
24982  elif test -n "$PKG_CONFIG"; then
24983     if test -n "$PKG_CONFIG" && \
24984     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"nss\"\""; } >&5
24985   ($PKG_CONFIG --exists --print-errors ""nss"") 2>&5
24986   ac_status=$?
24987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24988   test $ac_status = 0; }; then
24989   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs ""nss"" 2>/dev/null`
24990                       test "x$?" != "x0" && pkg_failed=yes
24991 else
24992   pkg_failed=yes
24993 fi
24994  else
24995     pkg_failed=untried
24996 fi
24997
24998
24999
25000 if test $pkg_failed = yes; then
25001         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25002 $as_echo "no" >&6; }
25003
25004 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25005         _pkg_short_errors_supported=yes
25006 else
25007         _pkg_short_errors_supported=no
25008 fi
25009         if test $_pkg_short_errors_supported = yes; then
25010                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""nss"" 2>&1`
25011         else
25012                 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""nss"" 2>&1`
25013         fi
25014         # Put the nasty error message in config.log where it belongs
25015         echo "$NSS_PKG_ERRORS" >&5
25016
25017         true
25018 elif test $pkg_failed = untried; then
25019         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25020 $as_echo "no" >&6; }
25021         true
25022 else
25023         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
25024         NSS_LIBS=$pkg_cv_NSS_LIBS
25025         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25026 $as_echo "yes" >&6; }
25027
25028 $as_echo "#define USE_SHA256 2" >>confdefs.h
25029
25030                       have_sha="nss"
25031 fi
25032 fi
25033
25034  if test "$enable_shared" = "yes"; then
25035   ENABLE_MODULES_TRUE=
25036   ENABLE_MODULES_FALSE='#'
25037 else
25038   ENABLE_MODULES_TRUE='#'
25039   ENABLE_MODULES_FALSE=
25040 fi
25041
25042 if test "$enable_shared" = "yes"; then
25043
25044 $as_echo "#define ENABLE_MODULES 1" >>confdefs.h
25045
25046 fi
25047
25048
25049
25050
25051 if test "$host" = "arm-apple-darwin"; then
25052
25053 $as_echo "#define IPHONE 1" >>confdefs.h
25054
25055    DEVICE_TYPE=iPhone
25056 fi
25057
25058 if test "$enable_evolution_compatibility" = "yes"; then
25059
25060 $as_echo "#define EVOLUTION_COMPATIBILITY 1" >>confdefs.h
25061
25062    # don't link against libs wrapped by eds_abi_wrapper (no longer limited to EDS alone...)
25063    ECAL_LIBS=
25064    EBOOK_LIBS=
25065    EPACKAGE_LIBS=
25066    BLUEZ_LIBS=
25067 fi
25068  if test "$enable_evolution_compatibility" = "yes"; then
25069   ENABLE_EVOLUTION_COMPATIBILITY_TRUE=
25070   ENABLE_EVOLUTION_COMPATIBILITY_FALSE='#'
25071 else
25072   ENABLE_EVOLUTION_COMPATIBILITY_TRUE='#'
25073   ENABLE_EVOLUTION_COMPATIBILITY_FALSE=
25074 fi
25075
25076
25077 pkg_failed=no
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL_AVAILABLE" >&5
25079 $as_echo_n "checking for LIBICAL_AVAILABLE... " >&6; }
25080
25081 if test -n "$LIBICAL_AVAILABLE_CFLAGS"; then
25082     pkg_cv_LIBICAL_AVAILABLE_CFLAGS="$LIBICAL_AVAILABLE_CFLAGS"
25083  elif test -n "$PKG_CONFIG"; then
25084     if test -n "$PKG_CONFIG" && \
25085     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical >= 0.43\""; } >&5
25086   ($PKG_CONFIG --exists --print-errors "libical >= 0.43") 2>&5
25087   ac_status=$?
25088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25089   test $ac_status = 0; }; then
25090   pkg_cv_LIBICAL_AVAILABLE_CFLAGS=`$PKG_CONFIG --cflags "libical >= 0.43" 2>/dev/null`
25091                       test "x$?" != "x0" && pkg_failed=yes
25092 else
25093   pkg_failed=yes
25094 fi
25095  else
25096     pkg_failed=untried
25097 fi
25098 if test -n "$LIBICAL_AVAILABLE_LIBS"; then
25099     pkg_cv_LIBICAL_AVAILABLE_LIBS="$LIBICAL_AVAILABLE_LIBS"
25100  elif test -n "$PKG_CONFIG"; then
25101     if test -n "$PKG_CONFIG" && \
25102     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical >= 0.43\""; } >&5
25103   ($PKG_CONFIG --exists --print-errors "libical >= 0.43") 2>&5
25104   ac_status=$?
25105   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25106   test $ac_status = 0; }; then
25107   pkg_cv_LIBICAL_AVAILABLE_LIBS=`$PKG_CONFIG --libs "libical >= 0.43" 2>/dev/null`
25108                       test "x$?" != "x0" && pkg_failed=yes
25109 else
25110   pkg_failed=yes
25111 fi
25112  else
25113     pkg_failed=untried
25114 fi
25115
25116
25117
25118 if test $pkg_failed = yes; then
25119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25120 $as_echo "no" >&6; }
25121
25122 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25123         _pkg_short_errors_supported=yes
25124 else
25125         _pkg_short_errors_supported=no
25126 fi
25127         if test $_pkg_short_errors_supported = yes; then
25128                 LIBICAL_AVAILABLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libical >= 0.43" 2>&1`
25129         else
25130                 LIBICAL_AVAILABLE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libical >= 0.43" 2>&1`
25131         fi
25132         # Put the nasty error message in config.log where it belongs
25133         echo "$LIBICAL_AVAILABLE_PKG_ERRORS" >&5
25134
25135         pass
25136 elif test $pkg_failed = untried; then
25137         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25138 $as_echo "no" >&6; }
25139         pass
25140 else
25141         LIBICAL_AVAILABLE_CFLAGS=$pkg_cv_LIBICAL_AVAILABLE_CFLAGS
25142         LIBICAL_AVAILABLE_LIBS=$pkg_cv_LIBICAL_AVAILABLE_LIBS
25143         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25144 $as_echo "yes" >&6; }
25145
25146 $as_echo "#define HAVE_LIBICAL_R 1" >>confdefs.h
25147
25148 fi
25149
25150 if test "$enable_developer_mode" = "yes"; then
25151 BACKENDS_SEARCH_DIRECTORY="`pwd`/src/backends/"
25152 else
25153 BACKENDS_SEARCH_DIRECTORY='$(libdir)/syncevolution/backends/'
25154 fi
25155
25156 BACKENDS_DIRECTORY='$(libdir)/syncevolution/backends'
25157
25158
25159
25160 # for ActiveSync backend
25161 syncevo_backenddir='$(libdir)'/syncevolution/backends
25162
25163
25164
25165 cat >>confdefs.h <<_ACEOF
25166 #define DEVICE_TYPE "$DEVICE_TYPE"
25167 _ACEOF
25168
25169
25170 for ac_header in stdarg.h valgrind/valgrind.h execinfo.h
25171 do :
25172   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25173 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25174 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25175   cat >>confdefs.h <<_ACEOF
25176 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25177 _ACEOF
25178
25179 fi
25180
25181 done
25182
25183
25184
25185 $as_echo "#define SYNTHESIS 1" >>confdefs.h
25186
25187
25188 # fallback for lack of --with-docdir support in older automake
25189 if test ! "$docdir"; then
25190    docdir = ${datadir}/doc/syncevolution
25191
25192 fi
25193
25194 # Check whether --enable-dbus-timeout-hack was given.
25195 if test "${enable_dbus_timeout_hack+set}" = set; then :
25196   enableval=$enable_dbus_timeout_hack; enable_dbus_timeout_hack=$enableval
25197 else
25198   if test $enable_ebook = "yes" || test $enable_ecal = "yes"; then
25199                   enable_dbus_timeout_hack="yes"
25200                fi
25201 fi
25202
25203 if test "$enable_dbus_timeout_hack" = "yes"; then
25204
25205 $as_echo "#define ENABLE_DBUS_TIMEOUT_HACK 1" >>confdefs.h
25206
25207 fi
25208
25209 # Avoid hard-coding paths in backends. These names are chosen so
25210 # that a backend can alternatively use its own top-level configure
25211 # with PKG_CHECK_MODULES(SYNCEVOLUTION, "syncevolution") to set them.
25212 # need absolute path, use pwd instead of relative $srcdir
25213 #
25214 # When adding something here, remember to also update syncevolution.pc.in.
25215 # -lrt is for clock_gettime() in the Timespec.h inline functions.
25216 SYNCEVOLUTION_CFLAGS=-I`cd $srcdir && pwd`/src
25217 # Linker flags including libsyncevolution.la and some libs.
25218 SYNCEVOLUTION_LIBS="src/syncevo/libsyncevolution.la -lrt"
25219
25220
25221
25222 # invoking syncevolution binary is allowed to fail when cross-compiling
25223  if test "$cross_compiling" = "yes"; then
25224   COND_CROSS_COMPILING_TRUE=
25225   COND_CROSS_COMPILING_FALSE='#'
25226 else
25227   COND_CROSS_COMPILING_TRUE='#'
25228   COND_CROSS_COMPILING_FALSE=
25229 fi
25230
25231
25232 ac_config_files="$ac_config_files Makefile src/syncevo/syncevolution.pc src/synthesis-includes/Makefile po/Makefile.in src/dbus/glib/syncevo-dbus.pc"
25233
25234 cat >confcache <<\_ACEOF
25235 # This file is a shell script that caches the results of configure
25236 # tests run on this system so they can be shared between configure
25237 # scripts and configure runs, see configure's option --config-cache.
25238 # It is not useful on other systems.  If it contains results you don't
25239 # want to keep, you may remove or edit it.
25240 #
25241 # config.status only pays attention to the cache file if you give it
25242 # the --recheck option to rerun configure.
25243 #
25244 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25245 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25246 # following values.
25247
25248 _ACEOF
25249
25250 # The following way of writing the cache mishandles newlines in values,
25251 # but we know of no workaround that is simple, portable, and efficient.
25252 # So, we kill variables containing newlines.
25253 # Ultrix sh set writes to stderr and can't be redirected directly,
25254 # and sets the high bit in the cache file unless we assign to the vars.
25255 (
25256   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25257     eval ac_val=\$$ac_var
25258     case $ac_val in #(
25259     *${as_nl}*)
25260       case $ac_var in #(
25261       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25262 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25263       esac
25264       case $ac_var in #(
25265       _ | IFS | as_nl) ;; #(
25266       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25267       *) { eval $ac_var=; unset $ac_var;} ;;
25268       esac ;;
25269     esac
25270   done
25271
25272   (set) 2>&1 |
25273     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25274     *${as_nl}ac_space=\ *)
25275       # `set' does not quote correctly, so add quotes: double-quote
25276       # substitution turns \\\\ into \\, and sed turns \\ into \.
25277       sed -n \
25278         "s/'/'\\\\''/g;
25279           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25280       ;; #(
25281     *)
25282       # `set' quotes correctly as required by POSIX, so do not add quotes.
25283       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25284       ;;
25285     esac |
25286     sort
25287 ) |
25288   sed '
25289      /^ac_cv_env_/b end
25290      t clear
25291      :clear
25292      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25293      t end
25294      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25295      :end' >>confcache
25296 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25297   if test -w "$cache_file"; then
25298     if test "x$cache_file" != "x/dev/null"; then
25299       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25300 $as_echo "$as_me: updating cache $cache_file" >&6;}
25301       if test ! -f "$cache_file" || test -h "$cache_file"; then
25302         cat confcache >"$cache_file"
25303       else
25304         case $cache_file in #(
25305         */* | ?:*)
25306           mv -f confcache "$cache_file"$$ &&
25307           mv -f "$cache_file"$$ "$cache_file" ;; #(
25308         *)
25309           mv -f confcache "$cache_file" ;;
25310         esac
25311       fi
25312     fi
25313   else
25314     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25315 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25316   fi
25317 fi
25318 rm -f confcache
25319
25320 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25321 # Let make expand exec_prefix.
25322 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25323
25324 DEFS=-DHAVE_CONFIG_H
25325
25326 ac_libobjs=
25327 ac_ltlibobjs=
25328 U=
25329 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25330   # 1. Remove the extension, and $U if already installed.
25331   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25332   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25333   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25334   #    will be set to the directory where LIBOBJS objects are built.
25335   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25336   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25337 done
25338 LIBOBJS=$ac_libobjs
25339
25340 LTLIBOBJS=$ac_ltlibobjs
25341
25342
25343  if test -n "$EXEEXT"; then
25344   am__EXEEXT_TRUE=
25345   am__EXEEXT_FALSE='#'
25346 else
25347   am__EXEEXT_TRUE='#'
25348   am__EXEEXT_FALSE=
25349 fi
25350
25351 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25352   as_fn_error $? "conditional \"AMDEP\" was never defined.
25353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25354 fi
25355 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25356   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25358 fi
25359 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25360   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
25361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25362 fi
25363 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25364   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
25365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25366 fi
25367 if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
25368   as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
25369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25370 fi
25371 if test -z "${ENABLE_TESTING_TRUE}" && test -z "${ENABLE_TESTING_FALSE}"; then
25372   as_fn_error $? "conditional \"ENABLE_TESTING\" was never defined.
25373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25374 fi
25375 if test -z "${ENABLE_OBEX_TRUE}" && test -z "${ENABLE_OBEX_FALSE}"; then
25376   as_fn_error $? "conditional \"ENABLE_OBEX\" was never defined.
25377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25378 fi
25379 if test -z "${ENABLE_BLUETOOTH_TRUE}" && test -z "${ENABLE_BLUETOOTH_FALSE}"; then
25380   as_fn_error $? "conditional \"ENABLE_BLUETOOTH\" was never defined.
25381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25382 fi
25383 if test -z "${COND_GTK2_TRUE}" && test -z "${COND_GTK2_FALSE}"; then
25384   as_fn_error $? "conditional \"COND_GTK2\" was never defined.
25385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25386 fi
25387 if test -z "${COND_GUI_TRUE}" && test -z "${COND_GUI_FALSE}"; then
25388   as_fn_error $? "conditional \"COND_GUI\" was never defined.
25389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25390 fi
25391 if test -z "${COND_CORE_TRUE}" && test -z "${COND_CORE_FALSE}"; then
25392   as_fn_error $? "conditional \"COND_CORE\" was never defined.
25393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25394 fi
25395 if test -z "${COND_DBUS_TRUE}" && test -z "${COND_DBUS_FALSE}"; then
25396   as_fn_error $? "conditional \"COND_DBUS\" was never defined.
25397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25398 fi
25399 if test -z "${COND_GIO_GDBUS_TRUE}" && test -z "${COND_GIO_GDBUS_FALSE}"; then
25400   as_fn_error $? "conditional \"COND_GIO_GDBUS\" was never defined.
25401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25402 fi
25403 if test -z "${NOTIFY_COMPATIBILITY_TRUE}" && test -z "${NOTIFY_COMPATIBILITY_FALSE}"; then
25404   as_fn_error $? "conditional \"NOTIFY_COMPATIBILITY\" was never defined.
25405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25406 fi
25407 if test -z "${COND_DBUS_PIM_TRUE}" && test -z "${COND_DBUS_PIM_FALSE}"; then
25408   as_fn_error $? "conditional \"COND_DBUS_PIM\" was never defined.
25409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25410 fi
25411
25412   ac_config_commands="$ac_config_commands po/stamp-it"
25413
25414
25415 if test -z "${COND_MAN_PAGES_TRUE}" && test -z "${COND_MAN_PAGES_FALSE}"; then
25416   as_fn_error $? "conditional \"COND_MAN_PAGES\" was never defined.
25417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25418 fi
25419 if test -z "${COND_HTML_README_TRUE}" && test -z "${COND_HTML_README_FALSE}"; then
25420   as_fn_error $? "conditional \"COND_HTML_README\" was never defined.
25421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25422 fi
25423 if test -z "${ENABLE_GNOME_BLUETOOTH_PANEL_TRUE}" && test -z "${ENABLE_GNOME_BLUETOOTH_PANEL_FALSE}"; then
25424   as_fn_error $? "conditional \"ENABLE_GNOME_BLUETOOTH_PANEL\" was never defined.
25425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25426 fi
25427 if test -z "${COND_DOC_TRUE}" && test -z "${COND_DOC_FALSE}"; then
25428   as_fn_error $? "conditional \"COND_DOC\" was never defined.
25429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25430 fi
25431 if test -z "${BUILD_ACTIVESYNCD_TRUE}" && test -z "${BUILD_ACTIVESYNCD_FALSE}"; then
25432   as_fn_error $? "conditional \"BUILD_ACTIVESYNCD\" was never defined.
25433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25434 fi
25435 if test -z "${ENABLE_AKONADI_TRUE}" && test -z "${ENABLE_AKONADI_FALSE}"; then
25436   as_fn_error $? "conditional \"ENABLE_AKONADI\" was never defined.
25437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25438 fi
25439 if test -z "${ENABLE_ECAL_TRUE}" && test -z "${ENABLE_ECAL_FALSE}"; then
25440   as_fn_error $? "conditional \"ENABLE_ECAL\" was never defined.
25441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25442 fi
25443 if test -z "${USE_KDE_KWALLET_TRUE}" && test -z "${USE_KDE_KWALLET_FALSE}"; then
25444   as_fn_error $? "conditional \"USE_KDE_KWALLET\" was never defined.
25445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25446 fi
25447 if test -z "${NEON_COMPATIBILITY_TRUE}" && test -z "${NEON_COMPATIBILITY_FALSE}"; then
25448   as_fn_error $? "conditional \"NEON_COMPATIBILITY\" was never defined.
25449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25450 fi
25451 if test -z "${ENABLE_QT_DBUS_TRUE}" && test -z "${ENABLE_QT_DBUS_FALSE}"; then
25452   as_fn_error $? "conditional \"ENABLE_QT_DBUS\" was never defined.
25453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25454 fi
25455 if test -z "${ENABLE_ICAL_TRUE}" && test -z "${ENABLE_ICAL_FALSE}"; then
25456   as_fn_error $? "conditional \"ENABLE_ICAL\" was never defined.
25457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25458 fi
25459 if test -z "${ENABLE_MODULES_TRUE}" && test -z "${ENABLE_MODULES_FALSE}"; then
25460   as_fn_error $? "conditional \"ENABLE_MODULES\" was never defined.
25461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25462 fi
25463 if test -z "${ENABLE_EVOLUTION_COMPATIBILITY_TRUE}" && test -z "${ENABLE_EVOLUTION_COMPATIBILITY_FALSE}"; then
25464   as_fn_error $? "conditional \"ENABLE_EVOLUTION_COMPATIBILITY\" was never defined.
25465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25466 fi
25467 if test -z "${COND_CROSS_COMPILING_TRUE}" && test -z "${COND_CROSS_COMPILING_FALSE}"; then
25468   as_fn_error $? "conditional \"COND_CROSS_COMPILING\" was never defined.
25469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25470 fi
25471
25472 : "${CONFIG_STATUS=./config.status}"
25473 ac_write_fail=0
25474 ac_clean_files_save=$ac_clean_files
25475 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25477 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25478 as_write_fail=0
25479 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25480 #! $SHELL
25481 # Generated by $as_me.
25482 # Run this file to recreate the current configuration.
25483 # Compiler output produced by configure, useful for debugging
25484 # configure, is in config.log if it exists.
25485
25486 debug=false
25487 ac_cs_recheck=false
25488 ac_cs_silent=false
25489
25490 SHELL=\${CONFIG_SHELL-$SHELL}
25491 export SHELL
25492 _ASEOF
25493 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25494 ## -------------------- ##
25495 ## M4sh Initialization. ##
25496 ## -------------------- ##
25497
25498 # Be more Bourne compatible
25499 DUALCASE=1; export DUALCASE # for MKS sh
25500 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25501   emulate sh
25502   NULLCMD=:
25503   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25504   # is contrary to our usage.  Disable this feature.
25505   alias -g '${1+"$@"}'='"$@"'
25506   setopt NO_GLOB_SUBST
25507 else
25508   case `(set -o) 2>/dev/null` in #(
25509   *posix*) :
25510     set -o posix ;; #(
25511   *) :
25512      ;;
25513 esac
25514 fi
25515
25516
25517 as_nl='
25518 '
25519 export as_nl
25520 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25521 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25522 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25523 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25524 # Prefer a ksh shell builtin over an external printf program on Solaris,
25525 # but without wasting forks for bash or zsh.
25526 if test -z "$BASH_VERSION$ZSH_VERSION" \
25527     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25528   as_echo='print -r --'
25529   as_echo_n='print -rn --'
25530 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25531   as_echo='printf %s\n'
25532   as_echo_n='printf %s'
25533 else
25534   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25535     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25536     as_echo_n='/usr/ucb/echo -n'
25537   else
25538     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25539     as_echo_n_body='eval
25540       arg=$1;
25541       case $arg in #(
25542       *"$as_nl"*)
25543         expr "X$arg" : "X\\(.*\\)$as_nl";
25544         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25545       esac;
25546       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25547     '
25548     export as_echo_n_body
25549     as_echo_n='sh -c $as_echo_n_body as_echo'
25550   fi
25551   export as_echo_body
25552   as_echo='sh -c $as_echo_body as_echo'
25553 fi
25554
25555 # The user is always right.
25556 if test "${PATH_SEPARATOR+set}" != set; then
25557   PATH_SEPARATOR=:
25558   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25559     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25560       PATH_SEPARATOR=';'
25561   }
25562 fi
25563
25564
25565 # IFS
25566 # We need space, tab and new line, in precisely that order.  Quoting is
25567 # there to prevent editors from complaining about space-tab.
25568 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25569 # splitting by setting IFS to empty value.)
25570 IFS=" ""        $as_nl"
25571
25572 # Find who we are.  Look in the path if we contain no directory separator.
25573 as_myself=
25574 case $0 in #((
25575   *[\\/]* ) as_myself=$0 ;;
25576   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25577 for as_dir in $PATH
25578 do
25579   IFS=$as_save_IFS
25580   test -z "$as_dir" && as_dir=.
25581     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25582   done
25583 IFS=$as_save_IFS
25584
25585      ;;
25586 esac
25587 # We did not find ourselves, most probably we were run as `sh COMMAND'
25588 # in which case we are not to be found in the path.
25589 if test "x$as_myself" = x; then
25590   as_myself=$0
25591 fi
25592 if test ! -f "$as_myself"; then
25593   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25594   exit 1
25595 fi
25596
25597 # Unset variables that we do not need and which cause bugs (e.g. in
25598 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25599 # suppresses any "Segmentation fault" message there.  '((' could
25600 # trigger a bug in pdksh 5.2.14.
25601 for as_var in BASH_ENV ENV MAIL MAILPATH
25602 do eval test x\${$as_var+set} = xset \
25603   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25604 done
25605 PS1='$ '
25606 PS2='> '
25607 PS4='+ '
25608
25609 # NLS nuisances.
25610 LC_ALL=C
25611 export LC_ALL
25612 LANGUAGE=C
25613 export LANGUAGE
25614
25615 # CDPATH.
25616 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25617
25618
25619 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25620 # ----------------------------------------
25621 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25622 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25623 # script with STATUS, using 1 if that was 0.
25624 as_fn_error ()
25625 {
25626   as_status=$1; test $as_status -eq 0 && as_status=1
25627   if test "$4"; then
25628     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25629     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25630   fi
25631   $as_echo "$as_me: error: $2" >&2
25632   as_fn_exit $as_status
25633 } # as_fn_error
25634
25635
25636 # as_fn_set_status STATUS
25637 # -----------------------
25638 # Set $? to STATUS, without forking.
25639 as_fn_set_status ()
25640 {
25641   return $1
25642 } # as_fn_set_status
25643
25644 # as_fn_exit STATUS
25645 # -----------------
25646 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25647 as_fn_exit ()
25648 {
25649   set +e
25650   as_fn_set_status $1
25651   exit $1
25652 } # as_fn_exit
25653
25654 # as_fn_unset VAR
25655 # ---------------
25656 # Portably unset VAR.
25657 as_fn_unset ()
25658 {
25659   { eval $1=; unset $1;}
25660 }
25661 as_unset=as_fn_unset
25662 # as_fn_append VAR VALUE
25663 # ----------------------
25664 # Append the text in VALUE to the end of the definition contained in VAR. Take
25665 # advantage of any shell optimizations that allow amortized linear growth over
25666 # repeated appends, instead of the typical quadratic growth present in naive
25667 # implementations.
25668 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25669   eval 'as_fn_append ()
25670   {
25671     eval $1+=\$2
25672   }'
25673 else
25674   as_fn_append ()
25675   {
25676     eval $1=\$$1\$2
25677   }
25678 fi # as_fn_append
25679
25680 # as_fn_arith ARG...
25681 # ------------------
25682 # Perform arithmetic evaluation on the ARGs, and store the result in the
25683 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25684 # must be portable across $(()) and expr.
25685 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25686   eval 'as_fn_arith ()
25687   {
25688     as_val=$(( $* ))
25689   }'
25690 else
25691   as_fn_arith ()
25692   {
25693     as_val=`expr "$@" || test $? -eq 1`
25694   }
25695 fi # as_fn_arith
25696
25697
25698 if expr a : '\(a\)' >/dev/null 2>&1 &&
25699    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25700   as_expr=expr
25701 else
25702   as_expr=false
25703 fi
25704
25705 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25706   as_basename=basename
25707 else
25708   as_basename=false
25709 fi
25710
25711 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25712   as_dirname=dirname
25713 else
25714   as_dirname=false
25715 fi
25716
25717 as_me=`$as_basename -- "$0" ||
25718 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25719          X"$0" : 'X\(//\)$' \| \
25720          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25721 $as_echo X/"$0" |
25722     sed '/^.*\/\([^/][^/]*\)\/*$/{
25723             s//\1/
25724             q
25725           }
25726           /^X\/\(\/\/\)$/{
25727             s//\1/
25728             q
25729           }
25730           /^X\/\(\/\).*/{
25731             s//\1/
25732             q
25733           }
25734           s/.*/./; q'`
25735
25736 # Avoid depending upon Character Ranges.
25737 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25738 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25739 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25740 as_cr_digits='0123456789'
25741 as_cr_alnum=$as_cr_Letters$as_cr_digits
25742
25743 ECHO_C= ECHO_N= ECHO_T=
25744 case `echo -n x` in #(((((
25745 -n*)
25746   case `echo 'xy\c'` in
25747   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25748   xy)  ECHO_C='\c';;
25749   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25750        ECHO_T=' ';;
25751   esac;;
25752 *)
25753   ECHO_N='-n';;
25754 esac
25755
25756 rm -f conf$$ conf$$.exe conf$$.file
25757 if test -d conf$$.dir; then
25758   rm -f conf$$.dir/conf$$.file
25759 else
25760   rm -f conf$$.dir
25761   mkdir conf$$.dir 2>/dev/null
25762 fi
25763 if (echo >conf$$.file) 2>/dev/null; then
25764   if ln -s conf$$.file conf$$ 2>/dev/null; then
25765     as_ln_s='ln -s'
25766     # ... but there are two gotchas:
25767     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25768     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25769     # In both cases, we have to default to `cp -pR'.
25770     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25771       as_ln_s='cp -pR'
25772   elif ln conf$$.file conf$$ 2>/dev/null; then
25773     as_ln_s=ln
25774   else
25775     as_ln_s='cp -pR'
25776   fi
25777 else
25778   as_ln_s='cp -pR'
25779 fi
25780 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25781 rmdir conf$$.dir 2>/dev/null
25782
25783
25784 # as_fn_mkdir_p
25785 # -------------
25786 # Create "$as_dir" as a directory, including parents if necessary.
25787 as_fn_mkdir_p ()
25788 {
25789
25790   case $as_dir in #(
25791   -*) as_dir=./$as_dir;;
25792   esac
25793   test -d "$as_dir" || eval $as_mkdir_p || {
25794     as_dirs=
25795     while :; do
25796       case $as_dir in #(
25797       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25798       *) as_qdir=$as_dir;;
25799       esac
25800       as_dirs="'$as_qdir' $as_dirs"
25801       as_dir=`$as_dirname -- "$as_dir" ||
25802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25803          X"$as_dir" : 'X\(//\)[^/]' \| \
25804          X"$as_dir" : 'X\(//\)$' \| \
25805          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25806 $as_echo X"$as_dir" |
25807     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25808             s//\1/
25809             q
25810           }
25811           /^X\(\/\/\)[^/].*/{
25812             s//\1/
25813             q
25814           }
25815           /^X\(\/\/\)$/{
25816             s//\1/
25817             q
25818           }
25819           /^X\(\/\).*/{
25820             s//\1/
25821             q
25822           }
25823           s/.*/./; q'`
25824       test -d "$as_dir" && break
25825     done
25826     test -z "$as_dirs" || eval "mkdir $as_dirs"
25827   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25828
25829
25830 } # as_fn_mkdir_p
25831 if mkdir -p . 2>/dev/null; then
25832   as_mkdir_p='mkdir -p "$as_dir"'
25833 else
25834   test -d ./-p && rmdir ./-p
25835   as_mkdir_p=false
25836 fi
25837
25838
25839 # as_fn_executable_p FILE
25840 # -----------------------
25841 # Test if FILE is an executable regular file.
25842 as_fn_executable_p ()
25843 {
25844   test -f "$1" && test -x "$1"
25845 } # as_fn_executable_p
25846 as_test_x='test -x'
25847 as_executable_p=as_fn_executable_p
25848
25849 # Sed expression to map a string onto a valid CPP name.
25850 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25851
25852 # Sed expression to map a string onto a valid variable name.
25853 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25854
25855
25856 exec 6>&1
25857 ## ----------------------------------- ##
25858 ## Main body of $CONFIG_STATUS script. ##
25859 ## ----------------------------------- ##
25860 _ASEOF
25861 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25862
25863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25864 # Save the log message, to keep $0 and so on meaningful, and to
25865 # report actual input values of CONFIG_FILES etc. instead of their
25866 # values after options handling.
25867 ac_log="
25868 This file was extended by syncevolution $as_me 1.3.99.4, which was
25869 generated by GNU Autoconf 2.69.  Invocation command line was
25870
25871   CONFIG_FILES    = $CONFIG_FILES
25872   CONFIG_HEADERS  = $CONFIG_HEADERS
25873   CONFIG_LINKS    = $CONFIG_LINKS
25874   CONFIG_COMMANDS = $CONFIG_COMMANDS
25875   $ $0 $@
25876
25877 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25878 "
25879
25880 _ACEOF
25881
25882 case $ac_config_files in *"
25883 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25884 esac
25885
25886 case $ac_config_headers in *"
25887 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25888 esac
25889
25890
25891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25892 # Files that config.status was made for.
25893 config_files="$ac_config_files"
25894 config_headers="$ac_config_headers"
25895 config_commands="$ac_config_commands"
25896
25897 _ACEOF
25898
25899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25900 ac_cs_usage="\
25901 \`$as_me' instantiates files and other configuration actions
25902 from templates according to the current configuration.  Unless the files
25903 and actions are specified as TAGs, all are instantiated by default.
25904
25905 Usage: $0 [OPTION]... [TAG]...
25906
25907   -h, --help       print this help, then exit
25908   -V, --version    print version number and configuration settings, then exit
25909       --config     print configuration, then exit
25910   -q, --quiet, --silent
25911                    do not print progress messages
25912   -d, --debug      don't remove temporary files
25913       --recheck    update $as_me by reconfiguring in the same conditions
25914       --file=FILE[:TEMPLATE]
25915                    instantiate the configuration file FILE
25916       --header=FILE[:TEMPLATE]
25917                    instantiate the configuration header FILE
25918
25919 Configuration files:
25920 $config_files
25921
25922 Configuration headers:
25923 $config_headers
25924
25925 Configuration commands:
25926 $config_commands
25927
25928 Report bugs to the package provider."
25929
25930 _ACEOF
25931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25932 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25933 ac_cs_version="\\
25934 syncevolution config.status 1.3.99.4
25935 configured by $0, generated by GNU Autoconf 2.69,
25936   with options \\"\$ac_cs_config\\"
25937
25938 Copyright (C) 2012 Free Software Foundation, Inc.
25939 This config.status script is free software; the Free Software Foundation
25940 gives unlimited permission to copy, distribute and modify it."
25941
25942 ac_pwd='$ac_pwd'
25943 srcdir='$srcdir'
25944 INSTALL='$INSTALL'
25945 MKDIR_P='$MKDIR_P'
25946 AWK='$AWK'
25947 test -n "\$AWK" || AWK=awk
25948 _ACEOF
25949
25950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25951 # The default lists apply if the user does not specify any file.
25952 ac_need_defaults=:
25953 while test $# != 0
25954 do
25955   case $1 in
25956   --*=?*)
25957     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25958     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25959     ac_shift=:
25960     ;;
25961   --*=)
25962     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25963     ac_optarg=
25964     ac_shift=:
25965     ;;
25966   *)
25967     ac_option=$1
25968     ac_optarg=$2
25969     ac_shift=shift
25970     ;;
25971   esac
25972
25973   case $ac_option in
25974   # Handling of the options.
25975   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25976     ac_cs_recheck=: ;;
25977   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25978     $as_echo "$ac_cs_version"; exit ;;
25979   --config | --confi | --conf | --con | --co | --c )
25980     $as_echo "$ac_cs_config"; exit ;;
25981   --debug | --debu | --deb | --de | --d | -d )
25982     debug=: ;;
25983   --file | --fil | --fi | --f )
25984     $ac_shift
25985     case $ac_optarg in
25986     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25987     '') as_fn_error $? "missing file argument" ;;
25988     esac
25989     as_fn_append CONFIG_FILES " '$ac_optarg'"
25990     ac_need_defaults=false;;
25991   --header | --heade | --head | --hea )
25992     $ac_shift
25993     case $ac_optarg in
25994     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25995     esac
25996     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25997     ac_need_defaults=false;;
25998   --he | --h)
25999     # Conflict between --help and --header
26000     as_fn_error $? "ambiguous option: \`$1'
26001 Try \`$0 --help' for more information.";;
26002   --help | --hel | -h )
26003     $as_echo "$ac_cs_usage"; exit ;;
26004   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26005   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26006     ac_cs_silent=: ;;
26007
26008   # This is an error.
26009   -*) as_fn_error $? "unrecognized option: \`$1'
26010 Try \`$0 --help' for more information." ;;
26011
26012   *) as_fn_append ac_config_targets " $1"
26013      ac_need_defaults=false ;;
26014
26015   esac
26016   shift
26017 done
26018
26019 ac_configure_extra_args=
26020
26021 if $ac_cs_silent; then
26022   exec 6>/dev/null
26023   ac_configure_extra_args="$ac_configure_extra_args --silent"
26024 fi
26025
26026 _ACEOF
26027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26028 if \$ac_cs_recheck; then
26029   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26030   shift
26031   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26032   CONFIG_SHELL='$SHELL'
26033   export CONFIG_SHELL
26034   exec "\$@"
26035 fi
26036
26037 _ACEOF
26038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26039 exec 5>>config.log
26040 {
26041   echo
26042   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26043 ## Running $as_me. ##
26044 _ASBOX
26045   $as_echo "$ac_log"
26046 } >&5
26047
26048 _ACEOF
26049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26050 #
26051 # INIT-COMMANDS
26052 #
26053 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26054
26055
26056 # The HP-UX ksh and POSIX shell print the target directory to stdout
26057 # if CDPATH is set.
26058 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26059
26060 sed_quote_subst='$sed_quote_subst'
26061 double_quote_subst='$double_quote_subst'
26062 delay_variable_subst='$delay_variable_subst'
26063 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26064 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26065 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26066 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26067 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26068 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26069 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26070 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26071 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26072 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26073 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26074 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26075 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26076 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26077 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26078 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26079 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26080 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26081 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26082 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26083 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26084 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26085 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26086 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26087 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26088 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26089 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26090 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26091 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26092 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26093 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26094 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26095 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26096 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26097 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26098 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26099 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26100 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26101 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26102 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26103 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26104 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26105 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26106 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26107 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26108 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26109 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26110 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26111 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26112 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26113 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26114 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26115 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26116 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26117 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26118 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26119 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"`'
26120 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26121 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26122 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26123 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26124 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26125 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26126 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26127 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26128 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26129 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26130 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26131 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26132 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26133 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26134 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26135 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26136 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26137 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26138 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26139 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26140 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26141 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26142 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26143 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26144 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26145 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26146 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26147 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26148 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26149 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26150 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26151 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26152 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26153 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26154 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26155 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26156 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26157 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26158 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26159 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26160 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26161 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26162 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26163 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26164 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26165 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26166 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26167 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26168 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26169 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26170 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26171 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26172 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26173 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26174 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26175 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26176 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26177 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26178 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26179 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26180 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26181 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26182 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26183 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26184 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26185 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26186 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26187 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26188 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26189 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26190 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26191 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26192 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26193 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26194 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26195 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26196 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26197 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26198 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26199 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26200 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26201 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26202 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26203 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26204 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26205 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26206 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26207 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26208 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26209 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26210 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26211 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26212 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26213 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26214 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26215 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26216 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26217 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26218 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26219 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26220 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26221 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26222 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26223 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26224 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26225 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26226 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26227 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26228 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26229 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26230 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26231 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26232 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26233 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26234 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26235 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26236 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26237 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26238 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26239 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26240 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26241 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26242 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26243 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26244 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26245 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26246 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26247
26248 LTCC='$LTCC'
26249 LTCFLAGS='$LTCFLAGS'
26250 compiler='$compiler_DEFAULT'
26251
26252 # A function that is used when there is no print builtin or printf.
26253 func_fallback_echo ()
26254 {
26255   eval 'cat <<_LTECHO_EOF
26256 \$1
26257 _LTECHO_EOF'
26258 }
26259
26260 # Quote evaled strings.
26261 for var in SHELL \
26262 ECHO \
26263 PATH_SEPARATOR \
26264 SED \
26265 GREP \
26266 EGREP \
26267 FGREP \
26268 LD \
26269 NM \
26270 LN_S \
26271 lt_SP2NL \
26272 lt_NL2SP \
26273 reload_flag \
26274 OBJDUMP \
26275 deplibs_check_method \
26276 file_magic_cmd \
26277 file_magic_glob \
26278 want_nocaseglob \
26279 DLLTOOL \
26280 sharedlib_from_linklib_cmd \
26281 AR \
26282 AR_FLAGS \
26283 archiver_list_spec \
26284 STRIP \
26285 RANLIB \
26286 CC \
26287 CFLAGS \
26288 compiler \
26289 lt_cv_sys_global_symbol_pipe \
26290 lt_cv_sys_global_symbol_to_cdecl \
26291 lt_cv_sys_global_symbol_to_c_name_address \
26292 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26293 nm_file_list_spec \
26294 lt_prog_compiler_no_builtin_flag \
26295 lt_prog_compiler_pic \
26296 lt_prog_compiler_wl \
26297 lt_prog_compiler_static \
26298 lt_cv_prog_compiler_c_o \
26299 need_locks \
26300 MANIFEST_TOOL \
26301 DSYMUTIL \
26302 NMEDIT \
26303 LIPO \
26304 OTOOL \
26305 OTOOL64 \
26306 shrext_cmds \
26307 export_dynamic_flag_spec \
26308 whole_archive_flag_spec \
26309 compiler_needs_object \
26310 with_gnu_ld \
26311 allow_undefined_flag \
26312 no_undefined_flag \
26313 hardcode_libdir_flag_spec \
26314 hardcode_libdir_separator \
26315 exclude_expsyms \
26316 include_expsyms \
26317 file_list_spec \
26318 variables_saved_for_relink \
26319 libname_spec \
26320 library_names_spec \
26321 soname_spec \
26322 install_override_mode \
26323 finish_eval \
26324 old_striplib \
26325 striplib \
26326 compiler_lib_search_dirs \
26327 predep_objects \
26328 postdep_objects \
26329 predeps \
26330 postdeps \
26331 compiler_lib_search_path \
26332 LD_CXX \
26333 reload_flag_CXX \
26334 compiler_CXX \
26335 lt_prog_compiler_no_builtin_flag_CXX \
26336 lt_prog_compiler_pic_CXX \
26337 lt_prog_compiler_wl_CXX \
26338 lt_prog_compiler_static_CXX \
26339 lt_cv_prog_compiler_c_o_CXX \
26340 export_dynamic_flag_spec_CXX \
26341 whole_archive_flag_spec_CXX \
26342 compiler_needs_object_CXX \
26343 with_gnu_ld_CXX \
26344 allow_undefined_flag_CXX \
26345 no_undefined_flag_CXX \
26346 hardcode_libdir_flag_spec_CXX \
26347 hardcode_libdir_separator_CXX \
26348 exclude_expsyms_CXX \
26349 include_expsyms_CXX \
26350 file_list_spec_CXX \
26351 compiler_lib_search_dirs_CXX \
26352 predep_objects_CXX \
26353 postdep_objects_CXX \
26354 predeps_CXX \
26355 postdeps_CXX \
26356 compiler_lib_search_path_CXX; do
26357     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26358     *[\\\\\\\`\\"\\\$]*)
26359       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26360       ;;
26361     *)
26362       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26363       ;;
26364     esac
26365 done
26366
26367 # Double-quote double-evaled strings.
26368 for var in reload_cmds \
26369 old_postinstall_cmds \
26370 old_postuninstall_cmds \
26371 old_archive_cmds \
26372 extract_expsyms_cmds \
26373 old_archive_from_new_cmds \
26374 old_archive_from_expsyms_cmds \
26375 archive_cmds \
26376 archive_expsym_cmds \
26377 module_cmds \
26378 module_expsym_cmds \
26379 export_symbols_cmds \
26380 prelink_cmds \
26381 postlink_cmds \
26382 postinstall_cmds \
26383 postuninstall_cmds \
26384 finish_cmds \
26385 sys_lib_search_path_spec \
26386 sys_lib_dlsearch_path_spec \
26387 reload_cmds_CXX \
26388 old_archive_cmds_CXX \
26389 old_archive_from_new_cmds_CXX \
26390 old_archive_from_expsyms_cmds_CXX \
26391 archive_cmds_CXX \
26392 archive_expsym_cmds_CXX \
26393 module_cmds_CXX \
26394 module_expsym_cmds_CXX \
26395 export_symbols_cmds_CXX \
26396 prelink_cmds_CXX \
26397 postlink_cmds_CXX; do
26398     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26399     *[\\\\\\\`\\"\\\$]*)
26400       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26401       ;;
26402     *)
26403       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26404       ;;
26405     esac
26406 done
26407
26408 ac_aux_dir='$ac_aux_dir'
26409 xsi_shell='$xsi_shell'
26410 lt_shell_append='$lt_shell_append'
26411
26412 # See if we are running on zsh, and set the options which allow our
26413 # commands through without removal of \ escapes INIT.
26414 if test -n "\${ZSH_VERSION+set}" ; then
26415    setopt NO_GLOB_SUBST
26416 fi
26417
26418
26419     PACKAGE='$PACKAGE'
26420     VERSION='$VERSION'
26421     TIMESTAMP='$TIMESTAMP'
26422     RM='$RM'
26423     ofile='$ofile'
26424
26425
26426
26427
26428
26429
26430
26431 _ACEOF
26432
26433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26434
26435 # Handling of arguments.
26436 for ac_config_target in $ac_config_targets
26437 do
26438   case $ac_config_target in
26439     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26440     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26441     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26442     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26443     "src/dbus/qt/syncevolution-qt-dbus.pc") CONFIG_FILES="$CONFIG_FILES src/dbus/qt/syncevolution-qt-dbus.pc" ;;
26444     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26445     "src/syncevo/syncevolution.pc") CONFIG_FILES="$CONFIG_FILES src/syncevo/syncevolution.pc" ;;
26446     "src/synthesis-includes/Makefile") CONFIG_FILES="$CONFIG_FILES src/synthesis-includes/Makefile" ;;
26447     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
26448     "src/dbus/glib/syncevo-dbus.pc") CONFIG_FILES="$CONFIG_FILES src/dbus/glib/syncevo-dbus.pc" ;;
26449     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
26450
26451   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26452   esac
26453 done
26454
26455
26456 # If the user did not use the arguments to specify the items to instantiate,
26457 # then the envvar interface is used.  Set only those that are not.
26458 # We use the long form for the default assignment because of an extremely
26459 # bizarre bug on SunOS 4.1.3.
26460 if $ac_need_defaults; then
26461   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26462   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26463   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26464 fi
26465
26466 # Have a temporary directory for convenience.  Make it in the build tree
26467 # simply because there is no reason against having it here, and in addition,
26468 # creating and moving files from /tmp can sometimes cause problems.
26469 # Hook for its removal unless debugging.
26470 # Note that there is a small window in which the directory will not be cleaned:
26471 # after its creation but before its name has been assigned to `$tmp'.
26472 $debug ||
26473 {
26474   tmp= ac_tmp=
26475   trap 'exit_status=$?
26476   : "${ac_tmp:=$tmp}"
26477   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26478 ' 0
26479   trap 'as_fn_exit 1' 1 2 13 15
26480 }
26481 # Create a (secure) tmp directory for tmp files.
26482
26483 {
26484   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26485   test -d "$tmp"
26486 }  ||
26487 {
26488   tmp=./conf$$-$RANDOM
26489   (umask 077 && mkdir "$tmp")
26490 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26491 ac_tmp=$tmp
26492
26493 # Set up the scripts for CONFIG_FILES section.
26494 # No need to generate them if there are no CONFIG_FILES.
26495 # This happens for instance with `./config.status config.h'.
26496 if test -n "$CONFIG_FILES"; then
26497
26498
26499 ac_cr=`echo X | tr X '\015'`
26500 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26501 # But we know of no other shell where ac_cr would be empty at this
26502 # point, so we can use a bashism as a fallback.
26503 if test "x$ac_cr" = x; then
26504   eval ac_cr=\$\'\\r\'
26505 fi
26506 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26507 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26508   ac_cs_awk_cr='\\r'
26509 else
26510   ac_cs_awk_cr=$ac_cr
26511 fi
26512
26513 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26514 _ACEOF
26515
26516
26517 {
26518   echo "cat >conf$$subs.awk <<_ACEOF" &&
26519   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26520   echo "_ACEOF"
26521 } >conf$$subs.sh ||
26522   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26523 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26524 ac_delim='%!_!# '
26525 for ac_last_try in false false false false false :; do
26526   . ./conf$$subs.sh ||
26527     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26528
26529   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26530   if test $ac_delim_n = $ac_delim_num; then
26531     break
26532   elif $ac_last_try; then
26533     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26534   else
26535     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26536   fi
26537 done
26538 rm -f conf$$subs.sh
26539
26540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26541 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26542 _ACEOF
26543 sed -n '
26544 h
26545 s/^/S["/; s/!.*/"]=/
26546 p
26547 g
26548 s/^[^!]*!//
26549 :repl
26550 t repl
26551 s/'"$ac_delim"'$//
26552 t delim
26553 :nl
26554 h
26555 s/\(.\{148\}\)..*/\1/
26556 t more1
26557 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26558 p
26559 n
26560 b repl
26561 :more1
26562 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26563 p
26564 g
26565 s/.\{148\}//
26566 t nl
26567 :delim
26568 h
26569 s/\(.\{148\}\)..*/\1/
26570 t more2
26571 s/["\\]/\\&/g; s/^/"/; s/$/"/
26572 p
26573 b
26574 :more2
26575 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26576 p
26577 g
26578 s/.\{148\}//
26579 t delim
26580 ' <conf$$subs.awk | sed '
26581 /^[^""]/{
26582   N
26583   s/\n//
26584 }
26585 ' >>$CONFIG_STATUS || ac_write_fail=1
26586 rm -f conf$$subs.awk
26587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26588 _ACAWK
26589 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26590   for (key in S) S_is_set[key] = 1
26591   FS = "\a"
26592
26593 }
26594 {
26595   line = $ 0
26596   nfields = split(line, field, "@")
26597   substed = 0
26598   len = length(field[1])
26599   for (i = 2; i < nfields; i++) {
26600     key = field[i]
26601     keylen = length(key)
26602     if (S_is_set[key]) {
26603       value = S[key]
26604       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26605       len += length(value) + length(field[++i])
26606       substed = 1
26607     } else
26608       len += 1 + keylen
26609   }
26610
26611   print line
26612 }
26613
26614 _ACAWK
26615 _ACEOF
26616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26617 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26618   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26619 else
26620   cat
26621 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26622   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26623 _ACEOF
26624
26625 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26626 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26627 # trailing colons and then remove the whole line if VPATH becomes empty
26628 # (actually we leave an empty line to preserve line numbers).
26629 if test "x$srcdir" = x.; then
26630   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
26631 h
26632 s///
26633 s/^/:/
26634 s/[      ]*$/:/
26635 s/:\$(srcdir):/:/g
26636 s/:\${srcdir}:/:/g
26637 s/:@srcdir@:/:/g
26638 s/^:*//
26639 s/:*$//
26640 x
26641 s/\(=[   ]*\).*/\1/
26642 G
26643 s/\n//
26644 s/^[^=]*=[       ]*$//
26645 }'
26646 fi
26647
26648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26649 fi # test -n "$CONFIG_FILES"
26650
26651 # Set up the scripts for CONFIG_HEADERS section.
26652 # No need to generate them if there are no CONFIG_HEADERS.
26653 # This happens for instance with `./config.status Makefile'.
26654 if test -n "$CONFIG_HEADERS"; then
26655 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26656 BEGIN {
26657 _ACEOF
26658
26659 # Transform confdefs.h into an awk script `defines.awk', embedded as
26660 # here-document in config.status, that substitutes the proper values into
26661 # config.h.in to produce config.h.
26662
26663 # Create a delimiter string that does not exist in confdefs.h, to ease
26664 # handling of long lines.
26665 ac_delim='%!_!# '
26666 for ac_last_try in false false :; do
26667   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26668   if test -z "$ac_tt"; then
26669     break
26670   elif $ac_last_try; then
26671     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26672   else
26673     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26674   fi
26675 done
26676
26677 # For the awk script, D is an array of macro values keyed by name,
26678 # likewise P contains macro parameters if any.  Preserve backslash
26679 # newline sequences.
26680
26681 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26682 sed -n '
26683 s/.\{148\}/&'"$ac_delim"'/g
26684 t rset
26685 :rset
26686 s/^[     ]*#[    ]*define[       ][      ]*/ /
26687 t def
26688 d
26689 :def
26690 s/\\$//
26691 t bsnl
26692 s/["\\]/\\&/g
26693 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26694 D["\1"]=" \3"/p
26695 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26696 d
26697 :bsnl
26698 s/["\\]/\\&/g
26699 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26700 D["\1"]=" \3\\\\\\n"\\/p
26701 t cont
26702 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26703 t cont
26704 d
26705 :cont
26706 n
26707 s/.\{148\}/&'"$ac_delim"'/g
26708 t clear
26709 :clear
26710 s/\\$//
26711 t bsnlc
26712 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26713 d
26714 :bsnlc
26715 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26716 b cont
26717 ' <confdefs.h | sed '
26718 s/'"$ac_delim"'/"\\\
26719 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26720
26721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26722   for (key in D) D_is_set[key] = 1
26723   FS = "\a"
26724 }
26725 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26726   line = \$ 0
26727   split(line, arg, " ")
26728   if (arg[1] == "#") {
26729     defundef = arg[2]
26730     mac1 = arg[3]
26731   } else {
26732     defundef = substr(arg[1], 2)
26733     mac1 = arg[2]
26734   }
26735   split(mac1, mac2, "(") #)
26736   macro = mac2[1]
26737   prefix = substr(line, 1, index(line, defundef) - 1)
26738   if (D_is_set[macro]) {
26739     # Preserve the white space surrounding the "#".
26740     print prefix "define", macro P[macro] D[macro]
26741     next
26742   } else {
26743     # Replace #undef with comments.  This is necessary, for example,
26744     # in the case of _POSIX_SOURCE, which is predefined and required
26745     # on some systems where configure will not decide to define it.
26746     if (defundef == "undef") {
26747       print "/*", prefix defundef, macro, "*/"
26748       next
26749     }
26750   }
26751 }
26752 { print }
26753 _ACAWK
26754 _ACEOF
26755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26756   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26757 fi # test -n "$CONFIG_HEADERS"
26758
26759
26760 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26761 shift
26762 for ac_tag
26763 do
26764   case $ac_tag in
26765   :[FHLC]) ac_mode=$ac_tag; continue;;
26766   esac
26767   case $ac_mode$ac_tag in
26768   :[FHL]*:*);;
26769   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26770   :[FH]-) ac_tag=-:-;;
26771   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26772   esac
26773   ac_save_IFS=$IFS
26774   IFS=:
26775   set x $ac_tag
26776   IFS=$ac_save_IFS
26777   shift
26778   ac_file=$1
26779   shift
26780
26781   case $ac_mode in
26782   :L) ac_source=$1;;
26783   :[FH])
26784     ac_file_inputs=
26785     for ac_f
26786     do
26787       case $ac_f in
26788       -) ac_f="$ac_tmp/stdin";;
26789       *) # Look for the file first in the build tree, then in the source tree
26790          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26791          # because $ac_f cannot contain `:'.
26792          test -f "$ac_f" ||
26793            case $ac_f in
26794            [\\/$]*) false;;
26795            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26796            esac ||
26797            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26798       esac
26799       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26800       as_fn_append ac_file_inputs " '$ac_f'"
26801     done
26802
26803     # Let's still pretend it is `configure' which instantiates (i.e., don't
26804     # use $as_me), people would be surprised to read:
26805     #    /* config.h.  Generated by config.status.  */
26806     configure_input='Generated from '`
26807           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26808         `' by configure.'
26809     if test x"$ac_file" != x-; then
26810       configure_input="$ac_file.  $configure_input"
26811       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26812 $as_echo "$as_me: creating $ac_file" >&6;}
26813     fi
26814     # Neutralize special characters interpreted by sed in replacement strings.
26815     case $configure_input in #(
26816     *\&* | *\|* | *\\* )
26817        ac_sed_conf_input=`$as_echo "$configure_input" |
26818        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26819     *) ac_sed_conf_input=$configure_input;;
26820     esac
26821
26822     case $ac_tag in
26823     *:-:* | *:-) cat >"$ac_tmp/stdin" \
26824       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26825     esac
26826     ;;
26827   esac
26828
26829   ac_dir=`$as_dirname -- "$ac_file" ||
26830 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26831          X"$ac_file" : 'X\(//\)[^/]' \| \
26832          X"$ac_file" : 'X\(//\)$' \| \
26833          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26834 $as_echo X"$ac_file" |
26835     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26836             s//\1/
26837             q
26838           }
26839           /^X\(\/\/\)[^/].*/{
26840             s//\1/
26841             q
26842           }
26843           /^X\(\/\/\)$/{
26844             s//\1/
26845             q
26846           }
26847           /^X\(\/\).*/{
26848             s//\1/
26849             q
26850           }
26851           s/.*/./; q'`
26852   as_dir="$ac_dir"; as_fn_mkdir_p
26853   ac_builddir=.
26854
26855 case "$ac_dir" in
26856 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26857 *)
26858   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26859   # A ".." for each directory in $ac_dir_suffix.
26860   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26861   case $ac_top_builddir_sub in
26862   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26863   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26864   esac ;;
26865 esac
26866 ac_abs_top_builddir=$ac_pwd
26867 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26868 # for backward compatibility:
26869 ac_top_builddir=$ac_top_build_prefix
26870
26871 case $srcdir in
26872   .)  # We are building in place.
26873     ac_srcdir=.
26874     ac_top_srcdir=$ac_top_builddir_sub
26875     ac_abs_top_srcdir=$ac_pwd ;;
26876   [\\/]* | ?:[\\/]* )  # Absolute name.
26877     ac_srcdir=$srcdir$ac_dir_suffix;
26878     ac_top_srcdir=$srcdir
26879     ac_abs_top_srcdir=$srcdir ;;
26880   *) # Relative name.
26881     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26882     ac_top_srcdir=$ac_top_build_prefix$srcdir
26883     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26884 esac
26885 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26886
26887
26888   case $ac_mode in
26889   :F)
26890   #
26891   # CONFIG_FILE
26892   #
26893
26894   case $INSTALL in
26895   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26896   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26897   esac
26898   ac_MKDIR_P=$MKDIR_P
26899   case $MKDIR_P in
26900   [\\/$]* | ?:[\\/]* ) ;;
26901   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26902   esac
26903 _ACEOF
26904
26905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26906 # If the template does not know about datarootdir, expand it.
26907 # FIXME: This hack should be removed a few years after 2.60.
26908 ac_datarootdir_hack=; ac_datarootdir_seen=
26909 ac_sed_dataroot='
26910 /datarootdir/ {
26911   p
26912   q
26913 }
26914 /@datadir@/p
26915 /@docdir@/p
26916 /@infodir@/p
26917 /@localedir@/p
26918 /@mandir@/p'
26919 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26920 *datarootdir*) ac_datarootdir_seen=yes;;
26921 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26922   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26923 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26924 _ACEOF
26925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26926   ac_datarootdir_hack='
26927   s&@datadir@&$datadir&g
26928   s&@docdir@&$docdir&g
26929   s&@infodir@&$infodir&g
26930   s&@localedir@&$localedir&g
26931   s&@mandir@&$mandir&g
26932   s&\\\${datarootdir}&$datarootdir&g' ;;
26933 esac
26934 _ACEOF
26935
26936 # Neutralize VPATH when `$srcdir' = `.'.
26937 # Shell code in configure.ac might set extrasub.
26938 # FIXME: do we really want to maintain this feature?
26939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26940 ac_sed_extra="$ac_vpsub
26941 $extrasub
26942 _ACEOF
26943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26944 :t
26945 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26946 s|@configure_input@|$ac_sed_conf_input|;t t
26947 s&@top_builddir@&$ac_top_builddir_sub&;t t
26948 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26949 s&@srcdir@&$ac_srcdir&;t t
26950 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26951 s&@top_srcdir@&$ac_top_srcdir&;t t
26952 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26953 s&@builddir@&$ac_builddir&;t t
26954 s&@abs_builddir@&$ac_abs_builddir&;t t
26955 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26956 s&@INSTALL@&$ac_INSTALL&;t t
26957 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26958 $ac_datarootdir_hack
26959 "
26960 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26961   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26962
26963 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26964   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26965   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
26966       "$ac_tmp/out"`; test -z "$ac_out"; } &&
26967   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26968 which seems to be undefined.  Please make sure it is defined" >&5
26969 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26970 which seems to be undefined.  Please make sure it is defined" >&2;}
26971
26972   rm -f "$ac_tmp/stdin"
26973   case $ac_file in
26974   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26975   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26976   esac \
26977   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26978  ;;
26979   :H)
26980   #
26981   # CONFIG_HEADER
26982   #
26983   if test x"$ac_file" != x-; then
26984     {
26985       $as_echo "/* $configure_input  */" \
26986       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26987     } >"$ac_tmp/config.h" \
26988       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26989     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26990       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26991 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26992     else
26993       rm -f "$ac_file"
26994       mv "$ac_tmp/config.h" "$ac_file" \
26995         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26996     fi
26997   else
26998     $as_echo "/* $configure_input  */" \
26999       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27000       || as_fn_error $? "could not create -" "$LINENO" 5
27001   fi
27002 # Compute "$ac_file"'s index in $config_headers.
27003 _am_arg="$ac_file"
27004 _am_stamp_count=1
27005 for _am_header in $config_headers :; do
27006   case $_am_header in
27007     $_am_arg | $_am_arg:* )
27008       break ;;
27009     * )
27010       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27011   esac
27012 done
27013 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27014 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27015          X"$_am_arg" : 'X\(//\)[^/]' \| \
27016          X"$_am_arg" : 'X\(//\)$' \| \
27017          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27018 $as_echo X"$_am_arg" |
27019     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27020             s//\1/
27021             q
27022           }
27023           /^X\(\/\/\)[^/].*/{
27024             s//\1/
27025             q
27026           }
27027           /^X\(\/\/\)$/{
27028             s//\1/
27029             q
27030           }
27031           /^X\(\/\).*/{
27032             s//\1/
27033             q
27034           }
27035           s/.*/./; q'`/stamp-h$_am_stamp_count
27036  ;;
27037
27038   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27039 $as_echo "$as_me: executing $ac_file commands" >&6;}
27040  ;;
27041   esac
27042
27043
27044   case $ac_file$ac_mode in
27045     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27046   # Autoconf 2.62 quotes --file arguments for eval, but not when files
27047   # are listed without --file.  Let's play safe and only enable the eval
27048   # if we detect the quoting.
27049   case $CONFIG_FILES in
27050   *\'*) eval set x "$CONFIG_FILES" ;;
27051   *)   set x $CONFIG_FILES ;;
27052   esac
27053   shift
27054   for mf
27055   do
27056     # Strip MF so we end up with the name of the file.
27057     mf=`echo "$mf" | sed -e 's/:.*$//'`
27058     # Check whether this is an Automake generated Makefile or not.
27059     # We used to match only the files named `Makefile.in', but
27060     # some people rename them; so instead we look at the file content.
27061     # Grep'ing the first line is not enough: some people post-process
27062     # each Makefile.in and add a new line on top of each file to say so.
27063     # Grep'ing the whole file is not good either: AIX grep has a line
27064     # limit of 2048, but all sed's we know have understand at least 4000.
27065     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27066       dirpart=`$as_dirname -- "$mf" ||
27067 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27068          X"$mf" : 'X\(//\)[^/]' \| \
27069          X"$mf" : 'X\(//\)$' \| \
27070          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27071 $as_echo X"$mf" |
27072     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27073             s//\1/
27074             q
27075           }
27076           /^X\(\/\/\)[^/].*/{
27077             s//\1/
27078             q
27079           }
27080           /^X\(\/\/\)$/{
27081             s//\1/
27082             q
27083           }
27084           /^X\(\/\).*/{
27085             s//\1/
27086             q
27087           }
27088           s/.*/./; q'`
27089     else
27090       continue
27091     fi
27092     # Extract the definition of DEPDIR, am__include, and am__quote
27093     # from the Makefile without running `make'.
27094     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27095     test -z "$DEPDIR" && continue
27096     am__include=`sed -n 's/^am__include = //p' < "$mf"`
27097     test -z "am__include" && continue
27098     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27099     # When using ansi2knr, U may be empty or an underscore; expand it
27100     U=`sed -n 's/^U = //p' < "$mf"`
27101     # Find all dependency output files, they are included files with
27102     # $(DEPDIR) in their names.  We invoke sed twice because it is the
27103     # simplest approach to changing $(DEPDIR) to its actual value in the
27104     # expansion.
27105     for file in `sed -n "
27106       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27107          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27108       # Make sure the directory exists.
27109       test -f "$dirpart/$file" && continue
27110       fdir=`$as_dirname -- "$file" ||
27111 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27112          X"$file" : 'X\(//\)[^/]' \| \
27113          X"$file" : 'X\(//\)$' \| \
27114          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27115 $as_echo X"$file" |
27116     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27117             s//\1/
27118             q
27119           }
27120           /^X\(\/\/\)[^/].*/{
27121             s//\1/
27122             q
27123           }
27124           /^X\(\/\/\)$/{
27125             s//\1/
27126             q
27127           }
27128           /^X\(\/\).*/{
27129             s//\1/
27130             q
27131           }
27132           s/.*/./; q'`
27133       as_dir=$dirpart/$fdir; as_fn_mkdir_p
27134       # echo "creating $dirpart/$file"
27135       echo '# dummy' > "$dirpart/$file"
27136     done
27137   done
27138 }
27139  ;;
27140     "libtool":C)
27141
27142     # See if we are running on zsh, and set the options which allow our
27143     # commands through without removal of \ escapes.
27144     if test -n "${ZSH_VERSION+set}" ; then
27145       setopt NO_GLOB_SUBST
27146     fi
27147
27148     cfgfile="${ofile}T"
27149     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27150     $RM "$cfgfile"
27151
27152     cat <<_LT_EOF >> "$cfgfile"
27153 #! $SHELL
27154
27155 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27156 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27157 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27158 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27159 #
27160 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27161 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
27162 #                 Foundation, Inc.
27163 #   Written by Gordon Matzigkeit, 1996
27164 #
27165 #   This file is part of GNU Libtool.
27166 #
27167 # GNU Libtool is free software; you can redistribute it and/or
27168 # modify it under the terms of the GNU General Public License as
27169 # published by the Free Software Foundation; either version 2 of
27170 # the License, or (at your option) any later version.
27171 #
27172 # As a special exception to the GNU General Public License,
27173 # if you distribute this file as part of a program or library that
27174 # is built using GNU Libtool, you may include this file under the
27175 # same distribution terms that you use for the rest of that program.
27176 #
27177 # GNU Libtool is distributed in the hope that it will be useful,
27178 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27179 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27180 # GNU General Public License for more details.
27181 #
27182 # You should have received a copy of the GNU General Public License
27183 # along with GNU Libtool; see the file COPYING.  If not, a copy
27184 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27185 # obtained by writing to the Free Software Foundation, Inc.,
27186 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27187
27188
27189 # The names of the tagged configurations supported by this script.
27190 available_tags="CXX "
27191
27192 # ### BEGIN LIBTOOL CONFIG
27193
27194 # Which release of libtool.m4 was used?
27195 macro_version=$macro_version
27196 macro_revision=$macro_revision
27197
27198 # Whether or not to build shared libraries.
27199 build_libtool_libs=$enable_shared
27200
27201 # Whether or not to build static libraries.
27202 build_old_libs=$enable_static
27203
27204 # What type of objects to build.
27205 pic_mode=$pic_mode
27206
27207 # Whether or not to optimize for fast installation.
27208 fast_install=$enable_fast_install
27209
27210 # Shell to use when invoking shell scripts.
27211 SHELL=$lt_SHELL
27212
27213 # An echo program that protects backslashes.
27214 ECHO=$lt_ECHO
27215
27216 # The PATH separator for the build system.
27217 PATH_SEPARATOR=$lt_PATH_SEPARATOR
27218
27219 # The host system.
27220 host_alias=$host_alias
27221 host=$host
27222 host_os=$host_os
27223
27224 # The build system.
27225 build_alias=$build_alias
27226 build=$build
27227 build_os=$build_os
27228
27229 # A sed program that does not truncate output.
27230 SED=$lt_SED
27231
27232 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27233 Xsed="\$SED -e 1s/^X//"
27234
27235 # A grep program that handles long lines.
27236 GREP=$lt_GREP
27237
27238 # An ERE matcher.
27239 EGREP=$lt_EGREP
27240
27241 # A literal string matcher.
27242 FGREP=$lt_FGREP
27243
27244 # A BSD- or MS-compatible name lister.
27245 NM=$lt_NM
27246
27247 # Whether we need soft or hard links.
27248 LN_S=$lt_LN_S
27249
27250 # What is the maximum length of a command?
27251 max_cmd_len=$max_cmd_len
27252
27253 # Object file suffix (normally "o").
27254 objext=$ac_objext
27255
27256 # Executable file suffix (normally "").
27257 exeext=$exeext
27258
27259 # whether the shell understands "unset".
27260 lt_unset=$lt_unset
27261
27262 # turn spaces into newlines.
27263 SP2NL=$lt_lt_SP2NL
27264
27265 # turn newlines into spaces.
27266 NL2SP=$lt_lt_NL2SP
27267
27268 # convert \$build file names to \$host format.
27269 to_host_file_cmd=$lt_cv_to_host_file_cmd
27270
27271 # convert \$build files to toolchain format.
27272 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27273
27274 # An object symbol dumper.
27275 OBJDUMP=$lt_OBJDUMP
27276
27277 # Method to check whether dependent libraries are shared objects.
27278 deplibs_check_method=$lt_deplibs_check_method
27279
27280 # Command to use when deplibs_check_method = "file_magic".
27281 file_magic_cmd=$lt_file_magic_cmd
27282
27283 # How to find potential files when deplibs_check_method = "file_magic".
27284 file_magic_glob=$lt_file_magic_glob
27285
27286 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27287 want_nocaseglob=$lt_want_nocaseglob
27288
27289 # DLL creation program.
27290 DLLTOOL=$lt_DLLTOOL
27291
27292 # Command to associate shared and link libraries.
27293 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27294
27295 # The archiver.
27296 AR=$lt_AR
27297
27298 # Flags to create an archive.
27299 AR_FLAGS=$lt_AR_FLAGS
27300
27301 # How to feed a file listing to the archiver.
27302 archiver_list_spec=$lt_archiver_list_spec
27303
27304 # A symbol stripping program.
27305 STRIP=$lt_STRIP
27306
27307 # Commands used to install an old-style archive.
27308 RANLIB=$lt_RANLIB
27309 old_postinstall_cmds=$lt_old_postinstall_cmds
27310 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27311
27312 # Whether to use a lock for old archive extraction.
27313 lock_old_archive_extraction=$lock_old_archive_extraction
27314
27315 # A C compiler.
27316 LTCC=$lt_CC
27317
27318 # LTCC compiler flags.
27319 LTCFLAGS=$lt_CFLAGS
27320
27321 # Take the output of nm and produce a listing of raw symbols and C names.
27322 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27323
27324 # Transform the output of nm in a proper C declaration.
27325 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27326
27327 # Transform the output of nm in a C name address pair.
27328 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27329
27330 # Transform the output of nm in a C name address pair when lib prefix is needed.
27331 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27332
27333 # Specify filename containing input files for \$NM.
27334 nm_file_list_spec=$lt_nm_file_list_spec
27335
27336 # The root where to search for dependent libraries,and in which our libraries should be installed.
27337 lt_sysroot=$lt_sysroot
27338
27339 # The name of the directory that contains temporary libtool files.
27340 objdir=$objdir
27341
27342 # Used to examine libraries when file_magic_cmd begins with "file".
27343 MAGIC_CMD=$MAGIC_CMD
27344
27345 # Must we lock files when doing compilation?
27346 need_locks=$lt_need_locks
27347
27348 # Manifest tool.
27349 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27350
27351 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27352 DSYMUTIL=$lt_DSYMUTIL
27353
27354 # Tool to change global to local symbols on Mac OS X.
27355 NMEDIT=$lt_NMEDIT
27356
27357 # Tool to manipulate fat objects and archives on Mac OS X.
27358 LIPO=$lt_LIPO
27359
27360 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27361 OTOOL=$lt_OTOOL
27362
27363 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27364 OTOOL64=$lt_OTOOL64
27365
27366 # Old archive suffix (normally "a").
27367 libext=$libext
27368
27369 # Shared library suffix (normally ".so").
27370 shrext_cmds=$lt_shrext_cmds
27371
27372 # The commands to extract the exported symbol list from a shared archive.
27373 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27374
27375 # Variables whose values should be saved in libtool wrapper scripts and
27376 # restored at link time.
27377 variables_saved_for_relink=$lt_variables_saved_for_relink
27378
27379 # Do we need the "lib" prefix for modules?
27380 need_lib_prefix=$need_lib_prefix
27381
27382 # Do we need a version for libraries?
27383 need_version=$need_version
27384
27385 # Library versioning type.
27386 version_type=$version_type
27387
27388 # Shared library runtime path variable.
27389 runpath_var=$runpath_var
27390
27391 # Shared library path variable.
27392 shlibpath_var=$shlibpath_var
27393
27394 # Is shlibpath searched before the hard-coded library search path?
27395 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27396
27397 # Format of library name prefix.
27398 libname_spec=$lt_libname_spec
27399
27400 # List of archive names.  First name is the real one, the rest are links.
27401 # The last name is the one that the linker finds with -lNAME
27402 library_names_spec=$lt_library_names_spec
27403
27404 # The coded name of the library, if different from the real name.
27405 soname_spec=$lt_soname_spec
27406
27407 # Permission mode override for installation of shared libraries.
27408 install_override_mode=$lt_install_override_mode
27409
27410 # Command to use after installation of a shared archive.
27411 postinstall_cmds=$lt_postinstall_cmds
27412
27413 # Command to use after uninstallation of a shared archive.
27414 postuninstall_cmds=$lt_postuninstall_cmds
27415
27416 # Commands used to finish a libtool library installation in a directory.
27417 finish_cmds=$lt_finish_cmds
27418
27419 # As "finish_cmds", except a single script fragment to be evaled but
27420 # not shown.
27421 finish_eval=$lt_finish_eval
27422
27423 # Whether we should hardcode library paths into libraries.
27424 hardcode_into_libs=$hardcode_into_libs
27425
27426 # Compile-time system search path for libraries.
27427 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27428
27429 # Run-time system search path for libraries.
27430 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27431
27432 # Whether dlopen is supported.
27433 dlopen_support=$enable_dlopen
27434
27435 # Whether dlopen of programs is supported.
27436 dlopen_self=$enable_dlopen_self
27437
27438 # Whether dlopen of statically linked programs is supported.
27439 dlopen_self_static=$enable_dlopen_self_static
27440
27441 # Commands to strip libraries.
27442 old_striplib=$lt_old_striplib
27443 striplib=$lt_striplib
27444
27445
27446 # The linker used to build libraries.
27447 LD=$lt_LD
27448
27449 # How to create reloadable object files.
27450 reload_flag=$lt_reload_flag
27451 reload_cmds=$lt_reload_cmds
27452
27453 # Commands used to build an old-style archive.
27454 old_archive_cmds=$lt_old_archive_cmds
27455
27456 # A language specific compiler.
27457 CC=$lt_compiler
27458
27459 # Is the compiler the GNU compiler?
27460 with_gcc=$GCC
27461
27462 # Compiler flag to turn off builtin functions.
27463 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27464
27465 # Additional compiler flags for building library objects.
27466 pic_flag=$lt_lt_prog_compiler_pic
27467
27468 # How to pass a linker flag through the compiler.
27469 wl=$lt_lt_prog_compiler_wl
27470
27471 # Compiler flag to prevent dynamic linking.
27472 link_static_flag=$lt_lt_prog_compiler_static
27473
27474 # Does compiler simultaneously support -c and -o options?
27475 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27476
27477 # Whether or not to add -lc for building shared libraries.
27478 build_libtool_need_lc=$archive_cmds_need_lc
27479
27480 # Whether or not to disallow shared libs when runtime libs are static.
27481 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27482
27483 # Compiler flag to allow reflexive dlopens.
27484 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27485
27486 # Compiler flag to generate shared objects directly from archives.
27487 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27488
27489 # Whether the compiler copes with passing no objects directly.
27490 compiler_needs_object=$lt_compiler_needs_object
27491
27492 # Create an old-style archive from a shared archive.
27493 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27494
27495 # Create a temporary old-style archive to link instead of a shared archive.
27496 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27497
27498 # Commands used to build a shared archive.
27499 archive_cmds=$lt_archive_cmds
27500 archive_expsym_cmds=$lt_archive_expsym_cmds
27501
27502 # Commands used to build a loadable module if different from building
27503 # a shared archive.
27504 module_cmds=$lt_module_cmds
27505 module_expsym_cmds=$lt_module_expsym_cmds
27506
27507 # Whether we are building with GNU ld or not.
27508 with_gnu_ld=$lt_with_gnu_ld
27509
27510 # Flag that allows shared libraries with undefined symbols to be built.
27511 allow_undefined_flag=$lt_allow_undefined_flag
27512
27513 # Flag that enforces no undefined symbols.
27514 no_undefined_flag=$lt_no_undefined_flag
27515
27516 # Flag to hardcode \$libdir into a binary during linking.
27517 # This must work even if \$libdir does not exist
27518 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27519
27520 # Whether we need a single "-rpath" flag with a separated argument.
27521 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27522
27523 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27524 # DIR into the resulting binary.
27525 hardcode_direct=$hardcode_direct
27526
27527 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27528 # DIR into the resulting binary and the resulting library dependency is
27529 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27530 # library is relocated.
27531 hardcode_direct_absolute=$hardcode_direct_absolute
27532
27533 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27534 # into the resulting binary.
27535 hardcode_minus_L=$hardcode_minus_L
27536
27537 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27538 # into the resulting binary.
27539 hardcode_shlibpath_var=$hardcode_shlibpath_var
27540
27541 # Set to "yes" if building a shared library automatically hardcodes DIR
27542 # into the library and all subsequent libraries and executables linked
27543 # against it.
27544 hardcode_automatic=$hardcode_automatic
27545
27546 # Set to yes if linker adds runtime paths of dependent libraries
27547 # to runtime path list.
27548 inherit_rpath=$inherit_rpath
27549
27550 # Whether libtool must link a program against all its dependency libraries.
27551 link_all_deplibs=$link_all_deplibs
27552
27553 # Set to "yes" if exported symbols are required.
27554 always_export_symbols=$always_export_symbols
27555
27556 # The commands to list exported symbols.
27557 export_symbols_cmds=$lt_export_symbols_cmds
27558
27559 # Symbols that should not be listed in the preloaded symbols.
27560 exclude_expsyms=$lt_exclude_expsyms
27561
27562 # Symbols that must always be exported.
27563 include_expsyms=$lt_include_expsyms
27564
27565 # Commands necessary for linking programs (against libraries) with templates.
27566 prelink_cmds=$lt_prelink_cmds
27567
27568 # Commands necessary for finishing linking programs.
27569 postlink_cmds=$lt_postlink_cmds
27570
27571 # Specify filename containing input files.
27572 file_list_spec=$lt_file_list_spec
27573
27574 # How to hardcode a shared library path into an executable.
27575 hardcode_action=$hardcode_action
27576
27577 # The directories searched by this compiler when creating a shared library.
27578 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27579
27580 # Dependencies to place before and after the objects being linked to
27581 # create a shared library.
27582 predep_objects=$lt_predep_objects
27583 postdep_objects=$lt_postdep_objects
27584 predeps=$lt_predeps
27585 postdeps=$lt_postdeps
27586
27587 # The library search path used internally by the compiler when linking
27588 # a shared library.
27589 compiler_lib_search_path=$lt_compiler_lib_search_path
27590
27591 # ### END LIBTOOL CONFIG
27592
27593 _LT_EOF
27594
27595   case $host_os in
27596   aix3*)
27597     cat <<\_LT_EOF >> "$cfgfile"
27598 # AIX sometimes has problems with the GCC collect2 program.  For some
27599 # reason, if we set the COLLECT_NAMES environment variable, the problems
27600 # vanish in a puff of smoke.
27601 if test "X${COLLECT_NAMES+set}" != Xset; then
27602   COLLECT_NAMES=
27603   export COLLECT_NAMES
27604 fi
27605 _LT_EOF
27606     ;;
27607   esac
27608
27609
27610 ltmain="$ac_aux_dir/ltmain.sh"
27611
27612
27613   # We use sed instead of cat because bash on DJGPP gets confused if
27614   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27615   # text mode, it properly converts lines to CR/LF.  This bash problem
27616   # is reportedly fixed, but why not run on old versions too?
27617   sed '$q' "$ltmain" >> "$cfgfile" \
27618      || (rm -f "$cfgfile"; exit 1)
27619
27620   if test x"$xsi_shell" = xyes; then
27621   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27622 func_dirname ()\
27623 {\
27624 \    case ${1} in\
27625 \      */*) func_dirname_result="${1%/*}${2}" ;;\
27626 \      *  ) func_dirname_result="${3}" ;;\
27627 \    esac\
27628 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27629   && mv -f "$cfgfile.tmp" "$cfgfile" \
27630     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27631 test 0 -eq $? || _lt_function_replace_fail=:
27632
27633
27634   sed -e '/^func_basename ()$/,/^} # func_basename /c\
27635 func_basename ()\
27636 {\
27637 \    func_basename_result="${1##*/}"\
27638 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27639   && mv -f "$cfgfile.tmp" "$cfgfile" \
27640     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27641 test 0 -eq $? || _lt_function_replace_fail=:
27642
27643
27644   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27645 func_dirname_and_basename ()\
27646 {\
27647 \    case ${1} in\
27648 \      */*) func_dirname_result="${1%/*}${2}" ;;\
27649 \      *  ) func_dirname_result="${3}" ;;\
27650 \    esac\
27651 \    func_basename_result="${1##*/}"\
27652 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27653   && mv -f "$cfgfile.tmp" "$cfgfile" \
27654     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27655 test 0 -eq $? || _lt_function_replace_fail=:
27656
27657
27658   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27659 func_stripname ()\
27660 {\
27661 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27662 \    # positional parameters, so assign one to ordinary parameter first.\
27663 \    func_stripname_result=${3}\
27664 \    func_stripname_result=${func_stripname_result#"${1}"}\
27665 \    func_stripname_result=${func_stripname_result%"${2}"}\
27666 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27667   && mv -f "$cfgfile.tmp" "$cfgfile" \
27668     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27669 test 0 -eq $? || _lt_function_replace_fail=:
27670
27671
27672   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27673 func_split_long_opt ()\
27674 {\
27675 \    func_split_long_opt_name=${1%%=*}\
27676 \    func_split_long_opt_arg=${1#*=}\
27677 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27678   && mv -f "$cfgfile.tmp" "$cfgfile" \
27679     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27680 test 0 -eq $? || _lt_function_replace_fail=:
27681
27682
27683   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27684 func_split_short_opt ()\
27685 {\
27686 \    func_split_short_opt_arg=${1#??}\
27687 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27688 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27689   && mv -f "$cfgfile.tmp" "$cfgfile" \
27690     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27691 test 0 -eq $? || _lt_function_replace_fail=:
27692
27693
27694   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27695 func_lo2o ()\
27696 {\
27697 \    case ${1} in\
27698 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27699 \      *)    func_lo2o_result=${1} ;;\
27700 \    esac\
27701 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27702   && mv -f "$cfgfile.tmp" "$cfgfile" \
27703     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27704 test 0 -eq $? || _lt_function_replace_fail=:
27705
27706
27707   sed -e '/^func_xform ()$/,/^} # func_xform /c\
27708 func_xform ()\
27709 {\
27710     func_xform_result=${1%.*}.lo\
27711 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27712   && mv -f "$cfgfile.tmp" "$cfgfile" \
27713     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27714 test 0 -eq $? || _lt_function_replace_fail=:
27715
27716
27717   sed -e '/^func_arith ()$/,/^} # func_arith /c\
27718 func_arith ()\
27719 {\
27720     func_arith_result=$(( $* ))\
27721 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27722   && mv -f "$cfgfile.tmp" "$cfgfile" \
27723     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27724 test 0 -eq $? || _lt_function_replace_fail=:
27725
27726
27727   sed -e '/^func_len ()$/,/^} # func_len /c\
27728 func_len ()\
27729 {\
27730     func_len_result=${#1}\
27731 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27732   && mv -f "$cfgfile.tmp" "$cfgfile" \
27733     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27734 test 0 -eq $? || _lt_function_replace_fail=:
27735
27736 fi
27737
27738 if test x"$lt_shell_append" = xyes; then
27739   sed -e '/^func_append ()$/,/^} # func_append /c\
27740 func_append ()\
27741 {\
27742     eval "${1}+=\\${2}"\
27743 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27744   && mv -f "$cfgfile.tmp" "$cfgfile" \
27745     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27746 test 0 -eq $? || _lt_function_replace_fail=:
27747
27748
27749   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27750 func_append_quoted ()\
27751 {\
27752 \    func_quote_for_eval "${2}"\
27753 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27754 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27755   && mv -f "$cfgfile.tmp" "$cfgfile" \
27756     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27757 test 0 -eq $? || _lt_function_replace_fail=:
27758
27759
27760   # Save a `func_append' function call where possible by direct use of '+='
27761   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27762     && mv -f "$cfgfile.tmp" "$cfgfile" \
27763       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27764   test 0 -eq $? || _lt_function_replace_fail=:
27765 else
27766   # Save a `func_append' function call even when '+=' is not available
27767   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27768     && mv -f "$cfgfile.tmp" "$cfgfile" \
27769       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27770   test 0 -eq $? || _lt_function_replace_fail=:
27771 fi
27772
27773 if test x"$_lt_function_replace_fail" = x":"; then
27774   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27775 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27776 fi
27777
27778
27779    mv -f "$cfgfile" "$ofile" ||
27780     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27781   chmod +x "$ofile"
27782
27783
27784     cat <<_LT_EOF >> "$ofile"
27785
27786 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27787
27788 # The linker used to build libraries.
27789 LD=$lt_LD_CXX
27790
27791 # How to create reloadable object files.
27792 reload_flag=$lt_reload_flag_CXX
27793 reload_cmds=$lt_reload_cmds_CXX
27794
27795 # Commands used to build an old-style archive.
27796 old_archive_cmds=$lt_old_archive_cmds_CXX
27797
27798 # A language specific compiler.
27799 CC=$lt_compiler_CXX
27800
27801 # Is the compiler the GNU compiler?
27802 with_gcc=$GCC_CXX
27803
27804 # Compiler flag to turn off builtin functions.
27805 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27806
27807 # Additional compiler flags for building library objects.
27808 pic_flag=$lt_lt_prog_compiler_pic_CXX
27809
27810 # How to pass a linker flag through the compiler.
27811 wl=$lt_lt_prog_compiler_wl_CXX
27812
27813 # Compiler flag to prevent dynamic linking.
27814 link_static_flag=$lt_lt_prog_compiler_static_CXX
27815
27816 # Does compiler simultaneously support -c and -o options?
27817 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27818
27819 # Whether or not to add -lc for building shared libraries.
27820 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27821
27822 # Whether or not to disallow shared libs when runtime libs are static.
27823 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27824
27825 # Compiler flag to allow reflexive dlopens.
27826 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27827
27828 # Compiler flag to generate shared objects directly from archives.
27829 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27830
27831 # Whether the compiler copes with passing no objects directly.
27832 compiler_needs_object=$lt_compiler_needs_object_CXX
27833
27834 # Create an old-style archive from a shared archive.
27835 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27836
27837 # Create a temporary old-style archive to link instead of a shared archive.
27838 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27839
27840 # Commands used to build a shared archive.
27841 archive_cmds=$lt_archive_cmds_CXX
27842 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27843
27844 # Commands used to build a loadable module if different from building
27845 # a shared archive.
27846 module_cmds=$lt_module_cmds_CXX
27847 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27848
27849 # Whether we are building with GNU ld or not.
27850 with_gnu_ld=$lt_with_gnu_ld_CXX
27851
27852 # Flag that allows shared libraries with undefined symbols to be built.
27853 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27854
27855 # Flag that enforces no undefined symbols.
27856 no_undefined_flag=$lt_no_undefined_flag_CXX
27857
27858 # Flag to hardcode \$libdir into a binary during linking.
27859 # This must work even if \$libdir does not exist
27860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27861
27862 # Whether we need a single "-rpath" flag with a separated argument.
27863 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27864
27865 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27866 # DIR into the resulting binary.
27867 hardcode_direct=$hardcode_direct_CXX
27868
27869 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27870 # DIR into the resulting binary and the resulting library dependency is
27871 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27872 # library is relocated.
27873 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27874
27875 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27876 # into the resulting binary.
27877 hardcode_minus_L=$hardcode_minus_L_CXX
27878
27879 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27880 # into the resulting binary.
27881 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27882
27883 # Set to "yes" if building a shared library automatically hardcodes DIR
27884 # into the library and all subsequent libraries and executables linked
27885 # against it.
27886 hardcode_automatic=$hardcode_automatic_CXX
27887
27888 # Set to yes if linker adds runtime paths of dependent libraries
27889 # to runtime path list.
27890 inherit_rpath=$inherit_rpath_CXX
27891
27892 # Whether libtool must link a program against all its dependency libraries.
27893 link_all_deplibs=$link_all_deplibs_CXX
27894
27895 # Set to "yes" if exported symbols are required.
27896 always_export_symbols=$always_export_symbols_CXX
27897
27898 # The commands to list exported symbols.
27899 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27900
27901 # Symbols that should not be listed in the preloaded symbols.
27902 exclude_expsyms=$lt_exclude_expsyms_CXX
27903
27904 # Symbols that must always be exported.
27905 include_expsyms=$lt_include_expsyms_CXX
27906
27907 # Commands necessary for linking programs (against libraries) with templates.
27908 prelink_cmds=$lt_prelink_cmds_CXX
27909
27910 # Commands necessary for finishing linking programs.
27911 postlink_cmds=$lt_postlink_cmds_CXX
27912
27913 # Specify filename containing input files.
27914 file_list_spec=$lt_file_list_spec_CXX
27915
27916 # How to hardcode a shared library path into an executable.
27917 hardcode_action=$hardcode_action_CXX
27918
27919 # The directories searched by this compiler when creating a shared library.
27920 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27921
27922 # Dependencies to place before and after the objects being linked to
27923 # create a shared library.
27924 predep_objects=$lt_predep_objects_CXX
27925 postdep_objects=$lt_postdep_objects_CXX
27926 predeps=$lt_predeps_CXX
27927 postdeps=$lt_postdeps_CXX
27928
27929 # The library search path used internally by the compiler when linking
27930 # a shared library.
27931 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27932
27933 # ### END LIBTOOL TAG CONFIG: CXX
27934 _LT_EOF
27935
27936  ;;
27937     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
27938         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
27939       esac ;;
27940     "po/stamp-it":C)
27941     if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
27942        as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
27943     fi
27944     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
27945     >"po/stamp-it.tmp"
27946     sed '/^#/d
27947          s/^[[].*] *//
27948          /^[    ]*$/d
27949         '"s|^|  $ac_top_srcdir/|" \
27950       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
27951
27952     sed '/^POTFILES =/,/[^\\]$/ {
27953                 /^POTFILES =/!d
27954                 r po/POTFILES
27955           }
27956          ' "po/Makefile.in" >"po/Makefile"
27957     rm -f "po/Makefile.tmp"
27958     mv "po/stamp-it.tmp" "po/stamp-it"
27959    ;;
27960
27961   esac
27962 done # for ac_tag
27963
27964
27965 as_fn_exit 0
27966 _ACEOF
27967 ac_clean_files=$ac_clean_files_save
27968
27969 test $ac_write_fail = 0 ||
27970   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27971
27972
27973 # configure is writing to config.log, and then calls config.status.
27974 # config.status does its own redirection, appending to config.log.
27975 # Unfortunately, on DOS this fails, as config.log is still kept open
27976 # by configure, so config.status won't be able to write to it; its
27977 # output is simply discarded.  So we exec the FD to /dev/null,
27978 # effectively closing config.log, so it can be properly (re)opened and
27979 # appended to by config.status.  When coming back to configure, we
27980 # need to make the FD available again.
27981 if test "$no_create" != yes; then
27982   ac_cs_success=:
27983   ac_config_status_args=
27984   test "$silent" = yes &&
27985     ac_config_status_args="$ac_config_status_args --quiet"
27986   exec 5>/dev/null
27987   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27988   exec 5>>config.log
27989   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27990   # would make configure fail if this is the last instruction.
27991   $ac_cs_success || as_fn_exit 1
27992 fi
27993 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27994   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27995 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27996 fi
27997
27998
27999 echo
28000 echo CONFIGURATION SUMMARY
28001 echo "Core SyncEvolution: $enable_core"
28002 for backend in $BACKENDS; do
28003     eval echo $backend: \${enable_${backend}}
28004 done
28005 echo "DBus service: $enable_dbus_service"
28006 echo "org._01.pim support in DBus service: $enable_dbus_pim"
28007 echo "Notifications: $enable_notify"
28008 echo "GIO GDBus: $with_gio_gdbus"
28009 echo "GNOME keyring: $enable_gnome_keyring"
28010 if test "$enable_gui" = "no"; then
28011     echo "UI (DBus client): no"
28012 else
28013     echo "UI (DBus client): $enable_gui (using $gtk_version)"
28014 fi
28015 echo "Bluetooth transport: $have_bluetooth"
28016 echo "GNOME Bluetooth panel plugin: $enable_gnome_bluetooth_panel"
28017 echo "SHA-256: $have_sha"
28018 echo "API documentation: $enable_doc"
28019 echo "D-Bus Timeout Hack: $enable_dbus_timeout_hack"
28020 echo