resetting manifest requested domain to floor
[platform/upstream/obexd.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for obexd 0.48.
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 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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='obexd'
589 PACKAGE_TARNAME='obexd'
590 PACKAGE_VERSION='0.48'
591 PACKAGE_STRING='obexd 0.48'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_default_prefix=/usr/local
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 READLINE_FALSE
637 READLINE_TRUE
638 CLIENT_FALSE
639 CLIENT_TRUE
640 SERVER_FALSE
641 SERVER_TRUE
642 NOKIA_PCSUITE_FALSE
643 NOKIA_PCSUITE_TRUE
644 USB_FALSE
645 USB_TRUE
646 PHONEBOOK_DRIVER
647 TRACKER_LIBS
648 TRACKER_CFLAGS
649 TRACKER_10_LIBS
650 TRACKER_10_CFLAGS
651 TRACKER_09_LIBS
652 TRACKER_09_CFLAGS
653 GTHREAD_LIBS
654 GTHREAD_CFLAGS
655 EBOOK_LIBS
656 EBOOK_CFLAGS
657 LIBICAL_LIBS
658 LIBICAL_CFLAGS
659 MESSAGES_DRIVER
660 BLUEZ_LIBS
661 BLUEZ_CFLAGS
662 DBUS_LIBS
663 DBUS_CFLAGS
664 GLIB_LIBS
665 GLIB_CFLAGS
666 PKG_CONFIG_LIBDIR
667 PKG_CONFIG_PATH
668 PKG_CONFIG
669 OTOOL64
670 OTOOL
671 LIPO
672 NMEDIT
673 DSYMUTIL
674 MANIFEST_TOOL
675 RANLIB
676 ac_ct_AR
677 AR
678 DLLTOOL
679 OBJDUMP
680 LN_S
681 NM
682 ac_ct_DUMPBIN
683 DUMPBIN
684 LD
685 FGREP
686 host_os
687 host_vendor
688 host_cpu
689 host
690 build_os
691 build_vendor
692 build_cpu
693 build
694 LIBTOOL
695 READLINE_LIBS
696 EGREP
697 GREP
698 CPP
699 SED
700 am__fastdepCC_FALSE
701 am__fastdepCC_TRUE
702 CCDEPMODE
703 am__nodep
704 AMDEPBACKSLASH
705 AMDEP_FALSE
706 AMDEP_TRUE
707 am__quote
708 am__include
709 DEPDIR
710 OBJEXT
711 EXEEXT
712 ac_ct_CC
713 CPPFLAGS
714 LDFLAGS
715 CFLAGS
716 CC
717 MAINT
718 MAINTAINER_MODE_FALSE
719 MAINTAINER_MODE_TRUE
720 AM_BACKSLASH
721 AM_DEFAULT_VERBOSITY
722 AM_DEFAULT_V
723 AM_V
724 am__untar
725 am__tar
726 AMTAR
727 am__leading_dot
728 SET_MAKE
729 AWK
730 mkdir_p
731 MKDIR_P
732 INSTALL_STRIP_PROGRAM
733 STRIP
734 install_sh
735 MAKEINFO
736 AUTOHEADER
737 AUTOMAKE
738 AUTOCONF
739 ACLOCAL
740 VERSION
741 PACKAGE
742 CYGPATH_W
743 am__isrc
744 INSTALL_DATA
745 INSTALL_SCRIPT
746 INSTALL_PROGRAM
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 localstatedir
767 sharedstatedir
768 sysconfdir
769 datadir
770 datarootdir
771 libexecdir
772 sbindir
773 bindir
774 program_transform_name
775 prefix
776 exec_prefix
777 PACKAGE_URL
778 PACKAGE_BUGREPORT
779 PACKAGE_STRING
780 PACKAGE_VERSION
781 PACKAGE_TARNAME
782 PACKAGE_NAME
783 PATH_SEPARATOR
784 SHELL'
785 ac_subst_files=''
786 ac_user_opts='
787 enable_option_checking
788 enable_silent_rules
789 enable_maintainer_mode
790 enable_dependency_tracking
791 enable_static
792 enable_shared
793 with_pic
794 enable_fast_install
795 with_gnu_ld
796 with_sysroot
797 enable_libtool_lock
798 enable_optimization
799 enable_debug
800 with_messages
801 with_phonebook
802 enable_usb
803 enable_pcsuite
804 enable_server
805 enable_client
806 '
807       ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 CC
811 CFLAGS
812 LDFLAGS
813 LIBS
814 CPPFLAGS
815 CPP
816 PKG_CONFIG
817 PKG_CONFIG_PATH
818 PKG_CONFIG_LIBDIR
819 GLIB_CFLAGS
820 GLIB_LIBS
821 DBUS_CFLAGS
822 DBUS_LIBS
823 BLUEZ_CFLAGS
824 BLUEZ_LIBS
825 LIBICAL_CFLAGS
826 LIBICAL_LIBS
827 EBOOK_CFLAGS
828 EBOOK_LIBS
829 GTHREAD_CFLAGS
830 GTHREAD_LIBS
831 TRACKER_09_CFLAGS
832 TRACKER_09_LIBS
833 TRACKER_10_CFLAGS
834 TRACKER_10_LIBS'
835
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889   # If the previous option needs an argument, assign it.
890   if test -n "$ac_prev"; then
891     eval $ac_prev=\$ac_option
892     ac_prev=
893     continue
894   fi
895
896   case $ac_option in
897   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898   *=)   ac_optarg= ;;
899   *)    ac_optarg=yes ;;
900   esac
901
902   # Accept the important Cygnus configure options, so we can diagnose typos.
903
904   case $ac_dashdash$ac_option in
905   --)
906     ac_dashdash=yes ;;
907
908   -bindir | --bindir | --bindi | --bind | --bin | --bi)
909     ac_prev=bindir ;;
910   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911     bindir=$ac_optarg ;;
912
913   -build | --build | --buil | --bui | --bu)
914     ac_prev=build_alias ;;
915   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916     build_alias=$ac_optarg ;;
917
918   -cache-file | --cache-file | --cache-fil | --cache-fi \
919   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920     ac_prev=cache_file ;;
921   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923     cache_file=$ac_optarg ;;
924
925   --config-cache | -C)
926     cache_file=config.cache ;;
927
928   -datadir | --datadir | --datadi | --datad)
929     ac_prev=datadir ;;
930   -datadir=* | --datadir=* | --datadi=* | --datad=*)
931     datadir=$ac_optarg ;;
932
933   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934   | --dataroo | --dataro | --datar)
935     ac_prev=datarootdir ;;
936   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938     datarootdir=$ac_optarg ;;
939
940   -disable-* | --disable-*)
941     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942     # Reject names that are not valid shell variable names.
943     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944       as_fn_error $? "invalid feature name: $ac_useropt"
945     ac_useropt_orig=$ac_useropt
946     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947     case $ac_user_opts in
948       *"
949 "enable_$ac_useropt"
950 "*) ;;
951       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952          ac_unrecognized_sep=', ';;
953     esac
954     eval enable_$ac_useropt=no ;;
955
956   -docdir | --docdir | --docdi | --doc | --do)
957     ac_prev=docdir ;;
958   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959     docdir=$ac_optarg ;;
960
961   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962     ac_prev=dvidir ;;
963   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964     dvidir=$ac_optarg ;;
965
966   -enable-* | --enable-*)
967     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968     # Reject names that are not valid shell variable names.
969     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970       as_fn_error $? "invalid feature name: $ac_useropt"
971     ac_useropt_orig=$ac_useropt
972     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973     case $ac_user_opts in
974       *"
975 "enable_$ac_useropt"
976 "*) ;;
977       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978          ac_unrecognized_sep=', ';;
979     esac
980     eval enable_$ac_useropt=\$ac_optarg ;;
981
982   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984   | --exec | --exe | --ex)
985     ac_prev=exec_prefix ;;
986   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988   | --exec=* | --exe=* | --ex=*)
989     exec_prefix=$ac_optarg ;;
990
991   -gas | --gas | --ga | --g)
992     # Obsolete; use --with-gas.
993     with_gas=yes ;;
994
995   -help | --help | --hel | --he | -h)
996     ac_init_help=long ;;
997   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998     ac_init_help=recursive ;;
999   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000     ac_init_help=short ;;
1001
1002   -host | --host | --hos | --ho)
1003     ac_prev=host_alias ;;
1004   -host=* | --host=* | --hos=* | --ho=*)
1005     host_alias=$ac_optarg ;;
1006
1007   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008     ac_prev=htmldir ;;
1009   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010   | --ht=*)
1011     htmldir=$ac_optarg ;;
1012
1013   -includedir | --includedir | --includedi | --included | --include \
1014   | --includ | --inclu | --incl | --inc)
1015     ac_prev=includedir ;;
1016   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017   | --includ=* | --inclu=* | --incl=* | --inc=*)
1018     includedir=$ac_optarg ;;
1019
1020   -infodir | --infodir | --infodi | --infod | --info | --inf)
1021     ac_prev=infodir ;;
1022   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023     infodir=$ac_optarg ;;
1024
1025   -libdir | --libdir | --libdi | --libd)
1026     ac_prev=libdir ;;
1027   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028     libdir=$ac_optarg ;;
1029
1030   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031   | --libexe | --libex | --libe)
1032     ac_prev=libexecdir ;;
1033   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034   | --libexe=* | --libex=* | --libe=*)
1035     libexecdir=$ac_optarg ;;
1036
1037   -localedir | --localedir | --localedi | --localed | --locale)
1038     ac_prev=localedir ;;
1039   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040     localedir=$ac_optarg ;;
1041
1042   -localstatedir | --localstatedir | --localstatedi | --localstated \
1043   | --localstate | --localstat | --localsta | --localst | --locals)
1044     ac_prev=localstatedir ;;
1045   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047     localstatedir=$ac_optarg ;;
1048
1049   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050     ac_prev=mandir ;;
1051   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052     mandir=$ac_optarg ;;
1053
1054   -nfp | --nfp | --nf)
1055     # Obsolete; use --without-fp.
1056     with_fp=no ;;
1057
1058   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059   | --no-cr | --no-c | -n)
1060     no_create=yes ;;
1061
1062   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064     no_recursion=yes ;;
1065
1066   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068   | --oldin | --oldi | --old | --ol | --o)
1069     ac_prev=oldincludedir ;;
1070   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073     oldincludedir=$ac_optarg ;;
1074
1075   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076     ac_prev=prefix ;;
1077   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078     prefix=$ac_optarg ;;
1079
1080   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081   | --program-pre | --program-pr | --program-p)
1082     ac_prev=program_prefix ;;
1083   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085     program_prefix=$ac_optarg ;;
1086
1087   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088   | --program-suf | --program-su | --program-s)
1089     ac_prev=program_suffix ;;
1090   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092     program_suffix=$ac_optarg ;;
1093
1094   -program-transform-name | --program-transform-name \
1095   | --program-transform-nam | --program-transform-na \
1096   | --program-transform-n | --program-transform- \
1097   | --program-transform | --program-transfor \
1098   | --program-transfo | --program-transf \
1099   | --program-trans | --program-tran \
1100   | --progr-tra | --program-tr | --program-t)
1101     ac_prev=program_transform_name ;;
1102   -program-transform-name=* | --program-transform-name=* \
1103   | --program-transform-nam=* | --program-transform-na=* \
1104   | --program-transform-n=* | --program-transform-=* \
1105   | --program-transform=* | --program-transfor=* \
1106   | --program-transfo=* | --program-transf=* \
1107   | --program-trans=* | --program-tran=* \
1108   | --progr-tra=* | --program-tr=* | --program-t=*)
1109     program_transform_name=$ac_optarg ;;
1110
1111   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112     ac_prev=pdfdir ;;
1113   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114     pdfdir=$ac_optarg ;;
1115
1116   -psdir | --psdir | --psdi | --psd | --ps)
1117     ac_prev=psdir ;;
1118   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119     psdir=$ac_optarg ;;
1120
1121   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122   | -silent | --silent | --silen | --sile | --sil)
1123     silent=yes ;;
1124
1125   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126     ac_prev=sbindir ;;
1127   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128   | --sbi=* | --sb=*)
1129     sbindir=$ac_optarg ;;
1130
1131   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133   | --sharedst | --shareds | --shared | --share | --shar \
1134   | --sha | --sh)
1135     ac_prev=sharedstatedir ;;
1136   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139   | --sha=* | --sh=*)
1140     sharedstatedir=$ac_optarg ;;
1141
1142   -site | --site | --sit)
1143     ac_prev=site ;;
1144   -site=* | --site=* | --sit=*)
1145     site=$ac_optarg ;;
1146
1147   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148     ac_prev=srcdir ;;
1149   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150     srcdir=$ac_optarg ;;
1151
1152   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153   | --syscon | --sysco | --sysc | --sys | --sy)
1154     ac_prev=sysconfdir ;;
1155   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157     sysconfdir=$ac_optarg ;;
1158
1159   -target | --target | --targe | --targ | --tar | --ta | --t)
1160     ac_prev=target_alias ;;
1161   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162     target_alias=$ac_optarg ;;
1163
1164   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165     verbose=yes ;;
1166
1167   -version | --version | --versio | --versi | --vers | -V)
1168     ac_init_version=: ;;
1169
1170   -with-* | --with-*)
1171     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172     # Reject names that are not valid shell variable names.
1173     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174       as_fn_error $? "invalid package name: $ac_useropt"
1175     ac_useropt_orig=$ac_useropt
1176     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177     case $ac_user_opts in
1178       *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182          ac_unrecognized_sep=', ';;
1183     esac
1184     eval with_$ac_useropt=\$ac_optarg ;;
1185
1186   -without-* | --without-*)
1187     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188     # Reject names that are not valid shell variable names.
1189     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190       as_fn_error $? "invalid package name: $ac_useropt"
1191     ac_useropt_orig=$ac_useropt
1192     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193     case $ac_user_opts in
1194       *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198          ac_unrecognized_sep=', ';;
1199     esac
1200     eval with_$ac_useropt=no ;;
1201
1202   --x)
1203     # Obsolete; use --with-x.
1204     with_x=yes ;;
1205
1206   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207   | --x-incl | --x-inc | --x-in | --x-i)
1208     ac_prev=x_includes ;;
1209   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211     x_includes=$ac_optarg ;;
1212
1213   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215     ac_prev=x_libraries ;;
1216   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218     x_libraries=$ac_optarg ;;
1219
1220   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1222     ;;
1223
1224   *=*)
1225     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226     # Reject names that are not valid shell variable names.
1227     case $ac_envvar in #(
1228       '' | [0-9]* | *[!_$as_cr_alnum]* )
1229       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230     esac
1231     eval $ac_envvar=\$ac_optarg
1232     export $ac_envvar ;;
1233
1234   *)
1235     # FIXME: should be removed in autoconf 3.0.
1236     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240     ;;
1241
1242   esac
1243 done
1244
1245 if test -n "$ac_prev"; then
1246   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247   as_fn_error $? "missing argument to $ac_option"
1248 fi
1249
1250 if test -n "$ac_unrecognized_opts"; then
1251   case $enable_option_checking in
1252     no) ;;
1253     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255   esac
1256 fi
1257
1258 # Check all directory arguments for consistency.
1259 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260                 datadir sysconfdir sharedstatedir localstatedir includedir \
1261                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262                 libdir localedir mandir
1263 do
1264   eval ac_val=\$$ac_var
1265   # Remove trailing slashes.
1266   case $ac_val in
1267     */ )
1268       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269       eval $ac_var=\$ac_val;;
1270   esac
1271   # Be sure to have absolute directory names.
1272   case $ac_val in
1273     [\\/$]* | ?:[\\/]* )  continue;;
1274     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275   esac
1276   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288   if test "x$build_alias" = x; then
1289     cross_compiling=maybe
1290   elif test "x$build_alias" != "x$host_alias"; then
1291     cross_compiling=yes
1292   fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304   as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306   as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311   ac_srcdir_defaulted=yes
1312   # Try the directory containing this script, then the parent directory.
1313   ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315          X"$as_myself" : 'X\(//\)[^/]' \| \
1316          X"$as_myself" : 'X\(//\)$' \| \
1317          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320             s//\1/
1321             q
1322           }
1323           /^X\(\/\/\)[^/].*/{
1324             s//\1/
1325             q
1326           }
1327           /^X\(\/\/\)$/{
1328             s//\1/
1329             q
1330           }
1331           /^X\(\/\).*/{
1332             s//\1/
1333             q
1334           }
1335           s/.*/./; q'`
1336   srcdir=$ac_confdir
1337   if test ! -r "$srcdir/$ac_unique_file"; then
1338     srcdir=..
1339   fi
1340 else
1341   ac_srcdir_defaulted=no
1342 fi
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 fi
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350         pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353   srcdir=.
1354 fi
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363   eval ac_env_${ac_var}_value=\$${ac_var}
1364   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1367
1368 #
1369 # Report the --help message.
1370 #
1371 if test "$ac_init_help" = "long"; then
1372   # Omit some internal or obsolete options to make the list less imposing.
1373   # This message is too long to be a string in the A/UX 3.1 sh.
1374   cat <<_ACEOF
1375 \`configure' configures obexd 0.48 to adapt to many kinds of systems.
1376
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE.  See below for descriptions of some of the useful variables.
1381
1382 Defaults for the options are specified in brackets.
1383
1384 Configuration:
1385   -h, --help              display this help and exit
1386       --help=short        display options specific to this package
1387       --help=recursive    display the short help of all the included packages
1388   -V, --version           display version information and exit
1389   -q, --quiet, --silent   do not print \`checking ...' messages
1390       --cache-file=FILE   cache test results in FILE [disabled]
1391   -C, --config-cache      alias for \`--cache-file=config.cache'
1392   -n, --no-create         do not create output files
1393       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1394
1395 Installation directories:
1396   --prefix=PREFIX         install architecture-independent files in PREFIX
1397                           [$ac_default_prefix]
1398   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1399                           [PREFIX]
1400
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1405
1406 For better control, use the options below.
1407
1408 Fine tuning of the installation directories:
1409   --bindir=DIR            user executables [EPREFIX/bin]
1410   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1411   --libexecdir=DIR        program executables [EPREFIX/libexec]
1412   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1413   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1414   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1415   --libdir=DIR            object code libraries [EPREFIX/lib]
1416   --includedir=DIR        C header files [PREFIX/include]
1417   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1418   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1419   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1420   --infodir=DIR           info documentation [DATAROOTDIR/info]
1421   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1422   --mandir=DIR            man documentation [DATAROOTDIR/man]
1423   --docdir=DIR            documentation root [DATAROOTDIR/doc/obexd]
1424   --htmldir=DIR           html documentation [DOCDIR]
1425   --dvidir=DIR            dvi documentation [DOCDIR]
1426   --pdfdir=DIR            pdf documentation [DOCDIR]
1427   --psdir=DIR             ps documentation [DOCDIR]
1428 _ACEOF
1429
1430   cat <<\_ACEOF
1431
1432 Program names:
1433   --program-prefix=PREFIX            prepend PREFIX to installed program names
1434   --program-suffix=SUFFIX            append SUFFIX to installed program names
1435   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1436
1437 System types:
1438   --build=BUILD     configure for building on BUILD [guessed]
1439   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1440 _ACEOF
1441 fi
1442
1443 if test -n "$ac_init_help"; then
1444   case $ac_init_help in
1445      short | recursive ) echo "Configuration of obexd 0.48:";;
1446    esac
1447   cat <<\_ACEOF
1448
1449 Optional Features:
1450   --disable-option-checking  ignore unrecognized --enable/--with options
1451   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453   --enable-silent-rules          less verbose build output (undo: `make V=1')
1454   --disable-silent-rules         verbose build output (undo: `make V=0')
1455   --enable-maintainer-mode  enable make rules and dependencies not useful
1456                           (and sometimes confusing) to the casual installer
1457   --disable-dependency-tracking  speeds up one-time build
1458   --enable-dependency-tracking   do not reject slow dependency extractors
1459   --enable-static[=PKGS]  build static libraries [default=no]
1460   --enable-shared[=PKGS]  build shared libraries [default=yes]
1461   --enable-fast-install[=PKGS]
1462                           optimize for fast installation [default=yes]
1463   --disable-libtool-lock  avoid locking (might break parallel builds)
1464   --disable-optimization  disable code optimization through compiler
1465   --enable-debug          enable compiling with debugging information
1466   --enable-usb            enable USB plugin
1467   --enable-pcsuite        enable Nokia PcSuite plugin
1468   --disable-server        disable compilation of OBEX server
1469   --disable-client        disable compilation of OBEX client
1470
1471 Optional Packages:
1472   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1473   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1474   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1475                           both]
1476   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1477   --with-sysroot=DIR Search for dependent libraries within DIR
1478                         (or the compiler's sysroot if not specified).
1479   --with-messages=DRIVER  select messages driver
1480   --with-phonebook=DRIVER select phonebook driver
1481
1482 Some influential environment variables:
1483   CC          C compiler command
1484   CFLAGS      C compiler flags
1485   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1486               nonstandard directory <lib dir>
1487   LIBS        libraries to pass to the linker, e.g. -l<library>
1488   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1489               you have headers in a nonstandard directory <include dir>
1490   CPP         C preprocessor
1491   PKG_CONFIG  path to pkg-config utility
1492   PKG_CONFIG_PATH
1493               directories to add to pkg-config's search path
1494   PKG_CONFIG_LIBDIR
1495               path overriding pkg-config's built-in search path
1496   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1497   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1498   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1499   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1500   BLUEZ_CFLAGS
1501               C compiler flags for BLUEZ, overriding pkg-config
1502   BLUEZ_LIBS  linker flags for BLUEZ, overriding pkg-config
1503   LIBICAL_CFLAGS
1504               C compiler flags for LIBICAL, overriding pkg-config
1505   LIBICAL_LIBS
1506               linker flags for LIBICAL, overriding pkg-config
1507   EBOOK_CFLAGS
1508               C compiler flags for EBOOK, overriding pkg-config
1509   EBOOK_LIBS  linker flags for EBOOK, overriding pkg-config
1510   GTHREAD_CFLAGS
1511               C compiler flags for GTHREAD, overriding pkg-config
1512   GTHREAD_LIBS
1513               linker flags for GTHREAD, overriding pkg-config
1514   TRACKER_09_CFLAGS
1515               C compiler flags for TRACKER_09, overriding pkg-config
1516   TRACKER_09_LIBS
1517               linker flags for TRACKER_09, overriding pkg-config
1518   TRACKER_10_CFLAGS
1519               C compiler flags for TRACKER_10, overriding pkg-config
1520   TRACKER_10_LIBS
1521               linker flags for TRACKER_10, overriding pkg-config
1522
1523 Use these variables to override the choices made by `configure' or to help
1524 it to find libraries and programs with nonstandard names/locations.
1525
1526 Report bugs to the package provider.
1527 _ACEOF
1528 ac_status=$?
1529 fi
1530
1531 if test "$ac_init_help" = "recursive"; then
1532   # If there are subdirs, report their specific --help.
1533   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534     test -d "$ac_dir" ||
1535       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1536       continue
1537     ac_builddir=.
1538
1539 case "$ac_dir" in
1540 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *)
1542   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1543   # A ".." for each directory in $ac_dir_suffix.
1544   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1545   case $ac_top_builddir_sub in
1546   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1548   esac ;;
1549 esac
1550 ac_abs_top_builddir=$ac_pwd
1551 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552 # for backward compatibility:
1553 ac_top_builddir=$ac_top_build_prefix
1554
1555 case $srcdir in
1556   .)  # We are building in place.
1557     ac_srcdir=.
1558     ac_top_srcdir=$ac_top_builddir_sub
1559     ac_abs_top_srcdir=$ac_pwd ;;
1560   [\\/]* | ?:[\\/]* )  # Absolute name.
1561     ac_srcdir=$srcdir$ac_dir_suffix;
1562     ac_top_srcdir=$srcdir
1563     ac_abs_top_srcdir=$srcdir ;;
1564   *) # Relative name.
1565     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566     ac_top_srcdir=$ac_top_build_prefix$srcdir
1567     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1568 esac
1569 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1570
1571     cd "$ac_dir" || { ac_status=$?; continue; }
1572     # Check for guested configure.
1573     if test -f "$ac_srcdir/configure.gnu"; then
1574       echo &&
1575       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576     elif test -f "$ac_srcdir/configure"; then
1577       echo &&
1578       $SHELL "$ac_srcdir/configure" --help=recursive
1579     else
1580       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581     fi || ac_status=$?
1582     cd "$ac_pwd" || { ac_status=$?; break; }
1583   done
1584 fi
1585
1586 test -n "$ac_init_help" && exit $ac_status
1587 if $ac_init_version; then
1588   cat <<\_ACEOF
1589 obexd configure 0.48
1590 generated by GNU Autoconf 2.69
1591
1592 Copyright (C) 2012 Free Software Foundation, Inc.
1593 This configure script is free software; the Free Software Foundation
1594 gives unlimited permission to copy, distribute and modify it.
1595 _ACEOF
1596   exit
1597 fi
1598
1599 ## ------------------------ ##
1600 ## Autoconf initialization. ##
1601 ## ------------------------ ##
1602
1603 # ac_fn_c_try_compile LINENO
1604 # --------------------------
1605 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1606 ac_fn_c_try_compile ()
1607 {
1608   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609   rm -f conftest.$ac_objext
1610   if { { ac_try="$ac_compile"
1611 case "(($ac_try" in
1612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613   *) ac_try_echo=$ac_try;;
1614 esac
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617   (eval "$ac_compile") 2>conftest.err
1618   ac_status=$?
1619   if test -s conftest.err; then
1620     grep -v '^ *+' conftest.err >conftest.er1
1621     cat conftest.er1 >&5
1622     mv -f conftest.er1 conftest.err
1623   fi
1624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625   test $ac_status = 0; } && {
1626          test -z "$ac_c_werror_flag" ||
1627          test ! -s conftest.err
1628        } && test -s conftest.$ac_objext; then :
1629   ac_retval=0
1630 else
1631   $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1633
1634         ac_retval=1
1635 fi
1636   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637   as_fn_set_status $ac_retval
1638
1639 } # ac_fn_c_try_compile
1640
1641 # ac_fn_c_try_cpp LINENO
1642 # ----------------------
1643 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_cpp ()
1645 {
1646   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647   if { { ac_try="$ac_cpp conftest.$ac_ext"
1648 case "(($ac_try" in
1649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650   *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1655   ac_status=$?
1656   if test -s conftest.err; then
1657     grep -v '^ *+' conftest.err >conftest.er1
1658     cat conftest.er1 >&5
1659     mv -f conftest.er1 conftest.err
1660   fi
1661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662   test $ac_status = 0; } > conftest.i && {
1663          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1664          test ! -s conftest.err
1665        }; then :
1666   ac_retval=0
1667 else
1668   $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671     ac_retval=1
1672 fi
1673   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674   as_fn_set_status $ac_retval
1675
1676 } # ac_fn_c_try_cpp
1677
1678 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1679 # -------------------------------------------------------
1680 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1681 # the include files in INCLUDES and setting the cache variable VAR
1682 # accordingly.
1683 ac_fn_c_check_header_mongrel ()
1684 {
1685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686   if eval \${$3+:} false; then :
1687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 $as_echo_n "checking for $2... " >&6; }
1689 if eval \${$3+:} false; then :
1690   $as_echo_n "(cached) " >&6
1691 fi
1692 eval ac_res=\$$3
1693                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694 $as_echo "$ac_res" >&6; }
1695 else
1696   # Is the header compilable?
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1698 $as_echo_n "checking $2 usability... " >&6; }
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h.  */
1701 $4
1702 #include <$2>
1703 _ACEOF
1704 if ac_fn_c_try_compile "$LINENO"; then :
1705   ac_header_compiler=yes
1706 else
1707   ac_header_compiler=no
1708 fi
1709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1711 $as_echo "$ac_header_compiler" >&6; }
1712
1713 # Is the header present?
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1715 $as_echo_n "checking $2 presence... " >&6; }
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h.  */
1718 #include <$2>
1719 _ACEOF
1720 if ac_fn_c_try_cpp "$LINENO"; then :
1721   ac_header_preproc=yes
1722 else
1723   ac_header_preproc=no
1724 fi
1725 rm -f conftest.err conftest.i conftest.$ac_ext
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1727 $as_echo "$ac_header_preproc" >&6; }
1728
1729 # So?  What about this header?
1730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1731   yes:no: )
1732     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1733 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1734     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1735 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1736     ;;
1737   no:yes:* )
1738     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1739 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1740     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1741 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1742     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1743 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1744     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1745 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1746     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1747 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1748     ;;
1749 esac
1750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751 $as_echo_n "checking for $2... " >&6; }
1752 if eval \${$3+:} false; then :
1753   $as_echo_n "(cached) " >&6
1754 else
1755   eval "$3=\$ac_header_compiler"
1756 fi
1757 eval ac_res=\$$3
1758                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760 fi
1761   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762
1763 } # ac_fn_c_check_header_mongrel
1764
1765 # ac_fn_c_try_run LINENO
1766 # ----------------------
1767 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1768 # that executables *can* be run.
1769 ac_fn_c_try_run ()
1770 {
1771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772   if { { ac_try="$ac_link"
1773 case "(($ac_try" in
1774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775   *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779   (eval "$ac_link") 2>&5
1780   ac_status=$?
1781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1783   { { case "(($ac_try" in
1784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785   *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789   (eval "$ac_try") 2>&5
1790   ac_status=$?
1791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792   test $ac_status = 0; }; }; then :
1793   ac_retval=0
1794 else
1795   $as_echo "$as_me: program exited with status $ac_status" >&5
1796        $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1798
1799        ac_retval=$ac_status
1800 fi
1801   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803   as_fn_set_status $ac_retval
1804
1805 } # ac_fn_c_try_run
1806
1807 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1808 # -------------------------------------------------------
1809 # Tests whether HEADER exists and can be compiled using the include files in
1810 # INCLUDES, setting the cache variable VAR accordingly.
1811 ac_fn_c_check_header_compile ()
1812 {
1813   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval \${$3+:} false; then :
1817   $as_echo_n "(cached) " >&6
1818 else
1819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h.  */
1821 $4
1822 #include <$2>
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825   eval "$3=yes"
1826 else
1827   eval "$3=no"
1828 fi
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 fi
1831 eval ac_res=\$$3
1832                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835
1836 } # ac_fn_c_check_header_compile
1837
1838 # ac_fn_c_try_link LINENO
1839 # -----------------------
1840 # Try to link conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_c_try_link ()
1842 {
1843   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844   rm -f conftest.$ac_objext conftest$ac_exeext
1845   if { { ac_try="$ac_link"
1846 case "(($ac_try" in
1847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848   *) ac_try_echo=$ac_try;;
1849 esac
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852   (eval "$ac_link") 2>conftest.err
1853   ac_status=$?
1854   if test -s conftest.err; then
1855     grep -v '^ *+' conftest.err >conftest.er1
1856     cat conftest.er1 >&5
1857     mv -f conftest.er1 conftest.err
1858   fi
1859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860   test $ac_status = 0; } && {
1861          test -z "$ac_c_werror_flag" ||
1862          test ! -s conftest.err
1863        } && test -s conftest$ac_exeext && {
1864          test "$cross_compiling" = yes ||
1865          test -x conftest$ac_exeext
1866        }; then :
1867   ac_retval=0
1868 else
1869   $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872         ac_retval=1
1873 fi
1874   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1875   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1876   # interfere with the next link command; also delete a directory that is
1877   # left behind by Apple's compiler.  We do this before executing the actions.
1878   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1879   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880   as_fn_set_status $ac_retval
1881
1882 } # ac_fn_c_try_link
1883
1884 # ac_fn_c_check_func LINENO FUNC VAR
1885 # ----------------------------------
1886 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1887 ac_fn_c_check_func ()
1888 {
1889   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if eval \${$3+:} false; then :
1893   $as_echo_n "(cached) " >&6
1894 else
1895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h.  */
1897 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1898    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1899 #define $2 innocuous_$2
1900
1901 /* System header to define __stub macros and hopefully few prototypes,
1902     which can conflict with char $2 (); below.
1903     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1904     <limits.h> exists even on freestanding compilers.  */
1905
1906 #ifdef __STDC__
1907 # include <limits.h>
1908 #else
1909 # include <assert.h>
1910 #endif
1911
1912 #undef $2
1913
1914 /* Override any GCC internal prototype to avoid an error.
1915    Use char because int might match the return type of a GCC
1916    builtin and then its argument prototype would still apply.  */
1917 #ifdef __cplusplus
1918 extern "C"
1919 #endif
1920 char $2 ();
1921 /* The GNU C library defines this for functions which it implements
1922     to always fail with ENOSYS.  Some functions are actually named
1923     something starting with __ and the normal name is an alias.  */
1924 #if defined __stub_$2 || defined __stub___$2
1925 choke me
1926 #endif
1927
1928 int
1929 main ()
1930 {
1931 return $2 ();
1932   ;
1933   return 0;
1934 }
1935 _ACEOF
1936 if ac_fn_c_try_link "$LINENO"; then :
1937   eval "$3=yes"
1938 else
1939   eval "$3=no"
1940 fi
1941 rm -f core conftest.err conftest.$ac_objext \
1942     conftest$ac_exeext conftest.$ac_ext
1943 fi
1944 eval ac_res=\$$3
1945                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948
1949 } # ac_fn_c_check_func
1950 cat >config.log <<_ACEOF
1951 This file contains any messages produced by compilers while
1952 running configure, to aid debugging if configure makes a mistake.
1953
1954 It was created by obexd $as_me 0.48, which was
1955 generated by GNU Autoconf 2.69.  Invocation command line was
1956
1957   $ $0 $@
1958
1959 _ACEOF
1960 exec 5>>config.log
1961 {
1962 cat <<_ASUNAME
1963 ## --------- ##
1964 ## Platform. ##
1965 ## --------- ##
1966
1967 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1968 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1969 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1970 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1971 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1972
1973 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1974 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1975
1976 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1977 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1978 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1979 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1980 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1981 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1982 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1983
1984 _ASUNAME
1985
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1988 do
1989   IFS=$as_save_IFS
1990   test -z "$as_dir" && as_dir=.
1991     $as_echo "PATH: $as_dir"
1992   done
1993 IFS=$as_save_IFS
1994
1995 } >&5
1996
1997 cat >&5 <<_ACEOF
1998
1999
2000 ## ----------- ##
2001 ## Core tests. ##
2002 ## ----------- ##
2003
2004 _ACEOF
2005
2006
2007 # Keep a trace of the command line.
2008 # Strip out --no-create and --no-recursion so they do not pile up.
2009 # Strip out --silent because we don't want to record it for future runs.
2010 # Also quote any args containing shell meta-characters.
2011 # Make two passes to allow for proper duplicate-argument suppression.
2012 ac_configure_args=
2013 ac_configure_args0=
2014 ac_configure_args1=
2015 ac_must_keep_next=false
2016 for ac_pass in 1 2
2017 do
2018   for ac_arg
2019   do
2020     case $ac_arg in
2021     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2022     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2023     | -silent | --silent | --silen | --sile | --sil)
2024       continue ;;
2025     *\'*)
2026       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2027     esac
2028     case $ac_pass in
2029     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2030     2)
2031       as_fn_append ac_configure_args1 " '$ac_arg'"
2032       if test $ac_must_keep_next = true; then
2033         ac_must_keep_next=false # Got value, back to normal.
2034       else
2035         case $ac_arg in
2036           *=* | --config-cache | -C | -disable-* | --disable-* \
2037           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2038           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2039           | -with-* | --with-* | -without-* | --without-* | --x)
2040             case "$ac_configure_args0 " in
2041               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2042             esac
2043             ;;
2044           -* ) ac_must_keep_next=true ;;
2045         esac
2046       fi
2047       as_fn_append ac_configure_args " '$ac_arg'"
2048       ;;
2049     esac
2050   done
2051 done
2052 { ac_configure_args0=; unset ac_configure_args0;}
2053 { ac_configure_args1=; unset ac_configure_args1;}
2054
2055 # When interrupted or exit'd, cleanup temporary files, and complete
2056 # config.log.  We remove comments because anyway the quotes in there
2057 # would cause problems or look ugly.
2058 # WARNING: Use '\'' to represent an apostrophe within the trap.
2059 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2060 trap 'exit_status=$?
2061   # Save into config.log some information that might help in debugging.
2062   {
2063     echo
2064
2065     $as_echo "## ---------------- ##
2066 ## Cache variables. ##
2067 ## ---------------- ##"
2068     echo
2069     # The following way of writing the cache mishandles newlines in values,
2070 (
2071   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2072     eval ac_val=\$$ac_var
2073     case $ac_val in #(
2074     *${as_nl}*)
2075       case $ac_var in #(
2076       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2077 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2078       esac
2079       case $ac_var in #(
2080       _ | IFS | as_nl) ;; #(
2081       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2082       *) { eval $ac_var=; unset $ac_var;} ;;
2083       esac ;;
2084     esac
2085   done
2086   (set) 2>&1 |
2087     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2088     *${as_nl}ac_space=\ *)
2089       sed -n \
2090         "s/'\''/'\''\\\\'\'''\''/g;
2091           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2092       ;; #(
2093     *)
2094       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2095       ;;
2096     esac |
2097     sort
2098 )
2099     echo
2100
2101     $as_echo "## ----------------- ##
2102 ## Output variables. ##
2103 ## ----------------- ##"
2104     echo
2105     for ac_var in $ac_subst_vars
2106     do
2107       eval ac_val=\$$ac_var
2108       case $ac_val in
2109       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2110       esac
2111       $as_echo "$ac_var='\''$ac_val'\''"
2112     done | sort
2113     echo
2114
2115     if test -n "$ac_subst_files"; then
2116       $as_echo "## ------------------- ##
2117 ## File substitutions. ##
2118 ## ------------------- ##"
2119       echo
2120       for ac_var in $ac_subst_files
2121       do
2122         eval ac_val=\$$ac_var
2123         case $ac_val in
2124         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2125         esac
2126         $as_echo "$ac_var='\''$ac_val'\''"
2127       done | sort
2128       echo
2129     fi
2130
2131     if test -s confdefs.h; then
2132       $as_echo "## ----------- ##
2133 ## confdefs.h. ##
2134 ## ----------- ##"
2135       echo
2136       cat confdefs.h
2137       echo
2138     fi
2139     test "$ac_signal" != 0 &&
2140       $as_echo "$as_me: caught signal $ac_signal"
2141     $as_echo "$as_me: exit $exit_status"
2142   } >&5
2143   rm -f core *.core core.conftest.* &&
2144     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2145     exit $exit_status
2146 ' 0
2147 for ac_signal in 1 2 13 15; do
2148   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2149 done
2150 ac_signal=0
2151
2152 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2153 rm -f -r conftest* confdefs.h
2154
2155 $as_echo "/* confdefs.h */" > confdefs.h
2156
2157 # Predefined preprocessor variables.
2158
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_NAME "$PACKAGE_NAME"
2161 _ACEOF
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2165 _ACEOF
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2169 _ACEOF
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_STRING "$PACKAGE_STRING"
2173 _ACEOF
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2177 _ACEOF
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_URL "$PACKAGE_URL"
2181 _ACEOF
2182
2183
2184 # Let the site file select an alternate cache file if it wants to.
2185 # Prefer an explicitly selected file to automatically selected ones.
2186 ac_site_file1=NONE
2187 ac_site_file2=NONE
2188 if test -n "$CONFIG_SITE"; then
2189   # We do not want a PATH search for config.site.
2190   case $CONFIG_SITE in #((
2191     -*)  ac_site_file1=./$CONFIG_SITE;;
2192     */*) ac_site_file1=$CONFIG_SITE;;
2193     *)   ac_site_file1=./$CONFIG_SITE;;
2194   esac
2195 elif test "x$prefix" != xNONE; then
2196   ac_site_file1=$prefix/share/config.site
2197   ac_site_file2=$prefix/etc/config.site
2198 else
2199   ac_site_file1=$ac_default_prefix/share/config.site
2200   ac_site_file2=$ac_default_prefix/etc/config.site
2201 fi
2202 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2203 do
2204   test "x$ac_site_file" = xNONE && continue
2205   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2206     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2207 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2208     sed 's/^/| /' "$ac_site_file" >&5
2209     . "$ac_site_file" \
2210       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2212 as_fn_error $? "failed to load site script $ac_site_file
2213 See \`config.log' for more details" "$LINENO" 5; }
2214   fi
2215 done
2216
2217 if test -r "$cache_file"; then
2218   # Some versions of bash will fail to source /dev/null (special files
2219   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2220   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2221     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2222 $as_echo "$as_me: loading cache $cache_file" >&6;}
2223     case $cache_file in
2224       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2225       *)                      . "./$cache_file";;
2226     esac
2227   fi
2228 else
2229   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2230 $as_echo "$as_me: creating cache $cache_file" >&6;}
2231   >$cache_file
2232 fi
2233
2234 # Check that the precious variables saved in the cache have kept the same
2235 # value.
2236 ac_cache_corrupted=false
2237 for ac_var in $ac_precious_vars; do
2238   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2239   eval ac_new_set=\$ac_env_${ac_var}_set
2240   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2241   eval ac_new_val=\$ac_env_${ac_var}_value
2242   case $ac_old_set,$ac_new_set in
2243     set,)
2244       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2245 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2246       ac_cache_corrupted=: ;;
2247     ,set)
2248       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2249 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2250       ac_cache_corrupted=: ;;
2251     ,);;
2252     *)
2253       if test "x$ac_old_val" != "x$ac_new_val"; then
2254         # differences in whitespace do not lead to failure.
2255         ac_old_val_w=`echo x $ac_old_val`
2256         ac_new_val_w=`echo x $ac_new_val`
2257         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2258           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2259 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2260           ac_cache_corrupted=:
2261         else
2262           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2263 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2264           eval $ac_var=\$ac_old_val
2265         fi
2266         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2267 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2268         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2269 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2270       fi;;
2271   esac
2272   # Pass precious variables to config.status.
2273   if test "$ac_new_set" = set; then
2274     case $ac_new_val in
2275     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2276     *) ac_arg=$ac_var=$ac_new_val ;;
2277     esac
2278     case " $ac_configure_args " in
2279       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2280       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2281     esac
2282   fi
2283 done
2284 if $ac_cache_corrupted; then
2285   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2287   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2288 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2289   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2290 fi
2291 ## -------------------- ##
2292 ## Main body of script. ##
2293 ## -------------------- ##
2294
2295 ac_ext=c
2296 ac_cpp='$CPP $CPPFLAGS'
2297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2300
2301
2302
2303 am__api_version='1.11'
2304
2305 ac_aux_dir=
2306 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2307   if test -f "$ac_dir/install-sh"; then
2308     ac_aux_dir=$ac_dir
2309     ac_install_sh="$ac_aux_dir/install-sh -c"
2310     break
2311   elif test -f "$ac_dir/install.sh"; then
2312     ac_aux_dir=$ac_dir
2313     ac_install_sh="$ac_aux_dir/install.sh -c"
2314     break
2315   elif test -f "$ac_dir/shtool"; then
2316     ac_aux_dir=$ac_dir
2317     ac_install_sh="$ac_aux_dir/shtool install -c"
2318     break
2319   fi
2320 done
2321 if test -z "$ac_aux_dir"; then
2322   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2323 fi
2324
2325 # These three variables are undocumented and unsupported,
2326 # and are intended to be withdrawn in a future Autoconf release.
2327 # They can cause serious problems if a builder's source tree is in a directory
2328 # whose full name contains unusual characters.
2329 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2330 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2331 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2332
2333
2334 # Find a good install program.  We prefer a C program (faster),
2335 # so one script is as good as another.  But avoid the broken or
2336 # incompatible versions:
2337 # SysV /etc/install, /usr/sbin/install
2338 # SunOS /usr/etc/install
2339 # IRIX /sbin/install
2340 # AIX /bin/install
2341 # AmigaOS /C/install, which installs bootblocks on floppy discs
2342 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2343 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2344 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2345 # OS/2's system install, which has a completely different semantic
2346 # ./install, which can be erroneously created by make from ./install.sh.
2347 # Reject install programs that cannot install multiple files.
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2349 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2350 if test -z "$INSTALL"; then
2351 if ${ac_cv_path_install+:} false; then :
2352   $as_echo_n "(cached) " >&6
2353 else
2354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357   IFS=$as_save_IFS
2358   test -z "$as_dir" && as_dir=.
2359     # Account for people who put trailing slashes in PATH elements.
2360 case $as_dir/ in #((
2361   ./ | .// | /[cC]/* | \
2362   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2363   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2364   /usr/ucb/* ) ;;
2365   *)
2366     # OSF1 and SCO ODT 3.0 have their own names for install.
2367     # Don't use installbsd from OSF since it installs stuff as root
2368     # by default.
2369     for ac_prog in ginstall scoinst install; do
2370       for ac_exec_ext in '' $ac_executable_extensions; do
2371         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2372           if test $ac_prog = install &&
2373             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2374             # AIX install.  It has an incompatible calling convention.
2375             :
2376           elif test $ac_prog = install &&
2377             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2378             # program-specific install script used by HP pwplus--don't use.
2379             :
2380           else
2381             rm -rf conftest.one conftest.two conftest.dir
2382             echo one > conftest.one
2383             echo two > conftest.two
2384             mkdir conftest.dir
2385             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2386               test -s conftest.one && test -s conftest.two &&
2387               test -s conftest.dir/conftest.one &&
2388               test -s conftest.dir/conftest.two
2389             then
2390               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2391               break 3
2392             fi
2393           fi
2394         fi
2395       done
2396     done
2397     ;;
2398 esac
2399
2400   done
2401 IFS=$as_save_IFS
2402
2403 rm -rf conftest.one conftest.two conftest.dir
2404
2405 fi
2406   if test "${ac_cv_path_install+set}" = set; then
2407     INSTALL=$ac_cv_path_install
2408   else
2409     # As a last resort, use the slow shell script.  Don't cache a
2410     # value for INSTALL within a source directory, because that will
2411     # break other packages using the cache if that directory is
2412     # removed, or if the value is a relative name.
2413     INSTALL=$ac_install_sh
2414   fi
2415 fi
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2417 $as_echo "$INSTALL" >&6; }
2418
2419 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2420 # It thinks the first close brace ends the variable substitution.
2421 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2422
2423 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2424
2425 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2426
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2428 $as_echo_n "checking whether build environment is sane... " >&6; }
2429 # Just in case
2430 sleep 1
2431 echo timestamp > conftest.file
2432 # Reject unsafe characters in $srcdir or the absolute working directory
2433 # name.  Accept space and tab only in the latter.
2434 am_lf='
2435 '
2436 case `pwd` in
2437   *[\\\"\#\$\&\'\`$am_lf]*)
2438     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2439 esac
2440 case $srcdir in
2441   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2442     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2443 esac
2444
2445 # Do `set' in a subshell so we don't clobber the current shell's
2446 # arguments.  Must try -L first in case configure is actually a
2447 # symlink; some systems play weird games with the mod time of symlinks
2448 # (eg FreeBSD returns the mod time of the symlink's containing
2449 # directory).
2450 if (
2451    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2452    if test "$*" = "X"; then
2453       # -L didn't work.
2454       set X `ls -t "$srcdir/configure" conftest.file`
2455    fi
2456    rm -f conftest.file
2457    if test "$*" != "X $srcdir/configure conftest.file" \
2458       && test "$*" != "X conftest.file $srcdir/configure"; then
2459
2460       # If neither matched, then we have a broken ls.  This can happen
2461       # if, for instance, CONFIG_SHELL is bash and it inherits a
2462       # broken ls alias from the environment.  This has actually
2463       # happened.  Such a system could not be considered "sane".
2464       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2465 alias in your environment" "$LINENO" 5
2466    fi
2467
2468    test "$2" = conftest.file
2469    )
2470 then
2471    # Ok.
2472    :
2473 else
2474    as_fn_error $? "newly created file is older than distributed files!
2475 Check your system clock" "$LINENO" 5
2476 fi
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2478 $as_echo "yes" >&6; }
2479 test "$program_prefix" != NONE &&
2480   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2481 # Use a double $ so make ignores it.
2482 test "$program_suffix" != NONE &&
2483   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2484 # Double any \ or $.
2485 # By default was `s,x,x', remove it if useless.
2486 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2487 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2488
2489 # expand $ac_aux_dir to an absolute path
2490 am_aux_dir=`cd $ac_aux_dir && pwd`
2491
2492 if test x"${MISSING+set}" != xset; then
2493   case $am_aux_dir in
2494   *\ * | *\     *)
2495     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2496   *)
2497     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2498   esac
2499 fi
2500 # Use eval to expand $SHELL
2501 if eval "$MISSING --run true"; then
2502   am_missing_run="$MISSING --run "
2503 else
2504   am_missing_run=
2505   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2506 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2507 fi
2508
2509 if test x"${install_sh}" != xset; then
2510   case $am_aux_dir in
2511   *\ * | *\     *)
2512     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2513   *)
2514     install_sh="\${SHELL} $am_aux_dir/install-sh"
2515   esac
2516 fi
2517
2518 # Installed binaries are usually stripped using `strip' when the user
2519 # run `make install-strip'.  However `strip' might not be the right
2520 # tool to use in cross-compilation environments, therefore Automake
2521 # will honor the `STRIP' environment variable to overrule this program.
2522 if test "$cross_compiling" != no; then
2523   if test -n "$ac_tool_prefix"; then
2524   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2525 set dummy ${ac_tool_prefix}strip; ac_word=$2
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2527 $as_echo_n "checking for $ac_word... " >&6; }
2528 if ${ac_cv_prog_STRIP+:} false; then :
2529   $as_echo_n "(cached) " >&6
2530 else
2531   if test -n "$STRIP"; then
2532   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2533 else
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2536 do
2537   IFS=$as_save_IFS
2538   test -z "$as_dir" && as_dir=.
2539     for ac_exec_ext in '' $ac_executable_extensions; do
2540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2541     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2543     break 2
2544   fi
2545 done
2546   done
2547 IFS=$as_save_IFS
2548
2549 fi
2550 fi
2551 STRIP=$ac_cv_prog_STRIP
2552 if test -n "$STRIP"; then
2553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2554 $as_echo "$STRIP" >&6; }
2555 else
2556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2557 $as_echo "no" >&6; }
2558 fi
2559
2560
2561 fi
2562 if test -z "$ac_cv_prog_STRIP"; then
2563   ac_ct_STRIP=$STRIP
2564   # Extract the first word of "strip", so it can be a program name with args.
2565 set dummy strip; ac_word=$2
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2569   $as_echo_n "(cached) " >&6
2570 else
2571   if test -n "$ac_ct_STRIP"; then
2572   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2576 do
2577   IFS=$as_save_IFS
2578   test -z "$as_dir" && as_dir=.
2579     for ac_exec_ext in '' $ac_executable_extensions; do
2580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2581     ac_cv_prog_ac_ct_STRIP="strip"
2582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2583     break 2
2584   fi
2585 done
2586   done
2587 IFS=$as_save_IFS
2588
2589 fi
2590 fi
2591 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2592 if test -n "$ac_ct_STRIP"; then
2593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2594 $as_echo "$ac_ct_STRIP" >&6; }
2595 else
2596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597 $as_echo "no" >&6; }
2598 fi
2599
2600   if test "x$ac_ct_STRIP" = x; then
2601     STRIP=":"
2602   else
2603     case $cross_compiling:$ac_tool_warned in
2604 yes:)
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2607 ac_tool_warned=yes ;;
2608 esac
2609     STRIP=$ac_ct_STRIP
2610   fi
2611 else
2612   STRIP="$ac_cv_prog_STRIP"
2613 fi
2614
2615 fi
2616 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2617
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2619 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2620 if test -z "$MKDIR_P"; then
2621   if ${ac_cv_path_mkdir+:} false; then :
2622   $as_echo_n "(cached) " >&6
2623 else
2624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2626 do
2627   IFS=$as_save_IFS
2628   test -z "$as_dir" && as_dir=.
2629     for ac_prog in mkdir gmkdir; do
2630          for ac_exec_ext in '' $ac_executable_extensions; do
2631            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2632            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2633              'mkdir (GNU coreutils) '* | \
2634              'mkdir (coreutils) '* | \
2635              'mkdir (fileutils) '4.1*)
2636                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2637                break 3;;
2638            esac
2639          done
2640        done
2641   done
2642 IFS=$as_save_IFS
2643
2644 fi
2645
2646   test -d ./--version && rmdir ./--version
2647   if test "${ac_cv_path_mkdir+set}" = set; then
2648     MKDIR_P="$ac_cv_path_mkdir -p"
2649   else
2650     # As a last resort, use the slow shell script.  Don't cache a
2651     # value for MKDIR_P within a source directory, because that will
2652     # break other packages using the cache if that directory is
2653     # removed, or if the value is a relative name.
2654     MKDIR_P="$ac_install_sh -d"
2655   fi
2656 fi
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2658 $as_echo "$MKDIR_P" >&6; }
2659
2660 mkdir_p="$MKDIR_P"
2661 case $mkdir_p in
2662   [\\/$]* | ?:[\\/]*) ;;
2663   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2664 esac
2665
2666 for ac_prog in gawk mawk nawk awk
2667 do
2668   # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if ${ac_cv_prog_AWK+:} false; then :
2673   $as_echo_n "(cached) " >&6
2674 else
2675   if test -n "$AWK"; then
2676   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681   IFS=$as_save_IFS
2682   test -z "$as_dir" && as_dir=.
2683     for ac_exec_ext in '' $ac_executable_extensions; do
2684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685     ac_cv_prog_AWK="$ac_prog"
2686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687     break 2
2688   fi
2689 done
2690   done
2691 IFS=$as_save_IFS
2692
2693 fi
2694 fi
2695 AWK=$ac_cv_prog_AWK
2696 if test -n "$AWK"; then
2697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2698 $as_echo "$AWK" >&6; }
2699 else
2700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2702 fi
2703
2704
2705   test -n "$AWK" && break
2706 done
2707
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2709 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2710 set x ${MAKE-make}
2711 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2712 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2713   $as_echo_n "(cached) " >&6
2714 else
2715   cat >conftest.make <<\_ACEOF
2716 SHELL = /bin/sh
2717 all:
2718         @echo '@@@%%%=$(MAKE)=@@@%%%'
2719 _ACEOF
2720 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2721 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2722   *@@@%%%=?*=@@@%%%*)
2723     eval ac_cv_prog_make_${ac_make}_set=yes;;
2724   *)
2725     eval ac_cv_prog_make_${ac_make}_set=no;;
2726 esac
2727 rm -f conftest.make
2728 fi
2729 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2731 $as_echo "yes" >&6; }
2732   SET_MAKE=
2733 else
2734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2736   SET_MAKE="MAKE=${MAKE-make}"
2737 fi
2738
2739 rm -rf .tst 2>/dev/null
2740 mkdir .tst 2>/dev/null
2741 if test -d .tst; then
2742   am__leading_dot=.
2743 else
2744   am__leading_dot=_
2745 fi
2746 rmdir .tst 2>/dev/null
2747
2748 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2749   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2750   # is not polluted with repeated "-I."
2751   am__isrc=' -I$(srcdir)'
2752   # test to see if srcdir already configured
2753   if test -f $srcdir/config.status; then
2754     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2755   fi
2756 fi
2757
2758 # test whether we have cygpath
2759 if test -z "$CYGPATH_W"; then
2760   if (cygpath --version) >/dev/null 2>/dev/null; then
2761     CYGPATH_W='cygpath -w'
2762   else
2763     CYGPATH_W=echo
2764   fi
2765 fi
2766
2767
2768 # Define the identity of the package.
2769  PACKAGE='obexd'
2770  VERSION='0.48'
2771
2772
2773 cat >>confdefs.h <<_ACEOF
2774 #define PACKAGE "$PACKAGE"
2775 _ACEOF
2776
2777
2778 cat >>confdefs.h <<_ACEOF
2779 #define VERSION "$VERSION"
2780 _ACEOF
2781
2782 # Some tools Automake needs.
2783
2784 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2785
2786
2787 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2788
2789
2790 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2791
2792
2793 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2794
2795
2796 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2797
2798 # We need awk for the "check" target.  The system "awk" is bad on
2799 # some platforms.
2800 # Always define AMTAR for backward compatibility.  Yes, it's still used
2801 # in the wild :-(  We should find a proper way to deprecate it ...
2802 AMTAR='$${TAR-tar}'
2803
2804 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2805
2806
2807
2808
2809
2810 ac_config_headers="$ac_config_headers config.h"
2811
2812
2813 # Check whether --enable-silent-rules was given.
2814 if test "${enable_silent_rules+set}" = set; then :
2815   enableval=$enable_silent_rules;
2816 fi
2817
2818 case $enable_silent_rules in
2819 yes) AM_DEFAULT_VERBOSITY=0;;
2820 no)  AM_DEFAULT_VERBOSITY=1;;
2821 *)   AM_DEFAULT_VERBOSITY=0;;
2822 esac
2823 am_make=${MAKE-make}
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2825 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2826 if ${am_cv_make_support_nested_variables+:} false; then :
2827   $as_echo_n "(cached) " >&6
2828 else
2829   if $as_echo 'TRUE=$(BAR$(V))
2830 BAR0=false
2831 BAR1=true
2832 V=1
2833 am__doit:
2834         @$(TRUE)
2835 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2836   am_cv_make_support_nested_variables=yes
2837 else
2838   am_cv_make_support_nested_variables=no
2839 fi
2840 fi
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2842 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2843 if test $am_cv_make_support_nested_variables = yes; then
2844     AM_V='$(V)'
2845   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2846 else
2847   AM_V=$AM_DEFAULT_VERBOSITY
2848   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2849 fi
2850 AM_BACKSLASH='\'
2851
2852
2853
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2855 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2856     # Check whether --enable-maintainer-mode was given.
2857 if test "${enable_maintainer_mode+set}" = set; then :
2858   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2859 else
2860   USE_MAINTAINER_MODE=no
2861 fi
2862
2863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2864 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2865    if test $USE_MAINTAINER_MODE = yes; then
2866   MAINTAINER_MODE_TRUE=
2867   MAINTAINER_MODE_FALSE='#'
2868 else
2869   MAINTAINER_MODE_TRUE='#'
2870   MAINTAINER_MODE_FALSE=
2871 fi
2872
2873   MAINT=$MAINTAINER_MODE_TRUE
2874
2875
2876
2877
2878
2879 if (test "${libdir}" = '${exec_prefix}/lib'); then
2880         libdir="${prefix}/lib"
2881 fi
2882
2883 plugindir="${libdir}/obex/plugins"
2884
2885 if (test "$sysconfdir" = '${prefix}/etc'); then
2886         configdir="${prefix}/etc/obex"
2887 else
2888         configdir="${sysconfdir}/obex"
2889 fi
2890
2891
2892 cat >>confdefs.h <<_ACEOF
2893 #define CONFIGDIR "${configdir}"
2894 _ACEOF
2895
2896
2897
2898         if (test "${CFLAGS}" = ""); then
2899                 CFLAGS="-Wall -O2 -D_FORTIFY_SOURCE=2"
2900         fi
2901         if (test "$USE_MAINTAINER_MODE" = "yes"); then
2902                 CFLAGS="$CFLAGS -Werror -Wextra"
2903                 CFLAGS="$CFLAGS -Wno-unused-parameter"
2904                 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
2905                 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
2906                 CFLAGS="$CFLAGS -Wmissing-declarations"
2907                 CFLAGS="$CFLAGS -Wredundant-decls"
2908                 CFLAGS="$CFLAGS -Wcast-align"
2909                 CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED"
2910         fi
2911
2912
2913 ac_ext=c
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918
2919
2920 ac_ext=c
2921 ac_cpp='$CPP $CPPFLAGS'
2922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2925 if test -n "$ac_tool_prefix"; then
2926   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2927 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if ${ac_cv_prog_CC+:} false; then :
2931   $as_echo_n "(cached) " >&6
2932 else
2933   if test -n "$CC"; then
2934   ac_cv_prog_CC="$CC" # Let the user override the test.
2935 else
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2938 do
2939   IFS=$as_save_IFS
2940   test -z "$as_dir" && as_dir=.
2941     for ac_exec_ext in '' $ac_executable_extensions; do
2942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2943     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945     break 2
2946   fi
2947 done
2948   done
2949 IFS=$as_save_IFS
2950
2951 fi
2952 fi
2953 CC=$ac_cv_prog_CC
2954 if test -n "$CC"; then
2955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956 $as_echo "$CC" >&6; }
2957 else
2958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2960 fi
2961
2962
2963 fi
2964 if test -z "$ac_cv_prog_CC"; then
2965   ac_ct_CC=$CC
2966   # Extract the first word of "gcc", so it can be a program name with args.
2967 set dummy gcc; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2971   $as_echo_n "(cached) " >&6
2972 else
2973   if test -n "$ac_ct_CC"; then
2974   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979   IFS=$as_save_IFS
2980   test -z "$as_dir" && as_dir=.
2981     for ac_exec_ext in '' $ac_executable_extensions; do
2982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983     ac_cv_prog_ac_ct_CC="gcc"
2984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985     break 2
2986   fi
2987 done
2988   done
2989 IFS=$as_save_IFS
2990
2991 fi
2992 fi
2993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2994 if test -n "$ac_ct_CC"; then
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2996 $as_echo "$ac_ct_CC" >&6; }
2997 else
2998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 fi
3001
3002   if test "x$ac_ct_CC" = x; then
3003     CC=""
3004   else
3005     case $cross_compiling:$ac_tool_warned in
3006 yes:)
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009 ac_tool_warned=yes ;;
3010 esac
3011     CC=$ac_ct_CC
3012   fi
3013 else
3014   CC="$ac_cv_prog_CC"
3015 fi
3016
3017 if test -z "$CC"; then
3018           if test -n "$ac_tool_prefix"; then
3019     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3020 set dummy ${ac_tool_prefix}cc; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_CC+:} false; then :
3024   $as_echo_n "(cached) " >&6
3025 else
3026   if test -n "$CC"; then
3027   ac_cv_prog_CC="$CC" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032   IFS=$as_save_IFS
3033   test -z "$as_dir" && as_dir=.
3034     for ac_exec_ext in '' $ac_executable_extensions; do
3035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036     ac_cv_prog_CC="${ac_tool_prefix}cc"
3037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038     break 2
3039   fi
3040 done
3041   done
3042 IFS=$as_save_IFS
3043
3044 fi
3045 fi
3046 CC=$ac_cv_prog_CC
3047 if test -n "$CC"; then
3048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3050 else
3051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055
3056   fi
3057 fi
3058 if test -z "$CC"; then
3059   # Extract the first word of "cc", so it can be a program name with args.
3060 set dummy cc; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if ${ac_cv_prog_CC+:} false; then :
3064   $as_echo_n "(cached) " >&6
3065 else
3066   if test -n "$CC"; then
3067   ac_cv_prog_CC="$CC" # Let the user override the test.
3068 else
3069   ac_prog_rejected=no
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073   IFS=$as_save_IFS
3074   test -z "$as_dir" && as_dir=.
3075     for ac_exec_ext in '' $ac_executable_extensions; do
3076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3078        ac_prog_rejected=yes
3079        continue
3080      fi
3081     ac_cv_prog_CC="cc"
3082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083     break 2
3084   fi
3085 done
3086   done
3087 IFS=$as_save_IFS
3088
3089 if test $ac_prog_rejected = yes; then
3090   # We found a bogon in the path, so make sure we never use it.
3091   set dummy $ac_cv_prog_CC
3092   shift
3093   if test $# != 0; then
3094     # We chose a different compiler from the bogus one.
3095     # However, it has the same basename, so the bogon will be chosen
3096     # first if we set CC to just the basename; use the full file name.
3097     shift
3098     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3099   fi
3100 fi
3101 fi
3102 fi
3103 CC=$ac_cv_prog_CC
3104 if test -n "$CC"; then
3105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3106 $as_echo "$CC" >&6; }
3107 else
3108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3110 fi
3111
3112
3113 fi
3114 if test -z "$CC"; then
3115   if test -n "$ac_tool_prefix"; then
3116   for ac_prog in cl.exe
3117   do
3118     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3119 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if ${ac_cv_prog_CC+:} false; then :
3123   $as_echo_n "(cached) " >&6
3124 else
3125   if test -n "$CC"; then
3126   ac_cv_prog_CC="$CC" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131   IFS=$as_save_IFS
3132   test -z "$as_dir" && as_dir=.
3133     for ac_exec_ext in '' $ac_executable_extensions; do
3134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137     break 2
3138   fi
3139 done
3140   done
3141 IFS=$as_save_IFS
3142
3143 fi
3144 fi
3145 CC=$ac_cv_prog_CC
3146 if test -n "$CC"; then
3147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148 $as_echo "$CC" >&6; }
3149 else
3150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 fi
3153
3154
3155     test -n "$CC" && break
3156   done
3157 fi
3158 if test -z "$CC"; then
3159   ac_ct_CC=$CC
3160   for ac_prog in cl.exe
3161 do
3162   # Extract the first word of "$ac_prog", so it can be a program name with args.
3163 set dummy $ac_prog; ac_word=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3167   $as_echo_n "(cached) " >&6
3168 else
3169   if test -n "$ac_ct_CC"; then
3170   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175   IFS=$as_save_IFS
3176   test -z "$as_dir" && as_dir=.
3177     for ac_exec_ext in '' $ac_executable_extensions; do
3178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179     ac_cv_prog_ac_ct_CC="$ac_prog"
3180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181     break 2
3182   fi
3183 done
3184   done
3185 IFS=$as_save_IFS
3186
3187 fi
3188 fi
3189 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3190 if test -n "$ac_ct_CC"; then
3191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3192 $as_echo "$ac_ct_CC" >&6; }
3193 else
3194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3196 fi
3197
3198
3199   test -n "$ac_ct_CC" && break
3200 done
3201
3202   if test "x$ac_ct_CC" = x; then
3203     CC=""
3204   else
3205     case $cross_compiling:$ac_tool_warned in
3206 yes:)
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3209 ac_tool_warned=yes ;;
3210 esac
3211     CC=$ac_ct_CC
3212   fi
3213 fi
3214
3215 fi
3216
3217
3218 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3220 as_fn_error $? "no acceptable C compiler found in \$PATH
3221 See \`config.log' for more details" "$LINENO" 5; }
3222
3223 # Provide some information about the compiler.
3224 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3225 set X $ac_compile
3226 ac_compiler=$2
3227 for ac_option in --version -v -V -qversion; do
3228   { { ac_try="$ac_compiler $ac_option >&5"
3229 case "(($ac_try" in
3230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231   *) ac_try_echo=$ac_try;;
3232 esac
3233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3234 $as_echo "$ac_try_echo"; } >&5
3235   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3236   ac_status=$?
3237   if test -s conftest.err; then
3238     sed '10a\
3239 ... rest of stderr output deleted ...
3240          10q' conftest.err >conftest.er1
3241     cat conftest.er1 >&5
3242   fi
3243   rm -f conftest.er1 conftest.err
3244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245   test $ac_status = 0; }
3246 done
3247
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h.  */
3250
3251 int
3252 main ()
3253 {
3254
3255   ;
3256   return 0;
3257 }
3258 _ACEOF
3259 ac_clean_files_save=$ac_clean_files
3260 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3261 # Try to create an executable without -o first, disregard a.out.
3262 # It will help us diagnose broken compilers, and finding out an intuition
3263 # of exeext.
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3265 $as_echo_n "checking whether the C compiler works... " >&6; }
3266 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3267
3268 # The possible output files:
3269 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3270
3271 ac_rmfiles=
3272 for ac_file in $ac_files
3273 do
3274   case $ac_file in
3275     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3276     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3277   esac
3278 done
3279 rm -f $ac_rmfiles
3280
3281 if { { ac_try="$ac_link_default"
3282 case "(($ac_try" in
3283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284   *) ac_try_echo=$ac_try;;
3285 esac
3286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287 $as_echo "$ac_try_echo"; } >&5
3288   (eval "$ac_link_default") 2>&5
3289   ac_status=$?
3290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291   test $ac_status = 0; }; then :
3292   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3293 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3294 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3295 # so that the user can short-circuit this test for compilers unknown to
3296 # Autoconf.
3297 for ac_file in $ac_files ''
3298 do
3299   test -f "$ac_file" || continue
3300   case $ac_file in
3301     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3302         ;;
3303     [ab].out )
3304         # We found the default executable, but exeext='' is most
3305         # certainly right.
3306         break;;
3307     *.* )
3308         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3309         then :; else
3310            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3311         fi
3312         # We set ac_cv_exeext here because the later test for it is not
3313         # safe: cross compilers may not add the suffix if given an `-o'
3314         # argument, so we may need to know it at that point already.
3315         # Even if this section looks crufty: it has the advantage of
3316         # actually working.
3317         break;;
3318     * )
3319         break;;
3320   esac
3321 done
3322 test "$ac_cv_exeext" = no && ac_cv_exeext=
3323
3324 else
3325   ac_file=''
3326 fi
3327 if test -z "$ac_file"; then :
3328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 $as_echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error 77 "C compiler cannot create executables
3336 See \`config.log' for more details" "$LINENO" 5; }
3337 else
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3339 $as_echo "yes" >&6; }
3340 fi
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3342 $as_echo_n "checking for C compiler default output file name... " >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3344 $as_echo "$ac_file" >&6; }
3345 ac_exeext=$ac_cv_exeext
3346
3347 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3348 ac_clean_files=$ac_clean_files_save
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3350 $as_echo_n "checking for suffix of executables... " >&6; }
3351 if { { ac_try="$ac_link"
3352 case "(($ac_try" in
3353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354   *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358   (eval "$ac_link") 2>&5
3359   ac_status=$?
3360   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361   test $ac_status = 0; }; then :
3362   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3363 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3364 # work properly (i.e., refer to `conftest.exe'), while it won't with
3365 # `rm'.
3366 for ac_file in conftest.exe conftest conftest.*; do
3367   test -f "$ac_file" || continue
3368   case $ac_file in
3369     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3370     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3371           break;;
3372     * ) break;;
3373   esac
3374 done
3375 else
3376   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3379 See \`config.log' for more details" "$LINENO" 5; }
3380 fi
3381 rm -f conftest conftest$ac_cv_exeext
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3383 $as_echo "$ac_cv_exeext" >&6; }
3384
3385 rm -f conftest.$ac_ext
3386 EXEEXT=$ac_cv_exeext
3387 ac_exeext=$EXEEXT
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h.  */
3390 #include <stdio.h>
3391 int
3392 main ()
3393 {
3394 FILE *f = fopen ("conftest.out", "w");
3395  return ferror (f) || fclose (f) != 0;
3396
3397   ;
3398   return 0;
3399 }
3400 _ACEOF
3401 ac_clean_files="$ac_clean_files conftest.out"
3402 # Check that the compiler produces executables we can run.  If not, either
3403 # the compiler is broken, or we cross compile.
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3405 $as_echo_n "checking whether we are cross compiling... " >&6; }
3406 if test "$cross_compiling" != yes; then
3407   { { ac_try="$ac_link"
3408 case "(($ac_try" in
3409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410   *) ac_try_echo=$ac_try;;
3411 esac
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414   (eval "$ac_link") 2>&5
3415   ac_status=$?
3416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417   test $ac_status = 0; }
3418   if { ac_try='./conftest$ac_cv_exeext'
3419   { { case "(($ac_try" in
3420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421   *) ac_try_echo=$ac_try;;
3422 esac
3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424 $as_echo "$ac_try_echo"; } >&5
3425   (eval "$ac_try") 2>&5
3426   ac_status=$?
3427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428   test $ac_status = 0; }; }; then
3429     cross_compiling=no
3430   else
3431     if test "$cross_compiling" = maybe; then
3432         cross_compiling=yes
3433     else
3434         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 as_fn_error $? "cannot run C compiled programs.
3437 If you meant to cross compile, use \`--host'.
3438 See \`config.log' for more details" "$LINENO" 5; }
3439     fi
3440   fi
3441 fi
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3443 $as_echo "$cross_compiling" >&6; }
3444
3445 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3446 ac_clean_files=$ac_clean_files_save
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3448 $as_echo_n "checking for suffix of object files... " >&6; }
3449 if ${ac_cv_objext+:} false; then :
3450   $as_echo_n "(cached) " >&6
3451 else
3452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h.  */
3454
3455 int
3456 main ()
3457 {
3458
3459   ;
3460   return 0;
3461 }
3462 _ACEOF
3463 rm -f conftest.o conftest.obj
3464 if { { ac_try="$ac_compile"
3465 case "(($ac_try" in
3466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467   *) ac_try_echo=$ac_try;;
3468 esac
3469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470 $as_echo "$ac_try_echo"; } >&5
3471   (eval "$ac_compile") 2>&5
3472   ac_status=$?
3473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474   test $ac_status = 0; }; then :
3475   for ac_file in conftest.o conftest.obj conftest.*; do
3476   test -f "$ac_file" || continue;
3477   case $ac_file in
3478     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3479     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3480        break;;
3481   esac
3482 done
3483 else
3484   $as_echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3486
3487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error $? "cannot compute suffix of object files: cannot compile
3490 See \`config.log' for more details" "$LINENO" 5; }
3491 fi
3492 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3493 fi
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3495 $as_echo "$ac_cv_objext" >&6; }
3496 OBJEXT=$ac_cv_objext
3497 ac_objext=$OBJEXT
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3499 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3500 if ${ac_cv_c_compiler_gnu+:} false; then :
3501   $as_echo_n "(cached) " >&6
3502 else
3503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h.  */
3505
3506 int
3507 main ()
3508 {
3509 #ifndef __GNUC__
3510        choke me
3511 #endif
3512
3513   ;
3514   return 0;
3515 }
3516 _ACEOF
3517 if ac_fn_c_try_compile "$LINENO"; then :
3518   ac_compiler_gnu=yes
3519 else
3520   ac_compiler_gnu=no
3521 fi
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3524
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3527 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3528 if test $ac_compiler_gnu = yes; then
3529   GCC=yes
3530 else
3531   GCC=
3532 fi
3533 ac_test_CFLAGS=${CFLAGS+set}
3534 ac_save_CFLAGS=$CFLAGS
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3536 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3537 if ${ac_cv_prog_cc_g+:} false; then :
3538   $as_echo_n "(cached) " >&6
3539 else
3540   ac_save_c_werror_flag=$ac_c_werror_flag
3541    ac_c_werror_flag=yes
3542    ac_cv_prog_cc_g=no
3543    CFLAGS="-g"
3544    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h.  */
3546
3547 int
3548 main ()
3549 {
3550
3551   ;
3552   return 0;
3553 }
3554 _ACEOF
3555 if ac_fn_c_try_compile "$LINENO"; then :
3556   ac_cv_prog_cc_g=yes
3557 else
3558   CFLAGS=""
3559       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h.  */
3561
3562 int
3563 main ()
3564 {
3565
3566   ;
3567   return 0;
3568 }
3569 _ACEOF
3570 if ac_fn_c_try_compile "$LINENO"; then :
3571
3572 else
3573   ac_c_werror_flag=$ac_save_c_werror_flag
3574          CFLAGS="-g"
3575          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h.  */
3577
3578 int
3579 main ()
3580 {
3581
3582   ;
3583   return 0;
3584 }
3585 _ACEOF
3586 if ac_fn_c_try_compile "$LINENO"; then :
3587   ac_cv_prog_cc_g=yes
3588 fi
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 fi
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 fi
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594    ac_c_werror_flag=$ac_save_c_werror_flag
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3597 $as_echo "$ac_cv_prog_cc_g" >&6; }
3598 if test "$ac_test_CFLAGS" = set; then
3599   CFLAGS=$ac_save_CFLAGS
3600 elif test $ac_cv_prog_cc_g = yes; then
3601   if test "$GCC" = yes; then
3602     CFLAGS="-g -O2"
3603   else
3604     CFLAGS="-g"
3605   fi
3606 else
3607   if test "$GCC" = yes; then
3608     CFLAGS="-O2"
3609   else
3610     CFLAGS=
3611   fi
3612 fi
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3614 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3615 if ${ac_cv_prog_cc_c89+:} false; then :
3616   $as_echo_n "(cached) " >&6
3617 else
3618   ac_cv_prog_cc_c89=no
3619 ac_save_CC=$CC
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h.  */
3622 #include <stdarg.h>
3623 #include <stdio.h>
3624 struct stat;
3625 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3626 struct buf { int x; };
3627 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3628 static char *e (p, i)
3629      char **p;
3630      int i;
3631 {
3632   return p[i];
3633 }
3634 static char *f (char * (*g) (char **, int), char **p, ...)
3635 {
3636   char *s;
3637   va_list v;
3638   va_start (v,p);
3639   s = g (p, va_arg (v,int));
3640   va_end (v);
3641   return s;
3642 }
3643
3644 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3645    function prototypes and stuff, but not '\xHH' hex character constants.
3646    These don't provoke an error unfortunately, instead are silently treated
3647    as 'x'.  The following induces an error, until -std is added to get
3648    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3649    array size at least.  It's necessary to write '\x00'==0 to get something
3650    that's true only with -std.  */
3651 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3652
3653 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3654    inside strings and character constants.  */
3655 #define FOO(x) 'x'
3656 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3657
3658 int test (int i, double x);
3659 struct s1 {int (*f) (int a);};
3660 struct s2 {int (*f) (double a);};
3661 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3662 int argc;
3663 char **argv;
3664 int
3665 main ()
3666 {
3667 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3668   ;
3669   return 0;
3670 }
3671 _ACEOF
3672 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3673         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3674 do
3675   CC="$ac_save_CC $ac_arg"
3676   if ac_fn_c_try_compile "$LINENO"; then :
3677   ac_cv_prog_cc_c89=$ac_arg
3678 fi
3679 rm -f core conftest.err conftest.$ac_objext
3680   test "x$ac_cv_prog_cc_c89" != "xno" && break
3681 done
3682 rm -f conftest.$ac_ext
3683 CC=$ac_save_CC
3684
3685 fi
3686 # AC_CACHE_VAL
3687 case "x$ac_cv_prog_cc_c89" in
3688   x)
3689     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3690 $as_echo "none needed" >&6; } ;;
3691   xno)
3692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3693 $as_echo "unsupported" >&6; } ;;
3694   *)
3695     CC="$CC $ac_cv_prog_cc_c89"
3696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3697 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3698 esac
3699 if test "x$ac_cv_prog_cc_c89" != xno; then :
3700
3701 fi
3702
3703 ac_ext=c
3704 ac_cpp='$CPP $CPPFLAGS'
3705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708 DEPDIR="${am__leading_dot}deps"
3709
3710 ac_config_commands="$ac_config_commands depfiles"
3711
3712
3713 am_make=${MAKE-make}
3714 cat > confinc << 'END'
3715 am__doit:
3716         @echo this is the am__doit target
3717 .PHONY: am__doit
3718 END
3719 # If we don't find an include directive, just comment out the code.
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3721 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3722 am__include="#"
3723 am__quote=
3724 _am_result=none
3725 # First try GNU make style include.
3726 echo "include confinc" > confmf
3727 # Ignore all kinds of additional output from `make'.
3728 case `$am_make -s -f confmf 2> /dev/null` in #(
3729 *the\ am__doit\ target*)
3730   am__include=include
3731   am__quote=
3732   _am_result=GNU
3733   ;;
3734 esac
3735 # Now try BSD make style include.
3736 if test "$am__include" = "#"; then
3737    echo '.include "confinc"' > confmf
3738    case `$am_make -s -f confmf 2> /dev/null` in #(
3739    *the\ am__doit\ target*)
3740      am__include=.include
3741      am__quote="\""
3742      _am_result=BSD
3743      ;;
3744    esac
3745 fi
3746
3747
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3749 $as_echo "$_am_result" >&6; }
3750 rm -f confinc confmf
3751
3752 # Check whether --enable-dependency-tracking was given.
3753 if test "${enable_dependency_tracking+set}" = set; then :
3754   enableval=$enable_dependency_tracking;
3755 fi
3756
3757 if test "x$enable_dependency_tracking" != xno; then
3758   am_depcomp="$ac_aux_dir/depcomp"
3759   AMDEPBACKSLASH='\'
3760   am__nodep='_no'
3761 fi
3762  if test "x$enable_dependency_tracking" != xno; then
3763   AMDEP_TRUE=
3764   AMDEP_FALSE='#'
3765 else
3766   AMDEP_TRUE='#'
3767   AMDEP_FALSE=
3768 fi
3769
3770
3771
3772 depcc="$CC"   am_compiler_list=
3773
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3775 $as_echo_n "checking dependency style of $depcc... " >&6; }
3776 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3777   $as_echo_n "(cached) " >&6
3778 else
3779   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3780   # We make a subdir and do the tests there.  Otherwise we can end up
3781   # making bogus files that we don't know about and never remove.  For
3782   # instance it was reported that on HP-UX the gcc test will end up
3783   # making a dummy file named `D' -- because `-MD' means `put the output
3784   # in D'.
3785   rm -rf conftest.dir
3786   mkdir conftest.dir
3787   # Copy depcomp to subdir because otherwise we won't find it if we're
3788   # using a relative directory.
3789   cp "$am_depcomp" conftest.dir
3790   cd conftest.dir
3791   # We will build objects and dependencies in a subdirectory because
3792   # it helps to detect inapplicable dependency modes.  For instance
3793   # both Tru64's cc and ICC support -MD to output dependencies as a
3794   # side effect of compilation, but ICC will put the dependencies in
3795   # the current directory while Tru64 will put them in the object
3796   # directory.
3797   mkdir sub
3798
3799   am_cv_CC_dependencies_compiler_type=none
3800   if test "$am_compiler_list" = ""; then
3801      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3802   fi
3803   am__universal=false
3804   case " $depcc " in #(
3805      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3806      esac
3807
3808   for depmode in $am_compiler_list; do
3809     # Setup a source with many dependencies, because some compilers
3810     # like to wrap large dependency lists on column 80 (with \), and
3811     # we should not choose a depcomp mode which is confused by this.
3812     #
3813     # We need to recreate these files for each test, as the compiler may
3814     # overwrite some of them when testing with obscure command lines.
3815     # This happens at least with the AIX C compiler.
3816     : > sub/conftest.c
3817     for i in 1 2 3 4 5 6; do
3818       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3819       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3820       # Solaris 8's {/usr,}/bin/sh.
3821       touch sub/conftst$i.h
3822     done
3823     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3824
3825     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3826     # mode.  It turns out that the SunPro C++ compiler does not properly
3827     # handle `-M -o', and we need to detect this.  Also, some Intel
3828     # versions had trouble with output in subdirs
3829     am__obj=sub/conftest.${OBJEXT-o}
3830     am__minus_obj="-o $am__obj"
3831     case $depmode in
3832     gcc)
3833       # This depmode causes a compiler race in universal mode.
3834       test "$am__universal" = false || continue
3835       ;;
3836     nosideeffect)
3837       # after this tag, mechanisms are not by side-effect, so they'll
3838       # only be used when explicitly requested
3839       if test "x$enable_dependency_tracking" = xyes; then
3840         continue
3841       else
3842         break
3843       fi
3844       ;;
3845     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3846       # This compiler won't grok `-c -o', but also, the minuso test has
3847       # not run yet.  These depmodes are late enough in the game, and
3848       # so weak that their functioning should not be impacted.
3849       am__obj=conftest.${OBJEXT-o}
3850       am__minus_obj=
3851       ;;
3852     none) break ;;
3853     esac
3854     if depmode=$depmode \
3855        source=sub/conftest.c object=$am__obj \
3856        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3857        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3858          >/dev/null 2>conftest.err &&
3859        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3860        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3861        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3862        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3863       # icc doesn't choke on unknown options, it will just issue warnings
3864       # or remarks (even with -Werror).  So we grep stderr for any message
3865       # that says an option was ignored or not supported.
3866       # When given -MP, icc 7.0 and 7.1 complain thusly:
3867       #   icc: Command line warning: ignoring option '-M'; no argument required
3868       # The diagnosis changed in icc 8.0:
3869       #   icc: Command line remark: option '-MP' not supported
3870       if (grep 'ignoring option' conftest.err ||
3871           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3872         am_cv_CC_dependencies_compiler_type=$depmode
3873         break
3874       fi
3875     fi
3876   done
3877
3878   cd ..
3879   rm -rf conftest.dir
3880 else
3881   am_cv_CC_dependencies_compiler_type=none
3882 fi
3883
3884 fi
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3886 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3887 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3888
3889  if
3890   test "x$enable_dependency_tracking" != xno \
3891   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3892   am__fastdepCC_TRUE=
3893   am__fastdepCC_FALSE='#'
3894 else
3895   am__fastdepCC_TRUE='#'
3896   am__fastdepCC_FALSE=
3897 fi
3898
3899
3900 if test "x$CC" != xcc; then
3901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3902 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3903 else
3904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3905 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3906 fi
3907 set dummy $CC; ac_cc=`$as_echo "$2" |
3908                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3909 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3910   $as_echo_n "(cached) " >&6
3911 else
3912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h.  */
3914
3915 int
3916 main ()
3917 {
3918
3919   ;
3920   return 0;
3921 }
3922 _ACEOF
3923 # Make sure it works both with $CC and with simple cc.
3924 # We do the test twice because some compilers refuse to overwrite an
3925 # existing .o file with -o, though they will create one.
3926 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3927 rm -f conftest2.*
3928 if { { case "(($ac_try" in
3929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930   *) ac_try_echo=$ac_try;;
3931 esac
3932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3933 $as_echo "$ac_try_echo"; } >&5
3934   (eval "$ac_try") 2>&5
3935   ac_status=$?
3936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937   test $ac_status = 0; } &&
3938    test -f conftest2.$ac_objext && { { case "(($ac_try" in
3939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940   *) ac_try_echo=$ac_try;;
3941 esac
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 $as_echo "$ac_try_echo"; } >&5
3944   (eval "$ac_try") 2>&5
3945   ac_status=$?
3946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947   test $ac_status = 0; };
3948 then
3949   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3950   if test "x$CC" != xcc; then
3951     # Test first that cc exists at all.
3952     if { ac_try='cc -c conftest.$ac_ext >&5'
3953   { { case "(($ac_try" in
3954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955   *) ac_try_echo=$ac_try;;
3956 esac
3957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958 $as_echo "$ac_try_echo"; } >&5
3959   (eval "$ac_try") 2>&5
3960   ac_status=$?
3961   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962   test $ac_status = 0; }; }; then
3963       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3964       rm -f conftest2.*
3965       if { { case "(($ac_try" in
3966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967   *) ac_try_echo=$ac_try;;
3968 esac
3969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3970 $as_echo "$ac_try_echo"; } >&5
3971   (eval "$ac_try") 2>&5
3972   ac_status=$?
3973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3974   test $ac_status = 0; } &&
3975          test -f conftest2.$ac_objext && { { case "(($ac_try" in
3976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977   *) ac_try_echo=$ac_try;;
3978 esac
3979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3980 $as_echo "$ac_try_echo"; } >&5
3981   (eval "$ac_try") 2>&5
3982   ac_status=$?
3983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3984   test $ac_status = 0; };
3985       then
3986         # cc works too.
3987         :
3988       else
3989         # cc exists but doesn't like -o.
3990         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3991       fi
3992     fi
3993   fi
3994 else
3995   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3996 fi
3997 rm -f core conftest*
3998
3999 fi
4000 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4002 $as_echo "yes" >&6; }
4003 else
4004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 $as_echo "no" >&6; }
4006
4007 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4008
4009 fi
4010
4011 # FIXME: we rely on the cache variable name because
4012 # there is no other way.
4013 set dummy $CC
4014 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4015 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4016 if test "$am_t" != yes; then
4017    # Losing compiler, so override with the script.
4018    # FIXME: It is wrong to rewrite CC.
4019    # But if we don't then we get into trouble of one sort or another.
4020    # A longer-term fix would be to have automake use am__CC in this case,
4021    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4022    CC="$am_aux_dir/compile $CC"
4023 fi
4024
4025
4026
4027         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fPIE" >&5
4028 $as_echo_n "checking whether ${CC-cc} accepts -fPIE... " >&6; }
4029 if ${ac_cv_prog_cc_pie+:} false; then :
4030   $as_echo_n "(cached) " >&6
4031 else
4032
4033                 echo 'void f(){}' > conftest.c
4034                 if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
4035                         ac_cv_prog_cc_pie=yes
4036                 else
4037                         ac_cv_prog_cc_pie=no
4038                 fi
4039                 rm -rf conftest*
4040
4041 fi
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_pie" >&5
4043 $as_echo "$ac_cv_prog_cc_pie" >&6; }
4044
4045
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4047 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4048 if ${ac_cv_path_SED+:} false; then :
4049   $as_echo_n "(cached) " >&6
4050 else
4051             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4052      for ac_i in 1 2 3 4 5 6 7; do
4053        ac_script="$ac_script$as_nl$ac_script"
4054      done
4055      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4056      { ac_script=; unset ac_script;}
4057      if test -z "$SED"; then
4058   ac_path_SED_found=false
4059   # Loop through the user's path and test for each of PROGNAME-LIST
4060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 for as_dir in $PATH
4062 do
4063   IFS=$as_save_IFS
4064   test -z "$as_dir" && as_dir=.
4065     for ac_prog in sed gsed; do
4066     for ac_exec_ext in '' $ac_executable_extensions; do
4067       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4068       as_fn_executable_p "$ac_path_SED" || continue
4069 # Check for GNU ac_path_SED and select it if it is found.
4070   # Check for GNU $ac_path_SED
4071 case `"$ac_path_SED" --version 2>&1` in
4072 *GNU*)
4073   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4074 *)
4075   ac_count=0
4076   $as_echo_n 0123456789 >"conftest.in"
4077   while :
4078   do
4079     cat "conftest.in" "conftest.in" >"conftest.tmp"
4080     mv "conftest.tmp" "conftest.in"
4081     cp "conftest.in" "conftest.nl"
4082     $as_echo '' >> "conftest.nl"
4083     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4084     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4085     as_fn_arith $ac_count + 1 && ac_count=$as_val
4086     if test $ac_count -gt ${ac_path_SED_max-0}; then
4087       # Best one so far, save it but keep looking for a better one
4088       ac_cv_path_SED="$ac_path_SED"
4089       ac_path_SED_max=$ac_count
4090     fi
4091     # 10*(2^10) chars as input seems more than enough
4092     test $ac_count -gt 10 && break
4093   done
4094   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4095 esac
4096
4097       $ac_path_SED_found && break 3
4098     done
4099   done
4100   done
4101 IFS=$as_save_IFS
4102   if test -z "$ac_cv_path_SED"; then
4103     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4104   fi
4105 else
4106   ac_cv_path_SED=$SED
4107 fi
4108
4109 fi
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4111 $as_echo "$ac_cv_path_SED" >&6; }
4112  SED="$ac_cv_path_SED"
4113   rm -f conftest.sed
4114
4115
4116
4117 ac_ext=c
4118 ac_cpp='$CPP $CPPFLAGS'
4119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4123 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4124 # On Suns, sometimes $CPP names a directory.
4125 if test -n "$CPP" && test -d "$CPP"; then
4126   CPP=
4127 fi
4128 if test -z "$CPP"; then
4129   if ${ac_cv_prog_CPP+:} false; then :
4130   $as_echo_n "(cached) " >&6
4131 else
4132       # Double quotes because CPP needs to be expanded
4133     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4134     do
4135       ac_preproc_ok=false
4136 for ac_c_preproc_warn_flag in '' yes
4137 do
4138   # Use a header file that comes with gcc, so configuring glibc
4139   # with a fresh cross-compiler works.
4140   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4141   # <limits.h> exists even on freestanding compilers.
4142   # On the NeXT, cc -E runs the code through the compiler's parser,
4143   # not just through cpp. "Syntax error" is here to catch this case.
4144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h.  */
4146 #ifdef __STDC__
4147 # include <limits.h>
4148 #else
4149 # include <assert.h>
4150 #endif
4151                      Syntax error
4152 _ACEOF
4153 if ac_fn_c_try_cpp "$LINENO"; then :
4154
4155 else
4156   # Broken: fails on valid input.
4157 continue
4158 fi
4159 rm -f conftest.err conftest.i conftest.$ac_ext
4160
4161   # OK, works on sane cases.  Now check whether nonexistent headers
4162   # can be detected and how.
4163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h.  */
4165 #include <ac_nonexistent.h>
4166 _ACEOF
4167 if ac_fn_c_try_cpp "$LINENO"; then :
4168   # Broken: success on invalid input.
4169 continue
4170 else
4171   # Passes both tests.
4172 ac_preproc_ok=:
4173 break
4174 fi
4175 rm -f conftest.err conftest.i conftest.$ac_ext
4176
4177 done
4178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4179 rm -f conftest.i conftest.err conftest.$ac_ext
4180 if $ac_preproc_ok; then :
4181   break
4182 fi
4183
4184     done
4185     ac_cv_prog_CPP=$CPP
4186
4187 fi
4188   CPP=$ac_cv_prog_CPP
4189 else
4190   ac_cv_prog_CPP=$CPP
4191 fi
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4193 $as_echo "$CPP" >&6; }
4194 ac_preproc_ok=false
4195 for ac_c_preproc_warn_flag in '' yes
4196 do
4197   # Use a header file that comes with gcc, so configuring glibc
4198   # with a fresh cross-compiler works.
4199   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4200   # <limits.h> exists even on freestanding compilers.
4201   # On the NeXT, cc -E runs the code through the compiler's parser,
4202   # not just through cpp. "Syntax error" is here to catch this case.
4203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h.  */
4205 #ifdef __STDC__
4206 # include <limits.h>
4207 #else
4208 # include <assert.h>
4209 #endif
4210                      Syntax error
4211 _ACEOF
4212 if ac_fn_c_try_cpp "$LINENO"; then :
4213
4214 else
4215   # Broken: fails on valid input.
4216 continue
4217 fi
4218 rm -f conftest.err conftest.i conftest.$ac_ext
4219
4220   # OK, works on sane cases.  Now check whether nonexistent headers
4221   # can be detected and how.
4222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h.  */
4224 #include <ac_nonexistent.h>
4225 _ACEOF
4226 if ac_fn_c_try_cpp "$LINENO"; then :
4227   # Broken: success on invalid input.
4228 continue
4229 else
4230   # Passes both tests.
4231 ac_preproc_ok=:
4232 break
4233 fi
4234 rm -f conftest.err conftest.i conftest.$ac_ext
4235
4236 done
4237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4238 rm -f conftest.i conftest.err conftest.$ac_ext
4239 if $ac_preproc_ok; then :
4240
4241 else
4242   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4244 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4245 See \`config.log' for more details" "$LINENO" 5; }
4246 fi
4247
4248 ac_ext=c
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253
4254
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4256 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4257 if ${ac_cv_path_GREP+:} false; then :
4258   $as_echo_n "(cached) " >&6
4259 else
4260   if test -z "$GREP"; then
4261   ac_path_GREP_found=false
4262   # Loop through the user's path and test for each of PROGNAME-LIST
4263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4265 do
4266   IFS=$as_save_IFS
4267   test -z "$as_dir" && as_dir=.
4268     for ac_prog in grep ggrep; do
4269     for ac_exec_ext in '' $ac_executable_extensions; do
4270       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4271       as_fn_executable_p "$ac_path_GREP" || continue
4272 # Check for GNU ac_path_GREP and select it if it is found.
4273   # Check for GNU $ac_path_GREP
4274 case `"$ac_path_GREP" --version 2>&1` in
4275 *GNU*)
4276   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4277 *)
4278   ac_count=0
4279   $as_echo_n 0123456789 >"conftest.in"
4280   while :
4281   do
4282     cat "conftest.in" "conftest.in" >"conftest.tmp"
4283     mv "conftest.tmp" "conftest.in"
4284     cp "conftest.in" "conftest.nl"
4285     $as_echo 'GREP' >> "conftest.nl"
4286     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4287     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4288     as_fn_arith $ac_count + 1 && ac_count=$as_val
4289     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4290       # Best one so far, save it but keep looking for a better one
4291       ac_cv_path_GREP="$ac_path_GREP"
4292       ac_path_GREP_max=$ac_count
4293     fi
4294     # 10*(2^10) chars as input seems more than enough
4295     test $ac_count -gt 10 && break
4296   done
4297   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4298 esac
4299
4300       $ac_path_GREP_found && break 3
4301     done
4302   done
4303   done
4304 IFS=$as_save_IFS
4305   if test -z "$ac_cv_path_GREP"; then
4306     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4307   fi
4308 else
4309   ac_cv_path_GREP=$GREP
4310 fi
4311
4312 fi
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4314 $as_echo "$ac_cv_path_GREP" >&6; }
4315  GREP="$ac_cv_path_GREP"
4316
4317
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4319 $as_echo_n "checking for egrep... " >&6; }
4320 if ${ac_cv_path_EGREP+:} false; then :
4321   $as_echo_n "(cached) " >&6
4322 else
4323   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4324    then ac_cv_path_EGREP="$GREP -E"
4325    else
4326      if test -z "$EGREP"; then
4327   ac_path_EGREP_found=false
4328   # Loop through the user's path and test for each of PROGNAME-LIST
4329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4331 do
4332   IFS=$as_save_IFS
4333   test -z "$as_dir" && as_dir=.
4334     for ac_prog in egrep; do
4335     for ac_exec_ext in '' $ac_executable_extensions; do
4336       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4337       as_fn_executable_p "$ac_path_EGREP" || continue
4338 # Check for GNU ac_path_EGREP and select it if it is found.
4339   # Check for GNU $ac_path_EGREP
4340 case `"$ac_path_EGREP" --version 2>&1` in
4341 *GNU*)
4342   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4343 *)
4344   ac_count=0
4345   $as_echo_n 0123456789 >"conftest.in"
4346   while :
4347   do
4348     cat "conftest.in" "conftest.in" >"conftest.tmp"
4349     mv "conftest.tmp" "conftest.in"
4350     cp "conftest.in" "conftest.nl"
4351     $as_echo 'EGREP' >> "conftest.nl"
4352     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4353     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4354     as_fn_arith $ac_count + 1 && ac_count=$as_val
4355     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4356       # Best one so far, save it but keep looking for a better one
4357       ac_cv_path_EGREP="$ac_path_EGREP"
4358       ac_path_EGREP_max=$ac_count
4359     fi
4360     # 10*(2^10) chars as input seems more than enough
4361     test $ac_count -gt 10 && break
4362   done
4363   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4364 esac
4365
4366       $ac_path_EGREP_found && break 3
4367     done
4368   done
4369   done
4370 IFS=$as_save_IFS
4371   if test -z "$ac_cv_path_EGREP"; then
4372     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4373   fi
4374 else
4375   ac_cv_path_EGREP=$EGREP
4376 fi
4377
4378    fi
4379 fi
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4381 $as_echo "$ac_cv_path_EGREP" >&6; }
4382  EGREP="$ac_cv_path_EGREP"
4383
4384
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4386 $as_echo_n "checking for ANSI C header files... " >&6; }
4387 if ${ac_cv_header_stdc+:} false; then :
4388   $as_echo_n "(cached) " >&6
4389 else
4390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h.  */
4392 #include <stdlib.h>
4393 #include <stdarg.h>
4394 #include <string.h>
4395 #include <float.h>
4396
4397 int
4398 main ()
4399 {
4400
4401   ;
4402   return 0;
4403 }
4404 _ACEOF
4405 if ac_fn_c_try_compile "$LINENO"; then :
4406   ac_cv_header_stdc=yes
4407 else
4408   ac_cv_header_stdc=no
4409 fi
4410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4411
4412 if test $ac_cv_header_stdc = yes; then
4413   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h.  */
4416 #include <string.h>
4417
4418 _ACEOF
4419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4420   $EGREP "memchr" >/dev/null 2>&1; then :
4421
4422 else
4423   ac_cv_header_stdc=no
4424 fi
4425 rm -f conftest*
4426
4427 fi
4428
4429 if test $ac_cv_header_stdc = yes; then
4430   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h.  */
4433 #include <stdlib.h>
4434
4435 _ACEOF
4436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4437   $EGREP "free" >/dev/null 2>&1; then :
4438
4439 else
4440   ac_cv_header_stdc=no
4441 fi
4442 rm -f conftest*
4443
4444 fi
4445
4446 if test $ac_cv_header_stdc = yes; then
4447   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4448   if test "$cross_compiling" = yes; then :
4449   :
4450 else
4451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h.  */
4453 #include <ctype.h>
4454 #include <stdlib.h>
4455 #if ((' ' & 0x0FF) == 0x020)
4456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4458 #else
4459 # define ISLOWER(c) \
4460                    (('a' <= (c) && (c) <= 'i') \
4461                      || ('j' <= (c) && (c) <= 'r') \
4462                      || ('s' <= (c) && (c) <= 'z'))
4463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4464 #endif
4465
4466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4467 int
4468 main ()
4469 {
4470   int i;
4471   for (i = 0; i < 256; i++)
4472     if (XOR (islower (i), ISLOWER (i))
4473         || toupper (i) != TOUPPER (i))
4474       return 2;
4475   return 0;
4476 }
4477 _ACEOF
4478 if ac_fn_c_try_run "$LINENO"; then :
4479
4480 else
4481   ac_cv_header_stdc=no
4482 fi
4483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4484   conftest.$ac_objext conftest.beam conftest.$ac_ext
4485 fi
4486
4487 fi
4488 fi
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4490 $as_echo "$ac_cv_header_stdc" >&6; }
4491 if test $ac_cv_header_stdc = yes; then
4492
4493 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4494
4495 fi
4496
4497 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4498 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4499                   inttypes.h stdint.h unistd.h
4500 do :
4501   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4502 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4503 "
4504 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4505   cat >>confdefs.h <<_ACEOF
4506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4507 _ACEOF
4508
4509 fi
4510
4511 done
4512
4513
4514
4515         ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
4516 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
4517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
4518 $as_echo_n "checking for main in -lreadline... " >&6; }
4519 if ${ac_cv_lib_readline_main+:} false; then :
4520   $as_echo_n "(cached) " >&6
4521 else
4522   ac_check_lib_save_LIBS=$LIBS
4523 LIBS="-lreadline  $LIBS"
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h.  */
4526
4527
4528 int
4529 main ()
4530 {
4531 return main ();
4532   ;
4533   return 0;
4534 }
4535 _ACEOF
4536 if ac_fn_c_try_link "$LINENO"; then :
4537   ac_cv_lib_readline_main=yes
4538 else
4539   ac_cv_lib_readline_main=no
4540 fi
4541 rm -f core conftest.err conftest.$ac_objext \
4542     conftest$ac_exeext conftest.$ac_ext
4543 LIBS=$ac_check_lib_save_LIBS
4544 fi
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
4546 $as_echo "$ac_cv_lib_readline_main" >&6; }
4547 if test "x$ac_cv_lib_readline_main" = xyes; then :
4548    readline_found=yes
4549                         READLINE_LIBS="-lreadline"
4550
4551
4552 else
4553   readline_found=no
4554 fi
4555
4556 fi
4557
4558
4559
4560
4561
4562
4563
4564 # Check whether --enable-static was given.
4565 if test "${enable_static+set}" = set; then :
4566   enableval=$enable_static; p=${PACKAGE-default}
4567     case $enableval in
4568     yes) enable_static=yes ;;
4569     no) enable_static=no ;;
4570     *)
4571      enable_static=no
4572       # Look at the argument we got.  We use all the common list separators.
4573       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4574       for pkg in $enableval; do
4575         IFS="$lt_save_ifs"
4576         if test "X$pkg" = "X$p"; then
4577           enable_static=yes
4578         fi
4579       done
4580       IFS="$lt_save_ifs"
4581       ;;
4582     esac
4583 else
4584   enable_static=no
4585 fi
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595 case `pwd` in
4596   *\ * | *\     *)
4597     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4598 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4599 esac
4600
4601
4602
4603 macro_version='2.4.2'
4604 macro_revision='1.3337'
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618 ltmain="$ac_aux_dir/ltmain.sh"
4619
4620 # Make sure we can run config.sub.
4621 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4622   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4623
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4625 $as_echo_n "checking build system type... " >&6; }
4626 if ${ac_cv_build+:} false; then :
4627   $as_echo_n "(cached) " >&6
4628 else
4629   ac_build_alias=$build_alias
4630 test "x$ac_build_alias" = x &&
4631   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4632 test "x$ac_build_alias" = x &&
4633   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4634 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4635   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4636
4637 fi
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4639 $as_echo "$ac_cv_build" >&6; }
4640 case $ac_cv_build in
4641 *-*-*) ;;
4642 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4643 esac
4644 build=$ac_cv_build
4645 ac_save_IFS=$IFS; IFS='-'
4646 set x $ac_cv_build
4647 shift
4648 build_cpu=$1
4649 build_vendor=$2
4650 shift; shift
4651 # Remember, the first character of IFS is used to create $*,
4652 # except with old shells:
4653 build_os=$*
4654 IFS=$ac_save_IFS
4655 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4656
4657
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4659 $as_echo_n "checking host system type... " >&6; }
4660 if ${ac_cv_host+:} false; then :
4661   $as_echo_n "(cached) " >&6
4662 else
4663   if test "x$host_alias" = x; then
4664   ac_cv_host=$ac_cv_build
4665 else
4666   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4667     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4668 fi
4669
4670 fi
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4672 $as_echo "$ac_cv_host" >&6; }
4673 case $ac_cv_host in
4674 *-*-*) ;;
4675 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4676 esac
4677 host=$ac_cv_host
4678 ac_save_IFS=$IFS; IFS='-'
4679 set x $ac_cv_host
4680 shift
4681 host_cpu=$1
4682 host_vendor=$2
4683 shift; shift
4684 # Remember, the first character of IFS is used to create $*,
4685 # except with old shells:
4686 host_os=$*
4687 IFS=$ac_save_IFS
4688 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4689
4690
4691 # Backslashify metacharacters that are still active within
4692 # double-quoted strings.
4693 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4694
4695 # Same as above, but do not quote variable references.
4696 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4697
4698 # Sed substitution to delay expansion of an escaped shell variable in a
4699 # double_quote_subst'ed string.
4700 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4701
4702 # Sed substitution to delay expansion of an escaped single quote.
4703 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4704
4705 # Sed substitution to avoid accidental globbing in evaled expressions
4706 no_glob_subst='s/\*/\\\*/g'
4707
4708 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4709 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4710 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4711
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4713 $as_echo_n "checking how to print strings... " >&6; }
4714 # Test print first, because it will be a builtin if present.
4715 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4716    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4717   ECHO='print -r --'
4718 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4719   ECHO='printf %s\n'
4720 else
4721   # Use this function as a fallback that always works.
4722   func_fallback_echo ()
4723   {
4724     eval 'cat <<_LTECHO_EOF
4725 $1
4726 _LTECHO_EOF'
4727   }
4728   ECHO='func_fallback_echo'
4729 fi
4730
4731 # func_echo_all arg...
4732 # Invoke $ECHO with all args, space-separated.
4733 func_echo_all ()
4734 {
4735     $ECHO ""
4736 }
4737
4738 case "$ECHO" in
4739   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4740 $as_echo "printf" >&6; } ;;
4741   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4742 $as_echo "print -r" >&6; } ;;
4743   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4744 $as_echo "cat" >&6; } ;;
4745 esac
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4761 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4762 if ${ac_cv_path_SED+:} false; then :
4763   $as_echo_n "(cached) " >&6
4764 else
4765             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4766      for ac_i in 1 2 3 4 5 6 7; do
4767        ac_script="$ac_script$as_nl$ac_script"
4768      done
4769      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4770      { ac_script=; unset ac_script;}
4771      if test -z "$SED"; then
4772   ac_path_SED_found=false
4773   # Loop through the user's path and test for each of PROGNAME-LIST
4774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4776 do
4777   IFS=$as_save_IFS
4778   test -z "$as_dir" && as_dir=.
4779     for ac_prog in sed gsed; do
4780     for ac_exec_ext in '' $ac_executable_extensions; do
4781       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4782       as_fn_executable_p "$ac_path_SED" || continue
4783 # Check for GNU ac_path_SED and select it if it is found.
4784   # Check for GNU $ac_path_SED
4785 case `"$ac_path_SED" --version 2>&1` in
4786 *GNU*)
4787   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4788 *)
4789   ac_count=0
4790   $as_echo_n 0123456789 >"conftest.in"
4791   while :
4792   do
4793     cat "conftest.in" "conftest.in" >"conftest.tmp"
4794     mv "conftest.tmp" "conftest.in"
4795     cp "conftest.in" "conftest.nl"
4796     $as_echo '' >> "conftest.nl"
4797     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4798     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4799     as_fn_arith $ac_count + 1 && ac_count=$as_val
4800     if test $ac_count -gt ${ac_path_SED_max-0}; then
4801       # Best one so far, save it but keep looking for a better one
4802       ac_cv_path_SED="$ac_path_SED"
4803       ac_path_SED_max=$ac_count
4804     fi
4805     # 10*(2^10) chars as input seems more than enough
4806     test $ac_count -gt 10 && break
4807   done
4808   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4809 esac
4810
4811       $ac_path_SED_found && break 3
4812     done
4813   done
4814   done
4815 IFS=$as_save_IFS
4816   if test -z "$ac_cv_path_SED"; then
4817     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4818   fi
4819 else
4820   ac_cv_path_SED=$SED
4821 fi
4822
4823 fi
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4825 $as_echo "$ac_cv_path_SED" >&6; }
4826  SED="$ac_cv_path_SED"
4827   rm -f conftest.sed
4828
4829 test -z "$SED" && SED=sed
4830 Xsed="$SED -e 1s/^X//"
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4843 $as_echo_n "checking for fgrep... " >&6; }
4844 if ${ac_cv_path_FGREP+:} false; then :
4845   $as_echo_n "(cached) " >&6
4846 else
4847   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4848    then ac_cv_path_FGREP="$GREP -F"
4849    else
4850      if test -z "$FGREP"; then
4851   ac_path_FGREP_found=false
4852   # Loop through the user's path and test for each of PROGNAME-LIST
4853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4855 do
4856   IFS=$as_save_IFS
4857   test -z "$as_dir" && as_dir=.
4858     for ac_prog in fgrep; do
4859     for ac_exec_ext in '' $ac_executable_extensions; do
4860       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4861       as_fn_executable_p "$ac_path_FGREP" || continue
4862 # Check for GNU ac_path_FGREP and select it if it is found.
4863   # Check for GNU $ac_path_FGREP
4864 case `"$ac_path_FGREP" --version 2>&1` in
4865 *GNU*)
4866   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4867 *)
4868   ac_count=0
4869   $as_echo_n 0123456789 >"conftest.in"
4870   while :
4871   do
4872     cat "conftest.in" "conftest.in" >"conftest.tmp"
4873     mv "conftest.tmp" "conftest.in"
4874     cp "conftest.in" "conftest.nl"
4875     $as_echo 'FGREP' >> "conftest.nl"
4876     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4877     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4878     as_fn_arith $ac_count + 1 && ac_count=$as_val
4879     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4880       # Best one so far, save it but keep looking for a better one
4881       ac_cv_path_FGREP="$ac_path_FGREP"
4882       ac_path_FGREP_max=$ac_count
4883     fi
4884     # 10*(2^10) chars as input seems more than enough
4885     test $ac_count -gt 10 && break
4886   done
4887   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4888 esac
4889
4890       $ac_path_FGREP_found && break 3
4891     done
4892   done
4893   done
4894 IFS=$as_save_IFS
4895   if test -z "$ac_cv_path_FGREP"; then
4896     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4897   fi
4898 else
4899   ac_cv_path_FGREP=$FGREP
4900 fi
4901
4902    fi
4903 fi
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4905 $as_echo "$ac_cv_path_FGREP" >&6; }
4906  FGREP="$ac_cv_path_FGREP"
4907
4908
4909 test -z "$GREP" && GREP=grep
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929 # Check whether --with-gnu-ld was given.
4930 if test "${with_gnu_ld+set}" = set; then :
4931   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4932 else
4933   with_gnu_ld=no
4934 fi
4935
4936 ac_prog=ld
4937 if test "$GCC" = yes; then
4938   # Check if gcc -print-prog-name=ld gives a path.
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4940 $as_echo_n "checking for ld used by $CC... " >&6; }
4941   case $host in
4942   *-*-mingw*)
4943     # gcc leaves a trailing carriage return which upsets mingw
4944     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4945   *)
4946     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4947   esac
4948   case $ac_prog in
4949     # Accept absolute paths.
4950     [\\/]* | ?:[\\/]*)
4951       re_direlt='/[^/][^/]*/\.\./'
4952       # Canonicalize the pathname of ld
4953       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4954       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4955         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4956       done
4957       test -z "$LD" && LD="$ac_prog"
4958       ;;
4959   "")
4960     # If it fails, then pretend we aren't using GCC.
4961     ac_prog=ld
4962     ;;
4963   *)
4964     # If it is relative, then search for the first ld in PATH.
4965     with_gnu_ld=unknown
4966     ;;
4967   esac
4968 elif test "$with_gnu_ld" = yes; then
4969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4970 $as_echo_n "checking for GNU ld... " >&6; }
4971 else
4972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4973 $as_echo_n "checking for non-GNU ld... " >&6; }
4974 fi
4975 if ${lt_cv_path_LD+:} false; then :
4976   $as_echo_n "(cached) " >&6
4977 else
4978   if test -z "$LD"; then
4979   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4980   for ac_dir in $PATH; do
4981     IFS="$lt_save_ifs"
4982     test -z "$ac_dir" && ac_dir=.
4983     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4984       lt_cv_path_LD="$ac_dir/$ac_prog"
4985       # Check to see if the program is GNU ld.  I'd rather use --version,
4986       # but apparently some variants of GNU ld only accept -v.
4987       # Break only if it was the GNU/non-GNU ld that we prefer.
4988       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4989       *GNU* | *'with BFD'*)
4990         test "$with_gnu_ld" != no && break
4991         ;;
4992       *)
4993         test "$with_gnu_ld" != yes && break
4994         ;;
4995       esac
4996     fi
4997   done
4998   IFS="$lt_save_ifs"
4999 else
5000   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5001 fi
5002 fi
5003
5004 LD="$lt_cv_path_LD"
5005 if test -n "$LD"; then
5006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5007 $as_echo "$LD" >&6; }
5008 else
5009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 $as_echo "no" >&6; }
5011 fi
5012 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5014 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5015 if ${lt_cv_prog_gnu_ld+:} false; then :
5016   $as_echo_n "(cached) " >&6
5017 else
5018   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5019 case `$LD -v 2>&1 </dev/null` in
5020 *GNU* | *'with BFD'*)
5021   lt_cv_prog_gnu_ld=yes
5022   ;;
5023 *)
5024   lt_cv_prog_gnu_ld=no
5025   ;;
5026 esac
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5029 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5030 with_gnu_ld=$lt_cv_prog_gnu_ld
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5041 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5042 if ${lt_cv_path_NM+:} false; then :
5043   $as_echo_n "(cached) " >&6
5044 else
5045   if test -n "$NM"; then
5046   # Let the user override the test.
5047   lt_cv_path_NM="$NM"
5048 else
5049   lt_nm_to_check="${ac_tool_prefix}nm"
5050   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5051     lt_nm_to_check="$lt_nm_to_check nm"
5052   fi
5053   for lt_tmp_nm in $lt_nm_to_check; do
5054     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5055     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5056       IFS="$lt_save_ifs"
5057       test -z "$ac_dir" && ac_dir=.
5058       tmp_nm="$ac_dir/$lt_tmp_nm"
5059       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5060         # Check to see if the nm accepts a BSD-compat flag.
5061         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5062         #   nm: unknown option "B" ignored
5063         # Tru64's nm complains that /dev/null is an invalid object file
5064         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5065         */dev/null* | *'Invalid file or object type'*)
5066           lt_cv_path_NM="$tmp_nm -B"
5067           break
5068           ;;
5069         *)
5070           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5071           */dev/null*)
5072             lt_cv_path_NM="$tmp_nm -p"
5073             break
5074             ;;
5075           *)
5076             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5077             continue # so that we can try to find one that supports BSD flags
5078             ;;
5079           esac
5080           ;;
5081         esac
5082       fi
5083     done
5084     IFS="$lt_save_ifs"
5085   done
5086   : ${lt_cv_path_NM=no}
5087 fi
5088 fi
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5090 $as_echo "$lt_cv_path_NM" >&6; }
5091 if test "$lt_cv_path_NM" != "no"; then
5092   NM="$lt_cv_path_NM"
5093 else
5094   # Didn't find any BSD compatible name lister, look for dumpbin.
5095   if test -n "$DUMPBIN"; then :
5096     # Let the user override the test.
5097   else
5098     if test -n "$ac_tool_prefix"; then
5099   for ac_prog in dumpbin "link -dump"
5100   do
5101     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if ${ac_cv_prog_DUMPBIN+:} false; then :
5106   $as_echo_n "(cached) " >&6
5107 else
5108   if test -n "$DUMPBIN"; then
5109   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5110 else
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114   IFS=$as_save_IFS
5115   test -z "$as_dir" && as_dir=.
5116     for ac_exec_ext in '' $ac_executable_extensions; do
5117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120     break 2
5121   fi
5122 done
5123   done
5124 IFS=$as_save_IFS
5125
5126 fi
5127 fi
5128 DUMPBIN=$ac_cv_prog_DUMPBIN
5129 if test -n "$DUMPBIN"; then
5130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5131 $as_echo "$DUMPBIN" >&6; }
5132 else
5133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5135 fi
5136
5137
5138     test -n "$DUMPBIN" && break
5139   done
5140 fi
5141 if test -z "$DUMPBIN"; then
5142   ac_ct_DUMPBIN=$DUMPBIN
5143   for ac_prog in dumpbin "link -dump"
5144 do
5145   # Extract the first word of "$ac_prog", so it can be a program name with args.
5146 set dummy $ac_prog; ac_word=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5150   $as_echo_n "(cached) " >&6
5151 else
5152   if test -n "$ac_ct_DUMPBIN"; then
5153   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5157 do
5158   IFS=$as_save_IFS
5159   test -z "$as_dir" && as_dir=.
5160     for ac_exec_ext in '' $ac_executable_extensions; do
5161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164     break 2
5165   fi
5166 done
5167   done
5168 IFS=$as_save_IFS
5169
5170 fi
5171 fi
5172 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5173 if test -n "$ac_ct_DUMPBIN"; then
5174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5175 $as_echo "$ac_ct_DUMPBIN" >&6; }
5176 else
5177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5179 fi
5180
5181
5182   test -n "$ac_ct_DUMPBIN" && break
5183 done
5184
5185   if test "x$ac_ct_DUMPBIN" = x; then
5186     DUMPBIN=":"
5187   else
5188     case $cross_compiling:$ac_tool_warned in
5189 yes:)
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5192 ac_tool_warned=yes ;;
5193 esac
5194     DUMPBIN=$ac_ct_DUMPBIN
5195   fi
5196 fi
5197
5198     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5199     *COFF*)
5200       DUMPBIN="$DUMPBIN -symbols"
5201       ;;
5202     *)
5203       DUMPBIN=:
5204       ;;
5205     esac
5206   fi
5207
5208   if test "$DUMPBIN" != ":"; then
5209     NM="$DUMPBIN"
5210   fi
5211 fi
5212 test -z "$NM" && NM=nm
5213
5214
5215
5216
5217
5218
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5220 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5221 if ${lt_cv_nm_interface+:} false; then :
5222   $as_echo_n "(cached) " >&6
5223 else
5224   lt_cv_nm_interface="BSD nm"
5225   echo "int some_variable = 0;" > conftest.$ac_ext
5226   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5227   (eval "$ac_compile" 2>conftest.err)
5228   cat conftest.err >&5
5229   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5230   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5231   cat conftest.err >&5
5232   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5233   cat conftest.out >&5
5234   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5235     lt_cv_nm_interface="MS dumpbin"
5236   fi
5237   rm -f conftest*
5238 fi
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5240 $as_echo "$lt_cv_nm_interface" >&6; }
5241
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5243 $as_echo_n "checking whether ln -s works... " >&6; }
5244 LN_S=$as_ln_s
5245 if test "$LN_S" = "ln -s"; then
5246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5247 $as_echo "yes" >&6; }
5248 else
5249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5250 $as_echo "no, using $LN_S" >&6; }
5251 fi
5252
5253 # find the maximum length of command line arguments
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5255 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5256 if ${lt_cv_sys_max_cmd_len+:} false; then :
5257   $as_echo_n "(cached) " >&6
5258 else
5259     i=0
5260   teststring="ABCD"
5261
5262   case $build_os in
5263   msdosdjgpp*)
5264     # On DJGPP, this test can blow up pretty badly due to problems in libc
5265     # (any single argument exceeding 2000 bytes causes a buffer overrun
5266     # during glob expansion).  Even if it were fixed, the result of this
5267     # check would be larger than it should be.
5268     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5269     ;;
5270
5271   gnu*)
5272     # Under GNU Hurd, this test is not required because there is
5273     # no limit to the length of command line arguments.
5274     # Libtool will interpret -1 as no limit whatsoever
5275     lt_cv_sys_max_cmd_len=-1;
5276     ;;
5277
5278   cygwin* | mingw* | cegcc*)
5279     # On Win9x/ME, this test blows up -- it succeeds, but takes
5280     # about 5 minutes as the teststring grows exponentially.
5281     # Worse, since 9x/ME are not pre-emptively multitasking,
5282     # you end up with a "frozen" computer, even though with patience
5283     # the test eventually succeeds (with a max line length of 256k).
5284     # Instead, let's just punt: use the minimum linelength reported by
5285     # all of the supported platforms: 8192 (on NT/2K/XP).
5286     lt_cv_sys_max_cmd_len=8192;
5287     ;;
5288
5289   mint*)
5290     # On MiNT this can take a long time and run out of memory.
5291     lt_cv_sys_max_cmd_len=8192;
5292     ;;
5293
5294   amigaos*)
5295     # On AmigaOS with pdksh, this test takes hours, literally.
5296     # So we just punt and use a minimum line length of 8192.
5297     lt_cv_sys_max_cmd_len=8192;
5298     ;;
5299
5300   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5301     # This has been around since 386BSD, at least.  Likely further.
5302     if test -x /sbin/sysctl; then
5303       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5304     elif test -x /usr/sbin/sysctl; then
5305       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5306     else
5307       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5308     fi
5309     # And add a safety zone
5310     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5311     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5312     ;;
5313
5314   interix*)
5315     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5316     lt_cv_sys_max_cmd_len=196608
5317     ;;
5318
5319   os2*)
5320     # The test takes a long time on OS/2.
5321     lt_cv_sys_max_cmd_len=8192
5322     ;;
5323
5324   osf*)
5325     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5326     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5327     # nice to cause kernel panics so lets avoid the loop below.
5328     # First set a reasonable default.
5329     lt_cv_sys_max_cmd_len=16384
5330     #
5331     if test -x /sbin/sysconfig; then
5332       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5333         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5334       esac
5335     fi
5336     ;;
5337   sco3.2v5*)
5338     lt_cv_sys_max_cmd_len=102400
5339     ;;
5340   sysv5* | sco5v6* | sysv4.2uw2*)
5341     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5342     if test -n "$kargmax"; then
5343       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5344     else
5345       lt_cv_sys_max_cmd_len=32768
5346     fi
5347     ;;
5348   *)
5349     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5350     if test -n "$lt_cv_sys_max_cmd_len"; then
5351       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5352       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5353     else
5354       # Make teststring a little bigger before we do anything with it.
5355       # a 1K string should be a reasonable start.
5356       for i in 1 2 3 4 5 6 7 8 ; do
5357         teststring=$teststring$teststring
5358       done
5359       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5360       # If test is not a shell built-in, we'll probably end up computing a
5361       # maximum length that is only half of the actual maximum length, but
5362       # we can't tell.
5363       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5364                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5365               test $i != 17 # 1/2 MB should be enough
5366       do
5367         i=`expr $i + 1`
5368         teststring=$teststring$teststring
5369       done
5370       # Only check the string length outside the loop.
5371       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5372       teststring=
5373       # Add a significant safety factor because C++ compilers can tack on
5374       # massive amounts of additional arguments before passing them to the
5375       # linker.  It appears as though 1/2 is a usable value.
5376       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5377     fi
5378     ;;
5379   esac
5380
5381 fi
5382
5383 if test -n $lt_cv_sys_max_cmd_len ; then
5384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5385 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5386 else
5387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5388 $as_echo "none" >&6; }
5389 fi
5390 max_cmd_len=$lt_cv_sys_max_cmd_len
5391
5392
5393
5394
5395
5396
5397 : ${CP="cp -f"}
5398 : ${MV="mv -f"}
5399 : ${RM="rm -f"}
5400
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5402 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5403 # Try some XSI features
5404 xsi_shell=no
5405 ( _lt_dummy="a/b/c"
5406   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5407       = c,a/b,b/c, \
5408     && eval 'test $(( 1 + 1 )) -eq 2 \
5409     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5410   && xsi_shell=yes
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5412 $as_echo "$xsi_shell" >&6; }
5413
5414
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5416 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5417 lt_shell_append=no
5418 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5419     >/dev/null 2>&1 \
5420   && lt_shell_append=yes
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5422 $as_echo "$lt_shell_append" >&6; }
5423
5424
5425 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5426   lt_unset=unset
5427 else
5428   lt_unset=false
5429 fi
5430
5431
5432
5433
5434
5435 # test EBCDIC or ASCII
5436 case `echo X|tr X '\101'` in
5437  A) # ASCII based system
5438     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5439   lt_SP2NL='tr \040 \012'
5440   lt_NL2SP='tr \015\012 \040\040'
5441   ;;
5442  *) # EBCDIC based system
5443   lt_SP2NL='tr \100 \n'
5444   lt_NL2SP='tr \r\n \100\100'
5445   ;;
5446 esac
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5457 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5458 if ${lt_cv_to_host_file_cmd+:} false; then :
5459   $as_echo_n "(cached) " >&6
5460 else
5461   case $host in
5462   *-*-mingw* )
5463     case $build in
5464       *-*-mingw* ) # actually msys
5465         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5466         ;;
5467       *-*-cygwin* )
5468         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5469         ;;
5470       * ) # otherwise, assume *nix
5471         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5472         ;;
5473     esac
5474     ;;
5475   *-*-cygwin* )
5476     case $build in
5477       *-*-mingw* ) # actually msys
5478         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5479         ;;
5480       *-*-cygwin* )
5481         lt_cv_to_host_file_cmd=func_convert_file_noop
5482         ;;
5483       * ) # otherwise, assume *nix
5484         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5485         ;;
5486     esac
5487     ;;
5488   * ) # unhandled hosts (and "normal" native builds)
5489     lt_cv_to_host_file_cmd=func_convert_file_noop
5490     ;;
5491 esac
5492
5493 fi
5494
5495 to_host_file_cmd=$lt_cv_to_host_file_cmd
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5497 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5498
5499
5500
5501
5502
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5504 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5505 if ${lt_cv_to_tool_file_cmd+:} false; then :
5506   $as_echo_n "(cached) " >&6
5507 else
5508   #assume ordinary cross tools, or native build.
5509 lt_cv_to_tool_file_cmd=func_convert_file_noop
5510 case $host in
5511   *-*-mingw* )
5512     case $build in
5513       *-*-mingw* ) # actually msys
5514         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5515         ;;
5516     esac
5517     ;;
5518 esac
5519
5520 fi
5521
5522 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5524 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5525
5526
5527
5528
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5531 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5532 if ${lt_cv_ld_reload_flag+:} false; then :
5533   $as_echo_n "(cached) " >&6
5534 else
5535   lt_cv_ld_reload_flag='-r'
5536 fi
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5538 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5539 reload_flag=$lt_cv_ld_reload_flag
5540 case $reload_flag in
5541 "" | " "*) ;;
5542 *) reload_flag=" $reload_flag" ;;
5543 esac
5544 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5545 case $host_os in
5546   cygwin* | mingw* | pw32* | cegcc*)
5547     if test "$GCC" != yes; then
5548       reload_cmds=false
5549     fi
5550     ;;
5551   darwin*)
5552     if test "$GCC" = yes; then
5553       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5554     else
5555       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5556     fi
5557     ;;
5558 esac
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568 if test -n "$ac_tool_prefix"; then
5569   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5570 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_prog_OBJDUMP+:} false; then :
5574   $as_echo_n "(cached) " >&6
5575 else
5576   if test -n "$OBJDUMP"; then
5577   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5581 do
5582   IFS=$as_save_IFS
5583   test -z "$as_dir" && as_dir=.
5584     for ac_exec_ext in '' $ac_executable_extensions; do
5585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588     break 2
5589   fi
5590 done
5591   done
5592 IFS=$as_save_IFS
5593
5594 fi
5595 fi
5596 OBJDUMP=$ac_cv_prog_OBJDUMP
5597 if test -n "$OBJDUMP"; then
5598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5599 $as_echo "$OBJDUMP" >&6; }
5600 else
5601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5603 fi
5604
5605
5606 fi
5607 if test -z "$ac_cv_prog_OBJDUMP"; then
5608   ac_ct_OBJDUMP=$OBJDUMP
5609   # Extract the first word of "objdump", so it can be a program name with args.
5610 set dummy objdump; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5614   $as_echo_n "(cached) " >&6
5615 else
5616   if test -n "$ac_ct_OBJDUMP"; then
5617   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5618 else
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5621 do
5622   IFS=$as_save_IFS
5623   test -z "$as_dir" && as_dir=.
5624     for ac_exec_ext in '' $ac_executable_extensions; do
5625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5626     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628     break 2
5629   fi
5630 done
5631   done
5632 IFS=$as_save_IFS
5633
5634 fi
5635 fi
5636 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5637 if test -n "$ac_ct_OBJDUMP"; then
5638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5639 $as_echo "$ac_ct_OBJDUMP" >&6; }
5640 else
5641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5643 fi
5644
5645   if test "x$ac_ct_OBJDUMP" = x; then
5646     OBJDUMP="false"
5647   else
5648     case $cross_compiling:$ac_tool_warned in
5649 yes:)
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5652 ac_tool_warned=yes ;;
5653 esac
5654     OBJDUMP=$ac_ct_OBJDUMP
5655   fi
5656 else
5657   OBJDUMP="$ac_cv_prog_OBJDUMP"
5658 fi
5659
5660 test -z "$OBJDUMP" && OBJDUMP=objdump
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5671 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5672 if ${lt_cv_deplibs_check_method+:} false; then :
5673   $as_echo_n "(cached) " >&6
5674 else
5675   lt_cv_file_magic_cmd='$MAGIC_CMD'
5676 lt_cv_file_magic_test_file=
5677 lt_cv_deplibs_check_method='unknown'
5678 # Need to set the preceding variable on all platforms that support
5679 # interlibrary dependencies.
5680 # 'none' -- dependencies not supported.
5681 # `unknown' -- same as none, but documents that we really don't know.
5682 # 'pass_all' -- all dependencies passed with no checks.
5683 # 'test_compile' -- check by making test program.
5684 # 'file_magic [[regex]]' -- check by looking for files in library path
5685 # which responds to the $file_magic_cmd with a given extended regex.
5686 # If you have `file' or equivalent on your system and you're not sure
5687 # whether `pass_all' will *always* work, you probably want this one.
5688
5689 case $host_os in
5690 aix[4-9]*)
5691   lt_cv_deplibs_check_method=pass_all
5692   ;;
5693
5694 beos*)
5695   lt_cv_deplibs_check_method=pass_all
5696   ;;
5697
5698 bsdi[45]*)
5699   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5700   lt_cv_file_magic_cmd='/usr/bin/file -L'
5701   lt_cv_file_magic_test_file=/shlib/libc.so
5702   ;;
5703
5704 cygwin*)
5705   # func_win32_libid is a shell function defined in ltmain.sh
5706   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5707   lt_cv_file_magic_cmd='func_win32_libid'
5708   ;;
5709
5710 mingw* | pw32*)
5711   # Base MSYS/MinGW do not provide the 'file' command needed by
5712   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5713   # unless we find 'file', for example because we are cross-compiling.
5714   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5715   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5716     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5717     lt_cv_file_magic_cmd='func_win32_libid'
5718   else
5719     # Keep this pattern in sync with the one in func_win32_libid.
5720     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5721     lt_cv_file_magic_cmd='$OBJDUMP -f'
5722   fi
5723   ;;
5724
5725 cegcc*)
5726   # use the weaker test based on 'objdump'. See mingw*.
5727   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5728   lt_cv_file_magic_cmd='$OBJDUMP -f'
5729   ;;
5730
5731 darwin* | rhapsody*)
5732   lt_cv_deplibs_check_method=pass_all
5733   ;;
5734
5735 freebsd* | dragonfly*)
5736   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5737     case $host_cpu in
5738     i*86 )
5739       # Not sure whether the presence of OpenBSD here was a mistake.
5740       # Let's accept both of them until this is cleared up.
5741       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5742       lt_cv_file_magic_cmd=/usr/bin/file
5743       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5744       ;;
5745     esac
5746   else
5747     lt_cv_deplibs_check_method=pass_all
5748   fi
5749   ;;
5750
5751 haiku*)
5752   lt_cv_deplibs_check_method=pass_all
5753   ;;
5754
5755 hpux10.20* | hpux11*)
5756   lt_cv_file_magic_cmd=/usr/bin/file
5757   case $host_cpu in
5758   ia64*)
5759     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5760     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5761     ;;
5762   hppa*64*)
5763     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]'
5764     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5765     ;;
5766   *)
5767     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5768     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5769     ;;
5770   esac
5771   ;;
5772
5773 interix[3-9]*)
5774   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5775   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5776   ;;
5777
5778 irix5* | irix6* | nonstopux*)
5779   case $LD in
5780   *-32|*"-32 ") libmagic=32-bit;;
5781   *-n32|*"-n32 ") libmagic=N32;;
5782   *-64|*"-64 ") libmagic=64-bit;;
5783   *) libmagic=never-match;;
5784   esac
5785   lt_cv_deplibs_check_method=pass_all
5786   ;;
5787
5788 # This must be glibc/ELF.
5789 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5790   lt_cv_deplibs_check_method=pass_all
5791   ;;
5792
5793 netbsd* | netbsdelf*-gnu)
5794   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5795     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5796   else
5797     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5798   fi
5799   ;;
5800
5801 newos6*)
5802   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5803   lt_cv_file_magic_cmd=/usr/bin/file
5804   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5805   ;;
5806
5807 *nto* | *qnx*)
5808   lt_cv_deplibs_check_method=pass_all
5809   ;;
5810
5811 openbsd*)
5812   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5813     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5814   else
5815     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5816   fi
5817   ;;
5818
5819 osf3* | osf4* | osf5*)
5820   lt_cv_deplibs_check_method=pass_all
5821   ;;
5822
5823 rdos*)
5824   lt_cv_deplibs_check_method=pass_all
5825   ;;
5826
5827 solaris*)
5828   lt_cv_deplibs_check_method=pass_all
5829   ;;
5830
5831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5832   lt_cv_deplibs_check_method=pass_all
5833   ;;
5834
5835 sysv4 | sysv4.3*)
5836   case $host_vendor in
5837   motorola)
5838     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]'
5839     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5840     ;;
5841   ncr)
5842     lt_cv_deplibs_check_method=pass_all
5843     ;;
5844   sequent)
5845     lt_cv_file_magic_cmd='/bin/file'
5846     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5847     ;;
5848   sni)
5849     lt_cv_file_magic_cmd='/bin/file'
5850     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5851     lt_cv_file_magic_test_file=/lib/libc.so
5852     ;;
5853   siemens)
5854     lt_cv_deplibs_check_method=pass_all
5855     ;;
5856   pc)
5857     lt_cv_deplibs_check_method=pass_all
5858     ;;
5859   esac
5860   ;;
5861
5862 tpf*)
5863   lt_cv_deplibs_check_method=pass_all
5864   ;;
5865 esac
5866
5867 fi
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5869 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5870
5871 file_magic_glob=
5872 want_nocaseglob=no
5873 if test "$build" = "$host"; then
5874   case $host_os in
5875   mingw* | pw32*)
5876     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5877       want_nocaseglob=yes
5878     else
5879       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5880     fi
5881     ;;
5882   esac
5883 fi
5884
5885 file_magic_cmd=$lt_cv_file_magic_cmd
5886 deplibs_check_method=$lt_cv_deplibs_check_method
5887 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910 if test -n "$ac_tool_prefix"; then
5911   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5912 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if ${ac_cv_prog_DLLTOOL+:} false; then :
5916   $as_echo_n "(cached) " >&6
5917 else
5918   if test -n "$DLLTOOL"; then
5919   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5923 do
5924   IFS=$as_save_IFS
5925   test -z "$as_dir" && as_dir=.
5926     for ac_exec_ext in '' $ac_executable_extensions; do
5927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930     break 2
5931   fi
5932 done
5933   done
5934 IFS=$as_save_IFS
5935
5936 fi
5937 fi
5938 DLLTOOL=$ac_cv_prog_DLLTOOL
5939 if test -n "$DLLTOOL"; then
5940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5941 $as_echo "$DLLTOOL" >&6; }
5942 else
5943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5945 fi
5946
5947
5948 fi
5949 if test -z "$ac_cv_prog_DLLTOOL"; then
5950   ac_ct_DLLTOOL=$DLLTOOL
5951   # Extract the first word of "dlltool", so it can be a program name with args.
5952 set dummy dlltool; ac_word=$2
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954 $as_echo_n "checking for $ac_word... " >&6; }
5955 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5956   $as_echo_n "(cached) " >&6
5957 else
5958   if test -n "$ac_ct_DLLTOOL"; then
5959   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5960 else
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5963 do
5964   IFS=$as_save_IFS
5965   test -z "$as_dir" && as_dir=.
5966     for ac_exec_ext in '' $ac_executable_extensions; do
5967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970     break 2
5971   fi
5972 done
5973   done
5974 IFS=$as_save_IFS
5975
5976 fi
5977 fi
5978 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5979 if test -n "$ac_ct_DLLTOOL"; then
5980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5981 $as_echo "$ac_ct_DLLTOOL" >&6; }
5982 else
5983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 $as_echo "no" >&6; }
5985 fi
5986
5987   if test "x$ac_ct_DLLTOOL" = x; then
5988     DLLTOOL="false"
5989   else
5990     case $cross_compiling:$ac_tool_warned in
5991 yes:)
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5994 ac_tool_warned=yes ;;
5995 esac
5996     DLLTOOL=$ac_ct_DLLTOOL
5997   fi
5998 else
5999   DLLTOOL="$ac_cv_prog_DLLTOOL"
6000 fi
6001
6002 test -z "$DLLTOOL" && DLLTOOL=dlltool
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6014 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6015 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6016   $as_echo_n "(cached) " >&6
6017 else
6018   lt_cv_sharedlib_from_linklib_cmd='unknown'
6019
6020 case $host_os in
6021 cygwin* | mingw* | pw32* | cegcc*)
6022   # two different shell functions defined in ltmain.sh
6023   # decide which to use based on capabilities of $DLLTOOL
6024   case `$DLLTOOL --help 2>&1` in
6025   *--identify-strict*)
6026     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6027     ;;
6028   *)
6029     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6030     ;;
6031   esac
6032   ;;
6033 *)
6034   # fallback: assume linklib IS sharedlib
6035   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6036   ;;
6037 esac
6038
6039 fi
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6041 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6042 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6043 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6044
6045
6046
6047
6048
6049
6050
6051 if test -n "$ac_tool_prefix"; then
6052   for ac_prog in ar
6053   do
6054     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6057 $as_echo_n "checking for $ac_word... " >&6; }
6058 if ${ac_cv_prog_AR+:} false; then :
6059   $as_echo_n "(cached) " >&6
6060 else
6061   if test -n "$AR"; then
6062   ac_cv_prog_AR="$AR" # Let the user override the test.
6063 else
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6066 do
6067   IFS=$as_save_IFS
6068   test -z "$as_dir" && as_dir=.
6069     for ac_exec_ext in '' $ac_executable_extensions; do
6070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6071     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6073     break 2
6074   fi
6075 done
6076   done
6077 IFS=$as_save_IFS
6078
6079 fi
6080 fi
6081 AR=$ac_cv_prog_AR
6082 if test -n "$AR"; then
6083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6084 $as_echo "$AR" >&6; }
6085 else
6086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087 $as_echo "no" >&6; }
6088 fi
6089
6090
6091     test -n "$AR" && break
6092   done
6093 fi
6094 if test -z "$AR"; then
6095   ac_ct_AR=$AR
6096   for ac_prog in ar
6097 do
6098   # Extract the first word of "$ac_prog", so it can be a program name with args.
6099 set dummy $ac_prog; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6103   $as_echo_n "(cached) " >&6
6104 else
6105   if test -n "$ac_ct_AR"; then
6106   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6110 do
6111   IFS=$as_save_IFS
6112   test -z "$as_dir" && as_dir=.
6113     for ac_exec_ext in '' $ac_executable_extensions; do
6114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6115     ac_cv_prog_ac_ct_AR="$ac_prog"
6116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117     break 2
6118   fi
6119 done
6120   done
6121 IFS=$as_save_IFS
6122
6123 fi
6124 fi
6125 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6126 if test -n "$ac_ct_AR"; then
6127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6128 $as_echo "$ac_ct_AR" >&6; }
6129 else
6130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6132 fi
6133
6134
6135   test -n "$ac_ct_AR" && break
6136 done
6137
6138   if test "x$ac_ct_AR" = x; then
6139     AR="false"
6140   else
6141     case $cross_compiling:$ac_tool_warned in
6142 yes:)
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6145 ac_tool_warned=yes ;;
6146 esac
6147     AR=$ac_ct_AR
6148   fi
6149 fi
6150
6151 : ${AR=ar}
6152 : ${AR_FLAGS=cru}
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6165 $as_echo_n "checking for archiver @FILE support... " >&6; }
6166 if ${lt_cv_ar_at_file+:} false; then :
6167   $as_echo_n "(cached) " >&6
6168 else
6169   lt_cv_ar_at_file=no
6170    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171 /* end confdefs.h.  */
6172
6173 int
6174 main ()
6175 {
6176
6177   ;
6178   return 0;
6179 }
6180 _ACEOF
6181 if ac_fn_c_try_compile "$LINENO"; then :
6182   echo conftest.$ac_objext > conftest.lst
6183       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6184       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6185   (eval $lt_ar_try) 2>&5
6186   ac_status=$?
6187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6188   test $ac_status = 0; }
6189       if test "$ac_status" -eq 0; then
6190         # Ensure the archiver fails upon bogus file names.
6191         rm -f conftest.$ac_objext libconftest.a
6192         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6193   (eval $lt_ar_try) 2>&5
6194   ac_status=$?
6195   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6196   test $ac_status = 0; }
6197         if test "$ac_status" -ne 0; then
6198           lt_cv_ar_at_file=@
6199         fi
6200       fi
6201       rm -f conftest.* libconftest.a
6202
6203 fi
6204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205
6206 fi
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6208 $as_echo "$lt_cv_ar_at_file" >&6; }
6209
6210 if test "x$lt_cv_ar_at_file" = xno; then
6211   archiver_list_spec=
6212 else
6213   archiver_list_spec=$lt_cv_ar_at_file
6214 fi
6215
6216
6217
6218
6219
6220
6221
6222 if test -n "$ac_tool_prefix"; then
6223   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6224 set dummy ${ac_tool_prefix}strip; ac_word=$2
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 $as_echo_n "checking for $ac_word... " >&6; }
6227 if ${ac_cv_prog_STRIP+:} false; then :
6228   $as_echo_n "(cached) " >&6
6229 else
6230   if test -n "$STRIP"; then
6231   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6232 else
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH
6235 do
6236   IFS=$as_save_IFS
6237   test -z "$as_dir" && as_dir=.
6238     for ac_exec_ext in '' $ac_executable_extensions; do
6239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6240     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242     break 2
6243   fi
6244 done
6245   done
6246 IFS=$as_save_IFS
6247
6248 fi
6249 fi
6250 STRIP=$ac_cv_prog_STRIP
6251 if test -n "$STRIP"; then
6252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6253 $as_echo "$STRIP" >&6; }
6254 else
6255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
6257 fi
6258
6259
6260 fi
6261 if test -z "$ac_cv_prog_STRIP"; then
6262   ac_ct_STRIP=$STRIP
6263   # Extract the first word of "strip", so it can be a program name with args.
6264 set dummy strip; ac_word=$2
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266 $as_echo_n "checking for $ac_word... " >&6; }
6267 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6268   $as_echo_n "(cached) " >&6
6269 else
6270   if test -n "$ac_ct_STRIP"; then
6271   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276   IFS=$as_save_IFS
6277   test -z "$as_dir" && as_dir=.
6278     for ac_exec_ext in '' $ac_executable_extensions; do
6279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6280     ac_cv_prog_ac_ct_STRIP="strip"
6281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282     break 2
6283   fi
6284 done
6285   done
6286 IFS=$as_save_IFS
6287
6288 fi
6289 fi
6290 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6291 if test -n "$ac_ct_STRIP"; then
6292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6293 $as_echo "$ac_ct_STRIP" >&6; }
6294 else
6295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 $as_echo "no" >&6; }
6297 fi
6298
6299   if test "x$ac_ct_STRIP" = x; then
6300     STRIP=":"
6301   else
6302     case $cross_compiling:$ac_tool_warned in
6303 yes:)
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6306 ac_tool_warned=yes ;;
6307 esac
6308     STRIP=$ac_ct_STRIP
6309   fi
6310 else
6311   STRIP="$ac_cv_prog_STRIP"
6312 fi
6313
6314 test -z "$STRIP" && STRIP=:
6315
6316
6317
6318
6319
6320
6321 if test -n "$ac_tool_prefix"; then
6322   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6323 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if ${ac_cv_prog_RANLIB+:} false; then :
6327   $as_echo_n "(cached) " >&6
6328 else
6329   if test -n "$RANLIB"; then
6330   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6331 else
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6334 do
6335   IFS=$as_save_IFS
6336   test -z "$as_dir" && as_dir=.
6337     for ac_exec_ext in '' $ac_executable_extensions; do
6338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6339     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341     break 2
6342   fi
6343 done
6344   done
6345 IFS=$as_save_IFS
6346
6347 fi
6348 fi
6349 RANLIB=$ac_cv_prog_RANLIB
6350 if test -n "$RANLIB"; then
6351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6352 $as_echo "$RANLIB" >&6; }
6353 else
6354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }
6356 fi
6357
6358
6359 fi
6360 if test -z "$ac_cv_prog_RANLIB"; then
6361   ac_ct_RANLIB=$RANLIB
6362   # Extract the first word of "ranlib", so it can be a program name with args.
6363 set dummy ranlib; ac_word=$2
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6367   $as_echo_n "(cached) " >&6
6368 else
6369   if test -n "$ac_ct_RANLIB"; then
6370   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6371 else
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375   IFS=$as_save_IFS
6376   test -z "$as_dir" && as_dir=.
6377     for ac_exec_ext in '' $ac_executable_extensions; do
6378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6379     ac_cv_prog_ac_ct_RANLIB="ranlib"
6380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381     break 2
6382   fi
6383 done
6384   done
6385 IFS=$as_save_IFS
6386
6387 fi
6388 fi
6389 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6390 if test -n "$ac_ct_RANLIB"; then
6391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6392 $as_echo "$ac_ct_RANLIB" >&6; }
6393 else
6394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6396 fi
6397
6398   if test "x$ac_ct_RANLIB" = x; then
6399     RANLIB=":"
6400   else
6401     case $cross_compiling:$ac_tool_warned in
6402 yes:)
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6405 ac_tool_warned=yes ;;
6406 esac
6407     RANLIB=$ac_ct_RANLIB
6408   fi
6409 else
6410   RANLIB="$ac_cv_prog_RANLIB"
6411 fi
6412
6413 test -z "$RANLIB" && RANLIB=:
6414
6415
6416
6417
6418
6419
6420 # Determine commands to create old-style static archives.
6421 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6422 old_postinstall_cmds='chmod 644 $oldlib'
6423 old_postuninstall_cmds=
6424
6425 if test -n "$RANLIB"; then
6426   case $host_os in
6427   openbsd*)
6428     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6429     ;;
6430   *)
6431     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6432     ;;
6433   esac
6434   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6435 fi
6436
6437 case $host_os in
6438   darwin*)
6439     lock_old_archive_extraction=yes ;;
6440   *)
6441     lock_old_archive_extraction=no ;;
6442 esac
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482 # If no C compiler was specified, use CC.
6483 LTCC=${LTCC-"$CC"}
6484
6485 # If no C compiler flags were specified, use CFLAGS.
6486 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6487
6488 # Allow CC to be a program name with arguments.
6489 compiler=$CC
6490
6491
6492 # Check for command to grab the raw symbol name followed by C symbol from nm.
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6494 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6495 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6496   $as_echo_n "(cached) " >&6
6497 else
6498
6499 # These are sane defaults that work on at least a few old systems.
6500 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6501
6502 # Character class describing NM global symbol codes.
6503 symcode='[BCDEGRST]'
6504
6505 # Regexp to match symbols that can be accessed directly from C.
6506 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6507
6508 # Define system-specific variables.
6509 case $host_os in
6510 aix*)
6511   symcode='[BCDT]'
6512   ;;
6513 cygwin* | mingw* | pw32* | cegcc*)
6514   symcode='[ABCDGISTW]'
6515   ;;
6516 hpux*)
6517   if test "$host_cpu" = ia64; then
6518     symcode='[ABCDEGRST]'
6519   fi
6520   ;;
6521 irix* | nonstopux*)
6522   symcode='[BCDEGRST]'
6523   ;;
6524 osf*)
6525   symcode='[BCDEGQRST]'
6526   ;;
6527 solaris*)
6528   symcode='[BDRT]'
6529   ;;
6530 sco3.2v5*)
6531   symcode='[DT]'
6532   ;;
6533 sysv4.2uw2*)
6534   symcode='[DT]'
6535   ;;
6536 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6537   symcode='[ABDT]'
6538   ;;
6539 sysv4)
6540   symcode='[DFNSTU]'
6541   ;;
6542 esac
6543
6544 # If we're using GNU nm, then use its standard symbol codes.
6545 case `$NM -V 2>&1` in
6546 *GNU* | *'with BFD'*)
6547   symcode='[ABCDGIRSTW]' ;;
6548 esac
6549
6550 # Transform an extracted symbol line into a proper C declaration.
6551 # Some systems (esp. on ia64) link data and code symbols differently,
6552 # so use this general approach.
6553 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6554
6555 # Transform an extracted symbol line into symbol name and symbol address
6556 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6557 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'"
6558
6559 # Handle CRLF in mingw tool chain
6560 opt_cr=
6561 case $build_os in
6562 mingw*)
6563   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6564   ;;
6565 esac
6566
6567 # Try without a prefix underscore, then with it.
6568 for ac_symprfx in "" "_"; do
6569
6570   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6571   symxfrm="\\1 $ac_symprfx\\2 \\2"
6572
6573   # Write the raw and C identifiers.
6574   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6575     # Fake it for dumpbin and say T for any non-static function
6576     # and D for any global variable.
6577     # Also find C++ and __fastcall symbols from MSVC++,
6578     # which start with @ or ?.
6579     lt_cv_sys_global_symbol_pipe="$AWK '"\
6580 "     {last_section=section; section=\$ 3};"\
6581 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6582 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6583 "     \$ 0!~/External *\|/{next};"\
6584 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6585 "     {if(hide[section]) next};"\
6586 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6587 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6588 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6589 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6590 "     ' prfx=^$ac_symprfx"
6591   else
6592     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6593   fi
6594   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6595
6596   # Check to see that the pipe works correctly.
6597   pipe_works=no
6598
6599   rm -f conftest*
6600   cat > conftest.$ac_ext <<_LT_EOF
6601 #ifdef __cplusplus
6602 extern "C" {
6603 #endif
6604 char nm_test_var;
6605 void nm_test_func(void);
6606 void nm_test_func(void){}
6607 #ifdef __cplusplus
6608 }
6609 #endif
6610 int main(){nm_test_var='a';nm_test_func();return(0);}
6611 _LT_EOF
6612
6613   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6614   (eval $ac_compile) 2>&5
6615   ac_status=$?
6616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6617   test $ac_status = 0; }; then
6618     # Now try to grab the symbols.
6619     nlist=conftest.nm
6620     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6621   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6622   ac_status=$?
6623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624   test $ac_status = 0; } && test -s "$nlist"; then
6625       # Try sorting and uniquifying the output.
6626       if sort "$nlist" | uniq > "$nlist"T; then
6627         mv -f "$nlist"T "$nlist"
6628       else
6629         rm -f "$nlist"T
6630       fi
6631
6632       # Make sure that we snagged all the symbols we need.
6633       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6634         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6635           cat <<_LT_EOF > conftest.$ac_ext
6636 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6637 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6638 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6639    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6640 # define LT_DLSYM_CONST
6641 #elif defined(__osf__)
6642 /* This system does not cope well with relocations in const data.  */
6643 # define LT_DLSYM_CONST
6644 #else
6645 # define LT_DLSYM_CONST const
6646 #endif
6647
6648 #ifdef __cplusplus
6649 extern "C" {
6650 #endif
6651
6652 _LT_EOF
6653           # Now generate the symbol file.
6654           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6655
6656           cat <<_LT_EOF >> conftest.$ac_ext
6657
6658 /* The mapping between symbol names and symbols.  */
6659 LT_DLSYM_CONST struct {
6660   const char *name;
6661   void       *address;
6662 }
6663 lt__PROGRAM__LTX_preloaded_symbols[] =
6664 {
6665   { "@PROGRAM@", (void *) 0 },
6666 _LT_EOF
6667           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6668           cat <<\_LT_EOF >> conftest.$ac_ext
6669   {0, (void *) 0}
6670 };
6671
6672 /* This works around a problem in FreeBSD linker */
6673 #ifdef FREEBSD_WORKAROUND
6674 static const void *lt_preloaded_setup() {
6675   return lt__PROGRAM__LTX_preloaded_symbols;
6676 }
6677 #endif
6678
6679 #ifdef __cplusplus
6680 }
6681 #endif
6682 _LT_EOF
6683           # Now try linking the two files.
6684           mv conftest.$ac_objext conftstm.$ac_objext
6685           lt_globsym_save_LIBS=$LIBS
6686           lt_globsym_save_CFLAGS=$CFLAGS
6687           LIBS="conftstm.$ac_objext"
6688           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6689           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6690   (eval $ac_link) 2>&5
6691   ac_status=$?
6692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6693   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6694             pipe_works=yes
6695           fi
6696           LIBS=$lt_globsym_save_LIBS
6697           CFLAGS=$lt_globsym_save_CFLAGS
6698         else
6699           echo "cannot find nm_test_func in $nlist" >&5
6700         fi
6701       else
6702         echo "cannot find nm_test_var in $nlist" >&5
6703       fi
6704     else
6705       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6706     fi
6707   else
6708     echo "$progname: failed program was:" >&5
6709     cat conftest.$ac_ext >&5
6710   fi
6711   rm -rf conftest* conftst*
6712
6713   # Do not use the global_symbol_pipe unless it works.
6714   if test "$pipe_works" = yes; then
6715     break
6716   else
6717     lt_cv_sys_global_symbol_pipe=
6718   fi
6719 done
6720
6721 fi
6722
6723 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6724   lt_cv_sys_global_symbol_to_cdecl=
6725 fi
6726 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6728 $as_echo "failed" >&6; }
6729 else
6730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6731 $as_echo "ok" >&6; }
6732 fi
6733
6734 # Response file support.
6735 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6736   nm_file_list_spec='@'
6737 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6738   nm_file_list_spec='@'
6739 fi
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6768 $as_echo_n "checking for sysroot... " >&6; }
6769
6770 # Check whether --with-sysroot was given.
6771 if test "${with_sysroot+set}" = set; then :
6772   withval=$with_sysroot;
6773 else
6774   with_sysroot=no
6775 fi
6776
6777
6778 lt_sysroot=
6779 case ${with_sysroot} in #(
6780  yes)
6781    if test "$GCC" = yes; then
6782      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6783    fi
6784    ;; #(
6785  /*)
6786    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6787    ;; #(
6788  no|'')
6789    ;; #(
6790  *)
6791    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6792 $as_echo "${with_sysroot}" >&6; }
6793    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6794    ;;
6795 esac
6796
6797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6798 $as_echo "${lt_sysroot:-no}" >&6; }
6799
6800
6801
6802
6803
6804 # Check whether --enable-libtool-lock was given.
6805 if test "${enable_libtool_lock+set}" = set; then :
6806   enableval=$enable_libtool_lock;
6807 fi
6808
6809 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6810
6811 # Some flags need to be propagated to the compiler or linker for good
6812 # libtool support.
6813 case $host in
6814 ia64-*-hpux*)
6815   # Find out which ABI we are using.
6816   echo 'int i;' > conftest.$ac_ext
6817   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6818   (eval $ac_compile) 2>&5
6819   ac_status=$?
6820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6821   test $ac_status = 0; }; then
6822     case `/usr/bin/file conftest.$ac_objext` in
6823       *ELF-32*)
6824         HPUX_IA64_MODE="32"
6825         ;;
6826       *ELF-64*)
6827         HPUX_IA64_MODE="64"
6828         ;;
6829     esac
6830   fi
6831   rm -rf conftest*
6832   ;;
6833 *-*-irix6*)
6834   # Find out which ABI we are using.
6835   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6836   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6837   (eval $ac_compile) 2>&5
6838   ac_status=$?
6839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6840   test $ac_status = 0; }; then
6841     if test "$lt_cv_prog_gnu_ld" = yes; then
6842       case `/usr/bin/file conftest.$ac_objext` in
6843         *32-bit*)
6844           LD="${LD-ld} -melf32bsmip"
6845           ;;
6846         *N32*)
6847           LD="${LD-ld} -melf32bmipn32"
6848           ;;
6849         *64-bit*)
6850           LD="${LD-ld} -melf64bmip"
6851         ;;
6852       esac
6853     else
6854       case `/usr/bin/file conftest.$ac_objext` in
6855         *32-bit*)
6856           LD="${LD-ld} -32"
6857           ;;
6858         *N32*)
6859           LD="${LD-ld} -n32"
6860           ;;
6861         *64-bit*)
6862           LD="${LD-ld} -64"
6863           ;;
6864       esac
6865     fi
6866   fi
6867   rm -rf conftest*
6868   ;;
6869
6870 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6871 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6872   # Find out which ABI we are using.
6873   echo 'int i;' > conftest.$ac_ext
6874   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6875   (eval $ac_compile) 2>&5
6876   ac_status=$?
6877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6878   test $ac_status = 0; }; then
6879     case `/usr/bin/file conftest.o` in
6880       *32-bit*)
6881         case $host in
6882           x86_64-*kfreebsd*-gnu)
6883             LD="${LD-ld} -m elf_i386_fbsd"
6884             ;;
6885           x86_64-*linux*)
6886             LD="${LD-ld} -m elf_i386"
6887             ;;
6888           ppc64-*linux*|powerpc64-*linux*)
6889             LD="${LD-ld} -m elf32ppclinux"
6890             ;;
6891           s390x-*linux*)
6892             LD="${LD-ld} -m elf_s390"
6893             ;;
6894           sparc64-*linux*)
6895             LD="${LD-ld} -m elf32_sparc"
6896             ;;
6897         esac
6898         ;;
6899       *64-bit*)
6900         case $host in
6901           x86_64-*kfreebsd*-gnu)
6902             LD="${LD-ld} -m elf_x86_64_fbsd"
6903             ;;
6904           x86_64-*linux*)
6905             LD="${LD-ld} -m elf_x86_64"
6906             ;;
6907           ppc*-*linux*|powerpc*-*linux*)
6908             LD="${LD-ld} -m elf64ppc"
6909             ;;
6910           s390*-*linux*|s390*-*tpf*)
6911             LD="${LD-ld} -m elf64_s390"
6912             ;;
6913           sparc*-*linux*)
6914             LD="${LD-ld} -m elf64_sparc"
6915             ;;
6916         esac
6917         ;;
6918     esac
6919   fi
6920   rm -rf conftest*
6921   ;;
6922
6923 *-*-sco3.2v5*)
6924   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6925   SAVE_CFLAGS="$CFLAGS"
6926   CFLAGS="$CFLAGS -belf"
6927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6928 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6929 if ${lt_cv_cc_needs_belf+:} false; then :
6930   $as_echo_n "(cached) " >&6
6931 else
6932   ac_ext=c
6933 ac_cpp='$CPP $CPPFLAGS'
6934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6937
6938      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h.  */
6940
6941 int
6942 main ()
6943 {
6944
6945   ;
6946   return 0;
6947 }
6948 _ACEOF
6949 if ac_fn_c_try_link "$LINENO"; then :
6950   lt_cv_cc_needs_belf=yes
6951 else
6952   lt_cv_cc_needs_belf=no
6953 fi
6954 rm -f core conftest.err conftest.$ac_objext \
6955     conftest$ac_exeext conftest.$ac_ext
6956      ac_ext=c
6957 ac_cpp='$CPP $CPPFLAGS'
6958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6961
6962 fi
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6964 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6965   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6966     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6967     CFLAGS="$SAVE_CFLAGS"
6968   fi
6969   ;;
6970 *-*solaris*)
6971   # Find out which ABI we are using.
6972   echo 'int i;' > conftest.$ac_ext
6973   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6974   (eval $ac_compile) 2>&5
6975   ac_status=$?
6976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6977   test $ac_status = 0; }; then
6978     case `/usr/bin/file conftest.o` in
6979     *64-bit*)
6980       case $lt_cv_prog_gnu_ld in
6981       yes*)
6982         case $host in
6983         i?86-*-solaris*)
6984           LD="${LD-ld} -m elf_x86_64"
6985           ;;
6986         sparc*-*-solaris*)
6987           LD="${LD-ld} -m elf64_sparc"
6988           ;;
6989         esac
6990         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6991         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6992           LD="${LD-ld}_sol2"
6993         fi
6994         ;;
6995       *)
6996         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6997           LD="${LD-ld} -64"
6998         fi
6999         ;;
7000       esac
7001       ;;
7002     esac
7003   fi
7004   rm -rf conftest*
7005   ;;
7006 esac
7007
7008 need_locks="$enable_libtool_lock"
7009
7010 if test -n "$ac_tool_prefix"; then
7011   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7012 set dummy ${ac_tool_prefix}mt; ac_word=$2
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7014 $as_echo_n "checking for $ac_word... " >&6; }
7015 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7016   $as_echo_n "(cached) " >&6
7017 else
7018   if test -n "$MANIFEST_TOOL"; then
7019   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7020 else
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 for as_dir in $PATH
7023 do
7024   IFS=$as_save_IFS
7025   test -z "$as_dir" && as_dir=.
7026     for ac_exec_ext in '' $ac_executable_extensions; do
7027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7028     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7030     break 2
7031   fi
7032 done
7033   done
7034 IFS=$as_save_IFS
7035
7036 fi
7037 fi
7038 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7039 if test -n "$MANIFEST_TOOL"; then
7040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7041 $as_echo "$MANIFEST_TOOL" >&6; }
7042 else
7043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7045 fi
7046
7047
7048 fi
7049 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7050   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7051   # Extract the first word of "mt", so it can be a program name with args.
7052 set dummy mt; ac_word=$2
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7054 $as_echo_n "checking for $ac_word... " >&6; }
7055 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7056   $as_echo_n "(cached) " >&6
7057 else
7058   if test -n "$ac_ct_MANIFEST_TOOL"; then
7059   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7060 else
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 for as_dir in $PATH
7063 do
7064   IFS=$as_save_IFS
7065   test -z "$as_dir" && as_dir=.
7066     for ac_exec_ext in '' $ac_executable_extensions; do
7067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7068     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070     break 2
7071   fi
7072 done
7073   done
7074 IFS=$as_save_IFS
7075
7076 fi
7077 fi
7078 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7079 if test -n "$ac_ct_MANIFEST_TOOL"; then
7080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7081 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7082 else
7083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084 $as_echo "no" >&6; }
7085 fi
7086
7087   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7088     MANIFEST_TOOL=":"
7089   else
7090     case $cross_compiling:$ac_tool_warned in
7091 yes:)
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7094 ac_tool_warned=yes ;;
7095 esac
7096     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7097   fi
7098 else
7099   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7100 fi
7101
7102 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7104 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7105 if ${lt_cv_path_mainfest_tool+:} false; then :
7106   $as_echo_n "(cached) " >&6
7107 else
7108   lt_cv_path_mainfest_tool=no
7109   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7110   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7111   cat conftest.err >&5
7112   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7113     lt_cv_path_mainfest_tool=yes
7114   fi
7115   rm -f conftest*
7116 fi
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7118 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7119 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7120   MANIFEST_TOOL=:
7121 fi
7122
7123
7124
7125
7126
7127
7128   case $host_os in
7129     rhapsody* | darwin*)
7130     if test -n "$ac_tool_prefix"; then
7131   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7132 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134 $as_echo_n "checking for $ac_word... " >&6; }
7135 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7136   $as_echo_n "(cached) " >&6
7137 else
7138   if test -n "$DSYMUTIL"; then
7139   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7140 else
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7143 do
7144   IFS=$as_save_IFS
7145   test -z "$as_dir" && as_dir=.
7146     for ac_exec_ext in '' $ac_executable_extensions; do
7147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150     break 2
7151   fi
7152 done
7153   done
7154 IFS=$as_save_IFS
7155
7156 fi
7157 fi
7158 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7159 if test -n "$DSYMUTIL"; then
7160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7161 $as_echo "$DSYMUTIL" >&6; }
7162 else
7163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 $as_echo "no" >&6; }
7165 fi
7166
7167
7168 fi
7169 if test -z "$ac_cv_prog_DSYMUTIL"; then
7170   ac_ct_DSYMUTIL=$DSYMUTIL
7171   # Extract the first word of "dsymutil", so it can be a program name with args.
7172 set dummy dsymutil; ac_word=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7176   $as_echo_n "(cached) " >&6
7177 else
7178   if test -n "$ac_ct_DSYMUTIL"; then
7179   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7180 else
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH
7183 do
7184   IFS=$as_save_IFS
7185   test -z "$as_dir" && as_dir=.
7186     for ac_exec_ext in '' $ac_executable_extensions; do
7187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190     break 2
7191   fi
7192 done
7193   done
7194 IFS=$as_save_IFS
7195
7196 fi
7197 fi
7198 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7199 if test -n "$ac_ct_DSYMUTIL"; then
7200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7201 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7202 else
7203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204 $as_echo "no" >&6; }
7205 fi
7206
7207   if test "x$ac_ct_DSYMUTIL" = x; then
7208     DSYMUTIL=":"
7209   else
7210     case $cross_compiling:$ac_tool_warned in
7211 yes:)
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7214 ac_tool_warned=yes ;;
7215 esac
7216     DSYMUTIL=$ac_ct_DSYMUTIL
7217   fi
7218 else
7219   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7220 fi
7221
7222     if test -n "$ac_tool_prefix"; then
7223   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7224 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226 $as_echo_n "checking for $ac_word... " >&6; }
7227 if ${ac_cv_prog_NMEDIT+:} false; then :
7228   $as_echo_n "(cached) " >&6
7229 else
7230   if test -n "$NMEDIT"; then
7231   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7232 else
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 for as_dir in $PATH
7235 do
7236   IFS=$as_save_IFS
7237   test -z "$as_dir" && as_dir=.
7238     for ac_exec_ext in '' $ac_executable_extensions; do
7239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7240     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242     break 2
7243   fi
7244 done
7245   done
7246 IFS=$as_save_IFS
7247
7248 fi
7249 fi
7250 NMEDIT=$ac_cv_prog_NMEDIT
7251 if test -n "$NMEDIT"; then
7252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7253 $as_echo "$NMEDIT" >&6; }
7254 else
7255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256 $as_echo "no" >&6; }
7257 fi
7258
7259
7260 fi
7261 if test -z "$ac_cv_prog_NMEDIT"; then
7262   ac_ct_NMEDIT=$NMEDIT
7263   # Extract the first word of "nmedit", so it can be a program name with args.
7264 set dummy nmedit; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7268   $as_echo_n "(cached) " >&6
7269 else
7270   if test -n "$ac_ct_NMEDIT"; then
7271   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7272 else
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7275 do
7276   IFS=$as_save_IFS
7277   test -z "$as_dir" && as_dir=.
7278     for ac_exec_ext in '' $ac_executable_extensions; do
7279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282     break 2
7283   fi
7284 done
7285   done
7286 IFS=$as_save_IFS
7287
7288 fi
7289 fi
7290 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7291 if test -n "$ac_ct_NMEDIT"; then
7292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7293 $as_echo "$ac_ct_NMEDIT" >&6; }
7294 else
7295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7297 fi
7298
7299   if test "x$ac_ct_NMEDIT" = x; then
7300     NMEDIT=":"
7301   else
7302     case $cross_compiling:$ac_tool_warned in
7303 yes:)
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7306 ac_tool_warned=yes ;;
7307 esac
7308     NMEDIT=$ac_ct_NMEDIT
7309   fi
7310 else
7311   NMEDIT="$ac_cv_prog_NMEDIT"
7312 fi
7313
7314     if test -n "$ac_tool_prefix"; then
7315   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7316 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if ${ac_cv_prog_LIPO+:} false; then :
7320   $as_echo_n "(cached) " >&6
7321 else
7322   if test -n "$LIPO"; then
7323   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328   IFS=$as_save_IFS
7329   test -z "$as_dir" && as_dir=.
7330     for ac_exec_ext in '' $ac_executable_extensions; do
7331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334     break 2
7335   fi
7336 done
7337   done
7338 IFS=$as_save_IFS
7339
7340 fi
7341 fi
7342 LIPO=$ac_cv_prog_LIPO
7343 if test -n "$LIPO"; then
7344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7345 $as_echo "$LIPO" >&6; }
7346 else
7347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7349 fi
7350
7351
7352 fi
7353 if test -z "$ac_cv_prog_LIPO"; then
7354   ac_ct_LIPO=$LIPO
7355   # Extract the first word of "lipo", so it can be a program name with args.
7356 set dummy lipo; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7360   $as_echo_n "(cached) " >&6
7361 else
7362   if test -n "$ac_ct_LIPO"; then
7363   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368   IFS=$as_save_IFS
7369   test -z "$as_dir" && as_dir=.
7370     for ac_exec_ext in '' $ac_executable_extensions; do
7371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7372     ac_cv_prog_ac_ct_LIPO="lipo"
7373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374     break 2
7375   fi
7376 done
7377   done
7378 IFS=$as_save_IFS
7379
7380 fi
7381 fi
7382 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7383 if test -n "$ac_ct_LIPO"; then
7384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7385 $as_echo "$ac_ct_LIPO" >&6; }
7386 else
7387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7389 fi
7390
7391   if test "x$ac_ct_LIPO" = x; then
7392     LIPO=":"
7393   else
7394     case $cross_compiling:$ac_tool_warned in
7395 yes:)
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398 ac_tool_warned=yes ;;
7399 esac
7400     LIPO=$ac_ct_LIPO
7401   fi
7402 else
7403   LIPO="$ac_cv_prog_LIPO"
7404 fi
7405
7406     if test -n "$ac_tool_prefix"; then
7407   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7408 set dummy ${ac_tool_prefix}otool; ac_word=$2
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 $as_echo_n "checking for $ac_word... " >&6; }
7411 if ${ac_cv_prog_OTOOL+:} false; then :
7412   $as_echo_n "(cached) " >&6
7413 else
7414   if test -n "$OTOOL"; then
7415   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7416 else
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7419 do
7420   IFS=$as_save_IFS
7421   test -z "$as_dir" && as_dir=.
7422     for ac_exec_ext in '' $ac_executable_extensions; do
7423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7424     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426     break 2
7427   fi
7428 done
7429   done
7430 IFS=$as_save_IFS
7431
7432 fi
7433 fi
7434 OTOOL=$ac_cv_prog_OTOOL
7435 if test -n "$OTOOL"; then
7436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7437 $as_echo "$OTOOL" >&6; }
7438 else
7439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7441 fi
7442
7443
7444 fi
7445 if test -z "$ac_cv_prog_OTOOL"; then
7446   ac_ct_OTOOL=$OTOOL
7447   # Extract the first word of "otool", so it can be a program name with args.
7448 set dummy otool; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7452   $as_echo_n "(cached) " >&6
7453 else
7454   if test -n "$ac_ct_OTOOL"; then
7455   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460   IFS=$as_save_IFS
7461   test -z "$as_dir" && as_dir=.
7462     for ac_exec_ext in '' $ac_executable_extensions; do
7463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464     ac_cv_prog_ac_ct_OTOOL="otool"
7465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466     break 2
7467   fi
7468 done
7469   done
7470 IFS=$as_save_IFS
7471
7472 fi
7473 fi
7474 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7475 if test -n "$ac_ct_OTOOL"; then
7476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7477 $as_echo "$ac_ct_OTOOL" >&6; }
7478 else
7479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7481 fi
7482
7483   if test "x$ac_ct_OTOOL" = x; then
7484     OTOOL=":"
7485   else
7486     case $cross_compiling:$ac_tool_warned in
7487 yes:)
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7490 ac_tool_warned=yes ;;
7491 esac
7492     OTOOL=$ac_ct_OTOOL
7493   fi
7494 else
7495   OTOOL="$ac_cv_prog_OTOOL"
7496 fi
7497
7498     if test -n "$ac_tool_prefix"; then
7499   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7500 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502 $as_echo_n "checking for $ac_word... " >&6; }
7503 if ${ac_cv_prog_OTOOL64+:} false; then :
7504   $as_echo_n "(cached) " >&6
7505 else
7506   if test -n "$OTOOL64"; then
7507   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7508 else
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512   IFS=$as_save_IFS
7513   test -z "$as_dir" && as_dir=.
7514     for ac_exec_ext in '' $ac_executable_extensions; do
7515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518     break 2
7519   fi
7520 done
7521   done
7522 IFS=$as_save_IFS
7523
7524 fi
7525 fi
7526 OTOOL64=$ac_cv_prog_OTOOL64
7527 if test -n "$OTOOL64"; then
7528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7529 $as_echo "$OTOOL64" >&6; }
7530 else
7531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7533 fi
7534
7535
7536 fi
7537 if test -z "$ac_cv_prog_OTOOL64"; then
7538   ac_ct_OTOOL64=$OTOOL64
7539   # Extract the first word of "otool64", so it can be a program name with args.
7540 set dummy otool64; ac_word=$2
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542 $as_echo_n "checking for $ac_word... " >&6; }
7543 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7544   $as_echo_n "(cached) " >&6
7545 else
7546   if test -n "$ac_ct_OTOOL64"; then
7547   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7548 else
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 for as_dir in $PATH
7551 do
7552   IFS=$as_save_IFS
7553   test -z "$as_dir" && as_dir=.
7554     for ac_exec_ext in '' $ac_executable_extensions; do
7555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7556     ac_cv_prog_ac_ct_OTOOL64="otool64"
7557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558     break 2
7559   fi
7560 done
7561   done
7562 IFS=$as_save_IFS
7563
7564 fi
7565 fi
7566 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7567 if test -n "$ac_ct_OTOOL64"; then
7568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7569 $as_echo "$ac_ct_OTOOL64" >&6; }
7570 else
7571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7573 fi
7574
7575   if test "x$ac_ct_OTOOL64" = x; then
7576     OTOOL64=":"
7577   else
7578     case $cross_compiling:$ac_tool_warned in
7579 yes:)
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7582 ac_tool_warned=yes ;;
7583 esac
7584     OTOOL64=$ac_ct_OTOOL64
7585   fi
7586 else
7587   OTOOL64="$ac_cv_prog_OTOOL64"
7588 fi
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7617 $as_echo_n "checking for -single_module linker flag... " >&6; }
7618 if ${lt_cv_apple_cc_single_mod+:} false; then :
7619   $as_echo_n "(cached) " >&6
7620 else
7621   lt_cv_apple_cc_single_mod=no
7622       if test -z "${LT_MULTI_MODULE}"; then
7623         # By default we will add the -single_module flag. You can override
7624         # by either setting the environment variable LT_MULTI_MODULE
7625         # non-empty at configure time, or by adding -multi_module to the
7626         # link flags.
7627         rm -rf libconftest.dylib*
7628         echo "int foo(void){return 1;}" > conftest.c
7629         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7630 -dynamiclib -Wl,-single_module conftest.c" >&5
7631         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7632           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7633         _lt_result=$?
7634         # If there is a non-empty error log, and "single_module"
7635         # appears in it, assume the flag caused a linker warning
7636         if test -s conftest.err && $GREP single_module conftest.err; then
7637           cat conftest.err >&5
7638         # Otherwise, if the output was created with a 0 exit code from
7639         # the compiler, it worked.
7640         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7641           lt_cv_apple_cc_single_mod=yes
7642         else
7643           cat conftest.err >&5
7644         fi
7645         rm -rf libconftest.dylib*
7646         rm -f conftest.*
7647       fi
7648 fi
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7650 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7651
7652     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7653 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7654 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7655   $as_echo_n "(cached) " >&6
7656 else
7657   lt_cv_ld_exported_symbols_list=no
7658       save_LDFLAGS=$LDFLAGS
7659       echo "_main" > conftest.sym
7660       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7661       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h.  */
7663
7664 int
7665 main ()
7666 {
7667
7668   ;
7669   return 0;
7670 }
7671 _ACEOF
7672 if ac_fn_c_try_link "$LINENO"; then :
7673   lt_cv_ld_exported_symbols_list=yes
7674 else
7675   lt_cv_ld_exported_symbols_list=no
7676 fi
7677 rm -f core conftest.err conftest.$ac_objext \
7678     conftest$ac_exeext conftest.$ac_ext
7679         LDFLAGS="$save_LDFLAGS"
7680
7681 fi
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7683 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7684
7685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7686 $as_echo_n "checking for -force_load linker flag... " >&6; }
7687 if ${lt_cv_ld_force_load+:} false; then :
7688   $as_echo_n "(cached) " >&6
7689 else
7690   lt_cv_ld_force_load=no
7691       cat > conftest.c << _LT_EOF
7692 int forced_loaded() { return 2;}
7693 _LT_EOF
7694       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7695       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7696       echo "$AR cru libconftest.a conftest.o" >&5
7697       $AR cru libconftest.a conftest.o 2>&5
7698       echo "$RANLIB libconftest.a" >&5
7699       $RANLIB libconftest.a 2>&5
7700       cat > conftest.c << _LT_EOF
7701 int main() { return 0;}
7702 _LT_EOF
7703       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7704       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7705       _lt_result=$?
7706       if test -s conftest.err && $GREP force_load conftest.err; then
7707         cat conftest.err >&5
7708       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7709         lt_cv_ld_force_load=yes
7710       else
7711         cat conftest.err >&5
7712       fi
7713         rm -f conftest.err libconftest.a conftest conftest.c
7714         rm -rf conftest.dSYM
7715
7716 fi
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7718 $as_echo "$lt_cv_ld_force_load" >&6; }
7719     case $host_os in
7720     rhapsody* | darwin1.[012])
7721       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7722     darwin1.*)
7723       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7724     darwin*) # darwin 5.x on
7725       # if running on 10.5 or later, the deployment target defaults
7726       # to the OS version, if on x86, and 10.4, the deployment
7727       # target defaults to 10.4. Don't you love it?
7728       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7729         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7730           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7731         10.[012]*)
7732           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7733         10.*)
7734           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7735       esac
7736     ;;
7737   esac
7738     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7739       _lt_dar_single_mod='$single_module'
7740     fi
7741     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7742       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7743     else
7744       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7745     fi
7746     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7747       _lt_dsymutil='~$DSYMUTIL $lib || :'
7748     else
7749       _lt_dsymutil=
7750     fi
7751     ;;
7752   esac
7753
7754 for ac_header in dlfcn.h
7755 do :
7756   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7757 "
7758 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7759   cat >>confdefs.h <<_ACEOF
7760 #define HAVE_DLFCN_H 1
7761 _ACEOF
7762
7763 fi
7764
7765 done
7766
7767
7768
7769
7770
7771 # Set options
7772
7773
7774
7775         enable_dlopen=no
7776
7777
7778   enable_win32_dll=no
7779
7780
7781             # Check whether --enable-shared was given.
7782 if test "${enable_shared+set}" = set; then :
7783   enableval=$enable_shared; p=${PACKAGE-default}
7784     case $enableval in
7785     yes) enable_shared=yes ;;
7786     no) enable_shared=no ;;
7787     *)
7788       enable_shared=no
7789       # Look at the argument we got.  We use all the common list separators.
7790       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7791       for pkg in $enableval; do
7792         IFS="$lt_save_ifs"
7793         if test "X$pkg" = "X$p"; then
7794           enable_shared=yes
7795         fi
7796       done
7797       IFS="$lt_save_ifs"
7798       ;;
7799     esac
7800 else
7801   enable_shared=yes
7802 fi
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814 # Check whether --with-pic was given.
7815 if test "${with_pic+set}" = set; then :
7816   withval=$with_pic; lt_p=${PACKAGE-default}
7817     case $withval in
7818     yes|no) pic_mode=$withval ;;
7819     *)
7820       pic_mode=default
7821       # Look at the argument we got.  We use all the common list separators.
7822       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7823       for lt_pkg in $withval; do
7824         IFS="$lt_save_ifs"
7825         if test "X$lt_pkg" = "X$lt_p"; then
7826           pic_mode=yes
7827         fi
7828       done
7829       IFS="$lt_save_ifs"
7830       ;;
7831     esac
7832 else
7833   pic_mode=default
7834 fi
7835
7836
7837 test -z "$pic_mode" && pic_mode=default
7838
7839
7840
7841
7842
7843
7844
7845   # Check whether --enable-fast-install was given.
7846 if test "${enable_fast_install+set}" = set; then :
7847   enableval=$enable_fast_install; p=${PACKAGE-default}
7848     case $enableval in
7849     yes) enable_fast_install=yes ;;
7850     no) enable_fast_install=no ;;
7851     *)
7852       enable_fast_install=no
7853       # Look at the argument we got.  We use all the common list separators.
7854       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7855       for pkg in $enableval; do
7856         IFS="$lt_save_ifs"
7857         if test "X$pkg" = "X$p"; then
7858           enable_fast_install=yes
7859         fi
7860       done
7861       IFS="$lt_save_ifs"
7862       ;;
7863     esac
7864 else
7865   enable_fast_install=yes
7866 fi
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878 # This can be used to rebuild libtool when needed
7879 LIBTOOL_DEPS="$ltmain"
7880
7881 # Always use our own libtool.
7882 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913 test -z "$LN_S" && LN_S="ln -s"
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928 if test -n "${ZSH_VERSION+set}" ; then
7929    setopt NO_GLOB_SUBST
7930 fi
7931
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7933 $as_echo_n "checking for objdir... " >&6; }
7934 if ${lt_cv_objdir+:} false; then :
7935   $as_echo_n "(cached) " >&6
7936 else
7937   rm -f .libs 2>/dev/null
7938 mkdir .libs 2>/dev/null
7939 if test -d .libs; then
7940   lt_cv_objdir=.libs
7941 else
7942   # MS-DOS does not allow filenames that begin with a dot.
7943   lt_cv_objdir=_libs
7944 fi
7945 rmdir .libs 2>/dev/null
7946 fi
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7948 $as_echo "$lt_cv_objdir" >&6; }
7949 objdir=$lt_cv_objdir
7950
7951
7952
7953
7954
7955 cat >>confdefs.h <<_ACEOF
7956 #define LT_OBJDIR "$lt_cv_objdir/"
7957 _ACEOF
7958
7959
7960
7961
7962 case $host_os in
7963 aix3*)
7964   # AIX sometimes has problems with the GCC collect2 program.  For some
7965   # reason, if we set the COLLECT_NAMES environment variable, the problems
7966   # vanish in a puff of smoke.
7967   if test "X${COLLECT_NAMES+set}" != Xset; then
7968     COLLECT_NAMES=
7969     export COLLECT_NAMES
7970   fi
7971   ;;
7972 esac
7973
7974 # Global variables:
7975 ofile=libtool
7976 can_build_shared=yes
7977
7978 # All known linkers require a `.a' archive for static linking (except MSVC,
7979 # which needs '.lib').
7980 libext=a
7981
7982 with_gnu_ld="$lt_cv_prog_gnu_ld"
7983
7984 old_CC="$CC"
7985 old_CFLAGS="$CFLAGS"
7986
7987 # Set sane defaults for various variables
7988 test -z "$CC" && CC=cc
7989 test -z "$LTCC" && LTCC=$CC
7990 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7991 test -z "$LD" && LD=ld
7992 test -z "$ac_objext" && ac_objext=o
7993
7994 for cc_temp in $compiler""; do
7995   case $cc_temp in
7996     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7997     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7998     \-*) ;;
7999     *) break;;
8000   esac
8001 done
8002 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8003
8004
8005 # Only perform the check for file, if the check method requires it
8006 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8007 case $deplibs_check_method in
8008 file_magic*)
8009   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8011 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8012 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8013   $as_echo_n "(cached) " >&6
8014 else
8015   case $MAGIC_CMD in
8016 [\\/*] |  ?:[\\/]*)
8017   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8018   ;;
8019 *)
8020   lt_save_MAGIC_CMD="$MAGIC_CMD"
8021   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8022   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8023   for ac_dir in $ac_dummy; do
8024     IFS="$lt_save_ifs"
8025     test -z "$ac_dir" && ac_dir=.
8026     if test -f $ac_dir/${ac_tool_prefix}file; then
8027       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8028       if test -n "$file_magic_test_file"; then
8029         case $deplibs_check_method in
8030         "file_magic "*)
8031           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8032           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8033           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8034             $EGREP "$file_magic_regex" > /dev/null; then
8035             :
8036           else
8037             cat <<_LT_EOF 1>&2
8038
8039 *** Warning: the command libtool uses to detect shared libraries,
8040 *** $file_magic_cmd, produces output that libtool cannot recognize.
8041 *** The result is that libtool may fail to recognize shared libraries
8042 *** as such.  This will affect the creation of libtool libraries that
8043 *** depend on shared libraries, but programs linked with such libtool
8044 *** libraries will work regardless of this problem.  Nevertheless, you
8045 *** may want to report the problem to your system manager and/or to
8046 *** bug-libtool@gnu.org
8047
8048 _LT_EOF
8049           fi ;;
8050         esac
8051       fi
8052       break
8053     fi
8054   done
8055   IFS="$lt_save_ifs"
8056   MAGIC_CMD="$lt_save_MAGIC_CMD"
8057   ;;
8058 esac
8059 fi
8060
8061 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8062 if test -n "$MAGIC_CMD"; then
8063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8064 $as_echo "$MAGIC_CMD" >&6; }
8065 else
8066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 $as_echo "no" >&6; }
8068 fi
8069
8070
8071
8072
8073
8074 if test -z "$lt_cv_path_MAGIC_CMD"; then
8075   if test -n "$ac_tool_prefix"; then
8076     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8077 $as_echo_n "checking for file... " >&6; }
8078 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8079   $as_echo_n "(cached) " >&6
8080 else
8081   case $MAGIC_CMD in
8082 [\\/*] |  ?:[\\/]*)
8083   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8084   ;;
8085 *)
8086   lt_save_MAGIC_CMD="$MAGIC_CMD"
8087   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8088   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8089   for ac_dir in $ac_dummy; do
8090     IFS="$lt_save_ifs"
8091     test -z "$ac_dir" && ac_dir=.
8092     if test -f $ac_dir/file; then
8093       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8094       if test -n "$file_magic_test_file"; then
8095         case $deplibs_check_method in
8096         "file_magic "*)
8097           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8098           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8099           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8100             $EGREP "$file_magic_regex" > /dev/null; then
8101             :
8102           else
8103             cat <<_LT_EOF 1>&2
8104
8105 *** Warning: the command libtool uses to detect shared libraries,
8106 *** $file_magic_cmd, produces output that libtool cannot recognize.
8107 *** The result is that libtool may fail to recognize shared libraries
8108 *** as such.  This will affect the creation of libtool libraries that
8109 *** depend on shared libraries, but programs linked with such libtool
8110 *** libraries will work regardless of this problem.  Nevertheless, you
8111 *** may want to report the problem to your system manager and/or to
8112 *** bug-libtool@gnu.org
8113
8114 _LT_EOF
8115           fi ;;
8116         esac
8117       fi
8118       break
8119     fi
8120   done
8121   IFS="$lt_save_ifs"
8122   MAGIC_CMD="$lt_save_MAGIC_CMD"
8123   ;;
8124 esac
8125 fi
8126
8127 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8128 if test -n "$MAGIC_CMD"; then
8129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8130 $as_echo "$MAGIC_CMD" >&6; }
8131 else
8132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8134 fi
8135
8136
8137   else
8138     MAGIC_CMD=:
8139   fi
8140 fi
8141
8142   fi
8143   ;;
8144 esac
8145
8146 # Use C for the default configuration in the libtool script
8147
8148 lt_save_CC="$CC"
8149 ac_ext=c
8150 ac_cpp='$CPP $CPPFLAGS'
8151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8154
8155
8156 # Source file extension for C test sources.
8157 ac_ext=c
8158
8159 # Object file extension for compiled C test sources.
8160 objext=o
8161 objext=$objext
8162
8163 # Code to be used in simple compile tests
8164 lt_simple_compile_test_code="int some_variable = 0;"
8165
8166 # Code to be used in simple link tests
8167 lt_simple_link_test_code='int main(){return(0);}'
8168
8169
8170
8171
8172
8173
8174
8175 # If no C compiler was specified, use CC.
8176 LTCC=${LTCC-"$CC"}
8177
8178 # If no C compiler flags were specified, use CFLAGS.
8179 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8180
8181 # Allow CC to be a program name with arguments.
8182 compiler=$CC
8183
8184 # Save the default compiler, since it gets overwritten when the other
8185 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8186 compiler_DEFAULT=$CC
8187
8188 # save warnings/boilerplate of simple test code
8189 ac_outfile=conftest.$ac_objext
8190 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8191 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8192 _lt_compiler_boilerplate=`cat conftest.err`
8193 $RM conftest*
8194
8195 ac_outfile=conftest.$ac_objext
8196 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8197 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8198 _lt_linker_boilerplate=`cat conftest.err`
8199 $RM -r conftest*
8200
8201
8202 if test -n "$compiler"; then
8203
8204 lt_prog_compiler_no_builtin_flag=
8205
8206 if test "$GCC" = yes; then
8207   case $cc_basename in
8208   nvcc*)
8209     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8210   *)
8211     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8212   esac
8213
8214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8215 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8216 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8217   $as_echo_n "(cached) " >&6
8218 else
8219   lt_cv_prog_compiler_rtti_exceptions=no
8220    ac_outfile=conftest.$ac_objext
8221    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8222    lt_compiler_flag="-fno-rtti -fno-exceptions"
8223    # Insert the option either (1) after the last *FLAGS variable, or
8224    # (2) before a word containing "conftest.", or (3) at the end.
8225    # Note that $ac_compile itself does not contain backslashes and begins
8226    # with a dollar sign (not a hyphen), so the echo should work correctly.
8227    # The option is referenced via a variable to avoid confusing sed.
8228    lt_compile=`echo "$ac_compile" | $SED \
8229    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8230    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8231    -e 's:$: $lt_compiler_flag:'`
8232    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8233    (eval "$lt_compile" 2>conftest.err)
8234    ac_status=$?
8235    cat conftest.err >&5
8236    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237    if (exit $ac_status) && test -s "$ac_outfile"; then
8238      # The compiler can only warn and ignore the option if not recognized
8239      # So say no if there are warnings other than the usual output.
8240      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8241      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8242      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8243        lt_cv_prog_compiler_rtti_exceptions=yes
8244      fi
8245    fi
8246    $RM conftest*
8247
8248 fi
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8250 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8251
8252 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8253     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8254 else
8255     :
8256 fi
8257
8258 fi
8259
8260
8261
8262
8263
8264
8265   lt_prog_compiler_wl=
8266 lt_prog_compiler_pic=
8267 lt_prog_compiler_static=
8268
8269
8270   if test "$GCC" = yes; then
8271     lt_prog_compiler_wl='-Wl,'
8272     lt_prog_compiler_static='-static'
8273
8274     case $host_os in
8275       aix*)
8276       # All AIX code is PIC.
8277       if test "$host_cpu" = ia64; then
8278         # AIX 5 now supports IA64 processor
8279         lt_prog_compiler_static='-Bstatic'
8280       fi
8281       ;;
8282
8283     amigaos*)
8284       case $host_cpu in
8285       powerpc)
8286             # see comment about AmigaOS4 .so support
8287             lt_prog_compiler_pic='-fPIC'
8288         ;;
8289       m68k)
8290             # FIXME: we need at least 68020 code to build shared libraries, but
8291             # adding the `-m68020' flag to GCC prevents building anything better,
8292             # like `-m68040'.
8293             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8294         ;;
8295       esac
8296       ;;
8297
8298     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8299       # PIC is the default for these OSes.
8300       ;;
8301
8302     mingw* | cygwin* | pw32* | os2* | cegcc*)
8303       # This hack is so that the source file can tell whether it is being
8304       # built for inclusion in a dll (and should export symbols for example).
8305       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8306       # (--disable-auto-import) libraries
8307       lt_prog_compiler_pic='-DDLL_EXPORT'
8308       ;;
8309
8310     darwin* | rhapsody*)
8311       # PIC is the default on this platform
8312       # Common symbols not allowed in MH_DYLIB files
8313       lt_prog_compiler_pic='-fno-common'
8314       ;;
8315
8316     haiku*)
8317       # PIC is the default for Haiku.
8318       # The "-static" flag exists, but is broken.
8319       lt_prog_compiler_static=
8320       ;;
8321
8322     hpux*)
8323       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8324       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8325       # sets the default TLS model and affects inlining.
8326       case $host_cpu in
8327       hppa*64*)
8328         # +Z the default
8329         ;;
8330       *)
8331         lt_prog_compiler_pic='-fPIC'
8332         ;;
8333       esac
8334       ;;
8335
8336     interix[3-9]*)
8337       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8338       # Instead, we relocate shared libraries at runtime.
8339       ;;
8340
8341     msdosdjgpp*)
8342       # Just because we use GCC doesn't mean we suddenly get shared libraries
8343       # on systems that don't support them.
8344       lt_prog_compiler_can_build_shared=no
8345       enable_shared=no
8346       ;;
8347
8348     *nto* | *qnx*)
8349       # QNX uses GNU C++, but need to define -shared option too, otherwise
8350       # it will coredump.
8351       lt_prog_compiler_pic='-fPIC -shared'
8352       ;;
8353
8354     sysv4*MP*)
8355       if test -d /usr/nec; then
8356         lt_prog_compiler_pic=-Kconform_pic
8357       fi
8358       ;;
8359
8360     *)
8361       lt_prog_compiler_pic='-fPIC'
8362       ;;
8363     esac
8364
8365     case $cc_basename in
8366     nvcc*) # Cuda Compiler Driver 2.2
8367       lt_prog_compiler_wl='-Xlinker '
8368       if test -n "$lt_prog_compiler_pic"; then
8369         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8370       fi
8371       ;;
8372     esac
8373   else
8374     # PORTME Check for flag to pass linker flags through the system compiler.
8375     case $host_os in
8376     aix*)
8377       lt_prog_compiler_wl='-Wl,'
8378       if test "$host_cpu" = ia64; then
8379         # AIX 5 now supports IA64 processor
8380         lt_prog_compiler_static='-Bstatic'
8381       else
8382         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8383       fi
8384       ;;
8385
8386     mingw* | cygwin* | pw32* | os2* | cegcc*)
8387       # This hack is so that the source file can tell whether it is being
8388       # built for inclusion in a dll (and should export symbols for example).
8389       lt_prog_compiler_pic='-DDLL_EXPORT'
8390       ;;
8391
8392     hpux9* | hpux10* | hpux11*)
8393       lt_prog_compiler_wl='-Wl,'
8394       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8395       # not for PA HP-UX.
8396       case $host_cpu in
8397       hppa*64*|ia64*)
8398         # +Z the default
8399         ;;
8400       *)
8401         lt_prog_compiler_pic='+Z'
8402         ;;
8403       esac
8404       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8405       lt_prog_compiler_static='${wl}-a ${wl}archive'
8406       ;;
8407
8408     irix5* | irix6* | nonstopux*)
8409       lt_prog_compiler_wl='-Wl,'
8410       # PIC (with -KPIC) is the default.
8411       lt_prog_compiler_static='-non_shared'
8412       ;;
8413
8414     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8415       case $cc_basename in
8416       # old Intel for x86_64 which still supported -KPIC.
8417       ecc*)
8418         lt_prog_compiler_wl='-Wl,'
8419         lt_prog_compiler_pic='-KPIC'
8420         lt_prog_compiler_static='-static'
8421         ;;
8422       # icc used to be incompatible with GCC.
8423       # ICC 10 doesn't accept -KPIC any more.
8424       icc* | ifort*)
8425         lt_prog_compiler_wl='-Wl,'
8426         lt_prog_compiler_pic='-fPIC'
8427         lt_prog_compiler_static='-static'
8428         ;;
8429       # Lahey Fortran 8.1.
8430       lf95*)
8431         lt_prog_compiler_wl='-Wl,'
8432         lt_prog_compiler_pic='--shared'
8433         lt_prog_compiler_static='--static'
8434         ;;
8435       nagfor*)
8436         # NAG Fortran compiler
8437         lt_prog_compiler_wl='-Wl,-Wl,,'
8438         lt_prog_compiler_pic='-PIC'
8439         lt_prog_compiler_static='-Bstatic'
8440         ;;
8441       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8442         # Portland Group compilers (*not* the Pentium gcc compiler,
8443         # which looks to be a dead project)
8444         lt_prog_compiler_wl='-Wl,'
8445         lt_prog_compiler_pic='-fpic'
8446         lt_prog_compiler_static='-Bstatic'
8447         ;;
8448       ccc*)
8449         lt_prog_compiler_wl='-Wl,'
8450         # All Alpha code is PIC.
8451         lt_prog_compiler_static='-non_shared'
8452         ;;
8453       xl* | bgxl* | bgf* | mpixl*)
8454         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8455         lt_prog_compiler_wl='-Wl,'
8456         lt_prog_compiler_pic='-qpic'
8457         lt_prog_compiler_static='-qstaticlink'
8458         ;;
8459       *)
8460         case `$CC -V 2>&1 | sed 5q` in
8461         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8462           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8463           lt_prog_compiler_pic='-KPIC'
8464           lt_prog_compiler_static='-Bstatic'
8465           lt_prog_compiler_wl=''
8466           ;;
8467         *Sun\ F* | *Sun*Fortran*)
8468           lt_prog_compiler_pic='-KPIC'
8469           lt_prog_compiler_static='-Bstatic'
8470           lt_prog_compiler_wl='-Qoption ld '
8471           ;;
8472         *Sun\ C*)
8473           # Sun C 5.9
8474           lt_prog_compiler_pic='-KPIC'
8475           lt_prog_compiler_static='-Bstatic'
8476           lt_prog_compiler_wl='-Wl,'
8477           ;;
8478         *Intel*\ [CF]*Compiler*)
8479           lt_prog_compiler_wl='-Wl,'
8480           lt_prog_compiler_pic='-fPIC'
8481           lt_prog_compiler_static='-static'
8482           ;;
8483         *Portland\ Group*)
8484           lt_prog_compiler_wl='-Wl,'
8485           lt_prog_compiler_pic='-fpic'
8486           lt_prog_compiler_static='-Bstatic'
8487           ;;
8488         esac
8489         ;;
8490       esac
8491       ;;
8492
8493     newsos6)
8494       lt_prog_compiler_pic='-KPIC'
8495       lt_prog_compiler_static='-Bstatic'
8496       ;;
8497
8498     *nto* | *qnx*)
8499       # QNX uses GNU C++, but need to define -shared option too, otherwise
8500       # it will coredump.
8501       lt_prog_compiler_pic='-fPIC -shared'
8502       ;;
8503
8504     osf3* | osf4* | osf5*)
8505       lt_prog_compiler_wl='-Wl,'
8506       # All OSF/1 code is PIC.
8507       lt_prog_compiler_static='-non_shared'
8508       ;;
8509
8510     rdos*)
8511       lt_prog_compiler_static='-non_shared'
8512       ;;
8513
8514     solaris*)
8515       lt_prog_compiler_pic='-KPIC'
8516       lt_prog_compiler_static='-Bstatic'
8517       case $cc_basename in
8518       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8519         lt_prog_compiler_wl='-Qoption ld ';;
8520       *)
8521         lt_prog_compiler_wl='-Wl,';;
8522       esac
8523       ;;
8524
8525     sunos4*)
8526       lt_prog_compiler_wl='-Qoption ld '
8527       lt_prog_compiler_pic='-PIC'
8528       lt_prog_compiler_static='-Bstatic'
8529       ;;
8530
8531     sysv4 | sysv4.2uw2* | sysv4.3*)
8532       lt_prog_compiler_wl='-Wl,'
8533       lt_prog_compiler_pic='-KPIC'
8534       lt_prog_compiler_static='-Bstatic'
8535       ;;
8536
8537     sysv4*MP*)
8538       if test -d /usr/nec ;then
8539         lt_prog_compiler_pic='-Kconform_pic'
8540         lt_prog_compiler_static='-Bstatic'
8541       fi
8542       ;;
8543
8544     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8545       lt_prog_compiler_wl='-Wl,'
8546       lt_prog_compiler_pic='-KPIC'
8547       lt_prog_compiler_static='-Bstatic'
8548       ;;
8549
8550     unicos*)
8551       lt_prog_compiler_wl='-Wl,'
8552       lt_prog_compiler_can_build_shared=no
8553       ;;
8554
8555     uts4*)
8556       lt_prog_compiler_pic='-pic'
8557       lt_prog_compiler_static='-Bstatic'
8558       ;;
8559
8560     *)
8561       lt_prog_compiler_can_build_shared=no
8562       ;;
8563     esac
8564   fi
8565
8566 case $host_os in
8567   # For platforms which do not support PIC, -DPIC is meaningless:
8568   *djgpp*)
8569     lt_prog_compiler_pic=
8570     ;;
8571   *)
8572     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8573     ;;
8574 esac
8575
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8577 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8578 if ${lt_cv_prog_compiler_pic+:} false; then :
8579   $as_echo_n "(cached) " >&6
8580 else
8581   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8582 fi
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8584 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8585 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8586
8587 #
8588 # Check to make sure the PIC flag actually works.
8589 #
8590 if test -n "$lt_prog_compiler_pic"; then
8591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8592 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8593 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8594   $as_echo_n "(cached) " >&6
8595 else
8596   lt_cv_prog_compiler_pic_works=no
8597    ac_outfile=conftest.$ac_objext
8598    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8599    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8600    # Insert the option either (1) after the last *FLAGS variable, or
8601    # (2) before a word containing "conftest.", or (3) at the end.
8602    # Note that $ac_compile itself does not contain backslashes and begins
8603    # with a dollar sign (not a hyphen), so the echo should work correctly.
8604    # The option is referenced via a variable to avoid confusing sed.
8605    lt_compile=`echo "$ac_compile" | $SED \
8606    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8607    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8608    -e 's:$: $lt_compiler_flag:'`
8609    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8610    (eval "$lt_compile" 2>conftest.err)
8611    ac_status=$?
8612    cat conftest.err >&5
8613    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614    if (exit $ac_status) && test -s "$ac_outfile"; then
8615      # The compiler can only warn and ignore the option if not recognized
8616      # So say no if there are warnings other than the usual output.
8617      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8618      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8619      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8620        lt_cv_prog_compiler_pic_works=yes
8621      fi
8622    fi
8623    $RM conftest*
8624
8625 fi
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8627 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8628
8629 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8630     case $lt_prog_compiler_pic in
8631      "" | " "*) ;;
8632      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8633      esac
8634 else
8635     lt_prog_compiler_pic=
8636      lt_prog_compiler_can_build_shared=no
8637 fi
8638
8639 fi
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651 #
8652 # Check to make sure the static flag actually works.
8653 #
8654 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8656 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8657 if ${lt_cv_prog_compiler_static_works+:} false; then :
8658   $as_echo_n "(cached) " >&6
8659 else
8660   lt_cv_prog_compiler_static_works=no
8661    save_LDFLAGS="$LDFLAGS"
8662    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8663    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8664    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8665      # The linker can only warn and ignore the option if not recognized
8666      # So say no if there are warnings
8667      if test -s conftest.err; then
8668        # Append any errors to the config.log.
8669        cat conftest.err 1>&5
8670        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8671        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8672        if diff conftest.exp conftest.er2 >/dev/null; then
8673          lt_cv_prog_compiler_static_works=yes
8674        fi
8675      else
8676        lt_cv_prog_compiler_static_works=yes
8677      fi
8678    fi
8679    $RM -r conftest*
8680    LDFLAGS="$save_LDFLAGS"
8681
8682 fi
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8684 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8685
8686 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8687     :
8688 else
8689     lt_prog_compiler_static=
8690 fi
8691
8692
8693
8694
8695
8696
8697
8698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8699 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8700 if ${lt_cv_prog_compiler_c_o+:} false; then :
8701   $as_echo_n "(cached) " >&6
8702 else
8703   lt_cv_prog_compiler_c_o=no
8704    $RM -r conftest 2>/dev/null
8705    mkdir conftest
8706    cd conftest
8707    mkdir out
8708    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8709
8710    lt_compiler_flag="-o out/conftest2.$ac_objext"
8711    # Insert the option either (1) after the last *FLAGS variable, or
8712    # (2) before a word containing "conftest.", or (3) at the end.
8713    # Note that $ac_compile itself does not contain backslashes and begins
8714    # with a dollar sign (not a hyphen), so the echo should work correctly.
8715    lt_compile=`echo "$ac_compile" | $SED \
8716    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8717    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8718    -e 's:$: $lt_compiler_flag:'`
8719    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8720    (eval "$lt_compile" 2>out/conftest.err)
8721    ac_status=$?
8722    cat out/conftest.err >&5
8723    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8725    then
8726      # The compiler can only warn and ignore the option if not recognized
8727      # So say no if there are warnings
8728      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8729      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8730      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8731        lt_cv_prog_compiler_c_o=yes
8732      fi
8733    fi
8734    chmod u+w . 2>&5
8735    $RM conftest*
8736    # SGI C++ compiler will create directory out/ii_files/ for
8737    # template instantiation
8738    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8739    $RM out/* && rmdir out
8740    cd ..
8741    $RM -r conftest
8742    $RM conftest*
8743
8744 fi
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8746 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8747
8748
8749
8750
8751
8752
8753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8754 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8755 if ${lt_cv_prog_compiler_c_o+:} false; then :
8756   $as_echo_n "(cached) " >&6
8757 else
8758   lt_cv_prog_compiler_c_o=no
8759    $RM -r conftest 2>/dev/null
8760    mkdir conftest
8761    cd conftest
8762    mkdir out
8763    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8764
8765    lt_compiler_flag="-o out/conftest2.$ac_objext"
8766    # Insert the option either (1) after the last *FLAGS variable, or
8767    # (2) before a word containing "conftest.", or (3) at the end.
8768    # Note that $ac_compile itself does not contain backslashes and begins
8769    # with a dollar sign (not a hyphen), so the echo should work correctly.
8770    lt_compile=`echo "$ac_compile" | $SED \
8771    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8772    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8773    -e 's:$: $lt_compiler_flag:'`
8774    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8775    (eval "$lt_compile" 2>out/conftest.err)
8776    ac_status=$?
8777    cat out/conftest.err >&5
8778    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8780    then
8781      # The compiler can only warn and ignore the option if not recognized
8782      # So say no if there are warnings
8783      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8784      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8785      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8786        lt_cv_prog_compiler_c_o=yes
8787      fi
8788    fi
8789    chmod u+w . 2>&5
8790    $RM conftest*
8791    # SGI C++ compiler will create directory out/ii_files/ for
8792    # template instantiation
8793    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8794    $RM out/* && rmdir out
8795    cd ..
8796    $RM -r conftest
8797    $RM conftest*
8798
8799 fi
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8801 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8802
8803
8804
8805
8806 hard_links="nottested"
8807 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8808   # do not overwrite the value of need_locks provided by the user
8809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8810 $as_echo_n "checking if we can lock with hard links... " >&6; }
8811   hard_links=yes
8812   $RM conftest*
8813   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8814   touch conftest.a
8815   ln conftest.a conftest.b 2>&5 || hard_links=no
8816   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8818 $as_echo "$hard_links" >&6; }
8819   if test "$hard_links" = no; then
8820     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8821 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8822     need_locks=warn
8823   fi
8824 else
8825   need_locks=no
8826 fi
8827
8828
8829
8830
8831
8832
8833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8834 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8835
8836   runpath_var=
8837   allow_undefined_flag=
8838   always_export_symbols=no
8839   archive_cmds=
8840   archive_expsym_cmds=
8841   compiler_needs_object=no
8842   enable_shared_with_static_runtimes=no
8843   export_dynamic_flag_spec=
8844   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8845   hardcode_automatic=no
8846   hardcode_direct=no
8847   hardcode_direct_absolute=no
8848   hardcode_libdir_flag_spec=
8849   hardcode_libdir_separator=
8850   hardcode_minus_L=no
8851   hardcode_shlibpath_var=unsupported
8852   inherit_rpath=no
8853   link_all_deplibs=unknown
8854   module_cmds=
8855   module_expsym_cmds=
8856   old_archive_from_new_cmds=
8857   old_archive_from_expsyms_cmds=
8858   thread_safe_flag_spec=
8859   whole_archive_flag_spec=
8860   # include_expsyms should be a list of space-separated symbols to be *always*
8861   # included in the symbol list
8862   include_expsyms=
8863   # exclude_expsyms can be an extended regexp of symbols to exclude
8864   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8865   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8866   # as well as any symbol that contains `d'.
8867   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8868   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8869   # platforms (ab)use it in PIC code, but their linkers get confused if
8870   # the symbol is explicitly referenced.  Since portable code cannot
8871   # rely on this symbol name, it's probably fine to never include it in
8872   # preloaded symbol tables.
8873   # Exclude shared library initialization/finalization symbols.
8874   extract_expsyms_cmds=
8875
8876   case $host_os in
8877   cygwin* | mingw* | pw32* | cegcc*)
8878     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8879     # When not using gcc, we currently assume that we are using
8880     # Microsoft Visual C++.
8881     if test "$GCC" != yes; then
8882       with_gnu_ld=no
8883     fi
8884     ;;
8885   interix*)
8886     # we just hope/assume this is gcc and not c89 (= MSVC++)
8887     with_gnu_ld=yes
8888     ;;
8889   openbsd*)
8890     with_gnu_ld=no
8891     ;;
8892   linux* | k*bsd*-gnu | gnu*)
8893     link_all_deplibs=no
8894     ;;
8895   esac
8896
8897   ld_shlibs=yes
8898
8899   # On some targets, GNU ld is compatible enough with the native linker
8900   # that we're better off using the native interface for both.
8901   lt_use_gnu_ld_interface=no
8902   if test "$with_gnu_ld" = yes; then
8903     case $host_os in
8904       aix*)
8905         # The AIX port of GNU ld has always aspired to compatibility
8906         # with the native linker.  However, as the warning in the GNU ld
8907         # block says, versions before 2.19.5* couldn't really create working
8908         # shared libraries, regardless of the interface used.
8909         case `$LD -v 2>&1` in
8910           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8911           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8912           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8913           *)
8914             lt_use_gnu_ld_interface=yes
8915             ;;
8916         esac
8917         ;;
8918       *)
8919         lt_use_gnu_ld_interface=yes
8920         ;;
8921     esac
8922   fi
8923
8924   if test "$lt_use_gnu_ld_interface" = yes; then
8925     # If archive_cmds runs LD, not CC, wlarc should be empty
8926     wlarc='${wl}'
8927
8928     # Set some defaults for GNU ld with shared library support. These
8929     # are reset later if shared libraries are not supported. Putting them
8930     # here allows them to be overridden if necessary.
8931     runpath_var=LD_RUN_PATH
8932     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8933     export_dynamic_flag_spec='${wl}--export-dynamic'
8934     # ancient GNU ld didn't support --whole-archive et. al.
8935     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8936       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8937     else
8938       whole_archive_flag_spec=
8939     fi
8940     supports_anon_versioning=no
8941     case `$LD -v 2>&1` in
8942       *GNU\ gold*) supports_anon_versioning=yes ;;
8943       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8944       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8945       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8946       *\ 2.11.*) ;; # other 2.11 versions
8947       *) supports_anon_versioning=yes ;;
8948     esac
8949
8950     # See if GNU ld supports shared libraries.
8951     case $host_os in
8952     aix[3-9]*)
8953       # On AIX/PPC, the GNU linker is very broken
8954       if test "$host_cpu" != ia64; then
8955         ld_shlibs=no
8956         cat <<_LT_EOF 1>&2
8957
8958 *** Warning: the GNU linker, at least up to release 2.19, is reported
8959 *** to be unable to reliably create shared libraries on AIX.
8960 *** Therefore, libtool is disabling shared libraries support.  If you
8961 *** really care for shared libraries, you may want to install binutils
8962 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8963 *** You will then need to restart the configuration process.
8964
8965 _LT_EOF
8966       fi
8967       ;;
8968
8969     amigaos*)
8970       case $host_cpu in
8971       powerpc)
8972             # see comment about AmigaOS4 .so support
8973             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8974             archive_expsym_cmds=''
8975         ;;
8976       m68k)
8977             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)'
8978             hardcode_libdir_flag_spec='-L$libdir'
8979             hardcode_minus_L=yes
8980         ;;
8981       esac
8982       ;;
8983
8984     beos*)
8985       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8986         allow_undefined_flag=unsupported
8987         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8988         # support --undefined.  This deserves some investigation.  FIXME
8989         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8990       else
8991         ld_shlibs=no
8992       fi
8993       ;;
8994
8995     cygwin* | mingw* | pw32* | cegcc*)
8996       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8997       # as there is no search path for DLLs.
8998       hardcode_libdir_flag_spec='-L$libdir'
8999       export_dynamic_flag_spec='${wl}--export-all-symbols'
9000       allow_undefined_flag=unsupported
9001       always_export_symbols=no
9002       enable_shared_with_static_runtimes=yes
9003       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'
9004       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9005
9006       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9007         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9008         # If the export-symbols file already is a .def file (1st line
9009         # is EXPORTS), use it as is; otherwise, prepend...
9010         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9011           cp $export_symbols $output_objdir/$soname.def;
9012         else
9013           echo EXPORTS > $output_objdir/$soname.def;
9014           cat $export_symbols >> $output_objdir/$soname.def;
9015         fi~
9016         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9017       else
9018         ld_shlibs=no
9019       fi
9020       ;;
9021
9022     haiku*)
9023       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9024       link_all_deplibs=yes
9025       ;;
9026
9027     interix[3-9]*)
9028       hardcode_direct=no
9029       hardcode_shlibpath_var=no
9030       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9031       export_dynamic_flag_spec='${wl}-E'
9032       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9033       # Instead, shared libraries are loaded at an image base (0x10000000 by
9034       # default) and relocated if they conflict, which is a slow very memory
9035       # consuming and fragmenting process.  To avoid this, we pick a random,
9036       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9037       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9038       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9039       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'
9040       ;;
9041
9042     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9043       tmp_diet=no
9044       if test "$host_os" = linux-dietlibc; then
9045         case $cc_basename in
9046           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9047         esac
9048       fi
9049       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9050          && test "$tmp_diet" = no
9051       then
9052         tmp_addflag=' $pic_flag'
9053         tmp_sharedflag='-shared'
9054         case $cc_basename,$host_cpu in
9055         pgcc*)                          # Portland Group C compiler
9056           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'
9057           tmp_addflag=' $pic_flag'
9058           ;;
9059         pgf77* | pgf90* | pgf95* | pgfortran*)
9060                                         # Portland Group f77 and f90 compilers
9061           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'
9062           tmp_addflag=' $pic_flag -Mnomain' ;;
9063         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9064           tmp_addflag=' -i_dynamic' ;;
9065         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9066           tmp_addflag=' -i_dynamic -nofor_main' ;;
9067         ifc* | ifort*)                  # Intel Fortran compiler
9068           tmp_addflag=' -nofor_main' ;;
9069         lf95*)                          # Lahey Fortran 8.1
9070           whole_archive_flag_spec=
9071           tmp_sharedflag='--shared' ;;
9072         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9073           tmp_sharedflag='-qmkshrobj'
9074           tmp_addflag= ;;
9075         nvcc*)  # Cuda Compiler Driver 2.2
9076           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'
9077           compiler_needs_object=yes
9078           ;;
9079         esac
9080         case `$CC -V 2>&1 | sed 5q` in
9081         *Sun\ C*)                       # Sun C 5.9
9082           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'
9083           compiler_needs_object=yes
9084           tmp_sharedflag='-G' ;;
9085         *Sun\ F*)                       # Sun Fortran 8.3
9086           tmp_sharedflag='-G' ;;
9087         esac
9088         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9089
9090         if test "x$supports_anon_versioning" = xyes; then
9091           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9092             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9093             echo "local: *; };" >> $output_objdir/$libname.ver~
9094             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9095         fi
9096
9097         case $cc_basename in
9098         xlf* | bgf* | bgxlf* | mpixlf*)
9099           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9100           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9101           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9102           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9103           if test "x$supports_anon_versioning" = xyes; then
9104             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9105               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9106               echo "local: *; };" >> $output_objdir/$libname.ver~
9107               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9108           fi
9109           ;;
9110         esac
9111       else
9112         ld_shlibs=no
9113       fi
9114       ;;
9115
9116     netbsd* | netbsdelf*-gnu)
9117       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9118         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9119         wlarc=
9120       else
9121         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9123       fi
9124       ;;
9125
9126     solaris*)
9127       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9128         ld_shlibs=no
9129         cat <<_LT_EOF 1>&2
9130
9131 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9132 *** create shared libraries on Solaris systems.  Therefore, libtool
9133 *** is disabling shared libraries support.  We urge you to upgrade GNU
9134 *** binutils to release 2.9.1 or newer.  Another option is to modify
9135 *** your PATH or compiler configuration so that the native linker is
9136 *** used, and then restart.
9137
9138 _LT_EOF
9139       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9140         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9141         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9142       else
9143         ld_shlibs=no
9144       fi
9145       ;;
9146
9147     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9148       case `$LD -v 2>&1` in
9149         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9150         ld_shlibs=no
9151         cat <<_LT_EOF 1>&2
9152
9153 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9154 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9155 *** is disabling shared libraries support.  We urge you to upgrade GNU
9156 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9157 *** your PATH or compiler configuration so that the native linker is
9158 *** used, and then restart.
9159
9160 _LT_EOF
9161         ;;
9162         *)
9163           # For security reasons, it is highly recommended that you always
9164           # use absolute paths for naming shared libraries, and exclude the
9165           # DT_RUNPATH tag from executables and libraries.  But doing so
9166           # requires that you compile everything twice, which is a pain.
9167           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9168             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9169             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9170             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9171           else
9172             ld_shlibs=no
9173           fi
9174         ;;
9175       esac
9176       ;;
9177
9178     sunos4*)
9179       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9180       wlarc=
9181       hardcode_direct=yes
9182       hardcode_shlibpath_var=no
9183       ;;
9184
9185     *)
9186       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9187         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9188         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9189       else
9190         ld_shlibs=no
9191       fi
9192       ;;
9193     esac
9194
9195     if test "$ld_shlibs" = no; then
9196       runpath_var=
9197       hardcode_libdir_flag_spec=
9198       export_dynamic_flag_spec=
9199       whole_archive_flag_spec=
9200     fi
9201   else
9202     # PORTME fill in a description of your system's linker (not GNU ld)
9203     case $host_os in
9204     aix3*)
9205       allow_undefined_flag=unsupported
9206       always_export_symbols=yes
9207       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'
9208       # Note: this linker hardcodes the directories in LIBPATH if there
9209       # are no directories specified by -L.
9210       hardcode_minus_L=yes
9211       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9212         # Neither direct hardcoding nor static linking is supported with a
9213         # broken collect2.
9214         hardcode_direct=unsupported
9215       fi
9216       ;;
9217
9218     aix[4-9]*)
9219       if test "$host_cpu" = ia64; then
9220         # On IA64, the linker does run time linking by default, so we don't
9221         # have to do anything special.
9222         aix_use_runtimelinking=no
9223         exp_sym_flag='-Bexport'
9224         no_entry_flag=""
9225       else
9226         # If we're using GNU nm, then we don't want the "-C" option.
9227         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9228         # Also, AIX nm treats weak defined symbols like other global
9229         # defined symbols, whereas GNU nm marks them as "W".
9230         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9231           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'
9232         else
9233           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'
9234         fi
9235         aix_use_runtimelinking=no
9236
9237         # Test if we are trying to use run time linking or normal
9238         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9239         # need to do runtime linking.
9240         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9241           for ld_flag in $LDFLAGS; do
9242           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9243             aix_use_runtimelinking=yes
9244             break
9245           fi
9246           done
9247           ;;
9248         esac
9249
9250         exp_sym_flag='-bexport'
9251         no_entry_flag='-bnoentry'
9252       fi
9253
9254       # When large executables or shared objects are built, AIX ld can
9255       # have problems creating the table of contents.  If linking a library
9256       # or program results in "error TOC overflow" add -mminimal-toc to
9257       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9258       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9259
9260       archive_cmds=''
9261       hardcode_direct=yes
9262       hardcode_direct_absolute=yes
9263       hardcode_libdir_separator=':'
9264       link_all_deplibs=yes
9265       file_list_spec='${wl}-f,'
9266
9267       if test "$GCC" = yes; then
9268         case $host_os in aix4.[012]|aix4.[012].*)
9269         # We only want to do this on AIX 4.2 and lower, the check
9270         # below for broken collect2 doesn't work under 4.3+
9271           collect2name=`${CC} -print-prog-name=collect2`
9272           if test -f "$collect2name" &&
9273            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9274           then
9275           # We have reworked collect2
9276           :
9277           else
9278           # We have old collect2
9279           hardcode_direct=unsupported
9280           # It fails to find uninstalled libraries when the uninstalled
9281           # path is not listed in the libpath.  Setting hardcode_minus_L
9282           # to unsupported forces relinking
9283           hardcode_minus_L=yes
9284           hardcode_libdir_flag_spec='-L$libdir'
9285           hardcode_libdir_separator=
9286           fi
9287           ;;
9288         esac
9289         shared_flag='-shared'
9290         if test "$aix_use_runtimelinking" = yes; then
9291           shared_flag="$shared_flag "'${wl}-G'
9292         fi
9293         link_all_deplibs=no
9294       else
9295         # not using gcc
9296         if test "$host_cpu" = ia64; then
9297         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9298         # chokes on -Wl,-G. The following line is correct:
9299           shared_flag='-G'
9300         else
9301           if test "$aix_use_runtimelinking" = yes; then
9302             shared_flag='${wl}-G'
9303           else
9304             shared_flag='${wl}-bM:SRE'
9305           fi
9306         fi
9307       fi
9308
9309       export_dynamic_flag_spec='${wl}-bexpall'
9310       # It seems that -bexpall does not export symbols beginning with
9311       # underscore (_), so it is better to generate a list of symbols to export.
9312       always_export_symbols=yes
9313       if test "$aix_use_runtimelinking" = yes; then
9314         # Warning - without using the other runtime loading flags (-brtl),
9315         # -berok will link without error, but may produce a broken library.
9316         allow_undefined_flag='-berok'
9317         # Determine the default libpath from the value encoded in an
9318         # empty executable.
9319         if test "${lt_cv_aix_libpath+set}" = set; then
9320   aix_libpath=$lt_cv_aix_libpath
9321 else
9322   if ${lt_cv_aix_libpath_+:} false; then :
9323   $as_echo_n "(cached) " >&6
9324 else
9325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h.  */
9327
9328 int
9329 main ()
9330 {
9331
9332   ;
9333   return 0;
9334 }
9335 _ACEOF
9336 if ac_fn_c_try_link "$LINENO"; then :
9337
9338   lt_aix_libpath_sed='
9339       /Import File Strings/,/^$/ {
9340           /^0/ {
9341               s/^0  *\([^ ]*\) *$/\1/
9342               p
9343           }
9344       }'
9345   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9346   # Check for a 64-bit object if we didn't find anything.
9347   if test -z "$lt_cv_aix_libpath_"; then
9348     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9349   fi
9350 fi
9351 rm -f core conftest.err conftest.$ac_objext \
9352     conftest$ac_exeext conftest.$ac_ext
9353   if test -z "$lt_cv_aix_libpath_"; then
9354     lt_cv_aix_libpath_="/usr/lib:/lib"
9355   fi
9356
9357 fi
9358
9359   aix_libpath=$lt_cv_aix_libpath_
9360 fi
9361
9362         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9363         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"
9364       else
9365         if test "$host_cpu" = ia64; then
9366           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9367           allow_undefined_flag="-z nodefs"
9368           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"
9369         else
9370          # Determine the default libpath from the value encoded in an
9371          # empty executable.
9372          if test "${lt_cv_aix_libpath+set}" = set; then
9373   aix_libpath=$lt_cv_aix_libpath
9374 else
9375   if ${lt_cv_aix_libpath_+:} false; then :
9376   $as_echo_n "(cached) " >&6
9377 else
9378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h.  */
9380
9381 int
9382 main ()
9383 {
9384
9385   ;
9386   return 0;
9387 }
9388 _ACEOF
9389 if ac_fn_c_try_link "$LINENO"; then :
9390
9391   lt_aix_libpath_sed='
9392       /Import File Strings/,/^$/ {
9393           /^0/ {
9394               s/^0  *\([^ ]*\) *$/\1/
9395               p
9396           }
9397       }'
9398   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9399   # Check for a 64-bit object if we didn't find anything.
9400   if test -z "$lt_cv_aix_libpath_"; then
9401     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9402   fi
9403 fi
9404 rm -f core conftest.err conftest.$ac_objext \
9405     conftest$ac_exeext conftest.$ac_ext
9406   if test -z "$lt_cv_aix_libpath_"; then
9407     lt_cv_aix_libpath_="/usr/lib:/lib"
9408   fi
9409
9410 fi
9411
9412   aix_libpath=$lt_cv_aix_libpath_
9413 fi
9414
9415          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9416           # Warning - without using the other run time loading flags,
9417           # -berok will link without error, but may produce a broken library.
9418           no_undefined_flag=' ${wl}-bernotok'
9419           allow_undefined_flag=' ${wl}-berok'
9420           if test "$with_gnu_ld" = yes; then
9421             # We only use this code for GNU lds that support --whole-archive.
9422             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9423           else
9424             # Exported symbols can be pulled into shared objects from archives
9425             whole_archive_flag_spec='$convenience'
9426           fi
9427           archive_cmds_need_lc=yes
9428           # This is similar to how AIX traditionally builds its shared libraries.
9429           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'
9430         fi
9431       fi
9432       ;;
9433
9434     amigaos*)
9435       case $host_cpu in
9436       powerpc)
9437             # see comment about AmigaOS4 .so support
9438             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439             archive_expsym_cmds=''
9440         ;;
9441       m68k)
9442             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)'
9443             hardcode_libdir_flag_spec='-L$libdir'
9444             hardcode_minus_L=yes
9445         ;;
9446       esac
9447       ;;
9448
9449     bsdi[45]*)
9450       export_dynamic_flag_spec=-rdynamic
9451       ;;
9452
9453     cygwin* | mingw* | pw32* | cegcc*)
9454       # When not using gcc, we currently assume that we are using
9455       # Microsoft Visual C++.
9456       # hardcode_libdir_flag_spec is actually meaningless, as there is
9457       # no search path for DLLs.
9458       case $cc_basename in
9459       cl*)
9460         # Native MSVC
9461         hardcode_libdir_flag_spec=' '
9462         allow_undefined_flag=unsupported
9463         always_export_symbols=yes
9464         file_list_spec='@'
9465         # Tell ltmain to make .lib files, not .a files.
9466         libext=lib
9467         # Tell ltmain to make .dll files, not .so files.
9468         shrext_cmds=".dll"
9469         # FIXME: Setting linknames here is a bad hack.
9470         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9471         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9472             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9473           else
9474             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9475           fi~
9476           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9477           linknames='
9478         # The linker will not automatically build a static lib if we build a DLL.
9479         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9480         enable_shared_with_static_runtimes=yes
9481         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9482         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9483         # Don't use ranlib
9484         old_postinstall_cmds='chmod 644 $oldlib'
9485         postlink_cmds='lt_outputfile="@OUTPUT@"~
9486           lt_tool_outputfile="@TOOL_OUTPUT@"~
9487           case $lt_outputfile in
9488             *.exe|*.EXE) ;;
9489             *)
9490               lt_outputfile="$lt_outputfile.exe"
9491               lt_tool_outputfile="$lt_tool_outputfile.exe"
9492               ;;
9493           esac~
9494           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9495             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9496             $RM "$lt_outputfile.manifest";
9497           fi'
9498         ;;
9499       *)
9500         # Assume MSVC wrapper
9501         hardcode_libdir_flag_spec=' '
9502         allow_undefined_flag=unsupported
9503         # Tell ltmain to make .lib files, not .a files.
9504         libext=lib
9505         # Tell ltmain to make .dll files, not .so files.
9506         shrext_cmds=".dll"
9507         # FIXME: Setting linknames here is a bad hack.
9508         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9509         # The linker will automatically build a .lib file if we build a DLL.
9510         old_archive_from_new_cmds='true'
9511         # FIXME: Should let the user specify the lib program.
9512         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9513         enable_shared_with_static_runtimes=yes
9514         ;;
9515       esac
9516       ;;
9517
9518     darwin* | rhapsody*)
9519
9520
9521   archive_cmds_need_lc=no
9522   hardcode_direct=no
9523   hardcode_automatic=yes
9524   hardcode_shlibpath_var=unsupported
9525   if test "$lt_cv_ld_force_load" = "yes"; then
9526     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\"`'
9527
9528   else
9529     whole_archive_flag_spec=''
9530   fi
9531   link_all_deplibs=yes
9532   allow_undefined_flag="$_lt_dar_allow_undefined"
9533   case $cc_basename in
9534      ifort*) _lt_dar_can_shared=yes ;;
9535      *) _lt_dar_can_shared=$GCC ;;
9536   esac
9537   if test "$_lt_dar_can_shared" = "yes"; then
9538     output_verbose_link_cmd=func_echo_all
9539     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9540     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9541     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}"
9542     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}"
9543
9544   else
9545   ld_shlibs=no
9546   fi
9547
9548       ;;
9549
9550     dgux*)
9551       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9552       hardcode_libdir_flag_spec='-L$libdir'
9553       hardcode_shlibpath_var=no
9554       ;;
9555
9556     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9557     # support.  Future versions do this automatically, but an explicit c++rt0.o
9558     # does not break anything, and helps significantly (at the cost of a little
9559     # extra space).
9560     freebsd2.2*)
9561       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9562       hardcode_libdir_flag_spec='-R$libdir'
9563       hardcode_direct=yes
9564       hardcode_shlibpath_var=no
9565       ;;
9566
9567     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9568     freebsd2.*)
9569       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9570       hardcode_direct=yes
9571       hardcode_minus_L=yes
9572       hardcode_shlibpath_var=no
9573       ;;
9574
9575     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9576     freebsd* | dragonfly*)
9577       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9578       hardcode_libdir_flag_spec='-R$libdir'
9579       hardcode_direct=yes
9580       hardcode_shlibpath_var=no
9581       ;;
9582
9583     hpux9*)
9584       if test "$GCC" = yes; then
9585         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'
9586       else
9587         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'
9588       fi
9589       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9590       hardcode_libdir_separator=:
9591       hardcode_direct=yes
9592
9593       # hardcode_minus_L: Not really in the search PATH,
9594       # but as the default location of the library.
9595       hardcode_minus_L=yes
9596       export_dynamic_flag_spec='${wl}-E'
9597       ;;
9598
9599     hpux10*)
9600       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9601         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9602       else
9603         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9604       fi
9605       if test "$with_gnu_ld" = no; then
9606         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9607         hardcode_libdir_separator=:
9608         hardcode_direct=yes
9609         hardcode_direct_absolute=yes
9610         export_dynamic_flag_spec='${wl}-E'
9611         # hardcode_minus_L: Not really in the search PATH,
9612         # but as the default location of the library.
9613         hardcode_minus_L=yes
9614       fi
9615       ;;
9616
9617     hpux11*)
9618       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9619         case $host_cpu in
9620         hppa*64*)
9621           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9622           ;;
9623         ia64*)
9624           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9625           ;;
9626         *)
9627           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9628           ;;
9629         esac
9630       else
9631         case $host_cpu in
9632         hppa*64*)
9633           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9634           ;;
9635         ia64*)
9636           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9637           ;;
9638         *)
9639
9640           # Older versions of the 11.00 compiler do not understand -b yet
9641           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9642           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9643 $as_echo_n "checking if $CC understands -b... " >&6; }
9644 if ${lt_cv_prog_compiler__b+:} false; then :
9645   $as_echo_n "(cached) " >&6
9646 else
9647   lt_cv_prog_compiler__b=no
9648    save_LDFLAGS="$LDFLAGS"
9649    LDFLAGS="$LDFLAGS -b"
9650    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9651    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9652      # The linker can only warn and ignore the option if not recognized
9653      # So say no if there are warnings
9654      if test -s conftest.err; then
9655        # Append any errors to the config.log.
9656        cat conftest.err 1>&5
9657        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9658        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9659        if diff conftest.exp conftest.er2 >/dev/null; then
9660          lt_cv_prog_compiler__b=yes
9661        fi
9662      else
9663        lt_cv_prog_compiler__b=yes
9664      fi
9665    fi
9666    $RM -r conftest*
9667    LDFLAGS="$save_LDFLAGS"
9668
9669 fi
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9671 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9672
9673 if test x"$lt_cv_prog_compiler__b" = xyes; then
9674     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9675 else
9676     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9677 fi
9678
9679           ;;
9680         esac
9681       fi
9682       if test "$with_gnu_ld" = no; then
9683         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9684         hardcode_libdir_separator=:
9685
9686         case $host_cpu in
9687         hppa*64*|ia64*)
9688           hardcode_direct=no
9689           hardcode_shlibpath_var=no
9690           ;;
9691         *)
9692           hardcode_direct=yes
9693           hardcode_direct_absolute=yes
9694           export_dynamic_flag_spec='${wl}-E'
9695
9696           # hardcode_minus_L: Not really in the search PATH,
9697           # but as the default location of the library.
9698           hardcode_minus_L=yes
9699           ;;
9700         esac
9701       fi
9702       ;;
9703
9704     irix5* | irix6* | nonstopux*)
9705       if test "$GCC" = yes; then
9706         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'
9707         # Try to use the -exported_symbol ld option, if it does not
9708         # work, assume that -exports_file does not work either and
9709         # implicitly export all symbols.
9710         # This should be the same for all languages, so no per-tag cache variable.
9711         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9712 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9713 if ${lt_cv_irix_exported_symbol+:} false; then :
9714   $as_echo_n "(cached) " >&6
9715 else
9716   save_LDFLAGS="$LDFLAGS"
9717            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9718            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9719 /* end confdefs.h.  */
9720 int foo (void) { return 0; }
9721 _ACEOF
9722 if ac_fn_c_try_link "$LINENO"; then :
9723   lt_cv_irix_exported_symbol=yes
9724 else
9725   lt_cv_irix_exported_symbol=no
9726 fi
9727 rm -f core conftest.err conftest.$ac_objext \
9728     conftest$ac_exeext conftest.$ac_ext
9729            LDFLAGS="$save_LDFLAGS"
9730 fi
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9732 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9733         if test "$lt_cv_irix_exported_symbol" = yes; then
9734           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'
9735         fi
9736       else
9737         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'
9738         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'
9739       fi
9740       archive_cmds_need_lc='no'
9741       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9742       hardcode_libdir_separator=:
9743       inherit_rpath=yes
9744       link_all_deplibs=yes
9745       ;;
9746
9747     netbsd* | netbsdelf*-gnu)
9748       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9749         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9750       else
9751         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9752       fi
9753       hardcode_libdir_flag_spec='-R$libdir'
9754       hardcode_direct=yes
9755       hardcode_shlibpath_var=no
9756       ;;
9757
9758     newsos6)
9759       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760       hardcode_direct=yes
9761       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9762       hardcode_libdir_separator=:
9763       hardcode_shlibpath_var=no
9764       ;;
9765
9766     *nto* | *qnx*)
9767       ;;
9768
9769     openbsd*)
9770       if test -f /usr/libexec/ld.so; then
9771         hardcode_direct=yes
9772         hardcode_shlibpath_var=no
9773         hardcode_direct_absolute=yes
9774         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9775           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9776           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9777           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9778           export_dynamic_flag_spec='${wl}-E'
9779         else
9780           case $host_os in
9781            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9782              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9783              hardcode_libdir_flag_spec='-R$libdir'
9784              ;;
9785            *)
9786              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9787              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9788              ;;
9789           esac
9790         fi
9791       else
9792         ld_shlibs=no
9793       fi
9794       ;;
9795
9796     os2*)
9797       hardcode_libdir_flag_spec='-L$libdir'
9798       hardcode_minus_L=yes
9799       allow_undefined_flag=unsupported
9800       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'
9801       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9802       ;;
9803
9804     osf3*)
9805       if test "$GCC" = yes; then
9806         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9807         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'
9808       else
9809         allow_undefined_flag=' -expect_unresolved \*'
9810         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'
9811       fi
9812       archive_cmds_need_lc='no'
9813       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9814       hardcode_libdir_separator=:
9815       ;;
9816
9817     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9818       if test "$GCC" = yes; then
9819         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9820         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'
9821         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9822       else
9823         allow_undefined_flag=' -expect_unresolved \*'
9824         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'
9825         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~
9826         $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'
9827
9828         # Both c and cxx compiler support -rpath directly
9829         hardcode_libdir_flag_spec='-rpath $libdir'
9830       fi
9831       archive_cmds_need_lc='no'
9832       hardcode_libdir_separator=:
9833       ;;
9834
9835     solaris*)
9836       no_undefined_flag=' -z defs'
9837       if test "$GCC" = yes; then
9838         wlarc='${wl}'
9839         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9840         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9841           $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'
9842       else
9843         case `$CC -V 2>&1` in
9844         *"Compilers 5.0"*)
9845           wlarc=''
9846           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9848           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9849           ;;
9850         *)
9851           wlarc='${wl}'
9852           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9853           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9854           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9855           ;;
9856         esac
9857       fi
9858       hardcode_libdir_flag_spec='-R$libdir'
9859       hardcode_shlibpath_var=no
9860       case $host_os in
9861       solaris2.[0-5] | solaris2.[0-5].*) ;;
9862       *)
9863         # The compiler driver will combine and reorder linker options,
9864         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9865         # but is careful enough not to reorder.
9866         # Supported since Solaris 2.6 (maybe 2.5.1?)
9867         if test "$GCC" = yes; then
9868           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9869         else
9870           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9871         fi
9872         ;;
9873       esac
9874       link_all_deplibs=yes
9875       ;;
9876
9877     sunos4*)
9878       if test "x$host_vendor" = xsequent; then
9879         # Use $CC to link under sequent, because it throws in some extra .o
9880         # files that make .init and .fini sections work.
9881         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9882       else
9883         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9884       fi
9885       hardcode_libdir_flag_spec='-L$libdir'
9886       hardcode_direct=yes
9887       hardcode_minus_L=yes
9888       hardcode_shlibpath_var=no
9889       ;;
9890
9891     sysv4)
9892       case $host_vendor in
9893         sni)
9894           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9895           hardcode_direct=yes # is this really true???
9896         ;;
9897         siemens)
9898           ## LD is ld it makes a PLAMLIB
9899           ## CC just makes a GrossModule.
9900           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9901           reload_cmds='$CC -r -o $output$reload_objs'
9902           hardcode_direct=no
9903         ;;
9904         motorola)
9905           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9906           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9907         ;;
9908       esac
9909       runpath_var='LD_RUN_PATH'
9910       hardcode_shlibpath_var=no
9911       ;;
9912
9913     sysv4.3*)
9914       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9915       hardcode_shlibpath_var=no
9916       export_dynamic_flag_spec='-Bexport'
9917       ;;
9918
9919     sysv4*MP*)
9920       if test -d /usr/nec; then
9921         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9922         hardcode_shlibpath_var=no
9923         runpath_var=LD_RUN_PATH
9924         hardcode_runpath_var=yes
9925         ld_shlibs=yes
9926       fi
9927       ;;
9928
9929     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9930       no_undefined_flag='${wl}-z,text'
9931       archive_cmds_need_lc=no
9932       hardcode_shlibpath_var=no
9933       runpath_var='LD_RUN_PATH'
9934
9935       if test "$GCC" = yes; then
9936         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9937         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9938       else
9939         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9940         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9941       fi
9942       ;;
9943
9944     sysv5* | sco3.2v5* | sco5v6*)
9945       # Note: We can NOT use -z defs as we might desire, because we do not
9946       # link with -lc, and that would cause any symbols used from libc to
9947       # always be unresolved, which means just about no library would
9948       # ever link correctly.  If we're not using GNU ld we use -z text
9949       # though, which does catch some bad symbols but isn't as heavy-handed
9950       # as -z defs.
9951       no_undefined_flag='${wl}-z,text'
9952       allow_undefined_flag='${wl}-z,nodefs'
9953       archive_cmds_need_lc=no
9954       hardcode_shlibpath_var=no
9955       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9956       hardcode_libdir_separator=':'
9957       link_all_deplibs=yes
9958       export_dynamic_flag_spec='${wl}-Bexport'
9959       runpath_var='LD_RUN_PATH'
9960
9961       if test "$GCC" = yes; then
9962         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9963         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9964       else
9965         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9966         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9967       fi
9968       ;;
9969
9970     uts4*)
9971       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972       hardcode_libdir_flag_spec='-L$libdir'
9973       hardcode_shlibpath_var=no
9974       ;;
9975
9976     *)
9977       ld_shlibs=no
9978       ;;
9979     esac
9980
9981     if test x$host_vendor = xsni; then
9982       case $host in
9983       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9984         export_dynamic_flag_spec='${wl}-Blargedynsym'
9985         ;;
9986       esac
9987     fi
9988   fi
9989
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9991 $as_echo "$ld_shlibs" >&6; }
9992 test "$ld_shlibs" = no && can_build_shared=no
9993
9994 with_gnu_ld=$with_gnu_ld
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010 #
10011 # Do we need to explicitly link libc?
10012 #
10013 case "x$archive_cmds_need_lc" in
10014 x|xyes)
10015   # Assume -lc should be added
10016   archive_cmds_need_lc=yes
10017
10018   if test "$enable_shared" = yes && test "$GCC" = yes; then
10019     case $archive_cmds in
10020     *'~'*)
10021       # FIXME: we may have to deal with multi-command sequences.
10022       ;;
10023     '$CC '*)
10024       # Test whether the compiler implicitly links with -lc since on some
10025       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10026       # to ld, don't add -lc before -lgcc.
10027       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10028 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10029 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10030   $as_echo_n "(cached) " >&6
10031 else
10032   $RM conftest*
10033         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10034
10035         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10036   (eval $ac_compile) 2>&5
10037   ac_status=$?
10038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10039   test $ac_status = 0; } 2>conftest.err; then
10040           soname=conftest
10041           lib=conftest
10042           libobjs=conftest.$ac_objext
10043           deplibs=
10044           wl=$lt_prog_compiler_wl
10045           pic_flag=$lt_prog_compiler_pic
10046           compiler_flags=-v
10047           linker_flags=-v
10048           verstring=
10049           output_objdir=.
10050           libname=conftest
10051           lt_save_allow_undefined_flag=$allow_undefined_flag
10052           allow_undefined_flag=
10053           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10054   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10055   ac_status=$?
10056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10057   test $ac_status = 0; }
10058           then
10059             lt_cv_archive_cmds_need_lc=no
10060           else
10061             lt_cv_archive_cmds_need_lc=yes
10062           fi
10063           allow_undefined_flag=$lt_save_allow_undefined_flag
10064         else
10065           cat conftest.err 1>&5
10066         fi
10067         $RM conftest*
10068
10069 fi
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10071 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10072       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10073       ;;
10074     esac
10075   fi
10076   ;;
10077 esac
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10231 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10232
10233 if test "$GCC" = yes; then
10234   case $host_os in
10235     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10236     *) lt_awk_arg="/^libraries:/" ;;
10237   esac
10238   case $host_os in
10239     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10240     *) lt_sed_strip_eq="s,=/,/,g" ;;
10241   esac
10242   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10243   case $lt_search_path_spec in
10244   *\;*)
10245     # if the path contains ";" then we assume it to be the separator
10246     # otherwise default to the standard path separator (i.e. ":") - it is
10247     # assumed that no part of a normal pathname contains ";" but that should
10248     # okay in the real world where ";" in dirpaths is itself problematic.
10249     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10250     ;;
10251   *)
10252     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10253     ;;
10254   esac
10255   # Ok, now we have the path, separated by spaces, we can step through it
10256   # and add multilib dir if necessary.
10257   lt_tmp_lt_search_path_spec=
10258   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10259   for lt_sys_path in $lt_search_path_spec; do
10260     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10261       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10262     else
10263       test -d "$lt_sys_path" && \
10264         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10265     fi
10266   done
10267   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10268 BEGIN {RS=" "; FS="/|\n";} {
10269   lt_foo="";
10270   lt_count=0;
10271   for (lt_i = NF; lt_i > 0; lt_i--) {
10272     if ($lt_i != "" && $lt_i != ".") {
10273       if ($lt_i == "..") {
10274         lt_count++;
10275       } else {
10276         if (lt_count == 0) {
10277           lt_foo="/" $lt_i lt_foo;
10278         } else {
10279           lt_count--;
10280         }
10281       }
10282     }
10283   }
10284   if (lt_foo != "") { lt_freq[lt_foo]++; }
10285   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10286 }'`
10287   # AWK program above erroneously prepends '/' to C:/dos/paths
10288   # for these hosts.
10289   case $host_os in
10290     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10291       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10292   esac
10293   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10294 else
10295   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10296 fi
10297 library_names_spec=
10298 libname_spec='lib$name'
10299 soname_spec=
10300 shrext_cmds=".so"
10301 postinstall_cmds=
10302 postuninstall_cmds=
10303 finish_cmds=
10304 finish_eval=
10305 shlibpath_var=
10306 shlibpath_overrides_runpath=unknown
10307 version_type=none
10308 dynamic_linker="$host_os ld.so"
10309 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10310 need_lib_prefix=unknown
10311 hardcode_into_libs=no
10312
10313 # when you set need_version to no, make sure it does not cause -set_version
10314 # flags to be left without arguments
10315 need_version=unknown
10316
10317 case $host_os in
10318 aix3*)
10319   version_type=linux # correct to gnu/linux during the next big refactor
10320   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10321   shlibpath_var=LIBPATH
10322
10323   # AIX 3 has no versioning support, so we append a major version to the name.
10324   soname_spec='${libname}${release}${shared_ext}$major'
10325   ;;
10326
10327 aix[4-9]*)
10328   version_type=linux # correct to gnu/linux during the next big refactor
10329   need_lib_prefix=no
10330   need_version=no
10331   hardcode_into_libs=yes
10332   if test "$host_cpu" = ia64; then
10333     # AIX 5 supports IA64
10334     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10335     shlibpath_var=LD_LIBRARY_PATH
10336   else
10337     # With GCC up to 2.95.x, collect2 would create an import file
10338     # for dependence libraries.  The import file would start with
10339     # the line `#! .'.  This would cause the generated library to
10340     # depend on `.', always an invalid library.  This was fixed in
10341     # development snapshots of GCC prior to 3.0.
10342     case $host_os in
10343       aix4 | aix4.[01] | aix4.[01].*)
10344       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10345            echo ' yes '
10346            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10347         :
10348       else
10349         can_build_shared=no
10350       fi
10351       ;;
10352     esac
10353     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10354     # soname into executable. Probably we can add versioning support to
10355     # collect2, so additional links can be useful in future.
10356     if test "$aix_use_runtimelinking" = yes; then
10357       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10358       # instead of lib<name>.a to let people know that these are not
10359       # typical AIX shared libraries.
10360       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361     else
10362       # We preserve .a as extension for shared libraries through AIX4.2
10363       # and later when we are not doing run time linking.
10364       library_names_spec='${libname}${release}.a $libname.a'
10365       soname_spec='${libname}${release}${shared_ext}$major'
10366     fi
10367     shlibpath_var=LIBPATH
10368   fi
10369   ;;
10370
10371 amigaos*)
10372   case $host_cpu in
10373   powerpc)
10374     # Since July 2007 AmigaOS4 officially supports .so libraries.
10375     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10376     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377     ;;
10378   m68k)
10379     library_names_spec='$libname.ixlibrary $libname.a'
10380     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10381     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'
10382     ;;
10383   esac
10384   ;;
10385
10386 beos*)
10387   library_names_spec='${libname}${shared_ext}'
10388   dynamic_linker="$host_os ld.so"
10389   shlibpath_var=LIBRARY_PATH
10390   ;;
10391
10392 bsdi[45]*)
10393   version_type=linux # correct to gnu/linux during the next big refactor
10394   need_version=no
10395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396   soname_spec='${libname}${release}${shared_ext}$major'
10397   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10398   shlibpath_var=LD_LIBRARY_PATH
10399   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10400   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10401   # the default ld.so.conf also contains /usr/contrib/lib and
10402   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10403   # libtool to hard-code these into programs
10404   ;;
10405
10406 cygwin* | mingw* | pw32* | cegcc*)
10407   version_type=windows
10408   shrext_cmds=".dll"
10409   need_version=no
10410   need_lib_prefix=no
10411
10412   case $GCC,$cc_basename in
10413   yes,*)
10414     # gcc
10415     library_names_spec='$libname.dll.a'
10416     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10417     postinstall_cmds='base_file=`basename \${file}`~
10418       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10419       dldir=$destdir/`dirname \$dlpath`~
10420       test -d \$dldir || mkdir -p \$dldir~
10421       $install_prog $dir/$dlname \$dldir/$dlname~
10422       chmod a+x \$dldir/$dlname~
10423       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10424         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10425       fi'
10426     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10427       dlpath=$dir/\$dldll~
10428        $RM \$dlpath'
10429     shlibpath_overrides_runpath=yes
10430
10431     case $host_os in
10432     cygwin*)
10433       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10434       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10435
10436       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10437       ;;
10438     mingw* | cegcc*)
10439       # MinGW DLLs use traditional 'lib' prefix
10440       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10441       ;;
10442     pw32*)
10443       # pw32 DLLs use 'pw' prefix rather than 'lib'
10444       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10445       ;;
10446     esac
10447     dynamic_linker='Win32 ld.exe'
10448     ;;
10449
10450   *,cl*)
10451     # Native MSVC
10452     libname_spec='$name'
10453     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10454     library_names_spec='${libname}.dll.lib'
10455
10456     case $build_os in
10457     mingw*)
10458       sys_lib_search_path_spec=
10459       lt_save_ifs=$IFS
10460       IFS=';'
10461       for lt_path in $LIB
10462       do
10463         IFS=$lt_save_ifs
10464         # Let DOS variable expansion print the short 8.3 style file name.
10465         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10466         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10467       done
10468       IFS=$lt_save_ifs
10469       # Convert to MSYS style.
10470       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10471       ;;
10472     cygwin*)
10473       # Convert to unix form, then to dos form, then back to unix form
10474       # but this time dos style (no spaces!) so that the unix form looks
10475       # like /cygdrive/c/PROGRA~1:/cygdr...
10476       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10477       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10478       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10479       ;;
10480     *)
10481       sys_lib_search_path_spec="$LIB"
10482       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10483         # It is most probably a Windows format PATH.
10484         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10485       else
10486         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10487       fi
10488       # FIXME: find the short name or the path components, as spaces are
10489       # common. (e.g. "Program Files" -> "PROGRA~1")
10490       ;;
10491     esac
10492
10493     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10494     postinstall_cmds='base_file=`basename \${file}`~
10495       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10496       dldir=$destdir/`dirname \$dlpath`~
10497       test -d \$dldir || mkdir -p \$dldir~
10498       $install_prog $dir/$dlname \$dldir/$dlname'
10499     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10500       dlpath=$dir/\$dldll~
10501        $RM \$dlpath'
10502     shlibpath_overrides_runpath=yes
10503     dynamic_linker='Win32 link.exe'
10504     ;;
10505
10506   *)
10507     # Assume MSVC wrapper
10508     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10509     dynamic_linker='Win32 ld.exe'
10510     ;;
10511   esac
10512   # FIXME: first we should search . and the directory the executable is in
10513   shlibpath_var=PATH
10514   ;;
10515
10516 darwin* | rhapsody*)
10517   dynamic_linker="$host_os dyld"
10518   version_type=darwin
10519   need_lib_prefix=no
10520   need_version=no
10521   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10522   soname_spec='${libname}${release}${major}$shared_ext'
10523   shlibpath_overrides_runpath=yes
10524   shlibpath_var=DYLD_LIBRARY_PATH
10525   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10526
10527   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10528   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10529   ;;
10530
10531 dgux*)
10532   version_type=linux # correct to gnu/linux during the next big refactor
10533   need_lib_prefix=no
10534   need_version=no
10535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10536   soname_spec='${libname}${release}${shared_ext}$major'
10537   shlibpath_var=LD_LIBRARY_PATH
10538   ;;
10539
10540 freebsd* | dragonfly*)
10541   # DragonFly does not have aout.  When/if they implement a new
10542   # versioning mechanism, adjust this.
10543   if test -x /usr/bin/objformat; then
10544     objformat=`/usr/bin/objformat`
10545   else
10546     case $host_os in
10547     freebsd[23].*) objformat=aout ;;
10548     *) objformat=elf ;;
10549     esac
10550   fi
10551   version_type=freebsd-$objformat
10552   case $version_type in
10553     freebsd-elf*)
10554       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10555       need_version=no
10556       need_lib_prefix=no
10557       ;;
10558     freebsd-*)
10559       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10560       need_version=yes
10561       ;;
10562   esac
10563   shlibpath_var=LD_LIBRARY_PATH
10564   case $host_os in
10565   freebsd2.*)
10566     shlibpath_overrides_runpath=yes
10567     ;;
10568   freebsd3.[01]* | freebsdelf3.[01]*)
10569     shlibpath_overrides_runpath=yes
10570     hardcode_into_libs=yes
10571     ;;
10572   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10573   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10574     shlibpath_overrides_runpath=no
10575     hardcode_into_libs=yes
10576     ;;
10577   *) # from 4.6 on, and DragonFly
10578     shlibpath_overrides_runpath=yes
10579     hardcode_into_libs=yes
10580     ;;
10581   esac
10582   ;;
10583
10584 haiku*)
10585   version_type=linux # correct to gnu/linux during the next big refactor
10586   need_lib_prefix=no
10587   need_version=no
10588   dynamic_linker="$host_os runtime_loader"
10589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10590   soname_spec='${libname}${release}${shared_ext}$major'
10591   shlibpath_var=LIBRARY_PATH
10592   shlibpath_overrides_runpath=yes
10593   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10594   hardcode_into_libs=yes
10595   ;;
10596
10597 hpux9* | hpux10* | hpux11*)
10598   # Give a soname corresponding to the major version so that dld.sl refuses to
10599   # link against other versions.
10600   version_type=sunos
10601   need_lib_prefix=no
10602   need_version=no
10603   case $host_cpu in
10604   ia64*)
10605     shrext_cmds='.so'
10606     hardcode_into_libs=yes
10607     dynamic_linker="$host_os dld.so"
10608     shlibpath_var=LD_LIBRARY_PATH
10609     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10610     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611     soname_spec='${libname}${release}${shared_ext}$major'
10612     if test "X$HPUX_IA64_MODE" = X32; then
10613       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10614     else
10615       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10616     fi
10617     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10618     ;;
10619   hppa*64*)
10620     shrext_cmds='.sl'
10621     hardcode_into_libs=yes
10622     dynamic_linker="$host_os dld.sl"
10623     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10624     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10625     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10626     soname_spec='${libname}${release}${shared_ext}$major'
10627     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10628     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10629     ;;
10630   *)
10631     shrext_cmds='.sl'
10632     dynamic_linker="$host_os dld.sl"
10633     shlibpath_var=SHLIB_PATH
10634     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10635     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636     soname_spec='${libname}${release}${shared_ext}$major'
10637     ;;
10638   esac
10639   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10640   postinstall_cmds='chmod 555 $lib'
10641   # or fails outright, so override atomically:
10642   install_override_mode=555
10643   ;;
10644
10645 interix[3-9]*)
10646   version_type=linux # correct to gnu/linux during the next big refactor
10647   need_lib_prefix=no
10648   need_version=no
10649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10650   soname_spec='${libname}${release}${shared_ext}$major'
10651   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10652   shlibpath_var=LD_LIBRARY_PATH
10653   shlibpath_overrides_runpath=no
10654   hardcode_into_libs=yes
10655   ;;
10656
10657 irix5* | irix6* | nonstopux*)
10658   case $host_os in
10659     nonstopux*) version_type=nonstopux ;;
10660     *)
10661         if test "$lt_cv_prog_gnu_ld" = yes; then
10662                 version_type=linux # correct to gnu/linux during the next big refactor
10663         else
10664                 version_type=irix
10665         fi ;;
10666   esac
10667   need_lib_prefix=no
10668   need_version=no
10669   soname_spec='${libname}${release}${shared_ext}$major'
10670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10671   case $host_os in
10672   irix5* | nonstopux*)
10673     libsuff= shlibsuff=
10674     ;;
10675   *)
10676     case $LD in # libtool.m4 will add one of these switches to LD
10677     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10678       libsuff= shlibsuff= libmagic=32-bit;;
10679     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10680       libsuff=32 shlibsuff=N32 libmagic=N32;;
10681     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10682       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10683     *) libsuff= shlibsuff= libmagic=never-match;;
10684     esac
10685     ;;
10686   esac
10687   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10688   shlibpath_overrides_runpath=no
10689   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10690   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10691   hardcode_into_libs=yes
10692   ;;
10693
10694 # No shared lib support for Linux oldld, aout, or coff.
10695 linux*oldld* | linux*aout* | linux*coff*)
10696   dynamic_linker=no
10697   ;;
10698
10699 # This must be glibc/ELF.
10700 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10701   version_type=linux # correct to gnu/linux during the next big refactor
10702   need_lib_prefix=no
10703   need_version=no
10704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10705   soname_spec='${libname}${release}${shared_ext}$major'
10706   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10707   shlibpath_var=LD_LIBRARY_PATH
10708   shlibpath_overrides_runpath=no
10709
10710   # Some binutils ld are patched to set DT_RUNPATH
10711   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10712   $as_echo_n "(cached) " >&6
10713 else
10714   lt_cv_shlibpath_overrides_runpath=no
10715     save_LDFLAGS=$LDFLAGS
10716     save_libdir=$libdir
10717     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10718          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10719     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h.  */
10721
10722 int
10723 main ()
10724 {
10725
10726   ;
10727   return 0;
10728 }
10729 _ACEOF
10730 if ac_fn_c_try_link "$LINENO"; then :
10731   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10732   lt_cv_shlibpath_overrides_runpath=yes
10733 fi
10734 fi
10735 rm -f core conftest.err conftest.$ac_objext \
10736     conftest$ac_exeext conftest.$ac_ext
10737     LDFLAGS=$save_LDFLAGS
10738     libdir=$save_libdir
10739
10740 fi
10741
10742   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10743
10744   # This implies no fast_install, which is unacceptable.
10745   # Some rework will be needed to allow for fast_install
10746   # before this can be enabled.
10747   hardcode_into_libs=yes
10748
10749   # Append ld.so.conf contents to the search path
10750   if test -f /etc/ld.so.conf; then
10751     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' ' '`
10752     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10753   fi
10754
10755   # We used to test for /lib/ld.so.1 and disable shared libraries on
10756   # powerpc, because MkLinux only supported shared libraries with the
10757   # GNU dynamic linker.  Since this was broken with cross compilers,
10758   # most powerpc-linux boxes support dynamic linking these days and
10759   # people can always --disable-shared, the test was removed, and we
10760   # assume the GNU/Linux dynamic linker is in use.
10761   dynamic_linker='GNU/Linux ld.so'
10762   ;;
10763
10764 netbsdelf*-gnu)
10765   version_type=linux
10766   need_lib_prefix=no
10767   need_version=no
10768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10769   soname_spec='${libname}${release}${shared_ext}$major'
10770   shlibpath_var=LD_LIBRARY_PATH
10771   shlibpath_overrides_runpath=no
10772   hardcode_into_libs=yes
10773   dynamic_linker='NetBSD ld.elf_so'
10774   ;;
10775
10776 netbsd*)
10777   version_type=sunos
10778   need_lib_prefix=no
10779   need_version=no
10780   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10781     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10782     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10783     dynamic_linker='NetBSD (a.out) ld.so'
10784   else
10785     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10786     soname_spec='${libname}${release}${shared_ext}$major'
10787     dynamic_linker='NetBSD ld.elf_so'
10788   fi
10789   shlibpath_var=LD_LIBRARY_PATH
10790   shlibpath_overrides_runpath=yes
10791   hardcode_into_libs=yes
10792   ;;
10793
10794 newsos6)
10795   version_type=linux # correct to gnu/linux during the next big refactor
10796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10797   shlibpath_var=LD_LIBRARY_PATH
10798   shlibpath_overrides_runpath=yes
10799   ;;
10800
10801 *nto* | *qnx*)
10802   version_type=qnx
10803   need_lib_prefix=no
10804   need_version=no
10805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10806   soname_spec='${libname}${release}${shared_ext}$major'
10807   shlibpath_var=LD_LIBRARY_PATH
10808   shlibpath_overrides_runpath=no
10809   hardcode_into_libs=yes
10810   dynamic_linker='ldqnx.so'
10811   ;;
10812
10813 openbsd*)
10814   version_type=sunos
10815   sys_lib_dlsearch_path_spec="/usr/lib"
10816   need_lib_prefix=no
10817   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10818   case $host_os in
10819     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10820     *)                          need_version=no  ;;
10821   esac
10822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10823   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10824   shlibpath_var=LD_LIBRARY_PATH
10825   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10826     case $host_os in
10827       openbsd2.[89] | openbsd2.[89].*)
10828         shlibpath_overrides_runpath=no
10829         ;;
10830       *)
10831         shlibpath_overrides_runpath=yes
10832         ;;
10833       esac
10834   else
10835     shlibpath_overrides_runpath=yes
10836   fi
10837   ;;
10838
10839 os2*)
10840   libname_spec='$name'
10841   shrext_cmds=".dll"
10842   need_lib_prefix=no
10843   library_names_spec='$libname${shared_ext} $libname.a'
10844   dynamic_linker='OS/2 ld.exe'
10845   shlibpath_var=LIBPATH
10846   ;;
10847
10848 osf3* | osf4* | osf5*)
10849   version_type=osf
10850   need_lib_prefix=no
10851   need_version=no
10852   soname_spec='${libname}${release}${shared_ext}$major'
10853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854   shlibpath_var=LD_LIBRARY_PATH
10855   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10856   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10857   ;;
10858
10859 rdos*)
10860   dynamic_linker=no
10861   ;;
10862
10863 solaris*)
10864   version_type=linux # correct to gnu/linux during the next big refactor
10865   need_lib_prefix=no
10866   need_version=no
10867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10868   soname_spec='${libname}${release}${shared_ext}$major'
10869   shlibpath_var=LD_LIBRARY_PATH
10870   shlibpath_overrides_runpath=yes
10871   hardcode_into_libs=yes
10872   # ldd complains unless libraries are executable
10873   postinstall_cmds='chmod +x $lib'
10874   ;;
10875
10876 sunos4*)
10877   version_type=sunos
10878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10879   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10880   shlibpath_var=LD_LIBRARY_PATH
10881   shlibpath_overrides_runpath=yes
10882   if test "$with_gnu_ld" = yes; then
10883     need_lib_prefix=no
10884   fi
10885   need_version=yes
10886   ;;
10887
10888 sysv4 | sysv4.3*)
10889   version_type=linux # correct to gnu/linux during the next big refactor
10890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10891   soname_spec='${libname}${release}${shared_ext}$major'
10892   shlibpath_var=LD_LIBRARY_PATH
10893   case $host_vendor in
10894     sni)
10895       shlibpath_overrides_runpath=no
10896       need_lib_prefix=no
10897       runpath_var=LD_RUN_PATH
10898       ;;
10899     siemens)
10900       need_lib_prefix=no
10901       ;;
10902     motorola)
10903       need_lib_prefix=no
10904       need_version=no
10905       shlibpath_overrides_runpath=no
10906       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10907       ;;
10908   esac
10909   ;;
10910
10911 sysv4*MP*)
10912   if test -d /usr/nec ;then
10913     version_type=linux # correct to gnu/linux during the next big refactor
10914     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10915     soname_spec='$libname${shared_ext}.$major'
10916     shlibpath_var=LD_LIBRARY_PATH
10917   fi
10918   ;;
10919
10920 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10921   version_type=freebsd-elf
10922   need_lib_prefix=no
10923   need_version=no
10924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10925   soname_spec='${libname}${release}${shared_ext}$major'
10926   shlibpath_var=LD_LIBRARY_PATH
10927   shlibpath_overrides_runpath=yes
10928   hardcode_into_libs=yes
10929   if test "$with_gnu_ld" = yes; then
10930     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10931   else
10932     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10933     case $host_os in
10934       sco3.2v5*)
10935         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10936         ;;
10937     esac
10938   fi
10939   sys_lib_dlsearch_path_spec='/usr/lib'
10940   ;;
10941
10942 tpf*)
10943   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10944   version_type=linux # correct to gnu/linux during the next big refactor
10945   need_lib_prefix=no
10946   need_version=no
10947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948   shlibpath_var=LD_LIBRARY_PATH
10949   shlibpath_overrides_runpath=no
10950   hardcode_into_libs=yes
10951   ;;
10952
10953 uts4*)
10954   version_type=linux # correct to gnu/linux during the next big refactor
10955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10956   soname_spec='${libname}${release}${shared_ext}$major'
10957   shlibpath_var=LD_LIBRARY_PATH
10958   ;;
10959
10960 *)
10961   dynamic_linker=no
10962   ;;
10963 esac
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10965 $as_echo "$dynamic_linker" >&6; }
10966 test "$dynamic_linker" = no && can_build_shared=no
10967
10968 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10969 if test "$GCC" = yes; then
10970   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10971 fi
10972
10973 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10974   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10975 fi
10976 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10977   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10978 fi
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11072 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11073 hardcode_action=
11074 if test -n "$hardcode_libdir_flag_spec" ||
11075    test -n "$runpath_var" ||
11076    test "X$hardcode_automatic" = "Xyes" ; then
11077
11078   # We can hardcode non-existent directories.
11079   if test "$hardcode_direct" != no &&
11080      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11081      # have to relink, otherwise we might link with an installed library
11082      # when we should be linking with a yet-to-be-installed one
11083      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11084      test "$hardcode_minus_L" != no; then
11085     # Linking always hardcodes the temporary library directory.
11086     hardcode_action=relink
11087   else
11088     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11089     hardcode_action=immediate
11090   fi
11091 else
11092   # We cannot hardcode anything, or else we can only hardcode existing
11093   # directories.
11094   hardcode_action=unsupported
11095 fi
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11097 $as_echo "$hardcode_action" >&6; }
11098
11099 if test "$hardcode_action" = relink ||
11100    test "$inherit_rpath" = yes; then
11101   # Fast installation is not supported
11102   enable_fast_install=no
11103 elif test "$shlibpath_overrides_runpath" = yes ||
11104      test "$enable_shared" = no; then
11105   # Fast installation is not necessary
11106   enable_fast_install=needless
11107 fi
11108
11109
11110
11111
11112
11113
11114   if test "x$enable_dlopen" != xyes; then
11115   enable_dlopen=unknown
11116   enable_dlopen_self=unknown
11117   enable_dlopen_self_static=unknown
11118 else
11119   lt_cv_dlopen=no
11120   lt_cv_dlopen_libs=
11121
11122   case $host_os in
11123   beos*)
11124     lt_cv_dlopen="load_add_on"
11125     lt_cv_dlopen_libs=
11126     lt_cv_dlopen_self=yes
11127     ;;
11128
11129   mingw* | pw32* | cegcc*)
11130     lt_cv_dlopen="LoadLibrary"
11131     lt_cv_dlopen_libs=
11132     ;;
11133
11134   cygwin*)
11135     lt_cv_dlopen="dlopen"
11136     lt_cv_dlopen_libs=
11137     ;;
11138
11139   darwin*)
11140   # if libdl is installed we need to link against it
11141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11142 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11143 if ${ac_cv_lib_dl_dlopen+:} false; then :
11144   $as_echo_n "(cached) " >&6
11145 else
11146   ac_check_lib_save_LIBS=$LIBS
11147 LIBS="-ldl  $LIBS"
11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h.  */
11150
11151 /* Override any GCC internal prototype to avoid an error.
11152    Use char because int might match the return type of a GCC
11153    builtin and then its argument prototype would still apply.  */
11154 #ifdef __cplusplus
11155 extern "C"
11156 #endif
11157 char dlopen ();
11158 int
11159 main ()
11160 {
11161 return dlopen ();
11162   ;
11163   return 0;
11164 }
11165 _ACEOF
11166 if ac_fn_c_try_link "$LINENO"; then :
11167   ac_cv_lib_dl_dlopen=yes
11168 else
11169   ac_cv_lib_dl_dlopen=no
11170 fi
11171 rm -f core conftest.err conftest.$ac_objext \
11172     conftest$ac_exeext conftest.$ac_ext
11173 LIBS=$ac_check_lib_save_LIBS
11174 fi
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11176 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11177 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11178   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11179 else
11180
11181     lt_cv_dlopen="dyld"
11182     lt_cv_dlopen_libs=
11183     lt_cv_dlopen_self=yes
11184
11185 fi
11186
11187     ;;
11188
11189   *)
11190     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11191 if test "x$ac_cv_func_shl_load" = xyes; then :
11192   lt_cv_dlopen="shl_load"
11193 else
11194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11195 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11196 if ${ac_cv_lib_dld_shl_load+:} false; then :
11197   $as_echo_n "(cached) " >&6
11198 else
11199   ac_check_lib_save_LIBS=$LIBS
11200 LIBS="-ldld  $LIBS"
11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h.  */
11203
11204 /* Override any GCC internal prototype to avoid an error.
11205    Use char because int might match the return type of a GCC
11206    builtin and then its argument prototype would still apply.  */
11207 #ifdef __cplusplus
11208 extern "C"
11209 #endif
11210 char shl_load ();
11211 int
11212 main ()
11213 {
11214 return shl_load ();
11215   ;
11216   return 0;
11217 }
11218 _ACEOF
11219 if ac_fn_c_try_link "$LINENO"; then :
11220   ac_cv_lib_dld_shl_load=yes
11221 else
11222   ac_cv_lib_dld_shl_load=no
11223 fi
11224 rm -f core conftest.err conftest.$ac_objext \
11225     conftest$ac_exeext conftest.$ac_ext
11226 LIBS=$ac_check_lib_save_LIBS
11227 fi
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11229 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11230 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11231   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11232 else
11233   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11234 if test "x$ac_cv_func_dlopen" = xyes; then :
11235   lt_cv_dlopen="dlopen"
11236 else
11237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11238 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11239 if ${ac_cv_lib_dl_dlopen+:} false; then :
11240   $as_echo_n "(cached) " >&6
11241 else
11242   ac_check_lib_save_LIBS=$LIBS
11243 LIBS="-ldl  $LIBS"
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h.  */
11246
11247 /* Override any GCC internal prototype to avoid an error.
11248    Use char because int might match the return type of a GCC
11249    builtin and then its argument prototype would still apply.  */
11250 #ifdef __cplusplus
11251 extern "C"
11252 #endif
11253 char dlopen ();
11254 int
11255 main ()
11256 {
11257 return dlopen ();
11258   ;
11259   return 0;
11260 }
11261 _ACEOF
11262 if ac_fn_c_try_link "$LINENO"; then :
11263   ac_cv_lib_dl_dlopen=yes
11264 else
11265   ac_cv_lib_dl_dlopen=no
11266 fi
11267 rm -f core conftest.err conftest.$ac_objext \
11268     conftest$ac_exeext conftest.$ac_ext
11269 LIBS=$ac_check_lib_save_LIBS
11270 fi
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11272 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11273 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11274   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11275 else
11276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11277 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11278 if ${ac_cv_lib_svld_dlopen+:} false; then :
11279   $as_echo_n "(cached) " >&6
11280 else
11281   ac_check_lib_save_LIBS=$LIBS
11282 LIBS="-lsvld  $LIBS"
11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h.  */
11285
11286 /* Override any GCC internal prototype to avoid an error.
11287    Use char because int might match the return type of a GCC
11288    builtin and then its argument prototype would still apply.  */
11289 #ifdef __cplusplus
11290 extern "C"
11291 #endif
11292 char dlopen ();
11293 int
11294 main ()
11295 {
11296 return dlopen ();
11297   ;
11298   return 0;
11299 }
11300 _ACEOF
11301 if ac_fn_c_try_link "$LINENO"; then :
11302   ac_cv_lib_svld_dlopen=yes
11303 else
11304   ac_cv_lib_svld_dlopen=no
11305 fi
11306 rm -f core conftest.err conftest.$ac_objext \
11307     conftest$ac_exeext conftest.$ac_ext
11308 LIBS=$ac_check_lib_save_LIBS
11309 fi
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11311 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11312 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11313   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11314 else
11315   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11316 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11317 if ${ac_cv_lib_dld_dld_link+:} false; then :
11318   $as_echo_n "(cached) " >&6
11319 else
11320   ac_check_lib_save_LIBS=$LIBS
11321 LIBS="-ldld  $LIBS"
11322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h.  */
11324
11325 /* Override any GCC internal prototype to avoid an error.
11326    Use char because int might match the return type of a GCC
11327    builtin and then its argument prototype would still apply.  */
11328 #ifdef __cplusplus
11329 extern "C"
11330 #endif
11331 char dld_link ();
11332 int
11333 main ()
11334 {
11335 return dld_link ();
11336   ;
11337   return 0;
11338 }
11339 _ACEOF
11340 if ac_fn_c_try_link "$LINENO"; then :
11341   ac_cv_lib_dld_dld_link=yes
11342 else
11343   ac_cv_lib_dld_dld_link=no
11344 fi
11345 rm -f core conftest.err conftest.$ac_objext \
11346     conftest$ac_exeext conftest.$ac_ext
11347 LIBS=$ac_check_lib_save_LIBS
11348 fi
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11350 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11351 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11352   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11353 fi
11354
11355
11356 fi
11357
11358
11359 fi
11360
11361
11362 fi
11363
11364
11365 fi
11366
11367
11368 fi
11369
11370     ;;
11371   esac
11372
11373   if test "x$lt_cv_dlopen" != xno; then
11374     enable_dlopen=yes
11375   else
11376     enable_dlopen=no
11377   fi
11378
11379   case $lt_cv_dlopen in
11380   dlopen)
11381     save_CPPFLAGS="$CPPFLAGS"
11382     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11383
11384     save_LDFLAGS="$LDFLAGS"
11385     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11386
11387     save_LIBS="$LIBS"
11388     LIBS="$lt_cv_dlopen_libs $LIBS"
11389
11390     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11391 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11392 if ${lt_cv_dlopen_self+:} false; then :
11393   $as_echo_n "(cached) " >&6
11394 else
11395           if test "$cross_compiling" = yes; then :
11396   lt_cv_dlopen_self=cross
11397 else
11398   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11399   lt_status=$lt_dlunknown
11400   cat > conftest.$ac_ext <<_LT_EOF
11401 #line $LINENO "configure"
11402 #include "confdefs.h"
11403
11404 #if HAVE_DLFCN_H
11405 #include <dlfcn.h>
11406 #endif
11407
11408 #include <stdio.h>
11409
11410 #ifdef RTLD_GLOBAL
11411 #  define LT_DLGLOBAL           RTLD_GLOBAL
11412 #else
11413 #  ifdef DL_GLOBAL
11414 #    define LT_DLGLOBAL         DL_GLOBAL
11415 #  else
11416 #    define LT_DLGLOBAL         0
11417 #  endif
11418 #endif
11419
11420 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11421    find out it does not work in some platform. */
11422 #ifndef LT_DLLAZY_OR_NOW
11423 #  ifdef RTLD_LAZY
11424 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11425 #  else
11426 #    ifdef DL_LAZY
11427 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11428 #    else
11429 #      ifdef RTLD_NOW
11430 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11431 #      else
11432 #        ifdef DL_NOW
11433 #          define LT_DLLAZY_OR_NOW      DL_NOW
11434 #        else
11435 #          define LT_DLLAZY_OR_NOW      0
11436 #        endif
11437 #      endif
11438 #    endif
11439 #  endif
11440 #endif
11441
11442 /* When -fvisbility=hidden is used, assume the code has been annotated
11443    correspondingly for the symbols needed.  */
11444 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11445 int fnord () __attribute__((visibility("default")));
11446 #endif
11447
11448 int fnord () { return 42; }
11449 int main ()
11450 {
11451   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11452   int status = $lt_dlunknown;
11453
11454   if (self)
11455     {
11456       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11457       else
11458         {
11459           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11460           else puts (dlerror ());
11461         }
11462       /* dlclose (self); */
11463     }
11464   else
11465     puts (dlerror ());
11466
11467   return status;
11468 }
11469 _LT_EOF
11470   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11471   (eval $ac_link) 2>&5
11472   ac_status=$?
11473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11474   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11475     (./conftest; exit; ) >&5 2>/dev/null
11476     lt_status=$?
11477     case x$lt_status in
11478       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11479       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11480       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11481     esac
11482   else :
11483     # compilation failed
11484     lt_cv_dlopen_self=no
11485   fi
11486 fi
11487 rm -fr conftest*
11488
11489
11490 fi
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11492 $as_echo "$lt_cv_dlopen_self" >&6; }
11493
11494     if test "x$lt_cv_dlopen_self" = xyes; then
11495       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11496       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11497 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11498 if ${lt_cv_dlopen_self_static+:} false; then :
11499   $as_echo_n "(cached) " >&6
11500 else
11501           if test "$cross_compiling" = yes; then :
11502   lt_cv_dlopen_self_static=cross
11503 else
11504   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11505   lt_status=$lt_dlunknown
11506   cat > conftest.$ac_ext <<_LT_EOF
11507 #line $LINENO "configure"
11508 #include "confdefs.h"
11509
11510 #if HAVE_DLFCN_H
11511 #include <dlfcn.h>
11512 #endif
11513
11514 #include <stdio.h>
11515
11516 #ifdef RTLD_GLOBAL
11517 #  define LT_DLGLOBAL           RTLD_GLOBAL
11518 #else
11519 #  ifdef DL_GLOBAL
11520 #    define LT_DLGLOBAL         DL_GLOBAL
11521 #  else
11522 #    define LT_DLGLOBAL         0
11523 #  endif
11524 #endif
11525
11526 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11527    find out it does not work in some platform. */
11528 #ifndef LT_DLLAZY_OR_NOW
11529 #  ifdef RTLD_LAZY
11530 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11531 #  else
11532 #    ifdef DL_LAZY
11533 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11534 #    else
11535 #      ifdef RTLD_NOW
11536 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11537 #      else
11538 #        ifdef DL_NOW
11539 #          define LT_DLLAZY_OR_NOW      DL_NOW
11540 #        else
11541 #          define LT_DLLAZY_OR_NOW      0
11542 #        endif
11543 #      endif
11544 #    endif
11545 #  endif
11546 #endif
11547
11548 /* When -fvisbility=hidden is used, assume the code has been annotated
11549    correspondingly for the symbols needed.  */
11550 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11551 int fnord () __attribute__((visibility("default")));
11552 #endif
11553
11554 int fnord () { return 42; }
11555 int main ()
11556 {
11557   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11558   int status = $lt_dlunknown;
11559
11560   if (self)
11561     {
11562       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11563       else
11564         {
11565           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11566           else puts (dlerror ());
11567         }
11568       /* dlclose (self); */
11569     }
11570   else
11571     puts (dlerror ());
11572
11573   return status;
11574 }
11575 _LT_EOF
11576   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11577   (eval $ac_link) 2>&5
11578   ac_status=$?
11579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11580   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11581     (./conftest; exit; ) >&5 2>/dev/null
11582     lt_status=$?
11583     case x$lt_status in
11584       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11585       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11586       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11587     esac
11588   else :
11589     # compilation failed
11590     lt_cv_dlopen_self_static=no
11591   fi
11592 fi
11593 rm -fr conftest*
11594
11595
11596 fi
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11598 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11599     fi
11600
11601     CPPFLAGS="$save_CPPFLAGS"
11602     LDFLAGS="$save_LDFLAGS"
11603     LIBS="$save_LIBS"
11604     ;;
11605   esac
11606
11607   case $lt_cv_dlopen_self in
11608   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11609   *) enable_dlopen_self=unknown ;;
11610   esac
11611
11612   case $lt_cv_dlopen_self_static in
11613   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11614   *) enable_dlopen_self_static=unknown ;;
11615   esac
11616 fi
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634 striplib=
11635 old_striplib=
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11637 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11638 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11639   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11640   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11642 $as_echo "yes" >&6; }
11643 else
11644 # FIXME - insert some real tests, host_os isn't really good enough
11645   case $host_os in
11646   darwin*)
11647     if test -n "$STRIP" ; then
11648       striplib="$STRIP -x"
11649       old_striplib="$STRIP -S"
11650       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11651 $as_echo "yes" >&6; }
11652     else
11653       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11655     fi
11656     ;;
11657   *)
11658     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659 $as_echo "no" >&6; }
11660     ;;
11661   esac
11662 fi
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675   # Report which library types will actually be built
11676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11677 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11679 $as_echo "$can_build_shared" >&6; }
11680
11681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11682 $as_echo_n "checking whether to build shared libraries... " >&6; }
11683   test "$can_build_shared" = "no" && enable_shared=no
11684
11685   # On AIX, shared libraries and static libraries use the same namespace, and
11686   # are all built from PIC.
11687   case $host_os in
11688   aix3*)
11689     test "$enable_shared" = yes && enable_static=no
11690     if test -n "$RANLIB"; then
11691       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11692       postinstall_cmds='$RANLIB $lib'
11693     fi
11694     ;;
11695
11696   aix[4-9]*)
11697     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11698       test "$enable_shared" = yes && enable_static=no
11699     fi
11700     ;;
11701   esac
11702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11703 $as_echo "$enable_shared" >&6; }
11704
11705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11706 $as_echo_n "checking whether to build static libraries... " >&6; }
11707   # Make sure either enable_shared or enable_static is yes.
11708   test "$enable_shared" = yes || enable_static=yes
11709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11710 $as_echo "$enable_static" >&6; }
11711
11712
11713
11714
11715 fi
11716 ac_ext=c
11717 ac_cpp='$CPP $CPPFLAGS'
11718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11721
11722 CC="$lt_save_CC"
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738         ac_config_commands="$ac_config_commands libtool"
11739
11740
11741
11742
11743 # Only expand once:
11744
11745
11746
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
11748 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
11749 if ${ac_cv_struct_tm_gmtoff+:} false; then :
11750   $as_echo_n "(cached) " >&6
11751 else
11752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11753 /* end confdefs.h.  */
11754
11755                 #include <time.h>
11756
11757 int
11758 main ()
11759 {
11760
11761                 struct tm tm;
11762                 tm.tm_gmtoff = 1;
11763
11764   ;
11765   return 0;
11766 }
11767 _ACEOF
11768 if ac_fn_c_try_compile "$LINENO"; then :
11769   ac_cv_struct_tm_gmtoff=yes
11770 else
11771   ac_cv_struct_tm_gmtoff=no
11772 fi
11773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11774 fi
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5
11776 $as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
11777
11778 if (test "$ac_cv_struct_tm_gmtoff" = "yes"); then
11779
11780 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
11781
11782 fi
11783
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
11785 $as_echo_n "checking for timezone variable... " >&6; }
11786 if ${ac_cv_var_timezone+:} false; then :
11787   $as_echo_n "(cached) " >&6
11788 else
11789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h.  */
11791
11792                 #include <time.h>
11793
11794 int
11795 main ()
11796 {
11797
11798                 timezone = 1;
11799
11800   ;
11801   return 0;
11802 }
11803 _ACEOF
11804 if ac_fn_c_try_compile "$LINENO"; then :
11805   ac_cv_var_timezone=yes
11806 else
11807   ac_cv_var_timezone=no
11808 fi
11809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 fi
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5
11812 $as_echo "$ac_cv_var_timezone" >&6; }
11813
11814 if (test "$ac_cv_var_timezone" = "yes"); then
11815
11816 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
11817
11818 fi
11819
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11821 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11822 if ${ac_cv_lib_dl_dlopen+:} false; then :
11823   $as_echo_n "(cached) " >&6
11824 else
11825   ac_check_lib_save_LIBS=$LIBS
11826 LIBS="-ldl  $LIBS"
11827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11828 /* end confdefs.h.  */
11829
11830 /* Override any GCC internal prototype to avoid an error.
11831    Use char because int might match the return type of a GCC
11832    builtin and then its argument prototype would still apply.  */
11833 #ifdef __cplusplus
11834 extern "C"
11835 #endif
11836 char dlopen ();
11837 int
11838 main ()
11839 {
11840 return dlopen ();
11841   ;
11842   return 0;
11843 }
11844 _ACEOF
11845 if ac_fn_c_try_link "$LINENO"; then :
11846   ac_cv_lib_dl_dlopen=yes
11847 else
11848   ac_cv_lib_dl_dlopen=no
11849 fi
11850 rm -f core conftest.err conftest.$ac_objext \
11851     conftest$ac_exeext conftest.$ac_ext
11852 LIBS=$ac_check_lib_save_LIBS
11853 fi
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11855 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11856 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11857   dummy=yes
11858 else
11859   as_fn_error $? "dynamic linking loader is required" "$LINENO" 5
11860 fi
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11871         if test -n "$ac_tool_prefix"; then
11872   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11873 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11875 $as_echo_n "checking for $ac_word... " >&6; }
11876 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11877   $as_echo_n "(cached) " >&6
11878 else
11879   case $PKG_CONFIG in
11880   [\\/]* | ?:[\\/]*)
11881   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11882   ;;
11883   *)
11884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11885 for as_dir in $PATH
11886 do
11887   IFS=$as_save_IFS
11888   test -z "$as_dir" && as_dir=.
11889     for ac_exec_ext in '' $ac_executable_extensions; do
11890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11891     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11893     break 2
11894   fi
11895 done
11896   done
11897 IFS=$as_save_IFS
11898
11899   ;;
11900 esac
11901 fi
11902 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11903 if test -n "$PKG_CONFIG"; then
11904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11905 $as_echo "$PKG_CONFIG" >&6; }
11906 else
11907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908 $as_echo "no" >&6; }
11909 fi
11910
11911
11912 fi
11913 if test -z "$ac_cv_path_PKG_CONFIG"; then
11914   ac_pt_PKG_CONFIG=$PKG_CONFIG
11915   # Extract the first word of "pkg-config", so it can be a program name with args.
11916 set dummy pkg-config; ac_word=$2
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11918 $as_echo_n "checking for $ac_word... " >&6; }
11919 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11920   $as_echo_n "(cached) " >&6
11921 else
11922   case $ac_pt_PKG_CONFIG in
11923   [\\/]* | ?:[\\/]*)
11924   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11925   ;;
11926   *)
11927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928 for as_dir in $PATH
11929 do
11930   IFS=$as_save_IFS
11931   test -z "$as_dir" && as_dir=.
11932     for ac_exec_ext in '' $ac_executable_extensions; do
11933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11934     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11936     break 2
11937   fi
11938 done
11939   done
11940 IFS=$as_save_IFS
11941
11942   ;;
11943 esac
11944 fi
11945 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11946 if test -n "$ac_pt_PKG_CONFIG"; then
11947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11948 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11949 else
11950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951 $as_echo "no" >&6; }
11952 fi
11953
11954   if test "x$ac_pt_PKG_CONFIG" = x; then
11955     PKG_CONFIG=""
11956   else
11957     case $cross_compiling:$ac_tool_warned in
11958 yes:)
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11961 ac_tool_warned=yes ;;
11962 esac
11963     PKG_CONFIG=$ac_pt_PKG_CONFIG
11964   fi
11965 else
11966   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11967 fi
11968
11969 fi
11970 if test -n "$PKG_CONFIG"; then
11971         _pkg_min_version=0.9.0
11972         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11973 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11974         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11975                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11976 $as_echo "yes" >&6; }
11977         else
11978                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11980                 PKG_CONFIG=""
11981         fi
11982 fi
11983
11984 pkg_failed=no
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
11986 $as_echo_n "checking for GLIB... " >&6; }
11987
11988 if test -n "$GLIB_CFLAGS"; then
11989     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
11990  elif test -n "$PKG_CONFIG"; then
11991     if test -n "$PKG_CONFIG" && \
11992     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
11993   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
11994   ac_status=$?
11995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11996   test $ac_status = 0; }; then
11997   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28" 2>/dev/null`
11998                       test "x$?" != "x0" && pkg_failed=yes
11999 else
12000   pkg_failed=yes
12001 fi
12002  else
12003     pkg_failed=untried
12004 fi
12005 if test -n "$GLIB_LIBS"; then
12006     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12007  elif test -n "$PKG_CONFIG"; then
12008     if test -n "$PKG_CONFIG" && \
12009     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12010   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12011   ac_status=$?
12012   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12013   test $ac_status = 0; }; then
12014   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28" 2>/dev/null`
12015                       test "x$?" != "x0" && pkg_failed=yes
12016 else
12017   pkg_failed=yes
12018 fi
12019  else
12020     pkg_failed=untried
12021 fi
12022
12023
12024
12025 if test $pkg_failed = yes; then
12026         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027 $as_echo "no" >&6; }
12028
12029 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12030         _pkg_short_errors_supported=yes
12031 else
12032         _pkg_short_errors_supported=no
12033 fi
12034         if test $_pkg_short_errors_supported = yes; then
12035                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12036         else
12037                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12038         fi
12039         # Put the nasty error message in config.log where it belongs
12040         echo "$GLIB_PKG_ERRORS" >&5
12041
12042         as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12043 elif test $pkg_failed = untried; then
12044         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045 $as_echo "no" >&6; }
12046         as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12047 else
12048         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12049         GLIB_LIBS=$pkg_cv_GLIB_LIBS
12050         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12051 $as_echo "yes" >&6; }
12052         dummy=yes
12053 fi
12054
12055
12056
12057
12058 pkg_failed=no
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
12060 $as_echo_n "checking for DBUS... " >&6; }
12061
12062 if test -n "$DBUS_CFLAGS"; then
12063     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
12064  elif test -n "$PKG_CONFIG"; then
12065     if test -n "$PKG_CONFIG" && \
12066     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.4\""; } >&5
12067   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.4") 2>&5
12068   ac_status=$?
12069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12070   test $ac_status = 0; }; then
12071   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.4" 2>/dev/null`
12072                       test "x$?" != "x0" && pkg_failed=yes
12073 else
12074   pkg_failed=yes
12075 fi
12076  else
12077     pkg_failed=untried
12078 fi
12079 if test -n "$DBUS_LIBS"; then
12080     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
12081  elif test -n "$PKG_CONFIG"; then
12082     if test -n "$PKG_CONFIG" && \
12083     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.4\""; } >&5
12084   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.4") 2>&5
12085   ac_status=$?
12086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12087   test $ac_status = 0; }; then
12088   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.4" 2>/dev/null`
12089                       test "x$?" != "x0" && pkg_failed=yes
12090 else
12091   pkg_failed=yes
12092 fi
12093  else
12094     pkg_failed=untried
12095 fi
12096
12097
12098
12099 if test $pkg_failed = yes; then
12100         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12101 $as_echo "no" >&6; }
12102
12103 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12104         _pkg_short_errors_supported=yes
12105 else
12106         _pkg_short_errors_supported=no
12107 fi
12108         if test $_pkg_short_errors_supported = yes; then
12109                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 1.4" 2>&1`
12110         else
12111                 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 1.4" 2>&1`
12112         fi
12113         # Put the nasty error message in config.log where it belongs
12114         echo "$DBUS_PKG_ERRORS" >&5
12115
12116         as_fn_error $? "D-Bus >= 1.4 is required" "$LINENO" 5
12117 elif test $pkg_failed = untried; then
12118         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12119 $as_echo "no" >&6; }
12120         as_fn_error $? "D-Bus >= 1.4 is required" "$LINENO" 5
12121 else
12122         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
12123         DBUS_LIBS=$pkg_cv_DBUS_LIBS
12124         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12125 $as_echo "yes" >&6; }
12126         dummy=yes
12127 fi
12128
12129
12130
12131
12132 pkg_failed=no
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLUEZ" >&5
12134 $as_echo_n "checking for BLUEZ... " >&6; }
12135
12136 if test -n "$BLUEZ_CFLAGS"; then
12137     pkg_cv_BLUEZ_CFLAGS="$BLUEZ_CFLAGS"
12138  elif test -n "$PKG_CONFIG"; then
12139     if test -n "$PKG_CONFIG" && \
12140     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez >= 4.100\""; } >&5
12141   ($PKG_CONFIG --exists --print-errors "bluez >= 4.100") 2>&5
12142   ac_status=$?
12143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12144   test $ac_status = 0; }; then
12145   pkg_cv_BLUEZ_CFLAGS=`$PKG_CONFIG --cflags "bluez >= 4.100" 2>/dev/null`
12146                       test "x$?" != "x0" && pkg_failed=yes
12147 else
12148   pkg_failed=yes
12149 fi
12150  else
12151     pkg_failed=untried
12152 fi
12153 if test -n "$BLUEZ_LIBS"; then
12154     pkg_cv_BLUEZ_LIBS="$BLUEZ_LIBS"
12155  elif test -n "$PKG_CONFIG"; then
12156     if test -n "$PKG_CONFIG" && \
12157     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez >= 4.100\""; } >&5
12158   ($PKG_CONFIG --exists --print-errors "bluez >= 4.100") 2>&5
12159   ac_status=$?
12160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12161   test $ac_status = 0; }; then
12162   pkg_cv_BLUEZ_LIBS=`$PKG_CONFIG --libs "bluez >= 4.100" 2>/dev/null`
12163                       test "x$?" != "x0" && pkg_failed=yes
12164 else
12165   pkg_failed=yes
12166 fi
12167  else
12168     pkg_failed=untried
12169 fi
12170
12171
12172
12173 if test $pkg_failed = yes; then
12174         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12176
12177 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12178         _pkg_short_errors_supported=yes
12179 else
12180         _pkg_short_errors_supported=no
12181 fi
12182         if test $_pkg_short_errors_supported = yes; then
12183                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bluez >= 4.100" 2>&1`
12184         else
12185                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bluez >= 4.100" 2>&1`
12186         fi
12187         # Put the nasty error message in config.log where it belongs
12188         echo "$BLUEZ_PKG_ERRORS" >&5
12189
12190         as_fn_error $? "BlueZ >= 4.100 is required" "$LINENO" 5
12191 elif test $pkg_failed = untried; then
12192         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12194         as_fn_error $? "BlueZ >= 4.100 is required" "$LINENO" 5
12195 else
12196         BLUEZ_CFLAGS=$pkg_cv_BLUEZ_CFLAGS
12197         BLUEZ_LIBS=$pkg_cv_BLUEZ_LIBS
12198         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12199 $as_echo "yes" >&6; }
12200         dummy=yes
12201 fi
12202
12203
12204
12205 # Check whether --enable-optimization was given.
12206 if test "${enable_optimization+set}" = set; then :
12207   enableval=$enable_optimization;
12208         if (test "${enableval}" = "no"); then
12209                 CFLAGS="$CFLAGS -O0"
12210         fi
12211
12212 fi
12213
12214
12215 # Check whether --enable-debug was given.
12216 if test "${enable_debug+set}" = set; then :
12217   enableval=$enable_debug;
12218         if (test "${enableval}" = "yes" && test "${ac_cv_prog_cc_g}" = "yes"); then
12219                 CFLAGS="$CFLAGS -g"
12220         fi
12221
12222 fi
12223
12224
12225 messages_driver=dummy
12226
12227 # Check whether --with-messages was given.
12228 if test "${with_messages+set}" = set; then :
12229   withval=$with_messages;
12230         if (test "${withval}" = "no"); then
12231                 messages_driver=dummy;
12232         else
12233                 messages_driver=${withval};
12234         fi
12235
12236 fi
12237
12238
12239 MESSAGES_DRIVER=messages-${messages_driver}.c
12240
12241
12242 phonebook_driver=dummy
12243
12244 # Check whether --with-phonebook was given.
12245 if test "${with_phonebook+set}" = set; then :
12246   withval=$with_phonebook;
12247         if (test "${withval}" = "no"); then
12248                 phonebook_driver=dummy;
12249         else
12250                 phonebook_driver=${withval};
12251         fi
12252
12253 fi
12254
12255
12256 if (test "${phonebook_driver}" = "dummy"); then
12257
12258 pkg_failed=no
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL" >&5
12260 $as_echo_n "checking for LIBICAL... " >&6; }
12261
12262 if test -n "$LIBICAL_CFLAGS"; then
12263     pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
12264  elif test -n "$PKG_CONFIG"; then
12265     if test -n "$PKG_CONFIG" && \
12266     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
12267   ($PKG_CONFIG --exists --print-errors "libical") 2>&5
12268   ac_status=$?
12269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12270   test $ac_status = 0; }; then
12271   pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libical" 2>/dev/null`
12272                       test "x$?" != "x0" && pkg_failed=yes
12273 else
12274   pkg_failed=yes
12275 fi
12276  else
12277     pkg_failed=untried
12278 fi
12279 if test -n "$LIBICAL_LIBS"; then
12280     pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
12281  elif test -n "$PKG_CONFIG"; then
12282     if test -n "$PKG_CONFIG" && \
12283     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
12284   ($PKG_CONFIG --exists --print-errors "libical") 2>&5
12285   ac_status=$?
12286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12287   test $ac_status = 0; }; then
12288   pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libical" 2>/dev/null`
12289                       test "x$?" != "x0" && pkg_failed=yes
12290 else
12291   pkg_failed=yes
12292 fi
12293  else
12294     pkg_failed=untried
12295 fi
12296
12297
12298
12299 if test $pkg_failed = yes; then
12300         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12301 $as_echo "no" >&6; }
12302
12303 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12304         _pkg_short_errors_supported=yes
12305 else
12306         _pkg_short_errors_supported=no
12307 fi
12308         if test $_pkg_short_errors_supported = yes; then
12309                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libical" 2>&1`
12310         else
12311                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libical" 2>&1`
12312         fi
12313         # Put the nasty error message in config.log where it belongs
12314         echo "$LIBICAL_PKG_ERRORS" >&5
12315
12316         as_fn_error $? "libical is required" "$LINENO" 5
12317 elif test $pkg_failed = untried; then
12318         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12319 $as_echo "no" >&6; }
12320         as_fn_error $? "libical is required" "$LINENO" 5
12321 else
12322         LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
12323         LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
12324         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12325 $as_echo "yes" >&6; }
12326         dummy=yes
12327 fi
12328
12329
12330 fi
12331
12332 if (test "${phonebook_driver}" = "ebook"); then
12333
12334 $as_echo "#define NEED_THREADS 1" >>confdefs.h
12335
12336
12337
12338 pkg_failed=no
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBOOK" >&5
12340 $as_echo_n "checking for EBOOK... " >&6; }
12341
12342 if test -n "$EBOOK_CFLAGS"; then
12343     pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
12344  elif test -n "$PKG_CONFIG"; then
12345     if test -n "$PKG_CONFIG" && \
12346     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2\""; } >&5
12347   ($PKG_CONFIG --exists --print-errors "libebook-1.2") 2>&5
12348   ac_status=$?
12349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12350   test $ac_status = 0; }; then
12351   pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "libebook-1.2" 2>/dev/null`
12352                       test "x$?" != "x0" && pkg_failed=yes
12353 else
12354   pkg_failed=yes
12355 fi
12356  else
12357     pkg_failed=untried
12358 fi
12359 if test -n "$EBOOK_LIBS"; then
12360     pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
12361  elif test -n "$PKG_CONFIG"; then
12362     if test -n "$PKG_CONFIG" && \
12363     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2\""; } >&5
12364   ($PKG_CONFIG --exists --print-errors "libebook-1.2") 2>&5
12365   ac_status=$?
12366   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12367   test $ac_status = 0; }; then
12368   pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "libebook-1.2" 2>/dev/null`
12369                       test "x$?" != "x0" && pkg_failed=yes
12370 else
12371   pkg_failed=yes
12372 fi
12373  else
12374     pkg_failed=untried
12375 fi
12376
12377
12378
12379 if test $pkg_failed = yes; then
12380         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381 $as_echo "no" >&6; }
12382
12383 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12384         _pkg_short_errors_supported=yes
12385 else
12386         _pkg_short_errors_supported=no
12387 fi
12388         if test $_pkg_short_errors_supported = yes; then
12389                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libebook-1.2" 2>&1`
12390         else
12391                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libebook-1.2" 2>&1`
12392         fi
12393         # Put the nasty error message in config.log where it belongs
12394         echo "$EBOOK_PKG_ERRORS" >&5
12395
12396         as_fn_error $? "libebook is required" "$LINENO" 5
12397 elif test $pkg_failed = untried; then
12398         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399 $as_echo "no" >&6; }
12400         as_fn_error $? "libebook is required" "$LINENO" 5
12401 else
12402         EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
12403         EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
12404         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12405 $as_echo "yes" >&6; }
12406         dummy=yes
12407 fi
12408
12409
12410
12411
12412 pkg_failed=no
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
12414 $as_echo_n "checking for GTHREAD... " >&6; }
12415
12416 if test -n "$GTHREAD_CFLAGS"; then
12417     pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
12418  elif test -n "$PKG_CONFIG"; then
12419     if test -n "$PKG_CONFIG" && \
12420     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
12421   ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
12422   ac_status=$?
12423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12424   test $ac_status = 0; }; then
12425   pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null`
12426                       test "x$?" != "x0" && pkg_failed=yes
12427 else
12428   pkg_failed=yes
12429 fi
12430  else
12431     pkg_failed=untried
12432 fi
12433 if test -n "$GTHREAD_LIBS"; then
12434     pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
12435  elif test -n "$PKG_CONFIG"; then
12436     if test -n "$PKG_CONFIG" && \
12437     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
12438   ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
12439   ac_status=$?
12440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12441   test $ac_status = 0; }; then
12442   pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
12443                       test "x$?" != "x0" && pkg_failed=yes
12444 else
12445   pkg_failed=yes
12446 fi
12447  else
12448     pkg_failed=untried
12449 fi
12450
12451
12452
12453 if test $pkg_failed = yes; then
12454         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455 $as_echo "no" >&6; }
12456
12457 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12458         _pkg_short_errors_supported=yes
12459 else
12460         _pkg_short_errors_supported=no
12461 fi
12462         if test $_pkg_short_errors_supported = yes; then
12463                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0" 2>&1`
12464         else
12465                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0" 2>&1`
12466         fi
12467         # Put the nasty error message in config.log where it belongs
12468         echo "$GTHREAD_PKG_ERRORS" >&5
12469
12470         as_fn_error $? "libgthread is required" "$LINENO" 5
12471 elif test $pkg_failed = untried; then
12472         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 $as_echo "no" >&6; }
12474         as_fn_error $? "libgthread is required" "$LINENO" 5
12475 else
12476         GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
12477         GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
12478         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12479 $as_echo "yes" >&6; }
12480         dummy=yes
12481 fi
12482
12483
12484 fi
12485
12486 if (test "${phonebook_driver}" = "tracker"); then
12487
12488 pkg_failed=no
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TRACKER_09" >&5
12490 $as_echo_n "checking for TRACKER_09... " >&6; }
12491
12492 if test -n "$TRACKER_09_CFLAGS"; then
12493     pkg_cv_TRACKER_09_CFLAGS="$TRACKER_09_CFLAGS"
12494  elif test -n "$PKG_CONFIG"; then
12495     if test -n "$PKG_CONFIG" && \
12496     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tracker-sparql-0.9\""; } >&5
12497   ($PKG_CONFIG --exists --print-errors "tracker-sparql-0.9") 2>&5
12498   ac_status=$?
12499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12500   test $ac_status = 0; }; then
12501   pkg_cv_TRACKER_09_CFLAGS=`$PKG_CONFIG --cflags "tracker-sparql-0.9" 2>/dev/null`
12502                       test "x$?" != "x0" && pkg_failed=yes
12503 else
12504   pkg_failed=yes
12505 fi
12506  else
12507     pkg_failed=untried
12508 fi
12509 if test -n "$TRACKER_09_LIBS"; then
12510     pkg_cv_TRACKER_09_LIBS="$TRACKER_09_LIBS"
12511  elif test -n "$PKG_CONFIG"; then
12512     if test -n "$PKG_CONFIG" && \
12513     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tracker-sparql-0.9\""; } >&5
12514   ($PKG_CONFIG --exists --print-errors "tracker-sparql-0.9") 2>&5
12515   ac_status=$?
12516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12517   test $ac_status = 0; }; then
12518   pkg_cv_TRACKER_09_LIBS=`$PKG_CONFIG --libs "tracker-sparql-0.9" 2>/dev/null`
12519                       test "x$?" != "x0" && pkg_failed=yes
12520 else
12521   pkg_failed=yes
12522 fi
12523  else
12524     pkg_failed=untried
12525 fi
12526
12527
12528
12529 if test $pkg_failed = yes; then
12530         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531 $as_echo "no" >&6; }
12532
12533 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12534         _pkg_short_errors_supported=yes
12535 else
12536         _pkg_short_errors_supported=no
12537 fi
12538         if test $_pkg_short_errors_supported = yes; then
12539                 TRACKER_09_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tracker-sparql-0.9" 2>&1`
12540         else
12541                 TRACKER_09_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tracker-sparql-0.9" 2>&1`
12542         fi
12543         # Put the nasty error message in config.log where it belongs
12544         echo "$TRACKER_09_PKG_ERRORS" >&5
12545
12546
12547
12548 pkg_failed=no
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TRACKER_10" >&5
12550 $as_echo_n "checking for TRACKER_10... " >&6; }
12551
12552 if test -n "$TRACKER_10_CFLAGS"; then
12553     pkg_cv_TRACKER_10_CFLAGS="$TRACKER_10_CFLAGS"
12554  elif test -n "$PKG_CONFIG"; then
12555     if test -n "$PKG_CONFIG" && \
12556     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tracker-sparql-0.10\""; } >&5
12557   ($PKG_CONFIG --exists --print-errors "tracker-sparql-0.10") 2>&5
12558   ac_status=$?
12559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12560   test $ac_status = 0; }; then
12561   pkg_cv_TRACKER_10_CFLAGS=`$PKG_CONFIG --cflags "tracker-sparql-0.10" 2>/dev/null`
12562                       test "x$?" != "x0" && pkg_failed=yes
12563 else
12564   pkg_failed=yes
12565 fi
12566  else
12567     pkg_failed=untried
12568 fi
12569 if test -n "$TRACKER_10_LIBS"; then
12570     pkg_cv_TRACKER_10_LIBS="$TRACKER_10_LIBS"
12571  elif test -n "$PKG_CONFIG"; then
12572     if test -n "$PKG_CONFIG" && \
12573     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tracker-sparql-0.10\""; } >&5
12574   ($PKG_CONFIG --exists --print-errors "tracker-sparql-0.10") 2>&5
12575   ac_status=$?
12576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12577   test $ac_status = 0; }; then
12578   pkg_cv_TRACKER_10_LIBS=`$PKG_CONFIG --libs "tracker-sparql-0.10" 2>/dev/null`
12579                       test "x$?" != "x0" && pkg_failed=yes
12580 else
12581   pkg_failed=yes
12582 fi
12583  else
12584     pkg_failed=untried
12585 fi
12586
12587
12588
12589 if test $pkg_failed = yes; then
12590         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591 $as_echo "no" >&6; }
12592
12593 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12594         _pkg_short_errors_supported=yes
12595 else
12596         _pkg_short_errors_supported=no
12597 fi
12598         if test $_pkg_short_errors_supported = yes; then
12599                 TRACKER_10_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tracker-sparql-0.10" 2>&1`
12600         else
12601                 TRACKER_10_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tracker-sparql-0.10" 2>&1`
12602         fi
12603         # Put the nasty error message in config.log where it belongs
12604         echo "$TRACKER_10_PKG_ERRORS" >&5
12605
12606         as_fn_error $? "libtracker-sparql is required" "$LINENO" 5
12607 elif test $pkg_failed = untried; then
12608         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12609 $as_echo "no" >&6; }
12610         as_fn_error $? "libtracker-sparql is required" "$LINENO" 5
12611 else
12612         TRACKER_10_CFLAGS=$pkg_cv_TRACKER_10_CFLAGS
12613         TRACKER_10_LIBS=$pkg_cv_TRACKER_10_LIBS
12614         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12615 $as_echo "yes" >&6; }
12616
12617                                         TRACKER_CFLAGS=${TRACKER_10_CFLAGS}
12618                                         TRACKER_LIBS=${TRACKER_10_LIBS}
12619
12620 fi
12621 elif test $pkg_failed = untried; then
12622         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623 $as_echo "no" >&6; }
12624
12625
12626 pkg_failed=no
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TRACKER_10" >&5
12628 $as_echo_n "checking for TRACKER_10... " >&6; }
12629
12630 if test -n "$TRACKER_10_CFLAGS"; then
12631     pkg_cv_TRACKER_10_CFLAGS="$TRACKER_10_CFLAGS"
12632  elif test -n "$PKG_CONFIG"; then
12633     if test -n "$PKG_CONFIG" && \
12634     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tracker-sparql-0.10\""; } >&5
12635   ($PKG_CONFIG --exists --print-errors "tracker-sparql-0.10") 2>&5
12636   ac_status=$?
12637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12638   test $ac_status = 0; }; then
12639   pkg_cv_TRACKER_10_CFLAGS=`$PKG_CONFIG --cflags "tracker-sparql-0.10" 2>/dev/null`
12640                       test "x$?" != "x0" && pkg_failed=yes
12641 else
12642   pkg_failed=yes
12643 fi
12644  else
12645     pkg_failed=untried
12646 fi
12647 if test -n "$TRACKER_10_LIBS"; then
12648     pkg_cv_TRACKER_10_LIBS="$TRACKER_10_LIBS"
12649  elif test -n "$PKG_CONFIG"; then
12650     if test -n "$PKG_CONFIG" && \
12651     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tracker-sparql-0.10\""; } >&5
12652   ($PKG_CONFIG --exists --print-errors "tracker-sparql-0.10") 2>&5
12653   ac_status=$?
12654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12655   test $ac_status = 0; }; then
12656   pkg_cv_TRACKER_10_LIBS=`$PKG_CONFIG --libs "tracker-sparql-0.10" 2>/dev/null`
12657                       test "x$?" != "x0" && pkg_failed=yes
12658 else
12659   pkg_failed=yes
12660 fi
12661  else
12662     pkg_failed=untried
12663 fi
12664
12665
12666
12667 if test $pkg_failed = yes; then
12668         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669 $as_echo "no" >&6; }
12670
12671 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12672         _pkg_short_errors_supported=yes
12673 else
12674         _pkg_short_errors_supported=no
12675 fi
12676         if test $_pkg_short_errors_supported = yes; then
12677                 TRACKER_10_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tracker-sparql-0.10" 2>&1`
12678         else
12679                 TRACKER_10_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tracker-sparql-0.10" 2>&1`
12680         fi
12681         # Put the nasty error message in config.log where it belongs
12682         echo "$TRACKER_10_PKG_ERRORS" >&5
12683
12684         as_fn_error $? "libtracker-sparql is required" "$LINENO" 5
12685 elif test $pkg_failed = untried; then
12686         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12687 $as_echo "no" >&6; }
12688         as_fn_error $? "libtracker-sparql is required" "$LINENO" 5
12689 else
12690         TRACKER_10_CFLAGS=$pkg_cv_TRACKER_10_CFLAGS
12691         TRACKER_10_LIBS=$pkg_cv_TRACKER_10_LIBS
12692         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12693 $as_echo "yes" >&6; }
12694
12695                                         TRACKER_CFLAGS=${TRACKER_10_CFLAGS}
12696                                         TRACKER_LIBS=${TRACKER_10_LIBS}
12697
12698 fi
12699 else
12700         TRACKER_09_CFLAGS=$pkg_cv_TRACKER_09_CFLAGS
12701         TRACKER_09_LIBS=$pkg_cv_TRACKER_09_LIBS
12702         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12703 $as_echo "yes" >&6; }
12704
12705                         TRACKER_CFLAGS=${TRACKER_09_CFLAGS}
12706                         TRACKER_LIBS=${TRACKER_09_LIBS}
12707
12708 fi
12709
12710
12711 fi
12712
12713 PHONEBOOK_DRIVER=phonebook-${phonebook_driver}.c
12714
12715
12716 # Check whether --enable-usb was given.
12717 if test "${enable_usb+set}" = set; then :
12718   enableval=$enable_usb;
12719         enable_usb=${enableval}
12720
12721 fi
12722
12723  if test "${enable_usb}" = "yes"; then
12724   USB_TRUE=
12725   USB_FALSE='#'
12726 else
12727   USB_TRUE='#'
12728   USB_FALSE=
12729 fi
12730
12731
12732 # Check whether --enable-pcsuite was given.
12733 if test "${enable_pcsuite+set}" = set; then :
12734   enableval=$enable_pcsuite;
12735         enable_pcsuite=${enableval}
12736
12737 fi
12738
12739  if test "${enable_pcsuite}" = "yes"; then
12740   NOKIA_PCSUITE_TRUE=
12741   NOKIA_PCSUITE_FALSE='#'
12742 else
12743   NOKIA_PCSUITE_TRUE='#'
12744   NOKIA_PCSUITE_FALSE=
12745 fi
12746
12747
12748 # Check whether --enable-server was given.
12749 if test "${enable_server+set}" = set; then :
12750   enableval=$enable_server;
12751         enable_server=${enableval}
12752
12753 fi
12754
12755  if test "${enable_server}" != "no"; then
12756   SERVER_TRUE=
12757   SERVER_FALSE='#'
12758 else
12759   SERVER_TRUE='#'
12760   SERVER_FALSE=
12761 fi
12762
12763
12764 # Check whether --enable-client was given.
12765 if test "${enable_client+set}" = set; then :
12766   enableval=$enable_client;
12767         enable_client=${enableval}
12768
12769 fi
12770
12771  if test "${enable_client}" != "no"; then
12772   CLIENT_TRUE=
12773   CLIENT_FALSE='#'
12774 else
12775   CLIENT_TRUE='#'
12776   CLIENT_FALSE=
12777 fi
12778
12779
12780  if test "${readline_found}" = "yes"; then
12781   READLINE_TRUE=
12782   READLINE_FALSE='#'
12783 else
12784   READLINE_TRUE='#'
12785   READLINE_FALSE=
12786 fi
12787
12788
12789 ac_config_files="$ac_config_files Makefile"
12790
12791 cat >confcache <<\_ACEOF
12792 # This file is a shell script that caches the results of configure
12793 # tests run on this system so they can be shared between configure
12794 # scripts and configure runs, see configure's option --config-cache.
12795 # It is not useful on other systems.  If it contains results you don't
12796 # want to keep, you may remove or edit it.
12797 #
12798 # config.status only pays attention to the cache file if you give it
12799 # the --recheck option to rerun configure.
12800 #
12801 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12802 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12803 # following values.
12804
12805 _ACEOF
12806
12807 # The following way of writing the cache mishandles newlines in values,
12808 # but we know of no workaround that is simple, portable, and efficient.
12809 # So, we kill variables containing newlines.
12810 # Ultrix sh set writes to stderr and can't be redirected directly,
12811 # and sets the high bit in the cache file unless we assign to the vars.
12812 (
12813   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12814     eval ac_val=\$$ac_var
12815     case $ac_val in #(
12816     *${as_nl}*)
12817       case $ac_var in #(
12818       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12819 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12820       esac
12821       case $ac_var in #(
12822       _ | IFS | as_nl) ;; #(
12823       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12824       *) { eval $ac_var=; unset $ac_var;} ;;
12825       esac ;;
12826     esac
12827   done
12828
12829   (set) 2>&1 |
12830     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12831     *${as_nl}ac_space=\ *)
12832       # `set' does not quote correctly, so add quotes: double-quote
12833       # substitution turns \\\\ into \\, and sed turns \\ into \.
12834       sed -n \
12835         "s/'/'\\\\''/g;
12836           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12837       ;; #(
12838     *)
12839       # `set' quotes correctly as required by POSIX, so do not add quotes.
12840       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12841       ;;
12842     esac |
12843     sort
12844 ) |
12845   sed '
12846      /^ac_cv_env_/b end
12847      t clear
12848      :clear
12849      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12850      t end
12851      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12852      :end' >>confcache
12853 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12854   if test -w "$cache_file"; then
12855     if test "x$cache_file" != "x/dev/null"; then
12856       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12857 $as_echo "$as_me: updating cache $cache_file" >&6;}
12858       if test ! -f "$cache_file" || test -h "$cache_file"; then
12859         cat confcache >"$cache_file"
12860       else
12861         case $cache_file in #(
12862         */* | ?:*)
12863           mv -f confcache "$cache_file"$$ &&
12864           mv -f "$cache_file"$$ "$cache_file" ;; #(
12865         *)
12866           mv -f confcache "$cache_file" ;;
12867         esac
12868       fi
12869     fi
12870   else
12871     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12872 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12873   fi
12874 fi
12875 rm -f confcache
12876
12877 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12878 # Let make expand exec_prefix.
12879 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12880
12881 DEFS=-DHAVE_CONFIG_H
12882
12883 ac_libobjs=
12884 ac_ltlibobjs=
12885 U=
12886 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12887   # 1. Remove the extension, and $U if already installed.
12888   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12889   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12890   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12891   #    will be set to the directory where LIBOBJS objects are built.
12892   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12893   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12894 done
12895 LIBOBJS=$ac_libobjs
12896
12897 LTLIBOBJS=$ac_ltlibobjs
12898
12899
12900  if test -n "$EXEEXT"; then
12901   am__EXEEXT_TRUE=
12902   am__EXEEXT_FALSE='#'
12903 else
12904   am__EXEEXT_TRUE='#'
12905   am__EXEEXT_FALSE=
12906 fi
12907
12908 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12909   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12911 fi
12912 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12913   as_fn_error $? "conditional \"AMDEP\" was never defined.
12914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12915 fi
12916 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12917   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12919 fi
12920 if test -z "${USB_TRUE}" && test -z "${USB_FALSE}"; then
12921   as_fn_error $? "conditional \"USB\" was never defined.
12922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12923 fi
12924 if test -z "${NOKIA_PCSUITE_TRUE}" && test -z "${NOKIA_PCSUITE_FALSE}"; then
12925   as_fn_error $? "conditional \"NOKIA_PCSUITE\" was never defined.
12926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12927 fi
12928 if test -z "${SERVER_TRUE}" && test -z "${SERVER_FALSE}"; then
12929   as_fn_error $? "conditional \"SERVER\" was never defined.
12930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12931 fi
12932 if test -z "${CLIENT_TRUE}" && test -z "${CLIENT_FALSE}"; then
12933   as_fn_error $? "conditional \"CLIENT\" was never defined.
12934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12935 fi
12936 if test -z "${READLINE_TRUE}" && test -z "${READLINE_FALSE}"; then
12937   as_fn_error $? "conditional \"READLINE\" was never defined.
12938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12939 fi
12940
12941 : "${CONFIG_STATUS=./config.status}"
12942 ac_write_fail=0
12943 ac_clean_files_save=$ac_clean_files
12944 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12946 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12947 as_write_fail=0
12948 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12949 #! $SHELL
12950 # Generated by $as_me.
12951 # Run this file to recreate the current configuration.
12952 # Compiler output produced by configure, useful for debugging
12953 # configure, is in config.log if it exists.
12954
12955 debug=false
12956 ac_cs_recheck=false
12957 ac_cs_silent=false
12958
12959 SHELL=\${CONFIG_SHELL-$SHELL}
12960 export SHELL
12961 _ASEOF
12962 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12963 ## -------------------- ##
12964 ## M4sh Initialization. ##
12965 ## -------------------- ##
12966
12967 # Be more Bourne compatible
12968 DUALCASE=1; export DUALCASE # for MKS sh
12969 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12970   emulate sh
12971   NULLCMD=:
12972   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12973   # is contrary to our usage.  Disable this feature.
12974   alias -g '${1+"$@"}'='"$@"'
12975   setopt NO_GLOB_SUBST
12976 else
12977   case `(set -o) 2>/dev/null` in #(
12978   *posix*) :
12979     set -o posix ;; #(
12980   *) :
12981      ;;
12982 esac
12983 fi
12984
12985
12986 as_nl='
12987 '
12988 export as_nl
12989 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12990 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12991 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12992 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12993 # Prefer a ksh shell builtin over an external printf program on Solaris,
12994 # but without wasting forks for bash or zsh.
12995 if test -z "$BASH_VERSION$ZSH_VERSION" \
12996     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12997   as_echo='print -r --'
12998   as_echo_n='print -rn --'
12999 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13000   as_echo='printf %s\n'
13001   as_echo_n='printf %s'
13002 else
13003   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13004     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13005     as_echo_n='/usr/ucb/echo -n'
13006   else
13007     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13008     as_echo_n_body='eval
13009       arg=$1;
13010       case $arg in #(
13011       *"$as_nl"*)
13012         expr "X$arg" : "X\\(.*\\)$as_nl";
13013         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13014       esac;
13015       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13016     '
13017     export as_echo_n_body
13018     as_echo_n='sh -c $as_echo_n_body as_echo'
13019   fi
13020   export as_echo_body
13021   as_echo='sh -c $as_echo_body as_echo'
13022 fi
13023
13024 # The user is always right.
13025 if test "${PATH_SEPARATOR+set}" != set; then
13026   PATH_SEPARATOR=:
13027   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13028     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13029       PATH_SEPARATOR=';'
13030   }
13031 fi
13032
13033
13034 # IFS
13035 # We need space, tab and new line, in precisely that order.  Quoting is
13036 # there to prevent editors from complaining about space-tab.
13037 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13038 # splitting by setting IFS to empty value.)
13039 IFS=" ""        $as_nl"
13040
13041 # Find who we are.  Look in the path if we contain no directory separator.
13042 as_myself=
13043 case $0 in #((
13044   *[\\/]* ) as_myself=$0 ;;
13045   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046 for as_dir in $PATH
13047 do
13048   IFS=$as_save_IFS
13049   test -z "$as_dir" && as_dir=.
13050     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13051   done
13052 IFS=$as_save_IFS
13053
13054      ;;
13055 esac
13056 # We did not find ourselves, most probably we were run as `sh COMMAND'
13057 # in which case we are not to be found in the path.
13058 if test "x$as_myself" = x; then
13059   as_myself=$0
13060 fi
13061 if test ! -f "$as_myself"; then
13062   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13063   exit 1
13064 fi
13065
13066 # Unset variables that we do not need and which cause bugs (e.g. in
13067 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13068 # suppresses any "Segmentation fault" message there.  '((' could
13069 # trigger a bug in pdksh 5.2.14.
13070 for as_var in BASH_ENV ENV MAIL MAILPATH
13071 do eval test x\${$as_var+set} = xset \
13072   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13073 done
13074 PS1='$ '
13075 PS2='> '
13076 PS4='+ '
13077
13078 # NLS nuisances.
13079 LC_ALL=C
13080 export LC_ALL
13081 LANGUAGE=C
13082 export LANGUAGE
13083
13084 # CDPATH.
13085 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13086
13087
13088 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13089 # ----------------------------------------
13090 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13091 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13092 # script with STATUS, using 1 if that was 0.
13093 as_fn_error ()
13094 {
13095   as_status=$1; test $as_status -eq 0 && as_status=1
13096   if test "$4"; then
13097     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13098     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13099   fi
13100   $as_echo "$as_me: error: $2" >&2
13101   as_fn_exit $as_status
13102 } # as_fn_error
13103
13104
13105 # as_fn_set_status STATUS
13106 # -----------------------
13107 # Set $? to STATUS, without forking.
13108 as_fn_set_status ()
13109 {
13110   return $1
13111 } # as_fn_set_status
13112
13113 # as_fn_exit STATUS
13114 # -----------------
13115 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13116 as_fn_exit ()
13117 {
13118   set +e
13119   as_fn_set_status $1
13120   exit $1
13121 } # as_fn_exit
13122
13123 # as_fn_unset VAR
13124 # ---------------
13125 # Portably unset VAR.
13126 as_fn_unset ()
13127 {
13128   { eval $1=; unset $1;}
13129 }
13130 as_unset=as_fn_unset
13131 # as_fn_append VAR VALUE
13132 # ----------------------
13133 # Append the text in VALUE to the end of the definition contained in VAR. Take
13134 # advantage of any shell optimizations that allow amortized linear growth over
13135 # repeated appends, instead of the typical quadratic growth present in naive
13136 # implementations.
13137 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13138   eval 'as_fn_append ()
13139   {
13140     eval $1+=\$2
13141   }'
13142 else
13143   as_fn_append ()
13144   {
13145     eval $1=\$$1\$2
13146   }
13147 fi # as_fn_append
13148
13149 # as_fn_arith ARG...
13150 # ------------------
13151 # Perform arithmetic evaluation on the ARGs, and store the result in the
13152 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13153 # must be portable across $(()) and expr.
13154 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13155   eval 'as_fn_arith ()
13156   {
13157     as_val=$(( $* ))
13158   }'
13159 else
13160   as_fn_arith ()
13161   {
13162     as_val=`expr "$@" || test $? -eq 1`
13163   }
13164 fi # as_fn_arith
13165
13166
13167 if expr a : '\(a\)' >/dev/null 2>&1 &&
13168    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13169   as_expr=expr
13170 else
13171   as_expr=false
13172 fi
13173
13174 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13175   as_basename=basename
13176 else
13177   as_basename=false
13178 fi
13179
13180 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13181   as_dirname=dirname
13182 else
13183   as_dirname=false
13184 fi
13185
13186 as_me=`$as_basename -- "$0" ||
13187 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13188          X"$0" : 'X\(//\)$' \| \
13189          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13190 $as_echo X/"$0" |
13191     sed '/^.*\/\([^/][^/]*\)\/*$/{
13192             s//\1/
13193             q
13194           }
13195           /^X\/\(\/\/\)$/{
13196             s//\1/
13197             q
13198           }
13199           /^X\/\(\/\).*/{
13200             s//\1/
13201             q
13202           }
13203           s/.*/./; q'`
13204
13205 # Avoid depending upon Character Ranges.
13206 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13207 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13208 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13209 as_cr_digits='0123456789'
13210 as_cr_alnum=$as_cr_Letters$as_cr_digits
13211
13212 ECHO_C= ECHO_N= ECHO_T=
13213 case `echo -n x` in #(((((
13214 -n*)
13215   case `echo 'xy\c'` in
13216   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13217   xy)  ECHO_C='\c';;
13218   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13219        ECHO_T=' ';;
13220   esac;;
13221 *)
13222   ECHO_N='-n';;
13223 esac
13224
13225 rm -f conf$$ conf$$.exe conf$$.file
13226 if test -d conf$$.dir; then
13227   rm -f conf$$.dir/conf$$.file
13228 else
13229   rm -f conf$$.dir
13230   mkdir conf$$.dir 2>/dev/null
13231 fi
13232 if (echo >conf$$.file) 2>/dev/null; then
13233   if ln -s conf$$.file conf$$ 2>/dev/null; then
13234     as_ln_s='ln -s'
13235     # ... but there are two gotchas:
13236     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13237     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13238     # In both cases, we have to default to `cp -pR'.
13239     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13240       as_ln_s='cp -pR'
13241   elif ln conf$$.file conf$$ 2>/dev/null; then
13242     as_ln_s=ln
13243   else
13244     as_ln_s='cp -pR'
13245   fi
13246 else
13247   as_ln_s='cp -pR'
13248 fi
13249 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13250 rmdir conf$$.dir 2>/dev/null
13251
13252
13253 # as_fn_mkdir_p
13254 # -------------
13255 # Create "$as_dir" as a directory, including parents if necessary.
13256 as_fn_mkdir_p ()
13257 {
13258
13259   case $as_dir in #(
13260   -*) as_dir=./$as_dir;;
13261   esac
13262   test -d "$as_dir" || eval $as_mkdir_p || {
13263     as_dirs=
13264     while :; do
13265       case $as_dir in #(
13266       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13267       *) as_qdir=$as_dir;;
13268       esac
13269       as_dirs="'$as_qdir' $as_dirs"
13270       as_dir=`$as_dirname -- "$as_dir" ||
13271 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13272          X"$as_dir" : 'X\(//\)[^/]' \| \
13273          X"$as_dir" : 'X\(//\)$' \| \
13274          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13275 $as_echo X"$as_dir" |
13276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13277             s//\1/
13278             q
13279           }
13280           /^X\(\/\/\)[^/].*/{
13281             s//\1/
13282             q
13283           }
13284           /^X\(\/\/\)$/{
13285             s//\1/
13286             q
13287           }
13288           /^X\(\/\).*/{
13289             s//\1/
13290             q
13291           }
13292           s/.*/./; q'`
13293       test -d "$as_dir" && break
13294     done
13295     test -z "$as_dirs" || eval "mkdir $as_dirs"
13296   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13297
13298
13299 } # as_fn_mkdir_p
13300 if mkdir -p . 2>/dev/null; then
13301   as_mkdir_p='mkdir -p "$as_dir"'
13302 else
13303   test -d ./-p && rmdir ./-p
13304   as_mkdir_p=false
13305 fi
13306
13307
13308 # as_fn_executable_p FILE
13309 # -----------------------
13310 # Test if FILE is an executable regular file.
13311 as_fn_executable_p ()
13312 {
13313   test -f "$1" && test -x "$1"
13314 } # as_fn_executable_p
13315 as_test_x='test -x'
13316 as_executable_p=as_fn_executable_p
13317
13318 # Sed expression to map a string onto a valid CPP name.
13319 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13320
13321 # Sed expression to map a string onto a valid variable name.
13322 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13323
13324
13325 exec 6>&1
13326 ## ----------------------------------- ##
13327 ## Main body of $CONFIG_STATUS script. ##
13328 ## ----------------------------------- ##
13329 _ASEOF
13330 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13331
13332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13333 # Save the log message, to keep $0 and so on meaningful, and to
13334 # report actual input values of CONFIG_FILES etc. instead of their
13335 # values after options handling.
13336 ac_log="
13337 This file was extended by obexd $as_me 0.48, which was
13338 generated by GNU Autoconf 2.69.  Invocation command line was
13339
13340   CONFIG_FILES    = $CONFIG_FILES
13341   CONFIG_HEADERS  = $CONFIG_HEADERS
13342   CONFIG_LINKS    = $CONFIG_LINKS
13343   CONFIG_COMMANDS = $CONFIG_COMMANDS
13344   $ $0 $@
13345
13346 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13347 "
13348
13349 _ACEOF
13350
13351 case $ac_config_files in *"
13352 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13353 esac
13354
13355 case $ac_config_headers in *"
13356 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13357 esac
13358
13359
13360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13361 # Files that config.status was made for.
13362 config_files="$ac_config_files"
13363 config_headers="$ac_config_headers"
13364 config_commands="$ac_config_commands"
13365
13366 _ACEOF
13367
13368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13369 ac_cs_usage="\
13370 \`$as_me' instantiates files and other configuration actions
13371 from templates according to the current configuration.  Unless the files
13372 and actions are specified as TAGs, all are instantiated by default.
13373
13374 Usage: $0 [OPTION]... [TAG]...
13375
13376   -h, --help       print this help, then exit
13377   -V, --version    print version number and configuration settings, then exit
13378       --config     print configuration, then exit
13379   -q, --quiet, --silent
13380                    do not print progress messages
13381   -d, --debug      don't remove temporary files
13382       --recheck    update $as_me by reconfiguring in the same conditions
13383       --file=FILE[:TEMPLATE]
13384                    instantiate the configuration file FILE
13385       --header=FILE[:TEMPLATE]
13386                    instantiate the configuration header FILE
13387
13388 Configuration files:
13389 $config_files
13390
13391 Configuration headers:
13392 $config_headers
13393
13394 Configuration commands:
13395 $config_commands
13396
13397 Report bugs to the package provider."
13398
13399 _ACEOF
13400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13401 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13402 ac_cs_version="\\
13403 obexd config.status 0.48
13404 configured by $0, generated by GNU Autoconf 2.69,
13405   with options \\"\$ac_cs_config\\"
13406
13407 Copyright (C) 2012 Free Software Foundation, Inc.
13408 This config.status script is free software; the Free Software Foundation
13409 gives unlimited permission to copy, distribute and modify it."
13410
13411 ac_pwd='$ac_pwd'
13412 srcdir='$srcdir'
13413 INSTALL='$INSTALL'
13414 MKDIR_P='$MKDIR_P'
13415 AWK='$AWK'
13416 test -n "\$AWK" || AWK=awk
13417 _ACEOF
13418
13419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13420 # The default lists apply if the user does not specify any file.
13421 ac_need_defaults=:
13422 while test $# != 0
13423 do
13424   case $1 in
13425   --*=?*)
13426     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13427     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13428     ac_shift=:
13429     ;;
13430   --*=)
13431     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13432     ac_optarg=
13433     ac_shift=:
13434     ;;
13435   *)
13436     ac_option=$1
13437     ac_optarg=$2
13438     ac_shift=shift
13439     ;;
13440   esac
13441
13442   case $ac_option in
13443   # Handling of the options.
13444   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13445     ac_cs_recheck=: ;;
13446   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13447     $as_echo "$ac_cs_version"; exit ;;
13448   --config | --confi | --conf | --con | --co | --c )
13449     $as_echo "$ac_cs_config"; exit ;;
13450   --debug | --debu | --deb | --de | --d | -d )
13451     debug=: ;;
13452   --file | --fil | --fi | --f )
13453     $ac_shift
13454     case $ac_optarg in
13455     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13456     '') as_fn_error $? "missing file argument" ;;
13457     esac
13458     as_fn_append CONFIG_FILES " '$ac_optarg'"
13459     ac_need_defaults=false;;
13460   --header | --heade | --head | --hea )
13461     $ac_shift
13462     case $ac_optarg in
13463     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13464     esac
13465     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13466     ac_need_defaults=false;;
13467   --he | --h)
13468     # Conflict between --help and --header
13469     as_fn_error $? "ambiguous option: \`$1'
13470 Try \`$0 --help' for more information.";;
13471   --help | --hel | -h )
13472     $as_echo "$ac_cs_usage"; exit ;;
13473   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13474   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13475     ac_cs_silent=: ;;
13476
13477   # This is an error.
13478   -*) as_fn_error $? "unrecognized option: \`$1'
13479 Try \`$0 --help' for more information." ;;
13480
13481   *) as_fn_append ac_config_targets " $1"
13482      ac_need_defaults=false ;;
13483
13484   esac
13485   shift
13486 done
13487
13488 ac_configure_extra_args=
13489
13490 if $ac_cs_silent; then
13491   exec 6>/dev/null
13492   ac_configure_extra_args="$ac_configure_extra_args --silent"
13493 fi
13494
13495 _ACEOF
13496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13497 if \$ac_cs_recheck; then
13498   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13499   shift
13500   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13501   CONFIG_SHELL='$SHELL'
13502   export CONFIG_SHELL
13503   exec "\$@"
13504 fi
13505
13506 _ACEOF
13507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13508 exec 5>>config.log
13509 {
13510   echo
13511   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13512 ## Running $as_me. ##
13513 _ASBOX
13514   $as_echo "$ac_log"
13515 } >&5
13516
13517 _ACEOF
13518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13519 #
13520 # INIT-COMMANDS
13521 #
13522 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13523
13524
13525 # The HP-UX ksh and POSIX shell print the target directory to stdout
13526 # if CDPATH is set.
13527 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13528
13529 sed_quote_subst='$sed_quote_subst'
13530 double_quote_subst='$double_quote_subst'
13531 delay_variable_subst='$delay_variable_subst'
13532 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13533 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13534 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13535 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13536 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13537 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13538 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13539 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13540 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13541 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13542 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13543 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13544 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13545 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13546 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13547 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13548 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13549 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13550 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13551 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13552 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13553 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13554 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13555 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13556 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13557 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13558 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13559 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13560 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13561 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13562 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13563 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13564 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13565 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13566 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13567 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13568 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13569 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13570 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13571 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13572 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13573 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13574 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13575 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13576 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13577 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13578 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13579 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13580 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13581 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13582 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13583 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13584 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13585 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13586 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13587 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13588 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"`'
13589 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13590 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13591 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13592 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13593 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13594 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13595 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13596 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13597 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13598 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13599 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13600 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13601 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13602 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13603 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13604 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13605 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13606 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13607 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13608 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13609 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13610 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13611 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13612 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13613 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13614 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13615 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13616 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13617 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13618 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13619 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13620 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13621 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13622 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13623 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13624 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13625 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13626 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13627 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13628 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13629 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13630 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13631 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13632 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13633 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13634 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13635 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13636 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13637 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13638 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13639 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13640 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13641 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13642 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13643 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13644 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13645 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13646 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13647 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13648 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13649 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13650 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13651 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13652 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13653 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13654 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13655 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13656 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13657 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13658 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13659 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13660 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13661 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13662
13663 LTCC='$LTCC'
13664 LTCFLAGS='$LTCFLAGS'
13665 compiler='$compiler_DEFAULT'
13666
13667 # A function that is used when there is no print builtin or printf.
13668 func_fallback_echo ()
13669 {
13670   eval 'cat <<_LTECHO_EOF
13671 \$1
13672 _LTECHO_EOF'
13673 }
13674
13675 # Quote evaled strings.
13676 for var in SHELL \
13677 ECHO \
13678 PATH_SEPARATOR \
13679 SED \
13680 GREP \
13681 EGREP \
13682 FGREP \
13683 LD \
13684 NM \
13685 LN_S \
13686 lt_SP2NL \
13687 lt_NL2SP \
13688 reload_flag \
13689 OBJDUMP \
13690 deplibs_check_method \
13691 file_magic_cmd \
13692 file_magic_glob \
13693 want_nocaseglob \
13694 DLLTOOL \
13695 sharedlib_from_linklib_cmd \
13696 AR \
13697 AR_FLAGS \
13698 archiver_list_spec \
13699 STRIP \
13700 RANLIB \
13701 CC \
13702 CFLAGS \
13703 compiler \
13704 lt_cv_sys_global_symbol_pipe \
13705 lt_cv_sys_global_symbol_to_cdecl \
13706 lt_cv_sys_global_symbol_to_c_name_address \
13707 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13708 nm_file_list_spec \
13709 lt_prog_compiler_no_builtin_flag \
13710 lt_prog_compiler_pic \
13711 lt_prog_compiler_wl \
13712 lt_prog_compiler_static \
13713 lt_cv_prog_compiler_c_o \
13714 need_locks \
13715 MANIFEST_TOOL \
13716 DSYMUTIL \
13717 NMEDIT \
13718 LIPO \
13719 OTOOL \
13720 OTOOL64 \
13721 shrext_cmds \
13722 export_dynamic_flag_spec \
13723 whole_archive_flag_spec \
13724 compiler_needs_object \
13725 with_gnu_ld \
13726 allow_undefined_flag \
13727 no_undefined_flag \
13728 hardcode_libdir_flag_spec \
13729 hardcode_libdir_separator \
13730 exclude_expsyms \
13731 include_expsyms \
13732 file_list_spec \
13733 variables_saved_for_relink \
13734 libname_spec \
13735 library_names_spec \
13736 soname_spec \
13737 install_override_mode \
13738 finish_eval \
13739 old_striplib \
13740 striplib; do
13741     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13742     *[\\\\\\\`\\"\\\$]*)
13743       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13744       ;;
13745     *)
13746       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13747       ;;
13748     esac
13749 done
13750
13751 # Double-quote double-evaled strings.
13752 for var in reload_cmds \
13753 old_postinstall_cmds \
13754 old_postuninstall_cmds \
13755 old_archive_cmds \
13756 extract_expsyms_cmds \
13757 old_archive_from_new_cmds \
13758 old_archive_from_expsyms_cmds \
13759 archive_cmds \
13760 archive_expsym_cmds \
13761 module_cmds \
13762 module_expsym_cmds \
13763 export_symbols_cmds \
13764 prelink_cmds \
13765 postlink_cmds \
13766 postinstall_cmds \
13767 postuninstall_cmds \
13768 finish_cmds \
13769 sys_lib_search_path_spec \
13770 sys_lib_dlsearch_path_spec; do
13771     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13772     *[\\\\\\\`\\"\\\$]*)
13773       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13774       ;;
13775     *)
13776       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13777       ;;
13778     esac
13779 done
13780
13781 ac_aux_dir='$ac_aux_dir'
13782 xsi_shell='$xsi_shell'
13783 lt_shell_append='$lt_shell_append'
13784
13785 # See if we are running on zsh, and set the options which allow our
13786 # commands through without removal of \ escapes INIT.
13787 if test -n "\${ZSH_VERSION+set}" ; then
13788    setopt NO_GLOB_SUBST
13789 fi
13790
13791
13792     PACKAGE='$PACKAGE'
13793     VERSION='$VERSION'
13794     TIMESTAMP='$TIMESTAMP'
13795     RM='$RM'
13796     ofile='$ofile'
13797
13798
13799
13800
13801 _ACEOF
13802
13803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13804
13805 # Handling of arguments.
13806 for ac_config_target in $ac_config_targets
13807 do
13808   case $ac_config_target in
13809     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13810     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13811     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13812     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13813
13814   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13815   esac
13816 done
13817
13818
13819 # If the user did not use the arguments to specify the items to instantiate,
13820 # then the envvar interface is used.  Set only those that are not.
13821 # We use the long form for the default assignment because of an extremely
13822 # bizarre bug on SunOS 4.1.3.
13823 if $ac_need_defaults; then
13824   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13825   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13826   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13827 fi
13828
13829 # Have a temporary directory for convenience.  Make it in the build tree
13830 # simply because there is no reason against having it here, and in addition,
13831 # creating and moving files from /tmp can sometimes cause problems.
13832 # Hook for its removal unless debugging.
13833 # Note that there is a small window in which the directory will not be cleaned:
13834 # after its creation but before its name has been assigned to `$tmp'.
13835 $debug ||
13836 {
13837   tmp= ac_tmp=
13838   trap 'exit_status=$?
13839   : "${ac_tmp:=$tmp}"
13840   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13841 ' 0
13842   trap 'as_fn_exit 1' 1 2 13 15
13843 }
13844 # Create a (secure) tmp directory for tmp files.
13845
13846 {
13847   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13848   test -d "$tmp"
13849 }  ||
13850 {
13851   tmp=./conf$$-$RANDOM
13852   (umask 077 && mkdir "$tmp")
13853 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13854 ac_tmp=$tmp
13855
13856 # Set up the scripts for CONFIG_FILES section.
13857 # No need to generate them if there are no CONFIG_FILES.
13858 # This happens for instance with `./config.status config.h'.
13859 if test -n "$CONFIG_FILES"; then
13860
13861
13862 ac_cr=`echo X | tr X '\015'`
13863 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13864 # But we know of no other shell where ac_cr would be empty at this
13865 # point, so we can use a bashism as a fallback.
13866 if test "x$ac_cr" = x; then
13867   eval ac_cr=\$\'\\r\'
13868 fi
13869 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13870 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13871   ac_cs_awk_cr='\\r'
13872 else
13873   ac_cs_awk_cr=$ac_cr
13874 fi
13875
13876 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13877 _ACEOF
13878
13879
13880 {
13881   echo "cat >conf$$subs.awk <<_ACEOF" &&
13882   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13883   echo "_ACEOF"
13884 } >conf$$subs.sh ||
13885   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13886 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13887 ac_delim='%!_!# '
13888 for ac_last_try in false false false false false :; do
13889   . ./conf$$subs.sh ||
13890     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13891
13892   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13893   if test $ac_delim_n = $ac_delim_num; then
13894     break
13895   elif $ac_last_try; then
13896     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13897   else
13898     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13899   fi
13900 done
13901 rm -f conf$$subs.sh
13902
13903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13904 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13905 _ACEOF
13906 sed -n '
13907 h
13908 s/^/S["/; s/!.*/"]=/
13909 p
13910 g
13911 s/^[^!]*!//
13912 :repl
13913 t repl
13914 s/'"$ac_delim"'$//
13915 t delim
13916 :nl
13917 h
13918 s/\(.\{148\}\)..*/\1/
13919 t more1
13920 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13921 p
13922 n
13923 b repl
13924 :more1
13925 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13926 p
13927 g
13928 s/.\{148\}//
13929 t nl
13930 :delim
13931 h
13932 s/\(.\{148\}\)..*/\1/
13933 t more2
13934 s/["\\]/\\&/g; s/^/"/; s/$/"/
13935 p
13936 b
13937 :more2
13938 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13939 p
13940 g
13941 s/.\{148\}//
13942 t delim
13943 ' <conf$$subs.awk | sed '
13944 /^[^""]/{
13945   N
13946   s/\n//
13947 }
13948 ' >>$CONFIG_STATUS || ac_write_fail=1
13949 rm -f conf$$subs.awk
13950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13951 _ACAWK
13952 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13953   for (key in S) S_is_set[key] = 1
13954   FS = "\a"
13955
13956 }
13957 {
13958   line = $ 0
13959   nfields = split(line, field, "@")
13960   substed = 0
13961   len = length(field[1])
13962   for (i = 2; i < nfields; i++) {
13963     key = field[i]
13964     keylen = length(key)
13965     if (S_is_set[key]) {
13966       value = S[key]
13967       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13968       len += length(value) + length(field[++i])
13969       substed = 1
13970     } else
13971       len += 1 + keylen
13972   }
13973
13974   print line
13975 }
13976
13977 _ACAWK
13978 _ACEOF
13979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13980 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13981   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13982 else
13983   cat
13984 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13985   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13986 _ACEOF
13987
13988 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13989 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13990 # trailing colons and then remove the whole line if VPATH becomes empty
13991 # (actually we leave an empty line to preserve line numbers).
13992 if test "x$srcdir" = x.; then
13993   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13994 h
13995 s///
13996 s/^/:/
13997 s/[      ]*$/:/
13998 s/:\$(srcdir):/:/g
13999 s/:\${srcdir}:/:/g
14000 s/:@srcdir@:/:/g
14001 s/^:*//
14002 s/:*$//
14003 x
14004 s/\(=[   ]*\).*/\1/
14005 G
14006 s/\n//
14007 s/^[^=]*=[       ]*$//
14008 }'
14009 fi
14010
14011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14012 fi # test -n "$CONFIG_FILES"
14013
14014 # Set up the scripts for CONFIG_HEADERS section.
14015 # No need to generate them if there are no CONFIG_HEADERS.
14016 # This happens for instance with `./config.status Makefile'.
14017 if test -n "$CONFIG_HEADERS"; then
14018 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14019 BEGIN {
14020 _ACEOF
14021
14022 # Transform confdefs.h into an awk script `defines.awk', embedded as
14023 # here-document in config.status, that substitutes the proper values into
14024 # config.h.in to produce config.h.
14025
14026 # Create a delimiter string that does not exist in confdefs.h, to ease
14027 # handling of long lines.
14028 ac_delim='%!_!# '
14029 for ac_last_try in false false :; do
14030   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14031   if test -z "$ac_tt"; then
14032     break
14033   elif $ac_last_try; then
14034     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14035   else
14036     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14037   fi
14038 done
14039
14040 # For the awk script, D is an array of macro values keyed by name,
14041 # likewise P contains macro parameters if any.  Preserve backslash
14042 # newline sequences.
14043
14044 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14045 sed -n '
14046 s/.\{148\}/&'"$ac_delim"'/g
14047 t rset
14048 :rset
14049 s/^[     ]*#[    ]*define[       ][      ]*/ /
14050 t def
14051 d
14052 :def
14053 s/\\$//
14054 t bsnl
14055 s/["\\]/\\&/g
14056 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14057 D["\1"]=" \3"/p
14058 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14059 d
14060 :bsnl
14061 s/["\\]/\\&/g
14062 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14063 D["\1"]=" \3\\\\\\n"\\/p
14064 t cont
14065 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14066 t cont
14067 d
14068 :cont
14069 n
14070 s/.\{148\}/&'"$ac_delim"'/g
14071 t clear
14072 :clear
14073 s/\\$//
14074 t bsnlc
14075 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14076 d
14077 :bsnlc
14078 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14079 b cont
14080 ' <confdefs.h | sed '
14081 s/'"$ac_delim"'/"\\\
14082 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14083
14084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14085   for (key in D) D_is_set[key] = 1
14086   FS = "\a"
14087 }
14088 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14089   line = \$ 0
14090   split(line, arg, " ")
14091   if (arg[1] == "#") {
14092     defundef = arg[2]
14093     mac1 = arg[3]
14094   } else {
14095     defundef = substr(arg[1], 2)
14096     mac1 = arg[2]
14097   }
14098   split(mac1, mac2, "(") #)
14099   macro = mac2[1]
14100   prefix = substr(line, 1, index(line, defundef) - 1)
14101   if (D_is_set[macro]) {
14102     # Preserve the white space surrounding the "#".
14103     print prefix "define", macro P[macro] D[macro]
14104     next
14105   } else {
14106     # Replace #undef with comments.  This is necessary, for example,
14107     # in the case of _POSIX_SOURCE, which is predefined and required
14108     # on some systems where configure will not decide to define it.
14109     if (defundef == "undef") {
14110       print "/*", prefix defundef, macro, "*/"
14111       next
14112     }
14113   }
14114 }
14115 { print }
14116 _ACAWK
14117 _ACEOF
14118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14119   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14120 fi # test -n "$CONFIG_HEADERS"
14121
14122
14123 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14124 shift
14125 for ac_tag
14126 do
14127   case $ac_tag in
14128   :[FHLC]) ac_mode=$ac_tag; continue;;
14129   esac
14130   case $ac_mode$ac_tag in
14131   :[FHL]*:*);;
14132   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14133   :[FH]-) ac_tag=-:-;;
14134   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14135   esac
14136   ac_save_IFS=$IFS
14137   IFS=:
14138   set x $ac_tag
14139   IFS=$ac_save_IFS
14140   shift
14141   ac_file=$1
14142   shift
14143
14144   case $ac_mode in
14145   :L) ac_source=$1;;
14146   :[FH])
14147     ac_file_inputs=
14148     for ac_f
14149     do
14150       case $ac_f in
14151       -) ac_f="$ac_tmp/stdin";;
14152       *) # Look for the file first in the build tree, then in the source tree
14153          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14154          # because $ac_f cannot contain `:'.
14155          test -f "$ac_f" ||
14156            case $ac_f in
14157            [\\/$]*) false;;
14158            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14159            esac ||
14160            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14161       esac
14162       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14163       as_fn_append ac_file_inputs " '$ac_f'"
14164     done
14165
14166     # Let's still pretend it is `configure' which instantiates (i.e., don't
14167     # use $as_me), people would be surprised to read:
14168     #    /* config.h.  Generated by config.status.  */
14169     configure_input='Generated from '`
14170           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14171         `' by configure.'
14172     if test x"$ac_file" != x-; then
14173       configure_input="$ac_file.  $configure_input"
14174       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14175 $as_echo "$as_me: creating $ac_file" >&6;}
14176     fi
14177     # Neutralize special characters interpreted by sed in replacement strings.
14178     case $configure_input in #(
14179     *\&* | *\|* | *\\* )
14180        ac_sed_conf_input=`$as_echo "$configure_input" |
14181        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14182     *) ac_sed_conf_input=$configure_input;;
14183     esac
14184
14185     case $ac_tag in
14186     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14187       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14188     esac
14189     ;;
14190   esac
14191
14192   ac_dir=`$as_dirname -- "$ac_file" ||
14193 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14194          X"$ac_file" : 'X\(//\)[^/]' \| \
14195          X"$ac_file" : 'X\(//\)$' \| \
14196          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14197 $as_echo X"$ac_file" |
14198     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14199             s//\1/
14200             q
14201           }
14202           /^X\(\/\/\)[^/].*/{
14203             s//\1/
14204             q
14205           }
14206           /^X\(\/\/\)$/{
14207             s//\1/
14208             q
14209           }
14210           /^X\(\/\).*/{
14211             s//\1/
14212             q
14213           }
14214           s/.*/./; q'`
14215   as_dir="$ac_dir"; as_fn_mkdir_p
14216   ac_builddir=.
14217
14218 case "$ac_dir" in
14219 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14220 *)
14221   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14222   # A ".." for each directory in $ac_dir_suffix.
14223   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14224   case $ac_top_builddir_sub in
14225   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14226   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14227   esac ;;
14228 esac
14229 ac_abs_top_builddir=$ac_pwd
14230 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14231 # for backward compatibility:
14232 ac_top_builddir=$ac_top_build_prefix
14233
14234 case $srcdir in
14235   .)  # We are building in place.
14236     ac_srcdir=.
14237     ac_top_srcdir=$ac_top_builddir_sub
14238     ac_abs_top_srcdir=$ac_pwd ;;
14239   [\\/]* | ?:[\\/]* )  # Absolute name.
14240     ac_srcdir=$srcdir$ac_dir_suffix;
14241     ac_top_srcdir=$srcdir
14242     ac_abs_top_srcdir=$srcdir ;;
14243   *) # Relative name.
14244     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14245     ac_top_srcdir=$ac_top_build_prefix$srcdir
14246     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14247 esac
14248 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14249
14250
14251   case $ac_mode in
14252   :F)
14253   #
14254   # CONFIG_FILE
14255   #
14256
14257   case $INSTALL in
14258   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14259   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14260   esac
14261   ac_MKDIR_P=$MKDIR_P
14262   case $MKDIR_P in
14263   [\\/$]* | ?:[\\/]* ) ;;
14264   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14265   esac
14266 _ACEOF
14267
14268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14269 # If the template does not know about datarootdir, expand it.
14270 # FIXME: This hack should be removed a few years after 2.60.
14271 ac_datarootdir_hack=; ac_datarootdir_seen=
14272 ac_sed_dataroot='
14273 /datarootdir/ {
14274   p
14275   q
14276 }
14277 /@datadir@/p
14278 /@docdir@/p
14279 /@infodir@/p
14280 /@localedir@/p
14281 /@mandir@/p'
14282 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14283 *datarootdir*) ac_datarootdir_seen=yes;;
14284 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14285   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14286 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14287 _ACEOF
14288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14289   ac_datarootdir_hack='
14290   s&@datadir@&$datadir&g
14291   s&@docdir@&$docdir&g
14292   s&@infodir@&$infodir&g
14293   s&@localedir@&$localedir&g
14294   s&@mandir@&$mandir&g
14295   s&\\\${datarootdir}&$datarootdir&g' ;;
14296 esac
14297 _ACEOF
14298
14299 # Neutralize VPATH when `$srcdir' = `.'.
14300 # Shell code in configure.ac might set extrasub.
14301 # FIXME: do we really want to maintain this feature?
14302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14303 ac_sed_extra="$ac_vpsub
14304 $extrasub
14305 _ACEOF
14306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14307 :t
14308 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14309 s|@configure_input@|$ac_sed_conf_input|;t t
14310 s&@top_builddir@&$ac_top_builddir_sub&;t t
14311 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14312 s&@srcdir@&$ac_srcdir&;t t
14313 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14314 s&@top_srcdir@&$ac_top_srcdir&;t t
14315 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14316 s&@builddir@&$ac_builddir&;t t
14317 s&@abs_builddir@&$ac_abs_builddir&;t t
14318 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14319 s&@INSTALL@&$ac_INSTALL&;t t
14320 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14321 $ac_datarootdir_hack
14322 "
14323 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14324   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14325
14326 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14327   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14328   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14329       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14330   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14331 which seems to be undefined.  Please make sure it is defined" >&5
14332 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14333 which seems to be undefined.  Please make sure it is defined" >&2;}
14334
14335   rm -f "$ac_tmp/stdin"
14336   case $ac_file in
14337   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14338   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14339   esac \
14340   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14341  ;;
14342   :H)
14343   #
14344   # CONFIG_HEADER
14345   #
14346   if test x"$ac_file" != x-; then
14347     {
14348       $as_echo "/* $configure_input  */" \
14349       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14350     } >"$ac_tmp/config.h" \
14351       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14352     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14353       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14354 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14355     else
14356       rm -f "$ac_file"
14357       mv "$ac_tmp/config.h" "$ac_file" \
14358         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14359     fi
14360   else
14361     $as_echo "/* $configure_input  */" \
14362       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14363       || as_fn_error $? "could not create -" "$LINENO" 5
14364   fi
14365 # Compute "$ac_file"'s index in $config_headers.
14366 _am_arg="$ac_file"
14367 _am_stamp_count=1
14368 for _am_header in $config_headers :; do
14369   case $_am_header in
14370     $_am_arg | $_am_arg:* )
14371       break ;;
14372     * )
14373       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14374   esac
14375 done
14376 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14377 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14378          X"$_am_arg" : 'X\(//\)[^/]' \| \
14379          X"$_am_arg" : 'X\(//\)$' \| \
14380          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14381 $as_echo X"$_am_arg" |
14382     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14383             s//\1/
14384             q
14385           }
14386           /^X\(\/\/\)[^/].*/{
14387             s//\1/
14388             q
14389           }
14390           /^X\(\/\/\)$/{
14391             s//\1/
14392             q
14393           }
14394           /^X\(\/\).*/{
14395             s//\1/
14396             q
14397           }
14398           s/.*/./; q'`/stamp-h$_am_stamp_count
14399  ;;
14400
14401   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14402 $as_echo "$as_me: executing $ac_file commands" >&6;}
14403  ;;
14404   esac
14405
14406
14407   case $ac_file$ac_mode in
14408     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14409   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14410   # are listed without --file.  Let's play safe and only enable the eval
14411   # if we detect the quoting.
14412   case $CONFIG_FILES in
14413   *\'*) eval set x "$CONFIG_FILES" ;;
14414   *)   set x $CONFIG_FILES ;;
14415   esac
14416   shift
14417   for mf
14418   do
14419     # Strip MF so we end up with the name of the file.
14420     mf=`echo "$mf" | sed -e 's/:.*$//'`
14421     # Check whether this is an Automake generated Makefile or not.
14422     # We used to match only the files named `Makefile.in', but
14423     # some people rename them; so instead we look at the file content.
14424     # Grep'ing the first line is not enough: some people post-process
14425     # each Makefile.in and add a new line on top of each file to say so.
14426     # Grep'ing the whole file is not good either: AIX grep has a line
14427     # limit of 2048, but all sed's we know have understand at least 4000.
14428     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14429       dirpart=`$as_dirname -- "$mf" ||
14430 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14431          X"$mf" : 'X\(//\)[^/]' \| \
14432          X"$mf" : 'X\(//\)$' \| \
14433          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14434 $as_echo X"$mf" |
14435     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14436             s//\1/
14437             q
14438           }
14439           /^X\(\/\/\)[^/].*/{
14440             s//\1/
14441             q
14442           }
14443           /^X\(\/\/\)$/{
14444             s//\1/
14445             q
14446           }
14447           /^X\(\/\).*/{
14448             s//\1/
14449             q
14450           }
14451           s/.*/./; q'`
14452     else
14453       continue
14454     fi
14455     # Extract the definition of DEPDIR, am__include, and am__quote
14456     # from the Makefile without running `make'.
14457     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14458     test -z "$DEPDIR" && continue
14459     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14460     test -z "am__include" && continue
14461     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14462     # When using ansi2knr, U may be empty or an underscore; expand it
14463     U=`sed -n 's/^U = //p' < "$mf"`
14464     # Find all dependency output files, they are included files with
14465     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14466     # simplest approach to changing $(DEPDIR) to its actual value in the
14467     # expansion.
14468     for file in `sed -n "
14469       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14470          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14471       # Make sure the directory exists.
14472       test -f "$dirpart/$file" && continue
14473       fdir=`$as_dirname -- "$file" ||
14474 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14475          X"$file" : 'X\(//\)[^/]' \| \
14476          X"$file" : 'X\(//\)$' \| \
14477          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14478 $as_echo X"$file" |
14479     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14480             s//\1/
14481             q
14482           }
14483           /^X\(\/\/\)[^/].*/{
14484             s//\1/
14485             q
14486           }
14487           /^X\(\/\/\)$/{
14488             s//\1/
14489             q
14490           }
14491           /^X\(\/\).*/{
14492             s//\1/
14493             q
14494           }
14495           s/.*/./; q'`
14496       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14497       # echo "creating $dirpart/$file"
14498       echo '# dummy' > "$dirpart/$file"
14499     done
14500   done
14501 }
14502  ;;
14503     "libtool":C)
14504
14505     # See if we are running on zsh, and set the options which allow our
14506     # commands through without removal of \ escapes.
14507     if test -n "${ZSH_VERSION+set}" ; then
14508       setopt NO_GLOB_SUBST
14509     fi
14510
14511     cfgfile="${ofile}T"
14512     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14513     $RM "$cfgfile"
14514
14515     cat <<_LT_EOF >> "$cfgfile"
14516 #! $SHELL
14517
14518 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14519 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14520 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14521 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14522 #
14523 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14524 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14525 #                 Foundation, Inc.
14526 #   Written by Gordon Matzigkeit, 1996
14527 #
14528 #   This file is part of GNU Libtool.
14529 #
14530 # GNU Libtool is free software; you can redistribute it and/or
14531 # modify it under the terms of the GNU General Public License as
14532 # published by the Free Software Foundation; either version 2 of
14533 # the License, or (at your option) any later version.
14534 #
14535 # As a special exception to the GNU General Public License,
14536 # if you distribute this file as part of a program or library that
14537 # is built using GNU Libtool, you may include this file under the
14538 # same distribution terms that you use for the rest of that program.
14539 #
14540 # GNU Libtool is distributed in the hope that it will be useful,
14541 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14542 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14543 # GNU General Public License for more details.
14544 #
14545 # You should have received a copy of the GNU General Public License
14546 # along with GNU Libtool; see the file COPYING.  If not, a copy
14547 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14548 # obtained by writing to the Free Software Foundation, Inc.,
14549 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14550
14551
14552 # The names of the tagged configurations supported by this script.
14553 available_tags=""
14554
14555 # ### BEGIN LIBTOOL CONFIG
14556
14557 # Whether or not to build static libraries.
14558 build_old_libs=$enable_static
14559
14560 # Which release of libtool.m4 was used?
14561 macro_version=$macro_version
14562 macro_revision=$macro_revision
14563
14564 # Whether or not to build shared libraries.
14565 build_libtool_libs=$enable_shared
14566
14567 # What type of objects to build.
14568 pic_mode=$pic_mode
14569
14570 # Whether or not to optimize for fast installation.
14571 fast_install=$enable_fast_install
14572
14573 # Shell to use when invoking shell scripts.
14574 SHELL=$lt_SHELL
14575
14576 # An echo program that protects backslashes.
14577 ECHO=$lt_ECHO
14578
14579 # The PATH separator for the build system.
14580 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14581
14582 # The host system.
14583 host_alias=$host_alias
14584 host=$host
14585 host_os=$host_os
14586
14587 # The build system.
14588 build_alias=$build_alias
14589 build=$build
14590 build_os=$build_os
14591
14592 # A sed program that does not truncate output.
14593 SED=$lt_SED
14594
14595 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14596 Xsed="\$SED -e 1s/^X//"
14597
14598 # A grep program that handles long lines.
14599 GREP=$lt_GREP
14600
14601 # An ERE matcher.
14602 EGREP=$lt_EGREP
14603
14604 # A literal string matcher.
14605 FGREP=$lt_FGREP
14606
14607 # A BSD- or MS-compatible name lister.
14608 NM=$lt_NM
14609
14610 # Whether we need soft or hard links.
14611 LN_S=$lt_LN_S
14612
14613 # What is the maximum length of a command?
14614 max_cmd_len=$max_cmd_len
14615
14616 # Object file suffix (normally "o").
14617 objext=$ac_objext
14618
14619 # Executable file suffix (normally "").
14620 exeext=$exeext
14621
14622 # whether the shell understands "unset".
14623 lt_unset=$lt_unset
14624
14625 # turn spaces into newlines.
14626 SP2NL=$lt_lt_SP2NL
14627
14628 # turn newlines into spaces.
14629 NL2SP=$lt_lt_NL2SP
14630
14631 # convert \$build file names to \$host format.
14632 to_host_file_cmd=$lt_cv_to_host_file_cmd
14633
14634 # convert \$build files to toolchain format.
14635 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14636
14637 # An object symbol dumper.
14638 OBJDUMP=$lt_OBJDUMP
14639
14640 # Method to check whether dependent libraries are shared objects.
14641 deplibs_check_method=$lt_deplibs_check_method
14642
14643 # Command to use when deplibs_check_method = "file_magic".
14644 file_magic_cmd=$lt_file_magic_cmd
14645
14646 # How to find potential files when deplibs_check_method = "file_magic".
14647 file_magic_glob=$lt_file_magic_glob
14648
14649 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14650 want_nocaseglob=$lt_want_nocaseglob
14651
14652 # DLL creation program.
14653 DLLTOOL=$lt_DLLTOOL
14654
14655 # Command to associate shared and link libraries.
14656 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14657
14658 # The archiver.
14659 AR=$lt_AR
14660
14661 # Flags to create an archive.
14662 AR_FLAGS=$lt_AR_FLAGS
14663
14664 # How to feed a file listing to the archiver.
14665 archiver_list_spec=$lt_archiver_list_spec
14666
14667 # A symbol stripping program.
14668 STRIP=$lt_STRIP
14669
14670 # Commands used to install an old-style archive.
14671 RANLIB=$lt_RANLIB
14672 old_postinstall_cmds=$lt_old_postinstall_cmds
14673 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14674
14675 # Whether to use a lock for old archive extraction.
14676 lock_old_archive_extraction=$lock_old_archive_extraction
14677
14678 # A C compiler.
14679 LTCC=$lt_CC
14680
14681 # LTCC compiler flags.
14682 LTCFLAGS=$lt_CFLAGS
14683
14684 # Take the output of nm and produce a listing of raw symbols and C names.
14685 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14686
14687 # Transform the output of nm in a proper C declaration.
14688 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14689
14690 # Transform the output of nm in a C name address pair.
14691 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14692
14693 # Transform the output of nm in a C name address pair when lib prefix is needed.
14694 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14695
14696 # Specify filename containing input files for \$NM.
14697 nm_file_list_spec=$lt_nm_file_list_spec
14698
14699 # The root where to search for dependent libraries,and in which our libraries should be installed.
14700 lt_sysroot=$lt_sysroot
14701
14702 # The name of the directory that contains temporary libtool files.
14703 objdir=$objdir
14704
14705 # Used to examine libraries when file_magic_cmd begins with "file".
14706 MAGIC_CMD=$MAGIC_CMD
14707
14708 # Must we lock files when doing compilation?
14709 need_locks=$lt_need_locks
14710
14711 # Manifest tool.
14712 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14713
14714 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14715 DSYMUTIL=$lt_DSYMUTIL
14716
14717 # Tool to change global to local symbols on Mac OS X.
14718 NMEDIT=$lt_NMEDIT
14719
14720 # Tool to manipulate fat objects and archives on Mac OS X.
14721 LIPO=$lt_LIPO
14722
14723 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14724 OTOOL=$lt_OTOOL
14725
14726 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14727 OTOOL64=$lt_OTOOL64
14728
14729 # Old archive suffix (normally "a").
14730 libext=$libext
14731
14732 # Shared library suffix (normally ".so").
14733 shrext_cmds=$lt_shrext_cmds
14734
14735 # The commands to extract the exported symbol list from a shared archive.
14736 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14737
14738 # Variables whose values should be saved in libtool wrapper scripts and
14739 # restored at link time.
14740 variables_saved_for_relink=$lt_variables_saved_for_relink
14741
14742 # Do we need the "lib" prefix for modules?
14743 need_lib_prefix=$need_lib_prefix
14744
14745 # Do we need a version for libraries?
14746 need_version=$need_version
14747
14748 # Library versioning type.
14749 version_type=$version_type
14750
14751 # Shared library runtime path variable.
14752 runpath_var=$runpath_var
14753
14754 # Shared library path variable.
14755 shlibpath_var=$shlibpath_var
14756
14757 # Is shlibpath searched before the hard-coded library search path?
14758 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14759
14760 # Format of library name prefix.
14761 libname_spec=$lt_libname_spec
14762
14763 # List of archive names.  First name is the real one, the rest are links.
14764 # The last name is the one that the linker finds with -lNAME
14765 library_names_spec=$lt_library_names_spec
14766
14767 # The coded name of the library, if different from the real name.
14768 soname_spec=$lt_soname_spec
14769
14770 # Permission mode override for installation of shared libraries.
14771 install_override_mode=$lt_install_override_mode
14772
14773 # Command to use after installation of a shared archive.
14774 postinstall_cmds=$lt_postinstall_cmds
14775
14776 # Command to use after uninstallation of a shared archive.
14777 postuninstall_cmds=$lt_postuninstall_cmds
14778
14779 # Commands used to finish a libtool library installation in a directory.
14780 finish_cmds=$lt_finish_cmds
14781
14782 # As "finish_cmds", except a single script fragment to be evaled but
14783 # not shown.
14784 finish_eval=$lt_finish_eval
14785
14786 # Whether we should hardcode library paths into libraries.
14787 hardcode_into_libs=$hardcode_into_libs
14788
14789 # Compile-time system search path for libraries.
14790 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14791
14792 # Run-time system search path for libraries.
14793 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14794
14795 # Whether dlopen is supported.
14796 dlopen_support=$enable_dlopen
14797
14798 # Whether dlopen of programs is supported.
14799 dlopen_self=$enable_dlopen_self
14800
14801 # Whether dlopen of statically linked programs is supported.
14802 dlopen_self_static=$enable_dlopen_self_static
14803
14804 # Commands to strip libraries.
14805 old_striplib=$lt_old_striplib
14806 striplib=$lt_striplib
14807
14808
14809 # The linker used to build libraries.
14810 LD=$lt_LD
14811
14812 # How to create reloadable object files.
14813 reload_flag=$lt_reload_flag
14814 reload_cmds=$lt_reload_cmds
14815
14816 # Commands used to build an old-style archive.
14817 old_archive_cmds=$lt_old_archive_cmds
14818
14819 # A language specific compiler.
14820 CC=$lt_compiler
14821
14822 # Is the compiler the GNU compiler?
14823 with_gcc=$GCC
14824
14825 # Compiler flag to turn off builtin functions.
14826 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14827
14828 # Additional compiler flags for building library objects.
14829 pic_flag=$lt_lt_prog_compiler_pic
14830
14831 # How to pass a linker flag through the compiler.
14832 wl=$lt_lt_prog_compiler_wl
14833
14834 # Compiler flag to prevent dynamic linking.
14835 link_static_flag=$lt_lt_prog_compiler_static
14836
14837 # Does compiler simultaneously support -c and -o options?
14838 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14839
14840 # Whether or not to add -lc for building shared libraries.
14841 build_libtool_need_lc=$archive_cmds_need_lc
14842
14843 # Whether or not to disallow shared libs when runtime libs are static.
14844 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14845
14846 # Compiler flag to allow reflexive dlopens.
14847 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14848
14849 # Compiler flag to generate shared objects directly from archives.
14850 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14851
14852 # Whether the compiler copes with passing no objects directly.
14853 compiler_needs_object=$lt_compiler_needs_object
14854
14855 # Create an old-style archive from a shared archive.
14856 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14857
14858 # Create a temporary old-style archive to link instead of a shared archive.
14859 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14860
14861 # Commands used to build a shared archive.
14862 archive_cmds=$lt_archive_cmds
14863 archive_expsym_cmds=$lt_archive_expsym_cmds
14864
14865 # Commands used to build a loadable module if different from building
14866 # a shared archive.
14867 module_cmds=$lt_module_cmds
14868 module_expsym_cmds=$lt_module_expsym_cmds
14869
14870 # Whether we are building with GNU ld or not.
14871 with_gnu_ld=$lt_with_gnu_ld
14872
14873 # Flag that allows shared libraries with undefined symbols to be built.
14874 allow_undefined_flag=$lt_allow_undefined_flag
14875
14876 # Flag that enforces no undefined symbols.
14877 no_undefined_flag=$lt_no_undefined_flag
14878
14879 # Flag to hardcode \$libdir into a binary during linking.
14880 # This must work even if \$libdir does not exist
14881 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14882
14883 # Whether we need a single "-rpath" flag with a separated argument.
14884 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14885
14886 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14887 # DIR into the resulting binary.
14888 hardcode_direct=$hardcode_direct
14889
14890 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14891 # DIR into the resulting binary and the resulting library dependency is
14892 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14893 # library is relocated.
14894 hardcode_direct_absolute=$hardcode_direct_absolute
14895
14896 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14897 # into the resulting binary.
14898 hardcode_minus_L=$hardcode_minus_L
14899
14900 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14901 # into the resulting binary.
14902 hardcode_shlibpath_var=$hardcode_shlibpath_var
14903
14904 # Set to "yes" if building a shared library automatically hardcodes DIR
14905 # into the library and all subsequent libraries and executables linked
14906 # against it.
14907 hardcode_automatic=$hardcode_automatic
14908
14909 # Set to yes if linker adds runtime paths of dependent libraries
14910 # to runtime path list.
14911 inherit_rpath=$inherit_rpath
14912
14913 # Whether libtool must link a program against all its dependency libraries.
14914 link_all_deplibs=$link_all_deplibs
14915
14916 # Set to "yes" if exported symbols are required.
14917 always_export_symbols=$always_export_symbols
14918
14919 # The commands to list exported symbols.
14920 export_symbols_cmds=$lt_export_symbols_cmds
14921
14922 # Symbols that should not be listed in the preloaded symbols.
14923 exclude_expsyms=$lt_exclude_expsyms
14924
14925 # Symbols that must always be exported.
14926 include_expsyms=$lt_include_expsyms
14927
14928 # Commands necessary for linking programs (against libraries) with templates.
14929 prelink_cmds=$lt_prelink_cmds
14930
14931 # Commands necessary for finishing linking programs.
14932 postlink_cmds=$lt_postlink_cmds
14933
14934 # Specify filename containing input files.
14935 file_list_spec=$lt_file_list_spec
14936
14937 # How to hardcode a shared library path into an executable.
14938 hardcode_action=$hardcode_action
14939
14940 # ### END LIBTOOL CONFIG
14941
14942 _LT_EOF
14943
14944   case $host_os in
14945   aix3*)
14946     cat <<\_LT_EOF >> "$cfgfile"
14947 # AIX sometimes has problems with the GCC collect2 program.  For some
14948 # reason, if we set the COLLECT_NAMES environment variable, the problems
14949 # vanish in a puff of smoke.
14950 if test "X${COLLECT_NAMES+set}" != Xset; then
14951   COLLECT_NAMES=
14952   export COLLECT_NAMES
14953 fi
14954 _LT_EOF
14955     ;;
14956   esac
14957
14958
14959 ltmain="$ac_aux_dir/ltmain.sh"
14960
14961
14962   # We use sed instead of cat because bash on DJGPP gets confused if
14963   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14964   # text mode, it properly converts lines to CR/LF.  This bash problem
14965   # is reportedly fixed, but why not run on old versions too?
14966   sed '$q' "$ltmain" >> "$cfgfile" \
14967      || (rm -f "$cfgfile"; exit 1)
14968
14969   if test x"$xsi_shell" = xyes; then
14970   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14971 func_dirname ()\
14972 {\
14973 \    case ${1} in\
14974 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14975 \      *  ) func_dirname_result="${3}" ;;\
14976 \    esac\
14977 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14978   && mv -f "$cfgfile.tmp" "$cfgfile" \
14979     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14980 test 0 -eq $? || _lt_function_replace_fail=:
14981
14982
14983   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14984 func_basename ()\
14985 {\
14986 \    func_basename_result="${1##*/}"\
14987 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14988   && mv -f "$cfgfile.tmp" "$cfgfile" \
14989     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14990 test 0 -eq $? || _lt_function_replace_fail=:
14991
14992
14993   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14994 func_dirname_and_basename ()\
14995 {\
14996 \    case ${1} in\
14997 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14998 \      *  ) func_dirname_result="${3}" ;;\
14999 \    esac\
15000 \    func_basename_result="${1##*/}"\
15001 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15002   && mv -f "$cfgfile.tmp" "$cfgfile" \
15003     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15004 test 0 -eq $? || _lt_function_replace_fail=:
15005
15006
15007   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15008 func_stripname ()\
15009 {\
15010 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15011 \    # positional parameters, so assign one to ordinary parameter first.\
15012 \    func_stripname_result=${3}\
15013 \    func_stripname_result=${func_stripname_result#"${1}"}\
15014 \    func_stripname_result=${func_stripname_result%"${2}"}\
15015 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15016   && mv -f "$cfgfile.tmp" "$cfgfile" \
15017     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15018 test 0 -eq $? || _lt_function_replace_fail=:
15019
15020
15021   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15022 func_split_long_opt ()\
15023 {\
15024 \    func_split_long_opt_name=${1%%=*}\
15025 \    func_split_long_opt_arg=${1#*=}\
15026 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15027   && mv -f "$cfgfile.tmp" "$cfgfile" \
15028     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15029 test 0 -eq $? || _lt_function_replace_fail=:
15030
15031
15032   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15033 func_split_short_opt ()\
15034 {\
15035 \    func_split_short_opt_arg=${1#??}\
15036 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15037 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15038   && mv -f "$cfgfile.tmp" "$cfgfile" \
15039     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15040 test 0 -eq $? || _lt_function_replace_fail=:
15041
15042
15043   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15044 func_lo2o ()\
15045 {\
15046 \    case ${1} in\
15047 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15048 \      *)    func_lo2o_result=${1} ;;\
15049 \    esac\
15050 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15051   && mv -f "$cfgfile.tmp" "$cfgfile" \
15052     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15053 test 0 -eq $? || _lt_function_replace_fail=:
15054
15055
15056   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15057 func_xform ()\
15058 {\
15059     func_xform_result=${1%.*}.lo\
15060 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15061   && mv -f "$cfgfile.tmp" "$cfgfile" \
15062     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15063 test 0 -eq $? || _lt_function_replace_fail=:
15064
15065
15066   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15067 func_arith ()\
15068 {\
15069     func_arith_result=$(( $* ))\
15070 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15071   && mv -f "$cfgfile.tmp" "$cfgfile" \
15072     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15073 test 0 -eq $? || _lt_function_replace_fail=:
15074
15075
15076   sed -e '/^func_len ()$/,/^} # func_len /c\
15077 func_len ()\
15078 {\
15079     func_len_result=${#1}\
15080 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15081   && mv -f "$cfgfile.tmp" "$cfgfile" \
15082     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15083 test 0 -eq $? || _lt_function_replace_fail=:
15084
15085 fi
15086
15087 if test x"$lt_shell_append" = xyes; then
15088   sed -e '/^func_append ()$/,/^} # func_append /c\
15089 func_append ()\
15090 {\
15091     eval "${1}+=\\${2}"\
15092 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15093   && mv -f "$cfgfile.tmp" "$cfgfile" \
15094     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15095 test 0 -eq $? || _lt_function_replace_fail=:
15096
15097
15098   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15099 func_append_quoted ()\
15100 {\
15101 \    func_quote_for_eval "${2}"\
15102 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15103 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15104   && mv -f "$cfgfile.tmp" "$cfgfile" \
15105     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15106 test 0 -eq $? || _lt_function_replace_fail=:
15107
15108
15109   # Save a `func_append' function call where possible by direct use of '+='
15110   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15111     && mv -f "$cfgfile.tmp" "$cfgfile" \
15112       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15113   test 0 -eq $? || _lt_function_replace_fail=:
15114 else
15115   # Save a `func_append' function call even when '+=' is not available
15116   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15117     && mv -f "$cfgfile.tmp" "$cfgfile" \
15118       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15119   test 0 -eq $? || _lt_function_replace_fail=:
15120 fi
15121
15122 if test x"$_lt_function_replace_fail" = x":"; then
15123   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15124 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15125 fi
15126
15127
15128    mv -f "$cfgfile" "$ofile" ||
15129     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15130   chmod +x "$ofile"
15131
15132  ;;
15133
15134   esac
15135 done # for ac_tag
15136
15137
15138 as_fn_exit 0
15139 _ACEOF
15140 ac_clean_files=$ac_clean_files_save
15141
15142 test $ac_write_fail = 0 ||
15143   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15144
15145
15146 # configure is writing to config.log, and then calls config.status.
15147 # config.status does its own redirection, appending to config.log.
15148 # Unfortunately, on DOS this fails, as config.log is still kept open
15149 # by configure, so config.status won't be able to write to it; its
15150 # output is simply discarded.  So we exec the FD to /dev/null,
15151 # effectively closing config.log, so it can be properly (re)opened and
15152 # appended to by config.status.  When coming back to configure, we
15153 # need to make the FD available again.
15154 if test "$no_create" != yes; then
15155   ac_cs_success=:
15156   ac_config_status_args=
15157   test "$silent" = yes &&
15158     ac_config_status_args="$ac_config_status_args --quiet"
15159   exec 5>/dev/null
15160   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15161   exec 5>>config.log
15162   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15163   # would make configure fail if this is the last instruction.
15164   $ac_cs_success || as_fn_exit 1
15165 fi
15166 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15167   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15168 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15169 fi
15170