[connman] Added DBus method to get scanning status.
[platform/upstream/connman.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for connman 1.29.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     PATH=/empty FPATH=/empty; export PATH FPATH
205     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='connman'
589 PACKAGE_TARNAME='connman'
590 PACKAGE_VERSION='1.29'
591 PACKAGE_STRING='connman 1.29'
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 VPN_FALSE
637 VPN_TRUE
638 DATAFILES_FALSE
639 DATAFILES_TRUE
640 WPASUPPLICANT
641 GNUTLS_LIBS
642 GNUTLS_CFLAGS
643 CLIENT_FALSE
644 CLIENT_TRUE
645 IPTABLES_SAVE
646 TOOLS_FALSE
647 TOOLS_TRUE
648 WISPR_FALSE
649 WISPR_TRUE
650 NEARD_FALSE
651 NEARD_TRUE
652 PACRUNNER_FALSE
653 PACRUNNER_TRUE
654 DUNDEE_FALSE
655 DUNDEE_TRUE
656 OFONO_FALSE
657 OFONO_TRUE
658 BLUETOOTH_FALSE
659 BLUETOOTH_TRUE
660 WIFI_FALSE
661 WIFI_TRUE
662 GADGET_FALSE
663 GADGET_TRUE
664 ETHERNET_FALSE
665 ETHERNET_TRUE
666 LOOPBACK_FALSE
667 LOOPBACK_TRUE
668 SELINUX_FALSE
669 SELINUX_TRUE
670 POLKIT_FALSE
671 POLKIT_TRUE
672 POLKIT_DATADIR
673 NMCOMPAT_FALSE
674 NMCOMPAT_TRUE
675 TEST_FALSE
676 TEST_TRUE
677 XTABLES_LIBS
678 XTABLES_CFLAGS
679 SYSTEMD_FALSE
680 SYSTEMD_TRUE
681 SYSTEMD_UNITDIR
682 DBUS_DATADIR
683 DBUS_CONFDIR
684 DBUS_LIBS
685 DBUS_CFLAGS
686 GLIB_LIBS
687 GLIB_CFLAGS
688 SESSION_POLICY_LOCAL_BUILTIN_FALSE
689 SESSION_POLICY_LOCAL_BUILTIN_TRUE
690 SESSION_POLICY_LOCAL_FALSE
691 SESSION_POLICY_LOCAL_TRUE
692 TIST_BUILTIN_FALSE
693 TIST_BUILTIN_TRUE
694 TIST_FALSE
695 TIST_TRUE
696 IOSPM_FALSE
697 IOSPM_TRUE
698 PPTP_BUILTIN_FALSE
699 PPTP_BUILTIN_TRUE
700 PPTP_FALSE
701 PPTP_TRUE
702 PPTP
703 L2TP_BUILTIN_FALSE
704 L2TP_BUILTIN_TRUE
705 L2TP_FALSE
706 L2TP_TRUE
707 L2TP
708 PPPD
709 VPNC_BUILTIN_FALSE
710 VPNC_BUILTIN_TRUE
711 VPNC_FALSE
712 VPNC_TRUE
713 VPNC
714 OPENVPN_BUILTIN_FALSE
715 OPENVPN_BUILTIN_TRUE
716 OPENVPN_FALSE
717 OPENVPN_TRUE
718 OPENVPN
719 OPENCONNECT_BUILTIN_FALSE
720 OPENCONNECT_BUILTIN_TRUE
721 OPENCONNECT_FALSE
722 OPENCONNECT_TRUE
723 OPENCONNECT
724 HH2SERIAL_GPS_BUILTIN_FALSE
725 HH2SERIAL_GPS_BUILTIN_TRUE
726 HH2SERIAL_GPS_FALSE
727 HH2SERIAL_GPS_TRUE
728 CPP
729 OTOOL64
730 OTOOL
731 LIPO
732 NMEDIT
733 DSYMUTIL
734 MANIFEST_TOOL
735 RANLIB
736 ac_ct_AR
737 AR
738 DLLTOOL
739 OBJDUMP
740 LN_S
741 NM
742 ac_ct_DUMPBIN
743 DUMPBIN
744 LD
745 FGREP
746 EGREP
747 GREP
748 SED
749 host_os
750 host_vendor
751 host_cpu
752 host
753 build_os
754 build_vendor
755 build_cpu
756 build
757 LIBTOOL
758 am__fastdepCC_FALSE
759 am__fastdepCC_TRUE
760 CCDEPMODE
761 am__nodep
762 AMDEPBACKSLASH
763 AMDEP_FALSE
764 AMDEP_TRUE
765 am__quote
766 am__include
767 DEPDIR
768 OBJEXT
769 EXEEXT
770 ac_ct_CC
771 CPPFLAGS
772 LDFLAGS
773 CFLAGS
774 CC
775 abs_top_builddir
776 abs_top_srcdir
777 PKG_CONFIG_LIBDIR
778 PKG_CONFIG_PATH
779 PKG_CONFIG
780 MAINT
781 MAINTAINER_MODE_FALSE
782 MAINTAINER_MODE_TRUE
783 AM_BACKSLASH
784 AM_DEFAULT_VERBOSITY
785 AM_DEFAULT_V
786 AM_V
787 am__untar
788 am__tar
789 AMTAR
790 am__leading_dot
791 SET_MAKE
792 AWK
793 mkdir_p
794 MKDIR_P
795 INSTALL_STRIP_PROGRAM
796 STRIP
797 install_sh
798 MAKEINFO
799 AUTOHEADER
800 AUTOMAKE
801 AUTOCONF
802 ACLOCAL
803 VERSION
804 PACKAGE
805 CYGPATH_W
806 am__isrc
807 INSTALL_DATA
808 INSTALL_SCRIPT
809 INSTALL_PROGRAM
810 target_alias
811 host_alias
812 build_alias
813 LIBS
814 ECHO_T
815 ECHO_N
816 ECHO_C
817 DEFS
818 mandir
819 localedir
820 libdir
821 psdir
822 pdfdir
823 dvidir
824 htmldir
825 infodir
826 docdir
827 oldincludedir
828 includedir
829 localstatedir
830 sharedstatedir
831 sysconfdir
832 datadir
833 datarootdir
834 libexecdir
835 sbindir
836 bindir
837 program_transform_name
838 prefix
839 exec_prefix
840 PACKAGE_URL
841 PACKAGE_BUGREPORT
842 PACKAGE_STRING
843 PACKAGE_VERSION
844 PACKAGE_TARNAME
845 PACKAGE_NAME
846 PATH_SEPARATOR
847 SHELL'
848 ac_subst_files=''
849 ac_user_opts='
850 enable_option_checking
851 enable_silent_rules
852 enable_maintainer_mode
853 enable_dependency_tracking
854 enable_static
855 enable_shared
856 with_pic
857 enable_fast_install
858 with_gnu_ld
859 with_sysroot
860 enable_libtool_lock
861 enable_optimization
862 enable_debug
863 enable_pie
864 enable_hh2serial_gps
865 with_openconnect
866 enable_openconnect
867 with_openvpn
868 enable_openvpn
869 with_vpnc
870 enable_vpnc
871 with_l2tp
872 enable_l2tp
873 with_pptp
874 enable_pptp
875 enable_iospm
876 enable_tist
877 enable_session_policy_local
878 with_stats_max_file_size
879 with_dbusconfdir
880 with_dbusdatadir
881 with_systemdunitdir
882 enable_test
883 enable_nmcompat
884 enable_polkit
885 enable_selinux
886 enable_loopback
887 enable_ethernet
888 enable_gadget
889 enable_wifi
890 enable_bluetooth
891 enable_ofono
892 enable_dundee
893 enable_pacrunner
894 enable_neard
895 enable_wispr
896 enable_tools
897 enable_client
898 enable_datafiles
899 '
900       ac_precious_vars='build_alias
901 host_alias
902 target_alias
903 PKG_CONFIG
904 PKG_CONFIG_PATH
905 PKG_CONFIG_LIBDIR
906 CC
907 CFLAGS
908 LDFLAGS
909 LIBS
910 CPPFLAGS
911 CPP
912 GLIB_CFLAGS
913 GLIB_LIBS
914 DBUS_CFLAGS
915 DBUS_LIBS
916 XTABLES_CFLAGS
917 XTABLES_LIBS
918 GNUTLS_CFLAGS
919 GNUTLS_LIBS'
920
921
922 # Initialize some variables set by options.
923 ac_init_help=
924 ac_init_version=false
925 ac_unrecognized_opts=
926 ac_unrecognized_sep=
927 # The variables have the same names as the options, with
928 # dashes changed to underlines.
929 cache_file=/dev/null
930 exec_prefix=NONE
931 no_create=
932 no_recursion=
933 prefix=NONE
934 program_prefix=NONE
935 program_suffix=NONE
936 program_transform_name=s,x,x,
937 silent=
938 site=
939 srcdir=
940 verbose=
941 x_includes=NONE
942 x_libraries=NONE
943
944 # Installation directory options.
945 # These are left unexpanded so users can "make install exec_prefix=/foo"
946 # and all the variables that are supposed to be based on exec_prefix
947 # by default will actually change.
948 # Use braces instead of parens because sh, perl, etc. also accept them.
949 # (The list follows the same order as the GNU Coding Standards.)
950 bindir='${exec_prefix}/bin'
951 sbindir='${exec_prefix}/sbin'
952 libexecdir='${exec_prefix}/libexec'
953 datarootdir='${prefix}/share'
954 datadir='${datarootdir}'
955 sysconfdir='${prefix}/etc'
956 sharedstatedir='${prefix}/com'
957 localstatedir='${prefix}/var'
958 includedir='${prefix}/include'
959 oldincludedir='/usr/include'
960 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961 infodir='${datarootdir}/info'
962 htmldir='${docdir}'
963 dvidir='${docdir}'
964 pdfdir='${docdir}'
965 psdir='${docdir}'
966 libdir='${exec_prefix}/lib'
967 localedir='${datarootdir}/locale'
968 mandir='${datarootdir}/man'
969
970 ac_prev=
971 ac_dashdash=
972 for ac_option
973 do
974   # If the previous option needs an argument, assign it.
975   if test -n "$ac_prev"; then
976     eval $ac_prev=\$ac_option
977     ac_prev=
978     continue
979   fi
980
981   case $ac_option in
982   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983   *=)   ac_optarg= ;;
984   *)    ac_optarg=yes ;;
985   esac
986
987   # Accept the important Cygnus configure options, so we can diagnose typos.
988
989   case $ac_dashdash$ac_option in
990   --)
991     ac_dashdash=yes ;;
992
993   -bindir | --bindir | --bindi | --bind | --bin | --bi)
994     ac_prev=bindir ;;
995   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996     bindir=$ac_optarg ;;
997
998   -build | --build | --buil | --bui | --bu)
999     ac_prev=build_alias ;;
1000   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001     build_alias=$ac_optarg ;;
1002
1003   -cache-file | --cache-file | --cache-fil | --cache-fi \
1004   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005     ac_prev=cache_file ;;
1006   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008     cache_file=$ac_optarg ;;
1009
1010   --config-cache | -C)
1011     cache_file=config.cache ;;
1012
1013   -datadir | --datadir | --datadi | --datad)
1014     ac_prev=datadir ;;
1015   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016     datadir=$ac_optarg ;;
1017
1018   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019   | --dataroo | --dataro | --datar)
1020     ac_prev=datarootdir ;;
1021   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023     datarootdir=$ac_optarg ;;
1024
1025   -disable-* | --disable-*)
1026     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027     # Reject names that are not valid shell variable names.
1028     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029       as_fn_error $? "invalid feature name: $ac_useropt"
1030     ac_useropt_orig=$ac_useropt
1031     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032     case $ac_user_opts in
1033       *"
1034 "enable_$ac_useropt"
1035 "*) ;;
1036       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037          ac_unrecognized_sep=', ';;
1038     esac
1039     eval enable_$ac_useropt=no ;;
1040
1041   -docdir | --docdir | --docdi | --doc | --do)
1042     ac_prev=docdir ;;
1043   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044     docdir=$ac_optarg ;;
1045
1046   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1047     ac_prev=dvidir ;;
1048   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049     dvidir=$ac_optarg ;;
1050
1051   -enable-* | --enable-*)
1052     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053     # Reject names that are not valid shell variable names.
1054     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055       as_fn_error $? "invalid feature name: $ac_useropt"
1056     ac_useropt_orig=$ac_useropt
1057     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058     case $ac_user_opts in
1059       *"
1060 "enable_$ac_useropt"
1061 "*) ;;
1062       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063          ac_unrecognized_sep=', ';;
1064     esac
1065     eval enable_$ac_useropt=\$ac_optarg ;;
1066
1067   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069   | --exec | --exe | --ex)
1070     ac_prev=exec_prefix ;;
1071   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073   | --exec=* | --exe=* | --ex=*)
1074     exec_prefix=$ac_optarg ;;
1075
1076   -gas | --gas | --ga | --g)
1077     # Obsolete; use --with-gas.
1078     with_gas=yes ;;
1079
1080   -help | --help | --hel | --he | -h)
1081     ac_init_help=long ;;
1082   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083     ac_init_help=recursive ;;
1084   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085     ac_init_help=short ;;
1086
1087   -host | --host | --hos | --ho)
1088     ac_prev=host_alias ;;
1089   -host=* | --host=* | --hos=* | --ho=*)
1090     host_alias=$ac_optarg ;;
1091
1092   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1093     ac_prev=htmldir ;;
1094   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1095   | --ht=*)
1096     htmldir=$ac_optarg ;;
1097
1098   -includedir | --includedir | --includedi | --included | --include \
1099   | --includ | --inclu | --incl | --inc)
1100     ac_prev=includedir ;;
1101   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102   | --includ=* | --inclu=* | --incl=* | --inc=*)
1103     includedir=$ac_optarg ;;
1104
1105   -infodir | --infodir | --infodi | --infod | --info | --inf)
1106     ac_prev=infodir ;;
1107   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108     infodir=$ac_optarg ;;
1109
1110   -libdir | --libdir | --libdi | --libd)
1111     ac_prev=libdir ;;
1112   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113     libdir=$ac_optarg ;;
1114
1115   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116   | --libexe | --libex | --libe)
1117     ac_prev=libexecdir ;;
1118   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119   | --libexe=* | --libex=* | --libe=*)
1120     libexecdir=$ac_optarg ;;
1121
1122   -localedir | --localedir | --localedi | --localed | --locale)
1123     ac_prev=localedir ;;
1124   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125     localedir=$ac_optarg ;;
1126
1127   -localstatedir | --localstatedir | --localstatedi | --localstated \
1128   | --localstate | --localstat | --localsta | --localst | --locals)
1129     ac_prev=localstatedir ;;
1130   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132     localstatedir=$ac_optarg ;;
1133
1134   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1135     ac_prev=mandir ;;
1136   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137     mandir=$ac_optarg ;;
1138
1139   -nfp | --nfp | --nf)
1140     # Obsolete; use --without-fp.
1141     with_fp=no ;;
1142
1143   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144   | --no-cr | --no-c | -n)
1145     no_create=yes ;;
1146
1147   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149     no_recursion=yes ;;
1150
1151   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153   | --oldin | --oldi | --old | --ol | --o)
1154     ac_prev=oldincludedir ;;
1155   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158     oldincludedir=$ac_optarg ;;
1159
1160   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1161     ac_prev=prefix ;;
1162   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163     prefix=$ac_optarg ;;
1164
1165   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166   | --program-pre | --program-pr | --program-p)
1167     ac_prev=program_prefix ;;
1168   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170     program_prefix=$ac_optarg ;;
1171
1172   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173   | --program-suf | --program-su | --program-s)
1174     ac_prev=program_suffix ;;
1175   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177     program_suffix=$ac_optarg ;;
1178
1179   -program-transform-name | --program-transform-name \
1180   | --program-transform-nam | --program-transform-na \
1181   | --program-transform-n | --program-transform- \
1182   | --program-transform | --program-transfor \
1183   | --program-transfo | --program-transf \
1184   | --program-trans | --program-tran \
1185   | --progr-tra | --program-tr | --program-t)
1186     ac_prev=program_transform_name ;;
1187   -program-transform-name=* | --program-transform-name=* \
1188   | --program-transform-nam=* | --program-transform-na=* \
1189   | --program-transform-n=* | --program-transform-=* \
1190   | --program-transform=* | --program-transfor=* \
1191   | --program-transfo=* | --program-transf=* \
1192   | --program-trans=* | --program-tran=* \
1193   | --progr-tra=* | --program-tr=* | --program-t=*)
1194     program_transform_name=$ac_optarg ;;
1195
1196   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1197     ac_prev=pdfdir ;;
1198   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199     pdfdir=$ac_optarg ;;
1200
1201   -psdir | --psdir | --psdi | --psd | --ps)
1202     ac_prev=psdir ;;
1203   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204     psdir=$ac_optarg ;;
1205
1206   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207   | -silent | --silent | --silen | --sile | --sil)
1208     silent=yes ;;
1209
1210   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1211     ac_prev=sbindir ;;
1212   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1213   | --sbi=* | --sb=*)
1214     sbindir=$ac_optarg ;;
1215
1216   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218   | --sharedst | --shareds | --shared | --share | --shar \
1219   | --sha | --sh)
1220     ac_prev=sharedstatedir ;;
1221   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1224   | --sha=* | --sh=*)
1225     sharedstatedir=$ac_optarg ;;
1226
1227   -site | --site | --sit)
1228     ac_prev=site ;;
1229   -site=* | --site=* | --sit=*)
1230     site=$ac_optarg ;;
1231
1232   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1233     ac_prev=srcdir ;;
1234   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235     srcdir=$ac_optarg ;;
1236
1237   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238   | --syscon | --sysco | --sysc | --sys | --sy)
1239     ac_prev=sysconfdir ;;
1240   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242     sysconfdir=$ac_optarg ;;
1243
1244   -target | --target | --targe | --targ | --tar | --ta | --t)
1245     ac_prev=target_alias ;;
1246   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247     target_alias=$ac_optarg ;;
1248
1249   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250     verbose=yes ;;
1251
1252   -version | --version | --versio | --versi | --vers | -V)
1253     ac_init_version=: ;;
1254
1255   -with-* | --with-*)
1256     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257     # Reject names that are not valid shell variable names.
1258     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259       as_fn_error $? "invalid package name: $ac_useropt"
1260     ac_useropt_orig=$ac_useropt
1261     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262     case $ac_user_opts in
1263       *"
1264 "with_$ac_useropt"
1265 "*) ;;
1266       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1267          ac_unrecognized_sep=', ';;
1268     esac
1269     eval with_$ac_useropt=\$ac_optarg ;;
1270
1271   -without-* | --without-*)
1272     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273     # Reject names that are not valid shell variable names.
1274     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275       as_fn_error $? "invalid package name: $ac_useropt"
1276     ac_useropt_orig=$ac_useropt
1277     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278     case $ac_user_opts in
1279       *"
1280 "with_$ac_useropt"
1281 "*) ;;
1282       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1283          ac_unrecognized_sep=', ';;
1284     esac
1285     eval with_$ac_useropt=no ;;
1286
1287   --x)
1288     # Obsolete; use --with-x.
1289     with_x=yes ;;
1290
1291   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292   | --x-incl | --x-inc | --x-in | --x-i)
1293     ac_prev=x_includes ;;
1294   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296     x_includes=$ac_optarg ;;
1297
1298   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300     ac_prev=x_libraries ;;
1301   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303     x_libraries=$ac_optarg ;;
1304
1305   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1306 Try \`$0 --help' for more information"
1307     ;;
1308
1309   *=*)
1310     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311     # Reject names that are not valid shell variable names.
1312     case $ac_envvar in #(
1313       '' | [0-9]* | *[!_$as_cr_alnum]* )
1314       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1315     esac
1316     eval $ac_envvar=\$ac_optarg
1317     export $ac_envvar ;;
1318
1319   *)
1320     # FIXME: should be removed in autoconf 3.0.
1321     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1325     ;;
1326
1327   esac
1328 done
1329
1330 if test -n "$ac_prev"; then
1331   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332   as_fn_error $? "missing argument to $ac_option"
1333 fi
1334
1335 if test -n "$ac_unrecognized_opts"; then
1336   case $enable_option_checking in
1337     no) ;;
1338     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1339     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1340   esac
1341 fi
1342
1343 # Check all directory arguments for consistency.
1344 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345                 datadir sysconfdir sharedstatedir localstatedir includedir \
1346                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347                 libdir localedir mandir
1348 do
1349   eval ac_val=\$$ac_var
1350   # Remove trailing slashes.
1351   case $ac_val in
1352     */ )
1353       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1354       eval $ac_var=\$ac_val;;
1355   esac
1356   # Be sure to have absolute directory names.
1357   case $ac_val in
1358     [\\/$]* | ?:[\\/]* )  continue;;
1359     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1360   esac
1361   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1362 done
1363
1364 # There might be people who depend on the old broken behavior: `$host'
1365 # used to hold the argument of --host etc.
1366 # FIXME: To remove some day.
1367 build=$build_alias
1368 host=$host_alias
1369 target=$target_alias
1370
1371 # FIXME: To remove some day.
1372 if test "x$host_alias" != x; then
1373   if test "x$build_alias" = x; then
1374     cross_compiling=maybe
1375   elif test "x$build_alias" != "x$host_alias"; then
1376     cross_compiling=yes
1377   fi
1378 fi
1379
1380 ac_tool_prefix=
1381 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382
1383 test "$silent" = yes && exec 6>/dev/null
1384
1385
1386 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1387 ac_ls_di=`ls -di .` &&
1388 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1389   as_fn_error $? "working directory cannot be determined"
1390 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391   as_fn_error $? "pwd does not report name of working directory"
1392
1393
1394 # Find the source files, if location was not specified.
1395 if test -z "$srcdir"; then
1396   ac_srcdir_defaulted=yes
1397   # Try the directory containing this script, then the parent directory.
1398   ac_confdir=`$as_dirname -- "$as_myself" ||
1399 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400          X"$as_myself" : 'X\(//\)[^/]' \| \
1401          X"$as_myself" : 'X\(//\)$' \| \
1402          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1403 $as_echo X"$as_myself" |
1404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405             s//\1/
1406             q
1407           }
1408           /^X\(\/\/\)[^/].*/{
1409             s//\1/
1410             q
1411           }
1412           /^X\(\/\/\)$/{
1413             s//\1/
1414             q
1415           }
1416           /^X\(\/\).*/{
1417             s//\1/
1418             q
1419           }
1420           s/.*/./; q'`
1421   srcdir=$ac_confdir
1422   if test ! -r "$srcdir/$ac_unique_file"; then
1423     srcdir=..
1424   fi
1425 else
1426   ac_srcdir_defaulted=no
1427 fi
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1431 fi
1432 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 ac_abs_confdir=`(
1434         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1435         pwd)`
1436 # When building in place, set srcdir=.
1437 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438   srcdir=.
1439 fi
1440 # Remove unnecessary trailing slashes from srcdir.
1441 # Double slashes in file names in object file debugging info
1442 # mess up M-x gdb in Emacs.
1443 case $srcdir in
1444 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 esac
1446 for ac_var in $ac_precious_vars; do
1447   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448   eval ac_env_${ac_var}_value=\$${ac_var}
1449   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451 done
1452
1453 #
1454 # Report the --help message.
1455 #
1456 if test "$ac_init_help" = "long"; then
1457   # Omit some internal or obsolete options to make the list less imposing.
1458   # This message is too long to be a string in the A/UX 3.1 sh.
1459   cat <<_ACEOF
1460 \`configure' configures connman 1.29 to adapt to many kinds of systems.
1461
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1463
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE.  See below for descriptions of some of the useful variables.
1466
1467 Defaults for the options are specified in brackets.
1468
1469 Configuration:
1470   -h, --help              display this help and exit
1471       --help=short        display options specific to this package
1472       --help=recursive    display the short help of all the included packages
1473   -V, --version           display version information and exit
1474   -q, --quiet, --silent   do not print \`checking ...' messages
1475       --cache-file=FILE   cache test results in FILE [disabled]
1476   -C, --config-cache      alias for \`--cache-file=config.cache'
1477   -n, --no-create         do not create output files
1478       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1479
1480 Installation directories:
1481   --prefix=PREFIX         install architecture-independent files in PREFIX
1482                           [$ac_default_prefix]
1483   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1484                           [PREFIX]
1485
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1490
1491 For better control, use the options below.
1492
1493 Fine tuning of the installation directories:
1494   --bindir=DIR            user executables [EPREFIX/bin]
1495   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1496   --libexecdir=DIR        program executables [EPREFIX/libexec]
1497   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1498   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1499   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1500   --libdir=DIR            object code libraries [EPREFIX/lib]
1501   --includedir=DIR        C header files [PREFIX/include]
1502   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1503   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1504   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1505   --infodir=DIR           info documentation [DATAROOTDIR/info]
1506   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1507   --mandir=DIR            man documentation [DATAROOTDIR/man]
1508   --docdir=DIR            documentation root [DATAROOTDIR/doc/connman]
1509   --htmldir=DIR           html documentation [DOCDIR]
1510   --dvidir=DIR            dvi documentation [DOCDIR]
1511   --pdfdir=DIR            pdf documentation [DOCDIR]
1512   --psdir=DIR             ps documentation [DOCDIR]
1513 _ACEOF
1514
1515   cat <<\_ACEOF
1516
1517 Program names:
1518   --program-prefix=PREFIX            prepend PREFIX to installed program names
1519   --program-suffix=SUFFIX            append SUFFIX to installed program names
1520   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1521
1522 System types:
1523   --build=BUILD     configure for building on BUILD [guessed]
1524   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1525 _ACEOF
1526 fi
1527
1528 if test -n "$ac_init_help"; then
1529   case $ac_init_help in
1530      short | recursive ) echo "Configuration of connman 1.29:";;
1531    esac
1532   cat <<\_ACEOF
1533
1534 Optional Features:
1535   --disable-option-checking  ignore unrecognized --enable/--with options
1536   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1537   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1538   --enable-silent-rules          less verbose build output (undo: `make V=1')
1539   --disable-silent-rules         verbose build output (undo: `make V=0')
1540   --enable-maintainer-mode  enable make rules and dependencies not useful
1541                           (and sometimes confusing) to the casual installer
1542   --disable-dependency-tracking  speeds up one-time build
1543   --enable-dependency-tracking   do not reject slow dependency extractors
1544   --enable-static[=PKGS]  build static libraries [default=no]
1545   --enable-shared[=PKGS]  build shared libraries [default=yes]
1546   --enable-fast-install[=PKGS]
1547                           optimize for fast installation [default=yes]
1548   --disable-libtool-lock  avoid locking (might break parallel builds)
1549   --disable-optimization  disable code optimization through compiler
1550   --enable-debug          enable compiling with debugging information
1551   --enable-pie            enable position independent executables flag
1552   --enable-hh2serial-gps  enable hh2serial GPS support
1553   --enable-openconnect    enable openconnect support
1554   --enable-openvpn        enable openvpn support
1555   --enable-vpnc           enable vpnc support
1556   --enable-l2tp           enable l2tp support
1557   --enable-pptp           enable pptp support
1558   --enable-iospm          enable Intel OSPM support
1559   --enable-tist           enable TI Shared Transport support
1560   --enable-session-policy-local
1561                           enable local file Session policy configuration
1562                           support
1563   --enable-test           enable test/example scripts
1564   --enable-nmcompat       enable Network Manager support
1565   --enable-polkit         enable PolicyKit support
1566   --enable-selinux        enable selinux support
1567   --disable-loopback      disable loopback support
1568   --disable-ethernet      disable Ethernet support
1569   --disable-gadget        disable USB Gadget support
1570   --disable-wifi          disable WiFi support
1571   --disable-bluetooth     disable Bluetooth support
1572   --disable-ofono         disable oFono support
1573   --disable-dundee        disable dundee support (Bluetooth DUN)
1574   --disable-pacrunner     disable PACrunner support
1575   --disable-neard         disable Neard support
1576   --disable-wispr         disable WISPr support
1577   --disable-tools         disable testing tools
1578   --disable-client        disable command line client
1579   --disable-datafiles     don't install configuration and data files
1580
1581 Optional Packages:
1582   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1583   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1584   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1585                           both]
1586   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1587   --with-sysroot=DIR Search for dependent libraries within DIR
1588                         (or the compiler's sysroot if not specified).
1589   --with-openconnect=PROGRAM
1590                           specify location of openconnect binary
1591   --with-openvpn=PROGRAM  specify location of openvpn binary
1592   --with-vpnc=PROGRAM     specify location of vpnc binary
1593   --with-l2tp=PROGRAM     specify location of l2tp binary
1594   --with-pptp=PROGRAM     specify location of pptp binary
1595   --with-stats-max-file-size=SIZE
1596                           Maximal size of a statistics round robin file
1597   --with-dbusconfdir=PATH path to D-Bus config directory
1598   --with-dbusdatadir=PATH path to D-Bus data directory
1599   --with-systemdunitdir=DIR
1600                           path to systemd service directory
1601
1602 Some influential environment variables:
1603   PKG_CONFIG  path to pkg-config utility
1604   PKG_CONFIG_PATH
1605               directories to add to pkg-config's search path
1606   PKG_CONFIG_LIBDIR
1607               path overriding pkg-config's built-in search path
1608   CC          C compiler command
1609   CFLAGS      C compiler flags
1610   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1611               nonstandard directory <lib dir>
1612   LIBS        libraries to pass to the linker, e.g. -l<library>
1613   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1614               you have headers in a nonstandard directory <include dir>
1615   CPP         C preprocessor
1616   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1617   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1618   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1619   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1620   XTABLES_CFLAGS
1621               C compiler flags for XTABLES, overriding pkg-config
1622   XTABLES_LIBS
1623               linker flags for XTABLES, overriding pkg-config
1624   GNUTLS_CFLAGS
1625               C compiler flags for GNUTLS, overriding pkg-config
1626   GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1627
1628 Use these variables to override the choices made by `configure' or to help
1629 it to find libraries and programs with nonstandard names/locations.
1630
1631 Report bugs to the package provider.
1632 _ACEOF
1633 ac_status=$?
1634 fi
1635
1636 if test "$ac_init_help" = "recursive"; then
1637   # If there are subdirs, report their specific --help.
1638   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1639     test -d "$ac_dir" ||
1640       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1641       continue
1642     ac_builddir=.
1643
1644 case "$ac_dir" in
1645 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 *)
1647   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1648   # A ".." for each directory in $ac_dir_suffix.
1649   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1650   case $ac_top_builddir_sub in
1651   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1653   esac ;;
1654 esac
1655 ac_abs_top_builddir=$ac_pwd
1656 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1657 # for backward compatibility:
1658 ac_top_builddir=$ac_top_build_prefix
1659
1660 case $srcdir in
1661   .)  # We are building in place.
1662     ac_srcdir=.
1663     ac_top_srcdir=$ac_top_builddir_sub
1664     ac_abs_top_srcdir=$ac_pwd ;;
1665   [\\/]* | ?:[\\/]* )  # Absolute name.
1666     ac_srcdir=$srcdir$ac_dir_suffix;
1667     ac_top_srcdir=$srcdir
1668     ac_abs_top_srcdir=$srcdir ;;
1669   *) # Relative name.
1670     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1671     ac_top_srcdir=$ac_top_build_prefix$srcdir
1672     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1673 esac
1674 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1675
1676     cd "$ac_dir" || { ac_status=$?; continue; }
1677     # Check for guested configure.
1678     if test -f "$ac_srcdir/configure.gnu"; then
1679       echo &&
1680       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1681     elif test -f "$ac_srcdir/configure"; then
1682       echo &&
1683       $SHELL "$ac_srcdir/configure" --help=recursive
1684     else
1685       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1686     fi || ac_status=$?
1687     cd "$ac_pwd" || { ac_status=$?; break; }
1688   done
1689 fi
1690
1691 test -n "$ac_init_help" && exit $ac_status
1692 if $ac_init_version; then
1693   cat <<\_ACEOF
1694 connman configure 1.29
1695 generated by GNU Autoconf 2.69
1696
1697 Copyright (C) 2012 Free Software Foundation, Inc.
1698 This configure script is free software; the Free Software Foundation
1699 gives unlimited permission to copy, distribute and modify it.
1700 _ACEOF
1701   exit
1702 fi
1703
1704 ## ------------------------ ##
1705 ## Autoconf initialization. ##
1706 ## ------------------------ ##
1707
1708 # ac_fn_c_try_compile LINENO
1709 # --------------------------
1710 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1711 ac_fn_c_try_compile ()
1712 {
1713   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714   rm -f conftest.$ac_objext
1715   if { { ac_try="$ac_compile"
1716 case "(($ac_try" in
1717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718   *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722   (eval "$ac_compile") 2>conftest.err
1723   ac_status=$?
1724   if test -s conftest.err; then
1725     grep -v '^ *+' conftest.err >conftest.er1
1726     cat conftest.er1 >&5
1727     mv -f conftest.er1 conftest.err
1728   fi
1729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730   test $ac_status = 0; } && {
1731          test -z "$ac_c_werror_flag" ||
1732          test ! -s conftest.err
1733        } && test -s conftest.$ac_objext; then :
1734   ac_retval=0
1735 else
1736   $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1738
1739         ac_retval=1
1740 fi
1741   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742   as_fn_set_status $ac_retval
1743
1744 } # ac_fn_c_try_compile
1745
1746 # ac_fn_c_try_link LINENO
1747 # -----------------------
1748 # Try to link conftest.$ac_ext, and return whether this succeeded.
1749 ac_fn_c_try_link ()
1750 {
1751   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752   rm -f conftest.$ac_objext conftest$ac_exeext
1753   if { { ac_try="$ac_link"
1754 case "(($ac_try" in
1755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756   *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760   (eval "$ac_link") 2>conftest.err
1761   ac_status=$?
1762   if test -s conftest.err; then
1763     grep -v '^ *+' conftest.err >conftest.er1
1764     cat conftest.er1 >&5
1765     mv -f conftest.er1 conftest.err
1766   fi
1767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768   test $ac_status = 0; } && {
1769          test -z "$ac_c_werror_flag" ||
1770          test ! -s conftest.err
1771        } && test -s conftest$ac_exeext && {
1772          test "$cross_compiling" = yes ||
1773          test -x conftest$ac_exeext
1774        }; then :
1775   ac_retval=0
1776 else
1777   $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1779
1780         ac_retval=1
1781 fi
1782   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1783   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1784   # interfere with the next link command; also delete a directory that is
1785   # left behind by Apple's compiler.  We do this before executing the actions.
1786   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788   as_fn_set_status $ac_retval
1789
1790 } # ac_fn_c_try_link
1791
1792 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1793 # -------------------------------------------------------
1794 # Tests whether HEADER exists and can be compiled using the include files in
1795 # INCLUDES, setting the cache variable VAR accordingly.
1796 ac_fn_c_check_header_compile ()
1797 {
1798   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if eval \${$3+:} false; then :
1802   $as_echo_n "(cached) " >&6
1803 else
1804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h.  */
1806 $4
1807 #include <$2>
1808 _ACEOF
1809 if ac_fn_c_try_compile "$LINENO"; then :
1810   eval "$3=yes"
1811 else
1812   eval "$3=no"
1813 fi
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815 fi
1816 eval ac_res=\$$3
1817                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820
1821 } # ac_fn_c_check_header_compile
1822
1823 # ac_fn_c_try_cpp LINENO
1824 # ----------------------
1825 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1826 ac_fn_c_try_cpp ()
1827 {
1828   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829   if { { ac_try="$ac_cpp conftest.$ac_ext"
1830 case "(($ac_try" in
1831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832   *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1837   ac_status=$?
1838   if test -s conftest.err; then
1839     grep -v '^ *+' conftest.err >conftest.er1
1840     cat conftest.er1 >&5
1841     mv -f conftest.er1 conftest.err
1842   fi
1843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844   test $ac_status = 0; } > conftest.i && {
1845          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1846          test ! -s conftest.err
1847        }; then :
1848   ac_retval=0
1849 else
1850   $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1852
1853     ac_retval=1
1854 fi
1855   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856   as_fn_set_status $ac_retval
1857
1858 } # ac_fn_c_try_cpp
1859
1860 # ac_fn_c_try_run LINENO
1861 # ----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1863 # that executables *can* be run.
1864 ac_fn_c_try_run ()
1865 {
1866   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867   if { { ac_try="$ac_link"
1868 case "(($ac_try" in
1869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870   *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874   (eval "$ac_link") 2>&5
1875   ac_status=$?
1876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1878   { { case "(($ac_try" in
1879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880   *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884   (eval "$ac_try") 2>&5
1885   ac_status=$?
1886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887   test $ac_status = 0; }; }; then :
1888   ac_retval=0
1889 else
1890   $as_echo "$as_me: program exited with status $ac_status" >&5
1891        $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894        ac_retval=$ac_status
1895 fi
1896   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1897   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898   as_fn_set_status $ac_retval
1899
1900 } # ac_fn_c_try_run
1901
1902 # ac_fn_c_check_func LINENO FUNC VAR
1903 # ----------------------------------
1904 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1905 ac_fn_c_check_func ()
1906 {
1907   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909 $as_echo_n "checking for $2... " >&6; }
1910 if eval \${$3+:} false; then :
1911   $as_echo_n "(cached) " >&6
1912 else
1913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h.  */
1915 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1916    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1917 #define $2 innocuous_$2
1918
1919 /* System header to define __stub macros and hopefully few prototypes,
1920     which can conflict with char $2 (); below.
1921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1922     <limits.h> exists even on freestanding compilers.  */
1923
1924 #ifdef __STDC__
1925 # include <limits.h>
1926 #else
1927 # include <assert.h>
1928 #endif
1929
1930 #undef $2
1931
1932 /* Override any GCC internal prototype to avoid an error.
1933    Use char because int might match the return type of a GCC
1934    builtin and then its argument prototype would still apply.  */
1935 #ifdef __cplusplus
1936 extern "C"
1937 #endif
1938 char $2 ();
1939 /* The GNU C library defines this for functions which it implements
1940     to always fail with ENOSYS.  Some functions are actually named
1941     something starting with __ and the normal name is an alias.  */
1942 #if defined __stub_$2 || defined __stub___$2
1943 choke me
1944 #endif
1945
1946 int
1947 main ()
1948 {
1949 return $2 ();
1950   ;
1951   return 0;
1952 }
1953 _ACEOF
1954 if ac_fn_c_try_link "$LINENO"; then :
1955   eval "$3=yes"
1956 else
1957   eval "$3=no"
1958 fi
1959 rm -f core conftest.err conftest.$ac_objext \
1960     conftest$ac_exeext conftest.$ac_ext
1961 fi
1962 eval ac_res=\$$3
1963                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1964 $as_echo "$ac_res" >&6; }
1965   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966
1967 } # ac_fn_c_check_func
1968
1969 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1970 # -------------------------------------------------------
1971 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1972 # the include files in INCLUDES and setting the cache variable VAR
1973 # accordingly.
1974 ac_fn_c_check_header_mongrel ()
1975 {
1976   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977   if eval \${$3+:} false; then :
1978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 $as_echo_n "checking for $2... " >&6; }
1980 if eval \${$3+:} false; then :
1981   $as_echo_n "(cached) " >&6
1982 fi
1983 eval ac_res=\$$3
1984                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986 else
1987   # Is the header compilable?
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1989 $as_echo_n "checking $2 usability... " >&6; }
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h.  */
1992 $4
1993 #include <$2>
1994 _ACEOF
1995 if ac_fn_c_try_compile "$LINENO"; then :
1996   ac_header_compiler=yes
1997 else
1998   ac_header_compiler=no
1999 fi
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2002 $as_echo "$ac_header_compiler" >&6; }
2003
2004 # Is the header present?
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2006 $as_echo_n "checking $2 presence... " >&6; }
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h.  */
2009 #include <$2>
2010 _ACEOF
2011 if ac_fn_c_try_cpp "$LINENO"; then :
2012   ac_header_preproc=yes
2013 else
2014   ac_header_preproc=no
2015 fi
2016 rm -f conftest.err conftest.i conftest.$ac_ext
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2018 $as_echo "$ac_header_preproc" >&6; }
2019
2020 # So?  What about this header?
2021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2022   yes:no: )
2023     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2024 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2025     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2026 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2027     ;;
2028   no:yes:* )
2029     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2030 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2031     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2032 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2033     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2034 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2035     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2036 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2037     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2038 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2039     ;;
2040 esac
2041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042 $as_echo_n "checking for $2... " >&6; }
2043 if eval \${$3+:} false; then :
2044   $as_echo_n "(cached) " >&6
2045 else
2046   eval "$3=\$ac_header_compiler"
2047 fi
2048 eval ac_res=\$$3
2049                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 fi
2052   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053
2054 } # ac_fn_c_check_header_mongrel
2055 cat >config.log <<_ACEOF
2056 This file contains any messages produced by compilers while
2057 running configure, to aid debugging if configure makes a mistake.
2058
2059 It was created by connman $as_me 1.29, which was
2060 generated by GNU Autoconf 2.69.  Invocation command line was
2061
2062   $ $0 $@
2063
2064 _ACEOF
2065 exec 5>>config.log
2066 {
2067 cat <<_ASUNAME
2068 ## --------- ##
2069 ## Platform. ##
2070 ## --------- ##
2071
2072 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2073 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2074 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2075 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2076 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2077
2078 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2079 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2080
2081 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2082 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2083 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2084 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2085 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2086 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2087 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2088
2089 _ASUNAME
2090
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 for as_dir in $PATH
2093 do
2094   IFS=$as_save_IFS
2095   test -z "$as_dir" && as_dir=.
2096     $as_echo "PATH: $as_dir"
2097   done
2098 IFS=$as_save_IFS
2099
2100 } >&5
2101
2102 cat >&5 <<_ACEOF
2103
2104
2105 ## ----------- ##
2106 ## Core tests. ##
2107 ## ----------- ##
2108
2109 _ACEOF
2110
2111
2112 # Keep a trace of the command line.
2113 # Strip out --no-create and --no-recursion so they do not pile up.
2114 # Strip out --silent because we don't want to record it for future runs.
2115 # Also quote any args containing shell meta-characters.
2116 # Make two passes to allow for proper duplicate-argument suppression.
2117 ac_configure_args=
2118 ac_configure_args0=
2119 ac_configure_args1=
2120 ac_must_keep_next=false
2121 for ac_pass in 1 2
2122 do
2123   for ac_arg
2124   do
2125     case $ac_arg in
2126     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2127     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2128     | -silent | --silent | --silen | --sile | --sil)
2129       continue ;;
2130     *\'*)
2131       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2132     esac
2133     case $ac_pass in
2134     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2135     2)
2136       as_fn_append ac_configure_args1 " '$ac_arg'"
2137       if test $ac_must_keep_next = true; then
2138         ac_must_keep_next=false # Got value, back to normal.
2139       else
2140         case $ac_arg in
2141           *=* | --config-cache | -C | -disable-* | --disable-* \
2142           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2143           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2144           | -with-* | --with-* | -without-* | --without-* | --x)
2145             case "$ac_configure_args0 " in
2146               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2147             esac
2148             ;;
2149           -* ) ac_must_keep_next=true ;;
2150         esac
2151       fi
2152       as_fn_append ac_configure_args " '$ac_arg'"
2153       ;;
2154     esac
2155   done
2156 done
2157 { ac_configure_args0=; unset ac_configure_args0;}
2158 { ac_configure_args1=; unset ac_configure_args1;}
2159
2160 # When interrupted or exit'd, cleanup temporary files, and complete
2161 # config.log.  We remove comments because anyway the quotes in there
2162 # would cause problems or look ugly.
2163 # WARNING: Use '\'' to represent an apostrophe within the trap.
2164 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2165 trap 'exit_status=$?
2166   # Save into config.log some information that might help in debugging.
2167   {
2168     echo
2169
2170     $as_echo "## ---------------- ##
2171 ## Cache variables. ##
2172 ## ---------------- ##"
2173     echo
2174     # The following way of writing the cache mishandles newlines in values,
2175 (
2176   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2177     eval ac_val=\$$ac_var
2178     case $ac_val in #(
2179     *${as_nl}*)
2180       case $ac_var in #(
2181       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2182 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2183       esac
2184       case $ac_var in #(
2185       _ | IFS | as_nl) ;; #(
2186       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2187       *) { eval $ac_var=; unset $ac_var;} ;;
2188       esac ;;
2189     esac
2190   done
2191   (set) 2>&1 |
2192     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2193     *${as_nl}ac_space=\ *)
2194       sed -n \
2195         "s/'\''/'\''\\\\'\'''\''/g;
2196           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2197       ;; #(
2198     *)
2199       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2200       ;;
2201     esac |
2202     sort
2203 )
2204     echo
2205
2206     $as_echo "## ----------------- ##
2207 ## Output variables. ##
2208 ## ----------------- ##"
2209     echo
2210     for ac_var in $ac_subst_vars
2211     do
2212       eval ac_val=\$$ac_var
2213       case $ac_val in
2214       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2215       esac
2216       $as_echo "$ac_var='\''$ac_val'\''"
2217     done | sort
2218     echo
2219
2220     if test -n "$ac_subst_files"; then
2221       $as_echo "## ------------------- ##
2222 ## File substitutions. ##
2223 ## ------------------- ##"
2224       echo
2225       for ac_var in $ac_subst_files
2226       do
2227         eval ac_val=\$$ac_var
2228         case $ac_val in
2229         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2230         esac
2231         $as_echo "$ac_var='\''$ac_val'\''"
2232       done | sort
2233       echo
2234     fi
2235
2236     if test -s confdefs.h; then
2237       $as_echo "## ----------- ##
2238 ## confdefs.h. ##
2239 ## ----------- ##"
2240       echo
2241       cat confdefs.h
2242       echo
2243     fi
2244     test "$ac_signal" != 0 &&
2245       $as_echo "$as_me: caught signal $ac_signal"
2246     $as_echo "$as_me: exit $exit_status"
2247   } >&5
2248   rm -f core *.core core.conftest.* &&
2249     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2250     exit $exit_status
2251 ' 0
2252 for ac_signal in 1 2 13 15; do
2253   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2254 done
2255 ac_signal=0
2256
2257 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2258 rm -f -r conftest* confdefs.h
2259
2260 $as_echo "/* confdefs.h */" > confdefs.h
2261
2262 # Predefined preprocessor variables.
2263
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_NAME "$PACKAGE_NAME"
2266 _ACEOF
2267
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2270 _ACEOF
2271
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2274 _ACEOF
2275
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_STRING "$PACKAGE_STRING"
2278 _ACEOF
2279
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2282 _ACEOF
2283
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_URL "$PACKAGE_URL"
2286 _ACEOF
2287
2288
2289 # Let the site file select an alternate cache file if it wants to.
2290 # Prefer an explicitly selected file to automatically selected ones.
2291 ac_site_file1=NONE
2292 ac_site_file2=NONE
2293 if test -n "$CONFIG_SITE"; then
2294   # We do not want a PATH search for config.site.
2295   case $CONFIG_SITE in #((
2296     -*)  ac_site_file1=./$CONFIG_SITE;;
2297     */*) ac_site_file1=$CONFIG_SITE;;
2298     *)   ac_site_file1=./$CONFIG_SITE;;
2299   esac
2300 elif test "x$prefix" != xNONE; then
2301   ac_site_file1=$prefix/share/config.site
2302   ac_site_file2=$prefix/etc/config.site
2303 else
2304   ac_site_file1=$ac_default_prefix/share/config.site
2305   ac_site_file2=$ac_default_prefix/etc/config.site
2306 fi
2307 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2308 do
2309   test "x$ac_site_file" = xNONE && continue
2310   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2311     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2312 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2313     sed 's/^/| /' "$ac_site_file" >&5
2314     . "$ac_site_file" \
2315       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2317 as_fn_error $? "failed to load site script $ac_site_file
2318 See \`config.log' for more details" "$LINENO" 5; }
2319   fi
2320 done
2321
2322 if test -r "$cache_file"; then
2323   # Some versions of bash will fail to source /dev/null (special files
2324   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2325   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2326     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2327 $as_echo "$as_me: loading cache $cache_file" >&6;}
2328     case $cache_file in
2329       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2330       *)                      . "./$cache_file";;
2331     esac
2332   fi
2333 else
2334   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2335 $as_echo "$as_me: creating cache $cache_file" >&6;}
2336   >$cache_file
2337 fi
2338
2339 # Check that the precious variables saved in the cache have kept the same
2340 # value.
2341 ac_cache_corrupted=false
2342 for ac_var in $ac_precious_vars; do
2343   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2344   eval ac_new_set=\$ac_env_${ac_var}_set
2345   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2346   eval ac_new_val=\$ac_env_${ac_var}_value
2347   case $ac_old_set,$ac_new_set in
2348     set,)
2349       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2350 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2351       ac_cache_corrupted=: ;;
2352     ,set)
2353       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2354 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2355       ac_cache_corrupted=: ;;
2356     ,);;
2357     *)
2358       if test "x$ac_old_val" != "x$ac_new_val"; then
2359         # differences in whitespace do not lead to failure.
2360         ac_old_val_w=`echo x $ac_old_val`
2361         ac_new_val_w=`echo x $ac_new_val`
2362         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2363           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2364 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2365           ac_cache_corrupted=:
2366         else
2367           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2368 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2369           eval $ac_var=\$ac_old_val
2370         fi
2371         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2372 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2373         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2374 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2375       fi;;
2376   esac
2377   # Pass precious variables to config.status.
2378   if test "$ac_new_set" = set; then
2379     case $ac_new_val in
2380     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2381     *) ac_arg=$ac_var=$ac_new_val ;;
2382     esac
2383     case " $ac_configure_args " in
2384       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2385       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2386     esac
2387   fi
2388 done
2389 if $ac_cache_corrupted; then
2390   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2392   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2393 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2394   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2395 fi
2396 ## -------------------- ##
2397 ## Main body of script. ##
2398 ## -------------------- ##
2399
2400 ac_ext=c
2401 ac_cpp='$CPP $CPPFLAGS'
2402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2405
2406
2407
2408 am__api_version='1.11'
2409
2410 ac_aux_dir=
2411 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2412   if test -f "$ac_dir/install-sh"; then
2413     ac_aux_dir=$ac_dir
2414     ac_install_sh="$ac_aux_dir/install-sh -c"
2415     break
2416   elif test -f "$ac_dir/install.sh"; then
2417     ac_aux_dir=$ac_dir
2418     ac_install_sh="$ac_aux_dir/install.sh -c"
2419     break
2420   elif test -f "$ac_dir/shtool"; then
2421     ac_aux_dir=$ac_dir
2422     ac_install_sh="$ac_aux_dir/shtool install -c"
2423     break
2424   fi
2425 done
2426 if test -z "$ac_aux_dir"; then
2427   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2428 fi
2429
2430 # These three variables are undocumented and unsupported,
2431 # and are intended to be withdrawn in a future Autoconf release.
2432 # They can cause serious problems if a builder's source tree is in a directory
2433 # whose full name contains unusual characters.
2434 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2435 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2436 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2437
2438
2439 # Find a good install program.  We prefer a C program (faster),
2440 # so one script is as good as another.  But avoid the broken or
2441 # incompatible versions:
2442 # SysV /etc/install, /usr/sbin/install
2443 # SunOS /usr/etc/install
2444 # IRIX /sbin/install
2445 # AIX /bin/install
2446 # AmigaOS /C/install, which installs bootblocks on floppy discs
2447 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2448 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2449 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2450 # OS/2's system install, which has a completely different semantic
2451 # ./install, which can be erroneously created by make from ./install.sh.
2452 # Reject install programs that cannot install multiple files.
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2454 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2455 if test -z "$INSTALL"; then
2456 if ${ac_cv_path_install+:} false; then :
2457   $as_echo_n "(cached) " >&6
2458 else
2459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2461 do
2462   IFS=$as_save_IFS
2463   test -z "$as_dir" && as_dir=.
2464     # Account for people who put trailing slashes in PATH elements.
2465 case $as_dir/ in #((
2466   ./ | .// | /[cC]/* | \
2467   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2468   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2469   /usr/ucb/* ) ;;
2470   *)
2471     # OSF1 and SCO ODT 3.0 have their own names for install.
2472     # Don't use installbsd from OSF since it installs stuff as root
2473     # by default.
2474     for ac_prog in ginstall scoinst install; do
2475       for ac_exec_ext in '' $ac_executable_extensions; do
2476         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2477           if test $ac_prog = install &&
2478             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2479             # AIX install.  It has an incompatible calling convention.
2480             :
2481           elif test $ac_prog = install &&
2482             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483             # program-specific install script used by HP pwplus--don't use.
2484             :
2485           else
2486             rm -rf conftest.one conftest.two conftest.dir
2487             echo one > conftest.one
2488             echo two > conftest.two
2489             mkdir conftest.dir
2490             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2491               test -s conftest.one && test -s conftest.two &&
2492               test -s conftest.dir/conftest.one &&
2493               test -s conftest.dir/conftest.two
2494             then
2495               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2496               break 3
2497             fi
2498           fi
2499         fi
2500       done
2501     done
2502     ;;
2503 esac
2504
2505   done
2506 IFS=$as_save_IFS
2507
2508 rm -rf conftest.one conftest.two conftest.dir
2509
2510 fi
2511   if test "${ac_cv_path_install+set}" = set; then
2512     INSTALL=$ac_cv_path_install
2513   else
2514     # As a last resort, use the slow shell script.  Don't cache a
2515     # value for INSTALL within a source directory, because that will
2516     # break other packages using the cache if that directory is
2517     # removed, or if the value is a relative name.
2518     INSTALL=$ac_install_sh
2519   fi
2520 fi
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2522 $as_echo "$INSTALL" >&6; }
2523
2524 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2525 # It thinks the first close brace ends the variable substitution.
2526 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2527
2528 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2529
2530 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2531
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2533 $as_echo_n "checking whether build environment is sane... " >&6; }
2534 # Just in case
2535 sleep 1
2536 echo timestamp > conftest.file
2537 # Reject unsafe characters in $srcdir or the absolute working directory
2538 # name.  Accept space and tab only in the latter.
2539 am_lf='
2540 '
2541 case `pwd` in
2542   *[\\\"\#\$\&\'\`$am_lf]*)
2543     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2544 esac
2545 case $srcdir in
2546   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2547     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2548 esac
2549
2550 # Do `set' in a subshell so we don't clobber the current shell's
2551 # arguments.  Must try -L first in case configure is actually a
2552 # symlink; some systems play weird games with the mod time of symlinks
2553 # (eg FreeBSD returns the mod time of the symlink's containing
2554 # directory).
2555 if (
2556    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2557    if test "$*" = "X"; then
2558       # -L didn't work.
2559       set X `ls -t "$srcdir/configure" conftest.file`
2560    fi
2561    rm -f conftest.file
2562    if test "$*" != "X $srcdir/configure conftest.file" \
2563       && test "$*" != "X conftest.file $srcdir/configure"; then
2564
2565       # If neither matched, then we have a broken ls.  This can happen
2566       # if, for instance, CONFIG_SHELL is bash and it inherits a
2567       # broken ls alias from the environment.  This has actually
2568       # happened.  Such a system could not be considered "sane".
2569       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2570 alias in your environment" "$LINENO" 5
2571    fi
2572
2573    test "$2" = conftest.file
2574    )
2575 then
2576    # Ok.
2577    :
2578 else
2579    as_fn_error $? "newly created file is older than distributed files!
2580 Check your system clock" "$LINENO" 5
2581 fi
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2583 $as_echo "yes" >&6; }
2584 test "$program_prefix" != NONE &&
2585   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2586 # Use a double $ so make ignores it.
2587 test "$program_suffix" != NONE &&
2588   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2589 # Double any \ or $.
2590 # By default was `s,x,x', remove it if useless.
2591 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2592 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2593
2594 # expand $ac_aux_dir to an absolute path
2595 am_aux_dir=`cd $ac_aux_dir && pwd`
2596
2597 if test x"${MISSING+set}" != xset; then
2598   case $am_aux_dir in
2599   *\ * | *\     *)
2600     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2601   *)
2602     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2603   esac
2604 fi
2605 # Use eval to expand $SHELL
2606 if eval "$MISSING --run true"; then
2607   am_missing_run="$MISSING --run "
2608 else
2609   am_missing_run=
2610   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2611 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2612 fi
2613
2614 if test x"${install_sh}" != xset; then
2615   case $am_aux_dir in
2616   *\ * | *\     *)
2617     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2618   *)
2619     install_sh="\${SHELL} $am_aux_dir/install-sh"
2620   esac
2621 fi
2622
2623 # Installed binaries are usually stripped using `strip' when the user
2624 # run `make install-strip'.  However `strip' might not be the right
2625 # tool to use in cross-compilation environments, therefore Automake
2626 # will honor the `STRIP' environment variable to overrule this program.
2627 if test "$cross_compiling" != no; then
2628   if test -n "$ac_tool_prefix"; then
2629   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2630 set dummy ${ac_tool_prefix}strip; ac_word=$2
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2632 $as_echo_n "checking for $ac_word... " >&6; }
2633 if ${ac_cv_prog_STRIP+:} false; then :
2634   $as_echo_n "(cached) " >&6
2635 else
2636   if test -n "$STRIP"; then
2637   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2641 do
2642   IFS=$as_save_IFS
2643   test -z "$as_dir" && as_dir=.
2644     for ac_exec_ext in '' $ac_executable_extensions; do
2645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2648     break 2
2649   fi
2650 done
2651   done
2652 IFS=$as_save_IFS
2653
2654 fi
2655 fi
2656 STRIP=$ac_cv_prog_STRIP
2657 if test -n "$STRIP"; then
2658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2659 $as_echo "$STRIP" >&6; }
2660 else
2661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662 $as_echo "no" >&6; }
2663 fi
2664
2665
2666 fi
2667 if test -z "$ac_cv_prog_STRIP"; then
2668   ac_ct_STRIP=$STRIP
2669   # Extract the first word of "strip", so it can be a program name with args.
2670 set dummy strip; ac_word=$2
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 $as_echo_n "checking for $ac_word... " >&6; }
2673 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2674   $as_echo_n "(cached) " >&6
2675 else
2676   if test -n "$ac_ct_STRIP"; then
2677   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2681 do
2682   IFS=$as_save_IFS
2683   test -z "$as_dir" && as_dir=.
2684     for ac_exec_ext in '' $ac_executable_extensions; do
2685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686     ac_cv_prog_ac_ct_STRIP="strip"
2687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688     break 2
2689   fi
2690 done
2691   done
2692 IFS=$as_save_IFS
2693
2694 fi
2695 fi
2696 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2697 if test -n "$ac_ct_STRIP"; then
2698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2699 $as_echo "$ac_ct_STRIP" >&6; }
2700 else
2701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2703 fi
2704
2705   if test "x$ac_ct_STRIP" = x; then
2706     STRIP=":"
2707   else
2708     case $cross_compiling:$ac_tool_warned in
2709 yes:)
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2712 ac_tool_warned=yes ;;
2713 esac
2714     STRIP=$ac_ct_STRIP
2715   fi
2716 else
2717   STRIP="$ac_cv_prog_STRIP"
2718 fi
2719
2720 fi
2721 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2722
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2724 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2725 if test -z "$MKDIR_P"; then
2726   if ${ac_cv_path_mkdir+:} false; then :
2727   $as_echo_n "(cached) " >&6
2728 else
2729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2731 do
2732   IFS=$as_save_IFS
2733   test -z "$as_dir" && as_dir=.
2734     for ac_prog in mkdir gmkdir; do
2735          for ac_exec_ext in '' $ac_executable_extensions; do
2736            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2737            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2738              'mkdir (GNU coreutils) '* | \
2739              'mkdir (coreutils) '* | \
2740              'mkdir (fileutils) '4.1*)
2741                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2742                break 3;;
2743            esac
2744          done
2745        done
2746   done
2747 IFS=$as_save_IFS
2748
2749 fi
2750
2751   test -d ./--version && rmdir ./--version
2752   if test "${ac_cv_path_mkdir+set}" = set; then
2753     MKDIR_P="$ac_cv_path_mkdir -p"
2754   else
2755     # As a last resort, use the slow shell script.  Don't cache a
2756     # value for MKDIR_P within a source directory, because that will
2757     # break other packages using the cache if that directory is
2758     # removed, or if the value is a relative name.
2759     MKDIR_P="$ac_install_sh -d"
2760   fi
2761 fi
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2763 $as_echo "$MKDIR_P" >&6; }
2764
2765 mkdir_p="$MKDIR_P"
2766 case $mkdir_p in
2767   [\\/$]* | ?:[\\/]*) ;;
2768   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2769 esac
2770
2771 for ac_prog in gawk mawk nawk awk
2772 do
2773   # Extract the first word of "$ac_prog", so it can be a program name with args.
2774 set dummy $ac_prog; ac_word=$2
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if ${ac_cv_prog_AWK+:} false; then :
2778   $as_echo_n "(cached) " >&6
2779 else
2780   if test -n "$AWK"; then
2781   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2785 do
2786   IFS=$as_save_IFS
2787   test -z "$as_dir" && as_dir=.
2788     for ac_exec_ext in '' $ac_executable_extensions; do
2789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790     ac_cv_prog_AWK="$ac_prog"
2791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792     break 2
2793   fi
2794 done
2795   done
2796 IFS=$as_save_IFS
2797
2798 fi
2799 fi
2800 AWK=$ac_cv_prog_AWK
2801 if test -n "$AWK"; then
2802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2803 $as_echo "$AWK" >&6; }
2804 else
2805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 $as_echo "no" >&6; }
2807 fi
2808
2809
2810   test -n "$AWK" && break
2811 done
2812
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2814 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2815 set x ${MAKE-make}
2816 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2817 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2818   $as_echo_n "(cached) " >&6
2819 else
2820   cat >conftest.make <<\_ACEOF
2821 SHELL = /bin/sh
2822 all:
2823         @echo '@@@%%%=$(MAKE)=@@@%%%'
2824 _ACEOF
2825 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2826 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2827   *@@@%%%=?*=@@@%%%*)
2828     eval ac_cv_prog_make_${ac_make}_set=yes;;
2829   *)
2830     eval ac_cv_prog_make_${ac_make}_set=no;;
2831 esac
2832 rm -f conftest.make
2833 fi
2834 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2836 $as_echo "yes" >&6; }
2837   SET_MAKE=
2838 else
2839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2841   SET_MAKE="MAKE=${MAKE-make}"
2842 fi
2843
2844 rm -rf .tst 2>/dev/null
2845 mkdir .tst 2>/dev/null
2846 if test -d .tst; then
2847   am__leading_dot=.
2848 else
2849   am__leading_dot=_
2850 fi
2851 rmdir .tst 2>/dev/null
2852
2853 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2854   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2855   # is not polluted with repeated "-I."
2856   am__isrc=' -I$(srcdir)'
2857   # test to see if srcdir already configured
2858   if test -f $srcdir/config.status; then
2859     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2860   fi
2861 fi
2862
2863 # test whether we have cygpath
2864 if test -z "$CYGPATH_W"; then
2865   if (cygpath --version) >/dev/null 2>/dev/null; then
2866     CYGPATH_W='cygpath -w'
2867   else
2868     CYGPATH_W=echo
2869   fi
2870 fi
2871
2872
2873 # Define the identity of the package.
2874  PACKAGE='connman'
2875  VERSION='1.29'
2876
2877
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE "$PACKAGE"
2880 _ACEOF
2881
2882
2883 cat >>confdefs.h <<_ACEOF
2884 #define VERSION "$VERSION"
2885 _ACEOF
2886
2887 # Some tools Automake needs.
2888
2889 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2890
2891
2892 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2893
2894
2895 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2896
2897
2898 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2899
2900
2901 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2902
2903 # We need awk for the "check" target.  The system "awk" is bad on
2904 # some platforms.
2905 # Always define AMTAR for backward compatibility.  Yes, it's still used
2906 # in the wild :-(  We should find a proper way to deprecate it ...
2907 AMTAR='$${TAR-tar}'
2908
2909 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2910
2911
2912
2913
2914
2915 ac_config_headers="$ac_config_headers config.h"
2916
2917
2918 # Check whether --enable-silent-rules was given.
2919 if test "${enable_silent_rules+set}" = set; then :
2920   enableval=$enable_silent_rules;
2921 fi
2922
2923 case $enable_silent_rules in
2924 yes) AM_DEFAULT_VERBOSITY=0;;
2925 no)  AM_DEFAULT_VERBOSITY=1;;
2926 *)   AM_DEFAULT_VERBOSITY=0;;
2927 esac
2928 am_make=${MAKE-make}
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2930 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2931 if ${am_cv_make_support_nested_variables+:} false; then :
2932   $as_echo_n "(cached) " >&6
2933 else
2934   if $as_echo 'TRUE=$(BAR$(V))
2935 BAR0=false
2936 BAR1=true
2937 V=1
2938 am__doit:
2939         @$(TRUE)
2940 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2941   am_cv_make_support_nested_variables=yes
2942 else
2943   am_cv_make_support_nested_variables=no
2944 fi
2945 fi
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2947 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2948 if test $am_cv_make_support_nested_variables = yes; then
2949     AM_V='$(V)'
2950   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2951 else
2952   AM_V=$AM_DEFAULT_VERBOSITY
2953   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2954 fi
2955 AM_BACKSLASH='\'
2956
2957
2958
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2960 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2961     # Check whether --enable-maintainer-mode was given.
2962 if test "${enable_maintainer_mode+set}" = set; then :
2963   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2964 else
2965   USE_MAINTAINER_MODE=no
2966 fi
2967
2968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2969 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2970    if test $USE_MAINTAINER_MODE = yes; then
2971   MAINTAINER_MODE_TRUE=
2972   MAINTAINER_MODE_FALSE='#'
2973 else
2974   MAINTAINER_MODE_TRUE='#'
2975   MAINTAINER_MODE_FALSE=
2976 fi
2977
2978   MAINT=$MAINTAINER_MODE_TRUE
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2992         if test -n "$ac_tool_prefix"; then
2993   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2994 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if ${ac_cv_path_PKG_CONFIG+:} false; then :
2998   $as_echo_n "(cached) " >&6
2999 else
3000   case $PKG_CONFIG in
3001   [\\/]* | ?:[\\/]*)
3002   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3003   ;;
3004   *)
3005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008   IFS=$as_save_IFS
3009   test -z "$as_dir" && as_dir=.
3010     for ac_exec_ext in '' $ac_executable_extensions; do
3011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014     break 2
3015   fi
3016 done
3017   done
3018 IFS=$as_save_IFS
3019
3020   ;;
3021 esac
3022 fi
3023 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3024 if test -n "$PKG_CONFIG"; then
3025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3026 $as_echo "$PKG_CONFIG" >&6; }
3027 else
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3030 fi
3031
3032
3033 fi
3034 if test -z "$ac_cv_path_PKG_CONFIG"; then
3035   ac_pt_PKG_CONFIG=$PKG_CONFIG
3036   # Extract the first word of "pkg-config", so it can be a program name with args.
3037 set dummy pkg-config; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3041   $as_echo_n "(cached) " >&6
3042 else
3043   case $ac_pt_PKG_CONFIG in
3044   [\\/]* | ?:[\\/]*)
3045   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3046   ;;
3047   *)
3048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3050 do
3051   IFS=$as_save_IFS
3052   test -z "$as_dir" && as_dir=.
3053     for ac_exec_ext in '' $ac_executable_extensions; do
3054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3055     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057     break 2
3058   fi
3059 done
3060   done
3061 IFS=$as_save_IFS
3062
3063   ;;
3064 esac
3065 fi
3066 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3067 if test -n "$ac_pt_PKG_CONFIG"; then
3068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3069 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3070 else
3071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073 fi
3074
3075   if test "x$ac_pt_PKG_CONFIG" = x; then
3076     PKG_CONFIG=""
3077   else
3078     case $cross_compiling:$ac_tool_warned in
3079 yes:)
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3082 ac_tool_warned=yes ;;
3083 esac
3084     PKG_CONFIG=$ac_pt_PKG_CONFIG
3085   fi
3086 else
3087   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3088 fi
3089
3090 fi
3091 if test -n "$PKG_CONFIG"; then
3092         _pkg_min_version=0.9.0
3093         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3094 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3095         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3096                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3097 $as_echo "yes" >&6; }
3098         else
3099                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3101                 PKG_CONFIG=""
3102         fi
3103 fi
3104
3105
3106         if (test "${CFLAGS}" = ""); then
3107                 CFLAGS="-Wall -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3108         fi
3109         if (test "$USE_MAINTAINER_MODE" = "yes"); then
3110                 CFLAGS+=" -Werror -Wextra"
3111                 CFLAGS+=" -Wno-unused-parameter"
3112                 CFLAGS+=" -Wno-missing-field-initializers"
3113                 CFLAGS+=" -Wdeclaration-after-statement"
3114                 CFLAGS+=" -Wmissing-declarations"
3115                 CFLAGS+=" -Wredundant-decls"
3116                 CFLAGS+=" -Wcast-align"
3117                 CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED"
3118         fi
3119
3120
3121
3122
3123
3124 ac_ext=c
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129
3130
3131 ac_ext=c
3132 ac_cpp='$CPP $CPPFLAGS'
3133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3136 if test -n "$ac_tool_prefix"; then
3137   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3138 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_CC+:} false; then :
3142   $as_echo_n "(cached) " >&6
3143 else
3144   if test -n "$CC"; then
3145   ac_cv_prog_CC="$CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150   IFS=$as_save_IFS
3151   test -z "$as_dir" && as_dir=.
3152     for ac_exec_ext in '' $ac_executable_extensions; do
3153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156     break 2
3157   fi
3158 done
3159   done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 CC=$ac_cv_prog_CC
3165 if test -n "$CC"; then
3166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3168 else
3169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174 fi
3175 if test -z "$ac_cv_prog_CC"; then
3176   ac_ct_CC=$CC
3177   # Extract the first word of "gcc", so it can be a program name with args.
3178 set dummy gcc; ac_word=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3182   $as_echo_n "(cached) " >&6
3183 else
3184   if test -n "$ac_ct_CC"; then
3185   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192     for ac_exec_ext in '' $ac_executable_extensions; do
3193   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194     ac_cv_prog_ac_ct_CC="gcc"
3195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196     break 2
3197   fi
3198 done
3199   done
3200 IFS=$as_save_IFS
3201
3202 fi
3203 fi
3204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205 if test -n "$ac_ct_CC"; then
3206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3207 $as_echo "$ac_ct_CC" >&6; }
3208 else
3209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3211 fi
3212
3213   if test "x$ac_ct_CC" = x; then
3214     CC=""
3215   else
3216     case $cross_compiling:$ac_tool_warned in
3217 yes:)
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned=yes ;;
3221 esac
3222     CC=$ac_ct_CC
3223   fi
3224 else
3225   CC="$ac_cv_prog_CC"
3226 fi
3227
3228 if test -z "$CC"; then
3229           if test -n "$ac_tool_prefix"; then
3230     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3231 set dummy ${ac_tool_prefix}cc; ac_word=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if ${ac_cv_prog_CC+:} false; then :
3235   $as_echo_n "(cached) " >&6
3236 else
3237   if test -n "$CC"; then
3238   ac_cv_prog_CC="$CC" # Let the user override the test.
3239 else
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH
3242 do
3243   IFS=$as_save_IFS
3244   test -z "$as_dir" && as_dir=.
3245     for ac_exec_ext in '' $ac_executable_extensions; do
3246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3247     ac_cv_prog_CC="${ac_tool_prefix}cc"
3248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3249     break 2
3250   fi
3251 done
3252   done
3253 IFS=$as_save_IFS
3254
3255 fi
3256 fi
3257 CC=$ac_cv_prog_CC
3258 if test -n "$CC"; then
3259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3260 $as_echo "$CC" >&6; }
3261 else
3262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264 fi
3265
3266
3267   fi
3268 fi
3269 if test -z "$CC"; then
3270   # Extract the first word of "cc", so it can be a program name with args.
3271 set dummy cc; ac_word=$2
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if ${ac_cv_prog_CC+:} false; then :
3275   $as_echo_n "(cached) " >&6
3276 else
3277   if test -n "$CC"; then
3278   ac_cv_prog_CC="$CC" # Let the user override the test.
3279 else
3280   ac_prog_rejected=no
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284   IFS=$as_save_IFS
3285   test -z "$as_dir" && as_dir=.
3286     for ac_exec_ext in '' $ac_executable_extensions; do
3287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3289        ac_prog_rejected=yes
3290        continue
3291      fi
3292     ac_cv_prog_CC="cc"
3293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294     break 2
3295   fi
3296 done
3297   done
3298 IFS=$as_save_IFS
3299
3300 if test $ac_prog_rejected = yes; then
3301   # We found a bogon in the path, so make sure we never use it.
3302   set dummy $ac_cv_prog_CC
3303   shift
3304   if test $# != 0; then
3305     # We chose a different compiler from the bogus one.
3306     # However, it has the same basename, so the bogon will be chosen
3307     # first if we set CC to just the basename; use the full file name.
3308     shift
3309     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3310   fi
3311 fi
3312 fi
3313 fi
3314 CC=$ac_cv_prog_CC
3315 if test -n "$CC"; then
3316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3317 $as_echo "$CC" >&6; }
3318 else
3319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 $as_echo "no" >&6; }
3321 fi
3322
3323
3324 fi
3325 if test -z "$CC"; then
3326   if test -n "$ac_tool_prefix"; then
3327   for ac_prog in cl.exe
3328   do
3329     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_CC+:} false; then :
3334   $as_echo_n "(cached) " >&6
3335 else
3336   if test -n "$CC"; then
3337   ac_cv_prog_CC="$CC" # Let the user override the test.
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342   IFS=$as_save_IFS
3343   test -z "$as_dir" && as_dir=.
3344     for ac_exec_ext in '' $ac_executable_extensions; do
3345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348     break 2
3349   fi
3350 done
3351   done
3352 IFS=$as_save_IFS
3353
3354 fi
3355 fi
3356 CC=$ac_cv_prog_CC
3357 if test -n "$CC"; then
3358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359 $as_echo "$CC" >&6; }
3360 else
3361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3363 fi
3364
3365
3366     test -n "$CC" && break
3367   done
3368 fi
3369 if test -z "$CC"; then
3370   ac_ct_CC=$CC
3371   for ac_prog in cl.exe
3372 do
3373   # Extract the first word of "$ac_prog", so it can be a program name with args.
3374 set dummy $ac_prog; ac_word=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376 $as_echo_n "checking for $ac_word... " >&6; }
3377 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3378   $as_echo_n "(cached) " >&6
3379 else
3380   if test -n "$ac_ct_CC"; then
3381   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3385 do
3386   IFS=$as_save_IFS
3387   test -z "$as_dir" && as_dir=.
3388     for ac_exec_ext in '' $ac_executable_extensions; do
3389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390     ac_cv_prog_ac_ct_CC="$ac_prog"
3391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392     break 2
3393   fi
3394 done
3395   done
3396 IFS=$as_save_IFS
3397
3398 fi
3399 fi
3400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3401 if test -n "$ac_ct_CC"; then
3402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3403 $as_echo "$ac_ct_CC" >&6; }
3404 else
3405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3407 fi
3408
3409
3410   test -n "$ac_ct_CC" && break
3411 done
3412
3413   if test "x$ac_ct_CC" = x; then
3414     CC=""
3415   else
3416     case $cross_compiling:$ac_tool_warned in
3417 yes:)
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3420 ac_tool_warned=yes ;;
3421 esac
3422     CC=$ac_ct_CC
3423   fi
3424 fi
3425
3426 fi
3427
3428
3429 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error $? "no acceptable C compiler found in \$PATH
3432 See \`config.log' for more details" "$LINENO" 5; }
3433
3434 # Provide some information about the compiler.
3435 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3436 set X $ac_compile
3437 ac_compiler=$2
3438 for ac_option in --version -v -V -qversion; do
3439   { { ac_try="$ac_compiler $ac_option >&5"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445 $as_echo "$ac_try_echo"; } >&5
3446   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3447   ac_status=$?
3448   if test -s conftest.err; then
3449     sed '10a\
3450 ... rest of stderr output deleted ...
3451          10q' conftest.err >conftest.er1
3452     cat conftest.er1 >&5
3453   fi
3454   rm -f conftest.er1 conftest.err
3455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456   test $ac_status = 0; }
3457 done
3458
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h.  */
3461
3462 int
3463 main ()
3464 {
3465
3466   ;
3467   return 0;
3468 }
3469 _ACEOF
3470 ac_clean_files_save=$ac_clean_files
3471 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3472 # Try to create an executable without -o first, disregard a.out.
3473 # It will help us diagnose broken compilers, and finding out an intuition
3474 # of exeext.
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3476 $as_echo_n "checking whether the C compiler works... " >&6; }
3477 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3478
3479 # The possible output files:
3480 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3481
3482 ac_rmfiles=
3483 for ac_file in $ac_files
3484 do
3485   case $ac_file in
3486     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3487     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3488   esac
3489 done
3490 rm -f $ac_rmfiles
3491
3492 if { { ac_try="$ac_link_default"
3493 case "(($ac_try" in
3494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495   *) ac_try_echo=$ac_try;;
3496 esac
3497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499   (eval "$ac_link_default") 2>&5
3500   ac_status=$?
3501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502   test $ac_status = 0; }; then :
3503   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3504 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3505 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3506 # so that the user can short-circuit this test for compilers unknown to
3507 # Autoconf.
3508 for ac_file in $ac_files ''
3509 do
3510   test -f "$ac_file" || continue
3511   case $ac_file in
3512     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3513         ;;
3514     [ab].out )
3515         # We found the default executable, but exeext='' is most
3516         # certainly right.
3517         break;;
3518     *.* )
3519         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3520         then :; else
3521            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3522         fi
3523         # We set ac_cv_exeext here because the later test for it is not
3524         # safe: cross compilers may not add the suffix if given an `-o'
3525         # argument, so we may need to know it at that point already.
3526         # Even if this section looks crufty: it has the advantage of
3527         # actually working.
3528         break;;
3529     * )
3530         break;;
3531   esac
3532 done
3533 test "$ac_cv_exeext" = no && ac_cv_exeext=
3534
3535 else
3536   ac_file=''
3537 fi
3538 if test -z "$ac_file"; then :
3539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3541 $as_echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3543
3544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546 as_fn_error 77 "C compiler cannot create executables
3547 See \`config.log' for more details" "$LINENO" 5; }
3548 else
3549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3550 $as_echo "yes" >&6; }
3551 fi
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3553 $as_echo_n "checking for C compiler default output file name... " >&6; }
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3555 $as_echo "$ac_file" >&6; }
3556 ac_exeext=$ac_cv_exeext
3557
3558 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3559 ac_clean_files=$ac_clean_files_save
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3561 $as_echo_n "checking for suffix of executables... " >&6; }
3562 if { { ac_try="$ac_link"
3563 case "(($ac_try" in
3564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565   *) ac_try_echo=$ac_try;;
3566 esac
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 $as_echo "$ac_try_echo"; } >&5
3569   (eval "$ac_link") 2>&5
3570   ac_status=$?
3571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572   test $ac_status = 0; }; then :
3573   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3574 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3575 # work properly (i.e., refer to `conftest.exe'), while it won't with
3576 # `rm'.
3577 for ac_file in conftest.exe conftest conftest.*; do
3578   test -f "$ac_file" || continue
3579   case $ac_file in
3580     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3581     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3582           break;;
3583     * ) break;;
3584   esac
3585 done
3586 else
3587   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3590 See \`config.log' for more details" "$LINENO" 5; }
3591 fi
3592 rm -f conftest conftest$ac_cv_exeext
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3594 $as_echo "$ac_cv_exeext" >&6; }
3595
3596 rm -f conftest.$ac_ext
3597 EXEEXT=$ac_cv_exeext
3598 ac_exeext=$EXEEXT
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h.  */
3601 #include <stdio.h>
3602 int
3603 main ()
3604 {
3605 FILE *f = fopen ("conftest.out", "w");
3606  return ferror (f) || fclose (f) != 0;
3607
3608   ;
3609   return 0;
3610 }
3611 _ACEOF
3612 ac_clean_files="$ac_clean_files conftest.out"
3613 # Check that the compiler produces executables we can run.  If not, either
3614 # the compiler is broken, or we cross compile.
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3616 $as_echo_n "checking whether we are cross compiling... " >&6; }
3617 if test "$cross_compiling" != yes; then
3618   { { ac_try="$ac_link"
3619 case "(($ac_try" in
3620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621   *) ac_try_echo=$ac_try;;
3622 esac
3623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624 $as_echo "$ac_try_echo"; } >&5
3625   (eval "$ac_link") 2>&5
3626   ac_status=$?
3627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628   test $ac_status = 0; }
3629   if { ac_try='./conftest$ac_cv_exeext'
3630   { { case "(($ac_try" in
3631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632   *) ac_try_echo=$ac_try;;
3633 esac
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636   (eval "$ac_try") 2>&5
3637   ac_status=$?
3638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639   test $ac_status = 0; }; }; then
3640     cross_compiling=no
3641   else
3642     if test "$cross_compiling" = maybe; then
3643         cross_compiling=yes
3644     else
3645         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3647 as_fn_error $? "cannot run C compiled programs.
3648 If you meant to cross compile, use \`--host'.
3649 See \`config.log' for more details" "$LINENO" 5; }
3650     fi
3651   fi
3652 fi
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3654 $as_echo "$cross_compiling" >&6; }
3655
3656 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3657 ac_clean_files=$ac_clean_files_save
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3659 $as_echo_n "checking for suffix of object files... " >&6; }
3660 if ${ac_cv_objext+:} false; then :
3661   $as_echo_n "(cached) " >&6
3662 else
3663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h.  */
3665
3666 int
3667 main ()
3668 {
3669
3670   ;
3671   return 0;
3672 }
3673 _ACEOF
3674 rm -f conftest.o conftest.obj
3675 if { { ac_try="$ac_compile"
3676 case "(($ac_try" in
3677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678   *) ac_try_echo=$ac_try;;
3679 esac
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 $as_echo "$ac_try_echo"; } >&5
3682   (eval "$ac_compile") 2>&5
3683   ac_status=$?
3684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685   test $ac_status = 0; }; then :
3686   for ac_file in conftest.o conftest.obj conftest.*; do
3687   test -f "$ac_file" || continue;
3688   case $ac_file in
3689     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3690     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3691        break;;
3692   esac
3693 done
3694 else
3695   $as_echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3697
3698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3700 as_fn_error $? "cannot compute suffix of object files: cannot compile
3701 See \`config.log' for more details" "$LINENO" 5; }
3702 fi
3703 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3704 fi
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3706 $as_echo "$ac_cv_objext" >&6; }
3707 OBJEXT=$ac_cv_objext
3708 ac_objext=$OBJEXT
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3710 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3711 if ${ac_cv_c_compiler_gnu+:} false; then :
3712   $as_echo_n "(cached) " >&6
3713 else
3714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h.  */
3716
3717 int
3718 main ()
3719 {
3720 #ifndef __GNUC__
3721        choke me
3722 #endif
3723
3724   ;
3725   return 0;
3726 }
3727 _ACEOF
3728 if ac_fn_c_try_compile "$LINENO"; then :
3729   ac_compiler_gnu=yes
3730 else
3731   ac_compiler_gnu=no
3732 fi
3733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3735
3736 fi
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3738 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3739 if test $ac_compiler_gnu = yes; then
3740   GCC=yes
3741 else
3742   GCC=
3743 fi
3744 ac_test_CFLAGS=${CFLAGS+set}
3745 ac_save_CFLAGS=$CFLAGS
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3747 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3748 if ${ac_cv_prog_cc_g+:} false; then :
3749   $as_echo_n "(cached) " >&6
3750 else
3751   ac_save_c_werror_flag=$ac_c_werror_flag
3752    ac_c_werror_flag=yes
3753    ac_cv_prog_cc_g=no
3754    CFLAGS="-g"
3755    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h.  */
3757
3758 int
3759 main ()
3760 {
3761
3762   ;
3763   return 0;
3764 }
3765 _ACEOF
3766 if ac_fn_c_try_compile "$LINENO"; then :
3767   ac_cv_prog_cc_g=yes
3768 else
3769   CFLAGS=""
3770       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h.  */
3772
3773 int
3774 main ()
3775 {
3776
3777   ;
3778   return 0;
3779 }
3780 _ACEOF
3781 if ac_fn_c_try_compile "$LINENO"; then :
3782
3783 else
3784   ac_c_werror_flag=$ac_save_c_werror_flag
3785          CFLAGS="-g"
3786          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h.  */
3788
3789 int
3790 main ()
3791 {
3792
3793   ;
3794   return 0;
3795 }
3796 _ACEOF
3797 if ac_fn_c_try_compile "$LINENO"; then :
3798   ac_cv_prog_cc_g=yes
3799 fi
3800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3801 fi
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 fi
3804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805    ac_c_werror_flag=$ac_save_c_werror_flag
3806 fi
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3808 $as_echo "$ac_cv_prog_cc_g" >&6; }
3809 if test "$ac_test_CFLAGS" = set; then
3810   CFLAGS=$ac_save_CFLAGS
3811 elif test $ac_cv_prog_cc_g = yes; then
3812   if test "$GCC" = yes; then
3813     CFLAGS="-g -O2"
3814   else
3815     CFLAGS="-g"
3816   fi
3817 else
3818   if test "$GCC" = yes; then
3819     CFLAGS="-O2"
3820   else
3821     CFLAGS=
3822   fi
3823 fi
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3825 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3826 if ${ac_cv_prog_cc_c89+:} false; then :
3827   $as_echo_n "(cached) " >&6
3828 else
3829   ac_cv_prog_cc_c89=no
3830 ac_save_CC=$CC
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h.  */
3833 #include <stdarg.h>
3834 #include <stdio.h>
3835 struct stat;
3836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3837 struct buf { int x; };
3838 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3839 static char *e (p, i)
3840      char **p;
3841      int i;
3842 {
3843   return p[i];
3844 }
3845 static char *f (char * (*g) (char **, int), char **p, ...)
3846 {
3847   char *s;
3848   va_list v;
3849   va_start (v,p);
3850   s = g (p, va_arg (v,int));
3851   va_end (v);
3852   return s;
3853 }
3854
3855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3856    function prototypes and stuff, but not '\xHH' hex character constants.
3857    These don't provoke an error unfortunately, instead are silently treated
3858    as 'x'.  The following induces an error, until -std is added to get
3859    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3860    array size at least.  It's necessary to write '\x00'==0 to get something
3861    that's true only with -std.  */
3862 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3863
3864 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3865    inside strings and character constants.  */
3866 #define FOO(x) 'x'
3867 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3868
3869 int test (int i, double x);
3870 struct s1 {int (*f) (int a);};
3871 struct s2 {int (*f) (double a);};
3872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3873 int argc;
3874 char **argv;
3875 int
3876 main ()
3877 {
3878 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3879   ;
3880   return 0;
3881 }
3882 _ACEOF
3883 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3884         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3885 do
3886   CC="$ac_save_CC $ac_arg"
3887   if ac_fn_c_try_compile "$LINENO"; then :
3888   ac_cv_prog_cc_c89=$ac_arg
3889 fi
3890 rm -f core conftest.err conftest.$ac_objext
3891   test "x$ac_cv_prog_cc_c89" != "xno" && break
3892 done
3893 rm -f conftest.$ac_ext
3894 CC=$ac_save_CC
3895
3896 fi
3897 # AC_CACHE_VAL
3898 case "x$ac_cv_prog_cc_c89" in
3899   x)
3900     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3901 $as_echo "none needed" >&6; } ;;
3902   xno)
3903     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3904 $as_echo "unsupported" >&6; } ;;
3905   *)
3906     CC="$CC $ac_cv_prog_cc_c89"
3907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3908 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3909 esac
3910 if test "x$ac_cv_prog_cc_c89" != xno; then :
3911
3912 fi
3913
3914 ac_ext=c
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919 DEPDIR="${am__leading_dot}deps"
3920
3921 ac_config_commands="$ac_config_commands depfiles"
3922
3923
3924 am_make=${MAKE-make}
3925 cat > confinc << 'END'
3926 am__doit:
3927         @echo this is the am__doit target
3928 .PHONY: am__doit
3929 END
3930 # If we don't find an include directive, just comment out the code.
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3932 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3933 am__include="#"
3934 am__quote=
3935 _am_result=none
3936 # First try GNU make style include.
3937 echo "include confinc" > confmf
3938 # Ignore all kinds of additional output from `make'.
3939 case `$am_make -s -f confmf 2> /dev/null` in #(
3940 *the\ am__doit\ target*)
3941   am__include=include
3942   am__quote=
3943   _am_result=GNU
3944   ;;
3945 esac
3946 # Now try BSD make style include.
3947 if test "$am__include" = "#"; then
3948    echo '.include "confinc"' > confmf
3949    case `$am_make -s -f confmf 2> /dev/null` in #(
3950    *the\ am__doit\ target*)
3951      am__include=.include
3952      am__quote="\""
3953      _am_result=BSD
3954      ;;
3955    esac
3956 fi
3957
3958
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3960 $as_echo "$_am_result" >&6; }
3961 rm -f confinc confmf
3962
3963 # Check whether --enable-dependency-tracking was given.
3964 if test "${enable_dependency_tracking+set}" = set; then :
3965   enableval=$enable_dependency_tracking;
3966 fi
3967
3968 if test "x$enable_dependency_tracking" != xno; then
3969   am_depcomp="$ac_aux_dir/depcomp"
3970   AMDEPBACKSLASH='\'
3971   am__nodep='_no'
3972 fi
3973  if test "x$enable_dependency_tracking" != xno; then
3974   AMDEP_TRUE=
3975   AMDEP_FALSE='#'
3976 else
3977   AMDEP_TRUE='#'
3978   AMDEP_FALSE=
3979 fi
3980
3981
3982
3983 depcc="$CC"   am_compiler_list=
3984
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3986 $as_echo_n "checking dependency style of $depcc... " >&6; }
3987 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3988   $as_echo_n "(cached) " >&6
3989 else
3990   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3991   # We make a subdir and do the tests there.  Otherwise we can end up
3992   # making bogus files that we don't know about and never remove.  For
3993   # instance it was reported that on HP-UX the gcc test will end up
3994   # making a dummy file named `D' -- because `-MD' means `put the output
3995   # in D'.
3996   rm -rf conftest.dir
3997   mkdir conftest.dir
3998   # Copy depcomp to subdir because otherwise we won't find it if we're
3999   # using a relative directory.
4000   cp "$am_depcomp" conftest.dir
4001   cd conftest.dir
4002   # We will build objects and dependencies in a subdirectory because
4003   # it helps to detect inapplicable dependency modes.  For instance
4004   # both Tru64's cc and ICC support -MD to output dependencies as a
4005   # side effect of compilation, but ICC will put the dependencies in
4006   # the current directory while Tru64 will put them in the object
4007   # directory.
4008   mkdir sub
4009
4010   am_cv_CC_dependencies_compiler_type=none
4011   if test "$am_compiler_list" = ""; then
4012      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4013   fi
4014   am__universal=false
4015   case " $depcc " in #(
4016      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4017      esac
4018
4019   for depmode in $am_compiler_list; do
4020     # Setup a source with many dependencies, because some compilers
4021     # like to wrap large dependency lists on column 80 (with \), and
4022     # we should not choose a depcomp mode which is confused by this.
4023     #
4024     # We need to recreate these files for each test, as the compiler may
4025     # overwrite some of them when testing with obscure command lines.
4026     # This happens at least with the AIX C compiler.
4027     : > sub/conftest.c
4028     for i in 1 2 3 4 5 6; do
4029       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4030       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4031       # Solaris 8's {/usr,}/bin/sh.
4032       touch sub/conftst$i.h
4033     done
4034     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4035
4036     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4037     # mode.  It turns out that the SunPro C++ compiler does not properly
4038     # handle `-M -o', and we need to detect this.  Also, some Intel
4039     # versions had trouble with output in subdirs
4040     am__obj=sub/conftest.${OBJEXT-o}
4041     am__minus_obj="-o $am__obj"
4042     case $depmode in
4043     gcc)
4044       # This depmode causes a compiler race in universal mode.
4045       test "$am__universal" = false || continue
4046       ;;
4047     nosideeffect)
4048       # after this tag, mechanisms are not by side-effect, so they'll
4049       # only be used when explicitly requested
4050       if test "x$enable_dependency_tracking" = xyes; then
4051         continue
4052       else
4053         break
4054       fi
4055       ;;
4056     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4057       # This compiler won't grok `-c -o', but also, the minuso test has
4058       # not run yet.  These depmodes are late enough in the game, and
4059       # so weak that their functioning should not be impacted.
4060       am__obj=conftest.${OBJEXT-o}
4061       am__minus_obj=
4062       ;;
4063     none) break ;;
4064     esac
4065     if depmode=$depmode \
4066        source=sub/conftest.c object=$am__obj \
4067        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4068        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4069          >/dev/null 2>conftest.err &&
4070        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4071        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4072        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4073        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4074       # icc doesn't choke on unknown options, it will just issue warnings
4075       # or remarks (even with -Werror).  So we grep stderr for any message
4076       # that says an option was ignored or not supported.
4077       # When given -MP, icc 7.0 and 7.1 complain thusly:
4078       #   icc: Command line warning: ignoring option '-M'; no argument required
4079       # The diagnosis changed in icc 8.0:
4080       #   icc: Command line remark: option '-MP' not supported
4081       if (grep 'ignoring option' conftest.err ||
4082           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4083         am_cv_CC_dependencies_compiler_type=$depmode
4084         break
4085       fi
4086     fi
4087   done
4088
4089   cd ..
4090   rm -rf conftest.dir
4091 else
4092   am_cv_CC_dependencies_compiler_type=none
4093 fi
4094
4095 fi
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4097 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4098 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4099
4100  if
4101   test "x$enable_dependency_tracking" != xno \
4102   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4103   am__fastdepCC_TRUE=
4104   am__fastdepCC_FALSE='#'
4105 else
4106   am__fastdepCC_TRUE='#'
4107   am__fastdepCC_FALSE=
4108 fi
4109
4110
4111 if test "x$CC" != xcc; then
4112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4113 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4114 else
4115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4116 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4117 fi
4118 set dummy $CC; ac_cc=`$as_echo "$2" |
4119                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4120 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4121   $as_echo_n "(cached) " >&6
4122 else
4123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h.  */
4125
4126 int
4127 main ()
4128 {
4129
4130   ;
4131   return 0;
4132 }
4133 _ACEOF
4134 # Make sure it works both with $CC and with simple cc.
4135 # We do the test twice because some compilers refuse to overwrite an
4136 # existing .o file with -o, though they will create one.
4137 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4138 rm -f conftest2.*
4139 if { { case "(($ac_try" in
4140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141   *) ac_try_echo=$ac_try;;
4142 esac
4143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4144 $as_echo "$ac_try_echo"; } >&5
4145   (eval "$ac_try") 2>&5
4146   ac_status=$?
4147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4148   test $ac_status = 0; } &&
4149    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151   *) ac_try_echo=$ac_try;;
4152 esac
4153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4154 $as_echo "$ac_try_echo"; } >&5
4155   (eval "$ac_try") 2>&5
4156   ac_status=$?
4157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4158   test $ac_status = 0; };
4159 then
4160   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4161   if test "x$CC" != xcc; then
4162     # Test first that cc exists at all.
4163     if { ac_try='cc -c conftest.$ac_ext >&5'
4164   { { case "(($ac_try" in
4165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166   *) ac_try_echo=$ac_try;;
4167 esac
4168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4169 $as_echo "$ac_try_echo"; } >&5
4170   (eval "$ac_try") 2>&5
4171   ac_status=$?
4172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4173   test $ac_status = 0; }; }; then
4174       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4175       rm -f conftest2.*
4176       if { { case "(($ac_try" in
4177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178   *) ac_try_echo=$ac_try;;
4179 esac
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 $as_echo "$ac_try_echo"; } >&5
4182   (eval "$ac_try") 2>&5
4183   ac_status=$?
4184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4185   test $ac_status = 0; } &&
4186          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188   *) ac_try_echo=$ac_try;;
4189 esac
4190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4191 $as_echo "$ac_try_echo"; } >&5
4192   (eval "$ac_try") 2>&5
4193   ac_status=$?
4194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4195   test $ac_status = 0; };
4196       then
4197         # cc works too.
4198         :
4199       else
4200         # cc exists but doesn't like -o.
4201         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4202       fi
4203     fi
4204   fi
4205 else
4206   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4207 fi
4208 rm -f core conftest*
4209
4210 fi
4211 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4213 $as_echo "yes" >&6; }
4214 else
4215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 $as_echo "no" >&6; }
4217
4218 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4219
4220 fi
4221
4222 # FIXME: we rely on the cache variable name because
4223 # there is no other way.
4224 set dummy $CC
4225 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4226 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4227 if test "$am_t" != yes; then
4228    # Losing compiler, so override with the script.
4229    # FIXME: It is wrong to rewrite CC.
4230    # But if we don't then we get into trouble of one sort or another.
4231    # A longer-term fix would be to have automake use am__CC in this case,
4232    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4233    CC="$am_aux_dir/compile $CC"
4234 fi
4235
4236
4237
4238         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fPIE" >&5
4239 $as_echo_n "checking whether ${CC-cc} accepts -fPIE... " >&6; }
4240 if ${ac_cv_prog_cc_pie+:} false; then :
4241   $as_echo_n "(cached) " >&6
4242 else
4243
4244                 echo 'void f(){}' > conftest.c
4245                 if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
4246                         ac_cv_prog_cc_pie=yes
4247                 else
4248                         ac_cv_prog_cc_pie=no
4249                 fi
4250                 rm -rf conftest*
4251
4252 fi
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_pie" >&5
4254 $as_echo "$ac_cv_prog_cc_pie" >&6; }
4255
4256
4257
4258
4259
4260
4261
4262 # Check whether --enable-static was given.
4263 if test "${enable_static+set}" = set; then :
4264   enableval=$enable_static; p=${PACKAGE-default}
4265     case $enableval in
4266     yes) enable_static=yes ;;
4267     no) enable_static=no ;;
4268     *)
4269      enable_static=no
4270       # Look at the argument we got.  We use all the common list separators.
4271       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4272       for pkg in $enableval; do
4273         IFS="$lt_save_ifs"
4274         if test "X$pkg" = "X$p"; then
4275           enable_static=yes
4276         fi
4277       done
4278       IFS="$lt_save_ifs"
4279       ;;
4280     esac
4281 else
4282   enable_static=no
4283 fi
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293 case `pwd` in
4294   *\ * | *\     *)
4295     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4296 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4297 esac
4298
4299
4300
4301 macro_version='2.4.2'
4302 macro_revision='1.3337'
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316 ltmain="$ac_aux_dir/ltmain.sh"
4317
4318 # Make sure we can run config.sub.
4319 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4320   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4321
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4323 $as_echo_n "checking build system type... " >&6; }
4324 if ${ac_cv_build+:} false; then :
4325   $as_echo_n "(cached) " >&6
4326 else
4327   ac_build_alias=$build_alias
4328 test "x$ac_build_alias" = x &&
4329   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4330 test "x$ac_build_alias" = x &&
4331   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4332 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4333   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4334
4335 fi
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4337 $as_echo "$ac_cv_build" >&6; }
4338 case $ac_cv_build in
4339 *-*-*) ;;
4340 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4341 esac
4342 build=$ac_cv_build
4343 ac_save_IFS=$IFS; IFS='-'
4344 set x $ac_cv_build
4345 shift
4346 build_cpu=$1
4347 build_vendor=$2
4348 shift; shift
4349 # Remember, the first character of IFS is used to create $*,
4350 # except with old shells:
4351 build_os=$*
4352 IFS=$ac_save_IFS
4353 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4354
4355
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4357 $as_echo_n "checking host system type... " >&6; }
4358 if ${ac_cv_host+:} false; then :
4359   $as_echo_n "(cached) " >&6
4360 else
4361   if test "x$host_alias" = x; then
4362   ac_cv_host=$ac_cv_build
4363 else
4364   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4365     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4366 fi
4367
4368 fi
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4370 $as_echo "$ac_cv_host" >&6; }
4371 case $ac_cv_host in
4372 *-*-*) ;;
4373 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4374 esac
4375 host=$ac_cv_host
4376 ac_save_IFS=$IFS; IFS='-'
4377 set x $ac_cv_host
4378 shift
4379 host_cpu=$1
4380 host_vendor=$2
4381 shift; shift
4382 # Remember, the first character of IFS is used to create $*,
4383 # except with old shells:
4384 host_os=$*
4385 IFS=$ac_save_IFS
4386 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4387
4388
4389 # Backslashify metacharacters that are still active within
4390 # double-quoted strings.
4391 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4392
4393 # Same as above, but do not quote variable references.
4394 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4395
4396 # Sed substitution to delay expansion of an escaped shell variable in a
4397 # double_quote_subst'ed string.
4398 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4399
4400 # Sed substitution to delay expansion of an escaped single quote.
4401 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4402
4403 # Sed substitution to avoid accidental globbing in evaled expressions
4404 no_glob_subst='s/\*/\\\*/g'
4405
4406 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4407 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4408 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4409
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4411 $as_echo_n "checking how to print strings... " >&6; }
4412 # Test print first, because it will be a builtin if present.
4413 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4414    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4415   ECHO='print -r --'
4416 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4417   ECHO='printf %s\n'
4418 else
4419   # Use this function as a fallback that always works.
4420   func_fallback_echo ()
4421   {
4422     eval 'cat <<_LTECHO_EOF
4423 $1
4424 _LTECHO_EOF'
4425   }
4426   ECHO='func_fallback_echo'
4427 fi
4428
4429 # func_echo_all arg...
4430 # Invoke $ECHO with all args, space-separated.
4431 func_echo_all ()
4432 {
4433     $ECHO ""
4434 }
4435
4436 case "$ECHO" in
4437   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4438 $as_echo "printf" >&6; } ;;
4439   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4440 $as_echo "print -r" >&6; } ;;
4441   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4442 $as_echo "cat" >&6; } ;;
4443 esac
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4459 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4460 if ${ac_cv_path_SED+:} false; then :
4461   $as_echo_n "(cached) " >&6
4462 else
4463             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4464      for ac_i in 1 2 3 4 5 6 7; do
4465        ac_script="$ac_script$as_nl$ac_script"
4466      done
4467      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4468      { ac_script=; unset ac_script;}
4469      if test -z "$SED"; then
4470   ac_path_SED_found=false
4471   # Loop through the user's path and test for each of PROGNAME-LIST
4472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4474 do
4475   IFS=$as_save_IFS
4476   test -z "$as_dir" && as_dir=.
4477     for ac_prog in sed gsed; do
4478     for ac_exec_ext in '' $ac_executable_extensions; do
4479       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4480       as_fn_executable_p "$ac_path_SED" || continue
4481 # Check for GNU ac_path_SED and select it if it is found.
4482   # Check for GNU $ac_path_SED
4483 case `"$ac_path_SED" --version 2>&1` in
4484 *GNU*)
4485   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4486 *)
4487   ac_count=0
4488   $as_echo_n 0123456789 >"conftest.in"
4489   while :
4490   do
4491     cat "conftest.in" "conftest.in" >"conftest.tmp"
4492     mv "conftest.tmp" "conftest.in"
4493     cp "conftest.in" "conftest.nl"
4494     $as_echo '' >> "conftest.nl"
4495     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4496     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4497     as_fn_arith $ac_count + 1 && ac_count=$as_val
4498     if test $ac_count -gt ${ac_path_SED_max-0}; then
4499       # Best one so far, save it but keep looking for a better one
4500       ac_cv_path_SED="$ac_path_SED"
4501       ac_path_SED_max=$ac_count
4502     fi
4503     # 10*(2^10) chars as input seems more than enough
4504     test $ac_count -gt 10 && break
4505   done
4506   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4507 esac
4508
4509       $ac_path_SED_found && break 3
4510     done
4511   done
4512   done
4513 IFS=$as_save_IFS
4514   if test -z "$ac_cv_path_SED"; then
4515     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4516   fi
4517 else
4518   ac_cv_path_SED=$SED
4519 fi
4520
4521 fi
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4523 $as_echo "$ac_cv_path_SED" >&6; }
4524  SED="$ac_cv_path_SED"
4525   rm -f conftest.sed
4526
4527 test -z "$SED" && SED=sed
4528 Xsed="$SED -e 1s/^X//"
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4541 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4542 if ${ac_cv_path_GREP+:} false; then :
4543   $as_echo_n "(cached) " >&6
4544 else
4545   if test -z "$GREP"; then
4546   ac_path_GREP_found=false
4547   # Loop through the user's path and test for each of PROGNAME-LIST
4548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4550 do
4551   IFS=$as_save_IFS
4552   test -z "$as_dir" && as_dir=.
4553     for ac_prog in grep ggrep; do
4554     for ac_exec_ext in '' $ac_executable_extensions; do
4555       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4556       as_fn_executable_p "$ac_path_GREP" || continue
4557 # Check for GNU ac_path_GREP and select it if it is found.
4558   # Check for GNU $ac_path_GREP
4559 case `"$ac_path_GREP" --version 2>&1` in
4560 *GNU*)
4561   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4562 *)
4563   ac_count=0
4564   $as_echo_n 0123456789 >"conftest.in"
4565   while :
4566   do
4567     cat "conftest.in" "conftest.in" >"conftest.tmp"
4568     mv "conftest.tmp" "conftest.in"
4569     cp "conftest.in" "conftest.nl"
4570     $as_echo 'GREP' >> "conftest.nl"
4571     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4572     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4573     as_fn_arith $ac_count + 1 && ac_count=$as_val
4574     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4575       # Best one so far, save it but keep looking for a better one
4576       ac_cv_path_GREP="$ac_path_GREP"
4577       ac_path_GREP_max=$ac_count
4578     fi
4579     # 10*(2^10) chars as input seems more than enough
4580     test $ac_count -gt 10 && break
4581   done
4582   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4583 esac
4584
4585       $ac_path_GREP_found && break 3
4586     done
4587   done
4588   done
4589 IFS=$as_save_IFS
4590   if test -z "$ac_cv_path_GREP"; then
4591     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4592   fi
4593 else
4594   ac_cv_path_GREP=$GREP
4595 fi
4596
4597 fi
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4599 $as_echo "$ac_cv_path_GREP" >&6; }
4600  GREP="$ac_cv_path_GREP"
4601
4602
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4604 $as_echo_n "checking for egrep... " >&6; }
4605 if ${ac_cv_path_EGREP+:} false; then :
4606   $as_echo_n "(cached) " >&6
4607 else
4608   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4609    then ac_cv_path_EGREP="$GREP -E"
4610    else
4611      if test -z "$EGREP"; then
4612   ac_path_EGREP_found=false
4613   # Loop through the user's path and test for each of PROGNAME-LIST
4614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4616 do
4617   IFS=$as_save_IFS
4618   test -z "$as_dir" && as_dir=.
4619     for ac_prog in egrep; do
4620     for ac_exec_ext in '' $ac_executable_extensions; do
4621       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4622       as_fn_executable_p "$ac_path_EGREP" || continue
4623 # Check for GNU ac_path_EGREP and select it if it is found.
4624   # Check for GNU $ac_path_EGREP
4625 case `"$ac_path_EGREP" --version 2>&1` in
4626 *GNU*)
4627   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4628 *)
4629   ac_count=0
4630   $as_echo_n 0123456789 >"conftest.in"
4631   while :
4632   do
4633     cat "conftest.in" "conftest.in" >"conftest.tmp"
4634     mv "conftest.tmp" "conftest.in"
4635     cp "conftest.in" "conftest.nl"
4636     $as_echo 'EGREP' >> "conftest.nl"
4637     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4638     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4639     as_fn_arith $ac_count + 1 && ac_count=$as_val
4640     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4641       # Best one so far, save it but keep looking for a better one
4642       ac_cv_path_EGREP="$ac_path_EGREP"
4643       ac_path_EGREP_max=$ac_count
4644     fi
4645     # 10*(2^10) chars as input seems more than enough
4646     test $ac_count -gt 10 && break
4647   done
4648   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4649 esac
4650
4651       $ac_path_EGREP_found && break 3
4652     done
4653   done
4654   done
4655 IFS=$as_save_IFS
4656   if test -z "$ac_cv_path_EGREP"; then
4657     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4658   fi
4659 else
4660   ac_cv_path_EGREP=$EGREP
4661 fi
4662
4663    fi
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4666 $as_echo "$ac_cv_path_EGREP" >&6; }
4667  EGREP="$ac_cv_path_EGREP"
4668
4669
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4671 $as_echo_n "checking for fgrep... " >&6; }
4672 if ${ac_cv_path_FGREP+:} false; then :
4673   $as_echo_n "(cached) " >&6
4674 else
4675   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4676    then ac_cv_path_FGREP="$GREP -F"
4677    else
4678      if test -z "$FGREP"; then
4679   ac_path_FGREP_found=false
4680   # Loop through the user's path and test for each of PROGNAME-LIST
4681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4683 do
4684   IFS=$as_save_IFS
4685   test -z "$as_dir" && as_dir=.
4686     for ac_prog in fgrep; do
4687     for ac_exec_ext in '' $ac_executable_extensions; do
4688       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4689       as_fn_executable_p "$ac_path_FGREP" || continue
4690 # Check for GNU ac_path_FGREP and select it if it is found.
4691   # Check for GNU $ac_path_FGREP
4692 case `"$ac_path_FGREP" --version 2>&1` in
4693 *GNU*)
4694   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4695 *)
4696   ac_count=0
4697   $as_echo_n 0123456789 >"conftest.in"
4698   while :
4699   do
4700     cat "conftest.in" "conftest.in" >"conftest.tmp"
4701     mv "conftest.tmp" "conftest.in"
4702     cp "conftest.in" "conftest.nl"
4703     $as_echo 'FGREP' >> "conftest.nl"
4704     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4705     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4706     as_fn_arith $ac_count + 1 && ac_count=$as_val
4707     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4708       # Best one so far, save it but keep looking for a better one
4709       ac_cv_path_FGREP="$ac_path_FGREP"
4710       ac_path_FGREP_max=$ac_count
4711     fi
4712     # 10*(2^10) chars as input seems more than enough
4713     test $ac_count -gt 10 && break
4714   done
4715   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4716 esac
4717
4718       $ac_path_FGREP_found && break 3
4719     done
4720   done
4721   done
4722 IFS=$as_save_IFS
4723   if test -z "$ac_cv_path_FGREP"; then
4724     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4725   fi
4726 else
4727   ac_cv_path_FGREP=$FGREP
4728 fi
4729
4730    fi
4731 fi
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4733 $as_echo "$ac_cv_path_FGREP" >&6; }
4734  FGREP="$ac_cv_path_FGREP"
4735
4736
4737 test -z "$GREP" && GREP=grep
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757 # Check whether --with-gnu-ld was given.
4758 if test "${with_gnu_ld+set}" = set; then :
4759   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4760 else
4761   with_gnu_ld=no
4762 fi
4763
4764 ac_prog=ld
4765 if test "$GCC" = yes; then
4766   # Check if gcc -print-prog-name=ld gives a path.
4767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4768 $as_echo_n "checking for ld used by $CC... " >&6; }
4769   case $host in
4770   *-*-mingw*)
4771     # gcc leaves a trailing carriage return which upsets mingw
4772     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4773   *)
4774     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4775   esac
4776   case $ac_prog in
4777     # Accept absolute paths.
4778     [\\/]* | ?:[\\/]*)
4779       re_direlt='/[^/][^/]*/\.\./'
4780       # Canonicalize the pathname of ld
4781       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4782       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4783         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4784       done
4785       test -z "$LD" && LD="$ac_prog"
4786       ;;
4787   "")
4788     # If it fails, then pretend we aren't using GCC.
4789     ac_prog=ld
4790     ;;
4791   *)
4792     # If it is relative, then search for the first ld in PATH.
4793     with_gnu_ld=unknown
4794     ;;
4795   esac
4796 elif test "$with_gnu_ld" = yes; then
4797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4798 $as_echo_n "checking for GNU ld... " >&6; }
4799 else
4800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4801 $as_echo_n "checking for non-GNU ld... " >&6; }
4802 fi
4803 if ${lt_cv_path_LD+:} false; then :
4804   $as_echo_n "(cached) " >&6
4805 else
4806   if test -z "$LD"; then
4807   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4808   for ac_dir in $PATH; do
4809     IFS="$lt_save_ifs"
4810     test -z "$ac_dir" && ac_dir=.
4811     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4812       lt_cv_path_LD="$ac_dir/$ac_prog"
4813       # Check to see if the program is GNU ld.  I'd rather use --version,
4814       # but apparently some variants of GNU ld only accept -v.
4815       # Break only if it was the GNU/non-GNU ld that we prefer.
4816       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4817       *GNU* | *'with BFD'*)
4818         test "$with_gnu_ld" != no && break
4819         ;;
4820       *)
4821         test "$with_gnu_ld" != yes && break
4822         ;;
4823       esac
4824     fi
4825   done
4826   IFS="$lt_save_ifs"
4827 else
4828   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4829 fi
4830 fi
4831
4832 LD="$lt_cv_path_LD"
4833 if test -n "$LD"; then
4834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4835 $as_echo "$LD" >&6; }
4836 else
4837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4839 fi
4840 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4842 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4843 if ${lt_cv_prog_gnu_ld+:} false; then :
4844   $as_echo_n "(cached) " >&6
4845 else
4846   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4847 case `$LD -v 2>&1 </dev/null` in
4848 *GNU* | *'with BFD'*)
4849   lt_cv_prog_gnu_ld=yes
4850   ;;
4851 *)
4852   lt_cv_prog_gnu_ld=no
4853   ;;
4854 esac
4855 fi
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4857 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4858 with_gnu_ld=$lt_cv_prog_gnu_ld
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4869 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4870 if ${lt_cv_path_NM+:} false; then :
4871   $as_echo_n "(cached) " >&6
4872 else
4873   if test -n "$NM"; then
4874   # Let the user override the test.
4875   lt_cv_path_NM="$NM"
4876 else
4877   lt_nm_to_check="${ac_tool_prefix}nm"
4878   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4879     lt_nm_to_check="$lt_nm_to_check nm"
4880   fi
4881   for lt_tmp_nm in $lt_nm_to_check; do
4882     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4883     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4884       IFS="$lt_save_ifs"
4885       test -z "$ac_dir" && ac_dir=.
4886       tmp_nm="$ac_dir/$lt_tmp_nm"
4887       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4888         # Check to see if the nm accepts a BSD-compat flag.
4889         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4890         #   nm: unknown option "B" ignored
4891         # Tru64's nm complains that /dev/null is an invalid object file
4892         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4893         */dev/null* | *'Invalid file or object type'*)
4894           lt_cv_path_NM="$tmp_nm -B"
4895           break
4896           ;;
4897         *)
4898           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4899           */dev/null*)
4900             lt_cv_path_NM="$tmp_nm -p"
4901             break
4902             ;;
4903           *)
4904             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4905             continue # so that we can try to find one that supports BSD flags
4906             ;;
4907           esac
4908           ;;
4909         esac
4910       fi
4911     done
4912     IFS="$lt_save_ifs"
4913   done
4914   : ${lt_cv_path_NM=no}
4915 fi
4916 fi
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4918 $as_echo "$lt_cv_path_NM" >&6; }
4919 if test "$lt_cv_path_NM" != "no"; then
4920   NM="$lt_cv_path_NM"
4921 else
4922   # Didn't find any BSD compatible name lister, look for dumpbin.
4923   if test -n "$DUMPBIN"; then :
4924     # Let the user override the test.
4925   else
4926     if test -n "$ac_tool_prefix"; then
4927   for ac_prog in dumpbin "link -dump"
4928   do
4929     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if ${ac_cv_prog_DUMPBIN+:} false; then :
4934   $as_echo_n "(cached) " >&6
4935 else
4936   if test -n "$DUMPBIN"; then
4937   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4938 else
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4941 do
4942   IFS=$as_save_IFS
4943   test -z "$as_dir" && as_dir=.
4944     for ac_exec_ext in '' $ac_executable_extensions; do
4945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4946     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948     break 2
4949   fi
4950 done
4951   done
4952 IFS=$as_save_IFS
4953
4954 fi
4955 fi
4956 DUMPBIN=$ac_cv_prog_DUMPBIN
4957 if test -n "$DUMPBIN"; then
4958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4959 $as_echo "$DUMPBIN" >&6; }
4960 else
4961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4963 fi
4964
4965
4966     test -n "$DUMPBIN" && break
4967   done
4968 fi
4969 if test -z "$DUMPBIN"; then
4970   ac_ct_DUMPBIN=$DUMPBIN
4971   for ac_prog in dumpbin "link -dump"
4972 do
4973   # Extract the first word of "$ac_prog", so it can be a program name with args.
4974 set dummy $ac_prog; ac_word=$2
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976 $as_echo_n "checking for $ac_word... " >&6; }
4977 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4978   $as_echo_n "(cached) " >&6
4979 else
4980   if test -n "$ac_ct_DUMPBIN"; then
4981   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4982 else
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH
4985 do
4986   IFS=$as_save_IFS
4987   test -z "$as_dir" && as_dir=.
4988     for ac_exec_ext in '' $ac_executable_extensions; do
4989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4990     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992     break 2
4993   fi
4994 done
4995   done
4996 IFS=$as_save_IFS
4997
4998 fi
4999 fi
5000 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5001 if test -n "$ac_ct_DUMPBIN"; then
5002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5003 $as_echo "$ac_ct_DUMPBIN" >&6; }
5004 else
5005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006 $as_echo "no" >&6; }
5007 fi
5008
5009
5010   test -n "$ac_ct_DUMPBIN" && break
5011 done
5012
5013   if test "x$ac_ct_DUMPBIN" = x; then
5014     DUMPBIN=":"
5015   else
5016     case $cross_compiling:$ac_tool_warned in
5017 yes:)
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5020 ac_tool_warned=yes ;;
5021 esac
5022     DUMPBIN=$ac_ct_DUMPBIN
5023   fi
5024 fi
5025
5026     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5027     *COFF*)
5028       DUMPBIN="$DUMPBIN -symbols"
5029       ;;
5030     *)
5031       DUMPBIN=:
5032       ;;
5033     esac
5034   fi
5035
5036   if test "$DUMPBIN" != ":"; then
5037     NM="$DUMPBIN"
5038   fi
5039 fi
5040 test -z "$NM" && NM=nm
5041
5042
5043
5044
5045
5046
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5048 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5049 if ${lt_cv_nm_interface+:} false; then :
5050   $as_echo_n "(cached) " >&6
5051 else
5052   lt_cv_nm_interface="BSD nm"
5053   echo "int some_variable = 0;" > conftest.$ac_ext
5054   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5055   (eval "$ac_compile" 2>conftest.err)
5056   cat conftest.err >&5
5057   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5058   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5059   cat conftest.err >&5
5060   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5061   cat conftest.out >&5
5062   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5063     lt_cv_nm_interface="MS dumpbin"
5064   fi
5065   rm -f conftest*
5066 fi
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5068 $as_echo "$lt_cv_nm_interface" >&6; }
5069
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5071 $as_echo_n "checking whether ln -s works... " >&6; }
5072 LN_S=$as_ln_s
5073 if test "$LN_S" = "ln -s"; then
5074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5075 $as_echo "yes" >&6; }
5076 else
5077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5078 $as_echo "no, using $LN_S" >&6; }
5079 fi
5080
5081 # find the maximum length of command line arguments
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5083 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5084 if ${lt_cv_sys_max_cmd_len+:} false; then :
5085   $as_echo_n "(cached) " >&6
5086 else
5087     i=0
5088   teststring="ABCD"
5089
5090   case $build_os in
5091   msdosdjgpp*)
5092     # On DJGPP, this test can blow up pretty badly due to problems in libc
5093     # (any single argument exceeding 2000 bytes causes a buffer overrun
5094     # during glob expansion).  Even if it were fixed, the result of this
5095     # check would be larger than it should be.
5096     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5097     ;;
5098
5099   gnu*)
5100     # Under GNU Hurd, this test is not required because there is
5101     # no limit to the length of command line arguments.
5102     # Libtool will interpret -1 as no limit whatsoever
5103     lt_cv_sys_max_cmd_len=-1;
5104     ;;
5105
5106   cygwin* | mingw* | cegcc*)
5107     # On Win9x/ME, this test blows up -- it succeeds, but takes
5108     # about 5 minutes as the teststring grows exponentially.
5109     # Worse, since 9x/ME are not pre-emptively multitasking,
5110     # you end up with a "frozen" computer, even though with patience
5111     # the test eventually succeeds (with a max line length of 256k).
5112     # Instead, let's just punt: use the minimum linelength reported by
5113     # all of the supported platforms: 8192 (on NT/2K/XP).
5114     lt_cv_sys_max_cmd_len=8192;
5115     ;;
5116
5117   mint*)
5118     # On MiNT this can take a long time and run out of memory.
5119     lt_cv_sys_max_cmd_len=8192;
5120     ;;
5121
5122   amigaos*)
5123     # On AmigaOS with pdksh, this test takes hours, literally.
5124     # So we just punt and use a minimum line length of 8192.
5125     lt_cv_sys_max_cmd_len=8192;
5126     ;;
5127
5128   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5129     # This has been around since 386BSD, at least.  Likely further.
5130     if test -x /sbin/sysctl; then
5131       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5132     elif test -x /usr/sbin/sysctl; then
5133       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5134     else
5135       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5136     fi
5137     # And add a safety zone
5138     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5139     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5140     ;;
5141
5142   interix*)
5143     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5144     lt_cv_sys_max_cmd_len=196608
5145     ;;
5146
5147   os2*)
5148     # The test takes a long time on OS/2.
5149     lt_cv_sys_max_cmd_len=8192
5150     ;;
5151
5152   osf*)
5153     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5154     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5155     # nice to cause kernel panics so lets avoid the loop below.
5156     # First set a reasonable default.
5157     lt_cv_sys_max_cmd_len=16384
5158     #
5159     if test -x /sbin/sysconfig; then
5160       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5161         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5162       esac
5163     fi
5164     ;;
5165   sco3.2v5*)
5166     lt_cv_sys_max_cmd_len=102400
5167     ;;
5168   sysv5* | sco5v6* | sysv4.2uw2*)
5169     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5170     if test -n "$kargmax"; then
5171       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5172     else
5173       lt_cv_sys_max_cmd_len=32768
5174     fi
5175     ;;
5176   *)
5177     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5178     if test -n "$lt_cv_sys_max_cmd_len"; then
5179       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5180       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5181     else
5182       # Make teststring a little bigger before we do anything with it.
5183       # a 1K string should be a reasonable start.
5184       for i in 1 2 3 4 5 6 7 8 ; do
5185         teststring=$teststring$teststring
5186       done
5187       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5188       # If test is not a shell built-in, we'll probably end up computing a
5189       # maximum length that is only half of the actual maximum length, but
5190       # we can't tell.
5191       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5192                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5193               test $i != 17 # 1/2 MB should be enough
5194       do
5195         i=`expr $i + 1`
5196         teststring=$teststring$teststring
5197       done
5198       # Only check the string length outside the loop.
5199       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5200       teststring=
5201       # Add a significant safety factor because C++ compilers can tack on
5202       # massive amounts of additional arguments before passing them to the
5203       # linker.  It appears as though 1/2 is a usable value.
5204       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5205     fi
5206     ;;
5207   esac
5208
5209 fi
5210
5211 if test -n $lt_cv_sys_max_cmd_len ; then
5212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5213 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5214 else
5215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5216 $as_echo "none" >&6; }
5217 fi
5218 max_cmd_len=$lt_cv_sys_max_cmd_len
5219
5220
5221
5222
5223
5224
5225 : ${CP="cp -f"}
5226 : ${MV="mv -f"}
5227 : ${RM="rm -f"}
5228
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5230 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5231 # Try some XSI features
5232 xsi_shell=no
5233 ( _lt_dummy="a/b/c"
5234   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5235       = c,a/b,b/c, \
5236     && eval 'test $(( 1 + 1 )) -eq 2 \
5237     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5238   && xsi_shell=yes
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5240 $as_echo "$xsi_shell" >&6; }
5241
5242
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5244 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5245 lt_shell_append=no
5246 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5247     >/dev/null 2>&1 \
5248   && lt_shell_append=yes
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5250 $as_echo "$lt_shell_append" >&6; }
5251
5252
5253 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5254   lt_unset=unset
5255 else
5256   lt_unset=false
5257 fi
5258
5259
5260
5261
5262
5263 # test EBCDIC or ASCII
5264 case `echo X|tr X '\101'` in
5265  A) # ASCII based system
5266     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5267   lt_SP2NL='tr \040 \012'
5268   lt_NL2SP='tr \015\012 \040\040'
5269   ;;
5270  *) # EBCDIC based system
5271   lt_SP2NL='tr \100 \n'
5272   lt_NL2SP='tr \r\n \100\100'
5273   ;;
5274 esac
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5285 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5286 if ${lt_cv_to_host_file_cmd+:} false; then :
5287   $as_echo_n "(cached) " >&6
5288 else
5289   case $host in
5290   *-*-mingw* )
5291     case $build in
5292       *-*-mingw* ) # actually msys
5293         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5294         ;;
5295       *-*-cygwin* )
5296         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5297         ;;
5298       * ) # otherwise, assume *nix
5299         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5300         ;;
5301     esac
5302     ;;
5303   *-*-cygwin* )
5304     case $build in
5305       *-*-mingw* ) # actually msys
5306         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5307         ;;
5308       *-*-cygwin* )
5309         lt_cv_to_host_file_cmd=func_convert_file_noop
5310         ;;
5311       * ) # otherwise, assume *nix
5312         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5313         ;;
5314     esac
5315     ;;
5316   * ) # unhandled hosts (and "normal" native builds)
5317     lt_cv_to_host_file_cmd=func_convert_file_noop
5318     ;;
5319 esac
5320
5321 fi
5322
5323 to_host_file_cmd=$lt_cv_to_host_file_cmd
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5325 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5326
5327
5328
5329
5330
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5332 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5333 if ${lt_cv_to_tool_file_cmd+:} false; then :
5334   $as_echo_n "(cached) " >&6
5335 else
5336   #assume ordinary cross tools, or native build.
5337 lt_cv_to_tool_file_cmd=func_convert_file_noop
5338 case $host in
5339   *-*-mingw* )
5340     case $build in
5341       *-*-mingw* ) # actually msys
5342         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5343         ;;
5344     esac
5345     ;;
5346 esac
5347
5348 fi
5349
5350 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5352 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5353
5354
5355
5356
5357
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5359 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5360 if ${lt_cv_ld_reload_flag+:} false; then :
5361   $as_echo_n "(cached) " >&6
5362 else
5363   lt_cv_ld_reload_flag='-r'
5364 fi
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5366 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5367 reload_flag=$lt_cv_ld_reload_flag
5368 case $reload_flag in
5369 "" | " "*) ;;
5370 *) reload_flag=" $reload_flag" ;;
5371 esac
5372 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5373 case $host_os in
5374   cygwin* | mingw* | pw32* | cegcc*)
5375     if test "$GCC" != yes; then
5376       reload_cmds=false
5377     fi
5378     ;;
5379   darwin*)
5380     if test "$GCC" = yes; then
5381       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5382     else
5383       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5384     fi
5385     ;;
5386 esac
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396 if test -n "$ac_tool_prefix"; then
5397   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5398 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if ${ac_cv_prog_OBJDUMP+:} false; then :
5402   $as_echo_n "(cached) " >&6
5403 else
5404   if test -n "$OBJDUMP"; then
5405   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5409 do
5410   IFS=$as_save_IFS
5411   test -z "$as_dir" && as_dir=.
5412     for ac_exec_ext in '' $ac_executable_extensions; do
5413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5414     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416     break 2
5417   fi
5418 done
5419   done
5420 IFS=$as_save_IFS
5421
5422 fi
5423 fi
5424 OBJDUMP=$ac_cv_prog_OBJDUMP
5425 if test -n "$OBJDUMP"; then
5426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5427 $as_echo "$OBJDUMP" >&6; }
5428 else
5429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }
5431 fi
5432
5433
5434 fi
5435 if test -z "$ac_cv_prog_OBJDUMP"; then
5436   ac_ct_OBJDUMP=$OBJDUMP
5437   # Extract the first word of "objdump", so it can be a program name with args.
5438 set dummy objdump; ac_word=$2
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440 $as_echo_n "checking for $ac_word... " >&6; }
5441 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5442   $as_echo_n "(cached) " >&6
5443 else
5444   if test -n "$ac_ct_OBJDUMP"; then
5445   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5446 else
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5449 do
5450   IFS=$as_save_IFS
5451   test -z "$as_dir" && as_dir=.
5452     for ac_exec_ext in '' $ac_executable_extensions; do
5453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456     break 2
5457   fi
5458 done
5459   done
5460 IFS=$as_save_IFS
5461
5462 fi
5463 fi
5464 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5465 if test -n "$ac_ct_OBJDUMP"; then
5466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5467 $as_echo "$ac_ct_OBJDUMP" >&6; }
5468 else
5469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5471 fi
5472
5473   if test "x$ac_ct_OBJDUMP" = x; then
5474     OBJDUMP="false"
5475   else
5476     case $cross_compiling:$ac_tool_warned in
5477 yes:)
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5480 ac_tool_warned=yes ;;
5481 esac
5482     OBJDUMP=$ac_ct_OBJDUMP
5483   fi
5484 else
5485   OBJDUMP="$ac_cv_prog_OBJDUMP"
5486 fi
5487
5488 test -z "$OBJDUMP" && OBJDUMP=objdump
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5499 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5500 if ${lt_cv_deplibs_check_method+:} false; then :
5501   $as_echo_n "(cached) " >&6
5502 else
5503   lt_cv_file_magic_cmd='$MAGIC_CMD'
5504 lt_cv_file_magic_test_file=
5505 lt_cv_deplibs_check_method='unknown'
5506 # Need to set the preceding variable on all platforms that support
5507 # interlibrary dependencies.
5508 # 'none' -- dependencies not supported.
5509 # `unknown' -- same as none, but documents that we really don't know.
5510 # 'pass_all' -- all dependencies passed with no checks.
5511 # 'test_compile' -- check by making test program.
5512 # 'file_magic [[regex]]' -- check by looking for files in library path
5513 # which responds to the $file_magic_cmd with a given extended regex.
5514 # If you have `file' or equivalent on your system and you're not sure
5515 # whether `pass_all' will *always* work, you probably want this one.
5516
5517 case $host_os in
5518 aix[4-9]*)
5519   lt_cv_deplibs_check_method=pass_all
5520   ;;
5521
5522 beos*)
5523   lt_cv_deplibs_check_method=pass_all
5524   ;;
5525
5526 bsdi[45]*)
5527   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5528   lt_cv_file_magic_cmd='/usr/bin/file -L'
5529   lt_cv_file_magic_test_file=/shlib/libc.so
5530   ;;
5531
5532 cygwin*)
5533   # func_win32_libid is a shell function defined in ltmain.sh
5534   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5535   lt_cv_file_magic_cmd='func_win32_libid'
5536   ;;
5537
5538 mingw* | pw32*)
5539   # Base MSYS/MinGW do not provide the 'file' command needed by
5540   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5541   # unless we find 'file', for example because we are cross-compiling.
5542   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5543   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5544     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5545     lt_cv_file_magic_cmd='func_win32_libid'
5546   else
5547     # Keep this pattern in sync with the one in func_win32_libid.
5548     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5549     lt_cv_file_magic_cmd='$OBJDUMP -f'
5550   fi
5551   ;;
5552
5553 cegcc*)
5554   # use the weaker test based on 'objdump'. See mingw*.
5555   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5556   lt_cv_file_magic_cmd='$OBJDUMP -f'
5557   ;;
5558
5559 darwin* | rhapsody*)
5560   lt_cv_deplibs_check_method=pass_all
5561   ;;
5562
5563 freebsd* | dragonfly*)
5564   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5565     case $host_cpu in
5566     i*86 )
5567       # Not sure whether the presence of OpenBSD here was a mistake.
5568       # Let's accept both of them until this is cleared up.
5569       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5570       lt_cv_file_magic_cmd=/usr/bin/file
5571       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5572       ;;
5573     esac
5574   else
5575     lt_cv_deplibs_check_method=pass_all
5576   fi
5577   ;;
5578
5579 haiku*)
5580   lt_cv_deplibs_check_method=pass_all
5581   ;;
5582
5583 hpux10.20* | hpux11*)
5584   lt_cv_file_magic_cmd=/usr/bin/file
5585   case $host_cpu in
5586   ia64*)
5587     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5588     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5589     ;;
5590   hppa*64*)
5591     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]'
5592     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5593     ;;
5594   *)
5595     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5596     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5597     ;;
5598   esac
5599   ;;
5600
5601 interix[3-9]*)
5602   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5603   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5604   ;;
5605
5606 irix5* | irix6* | nonstopux*)
5607   case $LD in
5608   *-32|*"-32 ") libmagic=32-bit;;
5609   *-n32|*"-n32 ") libmagic=N32;;
5610   *-64|*"-64 ") libmagic=64-bit;;
5611   *) libmagic=never-match;;
5612   esac
5613   lt_cv_deplibs_check_method=pass_all
5614   ;;
5615
5616 # This must be glibc/ELF.
5617 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5618   lt_cv_deplibs_check_method=pass_all
5619   ;;
5620
5621 netbsd* | netbsdelf*-gnu)
5622   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5623     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5624   else
5625     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5626   fi
5627   ;;
5628
5629 newos6*)
5630   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5631   lt_cv_file_magic_cmd=/usr/bin/file
5632   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5633   ;;
5634
5635 *nto* | *qnx*)
5636   lt_cv_deplibs_check_method=pass_all
5637   ;;
5638
5639 openbsd*)
5640   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5641     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5642   else
5643     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5644   fi
5645   ;;
5646
5647 osf3* | osf4* | osf5*)
5648   lt_cv_deplibs_check_method=pass_all
5649   ;;
5650
5651 rdos*)
5652   lt_cv_deplibs_check_method=pass_all
5653   ;;
5654
5655 solaris*)
5656   lt_cv_deplibs_check_method=pass_all
5657   ;;
5658
5659 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5660   lt_cv_deplibs_check_method=pass_all
5661   ;;
5662
5663 sysv4 | sysv4.3*)
5664   case $host_vendor in
5665   motorola)
5666     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]'
5667     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5668     ;;
5669   ncr)
5670     lt_cv_deplibs_check_method=pass_all
5671     ;;
5672   sequent)
5673     lt_cv_file_magic_cmd='/bin/file'
5674     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5675     ;;
5676   sni)
5677     lt_cv_file_magic_cmd='/bin/file'
5678     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5679     lt_cv_file_magic_test_file=/lib/libc.so
5680     ;;
5681   siemens)
5682     lt_cv_deplibs_check_method=pass_all
5683     ;;
5684   pc)
5685     lt_cv_deplibs_check_method=pass_all
5686     ;;
5687   esac
5688   ;;
5689
5690 tpf*)
5691   lt_cv_deplibs_check_method=pass_all
5692   ;;
5693 esac
5694
5695 fi
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5697 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5698
5699 file_magic_glob=
5700 want_nocaseglob=no
5701 if test "$build" = "$host"; then
5702   case $host_os in
5703   mingw* | pw32*)
5704     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5705       want_nocaseglob=yes
5706     else
5707       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5708     fi
5709     ;;
5710   esac
5711 fi
5712
5713 file_magic_cmd=$lt_cv_file_magic_cmd
5714 deplibs_check_method=$lt_cv_deplibs_check_method
5715 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738 if test -n "$ac_tool_prefix"; then
5739   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5740 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_DLLTOOL+:} false; then :
5744   $as_echo_n "(cached) " >&6
5745 else
5746   if test -n "$DLLTOOL"; then
5747   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5748 else
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5751 do
5752   IFS=$as_save_IFS
5753   test -z "$as_dir" && as_dir=.
5754     for ac_exec_ext in '' $ac_executable_extensions; do
5755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758     break 2
5759   fi
5760 done
5761   done
5762 IFS=$as_save_IFS
5763
5764 fi
5765 fi
5766 DLLTOOL=$ac_cv_prog_DLLTOOL
5767 if test -n "$DLLTOOL"; then
5768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5769 $as_echo "$DLLTOOL" >&6; }
5770 else
5771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5773 fi
5774
5775
5776 fi
5777 if test -z "$ac_cv_prog_DLLTOOL"; then
5778   ac_ct_DLLTOOL=$DLLTOOL
5779   # Extract the first word of "dlltool", so it can be a program name with args.
5780 set dummy dlltool; ac_word=$2
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5782 $as_echo_n "checking for $ac_word... " >&6; }
5783 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5784   $as_echo_n "(cached) " >&6
5785 else
5786   if test -n "$ac_ct_DLLTOOL"; then
5787   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5788 else
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 for as_dir in $PATH
5791 do
5792   IFS=$as_save_IFS
5793   test -z "$as_dir" && as_dir=.
5794     for ac_exec_ext in '' $ac_executable_extensions; do
5795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5796     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5798     break 2
5799   fi
5800 done
5801   done
5802 IFS=$as_save_IFS
5803
5804 fi
5805 fi
5806 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5807 if test -n "$ac_ct_DLLTOOL"; then
5808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5809 $as_echo "$ac_ct_DLLTOOL" >&6; }
5810 else
5811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812 $as_echo "no" >&6; }
5813 fi
5814
5815   if test "x$ac_ct_DLLTOOL" = x; then
5816     DLLTOOL="false"
5817   else
5818     case $cross_compiling:$ac_tool_warned in
5819 yes:)
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5822 ac_tool_warned=yes ;;
5823 esac
5824     DLLTOOL=$ac_ct_DLLTOOL
5825   fi
5826 else
5827   DLLTOOL="$ac_cv_prog_DLLTOOL"
5828 fi
5829
5830 test -z "$DLLTOOL" && DLLTOOL=dlltool
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5842 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5843 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5844   $as_echo_n "(cached) " >&6
5845 else
5846   lt_cv_sharedlib_from_linklib_cmd='unknown'
5847
5848 case $host_os in
5849 cygwin* | mingw* | pw32* | cegcc*)
5850   # two different shell functions defined in ltmain.sh
5851   # decide which to use based on capabilities of $DLLTOOL
5852   case `$DLLTOOL --help 2>&1` in
5853   *--identify-strict*)
5854     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5855     ;;
5856   *)
5857     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5858     ;;
5859   esac
5860   ;;
5861 *)
5862   # fallback: assume linklib IS sharedlib
5863   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5864   ;;
5865 esac
5866
5867 fi
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5869 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5870 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5871 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5872
5873
5874
5875
5876
5877
5878
5879
5880 if test -n "$ac_tool_prefix"; then
5881   for ac_prog in ar
5882   do
5883     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if ${ac_cv_prog_AR+:} false; then :
5888   $as_echo_n "(cached) " >&6
5889 else
5890   if test -n "$AR"; then
5891   ac_cv_prog_AR="$AR" # Let the user override the test.
5892 else
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5895 do
5896   IFS=$as_save_IFS
5897   test -z "$as_dir" && as_dir=.
5898     for ac_exec_ext in '' $ac_executable_extensions; do
5899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5900     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5902     break 2
5903   fi
5904 done
5905   done
5906 IFS=$as_save_IFS
5907
5908 fi
5909 fi
5910 AR=$ac_cv_prog_AR
5911 if test -n "$AR"; then
5912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5913 $as_echo "$AR" >&6; }
5914 else
5915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5917 fi
5918
5919
5920     test -n "$AR" && break
5921   done
5922 fi
5923 if test -z "$AR"; then
5924   ac_ct_AR=$AR
5925   for ac_prog in ar
5926 do
5927   # Extract the first word of "$ac_prog", so it can be a program name with args.
5928 set dummy $ac_prog; ac_word=$2
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 $as_echo_n "checking for $ac_word... " >&6; }
5931 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5932   $as_echo_n "(cached) " >&6
5933 else
5934   if test -n "$ac_ct_AR"; then
5935   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940   IFS=$as_save_IFS
5941   test -z "$as_dir" && as_dir=.
5942     for ac_exec_ext in '' $ac_executable_extensions; do
5943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944     ac_cv_prog_ac_ct_AR="$ac_prog"
5945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946     break 2
5947   fi
5948 done
5949   done
5950 IFS=$as_save_IFS
5951
5952 fi
5953 fi
5954 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5955 if test -n "$ac_ct_AR"; then
5956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5957 $as_echo "$ac_ct_AR" >&6; }
5958 else
5959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5961 fi
5962
5963
5964   test -n "$ac_ct_AR" && break
5965 done
5966
5967   if test "x$ac_ct_AR" = x; then
5968     AR="false"
5969   else
5970     case $cross_compiling:$ac_tool_warned in
5971 yes:)
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5974 ac_tool_warned=yes ;;
5975 esac
5976     AR=$ac_ct_AR
5977   fi
5978 fi
5979
5980 : ${AR=ar}
5981 : ${AR_FLAGS=cru}
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5994 $as_echo_n "checking for archiver @FILE support... " >&6; }
5995 if ${lt_cv_ar_at_file+:} false; then :
5996   $as_echo_n "(cached) " >&6
5997 else
5998   lt_cv_ar_at_file=no
5999    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h.  */
6001
6002 int
6003 main ()
6004 {
6005
6006   ;
6007   return 0;
6008 }
6009 _ACEOF
6010 if ac_fn_c_try_compile "$LINENO"; then :
6011   echo conftest.$ac_objext > conftest.lst
6012       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6013       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6014   (eval $lt_ar_try) 2>&5
6015   ac_status=$?
6016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6017   test $ac_status = 0; }
6018       if test "$ac_status" -eq 0; then
6019         # Ensure the archiver fails upon bogus file names.
6020         rm -f conftest.$ac_objext libconftest.a
6021         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6022   (eval $lt_ar_try) 2>&5
6023   ac_status=$?
6024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6025   test $ac_status = 0; }
6026         if test "$ac_status" -ne 0; then
6027           lt_cv_ar_at_file=@
6028         fi
6029       fi
6030       rm -f conftest.* libconftest.a
6031
6032 fi
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034
6035 fi
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6037 $as_echo "$lt_cv_ar_at_file" >&6; }
6038
6039 if test "x$lt_cv_ar_at_file" = xno; then
6040   archiver_list_spec=
6041 else
6042   archiver_list_spec=$lt_cv_ar_at_file
6043 fi
6044
6045
6046
6047
6048
6049
6050
6051 if test -n "$ac_tool_prefix"; then
6052   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6053 set dummy ${ac_tool_prefix}strip; ac_word=$2
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if ${ac_cv_prog_STRIP+:} false; then :
6057   $as_echo_n "(cached) " >&6
6058 else
6059   if test -n "$STRIP"; then
6060   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6061 else
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6064 do
6065   IFS=$as_save_IFS
6066   test -z "$as_dir" && as_dir=.
6067     for ac_exec_ext in '' $ac_executable_extensions; do
6068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6069     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6071     break 2
6072   fi
6073 done
6074   done
6075 IFS=$as_save_IFS
6076
6077 fi
6078 fi
6079 STRIP=$ac_cv_prog_STRIP
6080 if test -n "$STRIP"; then
6081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6082 $as_echo "$STRIP" >&6; }
6083 else
6084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6086 fi
6087
6088
6089 fi
6090 if test -z "$ac_cv_prog_STRIP"; then
6091   ac_ct_STRIP=$STRIP
6092   # Extract the first word of "strip", so it can be a program name with args.
6093 set dummy strip; ac_word=$2
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6095 $as_echo_n "checking for $ac_word... " >&6; }
6096 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6097   $as_echo_n "(cached) " >&6
6098 else
6099   if test -n "$ac_ct_STRIP"; then
6100   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6101 else
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 for as_dir in $PATH
6104 do
6105   IFS=$as_save_IFS
6106   test -z "$as_dir" && as_dir=.
6107     for ac_exec_ext in '' $ac_executable_extensions; do
6108   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6109     ac_cv_prog_ac_ct_STRIP="strip"
6110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6111     break 2
6112   fi
6113 done
6114   done
6115 IFS=$as_save_IFS
6116
6117 fi
6118 fi
6119 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6120 if test -n "$ac_ct_STRIP"; then
6121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6122 $as_echo "$ac_ct_STRIP" >&6; }
6123 else
6124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125 $as_echo "no" >&6; }
6126 fi
6127
6128   if test "x$ac_ct_STRIP" = x; then
6129     STRIP=":"
6130   else
6131     case $cross_compiling:$ac_tool_warned in
6132 yes:)
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6135 ac_tool_warned=yes ;;
6136 esac
6137     STRIP=$ac_ct_STRIP
6138   fi
6139 else
6140   STRIP="$ac_cv_prog_STRIP"
6141 fi
6142
6143 test -z "$STRIP" && STRIP=:
6144
6145
6146
6147
6148
6149
6150 if test -n "$ac_tool_prefix"; then
6151   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6152 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
6155 if ${ac_cv_prog_RANLIB+:} false; then :
6156   $as_echo_n "(cached) " >&6
6157 else
6158   if test -n "$RANLIB"; then
6159   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164   IFS=$as_save_IFS
6165   test -z "$as_dir" && as_dir=.
6166     for ac_exec_ext in '' $ac_executable_extensions; do
6167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170     break 2
6171   fi
6172 done
6173   done
6174 IFS=$as_save_IFS
6175
6176 fi
6177 fi
6178 RANLIB=$ac_cv_prog_RANLIB
6179 if test -n "$RANLIB"; then
6180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6181 $as_echo "$RANLIB" >&6; }
6182 else
6183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184 $as_echo "no" >&6; }
6185 fi
6186
6187
6188 fi
6189 if test -z "$ac_cv_prog_RANLIB"; then
6190   ac_ct_RANLIB=$RANLIB
6191   # Extract the first word of "ranlib", so it can be a program name with args.
6192 set dummy ranlib; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6196   $as_echo_n "(cached) " >&6
6197 else
6198   if test -n "$ac_ct_RANLIB"; then
6199   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6200 else
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204   IFS=$as_save_IFS
6205   test -z "$as_dir" && as_dir=.
6206     for ac_exec_ext in '' $ac_executable_extensions; do
6207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6208     ac_cv_prog_ac_ct_RANLIB="ranlib"
6209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210     break 2
6211   fi
6212 done
6213   done
6214 IFS=$as_save_IFS
6215
6216 fi
6217 fi
6218 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6219 if test -n "$ac_ct_RANLIB"; then
6220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6221 $as_echo "$ac_ct_RANLIB" >&6; }
6222 else
6223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6225 fi
6226
6227   if test "x$ac_ct_RANLIB" = x; then
6228     RANLIB=":"
6229   else
6230     case $cross_compiling:$ac_tool_warned in
6231 yes:)
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6234 ac_tool_warned=yes ;;
6235 esac
6236     RANLIB=$ac_ct_RANLIB
6237   fi
6238 else
6239   RANLIB="$ac_cv_prog_RANLIB"
6240 fi
6241
6242 test -z "$RANLIB" && RANLIB=:
6243
6244
6245
6246
6247
6248
6249 # Determine commands to create old-style static archives.
6250 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6251 old_postinstall_cmds='chmod 644 $oldlib'
6252 old_postuninstall_cmds=
6253
6254 if test -n "$RANLIB"; then
6255   case $host_os in
6256   openbsd*)
6257     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6258     ;;
6259   *)
6260     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6261     ;;
6262   esac
6263   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6264 fi
6265
6266 case $host_os in
6267   darwin*)
6268     lock_old_archive_extraction=yes ;;
6269   *)
6270     lock_old_archive_extraction=no ;;
6271 esac
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311 # If no C compiler was specified, use CC.
6312 LTCC=${LTCC-"$CC"}
6313
6314 # If no C compiler flags were specified, use CFLAGS.
6315 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6316
6317 # Allow CC to be a program name with arguments.
6318 compiler=$CC
6319
6320
6321 # Check for command to grab the raw symbol name followed by C symbol from nm.
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6323 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6324 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6325   $as_echo_n "(cached) " >&6
6326 else
6327
6328 # These are sane defaults that work on at least a few old systems.
6329 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6330
6331 # Character class describing NM global symbol codes.
6332 symcode='[BCDEGRST]'
6333
6334 # Regexp to match symbols that can be accessed directly from C.
6335 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6336
6337 # Define system-specific variables.
6338 case $host_os in
6339 aix*)
6340   symcode='[BCDT]'
6341   ;;
6342 cygwin* | mingw* | pw32* | cegcc*)
6343   symcode='[ABCDGISTW]'
6344   ;;
6345 hpux*)
6346   if test "$host_cpu" = ia64; then
6347     symcode='[ABCDEGRST]'
6348   fi
6349   ;;
6350 irix* | nonstopux*)
6351   symcode='[BCDEGRST]'
6352   ;;
6353 osf*)
6354   symcode='[BCDEGQRST]'
6355   ;;
6356 solaris*)
6357   symcode='[BDRT]'
6358   ;;
6359 sco3.2v5*)
6360   symcode='[DT]'
6361   ;;
6362 sysv4.2uw2*)
6363   symcode='[DT]'
6364   ;;
6365 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6366   symcode='[ABDT]'
6367   ;;
6368 sysv4)
6369   symcode='[DFNSTU]'
6370   ;;
6371 esac
6372
6373 # If we're using GNU nm, then use its standard symbol codes.
6374 case `$NM -V 2>&1` in
6375 *GNU* | *'with BFD'*)
6376   symcode='[ABCDGIRSTW]' ;;
6377 esac
6378
6379 # Transform an extracted symbol line into a proper C declaration.
6380 # Some systems (esp. on ia64) link data and code symbols differently,
6381 # so use this general approach.
6382 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6383
6384 # Transform an extracted symbol line into symbol name and symbol address
6385 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6386 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'"
6387
6388 # Handle CRLF in mingw tool chain
6389 opt_cr=
6390 case $build_os in
6391 mingw*)
6392   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6393   ;;
6394 esac
6395
6396 # Try without a prefix underscore, then with it.
6397 for ac_symprfx in "" "_"; do
6398
6399   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6400   symxfrm="\\1 $ac_symprfx\\2 \\2"
6401
6402   # Write the raw and C identifiers.
6403   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6404     # Fake it for dumpbin and say T for any non-static function
6405     # and D for any global variable.
6406     # Also find C++ and __fastcall symbols from MSVC++,
6407     # which start with @ or ?.
6408     lt_cv_sys_global_symbol_pipe="$AWK '"\
6409 "     {last_section=section; section=\$ 3};"\
6410 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6411 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6412 "     \$ 0!~/External *\|/{next};"\
6413 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6414 "     {if(hide[section]) next};"\
6415 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6416 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6417 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6418 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6419 "     ' prfx=^$ac_symprfx"
6420   else
6421     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6422   fi
6423   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6424
6425   # Check to see that the pipe works correctly.
6426   pipe_works=no
6427
6428   rm -f conftest*
6429   cat > conftest.$ac_ext <<_LT_EOF
6430 #ifdef __cplusplus
6431 extern "C" {
6432 #endif
6433 char nm_test_var;
6434 void nm_test_func(void);
6435 void nm_test_func(void){}
6436 #ifdef __cplusplus
6437 }
6438 #endif
6439 int main(){nm_test_var='a';nm_test_func();return(0);}
6440 _LT_EOF
6441
6442   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6443   (eval $ac_compile) 2>&5
6444   ac_status=$?
6445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446   test $ac_status = 0; }; then
6447     # Now try to grab the symbols.
6448     nlist=conftest.nm
6449     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6450   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6451   ac_status=$?
6452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6453   test $ac_status = 0; } && test -s "$nlist"; then
6454       # Try sorting and uniquifying the output.
6455       if sort "$nlist" | uniq > "$nlist"T; then
6456         mv -f "$nlist"T "$nlist"
6457       else
6458         rm -f "$nlist"T
6459       fi
6460
6461       # Make sure that we snagged all the symbols we need.
6462       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6463         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6464           cat <<_LT_EOF > conftest.$ac_ext
6465 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6466 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6467 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6468    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6469 # define LT_DLSYM_CONST
6470 #elif defined(__osf__)
6471 /* This system does not cope well with relocations in const data.  */
6472 # define LT_DLSYM_CONST
6473 #else
6474 # define LT_DLSYM_CONST const
6475 #endif
6476
6477 #ifdef __cplusplus
6478 extern "C" {
6479 #endif
6480
6481 _LT_EOF
6482           # Now generate the symbol file.
6483           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6484
6485           cat <<_LT_EOF >> conftest.$ac_ext
6486
6487 /* The mapping between symbol names and symbols.  */
6488 LT_DLSYM_CONST struct {
6489   const char *name;
6490   void       *address;
6491 }
6492 lt__PROGRAM__LTX_preloaded_symbols[] =
6493 {
6494   { "@PROGRAM@", (void *) 0 },
6495 _LT_EOF
6496           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6497           cat <<\_LT_EOF >> conftest.$ac_ext
6498   {0, (void *) 0}
6499 };
6500
6501 /* This works around a problem in FreeBSD linker */
6502 #ifdef FREEBSD_WORKAROUND
6503 static const void *lt_preloaded_setup() {
6504   return lt__PROGRAM__LTX_preloaded_symbols;
6505 }
6506 #endif
6507
6508 #ifdef __cplusplus
6509 }
6510 #endif
6511 _LT_EOF
6512           # Now try linking the two files.
6513           mv conftest.$ac_objext conftstm.$ac_objext
6514           lt_globsym_save_LIBS=$LIBS
6515           lt_globsym_save_CFLAGS=$CFLAGS
6516           LIBS="conftstm.$ac_objext"
6517           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6518           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6519   (eval $ac_link) 2>&5
6520   ac_status=$?
6521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6522   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6523             pipe_works=yes
6524           fi
6525           LIBS=$lt_globsym_save_LIBS
6526           CFLAGS=$lt_globsym_save_CFLAGS
6527         else
6528           echo "cannot find nm_test_func in $nlist" >&5
6529         fi
6530       else
6531         echo "cannot find nm_test_var in $nlist" >&5
6532       fi
6533     else
6534       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6535     fi
6536   else
6537     echo "$progname: failed program was:" >&5
6538     cat conftest.$ac_ext >&5
6539   fi
6540   rm -rf conftest* conftst*
6541
6542   # Do not use the global_symbol_pipe unless it works.
6543   if test "$pipe_works" = yes; then
6544     break
6545   else
6546     lt_cv_sys_global_symbol_pipe=
6547   fi
6548 done
6549
6550 fi
6551
6552 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6553   lt_cv_sys_global_symbol_to_cdecl=
6554 fi
6555 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6557 $as_echo "failed" >&6; }
6558 else
6559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6560 $as_echo "ok" >&6; }
6561 fi
6562
6563 # Response file support.
6564 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6565   nm_file_list_spec='@'
6566 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6567   nm_file_list_spec='@'
6568 fi
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6597 $as_echo_n "checking for sysroot... " >&6; }
6598
6599 # Check whether --with-sysroot was given.
6600 if test "${with_sysroot+set}" = set; then :
6601   withval=$with_sysroot;
6602 else
6603   with_sysroot=no
6604 fi
6605
6606
6607 lt_sysroot=
6608 case ${with_sysroot} in #(
6609  yes)
6610    if test "$GCC" = yes; then
6611      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6612    fi
6613    ;; #(
6614  /*)
6615    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6616    ;; #(
6617  no|'')
6618    ;; #(
6619  *)
6620    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6621 $as_echo "${with_sysroot}" >&6; }
6622    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6623    ;;
6624 esac
6625
6626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6627 $as_echo "${lt_sysroot:-no}" >&6; }
6628
6629
6630
6631
6632
6633 # Check whether --enable-libtool-lock was given.
6634 if test "${enable_libtool_lock+set}" = set; then :
6635   enableval=$enable_libtool_lock;
6636 fi
6637
6638 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6639
6640 # Some flags need to be propagated to the compiler or linker for good
6641 # libtool support.
6642 case $host in
6643 ia64-*-hpux*)
6644   # Find out which ABI we are using.
6645   echo 'int i;' > conftest.$ac_ext
6646   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6647   (eval $ac_compile) 2>&5
6648   ac_status=$?
6649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6650   test $ac_status = 0; }; then
6651     case `/usr/bin/file conftest.$ac_objext` in
6652       *ELF-32*)
6653         HPUX_IA64_MODE="32"
6654         ;;
6655       *ELF-64*)
6656         HPUX_IA64_MODE="64"
6657         ;;
6658     esac
6659   fi
6660   rm -rf conftest*
6661   ;;
6662 *-*-irix6*)
6663   # Find out which ABI we are using.
6664   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6665   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6666   (eval $ac_compile) 2>&5
6667   ac_status=$?
6668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6669   test $ac_status = 0; }; then
6670     if test "$lt_cv_prog_gnu_ld" = yes; then
6671       case `/usr/bin/file conftest.$ac_objext` in
6672         *32-bit*)
6673           LD="${LD-ld} -melf32bsmip"
6674           ;;
6675         *N32*)
6676           LD="${LD-ld} -melf32bmipn32"
6677           ;;
6678         *64-bit*)
6679           LD="${LD-ld} -melf64bmip"
6680         ;;
6681       esac
6682     else
6683       case `/usr/bin/file conftest.$ac_objext` in
6684         *32-bit*)
6685           LD="${LD-ld} -32"
6686           ;;
6687         *N32*)
6688           LD="${LD-ld} -n32"
6689           ;;
6690         *64-bit*)
6691           LD="${LD-ld} -64"
6692           ;;
6693       esac
6694     fi
6695   fi
6696   rm -rf conftest*
6697   ;;
6698
6699 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6700 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6701   # Find out which ABI we are using.
6702   echo 'int i;' > conftest.$ac_ext
6703   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6704   (eval $ac_compile) 2>&5
6705   ac_status=$?
6706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6707   test $ac_status = 0; }; then
6708     case `/usr/bin/file conftest.o` in
6709       *32-bit*)
6710         case $host in
6711           x86_64-*kfreebsd*-gnu)
6712             LD="${LD-ld} -m elf_i386_fbsd"
6713             ;;
6714           x86_64-*linux*)
6715             LD="${LD-ld} -m elf_i386"
6716             ;;
6717           ppc64-*linux*|powerpc64-*linux*)
6718             LD="${LD-ld} -m elf32ppclinux"
6719             ;;
6720           s390x-*linux*)
6721             LD="${LD-ld} -m elf_s390"
6722             ;;
6723           sparc64-*linux*)
6724             LD="${LD-ld} -m elf32_sparc"
6725             ;;
6726         esac
6727         ;;
6728       *64-bit*)
6729         case $host in
6730           x86_64-*kfreebsd*-gnu)
6731             LD="${LD-ld} -m elf_x86_64_fbsd"
6732             ;;
6733           x86_64-*linux*)
6734             LD="${LD-ld} -m elf_x86_64"
6735             ;;
6736           ppc*-*linux*|powerpc*-*linux*)
6737             LD="${LD-ld} -m elf64ppc"
6738             ;;
6739           s390*-*linux*|s390*-*tpf*)
6740             LD="${LD-ld} -m elf64_s390"
6741             ;;
6742           sparc*-*linux*)
6743             LD="${LD-ld} -m elf64_sparc"
6744             ;;
6745         esac
6746         ;;
6747     esac
6748   fi
6749   rm -rf conftest*
6750   ;;
6751
6752 *-*-sco3.2v5*)
6753   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6754   SAVE_CFLAGS="$CFLAGS"
6755   CFLAGS="$CFLAGS -belf"
6756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6757 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6758 if ${lt_cv_cc_needs_belf+:} false; then :
6759   $as_echo_n "(cached) " >&6
6760 else
6761   ac_ext=c
6762 ac_cpp='$CPP $CPPFLAGS'
6763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6766
6767      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h.  */
6769
6770 int
6771 main ()
6772 {
6773
6774   ;
6775   return 0;
6776 }
6777 _ACEOF
6778 if ac_fn_c_try_link "$LINENO"; then :
6779   lt_cv_cc_needs_belf=yes
6780 else
6781   lt_cv_cc_needs_belf=no
6782 fi
6783 rm -f core conftest.err conftest.$ac_objext \
6784     conftest$ac_exeext conftest.$ac_ext
6785      ac_ext=c
6786 ac_cpp='$CPP $CPPFLAGS'
6787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6790
6791 fi
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6793 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6794   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6795     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6796     CFLAGS="$SAVE_CFLAGS"
6797   fi
6798   ;;
6799 *-*solaris*)
6800   # Find out which ABI we are using.
6801   echo 'int i;' > conftest.$ac_ext
6802   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6803   (eval $ac_compile) 2>&5
6804   ac_status=$?
6805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6806   test $ac_status = 0; }; then
6807     case `/usr/bin/file conftest.o` in
6808     *64-bit*)
6809       case $lt_cv_prog_gnu_ld in
6810       yes*)
6811         case $host in
6812         i?86-*-solaris*)
6813           LD="${LD-ld} -m elf_x86_64"
6814           ;;
6815         sparc*-*-solaris*)
6816           LD="${LD-ld} -m elf64_sparc"
6817           ;;
6818         esac
6819         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6820         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6821           LD="${LD-ld}_sol2"
6822         fi
6823         ;;
6824       *)
6825         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6826           LD="${LD-ld} -64"
6827         fi
6828         ;;
6829       esac
6830       ;;
6831     esac
6832   fi
6833   rm -rf conftest*
6834   ;;
6835 esac
6836
6837 need_locks="$enable_libtool_lock"
6838
6839 if test -n "$ac_tool_prefix"; then
6840   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6841 set dummy ${ac_tool_prefix}mt; ac_word=$2
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843 $as_echo_n "checking for $ac_word... " >&6; }
6844 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6845   $as_echo_n "(cached) " >&6
6846 else
6847   if test -n "$MANIFEST_TOOL"; then
6848   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6852 do
6853   IFS=$as_save_IFS
6854   test -z "$as_dir" && as_dir=.
6855     for ac_exec_ext in '' $ac_executable_extensions; do
6856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859     break 2
6860   fi
6861 done
6862   done
6863 IFS=$as_save_IFS
6864
6865 fi
6866 fi
6867 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6868 if test -n "$MANIFEST_TOOL"; then
6869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6870 $as_echo "$MANIFEST_TOOL" >&6; }
6871 else
6872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6874 fi
6875
6876
6877 fi
6878 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6879   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6880   # Extract the first word of "mt", so it can be a program name with args.
6881 set dummy mt; ac_word=$2
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883 $as_echo_n "checking for $ac_word... " >&6; }
6884 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6885   $as_echo_n "(cached) " >&6
6886 else
6887   if test -n "$ac_ct_MANIFEST_TOOL"; then
6888   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6889 else
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6892 do
6893   IFS=$as_save_IFS
6894   test -z "$as_dir" && as_dir=.
6895     for ac_exec_ext in '' $ac_executable_extensions; do
6896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6897     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899     break 2
6900   fi
6901 done
6902   done
6903 IFS=$as_save_IFS
6904
6905 fi
6906 fi
6907 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6908 if test -n "$ac_ct_MANIFEST_TOOL"; then
6909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6910 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6911 else
6912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913 $as_echo "no" >&6; }
6914 fi
6915
6916   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6917     MANIFEST_TOOL=":"
6918   else
6919     case $cross_compiling:$ac_tool_warned in
6920 yes:)
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6923 ac_tool_warned=yes ;;
6924 esac
6925     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6926   fi
6927 else
6928   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6929 fi
6930
6931 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6933 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6934 if ${lt_cv_path_mainfest_tool+:} false; then :
6935   $as_echo_n "(cached) " >&6
6936 else
6937   lt_cv_path_mainfest_tool=no
6938   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6939   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6940   cat conftest.err >&5
6941   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6942     lt_cv_path_mainfest_tool=yes
6943   fi
6944   rm -f conftest*
6945 fi
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6947 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6948 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6949   MANIFEST_TOOL=:
6950 fi
6951
6952
6953
6954
6955
6956
6957   case $host_os in
6958     rhapsody* | darwin*)
6959     if test -n "$ac_tool_prefix"; then
6960   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6961 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963 $as_echo_n "checking for $ac_word... " >&6; }
6964 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6965   $as_echo_n "(cached) " >&6
6966 else
6967   if test -n "$DSYMUTIL"; then
6968   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6969 else
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973   IFS=$as_save_IFS
6974   test -z "$as_dir" && as_dir=.
6975     for ac_exec_ext in '' $ac_executable_extensions; do
6976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6977     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979     break 2
6980   fi
6981 done
6982   done
6983 IFS=$as_save_IFS
6984
6985 fi
6986 fi
6987 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6988 if test -n "$DSYMUTIL"; then
6989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6990 $as_echo "$DSYMUTIL" >&6; }
6991 else
6992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6994 fi
6995
6996
6997 fi
6998 if test -z "$ac_cv_prog_DSYMUTIL"; then
6999   ac_ct_DSYMUTIL=$DSYMUTIL
7000   # Extract the first word of "dsymutil", so it can be a program name with args.
7001 set dummy dsymutil; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7005   $as_echo_n "(cached) " >&6
7006 else
7007   if test -n "$ac_ct_DSYMUTIL"; then
7008   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7009 else
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7012 do
7013   IFS=$as_save_IFS
7014   test -z "$as_dir" && as_dir=.
7015     for ac_exec_ext in '' $ac_executable_extensions; do
7016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7017     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019     break 2
7020   fi
7021 done
7022   done
7023 IFS=$as_save_IFS
7024
7025 fi
7026 fi
7027 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7028 if test -n "$ac_ct_DSYMUTIL"; then
7029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7030 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7031 else
7032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033 $as_echo "no" >&6; }
7034 fi
7035
7036   if test "x$ac_ct_DSYMUTIL" = x; then
7037     DSYMUTIL=":"
7038   else
7039     case $cross_compiling:$ac_tool_warned in
7040 yes:)
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7043 ac_tool_warned=yes ;;
7044 esac
7045     DSYMUTIL=$ac_ct_DSYMUTIL
7046   fi
7047 else
7048   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7049 fi
7050
7051     if test -n "$ac_tool_prefix"; then
7052   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7053 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055 $as_echo_n "checking for $ac_word... " >&6; }
7056 if ${ac_cv_prog_NMEDIT+:} false; then :
7057   $as_echo_n "(cached) " >&6
7058 else
7059   if test -n "$NMEDIT"; then
7060   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7061 else
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7064 do
7065   IFS=$as_save_IFS
7066   test -z "$as_dir" && as_dir=.
7067     for ac_exec_ext in '' $ac_executable_extensions; do
7068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7069     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7071     break 2
7072   fi
7073 done
7074   done
7075 IFS=$as_save_IFS
7076
7077 fi
7078 fi
7079 NMEDIT=$ac_cv_prog_NMEDIT
7080 if test -n "$NMEDIT"; then
7081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7082 $as_echo "$NMEDIT" >&6; }
7083 else
7084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085 $as_echo "no" >&6; }
7086 fi
7087
7088
7089 fi
7090 if test -z "$ac_cv_prog_NMEDIT"; then
7091   ac_ct_NMEDIT=$NMEDIT
7092   # Extract the first word of "nmedit", so it can be a program name with args.
7093 set dummy nmedit; ac_word=$2
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095 $as_echo_n "checking for $ac_word... " >&6; }
7096 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7097   $as_echo_n "(cached) " >&6
7098 else
7099   if test -n "$ac_ct_NMEDIT"; then
7100   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7101 else
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7104 do
7105   IFS=$as_save_IFS
7106   test -z "$as_dir" && as_dir=.
7107     for ac_exec_ext in '' $ac_executable_extensions; do
7108   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111     break 2
7112   fi
7113 done
7114   done
7115 IFS=$as_save_IFS
7116
7117 fi
7118 fi
7119 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7120 if test -n "$ac_ct_NMEDIT"; then
7121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7122 $as_echo "$ac_ct_NMEDIT" >&6; }
7123 else
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7126 fi
7127
7128   if test "x$ac_ct_NMEDIT" = x; then
7129     NMEDIT=":"
7130   else
7131     case $cross_compiling:$ac_tool_warned in
7132 yes:)
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7135 ac_tool_warned=yes ;;
7136 esac
7137     NMEDIT=$ac_ct_NMEDIT
7138   fi
7139 else
7140   NMEDIT="$ac_cv_prog_NMEDIT"
7141 fi
7142
7143     if test -n "$ac_tool_prefix"; then
7144   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7145 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147 $as_echo_n "checking for $ac_word... " >&6; }
7148 if ${ac_cv_prog_LIPO+:} false; then :
7149   $as_echo_n "(cached) " >&6
7150 else
7151   if test -n "$LIPO"; then
7152   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7153 else
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 for as_dir in $PATH
7156 do
7157   IFS=$as_save_IFS
7158   test -z "$as_dir" && as_dir=.
7159     for ac_exec_ext in '' $ac_executable_extensions; do
7160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7163     break 2
7164   fi
7165 done
7166   done
7167 IFS=$as_save_IFS
7168
7169 fi
7170 fi
7171 LIPO=$ac_cv_prog_LIPO
7172 if test -n "$LIPO"; then
7173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7174 $as_echo "$LIPO" >&6; }
7175 else
7176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7178 fi
7179
7180
7181 fi
7182 if test -z "$ac_cv_prog_LIPO"; then
7183   ac_ct_LIPO=$LIPO
7184   # Extract the first word of "lipo", so it can be a program name with args.
7185 set dummy lipo; ac_word=$2
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7189   $as_echo_n "(cached) " >&6
7190 else
7191   if test -n "$ac_ct_LIPO"; then
7192   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7193 else
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 for as_dir in $PATH
7196 do
7197   IFS=$as_save_IFS
7198   test -z "$as_dir" && as_dir=.
7199     for ac_exec_ext in '' $ac_executable_extensions; do
7200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201     ac_cv_prog_ac_ct_LIPO="lipo"
7202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203     break 2
7204   fi
7205 done
7206   done
7207 IFS=$as_save_IFS
7208
7209 fi
7210 fi
7211 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7212 if test -n "$ac_ct_LIPO"; then
7213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7214 $as_echo "$ac_ct_LIPO" >&6; }
7215 else
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7218 fi
7219
7220   if test "x$ac_ct_LIPO" = x; then
7221     LIPO=":"
7222   else
7223     case $cross_compiling:$ac_tool_warned in
7224 yes:)
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7227 ac_tool_warned=yes ;;
7228 esac
7229     LIPO=$ac_ct_LIPO
7230   fi
7231 else
7232   LIPO="$ac_cv_prog_LIPO"
7233 fi
7234
7235     if test -n "$ac_tool_prefix"; then
7236   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7237 set dummy ${ac_tool_prefix}otool; ac_word=$2
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 $as_echo_n "checking for $ac_word... " >&6; }
7240 if ${ac_cv_prog_OTOOL+:} false; then :
7241   $as_echo_n "(cached) " >&6
7242 else
7243   if test -n "$OTOOL"; then
7244   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7245 else
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $PATH
7248 do
7249   IFS=$as_save_IFS
7250   test -z "$as_dir" && as_dir=.
7251     for ac_exec_ext in '' $ac_executable_extensions; do
7252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255     break 2
7256   fi
7257 done
7258   done
7259 IFS=$as_save_IFS
7260
7261 fi
7262 fi
7263 OTOOL=$ac_cv_prog_OTOOL
7264 if test -n "$OTOOL"; then
7265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7266 $as_echo "$OTOOL" >&6; }
7267 else
7268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 $as_echo "no" >&6; }
7270 fi
7271
7272
7273 fi
7274 if test -z "$ac_cv_prog_OTOOL"; then
7275   ac_ct_OTOOL=$OTOOL
7276   # Extract the first word of "otool", so it can be a program name with args.
7277 set dummy otool; ac_word=$2
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279 $as_echo_n "checking for $ac_word... " >&6; }
7280 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7281   $as_echo_n "(cached) " >&6
7282 else
7283   if test -n "$ac_ct_OTOOL"; then
7284   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7285 else
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7288 do
7289   IFS=$as_save_IFS
7290   test -z "$as_dir" && as_dir=.
7291     for ac_exec_ext in '' $ac_executable_extensions; do
7292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7293     ac_cv_prog_ac_ct_OTOOL="otool"
7294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7295     break 2
7296   fi
7297 done
7298   done
7299 IFS=$as_save_IFS
7300
7301 fi
7302 fi
7303 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7304 if test -n "$ac_ct_OTOOL"; then
7305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7306 $as_echo "$ac_ct_OTOOL" >&6; }
7307 else
7308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 $as_echo "no" >&6; }
7310 fi
7311
7312   if test "x$ac_ct_OTOOL" = x; then
7313     OTOOL=":"
7314   else
7315     case $cross_compiling:$ac_tool_warned in
7316 yes:)
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7319 ac_tool_warned=yes ;;
7320 esac
7321     OTOOL=$ac_ct_OTOOL
7322   fi
7323 else
7324   OTOOL="$ac_cv_prog_OTOOL"
7325 fi
7326
7327     if test -n "$ac_tool_prefix"; then
7328   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7329 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_prog_OTOOL64+:} false; then :
7333   $as_echo_n "(cached) " >&6
7334 else
7335   if test -n "$OTOOL64"; then
7336   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7337 else
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7340 do
7341   IFS=$as_save_IFS
7342   test -z "$as_dir" && as_dir=.
7343     for ac_exec_ext in '' $ac_executable_extensions; do
7344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7345     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7347     break 2
7348   fi
7349 done
7350   done
7351 IFS=$as_save_IFS
7352
7353 fi
7354 fi
7355 OTOOL64=$ac_cv_prog_OTOOL64
7356 if test -n "$OTOOL64"; then
7357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7358 $as_echo "$OTOOL64" >&6; }
7359 else
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7362 fi
7363
7364
7365 fi
7366 if test -z "$ac_cv_prog_OTOOL64"; then
7367   ac_ct_OTOOL64=$OTOOL64
7368   # Extract the first word of "otool64", so it can be a program name with args.
7369 set dummy otool64; ac_word=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7373   $as_echo_n "(cached) " >&6
7374 else
7375   if test -n "$ac_ct_OTOOL64"; then
7376   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381   IFS=$as_save_IFS
7382   test -z "$as_dir" && as_dir=.
7383     for ac_exec_ext in '' $ac_executable_extensions; do
7384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385     ac_cv_prog_ac_ct_OTOOL64="otool64"
7386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387     break 2
7388   fi
7389 done
7390   done
7391 IFS=$as_save_IFS
7392
7393 fi
7394 fi
7395 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7396 if test -n "$ac_ct_OTOOL64"; then
7397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7398 $as_echo "$ac_ct_OTOOL64" >&6; }
7399 else
7400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7402 fi
7403
7404   if test "x$ac_ct_OTOOL64" = x; then
7405     OTOOL64=":"
7406   else
7407     case $cross_compiling:$ac_tool_warned in
7408 yes:)
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411 ac_tool_warned=yes ;;
7412 esac
7413     OTOOL64=$ac_ct_OTOOL64
7414   fi
7415 else
7416   OTOOL64="$ac_cv_prog_OTOOL64"
7417 fi
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7446 $as_echo_n "checking for -single_module linker flag... " >&6; }
7447 if ${lt_cv_apple_cc_single_mod+:} false; then :
7448   $as_echo_n "(cached) " >&6
7449 else
7450   lt_cv_apple_cc_single_mod=no
7451       if test -z "${LT_MULTI_MODULE}"; then
7452         # By default we will add the -single_module flag. You can override
7453         # by either setting the environment variable LT_MULTI_MODULE
7454         # non-empty at configure time, or by adding -multi_module to the
7455         # link flags.
7456         rm -rf libconftest.dylib*
7457         echo "int foo(void){return 1;}" > conftest.c
7458         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7459 -dynamiclib -Wl,-single_module conftest.c" >&5
7460         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7461           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7462         _lt_result=$?
7463         # If there is a non-empty error log, and "single_module"
7464         # appears in it, assume the flag caused a linker warning
7465         if test -s conftest.err && $GREP single_module conftest.err; then
7466           cat conftest.err >&5
7467         # Otherwise, if the output was created with a 0 exit code from
7468         # the compiler, it worked.
7469         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7470           lt_cv_apple_cc_single_mod=yes
7471         else
7472           cat conftest.err >&5
7473         fi
7474         rm -rf libconftest.dylib*
7475         rm -f conftest.*
7476       fi
7477 fi
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7479 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7480
7481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7482 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7483 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7484   $as_echo_n "(cached) " >&6
7485 else
7486   lt_cv_ld_exported_symbols_list=no
7487       save_LDFLAGS=$LDFLAGS
7488       echo "_main" > conftest.sym
7489       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7490       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491 /* end confdefs.h.  */
7492
7493 int
7494 main ()
7495 {
7496
7497   ;
7498   return 0;
7499 }
7500 _ACEOF
7501 if ac_fn_c_try_link "$LINENO"; then :
7502   lt_cv_ld_exported_symbols_list=yes
7503 else
7504   lt_cv_ld_exported_symbols_list=no
7505 fi
7506 rm -f core conftest.err conftest.$ac_objext \
7507     conftest$ac_exeext conftest.$ac_ext
7508         LDFLAGS="$save_LDFLAGS"
7509
7510 fi
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7512 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7513
7514     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7515 $as_echo_n "checking for -force_load linker flag... " >&6; }
7516 if ${lt_cv_ld_force_load+:} false; then :
7517   $as_echo_n "(cached) " >&6
7518 else
7519   lt_cv_ld_force_load=no
7520       cat > conftest.c << _LT_EOF
7521 int forced_loaded() { return 2;}
7522 _LT_EOF
7523       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7524       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7525       echo "$AR cru libconftest.a conftest.o" >&5
7526       $AR cru libconftest.a conftest.o 2>&5
7527       echo "$RANLIB libconftest.a" >&5
7528       $RANLIB libconftest.a 2>&5
7529       cat > conftest.c << _LT_EOF
7530 int main() { return 0;}
7531 _LT_EOF
7532       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7533       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7534       _lt_result=$?
7535       if test -s conftest.err && $GREP force_load conftest.err; then
7536         cat conftest.err >&5
7537       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7538         lt_cv_ld_force_load=yes
7539       else
7540         cat conftest.err >&5
7541       fi
7542         rm -f conftest.err libconftest.a conftest conftest.c
7543         rm -rf conftest.dSYM
7544
7545 fi
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7547 $as_echo "$lt_cv_ld_force_load" >&6; }
7548     case $host_os in
7549     rhapsody* | darwin1.[012])
7550       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7551     darwin1.*)
7552       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7553     darwin*) # darwin 5.x on
7554       # if running on 10.5 or later, the deployment target defaults
7555       # to the OS version, if on x86, and 10.4, the deployment
7556       # target defaults to 10.4. Don't you love it?
7557       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7558         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7559           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7560         10.[012]*)
7561           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7562         10.*)
7563           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7564       esac
7565     ;;
7566   esac
7567     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7568       _lt_dar_single_mod='$single_module'
7569     fi
7570     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7571       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7572     else
7573       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7574     fi
7575     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7576       _lt_dsymutil='~$DSYMUTIL $lib || :'
7577     else
7578       _lt_dsymutil=
7579     fi
7580     ;;
7581   esac
7582
7583 ac_ext=c
7584 ac_cpp='$CPP $CPPFLAGS'
7585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7589 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7590 # On Suns, sometimes $CPP names a directory.
7591 if test -n "$CPP" && test -d "$CPP"; then
7592   CPP=
7593 fi
7594 if test -z "$CPP"; then
7595   if ${ac_cv_prog_CPP+:} false; then :
7596   $as_echo_n "(cached) " >&6
7597 else
7598       # Double quotes because CPP needs to be expanded
7599     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7600     do
7601       ac_preproc_ok=false
7602 for ac_c_preproc_warn_flag in '' yes
7603 do
7604   # Use a header file that comes with gcc, so configuring glibc
7605   # with a fresh cross-compiler works.
7606   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7607   # <limits.h> exists even on freestanding compilers.
7608   # On the NeXT, cc -E runs the code through the compiler's parser,
7609   # not just through cpp. "Syntax error" is here to catch this case.
7610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h.  */
7612 #ifdef __STDC__
7613 # include <limits.h>
7614 #else
7615 # include <assert.h>
7616 #endif
7617                      Syntax error
7618 _ACEOF
7619 if ac_fn_c_try_cpp "$LINENO"; then :
7620
7621 else
7622   # Broken: fails on valid input.
7623 continue
7624 fi
7625 rm -f conftest.err conftest.i conftest.$ac_ext
7626
7627   # OK, works on sane cases.  Now check whether nonexistent headers
7628   # can be detected and how.
7629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h.  */
7631 #include <ac_nonexistent.h>
7632 _ACEOF
7633 if ac_fn_c_try_cpp "$LINENO"; then :
7634   # Broken: success on invalid input.
7635 continue
7636 else
7637   # Passes both tests.
7638 ac_preproc_ok=:
7639 break
7640 fi
7641 rm -f conftest.err conftest.i conftest.$ac_ext
7642
7643 done
7644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7645 rm -f conftest.i conftest.err conftest.$ac_ext
7646 if $ac_preproc_ok; then :
7647   break
7648 fi
7649
7650     done
7651     ac_cv_prog_CPP=$CPP
7652
7653 fi
7654   CPP=$ac_cv_prog_CPP
7655 else
7656   ac_cv_prog_CPP=$CPP
7657 fi
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7659 $as_echo "$CPP" >&6; }
7660 ac_preproc_ok=false
7661 for ac_c_preproc_warn_flag in '' yes
7662 do
7663   # Use a header file that comes with gcc, so configuring glibc
7664   # with a fresh cross-compiler works.
7665   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7666   # <limits.h> exists even on freestanding compilers.
7667   # On the NeXT, cc -E runs the code through the compiler's parser,
7668   # not just through cpp. "Syntax error" is here to catch this case.
7669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h.  */
7671 #ifdef __STDC__
7672 # include <limits.h>
7673 #else
7674 # include <assert.h>
7675 #endif
7676                      Syntax error
7677 _ACEOF
7678 if ac_fn_c_try_cpp "$LINENO"; then :
7679
7680 else
7681   # Broken: fails on valid input.
7682 continue
7683 fi
7684 rm -f conftest.err conftest.i conftest.$ac_ext
7685
7686   # OK, works on sane cases.  Now check whether nonexistent headers
7687   # can be detected and how.
7688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h.  */
7690 #include <ac_nonexistent.h>
7691 _ACEOF
7692 if ac_fn_c_try_cpp "$LINENO"; then :
7693   # Broken: success on invalid input.
7694 continue
7695 else
7696   # Passes both tests.
7697 ac_preproc_ok=:
7698 break
7699 fi
7700 rm -f conftest.err conftest.i conftest.$ac_ext
7701
7702 done
7703 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7704 rm -f conftest.i conftest.err conftest.$ac_ext
7705 if $ac_preproc_ok; then :
7706
7707 else
7708   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7710 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7711 See \`config.log' for more details" "$LINENO" 5; }
7712 fi
7713
7714 ac_ext=c
7715 ac_cpp='$CPP $CPPFLAGS'
7716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7719
7720
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7722 $as_echo_n "checking for ANSI C header files... " >&6; }
7723 if ${ac_cv_header_stdc+:} false; then :
7724   $as_echo_n "(cached) " >&6
7725 else
7726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h.  */
7728 #include <stdlib.h>
7729 #include <stdarg.h>
7730 #include <string.h>
7731 #include <float.h>
7732
7733 int
7734 main ()
7735 {
7736
7737   ;
7738   return 0;
7739 }
7740 _ACEOF
7741 if ac_fn_c_try_compile "$LINENO"; then :
7742   ac_cv_header_stdc=yes
7743 else
7744   ac_cv_header_stdc=no
7745 fi
7746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747
7748 if test $ac_cv_header_stdc = yes; then
7749   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h.  */
7752 #include <string.h>
7753
7754 _ACEOF
7755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7756   $EGREP "memchr" >/dev/null 2>&1; then :
7757
7758 else
7759   ac_cv_header_stdc=no
7760 fi
7761 rm -f conftest*
7762
7763 fi
7764
7765 if test $ac_cv_header_stdc = yes; then
7766   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7768 /* end confdefs.h.  */
7769 #include <stdlib.h>
7770
7771 _ACEOF
7772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7773   $EGREP "free" >/dev/null 2>&1; then :
7774
7775 else
7776   ac_cv_header_stdc=no
7777 fi
7778 rm -f conftest*
7779
7780 fi
7781
7782 if test $ac_cv_header_stdc = yes; then
7783   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7784   if test "$cross_compiling" = yes; then :
7785   :
7786 else
7787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h.  */
7789 #include <ctype.h>
7790 #include <stdlib.h>
7791 #if ((' ' & 0x0FF) == 0x020)
7792 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7793 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7794 #else
7795 # define ISLOWER(c) \
7796                    (('a' <= (c) && (c) <= 'i') \
7797                      || ('j' <= (c) && (c) <= 'r') \
7798                      || ('s' <= (c) && (c) <= 'z'))
7799 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7800 #endif
7801
7802 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7803 int
7804 main ()
7805 {
7806   int i;
7807   for (i = 0; i < 256; i++)
7808     if (XOR (islower (i), ISLOWER (i))
7809         || toupper (i) != TOUPPER (i))
7810       return 2;
7811   return 0;
7812 }
7813 _ACEOF
7814 if ac_fn_c_try_run "$LINENO"; then :
7815
7816 else
7817   ac_cv_header_stdc=no
7818 fi
7819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7820   conftest.$ac_objext conftest.beam conftest.$ac_ext
7821 fi
7822
7823 fi
7824 fi
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7826 $as_echo "$ac_cv_header_stdc" >&6; }
7827 if test $ac_cv_header_stdc = yes; then
7828
7829 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7830
7831 fi
7832
7833 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7834 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7835                   inttypes.h stdint.h unistd.h
7836 do :
7837   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7838 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7839 "
7840 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7841   cat >>confdefs.h <<_ACEOF
7842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7843 _ACEOF
7844
7845 fi
7846
7847 done
7848
7849
7850 for ac_header in dlfcn.h
7851 do :
7852   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7853 "
7854 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7855   cat >>confdefs.h <<_ACEOF
7856 #define HAVE_DLFCN_H 1
7857 _ACEOF
7858
7859 fi
7860
7861 done
7862
7863
7864
7865
7866
7867 # Set options
7868
7869
7870
7871         enable_dlopen=no
7872
7873
7874   enable_win32_dll=no
7875
7876
7877             # Check whether --enable-shared was given.
7878 if test "${enable_shared+set}" = set; then :
7879   enableval=$enable_shared; p=${PACKAGE-default}
7880     case $enableval in
7881     yes) enable_shared=yes ;;
7882     no) enable_shared=no ;;
7883     *)
7884       enable_shared=no
7885       # Look at the argument we got.  We use all the common list separators.
7886       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7887       for pkg in $enableval; do
7888         IFS="$lt_save_ifs"
7889         if test "X$pkg" = "X$p"; then
7890           enable_shared=yes
7891         fi
7892       done
7893       IFS="$lt_save_ifs"
7894       ;;
7895     esac
7896 else
7897   enable_shared=yes
7898 fi
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910 # Check whether --with-pic was given.
7911 if test "${with_pic+set}" = set; then :
7912   withval=$with_pic; lt_p=${PACKAGE-default}
7913     case $withval in
7914     yes|no) pic_mode=$withval ;;
7915     *)
7916       pic_mode=default
7917       # Look at the argument we got.  We use all the common list separators.
7918       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7919       for lt_pkg in $withval; do
7920         IFS="$lt_save_ifs"
7921         if test "X$lt_pkg" = "X$lt_p"; then
7922           pic_mode=yes
7923         fi
7924       done
7925       IFS="$lt_save_ifs"
7926       ;;
7927     esac
7928 else
7929   pic_mode=default
7930 fi
7931
7932
7933 test -z "$pic_mode" && pic_mode=default
7934
7935
7936
7937
7938
7939
7940
7941   # Check whether --enable-fast-install was given.
7942 if test "${enable_fast_install+set}" = set; then :
7943   enableval=$enable_fast_install; p=${PACKAGE-default}
7944     case $enableval in
7945     yes) enable_fast_install=yes ;;
7946     no) enable_fast_install=no ;;
7947     *)
7948       enable_fast_install=no
7949       # Look at the argument we got.  We use all the common list separators.
7950       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7951       for pkg in $enableval; do
7952         IFS="$lt_save_ifs"
7953         if test "X$pkg" = "X$p"; then
7954           enable_fast_install=yes
7955         fi
7956       done
7957       IFS="$lt_save_ifs"
7958       ;;
7959     esac
7960 else
7961   enable_fast_install=yes
7962 fi
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974 # This can be used to rebuild libtool when needed
7975 LIBTOOL_DEPS="$ltmain"
7976
7977 # Always use our own libtool.
7978 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009 test -z "$LN_S" && LN_S="ln -s"
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024 if test -n "${ZSH_VERSION+set}" ; then
8025    setopt NO_GLOB_SUBST
8026 fi
8027
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8029 $as_echo_n "checking for objdir... " >&6; }
8030 if ${lt_cv_objdir+:} false; then :
8031   $as_echo_n "(cached) " >&6
8032 else
8033   rm -f .libs 2>/dev/null
8034 mkdir .libs 2>/dev/null
8035 if test -d .libs; then
8036   lt_cv_objdir=.libs
8037 else
8038   # MS-DOS does not allow filenames that begin with a dot.
8039   lt_cv_objdir=_libs
8040 fi
8041 rmdir .libs 2>/dev/null
8042 fi
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8044 $as_echo "$lt_cv_objdir" >&6; }
8045 objdir=$lt_cv_objdir
8046
8047
8048
8049
8050
8051 cat >>confdefs.h <<_ACEOF
8052 #define LT_OBJDIR "$lt_cv_objdir/"
8053 _ACEOF
8054
8055
8056
8057
8058 case $host_os in
8059 aix3*)
8060   # AIX sometimes has problems with the GCC collect2 program.  For some
8061   # reason, if we set the COLLECT_NAMES environment variable, the problems
8062   # vanish in a puff of smoke.
8063   if test "X${COLLECT_NAMES+set}" != Xset; then
8064     COLLECT_NAMES=
8065     export COLLECT_NAMES
8066   fi
8067   ;;
8068 esac
8069
8070 # Global variables:
8071 ofile=libtool
8072 can_build_shared=yes
8073
8074 # All known linkers require a `.a' archive for static linking (except MSVC,
8075 # which needs '.lib').
8076 libext=a
8077
8078 with_gnu_ld="$lt_cv_prog_gnu_ld"
8079
8080 old_CC="$CC"
8081 old_CFLAGS="$CFLAGS"
8082
8083 # Set sane defaults for various variables
8084 test -z "$CC" && CC=cc
8085 test -z "$LTCC" && LTCC=$CC
8086 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8087 test -z "$LD" && LD=ld
8088 test -z "$ac_objext" && ac_objext=o
8089
8090 for cc_temp in $compiler""; do
8091   case $cc_temp in
8092     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8093     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8094     \-*) ;;
8095     *) break;;
8096   esac
8097 done
8098 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8099
8100
8101 # Only perform the check for file, if the check method requires it
8102 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8103 case $deplibs_check_method in
8104 file_magic*)
8105   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8107 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8108 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8109   $as_echo_n "(cached) " >&6
8110 else
8111   case $MAGIC_CMD in
8112 [\\/*] |  ?:[\\/]*)
8113   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8114   ;;
8115 *)
8116   lt_save_MAGIC_CMD="$MAGIC_CMD"
8117   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8118   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8119   for ac_dir in $ac_dummy; do
8120     IFS="$lt_save_ifs"
8121     test -z "$ac_dir" && ac_dir=.
8122     if test -f $ac_dir/${ac_tool_prefix}file; then
8123       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8124       if test -n "$file_magic_test_file"; then
8125         case $deplibs_check_method in
8126         "file_magic "*)
8127           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8128           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8129           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8130             $EGREP "$file_magic_regex" > /dev/null; then
8131             :
8132           else
8133             cat <<_LT_EOF 1>&2
8134
8135 *** Warning: the command libtool uses to detect shared libraries,
8136 *** $file_magic_cmd, produces output that libtool cannot recognize.
8137 *** The result is that libtool may fail to recognize shared libraries
8138 *** as such.  This will affect the creation of libtool libraries that
8139 *** depend on shared libraries, but programs linked with such libtool
8140 *** libraries will work regardless of this problem.  Nevertheless, you
8141 *** may want to report the problem to your system manager and/or to
8142 *** bug-libtool@gnu.org
8143
8144 _LT_EOF
8145           fi ;;
8146         esac
8147       fi
8148       break
8149     fi
8150   done
8151   IFS="$lt_save_ifs"
8152   MAGIC_CMD="$lt_save_MAGIC_CMD"
8153   ;;
8154 esac
8155 fi
8156
8157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8158 if test -n "$MAGIC_CMD"; then
8159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8160 $as_echo "$MAGIC_CMD" >&6; }
8161 else
8162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8164 fi
8165
8166
8167
8168
8169
8170 if test -z "$lt_cv_path_MAGIC_CMD"; then
8171   if test -n "$ac_tool_prefix"; then
8172     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8173 $as_echo_n "checking for file... " >&6; }
8174 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8175   $as_echo_n "(cached) " >&6
8176 else
8177   case $MAGIC_CMD in
8178 [\\/*] |  ?:[\\/]*)
8179   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8180   ;;
8181 *)
8182   lt_save_MAGIC_CMD="$MAGIC_CMD"
8183   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8184   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8185   for ac_dir in $ac_dummy; do
8186     IFS="$lt_save_ifs"
8187     test -z "$ac_dir" && ac_dir=.
8188     if test -f $ac_dir/file; then
8189       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8190       if test -n "$file_magic_test_file"; then
8191         case $deplibs_check_method in
8192         "file_magic "*)
8193           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8194           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8195           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8196             $EGREP "$file_magic_regex" > /dev/null; then
8197             :
8198           else
8199             cat <<_LT_EOF 1>&2
8200
8201 *** Warning: the command libtool uses to detect shared libraries,
8202 *** $file_magic_cmd, produces output that libtool cannot recognize.
8203 *** The result is that libtool may fail to recognize shared libraries
8204 *** as such.  This will affect the creation of libtool libraries that
8205 *** depend on shared libraries, but programs linked with such libtool
8206 *** libraries will work regardless of this problem.  Nevertheless, you
8207 *** may want to report the problem to your system manager and/or to
8208 *** bug-libtool@gnu.org
8209
8210 _LT_EOF
8211           fi ;;
8212         esac
8213       fi
8214       break
8215     fi
8216   done
8217   IFS="$lt_save_ifs"
8218   MAGIC_CMD="$lt_save_MAGIC_CMD"
8219   ;;
8220 esac
8221 fi
8222
8223 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8224 if test -n "$MAGIC_CMD"; then
8225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8226 $as_echo "$MAGIC_CMD" >&6; }
8227 else
8228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8230 fi
8231
8232
8233   else
8234     MAGIC_CMD=:
8235   fi
8236 fi
8237
8238   fi
8239   ;;
8240 esac
8241
8242 # Use C for the default configuration in the libtool script
8243
8244 lt_save_CC="$CC"
8245 ac_ext=c
8246 ac_cpp='$CPP $CPPFLAGS'
8247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8250
8251
8252 # Source file extension for C test sources.
8253 ac_ext=c
8254
8255 # Object file extension for compiled C test sources.
8256 objext=o
8257 objext=$objext
8258
8259 # Code to be used in simple compile tests
8260 lt_simple_compile_test_code="int some_variable = 0;"
8261
8262 # Code to be used in simple link tests
8263 lt_simple_link_test_code='int main(){return(0);}'
8264
8265
8266
8267
8268
8269
8270
8271 # If no C compiler was specified, use CC.
8272 LTCC=${LTCC-"$CC"}
8273
8274 # If no C compiler flags were specified, use CFLAGS.
8275 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8276
8277 # Allow CC to be a program name with arguments.
8278 compiler=$CC
8279
8280 # Save the default compiler, since it gets overwritten when the other
8281 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8282 compiler_DEFAULT=$CC
8283
8284 # save warnings/boilerplate of simple test code
8285 ac_outfile=conftest.$ac_objext
8286 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8287 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8288 _lt_compiler_boilerplate=`cat conftest.err`
8289 $RM conftest*
8290
8291 ac_outfile=conftest.$ac_objext
8292 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8293 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8294 _lt_linker_boilerplate=`cat conftest.err`
8295 $RM -r conftest*
8296
8297
8298 if test -n "$compiler"; then
8299
8300 lt_prog_compiler_no_builtin_flag=
8301
8302 if test "$GCC" = yes; then
8303   case $cc_basename in
8304   nvcc*)
8305     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8306   *)
8307     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8308   esac
8309
8310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8311 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8312 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8313   $as_echo_n "(cached) " >&6
8314 else
8315   lt_cv_prog_compiler_rtti_exceptions=no
8316    ac_outfile=conftest.$ac_objext
8317    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8318    lt_compiler_flag="-fno-rtti -fno-exceptions"
8319    # Insert the option either (1) after the last *FLAGS variable, or
8320    # (2) before a word containing "conftest.", or (3) at the end.
8321    # Note that $ac_compile itself does not contain backslashes and begins
8322    # with a dollar sign (not a hyphen), so the echo should work correctly.
8323    # The option is referenced via a variable to avoid confusing sed.
8324    lt_compile=`echo "$ac_compile" | $SED \
8325    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8326    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8327    -e 's:$: $lt_compiler_flag:'`
8328    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8329    (eval "$lt_compile" 2>conftest.err)
8330    ac_status=$?
8331    cat conftest.err >&5
8332    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333    if (exit $ac_status) && test -s "$ac_outfile"; then
8334      # The compiler can only warn and ignore the option if not recognized
8335      # So say no if there are warnings other than the usual output.
8336      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8337      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8338      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8339        lt_cv_prog_compiler_rtti_exceptions=yes
8340      fi
8341    fi
8342    $RM conftest*
8343
8344 fi
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8346 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8347
8348 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8349     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8350 else
8351     :
8352 fi
8353
8354 fi
8355
8356
8357
8358
8359
8360
8361   lt_prog_compiler_wl=
8362 lt_prog_compiler_pic=
8363 lt_prog_compiler_static=
8364
8365
8366   if test "$GCC" = yes; then
8367     lt_prog_compiler_wl='-Wl,'
8368     lt_prog_compiler_static='-static'
8369
8370     case $host_os in
8371       aix*)
8372       # All AIX code is PIC.
8373       if test "$host_cpu" = ia64; then
8374         # AIX 5 now supports IA64 processor
8375         lt_prog_compiler_static='-Bstatic'
8376       fi
8377       ;;
8378
8379     amigaos*)
8380       case $host_cpu in
8381       powerpc)
8382             # see comment about AmigaOS4 .so support
8383             lt_prog_compiler_pic='-fPIC'
8384         ;;
8385       m68k)
8386             # FIXME: we need at least 68020 code to build shared libraries, but
8387             # adding the `-m68020' flag to GCC prevents building anything better,
8388             # like `-m68040'.
8389             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8390         ;;
8391       esac
8392       ;;
8393
8394     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8395       # PIC is the default for these OSes.
8396       ;;
8397
8398     mingw* | cygwin* | pw32* | os2* | cegcc*)
8399       # This hack is so that the source file can tell whether it is being
8400       # built for inclusion in a dll (and should export symbols for example).
8401       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8402       # (--disable-auto-import) libraries
8403       lt_prog_compiler_pic='-DDLL_EXPORT'
8404       ;;
8405
8406     darwin* | rhapsody*)
8407       # PIC is the default on this platform
8408       # Common symbols not allowed in MH_DYLIB files
8409       lt_prog_compiler_pic='-fno-common'
8410       ;;
8411
8412     haiku*)
8413       # PIC is the default for Haiku.
8414       # The "-static" flag exists, but is broken.
8415       lt_prog_compiler_static=
8416       ;;
8417
8418     hpux*)
8419       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8420       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8421       # sets the default TLS model and affects inlining.
8422       case $host_cpu in
8423       hppa*64*)
8424         # +Z the default
8425         ;;
8426       *)
8427         lt_prog_compiler_pic='-fPIC'
8428         ;;
8429       esac
8430       ;;
8431
8432     interix[3-9]*)
8433       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8434       # Instead, we relocate shared libraries at runtime.
8435       ;;
8436
8437     msdosdjgpp*)
8438       # Just because we use GCC doesn't mean we suddenly get shared libraries
8439       # on systems that don't support them.
8440       lt_prog_compiler_can_build_shared=no
8441       enable_shared=no
8442       ;;
8443
8444     *nto* | *qnx*)
8445       # QNX uses GNU C++, but need to define -shared option too, otherwise
8446       # it will coredump.
8447       lt_prog_compiler_pic='-fPIC -shared'
8448       ;;
8449
8450     sysv4*MP*)
8451       if test -d /usr/nec; then
8452         lt_prog_compiler_pic=-Kconform_pic
8453       fi
8454       ;;
8455
8456     *)
8457       lt_prog_compiler_pic='-fPIC'
8458       ;;
8459     esac
8460
8461     case $cc_basename in
8462     nvcc*) # Cuda Compiler Driver 2.2
8463       lt_prog_compiler_wl='-Xlinker '
8464       if test -n "$lt_prog_compiler_pic"; then
8465         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8466       fi
8467       ;;
8468     esac
8469   else
8470     # PORTME Check for flag to pass linker flags through the system compiler.
8471     case $host_os in
8472     aix*)
8473       lt_prog_compiler_wl='-Wl,'
8474       if test "$host_cpu" = ia64; then
8475         # AIX 5 now supports IA64 processor
8476         lt_prog_compiler_static='-Bstatic'
8477       else
8478         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8479       fi
8480       ;;
8481
8482     mingw* | cygwin* | pw32* | os2* | cegcc*)
8483       # This hack is so that the source file can tell whether it is being
8484       # built for inclusion in a dll (and should export symbols for example).
8485       lt_prog_compiler_pic='-DDLL_EXPORT'
8486       ;;
8487
8488     hpux9* | hpux10* | hpux11*)
8489       lt_prog_compiler_wl='-Wl,'
8490       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8491       # not for PA HP-UX.
8492       case $host_cpu in
8493       hppa*64*|ia64*)
8494         # +Z the default
8495         ;;
8496       *)
8497         lt_prog_compiler_pic='+Z'
8498         ;;
8499       esac
8500       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8501       lt_prog_compiler_static='${wl}-a ${wl}archive'
8502       ;;
8503
8504     irix5* | irix6* | nonstopux*)
8505       lt_prog_compiler_wl='-Wl,'
8506       # PIC (with -KPIC) is the default.
8507       lt_prog_compiler_static='-non_shared'
8508       ;;
8509
8510     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8511       case $cc_basename in
8512       # old Intel for x86_64 which still supported -KPIC.
8513       ecc*)
8514         lt_prog_compiler_wl='-Wl,'
8515         lt_prog_compiler_pic='-KPIC'
8516         lt_prog_compiler_static='-static'
8517         ;;
8518       # icc used to be incompatible with GCC.
8519       # ICC 10 doesn't accept -KPIC any more.
8520       icc* | ifort*)
8521         lt_prog_compiler_wl='-Wl,'
8522         lt_prog_compiler_pic='-fPIC'
8523         lt_prog_compiler_static='-static'
8524         ;;
8525       # Lahey Fortran 8.1.
8526       lf95*)
8527         lt_prog_compiler_wl='-Wl,'
8528         lt_prog_compiler_pic='--shared'
8529         lt_prog_compiler_static='--static'
8530         ;;
8531       nagfor*)
8532         # NAG Fortran compiler
8533         lt_prog_compiler_wl='-Wl,-Wl,,'
8534         lt_prog_compiler_pic='-PIC'
8535         lt_prog_compiler_static='-Bstatic'
8536         ;;
8537       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8538         # Portland Group compilers (*not* the Pentium gcc compiler,
8539         # which looks to be a dead project)
8540         lt_prog_compiler_wl='-Wl,'
8541         lt_prog_compiler_pic='-fpic'
8542         lt_prog_compiler_static='-Bstatic'
8543         ;;
8544       ccc*)
8545         lt_prog_compiler_wl='-Wl,'
8546         # All Alpha code is PIC.
8547         lt_prog_compiler_static='-non_shared'
8548         ;;
8549       xl* | bgxl* | bgf* | mpixl*)
8550         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8551         lt_prog_compiler_wl='-Wl,'
8552         lt_prog_compiler_pic='-qpic'
8553         lt_prog_compiler_static='-qstaticlink'
8554         ;;
8555       *)
8556         case `$CC -V 2>&1 | sed 5q` in
8557         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8558           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8559           lt_prog_compiler_pic='-KPIC'
8560           lt_prog_compiler_static='-Bstatic'
8561           lt_prog_compiler_wl=''
8562           ;;
8563         *Sun\ F* | *Sun*Fortran*)
8564           lt_prog_compiler_pic='-KPIC'
8565           lt_prog_compiler_static='-Bstatic'
8566           lt_prog_compiler_wl='-Qoption ld '
8567           ;;
8568         *Sun\ C*)
8569           # Sun C 5.9
8570           lt_prog_compiler_pic='-KPIC'
8571           lt_prog_compiler_static='-Bstatic'
8572           lt_prog_compiler_wl='-Wl,'
8573           ;;
8574         *Intel*\ [CF]*Compiler*)
8575           lt_prog_compiler_wl='-Wl,'
8576           lt_prog_compiler_pic='-fPIC'
8577           lt_prog_compiler_static='-static'
8578           ;;
8579         *Portland\ Group*)
8580           lt_prog_compiler_wl='-Wl,'
8581           lt_prog_compiler_pic='-fpic'
8582           lt_prog_compiler_static='-Bstatic'
8583           ;;
8584         esac
8585         ;;
8586       esac
8587       ;;
8588
8589     newsos6)
8590       lt_prog_compiler_pic='-KPIC'
8591       lt_prog_compiler_static='-Bstatic'
8592       ;;
8593
8594     *nto* | *qnx*)
8595       # QNX uses GNU C++, but need to define -shared option too, otherwise
8596       # it will coredump.
8597       lt_prog_compiler_pic='-fPIC -shared'
8598       ;;
8599
8600     osf3* | osf4* | osf5*)
8601       lt_prog_compiler_wl='-Wl,'
8602       # All OSF/1 code is PIC.
8603       lt_prog_compiler_static='-non_shared'
8604       ;;
8605
8606     rdos*)
8607       lt_prog_compiler_static='-non_shared'
8608       ;;
8609
8610     solaris*)
8611       lt_prog_compiler_pic='-KPIC'
8612       lt_prog_compiler_static='-Bstatic'
8613       case $cc_basename in
8614       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8615         lt_prog_compiler_wl='-Qoption ld ';;
8616       *)
8617         lt_prog_compiler_wl='-Wl,';;
8618       esac
8619       ;;
8620
8621     sunos4*)
8622       lt_prog_compiler_wl='-Qoption ld '
8623       lt_prog_compiler_pic='-PIC'
8624       lt_prog_compiler_static='-Bstatic'
8625       ;;
8626
8627     sysv4 | sysv4.2uw2* | sysv4.3*)
8628       lt_prog_compiler_wl='-Wl,'
8629       lt_prog_compiler_pic='-KPIC'
8630       lt_prog_compiler_static='-Bstatic'
8631       ;;
8632
8633     sysv4*MP*)
8634       if test -d /usr/nec ;then
8635         lt_prog_compiler_pic='-Kconform_pic'
8636         lt_prog_compiler_static='-Bstatic'
8637       fi
8638       ;;
8639
8640     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8641       lt_prog_compiler_wl='-Wl,'
8642       lt_prog_compiler_pic='-KPIC'
8643       lt_prog_compiler_static='-Bstatic'
8644       ;;
8645
8646     unicos*)
8647       lt_prog_compiler_wl='-Wl,'
8648       lt_prog_compiler_can_build_shared=no
8649       ;;
8650
8651     uts4*)
8652       lt_prog_compiler_pic='-pic'
8653       lt_prog_compiler_static='-Bstatic'
8654       ;;
8655
8656     *)
8657       lt_prog_compiler_can_build_shared=no
8658       ;;
8659     esac
8660   fi
8661
8662 case $host_os in
8663   # For platforms which do not support PIC, -DPIC is meaningless:
8664   *djgpp*)
8665     lt_prog_compiler_pic=
8666     ;;
8667   *)
8668     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8669     ;;
8670 esac
8671
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8673 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8674 if ${lt_cv_prog_compiler_pic+:} false; then :
8675   $as_echo_n "(cached) " >&6
8676 else
8677   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8678 fi
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8680 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8681 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8682
8683 #
8684 # Check to make sure the PIC flag actually works.
8685 #
8686 if test -n "$lt_prog_compiler_pic"; then
8687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8688 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8689 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8690   $as_echo_n "(cached) " >&6
8691 else
8692   lt_cv_prog_compiler_pic_works=no
8693    ac_outfile=conftest.$ac_objext
8694    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8695    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8696    # Insert the option either (1) after the last *FLAGS variable, or
8697    # (2) before a word containing "conftest.", or (3) at the end.
8698    # Note that $ac_compile itself does not contain backslashes and begins
8699    # with a dollar sign (not a hyphen), so the echo should work correctly.
8700    # The option is referenced via a variable to avoid confusing sed.
8701    lt_compile=`echo "$ac_compile" | $SED \
8702    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8703    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8704    -e 's:$: $lt_compiler_flag:'`
8705    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8706    (eval "$lt_compile" 2>conftest.err)
8707    ac_status=$?
8708    cat conftest.err >&5
8709    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710    if (exit $ac_status) && test -s "$ac_outfile"; then
8711      # The compiler can only warn and ignore the option if not recognized
8712      # So say no if there are warnings other than the usual output.
8713      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8714      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8715      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8716        lt_cv_prog_compiler_pic_works=yes
8717      fi
8718    fi
8719    $RM conftest*
8720
8721 fi
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8723 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8724
8725 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8726     case $lt_prog_compiler_pic in
8727      "" | " "*) ;;
8728      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8729      esac
8730 else
8731     lt_prog_compiler_pic=
8732      lt_prog_compiler_can_build_shared=no
8733 fi
8734
8735 fi
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747 #
8748 # Check to make sure the static flag actually works.
8749 #
8750 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8752 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8753 if ${lt_cv_prog_compiler_static_works+:} false; then :
8754   $as_echo_n "(cached) " >&6
8755 else
8756   lt_cv_prog_compiler_static_works=no
8757    save_LDFLAGS="$LDFLAGS"
8758    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8759    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8760    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8761      # The linker can only warn and ignore the option if not recognized
8762      # So say no if there are warnings
8763      if test -s conftest.err; then
8764        # Append any errors to the config.log.
8765        cat conftest.err 1>&5
8766        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8767        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8768        if diff conftest.exp conftest.er2 >/dev/null; then
8769          lt_cv_prog_compiler_static_works=yes
8770        fi
8771      else
8772        lt_cv_prog_compiler_static_works=yes
8773      fi
8774    fi
8775    $RM -r conftest*
8776    LDFLAGS="$save_LDFLAGS"
8777
8778 fi
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8780 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8781
8782 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8783     :
8784 else
8785     lt_prog_compiler_static=
8786 fi
8787
8788
8789
8790
8791
8792
8793
8794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8795 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8796 if ${lt_cv_prog_compiler_c_o+:} false; then :
8797   $as_echo_n "(cached) " >&6
8798 else
8799   lt_cv_prog_compiler_c_o=no
8800    $RM -r conftest 2>/dev/null
8801    mkdir conftest
8802    cd conftest
8803    mkdir out
8804    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8805
8806    lt_compiler_flag="-o out/conftest2.$ac_objext"
8807    # Insert the option either (1) after the last *FLAGS variable, or
8808    # (2) before a word containing "conftest.", or (3) at the end.
8809    # Note that $ac_compile itself does not contain backslashes and begins
8810    # with a dollar sign (not a hyphen), so the echo should work correctly.
8811    lt_compile=`echo "$ac_compile" | $SED \
8812    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8813    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8814    -e 's:$: $lt_compiler_flag:'`
8815    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8816    (eval "$lt_compile" 2>out/conftest.err)
8817    ac_status=$?
8818    cat out/conftest.err >&5
8819    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8821    then
8822      # The compiler can only warn and ignore the option if not recognized
8823      # So say no if there are warnings
8824      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8825      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8826      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8827        lt_cv_prog_compiler_c_o=yes
8828      fi
8829    fi
8830    chmod u+w . 2>&5
8831    $RM conftest*
8832    # SGI C++ compiler will create directory out/ii_files/ for
8833    # template instantiation
8834    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8835    $RM out/* && rmdir out
8836    cd ..
8837    $RM -r conftest
8838    $RM conftest*
8839
8840 fi
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8842 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8843
8844
8845
8846
8847
8848
8849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8850 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8851 if ${lt_cv_prog_compiler_c_o+:} false; then :
8852   $as_echo_n "(cached) " >&6
8853 else
8854   lt_cv_prog_compiler_c_o=no
8855    $RM -r conftest 2>/dev/null
8856    mkdir conftest
8857    cd conftest
8858    mkdir out
8859    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8860
8861    lt_compiler_flag="-o out/conftest2.$ac_objext"
8862    # Insert the option either (1) after the last *FLAGS variable, or
8863    # (2) before a word containing "conftest.", or (3) at the end.
8864    # Note that $ac_compile itself does not contain backslashes and begins
8865    # with a dollar sign (not a hyphen), so the echo should work correctly.
8866    lt_compile=`echo "$ac_compile" | $SED \
8867    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8868    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8869    -e 's:$: $lt_compiler_flag:'`
8870    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8871    (eval "$lt_compile" 2>out/conftest.err)
8872    ac_status=$?
8873    cat out/conftest.err >&5
8874    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8876    then
8877      # The compiler can only warn and ignore the option if not recognized
8878      # So say no if there are warnings
8879      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8880      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8881      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8882        lt_cv_prog_compiler_c_o=yes
8883      fi
8884    fi
8885    chmod u+w . 2>&5
8886    $RM conftest*
8887    # SGI C++ compiler will create directory out/ii_files/ for
8888    # template instantiation
8889    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8890    $RM out/* && rmdir out
8891    cd ..
8892    $RM -r conftest
8893    $RM conftest*
8894
8895 fi
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8897 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8898
8899
8900
8901
8902 hard_links="nottested"
8903 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8904   # do not overwrite the value of need_locks provided by the user
8905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8906 $as_echo_n "checking if we can lock with hard links... " >&6; }
8907   hard_links=yes
8908   $RM conftest*
8909   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8910   touch conftest.a
8911   ln conftest.a conftest.b 2>&5 || hard_links=no
8912   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8914 $as_echo "$hard_links" >&6; }
8915   if test "$hard_links" = no; then
8916     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8917 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8918     need_locks=warn
8919   fi
8920 else
8921   need_locks=no
8922 fi
8923
8924
8925
8926
8927
8928
8929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8930 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8931
8932   runpath_var=
8933   allow_undefined_flag=
8934   always_export_symbols=no
8935   archive_cmds=
8936   archive_expsym_cmds=
8937   compiler_needs_object=no
8938   enable_shared_with_static_runtimes=no
8939   export_dynamic_flag_spec=
8940   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8941   hardcode_automatic=no
8942   hardcode_direct=no
8943   hardcode_direct_absolute=no
8944   hardcode_libdir_flag_spec=
8945   hardcode_libdir_separator=
8946   hardcode_minus_L=no
8947   hardcode_shlibpath_var=unsupported
8948   inherit_rpath=no
8949   link_all_deplibs=unknown
8950   module_cmds=
8951   module_expsym_cmds=
8952   old_archive_from_new_cmds=
8953   old_archive_from_expsyms_cmds=
8954   thread_safe_flag_spec=
8955   whole_archive_flag_spec=
8956   # include_expsyms should be a list of space-separated symbols to be *always*
8957   # included in the symbol list
8958   include_expsyms=
8959   # exclude_expsyms can be an extended regexp of symbols to exclude
8960   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8961   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8962   # as well as any symbol that contains `d'.
8963   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8964   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8965   # platforms (ab)use it in PIC code, but their linkers get confused if
8966   # the symbol is explicitly referenced.  Since portable code cannot
8967   # rely on this symbol name, it's probably fine to never include it in
8968   # preloaded symbol tables.
8969   # Exclude shared library initialization/finalization symbols.
8970   extract_expsyms_cmds=
8971
8972   case $host_os in
8973   cygwin* | mingw* | pw32* | cegcc*)
8974     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8975     # When not using gcc, we currently assume that we are using
8976     # Microsoft Visual C++.
8977     if test "$GCC" != yes; then
8978       with_gnu_ld=no
8979     fi
8980     ;;
8981   interix*)
8982     # we just hope/assume this is gcc and not c89 (= MSVC++)
8983     with_gnu_ld=yes
8984     ;;
8985   openbsd*)
8986     with_gnu_ld=no
8987     ;;
8988   linux* | k*bsd*-gnu | gnu*)
8989     link_all_deplibs=no
8990     ;;
8991   esac
8992
8993   ld_shlibs=yes
8994
8995   # On some targets, GNU ld is compatible enough with the native linker
8996   # that we're better off using the native interface for both.
8997   lt_use_gnu_ld_interface=no
8998   if test "$with_gnu_ld" = yes; then
8999     case $host_os in
9000       aix*)
9001         # The AIX port of GNU ld has always aspired to compatibility
9002         # with the native linker.  However, as the warning in the GNU ld
9003         # block says, versions before 2.19.5* couldn't really create working
9004         # shared libraries, regardless of the interface used.
9005         case `$LD -v 2>&1` in
9006           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9007           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9008           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9009           *)
9010             lt_use_gnu_ld_interface=yes
9011             ;;
9012         esac
9013         ;;
9014       *)
9015         lt_use_gnu_ld_interface=yes
9016         ;;
9017     esac
9018   fi
9019
9020   if test "$lt_use_gnu_ld_interface" = yes; then
9021     # If archive_cmds runs LD, not CC, wlarc should be empty
9022     wlarc='${wl}'
9023
9024     # Set some defaults for GNU ld with shared library support. These
9025     # are reset later if shared libraries are not supported. Putting them
9026     # here allows them to be overridden if necessary.
9027     runpath_var=LD_RUN_PATH
9028     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9029     export_dynamic_flag_spec='${wl}--export-dynamic'
9030     # ancient GNU ld didn't support --whole-archive et. al.
9031     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9032       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9033     else
9034       whole_archive_flag_spec=
9035     fi
9036     supports_anon_versioning=no
9037     case `$LD -v 2>&1` in
9038       *GNU\ gold*) supports_anon_versioning=yes ;;
9039       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9040       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9041       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9042       *\ 2.11.*) ;; # other 2.11 versions
9043       *) supports_anon_versioning=yes ;;
9044     esac
9045
9046     # See if GNU ld supports shared libraries.
9047     case $host_os in
9048     aix[3-9]*)
9049       # On AIX/PPC, the GNU linker is very broken
9050       if test "$host_cpu" != ia64; then
9051         ld_shlibs=no
9052         cat <<_LT_EOF 1>&2
9053
9054 *** Warning: the GNU linker, at least up to release 2.19, is reported
9055 *** to be unable to reliably create shared libraries on AIX.
9056 *** Therefore, libtool is disabling shared libraries support.  If you
9057 *** really care for shared libraries, you may want to install binutils
9058 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9059 *** You will then need to restart the configuration process.
9060
9061 _LT_EOF
9062       fi
9063       ;;
9064
9065     amigaos*)
9066       case $host_cpu in
9067       powerpc)
9068             # see comment about AmigaOS4 .so support
9069             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9070             archive_expsym_cmds=''
9071         ;;
9072       m68k)
9073             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)'
9074             hardcode_libdir_flag_spec='-L$libdir'
9075             hardcode_minus_L=yes
9076         ;;
9077       esac
9078       ;;
9079
9080     beos*)
9081       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9082         allow_undefined_flag=unsupported
9083         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9084         # support --undefined.  This deserves some investigation.  FIXME
9085         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9086       else
9087         ld_shlibs=no
9088       fi
9089       ;;
9090
9091     cygwin* | mingw* | pw32* | cegcc*)
9092       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9093       # as there is no search path for DLLs.
9094       hardcode_libdir_flag_spec='-L$libdir'
9095       export_dynamic_flag_spec='${wl}--export-all-symbols'
9096       allow_undefined_flag=unsupported
9097       always_export_symbols=no
9098       enable_shared_with_static_runtimes=yes
9099       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'
9100       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9101
9102       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9103         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9104         # If the export-symbols file already is a .def file (1st line
9105         # is EXPORTS), use it as is; otherwise, prepend...
9106         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9107           cp $export_symbols $output_objdir/$soname.def;
9108         else
9109           echo EXPORTS > $output_objdir/$soname.def;
9110           cat $export_symbols >> $output_objdir/$soname.def;
9111         fi~
9112         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9113       else
9114         ld_shlibs=no
9115       fi
9116       ;;
9117
9118     haiku*)
9119       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9120       link_all_deplibs=yes
9121       ;;
9122
9123     interix[3-9]*)
9124       hardcode_direct=no
9125       hardcode_shlibpath_var=no
9126       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9127       export_dynamic_flag_spec='${wl}-E'
9128       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9129       # Instead, shared libraries are loaded at an image base (0x10000000 by
9130       # default) and relocated if they conflict, which is a slow very memory
9131       # consuming and fragmenting process.  To avoid this, we pick a random,
9132       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9133       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9134       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9135       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'
9136       ;;
9137
9138     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9139       tmp_diet=no
9140       if test "$host_os" = linux-dietlibc; then
9141         case $cc_basename in
9142           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9143         esac
9144       fi
9145       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9146          && test "$tmp_diet" = no
9147       then
9148         tmp_addflag=' $pic_flag'
9149         tmp_sharedflag='-shared'
9150         case $cc_basename,$host_cpu in
9151         pgcc*)                          # Portland Group C compiler
9152           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'
9153           tmp_addflag=' $pic_flag'
9154           ;;
9155         pgf77* | pgf90* | pgf95* | pgfortran*)
9156                                         # Portland Group f77 and f90 compilers
9157           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'
9158           tmp_addflag=' $pic_flag -Mnomain' ;;
9159         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9160           tmp_addflag=' -i_dynamic' ;;
9161         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9162           tmp_addflag=' -i_dynamic -nofor_main' ;;
9163         ifc* | ifort*)                  # Intel Fortran compiler
9164           tmp_addflag=' -nofor_main' ;;
9165         lf95*)                          # Lahey Fortran 8.1
9166           whole_archive_flag_spec=
9167           tmp_sharedflag='--shared' ;;
9168         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9169           tmp_sharedflag='-qmkshrobj'
9170           tmp_addflag= ;;
9171         nvcc*)  # Cuda Compiler Driver 2.2
9172           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'
9173           compiler_needs_object=yes
9174           ;;
9175         esac
9176         case `$CC -V 2>&1 | sed 5q` in
9177         *Sun\ C*)                       # Sun C 5.9
9178           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'
9179           compiler_needs_object=yes
9180           tmp_sharedflag='-G' ;;
9181         *Sun\ F*)                       # Sun Fortran 8.3
9182           tmp_sharedflag='-G' ;;
9183         esac
9184         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9185
9186         if test "x$supports_anon_versioning" = xyes; then
9187           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9188             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9189             echo "local: *; };" >> $output_objdir/$libname.ver~
9190             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9191         fi
9192
9193         case $cc_basename in
9194         xlf* | bgf* | bgxlf* | mpixlf*)
9195           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9196           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9197           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9198           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9199           if test "x$supports_anon_versioning" = xyes; then
9200             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9201               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9202               echo "local: *; };" >> $output_objdir/$libname.ver~
9203               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9204           fi
9205           ;;
9206         esac
9207       else
9208         ld_shlibs=no
9209       fi
9210       ;;
9211
9212     netbsd* | netbsdelf*-gnu)
9213       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9214         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9215         wlarc=
9216       else
9217         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9218         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9219       fi
9220       ;;
9221
9222     solaris*)
9223       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9224         ld_shlibs=no
9225         cat <<_LT_EOF 1>&2
9226
9227 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9228 *** create shared libraries on Solaris systems.  Therefore, libtool
9229 *** is disabling shared libraries support.  We urge you to upgrade GNU
9230 *** binutils to release 2.9.1 or newer.  Another option is to modify
9231 *** your PATH or compiler configuration so that the native linker is
9232 *** used, and then restart.
9233
9234 _LT_EOF
9235       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9236         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9237         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9238       else
9239         ld_shlibs=no
9240       fi
9241       ;;
9242
9243     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9244       case `$LD -v 2>&1` in
9245         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9246         ld_shlibs=no
9247         cat <<_LT_EOF 1>&2
9248
9249 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9250 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9251 *** is disabling shared libraries support.  We urge you to upgrade GNU
9252 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9253 *** your PATH or compiler configuration so that the native linker is
9254 *** used, and then restart.
9255
9256 _LT_EOF
9257         ;;
9258         *)
9259           # For security reasons, it is highly recommended that you always
9260           # use absolute paths for naming shared libraries, and exclude the
9261           # DT_RUNPATH tag from executables and libraries.  But doing so
9262           # requires that you compile everything twice, which is a pain.
9263           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9264             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9265             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9266             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9267           else
9268             ld_shlibs=no
9269           fi
9270         ;;
9271       esac
9272       ;;
9273
9274     sunos4*)
9275       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9276       wlarc=
9277       hardcode_direct=yes
9278       hardcode_shlibpath_var=no
9279       ;;
9280
9281     *)
9282       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9283         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9285       else
9286         ld_shlibs=no
9287       fi
9288       ;;
9289     esac
9290
9291     if test "$ld_shlibs" = no; then
9292       runpath_var=
9293       hardcode_libdir_flag_spec=
9294       export_dynamic_flag_spec=
9295       whole_archive_flag_spec=
9296     fi
9297   else
9298     # PORTME fill in a description of your system's linker (not GNU ld)
9299     case $host_os in
9300     aix3*)
9301       allow_undefined_flag=unsupported
9302       always_export_symbols=yes
9303       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'
9304       # Note: this linker hardcodes the directories in LIBPATH if there
9305       # are no directories specified by -L.
9306       hardcode_minus_L=yes
9307       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9308         # Neither direct hardcoding nor static linking is supported with a
9309         # broken collect2.
9310         hardcode_direct=unsupported
9311       fi
9312       ;;
9313
9314     aix[4-9]*)
9315       if test "$host_cpu" = ia64; then
9316         # On IA64, the linker does run time linking by default, so we don't
9317         # have to do anything special.
9318         aix_use_runtimelinking=no
9319         exp_sym_flag='-Bexport'
9320         no_entry_flag=""
9321       else
9322         # If we're using GNU nm, then we don't want the "-C" option.
9323         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9324         # Also, AIX nm treats weak defined symbols like other global
9325         # defined symbols, whereas GNU nm marks them as "W".
9326         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9327           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'
9328         else
9329           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'
9330         fi
9331         aix_use_runtimelinking=no
9332
9333         # Test if we are trying to use run time linking or normal
9334         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9335         # need to do runtime linking.
9336         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9337           for ld_flag in $LDFLAGS; do
9338           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9339             aix_use_runtimelinking=yes
9340             break
9341           fi
9342           done
9343           ;;
9344         esac
9345
9346         exp_sym_flag='-bexport'
9347         no_entry_flag='-bnoentry'
9348       fi
9349
9350       # When large executables or shared objects are built, AIX ld can
9351       # have problems creating the table of contents.  If linking a library
9352       # or program results in "error TOC overflow" add -mminimal-toc to
9353       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9354       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9355
9356       archive_cmds=''
9357       hardcode_direct=yes
9358       hardcode_direct_absolute=yes
9359       hardcode_libdir_separator=':'
9360       link_all_deplibs=yes
9361       file_list_spec='${wl}-f,'
9362
9363       if test "$GCC" = yes; then
9364         case $host_os in aix4.[012]|aix4.[012].*)
9365         # We only want to do this on AIX 4.2 and lower, the check
9366         # below for broken collect2 doesn't work under 4.3+
9367           collect2name=`${CC} -print-prog-name=collect2`
9368           if test -f "$collect2name" &&
9369            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9370           then
9371           # We have reworked collect2
9372           :
9373           else
9374           # We have old collect2
9375           hardcode_direct=unsupported
9376           # It fails to find uninstalled libraries when the uninstalled
9377           # path is not listed in the libpath.  Setting hardcode_minus_L
9378           # to unsupported forces relinking
9379           hardcode_minus_L=yes
9380           hardcode_libdir_flag_spec='-L$libdir'
9381           hardcode_libdir_separator=
9382           fi
9383           ;;
9384         esac
9385         shared_flag='-shared'
9386         if test "$aix_use_runtimelinking" = yes; then
9387           shared_flag="$shared_flag "'${wl}-G'
9388         fi
9389         link_all_deplibs=no
9390       else
9391         # not using gcc
9392         if test "$host_cpu" = ia64; then
9393         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9394         # chokes on -Wl,-G. The following line is correct:
9395           shared_flag='-G'
9396         else
9397           if test "$aix_use_runtimelinking" = yes; then
9398             shared_flag='${wl}-G'
9399           else
9400             shared_flag='${wl}-bM:SRE'
9401           fi
9402         fi
9403       fi
9404
9405       export_dynamic_flag_spec='${wl}-bexpall'
9406       # It seems that -bexpall does not export symbols beginning with
9407       # underscore (_), so it is better to generate a list of symbols to export.
9408       always_export_symbols=yes
9409       if test "$aix_use_runtimelinking" = yes; then
9410         # Warning - without using the other runtime loading flags (-brtl),
9411         # -berok will link without error, but may produce a broken library.
9412         allow_undefined_flag='-berok'
9413         # Determine the default libpath from the value encoded in an
9414         # empty executable.
9415         if test "${lt_cv_aix_libpath+set}" = set; then
9416   aix_libpath=$lt_cv_aix_libpath
9417 else
9418   if ${lt_cv_aix_libpath_+:} false; then :
9419   $as_echo_n "(cached) " >&6
9420 else
9421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h.  */
9423
9424 int
9425 main ()
9426 {
9427
9428   ;
9429   return 0;
9430 }
9431 _ACEOF
9432 if ac_fn_c_try_link "$LINENO"; then :
9433
9434   lt_aix_libpath_sed='
9435       /Import File Strings/,/^$/ {
9436           /^0/ {
9437               s/^0  *\([^ ]*\) *$/\1/
9438               p
9439           }
9440       }'
9441   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9442   # Check for a 64-bit object if we didn't find anything.
9443   if test -z "$lt_cv_aix_libpath_"; then
9444     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9445   fi
9446 fi
9447 rm -f core conftest.err conftest.$ac_objext \
9448     conftest$ac_exeext conftest.$ac_ext
9449   if test -z "$lt_cv_aix_libpath_"; then
9450     lt_cv_aix_libpath_="/usr/lib:/lib"
9451   fi
9452
9453 fi
9454
9455   aix_libpath=$lt_cv_aix_libpath_
9456 fi
9457
9458         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9459         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"
9460       else
9461         if test "$host_cpu" = ia64; then
9462           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9463           allow_undefined_flag="-z nodefs"
9464           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"
9465         else
9466          # Determine the default libpath from the value encoded in an
9467          # empty executable.
9468          if test "${lt_cv_aix_libpath+set}" = set; then
9469   aix_libpath=$lt_cv_aix_libpath
9470 else
9471   if ${lt_cv_aix_libpath_+:} false; then :
9472   $as_echo_n "(cached) " >&6
9473 else
9474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h.  */
9476
9477 int
9478 main ()
9479 {
9480
9481   ;
9482   return 0;
9483 }
9484 _ACEOF
9485 if ac_fn_c_try_link "$LINENO"; then :
9486
9487   lt_aix_libpath_sed='
9488       /Import File Strings/,/^$/ {
9489           /^0/ {
9490               s/^0  *\([^ ]*\) *$/\1/
9491               p
9492           }
9493       }'
9494   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9495   # Check for a 64-bit object if we didn't find anything.
9496   if test -z "$lt_cv_aix_libpath_"; then
9497     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9498   fi
9499 fi
9500 rm -f core conftest.err conftest.$ac_objext \
9501     conftest$ac_exeext conftest.$ac_ext
9502   if test -z "$lt_cv_aix_libpath_"; then
9503     lt_cv_aix_libpath_="/usr/lib:/lib"
9504   fi
9505
9506 fi
9507
9508   aix_libpath=$lt_cv_aix_libpath_
9509 fi
9510
9511          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9512           # Warning - without using the other run time loading flags,
9513           # -berok will link without error, but may produce a broken library.
9514           no_undefined_flag=' ${wl}-bernotok'
9515           allow_undefined_flag=' ${wl}-berok'
9516           if test "$with_gnu_ld" = yes; then
9517             # We only use this code for GNU lds that support --whole-archive.
9518             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9519           else
9520             # Exported symbols can be pulled into shared objects from archives
9521             whole_archive_flag_spec='$convenience'
9522           fi
9523           archive_cmds_need_lc=yes
9524           # This is similar to how AIX traditionally builds its shared libraries.
9525           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'
9526         fi
9527       fi
9528       ;;
9529
9530     amigaos*)
9531       case $host_cpu in
9532       powerpc)
9533             # see comment about AmigaOS4 .so support
9534             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9535             archive_expsym_cmds=''
9536         ;;
9537       m68k)
9538             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)'
9539             hardcode_libdir_flag_spec='-L$libdir'
9540             hardcode_minus_L=yes
9541         ;;
9542       esac
9543       ;;
9544
9545     bsdi[45]*)
9546       export_dynamic_flag_spec=-rdynamic
9547       ;;
9548
9549     cygwin* | mingw* | pw32* | cegcc*)
9550       # When not using gcc, we currently assume that we are using
9551       # Microsoft Visual C++.
9552       # hardcode_libdir_flag_spec is actually meaningless, as there is
9553       # no search path for DLLs.
9554       case $cc_basename in
9555       cl*)
9556         # Native MSVC
9557         hardcode_libdir_flag_spec=' '
9558         allow_undefined_flag=unsupported
9559         always_export_symbols=yes
9560         file_list_spec='@'
9561         # Tell ltmain to make .lib files, not .a files.
9562         libext=lib
9563         # Tell ltmain to make .dll files, not .so files.
9564         shrext_cmds=".dll"
9565         # FIXME: Setting linknames here is a bad hack.
9566         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9567         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9568             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9569           else
9570             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9571           fi~
9572           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9573           linknames='
9574         # The linker will not automatically build a static lib if we build a DLL.
9575         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9576         enable_shared_with_static_runtimes=yes
9577         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9578         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9579         # Don't use ranlib
9580         old_postinstall_cmds='chmod 644 $oldlib'
9581         postlink_cmds='lt_outputfile="@OUTPUT@"~
9582           lt_tool_outputfile="@TOOL_OUTPUT@"~
9583           case $lt_outputfile in
9584             *.exe|*.EXE) ;;
9585             *)
9586               lt_outputfile="$lt_outputfile.exe"
9587               lt_tool_outputfile="$lt_tool_outputfile.exe"
9588               ;;
9589           esac~
9590           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9591             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9592             $RM "$lt_outputfile.manifest";
9593           fi'
9594         ;;
9595       *)
9596         # Assume MSVC wrapper
9597         hardcode_libdir_flag_spec=' '
9598         allow_undefined_flag=unsupported
9599         # Tell ltmain to make .lib files, not .a files.
9600         libext=lib
9601         # Tell ltmain to make .dll files, not .so files.
9602         shrext_cmds=".dll"
9603         # FIXME: Setting linknames here is a bad hack.
9604         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9605         # The linker will automatically build a .lib file if we build a DLL.
9606         old_archive_from_new_cmds='true'
9607         # FIXME: Should let the user specify the lib program.
9608         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9609         enable_shared_with_static_runtimes=yes
9610         ;;
9611       esac
9612       ;;
9613
9614     darwin* | rhapsody*)
9615
9616
9617   archive_cmds_need_lc=no
9618   hardcode_direct=no
9619   hardcode_automatic=yes
9620   hardcode_shlibpath_var=unsupported
9621   if test "$lt_cv_ld_force_load" = "yes"; then
9622     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\"`'
9623
9624   else
9625     whole_archive_flag_spec=''
9626   fi
9627   link_all_deplibs=yes
9628   allow_undefined_flag="$_lt_dar_allow_undefined"
9629   case $cc_basename in
9630      ifort*) _lt_dar_can_shared=yes ;;
9631      *) _lt_dar_can_shared=$GCC ;;
9632   esac
9633   if test "$_lt_dar_can_shared" = "yes"; then
9634     output_verbose_link_cmd=func_echo_all
9635     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9636     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9637     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}"
9638     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}"
9639
9640   else
9641   ld_shlibs=no
9642   fi
9643
9644       ;;
9645
9646     dgux*)
9647       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9648       hardcode_libdir_flag_spec='-L$libdir'
9649       hardcode_shlibpath_var=no
9650       ;;
9651
9652     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9653     # support.  Future versions do this automatically, but an explicit c++rt0.o
9654     # does not break anything, and helps significantly (at the cost of a little
9655     # extra space).
9656     freebsd2.2*)
9657       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9658       hardcode_libdir_flag_spec='-R$libdir'
9659       hardcode_direct=yes
9660       hardcode_shlibpath_var=no
9661       ;;
9662
9663     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9664     freebsd2.*)
9665       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9666       hardcode_direct=yes
9667       hardcode_minus_L=yes
9668       hardcode_shlibpath_var=no
9669       ;;
9670
9671     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9672     freebsd* | dragonfly*)
9673       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9674       hardcode_libdir_flag_spec='-R$libdir'
9675       hardcode_direct=yes
9676       hardcode_shlibpath_var=no
9677       ;;
9678
9679     hpux9*)
9680       if test "$GCC" = yes; then
9681         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'
9682       else
9683         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'
9684       fi
9685       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9686       hardcode_libdir_separator=:
9687       hardcode_direct=yes
9688
9689       # hardcode_minus_L: Not really in the search PATH,
9690       # but as the default location of the library.
9691       hardcode_minus_L=yes
9692       export_dynamic_flag_spec='${wl}-E'
9693       ;;
9694
9695     hpux10*)
9696       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9697         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9698       else
9699         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9700       fi
9701       if test "$with_gnu_ld" = no; then
9702         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9703         hardcode_libdir_separator=:
9704         hardcode_direct=yes
9705         hardcode_direct_absolute=yes
9706         export_dynamic_flag_spec='${wl}-E'
9707         # hardcode_minus_L: Not really in the search PATH,
9708         # but as the default location of the library.
9709         hardcode_minus_L=yes
9710       fi
9711       ;;
9712
9713     hpux11*)
9714       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9715         case $host_cpu in
9716         hppa*64*)
9717           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9718           ;;
9719         ia64*)
9720           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9721           ;;
9722         *)
9723           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9724           ;;
9725         esac
9726       else
9727         case $host_cpu in
9728         hppa*64*)
9729           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9730           ;;
9731         ia64*)
9732           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9733           ;;
9734         *)
9735
9736           # Older versions of the 11.00 compiler do not understand -b yet
9737           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9738           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9739 $as_echo_n "checking if $CC understands -b... " >&6; }
9740 if ${lt_cv_prog_compiler__b+:} false; then :
9741   $as_echo_n "(cached) " >&6
9742 else
9743   lt_cv_prog_compiler__b=no
9744    save_LDFLAGS="$LDFLAGS"
9745    LDFLAGS="$LDFLAGS -b"
9746    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9747    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9748      # The linker can only warn and ignore the option if not recognized
9749      # So say no if there are warnings
9750      if test -s conftest.err; then
9751        # Append any errors to the config.log.
9752        cat conftest.err 1>&5
9753        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9754        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9755        if diff conftest.exp conftest.er2 >/dev/null; then
9756          lt_cv_prog_compiler__b=yes
9757        fi
9758      else
9759        lt_cv_prog_compiler__b=yes
9760      fi
9761    fi
9762    $RM -r conftest*
9763    LDFLAGS="$save_LDFLAGS"
9764
9765 fi
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9767 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9768
9769 if test x"$lt_cv_prog_compiler__b" = xyes; then
9770     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9771 else
9772     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9773 fi
9774
9775           ;;
9776         esac
9777       fi
9778       if test "$with_gnu_ld" = no; then
9779         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9780         hardcode_libdir_separator=:
9781
9782         case $host_cpu in
9783         hppa*64*|ia64*)
9784           hardcode_direct=no
9785           hardcode_shlibpath_var=no
9786           ;;
9787         *)
9788           hardcode_direct=yes
9789           hardcode_direct_absolute=yes
9790           export_dynamic_flag_spec='${wl}-E'
9791
9792           # hardcode_minus_L: Not really in the search PATH,
9793           # but as the default location of the library.
9794           hardcode_minus_L=yes
9795           ;;
9796         esac
9797       fi
9798       ;;
9799
9800     irix5* | irix6* | nonstopux*)
9801       if test "$GCC" = yes; then
9802         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'
9803         # Try to use the -exported_symbol ld option, if it does not
9804         # work, assume that -exports_file does not work either and
9805         # implicitly export all symbols.
9806         # This should be the same for all languages, so no per-tag cache variable.
9807         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9808 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9809 if ${lt_cv_irix_exported_symbol+:} false; then :
9810   $as_echo_n "(cached) " >&6
9811 else
9812   save_LDFLAGS="$LDFLAGS"
9813            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9814            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h.  */
9816 int foo (void) { return 0; }
9817 _ACEOF
9818 if ac_fn_c_try_link "$LINENO"; then :
9819   lt_cv_irix_exported_symbol=yes
9820 else
9821   lt_cv_irix_exported_symbol=no
9822 fi
9823 rm -f core conftest.err conftest.$ac_objext \
9824     conftest$ac_exeext conftest.$ac_ext
9825            LDFLAGS="$save_LDFLAGS"
9826 fi
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9828 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9829         if test "$lt_cv_irix_exported_symbol" = yes; then
9830           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'
9831         fi
9832       else
9833         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'
9834         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'
9835       fi
9836       archive_cmds_need_lc='no'
9837       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9838       hardcode_libdir_separator=:
9839       inherit_rpath=yes
9840       link_all_deplibs=yes
9841       ;;
9842
9843     netbsd* | netbsdelf*-gnu)
9844       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9845         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9846       else
9847         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9848       fi
9849       hardcode_libdir_flag_spec='-R$libdir'
9850       hardcode_direct=yes
9851       hardcode_shlibpath_var=no
9852       ;;
9853
9854     newsos6)
9855       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9856       hardcode_direct=yes
9857       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9858       hardcode_libdir_separator=:
9859       hardcode_shlibpath_var=no
9860       ;;
9861
9862     *nto* | *qnx*)
9863       ;;
9864
9865     openbsd*)
9866       if test -f /usr/libexec/ld.so; then
9867         hardcode_direct=yes
9868         hardcode_shlibpath_var=no
9869         hardcode_direct_absolute=yes
9870         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9871           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9872           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9873           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9874           export_dynamic_flag_spec='${wl}-E'
9875         else
9876           case $host_os in
9877            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9878              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9879              hardcode_libdir_flag_spec='-R$libdir'
9880              ;;
9881            *)
9882              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9883              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9884              ;;
9885           esac
9886         fi
9887       else
9888         ld_shlibs=no
9889       fi
9890       ;;
9891
9892     os2*)
9893       hardcode_libdir_flag_spec='-L$libdir'
9894       hardcode_minus_L=yes
9895       allow_undefined_flag=unsupported
9896       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'
9897       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9898       ;;
9899
9900     osf3*)
9901       if test "$GCC" = yes; then
9902         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9903         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'
9904       else
9905         allow_undefined_flag=' -expect_unresolved \*'
9906         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'
9907       fi
9908       archive_cmds_need_lc='no'
9909       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9910       hardcode_libdir_separator=:
9911       ;;
9912
9913     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9914       if test "$GCC" = yes; then
9915         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9916         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'
9917         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9918       else
9919         allow_undefined_flag=' -expect_unresolved \*'
9920         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'
9921         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~
9922         $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'
9923
9924         # Both c and cxx compiler support -rpath directly
9925         hardcode_libdir_flag_spec='-rpath $libdir'
9926       fi
9927       archive_cmds_need_lc='no'
9928       hardcode_libdir_separator=:
9929       ;;
9930
9931     solaris*)
9932       no_undefined_flag=' -z defs'
9933       if test "$GCC" = yes; then
9934         wlarc='${wl}'
9935         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9936         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9937           $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'
9938       else
9939         case `$CC -V 2>&1` in
9940         *"Compilers 5.0"*)
9941           wlarc=''
9942           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9943           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9944           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9945           ;;
9946         *)
9947           wlarc='${wl}'
9948           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9949           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9950           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9951           ;;
9952         esac
9953       fi
9954       hardcode_libdir_flag_spec='-R$libdir'
9955       hardcode_shlibpath_var=no
9956       case $host_os in
9957       solaris2.[0-5] | solaris2.[0-5].*) ;;
9958       *)
9959         # The compiler driver will combine and reorder linker options,
9960         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9961         # but is careful enough not to reorder.
9962         # Supported since Solaris 2.6 (maybe 2.5.1?)
9963         if test "$GCC" = yes; then
9964           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9965         else
9966           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9967         fi
9968         ;;
9969       esac
9970       link_all_deplibs=yes
9971       ;;
9972
9973     sunos4*)
9974       if test "x$host_vendor" = xsequent; then
9975         # Use $CC to link under sequent, because it throws in some extra .o
9976         # files that make .init and .fini sections work.
9977         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9978       else
9979         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9980       fi
9981       hardcode_libdir_flag_spec='-L$libdir'
9982       hardcode_direct=yes
9983       hardcode_minus_L=yes
9984       hardcode_shlibpath_var=no
9985       ;;
9986
9987     sysv4)
9988       case $host_vendor in
9989         sni)
9990           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9991           hardcode_direct=yes # is this really true???
9992         ;;
9993         siemens)
9994           ## LD is ld it makes a PLAMLIB
9995           ## CC just makes a GrossModule.
9996           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9997           reload_cmds='$CC -r -o $output$reload_objs'
9998           hardcode_direct=no
9999         ;;
10000         motorola)
10001           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10002           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10003         ;;
10004       esac
10005       runpath_var='LD_RUN_PATH'
10006       hardcode_shlibpath_var=no
10007       ;;
10008
10009     sysv4.3*)
10010       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10011       hardcode_shlibpath_var=no
10012       export_dynamic_flag_spec='-Bexport'
10013       ;;
10014
10015     sysv4*MP*)
10016       if test -d /usr/nec; then
10017         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10018         hardcode_shlibpath_var=no
10019         runpath_var=LD_RUN_PATH
10020         hardcode_runpath_var=yes
10021         ld_shlibs=yes
10022       fi
10023       ;;
10024
10025     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10026       no_undefined_flag='${wl}-z,text'
10027       archive_cmds_need_lc=no
10028       hardcode_shlibpath_var=no
10029       runpath_var='LD_RUN_PATH'
10030
10031       if test "$GCC" = yes; then
10032         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10033         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10034       else
10035         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10036         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10037       fi
10038       ;;
10039
10040     sysv5* | sco3.2v5* | sco5v6*)
10041       # Note: We can NOT use -z defs as we might desire, because we do not
10042       # link with -lc, and that would cause any symbols used from libc to
10043       # always be unresolved, which means just about no library would
10044       # ever link correctly.  If we're not using GNU ld we use -z text
10045       # though, which does catch some bad symbols but isn't as heavy-handed
10046       # as -z defs.
10047       no_undefined_flag='${wl}-z,text'
10048       allow_undefined_flag='${wl}-z,nodefs'
10049       archive_cmds_need_lc=no
10050       hardcode_shlibpath_var=no
10051       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10052       hardcode_libdir_separator=':'
10053       link_all_deplibs=yes
10054       export_dynamic_flag_spec='${wl}-Bexport'
10055       runpath_var='LD_RUN_PATH'
10056
10057       if test "$GCC" = yes; then
10058         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10059         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060       else
10061         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10062         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10063       fi
10064       ;;
10065
10066     uts4*)
10067       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10068       hardcode_libdir_flag_spec='-L$libdir'
10069       hardcode_shlibpath_var=no
10070       ;;
10071
10072     *)
10073       ld_shlibs=no
10074       ;;
10075     esac
10076
10077     if test x$host_vendor = xsni; then
10078       case $host in
10079       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10080         export_dynamic_flag_spec='${wl}-Blargedynsym'
10081         ;;
10082       esac
10083     fi
10084   fi
10085
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10087 $as_echo "$ld_shlibs" >&6; }
10088 test "$ld_shlibs" = no && can_build_shared=no
10089
10090 with_gnu_ld=$with_gnu_ld
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106 #
10107 # Do we need to explicitly link libc?
10108 #
10109 case "x$archive_cmds_need_lc" in
10110 x|xyes)
10111   # Assume -lc should be added
10112   archive_cmds_need_lc=yes
10113
10114   if test "$enable_shared" = yes && test "$GCC" = yes; then
10115     case $archive_cmds in
10116     *'~'*)
10117       # FIXME: we may have to deal with multi-command sequences.
10118       ;;
10119     '$CC '*)
10120       # Test whether the compiler implicitly links with -lc since on some
10121       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10122       # to ld, don't add -lc before -lgcc.
10123       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10124 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10125 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10126   $as_echo_n "(cached) " >&6
10127 else
10128   $RM conftest*
10129         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10130
10131         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10132   (eval $ac_compile) 2>&5
10133   ac_status=$?
10134   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10135   test $ac_status = 0; } 2>conftest.err; then
10136           soname=conftest
10137           lib=conftest
10138           libobjs=conftest.$ac_objext
10139           deplibs=
10140           wl=$lt_prog_compiler_wl
10141           pic_flag=$lt_prog_compiler_pic
10142           compiler_flags=-v
10143           linker_flags=-v
10144           verstring=
10145           output_objdir=.
10146           libname=conftest
10147           lt_save_allow_undefined_flag=$allow_undefined_flag
10148           allow_undefined_flag=
10149           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10150   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10151   ac_status=$?
10152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10153   test $ac_status = 0; }
10154           then
10155             lt_cv_archive_cmds_need_lc=no
10156           else
10157             lt_cv_archive_cmds_need_lc=yes
10158           fi
10159           allow_undefined_flag=$lt_save_allow_undefined_flag
10160         else
10161           cat conftest.err 1>&5
10162         fi
10163         $RM conftest*
10164
10165 fi
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10167 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10168       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10169       ;;
10170     esac
10171   fi
10172   ;;
10173 esac
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
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10327 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10328
10329 if test "$GCC" = yes; then
10330   case $host_os in
10331     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10332     *) lt_awk_arg="/^libraries:/" ;;
10333   esac
10334   case $host_os in
10335     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10336     *) lt_sed_strip_eq="s,=/,/,g" ;;
10337   esac
10338   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10339   case $lt_search_path_spec in
10340   *\;*)
10341     # if the path contains ";" then we assume it to be the separator
10342     # otherwise default to the standard path separator (i.e. ":") - it is
10343     # assumed that no part of a normal pathname contains ";" but that should
10344     # okay in the real world where ";" in dirpaths is itself problematic.
10345     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10346     ;;
10347   *)
10348     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10349     ;;
10350   esac
10351   # Ok, now we have the path, separated by spaces, we can step through it
10352   # and add multilib dir if necessary.
10353   lt_tmp_lt_search_path_spec=
10354   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10355   for lt_sys_path in $lt_search_path_spec; do
10356     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10357       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10358     else
10359       test -d "$lt_sys_path" && \
10360         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10361     fi
10362   done
10363   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10364 BEGIN {RS=" "; FS="/|\n";} {
10365   lt_foo="";
10366   lt_count=0;
10367   for (lt_i = NF; lt_i > 0; lt_i--) {
10368     if ($lt_i != "" && $lt_i != ".") {
10369       if ($lt_i == "..") {
10370         lt_count++;
10371       } else {
10372         if (lt_count == 0) {
10373           lt_foo="/" $lt_i lt_foo;
10374         } else {
10375           lt_count--;
10376         }
10377       }
10378     }
10379   }
10380   if (lt_foo != "") { lt_freq[lt_foo]++; }
10381   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10382 }'`
10383   # AWK program above erroneously prepends '/' to C:/dos/paths
10384   # for these hosts.
10385   case $host_os in
10386     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10387       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10388   esac
10389   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10390 else
10391   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10392 fi
10393 library_names_spec=
10394 libname_spec='lib$name'
10395 soname_spec=
10396 shrext_cmds=".so"
10397 postinstall_cmds=
10398 postuninstall_cmds=
10399 finish_cmds=
10400 finish_eval=
10401 shlibpath_var=
10402 shlibpath_overrides_runpath=unknown
10403 version_type=none
10404 dynamic_linker="$host_os ld.so"
10405 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10406 need_lib_prefix=unknown
10407 hardcode_into_libs=no
10408
10409 # when you set need_version to no, make sure it does not cause -set_version
10410 # flags to be left without arguments
10411 need_version=unknown
10412
10413 case $host_os in
10414 aix3*)
10415   version_type=linux # correct to gnu/linux during the next big refactor
10416   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10417   shlibpath_var=LIBPATH
10418
10419   # AIX 3 has no versioning support, so we append a major version to the name.
10420   soname_spec='${libname}${release}${shared_ext}$major'
10421   ;;
10422
10423 aix[4-9]*)
10424   version_type=linux # correct to gnu/linux during the next big refactor
10425   need_lib_prefix=no
10426   need_version=no
10427   hardcode_into_libs=yes
10428   if test "$host_cpu" = ia64; then
10429     # AIX 5 supports IA64
10430     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10431     shlibpath_var=LD_LIBRARY_PATH
10432   else
10433     # With GCC up to 2.95.x, collect2 would create an import file
10434     # for dependence libraries.  The import file would start with
10435     # the line `#! .'.  This would cause the generated library to
10436     # depend on `.', always an invalid library.  This was fixed in
10437     # development snapshots of GCC prior to 3.0.
10438     case $host_os in
10439       aix4 | aix4.[01] | aix4.[01].*)
10440       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10441            echo ' yes '
10442            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10443         :
10444       else
10445         can_build_shared=no
10446       fi
10447       ;;
10448     esac
10449     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10450     # soname into executable. Probably we can add versioning support to
10451     # collect2, so additional links can be useful in future.
10452     if test "$aix_use_runtimelinking" = yes; then
10453       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10454       # instead of lib<name>.a to let people know that these are not
10455       # typical AIX shared libraries.
10456       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10457     else
10458       # We preserve .a as extension for shared libraries through AIX4.2
10459       # and later when we are not doing run time linking.
10460       library_names_spec='${libname}${release}.a $libname.a'
10461       soname_spec='${libname}${release}${shared_ext}$major'
10462     fi
10463     shlibpath_var=LIBPATH
10464   fi
10465   ;;
10466
10467 amigaos*)
10468   case $host_cpu in
10469   powerpc)
10470     # Since July 2007 AmigaOS4 officially supports .so libraries.
10471     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10472     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10473     ;;
10474   m68k)
10475     library_names_spec='$libname.ixlibrary $libname.a'
10476     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10477     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'
10478     ;;
10479   esac
10480   ;;
10481
10482 beos*)
10483   library_names_spec='${libname}${shared_ext}'
10484   dynamic_linker="$host_os ld.so"
10485   shlibpath_var=LIBRARY_PATH
10486   ;;
10487
10488 bsdi[45]*)
10489   version_type=linux # correct to gnu/linux during the next big refactor
10490   need_version=no
10491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10492   soname_spec='${libname}${release}${shared_ext}$major'
10493   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10494   shlibpath_var=LD_LIBRARY_PATH
10495   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10496   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10497   # the default ld.so.conf also contains /usr/contrib/lib and
10498   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10499   # libtool to hard-code these into programs
10500   ;;
10501
10502 cygwin* | mingw* | pw32* | cegcc*)
10503   version_type=windows
10504   shrext_cmds=".dll"
10505   need_version=no
10506   need_lib_prefix=no
10507
10508   case $GCC,$cc_basename in
10509   yes,*)
10510     # gcc
10511     library_names_spec='$libname.dll.a'
10512     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10513     postinstall_cmds='base_file=`basename \${file}`~
10514       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10515       dldir=$destdir/`dirname \$dlpath`~
10516       test -d \$dldir || mkdir -p \$dldir~
10517       $install_prog $dir/$dlname \$dldir/$dlname~
10518       chmod a+x \$dldir/$dlname~
10519       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10520         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10521       fi'
10522     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10523       dlpath=$dir/\$dldll~
10524        $RM \$dlpath'
10525     shlibpath_overrides_runpath=yes
10526
10527     case $host_os in
10528     cygwin*)
10529       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10530       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10531
10532       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10533       ;;
10534     mingw* | cegcc*)
10535       # MinGW DLLs use traditional 'lib' prefix
10536       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10537       ;;
10538     pw32*)
10539       # pw32 DLLs use 'pw' prefix rather than 'lib'
10540       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10541       ;;
10542     esac
10543     dynamic_linker='Win32 ld.exe'
10544     ;;
10545
10546   *,cl*)
10547     # Native MSVC
10548     libname_spec='$name'
10549     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10550     library_names_spec='${libname}.dll.lib'
10551
10552     case $build_os in
10553     mingw*)
10554       sys_lib_search_path_spec=
10555       lt_save_ifs=$IFS
10556       IFS=';'
10557       for lt_path in $LIB
10558       do
10559         IFS=$lt_save_ifs
10560         # Let DOS variable expansion print the short 8.3 style file name.
10561         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10562         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10563       done
10564       IFS=$lt_save_ifs
10565       # Convert to MSYS style.
10566       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10567       ;;
10568     cygwin*)
10569       # Convert to unix form, then to dos form, then back to unix form
10570       # but this time dos style (no spaces!) so that the unix form looks
10571       # like /cygdrive/c/PROGRA~1:/cygdr...
10572       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10573       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10574       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10575       ;;
10576     *)
10577       sys_lib_search_path_spec="$LIB"
10578       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10579         # It is most probably a Windows format PATH.
10580         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10581       else
10582         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10583       fi
10584       # FIXME: find the short name or the path components, as spaces are
10585       # common. (e.g. "Program Files" -> "PROGRA~1")
10586       ;;
10587     esac
10588
10589     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10590     postinstall_cmds='base_file=`basename \${file}`~
10591       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10592       dldir=$destdir/`dirname \$dlpath`~
10593       test -d \$dldir || mkdir -p \$dldir~
10594       $install_prog $dir/$dlname \$dldir/$dlname'
10595     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10596       dlpath=$dir/\$dldll~
10597        $RM \$dlpath'
10598     shlibpath_overrides_runpath=yes
10599     dynamic_linker='Win32 link.exe'
10600     ;;
10601
10602   *)
10603     # Assume MSVC wrapper
10604     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10605     dynamic_linker='Win32 ld.exe'
10606     ;;
10607   esac
10608   # FIXME: first we should search . and the directory the executable is in
10609   shlibpath_var=PATH
10610   ;;
10611
10612 darwin* | rhapsody*)
10613   dynamic_linker="$host_os dyld"
10614   version_type=darwin
10615   need_lib_prefix=no
10616   need_version=no
10617   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10618   soname_spec='${libname}${release}${major}$shared_ext'
10619   shlibpath_overrides_runpath=yes
10620   shlibpath_var=DYLD_LIBRARY_PATH
10621   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10622
10623   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10624   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10625   ;;
10626
10627 dgux*)
10628   version_type=linux # correct to gnu/linux during the next big refactor
10629   need_lib_prefix=no
10630   need_version=no
10631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10632   soname_spec='${libname}${release}${shared_ext}$major'
10633   shlibpath_var=LD_LIBRARY_PATH
10634   ;;
10635
10636 freebsd* | dragonfly*)
10637   # DragonFly does not have aout.  When/if they implement a new
10638   # versioning mechanism, adjust this.
10639   if test -x /usr/bin/objformat; then
10640     objformat=`/usr/bin/objformat`
10641   else
10642     case $host_os in
10643     freebsd[23].*) objformat=aout ;;
10644     *) objformat=elf ;;
10645     esac
10646   fi
10647   version_type=freebsd-$objformat
10648   case $version_type in
10649     freebsd-elf*)
10650       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10651       need_version=no
10652       need_lib_prefix=no
10653       ;;
10654     freebsd-*)
10655       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10656       need_version=yes
10657       ;;
10658   esac
10659   shlibpath_var=LD_LIBRARY_PATH
10660   case $host_os in
10661   freebsd2.*)
10662     shlibpath_overrides_runpath=yes
10663     ;;
10664   freebsd3.[01]* | freebsdelf3.[01]*)
10665     shlibpath_overrides_runpath=yes
10666     hardcode_into_libs=yes
10667     ;;
10668   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10669   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10670     shlibpath_overrides_runpath=no
10671     hardcode_into_libs=yes
10672     ;;
10673   *) # from 4.6 on, and DragonFly
10674     shlibpath_overrides_runpath=yes
10675     hardcode_into_libs=yes
10676     ;;
10677   esac
10678   ;;
10679
10680 haiku*)
10681   version_type=linux # correct to gnu/linux during the next big refactor
10682   need_lib_prefix=no
10683   need_version=no
10684   dynamic_linker="$host_os runtime_loader"
10685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10686   soname_spec='${libname}${release}${shared_ext}$major'
10687   shlibpath_var=LIBRARY_PATH
10688   shlibpath_overrides_runpath=yes
10689   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10690   hardcode_into_libs=yes
10691   ;;
10692
10693 hpux9* | hpux10* | hpux11*)
10694   # Give a soname corresponding to the major version so that dld.sl refuses to
10695   # link against other versions.
10696   version_type=sunos
10697   need_lib_prefix=no
10698   need_version=no
10699   case $host_cpu in
10700   ia64*)
10701     shrext_cmds='.so'
10702     hardcode_into_libs=yes
10703     dynamic_linker="$host_os dld.so"
10704     shlibpath_var=LD_LIBRARY_PATH
10705     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10706     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707     soname_spec='${libname}${release}${shared_ext}$major'
10708     if test "X$HPUX_IA64_MODE" = X32; then
10709       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10710     else
10711       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10712     fi
10713     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10714     ;;
10715   hppa*64*)
10716     shrext_cmds='.sl'
10717     hardcode_into_libs=yes
10718     dynamic_linker="$host_os dld.sl"
10719     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10720     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10721     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722     soname_spec='${libname}${release}${shared_ext}$major'
10723     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10724     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10725     ;;
10726   *)
10727     shrext_cmds='.sl'
10728     dynamic_linker="$host_os dld.sl"
10729     shlibpath_var=SHLIB_PATH
10730     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732     soname_spec='${libname}${release}${shared_ext}$major'
10733     ;;
10734   esac
10735   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10736   postinstall_cmds='chmod 555 $lib'
10737   # or fails outright, so override atomically:
10738   install_override_mode=555
10739   ;;
10740
10741 interix[3-9]*)
10742   version_type=linux # correct to gnu/linux during the next big refactor
10743   need_lib_prefix=no
10744   need_version=no
10745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10746   soname_spec='${libname}${release}${shared_ext}$major'
10747   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10748   shlibpath_var=LD_LIBRARY_PATH
10749   shlibpath_overrides_runpath=no
10750   hardcode_into_libs=yes
10751   ;;
10752
10753 irix5* | irix6* | nonstopux*)
10754   case $host_os in
10755     nonstopux*) version_type=nonstopux ;;
10756     *)
10757         if test "$lt_cv_prog_gnu_ld" = yes; then
10758                 version_type=linux # correct to gnu/linux during the next big refactor
10759         else
10760                 version_type=irix
10761         fi ;;
10762   esac
10763   need_lib_prefix=no
10764   need_version=no
10765   soname_spec='${libname}${release}${shared_ext}$major'
10766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10767   case $host_os in
10768   irix5* | nonstopux*)
10769     libsuff= shlibsuff=
10770     ;;
10771   *)
10772     case $LD in # libtool.m4 will add one of these switches to LD
10773     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10774       libsuff= shlibsuff= libmagic=32-bit;;
10775     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10776       libsuff=32 shlibsuff=N32 libmagic=N32;;
10777     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10778       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10779     *) libsuff= shlibsuff= libmagic=never-match;;
10780     esac
10781     ;;
10782   esac
10783   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10784   shlibpath_overrides_runpath=no
10785   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10786   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10787   hardcode_into_libs=yes
10788   ;;
10789
10790 # No shared lib support for Linux oldld, aout, or coff.
10791 linux*oldld* | linux*aout* | linux*coff*)
10792   dynamic_linker=no
10793   ;;
10794
10795 # This must be glibc/ELF.
10796 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10797   version_type=linux # correct to gnu/linux during the next big refactor
10798   need_lib_prefix=no
10799   need_version=no
10800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10801   soname_spec='${libname}${release}${shared_ext}$major'
10802   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10803   shlibpath_var=LD_LIBRARY_PATH
10804   shlibpath_overrides_runpath=no
10805
10806   # Some binutils ld are patched to set DT_RUNPATH
10807   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10808   $as_echo_n "(cached) " >&6
10809 else
10810   lt_cv_shlibpath_overrides_runpath=no
10811     save_LDFLAGS=$LDFLAGS
10812     save_libdir=$libdir
10813     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10814          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10815     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h.  */
10817
10818 int
10819 main ()
10820 {
10821
10822   ;
10823   return 0;
10824 }
10825 _ACEOF
10826 if ac_fn_c_try_link "$LINENO"; then :
10827   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10828   lt_cv_shlibpath_overrides_runpath=yes
10829 fi
10830 fi
10831 rm -f core conftest.err conftest.$ac_objext \
10832     conftest$ac_exeext conftest.$ac_ext
10833     LDFLAGS=$save_LDFLAGS
10834     libdir=$save_libdir
10835
10836 fi
10837
10838   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10839
10840   # This implies no fast_install, which is unacceptable.
10841   # Some rework will be needed to allow for fast_install
10842   # before this can be enabled.
10843   hardcode_into_libs=yes
10844
10845   # Append ld.so.conf contents to the search path
10846   if test -f /etc/ld.so.conf; then
10847     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' ' '`
10848     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10849   fi
10850
10851   # We used to test for /lib/ld.so.1 and disable shared libraries on
10852   # powerpc, because MkLinux only supported shared libraries with the
10853   # GNU dynamic linker.  Since this was broken with cross compilers,
10854   # most powerpc-linux boxes support dynamic linking these days and
10855   # people can always --disable-shared, the test was removed, and we
10856   # assume the GNU/Linux dynamic linker is in use.
10857   dynamic_linker='GNU/Linux ld.so'
10858   ;;
10859
10860 netbsdelf*-gnu)
10861   version_type=linux
10862   need_lib_prefix=no
10863   need_version=no
10864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10865   soname_spec='${libname}${release}${shared_ext}$major'
10866   shlibpath_var=LD_LIBRARY_PATH
10867   shlibpath_overrides_runpath=no
10868   hardcode_into_libs=yes
10869   dynamic_linker='NetBSD ld.elf_so'
10870   ;;
10871
10872 netbsd*)
10873   version_type=sunos
10874   need_lib_prefix=no
10875   need_version=no
10876   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10877     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10878     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10879     dynamic_linker='NetBSD (a.out) ld.so'
10880   else
10881     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10882     soname_spec='${libname}${release}${shared_ext}$major'
10883     dynamic_linker='NetBSD ld.elf_so'
10884   fi
10885   shlibpath_var=LD_LIBRARY_PATH
10886   shlibpath_overrides_runpath=yes
10887   hardcode_into_libs=yes
10888   ;;
10889
10890 newsos6)
10891   version_type=linux # correct to gnu/linux during the next big refactor
10892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10893   shlibpath_var=LD_LIBRARY_PATH
10894   shlibpath_overrides_runpath=yes
10895   ;;
10896
10897 *nto* | *qnx*)
10898   version_type=qnx
10899   need_lib_prefix=no
10900   need_version=no
10901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902   soname_spec='${libname}${release}${shared_ext}$major'
10903   shlibpath_var=LD_LIBRARY_PATH
10904   shlibpath_overrides_runpath=no
10905   hardcode_into_libs=yes
10906   dynamic_linker='ldqnx.so'
10907   ;;
10908
10909 openbsd*)
10910   version_type=sunos
10911   sys_lib_dlsearch_path_spec="/usr/lib"
10912   need_lib_prefix=no
10913   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10914   case $host_os in
10915     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10916     *)                          need_version=no  ;;
10917   esac
10918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10919   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10920   shlibpath_var=LD_LIBRARY_PATH
10921   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10922     case $host_os in
10923       openbsd2.[89] | openbsd2.[89].*)
10924         shlibpath_overrides_runpath=no
10925         ;;
10926       *)
10927         shlibpath_overrides_runpath=yes
10928         ;;
10929       esac
10930   else
10931     shlibpath_overrides_runpath=yes
10932   fi
10933   ;;
10934
10935 os2*)
10936   libname_spec='$name'
10937   shrext_cmds=".dll"
10938   need_lib_prefix=no
10939   library_names_spec='$libname${shared_ext} $libname.a'
10940   dynamic_linker='OS/2 ld.exe'
10941   shlibpath_var=LIBPATH
10942   ;;
10943
10944 osf3* | osf4* | osf5*)
10945   version_type=osf
10946   need_lib_prefix=no
10947   need_version=no
10948   soname_spec='${libname}${release}${shared_ext}$major'
10949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10950   shlibpath_var=LD_LIBRARY_PATH
10951   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10952   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10953   ;;
10954
10955 rdos*)
10956   dynamic_linker=no
10957   ;;
10958
10959 solaris*)
10960   version_type=linux # correct to gnu/linux during the next big refactor
10961   need_lib_prefix=no
10962   need_version=no
10963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964   soname_spec='${libname}${release}${shared_ext}$major'
10965   shlibpath_var=LD_LIBRARY_PATH
10966   shlibpath_overrides_runpath=yes
10967   hardcode_into_libs=yes
10968   # ldd complains unless libraries are executable
10969   postinstall_cmds='chmod +x $lib'
10970   ;;
10971
10972 sunos4*)
10973   version_type=sunos
10974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10975   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10976   shlibpath_var=LD_LIBRARY_PATH
10977   shlibpath_overrides_runpath=yes
10978   if test "$with_gnu_ld" = yes; then
10979     need_lib_prefix=no
10980   fi
10981   need_version=yes
10982   ;;
10983
10984 sysv4 | sysv4.3*)
10985   version_type=linux # correct to gnu/linux during the next big refactor
10986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10987   soname_spec='${libname}${release}${shared_ext}$major'
10988   shlibpath_var=LD_LIBRARY_PATH
10989   case $host_vendor in
10990     sni)
10991       shlibpath_overrides_runpath=no
10992       need_lib_prefix=no
10993       runpath_var=LD_RUN_PATH
10994       ;;
10995     siemens)
10996       need_lib_prefix=no
10997       ;;
10998     motorola)
10999       need_lib_prefix=no
11000       need_version=no
11001       shlibpath_overrides_runpath=no
11002       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11003       ;;
11004   esac
11005   ;;
11006
11007 sysv4*MP*)
11008   if test -d /usr/nec ;then
11009     version_type=linux # correct to gnu/linux during the next big refactor
11010     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11011     soname_spec='$libname${shared_ext}.$major'
11012     shlibpath_var=LD_LIBRARY_PATH
11013   fi
11014   ;;
11015
11016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11017   version_type=freebsd-elf
11018   need_lib_prefix=no
11019   need_version=no
11020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11021   soname_spec='${libname}${release}${shared_ext}$major'
11022   shlibpath_var=LD_LIBRARY_PATH
11023   shlibpath_overrides_runpath=yes
11024   hardcode_into_libs=yes
11025   if test "$with_gnu_ld" = yes; then
11026     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11027   else
11028     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11029     case $host_os in
11030       sco3.2v5*)
11031         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11032         ;;
11033     esac
11034   fi
11035   sys_lib_dlsearch_path_spec='/usr/lib'
11036   ;;
11037
11038 tpf*)
11039   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11040   version_type=linux # correct to gnu/linux during the next big refactor
11041   need_lib_prefix=no
11042   need_version=no
11043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044   shlibpath_var=LD_LIBRARY_PATH
11045   shlibpath_overrides_runpath=no
11046   hardcode_into_libs=yes
11047   ;;
11048
11049 uts4*)
11050   version_type=linux # correct to gnu/linux during the next big refactor
11051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052   soname_spec='${libname}${release}${shared_ext}$major'
11053   shlibpath_var=LD_LIBRARY_PATH
11054   ;;
11055
11056 *)
11057   dynamic_linker=no
11058   ;;
11059 esac
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11061 $as_echo "$dynamic_linker" >&6; }
11062 test "$dynamic_linker" = no && can_build_shared=no
11063
11064 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11065 if test "$GCC" = yes; then
11066   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11067 fi
11068
11069 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11070   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11071 fi
11072 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11073   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11074 fi
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11168 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11169 hardcode_action=
11170 if test -n "$hardcode_libdir_flag_spec" ||
11171    test -n "$runpath_var" ||
11172    test "X$hardcode_automatic" = "Xyes" ; then
11173
11174   # We can hardcode non-existent directories.
11175   if test "$hardcode_direct" != no &&
11176      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11177      # have to relink, otherwise we might link with an installed library
11178      # when we should be linking with a yet-to-be-installed one
11179      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11180      test "$hardcode_minus_L" != no; then
11181     # Linking always hardcodes the temporary library directory.
11182     hardcode_action=relink
11183   else
11184     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11185     hardcode_action=immediate
11186   fi
11187 else
11188   # We cannot hardcode anything, or else we can only hardcode existing
11189   # directories.
11190   hardcode_action=unsupported
11191 fi
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11193 $as_echo "$hardcode_action" >&6; }
11194
11195 if test "$hardcode_action" = relink ||
11196    test "$inherit_rpath" = yes; then
11197   # Fast installation is not supported
11198   enable_fast_install=no
11199 elif test "$shlibpath_overrides_runpath" = yes ||
11200      test "$enable_shared" = no; then
11201   # Fast installation is not necessary
11202   enable_fast_install=needless
11203 fi
11204
11205
11206
11207
11208
11209
11210   if test "x$enable_dlopen" != xyes; then
11211   enable_dlopen=unknown
11212   enable_dlopen_self=unknown
11213   enable_dlopen_self_static=unknown
11214 else
11215   lt_cv_dlopen=no
11216   lt_cv_dlopen_libs=
11217
11218   case $host_os in
11219   beos*)
11220     lt_cv_dlopen="load_add_on"
11221     lt_cv_dlopen_libs=
11222     lt_cv_dlopen_self=yes
11223     ;;
11224
11225   mingw* | pw32* | cegcc*)
11226     lt_cv_dlopen="LoadLibrary"
11227     lt_cv_dlopen_libs=
11228     ;;
11229
11230   cygwin*)
11231     lt_cv_dlopen="dlopen"
11232     lt_cv_dlopen_libs=
11233     ;;
11234
11235   darwin*)
11236   # if libdl is installed we need to link against it
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
11277     lt_cv_dlopen="dyld"
11278     lt_cv_dlopen_libs=
11279     lt_cv_dlopen_self=yes
11280
11281 fi
11282
11283     ;;
11284
11285   *)
11286     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11287 if test "x$ac_cv_func_shl_load" = xyes; then :
11288   lt_cv_dlopen="shl_load"
11289 else
11290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11291 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11292 if ${ac_cv_lib_dld_shl_load+:} false; then :
11293   $as_echo_n "(cached) " >&6
11294 else
11295   ac_check_lib_save_LIBS=$LIBS
11296 LIBS="-ldld  $LIBS"
11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h.  */
11299
11300 /* Override any GCC internal prototype to avoid an error.
11301    Use char because int might match the return type of a GCC
11302    builtin and then its argument prototype would still apply.  */
11303 #ifdef __cplusplus
11304 extern "C"
11305 #endif
11306 char shl_load ();
11307 int
11308 main ()
11309 {
11310 return shl_load ();
11311   ;
11312   return 0;
11313 }
11314 _ACEOF
11315 if ac_fn_c_try_link "$LINENO"; then :
11316   ac_cv_lib_dld_shl_load=yes
11317 else
11318   ac_cv_lib_dld_shl_load=no
11319 fi
11320 rm -f core conftest.err conftest.$ac_objext \
11321     conftest$ac_exeext conftest.$ac_ext
11322 LIBS=$ac_check_lib_save_LIBS
11323 fi
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11325 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11326 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11327   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11328 else
11329   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11330 if test "x$ac_cv_func_dlopen" = xyes; then :
11331   lt_cv_dlopen="dlopen"
11332 else
11333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11334 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11335 if ${ac_cv_lib_dl_dlopen+:} false; then :
11336   $as_echo_n "(cached) " >&6
11337 else
11338   ac_check_lib_save_LIBS=$LIBS
11339 LIBS="-ldl  $LIBS"
11340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341 /* end confdefs.h.  */
11342
11343 /* Override any GCC internal prototype to avoid an error.
11344    Use char because int might match the return type of a GCC
11345    builtin and then its argument prototype would still apply.  */
11346 #ifdef __cplusplus
11347 extern "C"
11348 #endif
11349 char dlopen ();
11350 int
11351 main ()
11352 {
11353 return dlopen ();
11354   ;
11355   return 0;
11356 }
11357 _ACEOF
11358 if ac_fn_c_try_link "$LINENO"; then :
11359   ac_cv_lib_dl_dlopen=yes
11360 else
11361   ac_cv_lib_dl_dlopen=no
11362 fi
11363 rm -f core conftest.err conftest.$ac_objext \
11364     conftest$ac_exeext conftest.$ac_ext
11365 LIBS=$ac_check_lib_save_LIBS
11366 fi
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11368 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11369 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11370   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11371 else
11372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11373 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11374 if ${ac_cv_lib_svld_dlopen+:} false; then :
11375   $as_echo_n "(cached) " >&6
11376 else
11377   ac_check_lib_save_LIBS=$LIBS
11378 LIBS="-lsvld  $LIBS"
11379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h.  */
11381
11382 /* Override any GCC internal prototype to avoid an error.
11383    Use char because int might match the return type of a GCC
11384    builtin and then its argument prototype would still apply.  */
11385 #ifdef __cplusplus
11386 extern "C"
11387 #endif
11388 char dlopen ();
11389 int
11390 main ()
11391 {
11392 return dlopen ();
11393   ;
11394   return 0;
11395 }
11396 _ACEOF
11397 if ac_fn_c_try_link "$LINENO"; then :
11398   ac_cv_lib_svld_dlopen=yes
11399 else
11400   ac_cv_lib_svld_dlopen=no
11401 fi
11402 rm -f core conftest.err conftest.$ac_objext \
11403     conftest$ac_exeext conftest.$ac_ext
11404 LIBS=$ac_check_lib_save_LIBS
11405 fi
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11407 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11408 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11409   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11410 else
11411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11412 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11413 if ${ac_cv_lib_dld_dld_link+:} false; then :
11414   $as_echo_n "(cached) " >&6
11415 else
11416   ac_check_lib_save_LIBS=$LIBS
11417 LIBS="-ldld  $LIBS"
11418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11419 /* end confdefs.h.  */
11420
11421 /* Override any GCC internal prototype to avoid an error.
11422    Use char because int might match the return type of a GCC
11423    builtin and then its argument prototype would still apply.  */
11424 #ifdef __cplusplus
11425 extern "C"
11426 #endif
11427 char dld_link ();
11428 int
11429 main ()
11430 {
11431 return dld_link ();
11432   ;
11433   return 0;
11434 }
11435 _ACEOF
11436 if ac_fn_c_try_link "$LINENO"; then :
11437   ac_cv_lib_dld_dld_link=yes
11438 else
11439   ac_cv_lib_dld_dld_link=no
11440 fi
11441 rm -f core conftest.err conftest.$ac_objext \
11442     conftest$ac_exeext conftest.$ac_ext
11443 LIBS=$ac_check_lib_save_LIBS
11444 fi
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11446 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11447 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11448   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11449 fi
11450
11451
11452 fi
11453
11454
11455 fi
11456
11457
11458 fi
11459
11460
11461 fi
11462
11463
11464 fi
11465
11466     ;;
11467   esac
11468
11469   if test "x$lt_cv_dlopen" != xno; then
11470     enable_dlopen=yes
11471   else
11472     enable_dlopen=no
11473   fi
11474
11475   case $lt_cv_dlopen in
11476   dlopen)
11477     save_CPPFLAGS="$CPPFLAGS"
11478     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11479
11480     save_LDFLAGS="$LDFLAGS"
11481     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11482
11483     save_LIBS="$LIBS"
11484     LIBS="$lt_cv_dlopen_libs $LIBS"
11485
11486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11487 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11488 if ${lt_cv_dlopen_self+:} false; then :
11489   $as_echo_n "(cached) " >&6
11490 else
11491           if test "$cross_compiling" = yes; then :
11492   lt_cv_dlopen_self=cross
11493 else
11494   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11495   lt_status=$lt_dlunknown
11496   cat > conftest.$ac_ext <<_LT_EOF
11497 #line $LINENO "configure"
11498 #include "confdefs.h"
11499
11500 #if HAVE_DLFCN_H
11501 #include <dlfcn.h>
11502 #endif
11503
11504 #include <stdio.h>
11505
11506 #ifdef RTLD_GLOBAL
11507 #  define LT_DLGLOBAL           RTLD_GLOBAL
11508 #else
11509 #  ifdef DL_GLOBAL
11510 #    define LT_DLGLOBAL         DL_GLOBAL
11511 #  else
11512 #    define LT_DLGLOBAL         0
11513 #  endif
11514 #endif
11515
11516 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11517    find out it does not work in some platform. */
11518 #ifndef LT_DLLAZY_OR_NOW
11519 #  ifdef RTLD_LAZY
11520 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11521 #  else
11522 #    ifdef DL_LAZY
11523 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11524 #    else
11525 #      ifdef RTLD_NOW
11526 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11527 #      else
11528 #        ifdef DL_NOW
11529 #          define LT_DLLAZY_OR_NOW      DL_NOW
11530 #        else
11531 #          define LT_DLLAZY_OR_NOW      0
11532 #        endif
11533 #      endif
11534 #    endif
11535 #  endif
11536 #endif
11537
11538 /* When -fvisbility=hidden is used, assume the code has been annotated
11539    correspondingly for the symbols needed.  */
11540 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11541 int fnord () __attribute__((visibility("default")));
11542 #endif
11543
11544 int fnord () { return 42; }
11545 int main ()
11546 {
11547   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11548   int status = $lt_dlunknown;
11549
11550   if (self)
11551     {
11552       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11553       else
11554         {
11555           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11556           else puts (dlerror ());
11557         }
11558       /* dlclose (self); */
11559     }
11560   else
11561     puts (dlerror ());
11562
11563   return status;
11564 }
11565 _LT_EOF
11566   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11567   (eval $ac_link) 2>&5
11568   ac_status=$?
11569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11570   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11571     (./conftest; exit; ) >&5 2>/dev/null
11572     lt_status=$?
11573     case x$lt_status in
11574       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11575       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11576       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11577     esac
11578   else :
11579     # compilation failed
11580     lt_cv_dlopen_self=no
11581   fi
11582 fi
11583 rm -fr conftest*
11584
11585
11586 fi
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11588 $as_echo "$lt_cv_dlopen_self" >&6; }
11589
11590     if test "x$lt_cv_dlopen_self" = xyes; then
11591       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11592       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11593 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11594 if ${lt_cv_dlopen_self_static+:} false; then :
11595   $as_echo_n "(cached) " >&6
11596 else
11597           if test "$cross_compiling" = yes; then :
11598   lt_cv_dlopen_self_static=cross
11599 else
11600   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11601   lt_status=$lt_dlunknown
11602   cat > conftest.$ac_ext <<_LT_EOF
11603 #line $LINENO "configure"
11604 #include "confdefs.h"
11605
11606 #if HAVE_DLFCN_H
11607 #include <dlfcn.h>
11608 #endif
11609
11610 #include <stdio.h>
11611
11612 #ifdef RTLD_GLOBAL
11613 #  define LT_DLGLOBAL           RTLD_GLOBAL
11614 #else
11615 #  ifdef DL_GLOBAL
11616 #    define LT_DLGLOBAL         DL_GLOBAL
11617 #  else
11618 #    define LT_DLGLOBAL         0
11619 #  endif
11620 #endif
11621
11622 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11623    find out it does not work in some platform. */
11624 #ifndef LT_DLLAZY_OR_NOW
11625 #  ifdef RTLD_LAZY
11626 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11627 #  else
11628 #    ifdef DL_LAZY
11629 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11630 #    else
11631 #      ifdef RTLD_NOW
11632 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11633 #      else
11634 #        ifdef DL_NOW
11635 #          define LT_DLLAZY_OR_NOW      DL_NOW
11636 #        else
11637 #          define LT_DLLAZY_OR_NOW      0
11638 #        endif
11639 #      endif
11640 #    endif
11641 #  endif
11642 #endif
11643
11644 /* When -fvisbility=hidden is used, assume the code has been annotated
11645    correspondingly for the symbols needed.  */
11646 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11647 int fnord () __attribute__((visibility("default")));
11648 #endif
11649
11650 int fnord () { return 42; }
11651 int main ()
11652 {
11653   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11654   int status = $lt_dlunknown;
11655
11656   if (self)
11657     {
11658       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11659       else
11660         {
11661           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11662           else puts (dlerror ());
11663         }
11664       /* dlclose (self); */
11665     }
11666   else
11667     puts (dlerror ());
11668
11669   return status;
11670 }
11671 _LT_EOF
11672   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11673   (eval $ac_link) 2>&5
11674   ac_status=$?
11675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11676   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11677     (./conftest; exit; ) >&5 2>/dev/null
11678     lt_status=$?
11679     case x$lt_status in
11680       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11681       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11682       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11683     esac
11684   else :
11685     # compilation failed
11686     lt_cv_dlopen_self_static=no
11687   fi
11688 fi
11689 rm -fr conftest*
11690
11691
11692 fi
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11694 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11695     fi
11696
11697     CPPFLAGS="$save_CPPFLAGS"
11698     LDFLAGS="$save_LDFLAGS"
11699     LIBS="$save_LIBS"
11700     ;;
11701   esac
11702
11703   case $lt_cv_dlopen_self in
11704   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11705   *) enable_dlopen_self=unknown ;;
11706   esac
11707
11708   case $lt_cv_dlopen_self_static in
11709   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11710   *) enable_dlopen_self_static=unknown ;;
11711   esac
11712 fi
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730 striplib=
11731 old_striplib=
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11733 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11734 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11735   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11736   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11738 $as_echo "yes" >&6; }
11739 else
11740 # FIXME - insert some real tests, host_os isn't really good enough
11741   case $host_os in
11742   darwin*)
11743     if test -n "$STRIP" ; then
11744       striplib="$STRIP -x"
11745       old_striplib="$STRIP -S"
11746       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11747 $as_echo "yes" >&6; }
11748     else
11749       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750 $as_echo "no" >&6; }
11751     fi
11752     ;;
11753   *)
11754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11756     ;;
11757   esac
11758 fi
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771   # Report which library types will actually be built
11772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11773 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11775 $as_echo "$can_build_shared" >&6; }
11776
11777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11778 $as_echo_n "checking whether to build shared libraries... " >&6; }
11779   test "$can_build_shared" = "no" && enable_shared=no
11780
11781   # On AIX, shared libraries and static libraries use the same namespace, and
11782   # are all built from PIC.
11783   case $host_os in
11784   aix3*)
11785     test "$enable_shared" = yes && enable_static=no
11786     if test -n "$RANLIB"; then
11787       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11788       postinstall_cmds='$RANLIB $lib'
11789     fi
11790     ;;
11791
11792   aix[4-9]*)
11793     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11794       test "$enable_shared" = yes && enable_static=no
11795     fi
11796     ;;
11797   esac
11798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11799 $as_echo "$enable_shared" >&6; }
11800
11801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11802 $as_echo_n "checking whether to build static libraries... " >&6; }
11803   # Make sure either enable_shared or enable_static is yes.
11804   test "$enable_shared" = yes || enable_static=yes
11805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11806 $as_echo "$enable_static" >&6; }
11807
11808
11809
11810
11811 fi
11812 ac_ext=c
11813 ac_cpp='$CPP $CPPFLAGS'
11814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11817
11818 CC="$lt_save_CC"
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834         ac_config_commands="$ac_config_commands libtool"
11835
11836
11837
11838
11839 # Only expand once:
11840
11841
11842
11843 # Check whether --enable-optimization was given.
11844 if test "${enable_optimization+set}" = set; then :
11845   enableval=$enable_optimization;
11846         if (test "${enableval}" = "no"); then
11847                 CFLAGS="$CFLAGS -O0 -U_FORTIFY_SOURCE"
11848         fi
11849
11850 fi
11851
11852
11853 # Check whether --enable-debug was given.
11854 if test "${enable_debug+set}" = set; then :
11855   enableval=$enable_debug;
11856         if (test "${enableval}" = "yes" &&
11857                                 test "${ac_cv_prog_cc_g}" = "yes"); then
11858                 CFLAGS="$CFLAGS -g"
11859         fi
11860
11861 fi
11862
11863
11864 # Check whether --enable-pie was given.
11865 if test "${enable_pie+set}" = set; then :
11866   enableval=$enable_pie;
11867         if (test "${enableval}" = "yes" &&
11868                                 test "${ac_cv_prog_cc_pie}" = "yes"); then
11869                 CFLAGS="$CFLAGS -fPIE"
11870                 LDFLAGS="$LDFLAGS -pie"
11871         fi
11872
11873 fi
11874
11875
11876 # Check whether --enable-hh2serial-gps was given.
11877 if test "${enable_hh2serial_gps+set}" = set; then :
11878   enableval=$enable_hh2serial_gps; enable_hh2serial_gps=${enableval}
11879 else
11880   enable_hh2serial_gps="no"
11881 fi
11882
11883  if test "${enable_hh2serial_gps}" != "no"; then
11884   HH2SERIAL_GPS_TRUE=
11885   HH2SERIAL_GPS_FALSE='#'
11886 else
11887   HH2SERIAL_GPS_TRUE='#'
11888   HH2SERIAL_GPS_FALSE=
11889 fi
11890
11891  if test "${enable_hh2serial_gps}" = "builtin"; then
11892   HH2SERIAL_GPS_BUILTIN_TRUE=
11893   HH2SERIAL_GPS_BUILTIN_FALSE='#'
11894 else
11895   HH2SERIAL_GPS_BUILTIN_TRUE='#'
11896   HH2SERIAL_GPS_BUILTIN_FALSE=
11897 fi
11898
11899
11900
11901 # Check whether --with-openconnect was given.
11902 if test "${with_openconnect+set}" = set; then :
11903   withval=$with_openconnect; path_openconnect=${withval}
11904 fi
11905
11906
11907 # Check whether --enable-openconnect was given.
11908 if test "${enable_openconnect+set}" = set; then :
11909   enableval=$enable_openconnect; enable_openconnect=${enableval}
11910 else
11911   enable_openconnect="no"
11912 fi
11913
11914 if (test "${enable_openconnect}" != "no"); then
11915         if (test -z "${path_openconnect}"); then
11916                 # Extract the first word of "openconnect", so it can be a program name with args.
11917 set dummy openconnect; ac_word=$2
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11919 $as_echo_n "checking for $ac_word... " >&6; }
11920 if ${ac_cv_path_OPENCONNECT+:} false; then :
11921   $as_echo_n "(cached) " >&6
11922 else
11923   case $OPENCONNECT in
11924   [\\/]* | ?:[\\/]*)
11925   ac_cv_path_OPENCONNECT="$OPENCONNECT" # Let the user override the test with a path.
11926   ;;
11927   *)
11928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11929 as_dummy="$PATH:/sbin:/usr/sbin"
11930 for as_dir in $as_dummy
11931 do
11932   IFS=$as_save_IFS
11933   test -z "$as_dir" && as_dir=.
11934     for ac_exec_ext in '' $ac_executable_extensions; do
11935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11936     ac_cv_path_OPENCONNECT="$as_dir/$ac_word$ac_exec_ext"
11937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11938     break 2
11939   fi
11940 done
11941   done
11942 IFS=$as_save_IFS
11943
11944   ;;
11945 esac
11946 fi
11947 OPENCONNECT=$ac_cv_path_OPENCONNECT
11948 if test -n "$OPENCONNECT"; then
11949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENCONNECT" >&5
11950 $as_echo "$OPENCONNECT" >&6; }
11951 else
11952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11953 $as_echo "no" >&6; }
11954 fi
11955
11956
11957                 if (test -z "${OPENCONNECT}"); then
11958                         as_fn_error $? "openconnect binary not found" "$LINENO" 5
11959                 fi
11960         else
11961                 OPENCONNECT="${path_openconnect}"
11962
11963         fi
11964 fi
11965  if test "${enable_openconnect}" != "no"; then
11966   OPENCONNECT_TRUE=
11967   OPENCONNECT_FALSE='#'
11968 else
11969   OPENCONNECT_TRUE='#'
11970   OPENCONNECT_FALSE=
11971 fi
11972
11973  if test "${enable_openconnect}" = "builtin"; then
11974   OPENCONNECT_BUILTIN_TRUE=
11975   OPENCONNECT_BUILTIN_FALSE='#'
11976 else
11977   OPENCONNECT_BUILTIN_TRUE='#'
11978   OPENCONNECT_BUILTIN_FALSE=
11979 fi
11980
11981
11982
11983 # Check whether --with-openvpn was given.
11984 if test "${with_openvpn+set}" = set; then :
11985   withval=$with_openvpn; path_openvpn=${withval}
11986 fi
11987
11988
11989 # Check whether --enable-openvpn was given.
11990 if test "${enable_openvpn+set}" = set; then :
11991   enableval=$enable_openvpn; enable_openvpn=${enableval}
11992 else
11993   enable_openvpn="no"
11994 fi
11995
11996 if (test "${enable_openvpn}" != "no"); then
11997         if (test -z "${path_openvpn}"); then
11998                 # Extract the first word of "openvpn", so it can be a program name with args.
11999 set dummy openvpn; ac_word=$2
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12001 $as_echo_n "checking for $ac_word... " >&6; }
12002 if ${ac_cv_path_OPENVPN+:} false; then :
12003   $as_echo_n "(cached) " >&6
12004 else
12005   case $OPENVPN in
12006   [\\/]* | ?:[\\/]*)
12007   ac_cv_path_OPENVPN="$OPENVPN" # Let the user override the test with a path.
12008   ;;
12009   *)
12010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011 as_dummy="$PATH:/sbin:/usr/sbin"
12012 for as_dir in $as_dummy
12013 do
12014   IFS=$as_save_IFS
12015   test -z "$as_dir" && as_dir=.
12016     for ac_exec_ext in '' $ac_executable_extensions; do
12017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12018     ac_cv_path_OPENVPN="$as_dir/$ac_word$ac_exec_ext"
12019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12020     break 2
12021   fi
12022 done
12023   done
12024 IFS=$as_save_IFS
12025
12026   ;;
12027 esac
12028 fi
12029 OPENVPN=$ac_cv_path_OPENVPN
12030 if test -n "$OPENVPN"; then
12031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENVPN" >&5
12032 $as_echo "$OPENVPN" >&6; }
12033 else
12034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12035 $as_echo "no" >&6; }
12036 fi
12037
12038
12039                 if (test -z "${OPENVPN}"); then
12040                         as_fn_error $? "openvpn binary not found" "$LINENO" 5
12041                 fi
12042         else
12043                 OPENVPN="${path_openvpn}"
12044
12045         fi
12046 fi
12047  if test "${enable_openvpn}" != "no"; then
12048   OPENVPN_TRUE=
12049   OPENVPN_FALSE='#'
12050 else
12051   OPENVPN_TRUE='#'
12052   OPENVPN_FALSE=
12053 fi
12054
12055  if test "${enable_openvpn}" = "builtin"; then
12056   OPENVPN_BUILTIN_TRUE=
12057   OPENVPN_BUILTIN_FALSE='#'
12058 else
12059   OPENVPN_BUILTIN_TRUE='#'
12060   OPENVPN_BUILTIN_FALSE=
12061 fi
12062
12063
12064
12065 # Check whether --with-vpnc was given.
12066 if test "${with_vpnc+set}" = set; then :
12067   withval=$with_vpnc; path_vpnc=${withval}
12068 fi
12069
12070
12071 # Check whether --enable-vpnc was given.
12072 if test "${enable_vpnc+set}" = set; then :
12073   enableval=$enable_vpnc; enable_vpnc=${enableval}
12074 else
12075   enable_vpnc="no"
12076 fi
12077
12078 if (test "${enable_vpnc}" != "no"); then
12079         if (test -z "${path_vpnc}"); then
12080                 # Extract the first word of "vpnc", so it can be a program name with args.
12081 set dummy vpnc; ac_word=$2
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12083 $as_echo_n "checking for $ac_word... " >&6; }
12084 if ${ac_cv_path_VPNC+:} false; then :
12085   $as_echo_n "(cached) " >&6
12086 else
12087   case $VPNC in
12088   [\\/]* | ?:[\\/]*)
12089   ac_cv_path_VPNC="$VPNC" # Let the user override the test with a path.
12090   ;;
12091   *)
12092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 as_dummy="$PATH:/sbin:/usr/sbin"
12094 for as_dir in $as_dummy
12095 do
12096   IFS=$as_save_IFS
12097   test -z "$as_dir" && as_dir=.
12098     for ac_exec_ext in '' $ac_executable_extensions; do
12099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12100     ac_cv_path_VPNC="$as_dir/$ac_word$ac_exec_ext"
12101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12102     break 2
12103   fi
12104 done
12105   done
12106 IFS=$as_save_IFS
12107
12108   ;;
12109 esac
12110 fi
12111 VPNC=$ac_cv_path_VPNC
12112 if test -n "$VPNC"; then
12113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VPNC" >&5
12114 $as_echo "$VPNC" >&6; }
12115 else
12116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12118 fi
12119
12120
12121                 if (test -z "${VPNC}"); then
12122                         as_fn_error $? "vpnc binary not found" "$LINENO" 5
12123                 fi
12124         else
12125                 VPNC="${path_vpnc}"
12126
12127         fi
12128 fi
12129  if test "${enable_vpnc}" != "no"; then
12130   VPNC_TRUE=
12131   VPNC_FALSE='#'
12132 else
12133   VPNC_TRUE='#'
12134   VPNC_FALSE=
12135 fi
12136
12137  if test "${enable_vpnc}" = "builtin"; then
12138   VPNC_BUILTIN_TRUE=
12139   VPNC_BUILTIN_FALSE='#'
12140 else
12141   VPNC_BUILTIN_TRUE='#'
12142   VPNC_BUILTIN_FALSE=
12143 fi
12144
12145
12146
12147 # Check whether --with-l2tp was given.
12148 if test "${with_l2tp+set}" = set; then :
12149   withval=$with_l2tp; path_l2tp=${withval}
12150 fi
12151
12152
12153 # Check whether --enable-l2tp was given.
12154 if test "${enable_l2tp+set}" = set; then :
12155   enableval=$enable_l2tp; enable_l2tp=${enableval}
12156 else
12157   enable_l2tp="no"
12158 fi
12159
12160 if (test "${enable_l2tp}" != "no"); then
12161         if (test -z "${path_pppd}"); then
12162                 # Extract the first word of "pppd", so it can be a program name with args.
12163 set dummy pppd; ac_word=$2
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12165 $as_echo_n "checking for $ac_word... " >&6; }
12166 if ${ac_cv_path_PPPD+:} false; then :
12167   $as_echo_n "(cached) " >&6
12168 else
12169   case $PPPD in
12170   [\\/]* | ?:[\\/]*)
12171   ac_cv_path_PPPD="$PPPD" # Let the user override the test with a path.
12172   ;;
12173   *)
12174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12175 as_dummy="$PATH:/sbin:/usr/sbin"
12176 for as_dir in $as_dummy
12177 do
12178   IFS=$as_save_IFS
12179   test -z "$as_dir" && as_dir=.
12180     for ac_exec_ext in '' $ac_executable_extensions; do
12181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12182     ac_cv_path_PPPD="$as_dir/$ac_word$ac_exec_ext"
12183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12184     break 2
12185   fi
12186 done
12187   done
12188 IFS=$as_save_IFS
12189
12190   test -z "$ac_cv_path_PPPD" && ac_cv_path_PPPD="/usr/sbin/pppd"
12191   ;;
12192 esac
12193 fi
12194 PPPD=$ac_cv_path_PPPD
12195 if test -n "$PPPD"; then
12196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPPD" >&5
12197 $as_echo "$PPPD" >&6; }
12198 else
12199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200 $as_echo "no" >&6; }
12201 fi
12202
12203
12204         else
12205                 PPPD="${path_pppd}"
12206
12207         fi
12208         for ac_header in pppd/pppd.h
12209 do :
12210   ac_fn_c_check_header_mongrel "$LINENO" "pppd/pppd.h" "ac_cv_header_pppd_pppd_h" "$ac_includes_default"
12211 if test "x$ac_cv_header_pppd_pppd_h" = xyes; then :
12212   cat >>confdefs.h <<_ACEOF
12213 #define HAVE_PPPD_PPPD_H 1
12214 _ACEOF
12215  dummy=yes
12216 else
12217   as_fn_error $? "ppp header files are required" "$LINENO" 5
12218 fi
12219
12220 done
12221
12222         if (test -z "${path_l2tp}"); then
12223                 # Extract the first word of "xl2tpd", so it can be a program name with args.
12224 set dummy xl2tpd; ac_word=$2
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12226 $as_echo_n "checking for $ac_word... " >&6; }
12227 if ${ac_cv_path_L2TP+:} false; then :
12228   $as_echo_n "(cached) " >&6
12229 else
12230   case $L2TP in
12231   [\\/]* | ?:[\\/]*)
12232   ac_cv_path_L2TP="$L2TP" # Let the user override the test with a path.
12233   ;;
12234   *)
12235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 as_dummy="$PATH:/sbin:/usr/sbin"
12237 for as_dir in $as_dummy
12238 do
12239   IFS=$as_save_IFS
12240   test -z "$as_dir" && as_dir=.
12241     for ac_exec_ext in '' $ac_executable_extensions; do
12242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12243     ac_cv_path_L2TP="$as_dir/$ac_word$ac_exec_ext"
12244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12245     break 2
12246   fi
12247 done
12248   done
12249 IFS=$as_save_IFS
12250
12251   test -z "$ac_cv_path_L2TP" && ac_cv_path_L2TP="/usr/sbin/xl2tpd"
12252   ;;
12253 esac
12254 fi
12255 L2TP=$ac_cv_path_L2TP
12256 if test -n "$L2TP"; then
12257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $L2TP" >&5
12258 $as_echo "$L2TP" >&6; }
12259 else
12260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12262 fi
12263
12264
12265         else
12266                 L2TP="${path_l2tp}"
12267
12268         fi
12269 fi
12270  if test "${enable_l2tp}" != "no"; then
12271   L2TP_TRUE=
12272   L2TP_FALSE='#'
12273 else
12274   L2TP_TRUE='#'
12275   L2TP_FALSE=
12276 fi
12277
12278  if test "${enable_l2tp}" = "builtin"; then
12279   L2TP_BUILTIN_TRUE=
12280   L2TP_BUILTIN_FALSE='#'
12281 else
12282   L2TP_BUILTIN_TRUE='#'
12283   L2TP_BUILTIN_FALSE=
12284 fi
12285
12286
12287
12288 # Check whether --with-pptp was given.
12289 if test "${with_pptp+set}" = set; then :
12290   withval=$with_pptp; path_pptp=${withval}
12291 fi
12292
12293
12294 # Check whether --enable-pptp was given.
12295 if test "${enable_pptp+set}" = set; then :
12296   enableval=$enable_pptp; enable_pptp=${enableval}
12297 else
12298   enable_pptp="no"
12299 fi
12300
12301 if (test "${enable_pptp}" != "no"); then
12302         if (test -z "${path_pppd}"); then
12303                 # Extract the first word of "pppd", so it can be a program name with args.
12304 set dummy pppd; ac_word=$2
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12306 $as_echo_n "checking for $ac_word... " >&6; }
12307 if ${ac_cv_path_PPPD+:} false; then :
12308   $as_echo_n "(cached) " >&6
12309 else
12310   case $PPPD in
12311   [\\/]* | ?:[\\/]*)
12312   ac_cv_path_PPPD="$PPPD" # Let the user override the test with a path.
12313   ;;
12314   *)
12315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 as_dummy="$PATH:/sbin:/usr/sbin"
12317 for as_dir in $as_dummy
12318 do
12319   IFS=$as_save_IFS
12320   test -z "$as_dir" && as_dir=.
12321     for ac_exec_ext in '' $ac_executable_extensions; do
12322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12323     ac_cv_path_PPPD="$as_dir/$ac_word$ac_exec_ext"
12324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12325     break 2
12326   fi
12327 done
12328   done
12329 IFS=$as_save_IFS
12330
12331   test -z "$ac_cv_path_PPPD" && ac_cv_path_PPPD="/usr/sbin/pppd"
12332   ;;
12333 esac
12334 fi
12335 PPPD=$ac_cv_path_PPPD
12336 if test -n "$PPPD"; then
12337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPPD" >&5
12338 $as_echo "$PPPD" >&6; }
12339 else
12340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341 $as_echo "no" >&6; }
12342 fi
12343
12344
12345         else
12346                 PPPD="${path_pppd}"
12347
12348         fi
12349         for ac_header in pppd/pppd.h
12350 do :
12351   ac_fn_c_check_header_mongrel "$LINENO" "pppd/pppd.h" "ac_cv_header_pppd_pppd_h" "$ac_includes_default"
12352 if test "x$ac_cv_header_pppd_pppd_h" = xyes; then :
12353   cat >>confdefs.h <<_ACEOF
12354 #define HAVE_PPPD_PPPD_H 1
12355 _ACEOF
12356  dummy=yes
12357 else
12358   as_fn_error $? "ppp header files are required" "$LINENO" 5
12359 fi
12360
12361 done
12362
12363         if (test -z "${path_pptp}"); then
12364                 # Extract the first word of "pptp", so it can be a program name with args.
12365 set dummy pptp; ac_word=$2
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367 $as_echo_n "checking for $ac_word... " >&6; }
12368 if ${ac_cv_path_PPTP+:} false; then :
12369   $as_echo_n "(cached) " >&6
12370 else
12371   case $PPTP in
12372   [\\/]* | ?:[\\/]*)
12373   ac_cv_path_PPTP="$PPTP" # Let the user override the test with a path.
12374   ;;
12375   *)
12376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377 as_dummy="$PATH:/sbin:/usr/sbin"
12378 for as_dir in $as_dummy
12379 do
12380   IFS=$as_save_IFS
12381   test -z "$as_dir" && as_dir=.
12382     for ac_exec_ext in '' $ac_executable_extensions; do
12383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12384     ac_cv_path_PPTP="$as_dir/$ac_word$ac_exec_ext"
12385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12386     break 2
12387   fi
12388 done
12389   done
12390 IFS=$as_save_IFS
12391
12392   test -z "$ac_cv_path_PPTP" && ac_cv_path_PPTP="/usr/sbin/pptp"
12393   ;;
12394 esac
12395 fi
12396 PPTP=$ac_cv_path_PPTP
12397 if test -n "$PPTP"; then
12398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPTP" >&5
12399 $as_echo "$PPTP" >&6; }
12400 else
12401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402 $as_echo "no" >&6; }
12403 fi
12404
12405
12406         else
12407                 PPTP="${path_pptp}"
12408
12409         fi
12410 fi
12411  if test "${enable_pptp}" != "no"; then
12412   PPTP_TRUE=
12413   PPTP_FALSE='#'
12414 else
12415   PPTP_TRUE='#'
12416   PPTP_FALSE=
12417 fi
12418
12419  if test "${enable_pptp}" = "builtin"; then
12420   PPTP_BUILTIN_TRUE=
12421   PPTP_BUILTIN_FALSE='#'
12422 else
12423   PPTP_BUILTIN_TRUE='#'
12424   PPTP_BUILTIN_FALSE=
12425 fi
12426
12427
12428 for ac_header in resolv.h
12429 do :
12430   ac_fn_c_check_header_mongrel "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default"
12431 if test "x$ac_cv_header_resolv_h" = xyes; then :
12432   cat >>confdefs.h <<_ACEOF
12433 #define HAVE_RESOLV_H 1
12434 _ACEOF
12435  dummy=yes
12436 else
12437   as_fn_error $? "resolver header files are required" "$LINENO" 5
12438 fi
12439
12440 done
12441
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ns_initparse in -lresolv" >&5
12443 $as_echo_n "checking for ns_initparse in -lresolv... " >&6; }
12444 if ${ac_cv_lib_resolv_ns_initparse+:} false; then :
12445   $as_echo_n "(cached) " >&6
12446 else
12447   ac_check_lib_save_LIBS=$LIBS
12448 LIBS="-lresolv  $LIBS"
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h.  */
12451
12452 /* Override any GCC internal prototype to avoid an error.
12453    Use char because int might match the return type of a GCC
12454    builtin and then its argument prototype would still apply.  */
12455 #ifdef __cplusplus
12456 extern "C"
12457 #endif
12458 char ns_initparse ();
12459 int
12460 main ()
12461 {
12462 return ns_initparse ();
12463   ;
12464   return 0;
12465 }
12466 _ACEOF
12467 if ac_fn_c_try_link "$LINENO"; then :
12468   ac_cv_lib_resolv_ns_initparse=yes
12469 else
12470   ac_cv_lib_resolv_ns_initparse=no
12471 fi
12472 rm -f core conftest.err conftest.$ac_objext \
12473     conftest$ac_exeext conftest.$ac_ext
12474 LIBS=$ac_check_lib_save_LIBS
12475 fi
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_ns_initparse" >&5
12477 $as_echo "$ac_cv_lib_resolv_ns_initparse" >&6; }
12478 if test "x$ac_cv_lib_resolv_ns_initparse" = xyes; then :
12479   dummy=yes
12480 else
12481
12482         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ns_initparse in -lresolv" >&5
12483 $as_echo_n "checking for __ns_initparse in -lresolv... " >&6; }
12484 if ${ac_cv_lib_resolv___ns_initparse+:} false; then :
12485   $as_echo_n "(cached) " >&6
12486 else
12487   ac_check_lib_save_LIBS=$LIBS
12488 LIBS="-lresolv  $LIBS"
12489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490 /* end confdefs.h.  */
12491
12492 /* Override any GCC internal prototype to avoid an error.
12493    Use char because int might match the return type of a GCC
12494    builtin and then its argument prototype would still apply.  */
12495 #ifdef __cplusplus
12496 extern "C"
12497 #endif
12498 char __ns_initparse ();
12499 int
12500 main ()
12501 {
12502 return __ns_initparse ();
12503   ;
12504   return 0;
12505 }
12506 _ACEOF
12507 if ac_fn_c_try_link "$LINENO"; then :
12508   ac_cv_lib_resolv___ns_initparse=yes
12509 else
12510   ac_cv_lib_resolv___ns_initparse=no
12511 fi
12512 rm -f core conftest.err conftest.$ac_objext \
12513     conftest$ac_exeext conftest.$ac_ext
12514 LIBS=$ac_check_lib_save_LIBS
12515 fi
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___ns_initparse" >&5
12517 $as_echo "$ac_cv_lib_resolv___ns_initparse" >&6; }
12518 if test "x$ac_cv_lib_resolv___ns_initparse" = xyes; then :
12519   dummy=yes
12520 else
12521   as_fn_error $? "resolver library support is required" "$LINENO" 5
12522 fi
12523
12524
12525 fi
12526
12527
12528 ac_fn_c_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd"
12529 if test "x$ac_cv_func_signalfd" = xyes; then :
12530   dummy=yes
12531 else
12532   as_fn_error $? "signalfd support is required" "$LINENO" 5
12533 fi
12534
12535
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12537 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12538 if ${ac_cv_lib_dl_dlopen+:} false; then :
12539   $as_echo_n "(cached) " >&6
12540 else
12541   ac_check_lib_save_LIBS=$LIBS
12542 LIBS="-ldl  $LIBS"
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h.  */
12545
12546 /* Override any GCC internal prototype to avoid an error.
12547    Use char because int might match the return type of a GCC
12548    builtin and then its argument prototype would still apply.  */
12549 #ifdef __cplusplus
12550 extern "C"
12551 #endif
12552 char dlopen ();
12553 int
12554 main ()
12555 {
12556 return dlopen ();
12557   ;
12558   return 0;
12559 }
12560 _ACEOF
12561 if ac_fn_c_try_link "$LINENO"; then :
12562   ac_cv_lib_dl_dlopen=yes
12563 else
12564   ac_cv_lib_dl_dlopen=no
12565 fi
12566 rm -f core conftest.err conftest.$ac_objext \
12567     conftest$ac_exeext conftest.$ac_ext
12568 LIBS=$ac_check_lib_save_LIBS
12569 fi
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12571 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12572 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12573   dummy=yes
12574 else
12575   as_fn_error $? "dynamic linking loader is required" "$LINENO" 5
12576 fi
12577
12578
12579 # Check whether --enable-iospm was given.
12580 if test "${enable_iospm+set}" = set; then :
12581   enableval=$enable_iospm; enable_iospm=${enableval}
12582 fi
12583
12584  if test "${enable_iospm}" = "yes"; then
12585   IOSPM_TRUE=
12586   IOSPM_FALSE='#'
12587 else
12588   IOSPM_TRUE='#'
12589   IOSPM_FALSE=
12590 fi
12591
12592
12593 # Check whether --enable-tist was given.
12594 if test "${enable_tist+set}" = set; then :
12595   enableval=$enable_tist; enable_tist=${enableval}
12596 else
12597   enable_tist="no"
12598 fi
12599
12600  if test "${enable_tist}" != "no"; then
12601   TIST_TRUE=
12602   TIST_FALSE='#'
12603 else
12604   TIST_TRUE='#'
12605   TIST_FALSE=
12606 fi
12607
12608  if test "${enable_tist}" = "builtin"; then
12609   TIST_BUILTIN_TRUE=
12610   TIST_BUILTIN_FALSE='#'
12611 else
12612   TIST_BUILTIN_TRUE='#'
12613   TIST_BUILTIN_FALSE=
12614 fi
12615
12616
12617 # Check whether --enable-session-policy-local was given.
12618 if test "${enable_session_policy_local+set}" = set; then :
12619   enableval=$enable_session_policy_local; enable_session_policy_local=${enableval}
12620 else
12621   enable_session_policy_local="no"
12622 fi
12623
12624  if test "${enable_session_policy_local}" != "no"; then
12625   SESSION_POLICY_LOCAL_TRUE=
12626   SESSION_POLICY_LOCAL_FALSE='#'
12627 else
12628   SESSION_POLICY_LOCAL_TRUE='#'
12629   SESSION_POLICY_LOCAL_FALSE=
12630 fi
12631
12632  if test "${enable_session_policy_local}" = "builtin"; then
12633   SESSION_POLICY_LOCAL_BUILTIN_TRUE=
12634   SESSION_POLICY_LOCAL_BUILTIN_FALSE='#'
12635 else
12636   SESSION_POLICY_LOCAL_BUILTIN_TRUE='#'
12637   SESSION_POLICY_LOCAL_BUILTIN_FALSE=
12638 fi
12639
12640
12641
12642 # Check whether --with-stats-max-file-size was given.
12643 if test "${with_stats_max_file_size+set}" = set; then :
12644   withval=$with_stats_max_file_size; stats_max_file_size=${withval}
12645 fi
12646
12647
12648 if (test -z "${stats_max_file_size}"); then
12649    # default size is 16 kByte
12650    stats_max_file_size="16 * 8 * 128"
12651 fi
12652
12653
12654 cat >>confdefs.h <<_ACEOF
12655 #define STATS_MAX_FILE_SIZE (${stats_max_file_size})
12656 _ACEOF
12657
12658
12659
12660 pkg_failed=no
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12662 $as_echo_n "checking for GLIB... " >&6; }
12663
12664 if test -n "$GLIB_CFLAGS"; then
12665     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12666  elif test -n "$PKG_CONFIG"; then
12667     if test -n "$PKG_CONFIG" && \
12668     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12669   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12670   ac_status=$?
12671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12672   test $ac_status = 0; }; then
12673   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28" 2>/dev/null`
12674                       test "x$?" != "x0" && pkg_failed=yes
12675 else
12676   pkg_failed=yes
12677 fi
12678  else
12679     pkg_failed=untried
12680 fi
12681 if test -n "$GLIB_LIBS"; then
12682     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12683  elif test -n "$PKG_CONFIG"; then
12684     if test -n "$PKG_CONFIG" && \
12685     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12686   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12687   ac_status=$?
12688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12689   test $ac_status = 0; }; then
12690   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28" 2>/dev/null`
12691                       test "x$?" != "x0" && pkg_failed=yes
12692 else
12693   pkg_failed=yes
12694 fi
12695  else
12696     pkg_failed=untried
12697 fi
12698
12699
12700
12701 if test $pkg_failed = yes; then
12702         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12703 $as_echo "no" >&6; }
12704
12705 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12706         _pkg_short_errors_supported=yes
12707 else
12708         _pkg_short_errors_supported=no
12709 fi
12710         if test $_pkg_short_errors_supported = yes; then
12711                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12712         else
12713                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12714         fi
12715         # Put the nasty error message in config.log where it belongs
12716         echo "$GLIB_PKG_ERRORS" >&5
12717
12718         as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12719 elif test $pkg_failed = untried; then
12720         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721 $as_echo "no" >&6; }
12722         as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12723 else
12724         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12725         GLIB_LIBS=$pkg_cv_GLIB_LIBS
12726         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12727 $as_echo "yes" >&6; }
12728         dummy=yes
12729 fi
12730
12731
12732
12733
12734 pkg_failed=no
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
12736 $as_echo_n "checking for DBUS... " >&6; }
12737
12738 if test -n "$DBUS_CFLAGS"; then
12739     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
12740  elif test -n "$PKG_CONFIG"; then
12741     if test -n "$PKG_CONFIG" && \
12742     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.4\""; } >&5
12743   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.4") 2>&5
12744   ac_status=$?
12745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12746   test $ac_status = 0; }; then
12747   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.4" 2>/dev/null`
12748                       test "x$?" != "x0" && pkg_failed=yes
12749 else
12750   pkg_failed=yes
12751 fi
12752  else
12753     pkg_failed=untried
12754 fi
12755 if test -n "$DBUS_LIBS"; then
12756     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
12757  elif test -n "$PKG_CONFIG"; then
12758     if test -n "$PKG_CONFIG" && \
12759     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.4\""; } >&5
12760   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.4") 2>&5
12761   ac_status=$?
12762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12763   test $ac_status = 0; }; then
12764   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.4" 2>/dev/null`
12765                       test "x$?" != "x0" && pkg_failed=yes
12766 else
12767   pkg_failed=yes
12768 fi
12769  else
12770     pkg_failed=untried
12771 fi
12772
12773
12774
12775 if test $pkg_failed = yes; then
12776         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12778
12779 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12780         _pkg_short_errors_supported=yes
12781 else
12782         _pkg_short_errors_supported=no
12783 fi
12784         if test $_pkg_short_errors_supported = yes; then
12785                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 1.4" 2>&1`
12786         else
12787                 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 1.4" 2>&1`
12788         fi
12789         # Put the nasty error message in config.log where it belongs
12790         echo "$DBUS_PKG_ERRORS" >&5
12791
12792         as_fn_error $? "D-Bus >= 1.4 is required" "$LINENO" 5
12793 elif test $pkg_failed = untried; then
12794         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12796         as_fn_error $? "D-Bus >= 1.4 is required" "$LINENO" 5
12797 else
12798         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
12799         DBUS_LIBS=$pkg_cv_DBUS_LIBS
12800         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12801 $as_echo "yes" >&6; }
12802         dummy=yes
12803 fi
12804
12805
12806
12807
12808 # Check whether --with-dbusconfdir was given.
12809 if test "${with_dbusconfdir+set}" = set; then :
12810   withval=$with_dbusconfdir; path_dbusconf=${withval}
12811 else
12812   path_dbusconf="`$PKG_CONFIG --variable=sysconfdir dbus-1`"
12813 fi
12814
12815 if (test -z "${path_dbusconf}"); then
12816         DBUS_CONFDIR="${sysconfdir}/dbus-1/system.d"
12817 else
12818         DBUS_CONFDIR="${path_dbusconf}/dbus-1/system.d"
12819 fi
12820
12821
12822
12823 # Check whether --with-dbusdatadir was given.
12824 if test "${with_dbusdatadir+set}" = set; then :
12825   withval=$with_dbusdatadir; path_dbusdata=${withval}
12826 else
12827   path_dbusdata="`$PKG_CONFIG --variable=datadir dbus-1`"
12828 fi
12829
12830 if (test -z "${path_dbusdata}"); then
12831         DBUS_DATADIR="${datadir}/dbus-1/system-services"
12832 else
12833         DBUS_DATADIR="${path_dbusdata}/dbus-1/system-services"
12834 fi
12835
12836
12837
12838 # Check whether --with-systemdunitdir was given.
12839 if test "${with_systemdunitdir+set}" = set; then :
12840   withval=$with_systemdunitdir; path_systemdunit=${withval}
12841 else
12842   path_systemdunit="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"
12843 fi
12844
12845 if (test -n "${path_systemdunit}"); then
12846         SYSTEMD_UNITDIR="${path_systemdunit}"
12847
12848 fi
12849  if test -n "${path_systemdunit}"; then
12850   SYSTEMD_TRUE=
12851   SYSTEMD_FALSE='#'
12852 else
12853   SYSTEMD_TRUE='#'
12854   SYSTEMD_FALSE=
12855 fi
12856
12857
12858
12859 pkg_failed=no
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTABLES" >&5
12861 $as_echo_n "checking for XTABLES... " >&6; }
12862
12863 if test -n "$XTABLES_CFLAGS"; then
12864     pkg_cv_XTABLES_CFLAGS="$XTABLES_CFLAGS"
12865  elif test -n "$PKG_CONFIG"; then
12866     if test -n "$PKG_CONFIG" && \
12867     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtables >= 1.4.11\""; } >&5
12868   ($PKG_CONFIG --exists --print-errors "xtables >= 1.4.11") 2>&5
12869   ac_status=$?
12870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12871   test $ac_status = 0; }; then
12872   pkg_cv_XTABLES_CFLAGS=`$PKG_CONFIG --cflags "xtables >= 1.4.11" 2>/dev/null`
12873                       test "x$?" != "x0" && pkg_failed=yes
12874 else
12875   pkg_failed=yes
12876 fi
12877  else
12878     pkg_failed=untried
12879 fi
12880 if test -n "$XTABLES_LIBS"; then
12881     pkg_cv_XTABLES_LIBS="$XTABLES_LIBS"
12882  elif test -n "$PKG_CONFIG"; then
12883     if test -n "$PKG_CONFIG" && \
12884     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtables >= 1.4.11\""; } >&5
12885   ($PKG_CONFIG --exists --print-errors "xtables >= 1.4.11") 2>&5
12886   ac_status=$?
12887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12888   test $ac_status = 0; }; then
12889   pkg_cv_XTABLES_LIBS=`$PKG_CONFIG --libs "xtables >= 1.4.11" 2>/dev/null`
12890                       test "x$?" != "x0" && pkg_failed=yes
12891 else
12892   pkg_failed=yes
12893 fi
12894  else
12895     pkg_failed=untried
12896 fi
12897
12898
12899
12900 if test $pkg_failed = yes; then
12901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 $as_echo "no" >&6; }
12903
12904 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12905         _pkg_short_errors_supported=yes
12906 else
12907         _pkg_short_errors_supported=no
12908 fi
12909         if test $_pkg_short_errors_supported = yes; then
12910                 XTABLES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xtables >= 1.4.11" 2>&1`
12911         else
12912                 XTABLES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xtables >= 1.4.11" 2>&1`
12913         fi
12914         # Put the nasty error message in config.log where it belongs
12915         echo "$XTABLES_PKG_ERRORS" >&5
12916
12917         as_fn_error $? "Xtables library is required" "$LINENO" 5
12918 elif test $pkg_failed = untried; then
12919         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920 $as_echo "no" >&6; }
12921         as_fn_error $? "Xtables library is required" "$LINENO" 5
12922 else
12923         XTABLES_CFLAGS=$pkg_cv_XTABLES_CFLAGS
12924         XTABLES_LIBS=$pkg_cv_XTABLES_LIBS
12925         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12926 $as_echo "yes" >&6; }
12927         dummy=yes
12928 fi
12929
12930
12931
12932 # Check whether --enable-test was given.
12933 if test "${enable_test+set}" = set; then :
12934   enableval=$enable_test; enable_test=${enableval}
12935 fi
12936
12937  if test "${enable_test}" = "yes"; then
12938   TEST_TRUE=
12939   TEST_FALSE='#'
12940 else
12941   TEST_TRUE='#'
12942   TEST_FALSE=
12943 fi
12944
12945
12946 # Check whether --enable-nmcompat was given.
12947 if test "${enable_nmcompat+set}" = set; then :
12948   enableval=$enable_nmcompat; enable_nmcompat=${enableval}
12949 else
12950   enable_nmcompat="no"
12951 fi
12952
12953  if test "${enable_nmcompat}" != "no"; then
12954   NMCOMPAT_TRUE=
12955   NMCOMPAT_FALSE='#'
12956 else
12957   NMCOMPAT_TRUE='#'
12958   NMCOMPAT_FALSE=
12959 fi
12960
12961
12962 # Check whether --enable-polkit was given.
12963 if test "${enable_polkit+set}" = set; then :
12964   enableval=$enable_polkit; enable_polkit=${enableval}
12965 else
12966   enable_polkit="no"
12967 fi
12968
12969 if (test "${enable_polkit}" != "no"); then
12970         POLKIT_DATADIR="`$PKG_CONFIG --variable=actiondir polkit`"
12971         POLKIT_DATADIR=""
12972         if (test -z "${POLKIT_DATADIR}"); then
12973                 POLKIT_DATADIR="${datadir}/polkit-1/actions"
12974         fi
12975
12976 fi
12977  if test "${enable_polkit}" != "no"; then
12978   POLKIT_TRUE=
12979   POLKIT_FALSE='#'
12980 else
12981   POLKIT_TRUE='#'
12982   POLKIT_FALSE=
12983 fi
12984
12985
12986 # Check whether --enable-selinux was given.
12987 if test "${enable_selinux+set}" = set; then :
12988   enableval=$enable_selinux; enable_selinux=${enableval}
12989 else
12990   enable_selinux="no"
12991 fi
12992
12993  if test "${enable_selinux}" != "no"; then
12994   SELINUX_TRUE=
12995   SELINUX_FALSE='#'
12996 else
12997   SELINUX_TRUE='#'
12998   SELINUX_FALSE=
12999 fi
13000
13001
13002 # Check whether --enable-loopback was given.
13003 if test "${enable_loopback+set}" = set; then :
13004   enableval=$enable_loopback; enable_loopback=${enableval}
13005 fi
13006
13007  if test "${enable_loopback}" != "no"; then
13008   LOOPBACK_TRUE=
13009   LOOPBACK_FALSE='#'
13010 else
13011   LOOPBACK_TRUE='#'
13012   LOOPBACK_FALSE=
13013 fi
13014
13015
13016 # Check whether --enable-ethernet was given.
13017 if test "${enable_ethernet+set}" = set; then :
13018   enableval=$enable_ethernet; enable_ethernet=${enableval}
13019 fi
13020
13021  if test "${enable_ethernet}" != "no"; then
13022   ETHERNET_TRUE=
13023   ETHERNET_FALSE='#'
13024 else
13025   ETHERNET_TRUE='#'
13026   ETHERNET_FALSE=
13027 fi
13028
13029
13030 # Check whether --enable-gadget was given.
13031 if test "${enable_gadget+set}" = set; then :
13032   enableval=$enable_gadget; enable_gadget=${enableval}
13033 fi
13034
13035  if test "${enable_gadget}" != "no"; then
13036   GADGET_TRUE=
13037   GADGET_FALSE='#'
13038 else
13039   GADGET_TRUE='#'
13040   GADGET_FALSE=
13041 fi
13042
13043
13044 # Check whether --enable-wifi was given.
13045 if test "${enable_wifi+set}" = set; then :
13046   enableval=$enable_wifi; enable_wifi=${enableval}
13047 fi
13048
13049  if test "${enable_wifi}" != "no"; then
13050   WIFI_TRUE=
13051   WIFI_FALSE='#'
13052 else
13053   WIFI_TRUE='#'
13054   WIFI_FALSE=
13055 fi
13056
13057
13058 # Check whether --enable-bluetooth was given.
13059 if test "${enable_bluetooth+set}" = set; then :
13060   enableval=$enable_bluetooth; enable_bluetooth=${enableval}
13061 fi
13062
13063  if test "${enable_bluetooth}" != "no"; then
13064   BLUETOOTH_TRUE=
13065   BLUETOOTH_FALSE='#'
13066 else
13067   BLUETOOTH_TRUE='#'
13068   BLUETOOTH_FALSE=
13069 fi
13070
13071
13072 # Check whether --enable-ofono was given.
13073 if test "${enable_ofono+set}" = set; then :
13074   enableval=$enable_ofono; enable_ofono=${enableval}
13075 fi
13076
13077  if test "${enable_ofono}" != "no"; then
13078   OFONO_TRUE=
13079   OFONO_FALSE='#'
13080 else
13081   OFONO_TRUE='#'
13082   OFONO_FALSE=
13083 fi
13084
13085
13086 # Check whether --enable-dundee was given.
13087 if test "${enable_dundee+set}" = set; then :
13088   enableval=$enable_dundee; enable_dundee=${enableval}
13089 fi
13090
13091  if test "${enable_dundee}" != "no"; then
13092   DUNDEE_TRUE=
13093   DUNDEE_FALSE='#'
13094 else
13095   DUNDEE_TRUE='#'
13096   DUNDEE_FALSE=
13097 fi
13098
13099
13100 # Check whether --enable-pacrunner was given.
13101 if test "${enable_pacrunner+set}" = set; then :
13102   enableval=$enable_pacrunner; enable_pacrunner=${enableval}
13103 fi
13104
13105  if test "${enable_pacrunner}" != "no"; then
13106   PACRUNNER_TRUE=
13107   PACRUNNER_FALSE='#'
13108 else
13109   PACRUNNER_TRUE='#'
13110   PACRUNNER_FALSE=
13111 fi
13112
13113
13114 # Check whether --enable-neard was given.
13115 if test "${enable_neard+set}" = set; then :
13116   enableval=$enable_neard; enable_neard=${enableval}
13117 fi
13118
13119  if test "${enable_neard}" != "no"; then
13120   NEARD_TRUE=
13121   NEARD_FALSE='#'
13122 else
13123   NEARD_TRUE='#'
13124   NEARD_FALSE=
13125 fi
13126
13127
13128 # Check whether --enable-wispr was given.
13129 if test "${enable_wispr+set}" = set; then :
13130   enableval=$enable_wispr; enable_wispr=${enableval}
13131 fi
13132
13133  if test "${enable_wispr}" != "no"; then
13134   WISPR_TRUE=
13135   WISPR_FALSE='#'
13136 else
13137   WISPR_TRUE='#'
13138   WISPR_FALSE=
13139 fi
13140
13141
13142 # Check whether --enable-tools was given.
13143 if test "${enable_tools+set}" = set; then :
13144   enableval=$enable_tools; enable_tools=${enableval}
13145 fi
13146
13147  if test "${enable_tools}" != "no"; then
13148   TOOLS_TRUE=
13149   TOOLS_FALSE='#'
13150 else
13151   TOOLS_TRUE='#'
13152   TOOLS_FALSE=
13153 fi
13154
13155
13156 if (test "${enable_tools}" != "no"); then
13157         for ac_prog in iptables-save
13158 do
13159   # Extract the first word of "$ac_prog", so it can be a program name with args.
13160 set dummy $ac_prog; ac_word=$2
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13162 $as_echo_n "checking for $ac_word... " >&6; }
13163 if ${ac_cv_path_IPTABLES_SAVE+:} false; then :
13164   $as_echo_n "(cached) " >&6
13165 else
13166   case $IPTABLES_SAVE in
13167   [\\/]* | ?:[\\/]*)
13168   ac_cv_path_IPTABLES_SAVE="$IPTABLES_SAVE" # Let the user override the test with a path.
13169   ;;
13170   *)
13171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13172 as_dummy="$PATH:/sbin:/usr/sbin"
13173 for as_dir in $as_dummy
13174 do
13175   IFS=$as_save_IFS
13176   test -z "$as_dir" && as_dir=.
13177     for ac_exec_ext in '' $ac_executable_extensions; do
13178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13179     ac_cv_path_IPTABLES_SAVE="$as_dir/$ac_word$ac_exec_ext"
13180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13181     break 2
13182   fi
13183 done
13184   done
13185 IFS=$as_save_IFS
13186
13187   ;;
13188 esac
13189 fi
13190 IPTABLES_SAVE=$ac_cv_path_IPTABLES_SAVE
13191 if test -n "$IPTABLES_SAVE"; then
13192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPTABLES_SAVE" >&5
13193 $as_echo "$IPTABLES_SAVE" >&6; }
13194 else
13195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13196 $as_echo "no" >&6; }
13197 fi
13198
13199
13200   test -n "$IPTABLES_SAVE" && break
13201 done
13202
13203         IPTABLES_SAVE=$ac_cv_path_IPTABLES_SAVE
13204 else
13205         IPTABLES_SAVE=""
13206 fi
13207
13208
13209 # Check whether --enable-client was given.
13210 if test "${enable_client+set}" = set; then :
13211   enableval=$enable_client; enable_client=${enableval}
13212 fi
13213
13214  if test "${enable_client}" != "no"; then
13215   CLIENT_TRUE=
13216   CLIENT_FALSE='#'
13217 else
13218   CLIENT_TRUE='#'
13219   CLIENT_FALSE=
13220 fi
13221
13222
13223 if (test "${enable_wispr}" != "no"); then
13224
13225 pkg_failed=no
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
13227 $as_echo_n "checking for GNUTLS... " >&6; }
13228
13229 if test -n "$GNUTLS_CFLAGS"; then
13230     pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
13231  elif test -n "$PKG_CONFIG"; then
13232     if test -n "$PKG_CONFIG" && \
13233     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13234   ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13235   ac_status=$?
13236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13237   test $ac_status = 0; }; then
13238   pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
13239                       test "x$?" != "x0" && pkg_failed=yes
13240 else
13241   pkg_failed=yes
13242 fi
13243  else
13244     pkg_failed=untried
13245 fi
13246 if test -n "$GNUTLS_LIBS"; then
13247     pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
13248  elif test -n "$PKG_CONFIG"; then
13249     if test -n "$PKG_CONFIG" && \
13250     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13251   ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13252   ac_status=$?
13253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13254   test $ac_status = 0; }; then
13255   pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
13256                       test "x$?" != "x0" && pkg_failed=yes
13257 else
13258   pkg_failed=yes
13259 fi
13260  else
13261     pkg_failed=untried
13262 fi
13263
13264
13265
13266 if test $pkg_failed = yes; then
13267         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268 $as_echo "no" >&6; }
13269
13270 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13271         _pkg_short_errors_supported=yes
13272 else
13273         _pkg_short_errors_supported=no
13274 fi
13275         if test $_pkg_short_errors_supported = yes; then
13276                 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls" 2>&1`
13277         else
13278                 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls" 2>&1`
13279         fi
13280         # Put the nasty error message in config.log where it belongs
13281         echo "$GNUTLS_PKG_ERRORS" >&5
13282
13283         as_fn_error $? "GnuTLS library is required" "$LINENO" 5
13284 elif test $pkg_failed = untried; then
13285         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286 $as_echo "no" >&6; }
13287         as_fn_error $? "GnuTLS library is required" "$LINENO" 5
13288 else
13289         GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
13290         GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
13291         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13292 $as_echo "yes" >&6; }
13293         dummy=yes
13294 fi
13295 else
13296         GNUTLS_CFLAGS=""
13297         GNUTLS_LIBS=""
13298 fi
13299
13300
13301
13302 if (test "${enable_loopback}" != "no"); then
13303         for ac_header in sys/inotify.h
13304 do :
13305   ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
13306 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
13307   cat >>confdefs.h <<_ACEOF
13308 #define HAVE_SYS_INOTIFY_H 1
13309 _ACEOF
13310  dummy=yes
13311 else
13312   as_fn_error $? "inotify header files are required" "$LINENO" 5
13313 fi
13314
13315 done
13316
13317
13318         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inotify_init in -lc" >&5
13319 $as_echo_n "checking for inotify_init in -lc... " >&6; }
13320 if ${ac_cv_lib_c_inotify_init+:} false; then :
13321   $as_echo_n "(cached) " >&6
13322 else
13323   ac_check_lib_save_LIBS=$LIBS
13324 LIBS="-lc  $LIBS"
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h.  */
13327
13328 /* Override any GCC internal prototype to avoid an error.
13329    Use char because int might match the return type of a GCC
13330    builtin and then its argument prototype would still apply.  */
13331 #ifdef __cplusplus
13332 extern "C"
13333 #endif
13334 char inotify_init ();
13335 int
13336 main ()
13337 {
13338 return inotify_init ();
13339   ;
13340   return 0;
13341 }
13342 _ACEOF
13343 if ac_fn_c_try_link "$LINENO"; then :
13344   ac_cv_lib_c_inotify_init=yes
13345 else
13346   ac_cv_lib_c_inotify_init=no
13347 fi
13348 rm -f core conftest.err conftest.$ac_objext \
13349     conftest$ac_exeext conftest.$ac_ext
13350 LIBS=$ac_check_lib_save_LIBS
13351 fi
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inotify_init" >&5
13353 $as_echo "$ac_cv_lib_c_inotify_init" >&6; }
13354 if test "x$ac_cv_lib_c_inotify_init" = xyes; then :
13355   dummy=yes
13356 else
13357   as_fn_error $? "inotify library support is required" "$LINENO" 5
13358 fi
13359
13360 fi
13361
13362 if (test "${enable_wifi}" != "no"); then
13363         # Extract the first word of "wpa_supplicant", so it can be a program name with args.
13364 set dummy wpa_supplicant; ac_word=$2
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13366 $as_echo_n "checking for $ac_word... " >&6; }
13367 if ${ac_cv_path_WPASUPPLICANT+:} false; then :
13368   $as_echo_n "(cached) " >&6
13369 else
13370   case $WPASUPPLICANT in
13371   [\\/]* | ?:[\\/]*)
13372   ac_cv_path_WPASUPPLICANT="$WPASUPPLICANT" # Let the user override the test with a path.
13373   ;;
13374   *)
13375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13376 as_dummy="$PATH:/sbin:/usr/sbin"
13377 for as_dir in $as_dummy
13378 do
13379   IFS=$as_save_IFS
13380   test -z "$as_dir" && as_dir=.
13381     for ac_exec_ext in '' $ac_executable_extensions; do
13382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13383     ac_cv_path_WPASUPPLICANT="$as_dir/$ac_word$ac_exec_ext"
13384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13385     break 2
13386   fi
13387 done
13388   done
13389 IFS=$as_save_IFS
13390
13391   ;;
13392 esac
13393 fi
13394 WPASUPPLICANT=$ac_cv_path_WPASUPPLICANT
13395 if test -n "$WPASUPPLICANT"; then
13396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WPASUPPLICANT" >&5
13397 $as_echo "$WPASUPPLICANT" >&6; }
13398 else
13399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400 $as_echo "no" >&6; }
13401 fi
13402
13403
13404 fi
13405
13406 # Check whether --enable-datafiles was given.
13407 if test "${enable_datafiles+set}" = set; then :
13408   enableval=$enable_datafiles; enable_datafiles=${enableval}
13409 fi
13410
13411  if test "${enable_datafiles}" != "no"; then
13412   DATAFILES_TRUE=
13413   DATAFILES_FALSE='#'
13414 else
13415   DATAFILES_TRUE='#'
13416   DATAFILES_FALSE=
13417 fi
13418
13419
13420 if (test "${enable_client}" != "no"); then
13421         for ac_header in readline/readline.h
13422 do :
13423   ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13424 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
13425   cat >>confdefs.h <<_ACEOF
13426 #define HAVE_READLINE_READLINE_H 1
13427 _ACEOF
13428  dummy=yes
13429 else
13430   as_fn_error $? "readline header files are required" "$LINENO" 5
13431 fi
13432
13433 done
13434
13435 fi
13436
13437  if test "${enable_openconnect}" != "no" -o \
13438                         "${enable_openvpn}" != "no" -o \
13439                         "${enable_vpnc}" != "no" -o \
13440                         "${enable_l2tp}" != "no" -o \
13441                         "${enable_pptp}" != "no"; then
13442   VPN_TRUE=
13443   VPN_FALSE='#'
13444 else
13445   VPN_TRUE='#'
13446   VPN_FALSE=
13447 fi
13448
13449
13450 ac_config_files="$ac_config_files Makefile include/version.h connman.pc"
13451
13452 cat >confcache <<\_ACEOF
13453 # This file is a shell script that caches the results of configure
13454 # tests run on this system so they can be shared between configure
13455 # scripts and configure runs, see configure's option --config-cache.
13456 # It is not useful on other systems.  If it contains results you don't
13457 # want to keep, you may remove or edit it.
13458 #
13459 # config.status only pays attention to the cache file if you give it
13460 # the --recheck option to rerun configure.
13461 #
13462 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13463 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13464 # following values.
13465
13466 _ACEOF
13467
13468 # The following way of writing the cache mishandles newlines in values,
13469 # but we know of no workaround that is simple, portable, and efficient.
13470 # So, we kill variables containing newlines.
13471 # Ultrix sh set writes to stderr and can't be redirected directly,
13472 # and sets the high bit in the cache file unless we assign to the vars.
13473 (
13474   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13475     eval ac_val=\$$ac_var
13476     case $ac_val in #(
13477     *${as_nl}*)
13478       case $ac_var in #(
13479       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13480 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13481       esac
13482       case $ac_var in #(
13483       _ | IFS | as_nl) ;; #(
13484       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13485       *) { eval $ac_var=; unset $ac_var;} ;;
13486       esac ;;
13487     esac
13488   done
13489
13490   (set) 2>&1 |
13491     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13492     *${as_nl}ac_space=\ *)
13493       # `set' does not quote correctly, so add quotes: double-quote
13494       # substitution turns \\\\ into \\, and sed turns \\ into \.
13495       sed -n \
13496         "s/'/'\\\\''/g;
13497           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13498       ;; #(
13499     *)
13500       # `set' quotes correctly as required by POSIX, so do not add quotes.
13501       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13502       ;;
13503     esac |
13504     sort
13505 ) |
13506   sed '
13507      /^ac_cv_env_/b end
13508      t clear
13509      :clear
13510      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13511      t end
13512      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13513      :end' >>confcache
13514 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13515   if test -w "$cache_file"; then
13516     if test "x$cache_file" != "x/dev/null"; then
13517       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13518 $as_echo "$as_me: updating cache $cache_file" >&6;}
13519       if test ! -f "$cache_file" || test -h "$cache_file"; then
13520         cat confcache >"$cache_file"
13521       else
13522         case $cache_file in #(
13523         */* | ?:*)
13524           mv -f confcache "$cache_file"$$ &&
13525           mv -f "$cache_file"$$ "$cache_file" ;; #(
13526         *)
13527           mv -f confcache "$cache_file" ;;
13528         esac
13529       fi
13530     fi
13531   else
13532     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13533 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13534   fi
13535 fi
13536 rm -f confcache
13537
13538 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13539 # Let make expand exec_prefix.
13540 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13541
13542 DEFS=-DHAVE_CONFIG_H
13543
13544 ac_libobjs=
13545 ac_ltlibobjs=
13546 U=
13547 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13548   # 1. Remove the extension, and $U if already installed.
13549   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13550   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13551   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13552   #    will be set to the directory where LIBOBJS objects are built.
13553   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13554   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13555 done
13556 LIBOBJS=$ac_libobjs
13557
13558 LTLIBOBJS=$ac_ltlibobjs
13559
13560
13561  if test -n "$EXEEXT"; then
13562   am__EXEEXT_TRUE=
13563   am__EXEEXT_FALSE='#'
13564 else
13565   am__EXEEXT_TRUE='#'
13566   am__EXEEXT_FALSE=
13567 fi
13568
13569 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13570   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13572 fi
13573 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13574   as_fn_error $? "conditional \"AMDEP\" was never defined.
13575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13576 fi
13577 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13578   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13580 fi
13581 if test -z "${HH2SERIAL_GPS_TRUE}" && test -z "${HH2SERIAL_GPS_FALSE}"; then
13582   as_fn_error $? "conditional \"HH2SERIAL_GPS\" was never defined.
13583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13584 fi
13585 if test -z "${HH2SERIAL_GPS_BUILTIN_TRUE}" && test -z "${HH2SERIAL_GPS_BUILTIN_FALSE}"; then
13586   as_fn_error $? "conditional \"HH2SERIAL_GPS_BUILTIN\" was never defined.
13587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13588 fi
13589 if test -z "${OPENCONNECT_TRUE}" && test -z "${OPENCONNECT_FALSE}"; then
13590   as_fn_error $? "conditional \"OPENCONNECT\" was never defined.
13591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13592 fi
13593 if test -z "${OPENCONNECT_BUILTIN_TRUE}" && test -z "${OPENCONNECT_BUILTIN_FALSE}"; then
13594   as_fn_error $? "conditional \"OPENCONNECT_BUILTIN\" was never defined.
13595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13596 fi
13597 if test -z "${OPENVPN_TRUE}" && test -z "${OPENVPN_FALSE}"; then
13598   as_fn_error $? "conditional \"OPENVPN\" was never defined.
13599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13600 fi
13601 if test -z "${OPENVPN_BUILTIN_TRUE}" && test -z "${OPENVPN_BUILTIN_FALSE}"; then
13602   as_fn_error $? "conditional \"OPENVPN_BUILTIN\" was never defined.
13603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13604 fi
13605 if test -z "${VPNC_TRUE}" && test -z "${VPNC_FALSE}"; then
13606   as_fn_error $? "conditional \"VPNC\" was never defined.
13607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13608 fi
13609 if test -z "${VPNC_BUILTIN_TRUE}" && test -z "${VPNC_BUILTIN_FALSE}"; then
13610   as_fn_error $? "conditional \"VPNC_BUILTIN\" was never defined.
13611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13612 fi
13613 if test -z "${L2TP_TRUE}" && test -z "${L2TP_FALSE}"; then
13614   as_fn_error $? "conditional \"L2TP\" was never defined.
13615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13616 fi
13617 if test -z "${L2TP_BUILTIN_TRUE}" && test -z "${L2TP_BUILTIN_FALSE}"; then
13618   as_fn_error $? "conditional \"L2TP_BUILTIN\" was never defined.
13619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13620 fi
13621 if test -z "${PPTP_TRUE}" && test -z "${PPTP_FALSE}"; then
13622   as_fn_error $? "conditional \"PPTP\" was never defined.
13623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13624 fi
13625 if test -z "${PPTP_BUILTIN_TRUE}" && test -z "${PPTP_BUILTIN_FALSE}"; then
13626   as_fn_error $? "conditional \"PPTP_BUILTIN\" was never defined.
13627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13628 fi
13629 if test -z "${IOSPM_TRUE}" && test -z "${IOSPM_FALSE}"; then
13630   as_fn_error $? "conditional \"IOSPM\" was never defined.
13631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13632 fi
13633 if test -z "${TIST_TRUE}" && test -z "${TIST_FALSE}"; then
13634   as_fn_error $? "conditional \"TIST\" was never defined.
13635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13636 fi
13637 if test -z "${TIST_BUILTIN_TRUE}" && test -z "${TIST_BUILTIN_FALSE}"; then
13638   as_fn_error $? "conditional \"TIST_BUILTIN\" was never defined.
13639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13640 fi
13641 if test -z "${SESSION_POLICY_LOCAL_TRUE}" && test -z "${SESSION_POLICY_LOCAL_FALSE}"; then
13642   as_fn_error $? "conditional \"SESSION_POLICY_LOCAL\" was never defined.
13643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13644 fi
13645 if test -z "${SESSION_POLICY_LOCAL_BUILTIN_TRUE}" && test -z "${SESSION_POLICY_LOCAL_BUILTIN_FALSE}"; then
13646   as_fn_error $? "conditional \"SESSION_POLICY_LOCAL_BUILTIN\" was never defined.
13647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13648 fi
13649 if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
13650   as_fn_error $? "conditional \"SYSTEMD\" was never defined.
13651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13652 fi
13653 if test -z "${TEST_TRUE}" && test -z "${TEST_FALSE}"; then
13654   as_fn_error $? "conditional \"TEST\" was never defined.
13655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13656 fi
13657 if test -z "${NMCOMPAT_TRUE}" && test -z "${NMCOMPAT_FALSE}"; then
13658   as_fn_error $? "conditional \"NMCOMPAT\" was never defined.
13659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13660 fi
13661 if test -z "${POLKIT_TRUE}" && test -z "${POLKIT_FALSE}"; then
13662   as_fn_error $? "conditional \"POLKIT\" was never defined.
13663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13664 fi
13665 if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
13666   as_fn_error $? "conditional \"SELINUX\" was never defined.
13667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13668 fi
13669 if test -z "${LOOPBACK_TRUE}" && test -z "${LOOPBACK_FALSE}"; then
13670   as_fn_error $? "conditional \"LOOPBACK\" was never defined.
13671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13672 fi
13673 if test -z "${ETHERNET_TRUE}" && test -z "${ETHERNET_FALSE}"; then
13674   as_fn_error $? "conditional \"ETHERNET\" was never defined.
13675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13676 fi
13677 if test -z "${GADGET_TRUE}" && test -z "${GADGET_FALSE}"; then
13678   as_fn_error $? "conditional \"GADGET\" was never defined.
13679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13680 fi
13681 if test -z "${WIFI_TRUE}" && test -z "${WIFI_FALSE}"; then
13682   as_fn_error $? "conditional \"WIFI\" was never defined.
13683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13684 fi
13685 if test -z "${BLUETOOTH_TRUE}" && test -z "${BLUETOOTH_FALSE}"; then
13686   as_fn_error $? "conditional \"BLUETOOTH\" was never defined.
13687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13688 fi
13689 if test -z "${OFONO_TRUE}" && test -z "${OFONO_FALSE}"; then
13690   as_fn_error $? "conditional \"OFONO\" was never defined.
13691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13692 fi
13693 if test -z "${DUNDEE_TRUE}" && test -z "${DUNDEE_FALSE}"; then
13694   as_fn_error $? "conditional \"DUNDEE\" was never defined.
13695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13696 fi
13697 if test -z "${PACRUNNER_TRUE}" && test -z "${PACRUNNER_FALSE}"; then
13698   as_fn_error $? "conditional \"PACRUNNER\" was never defined.
13699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13700 fi
13701 if test -z "${NEARD_TRUE}" && test -z "${NEARD_FALSE}"; then
13702   as_fn_error $? "conditional \"NEARD\" was never defined.
13703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13704 fi
13705 if test -z "${WISPR_TRUE}" && test -z "${WISPR_FALSE}"; then
13706   as_fn_error $? "conditional \"WISPR\" was never defined.
13707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13708 fi
13709 if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then
13710   as_fn_error $? "conditional \"TOOLS\" was never defined.
13711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13712 fi
13713 if test -z "${CLIENT_TRUE}" && test -z "${CLIENT_FALSE}"; then
13714   as_fn_error $? "conditional \"CLIENT\" was never defined.
13715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13716 fi
13717 if test -z "${DATAFILES_TRUE}" && test -z "${DATAFILES_FALSE}"; then
13718   as_fn_error $? "conditional \"DATAFILES\" was never defined.
13719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13720 fi
13721 if test -z "${VPN_TRUE}" && test -z "${VPN_FALSE}"; then
13722   as_fn_error $? "conditional \"VPN\" was never defined.
13723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13724 fi
13725
13726 : "${CONFIG_STATUS=./config.status}"
13727 ac_write_fail=0
13728 ac_clean_files_save=$ac_clean_files
13729 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13731 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13732 as_write_fail=0
13733 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13734 #! $SHELL
13735 # Generated by $as_me.
13736 # Run this file to recreate the current configuration.
13737 # Compiler output produced by configure, useful for debugging
13738 # configure, is in config.log if it exists.
13739
13740 debug=false
13741 ac_cs_recheck=false
13742 ac_cs_silent=false
13743
13744 SHELL=\${CONFIG_SHELL-$SHELL}
13745 export SHELL
13746 _ASEOF
13747 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13748 ## -------------------- ##
13749 ## M4sh Initialization. ##
13750 ## -------------------- ##
13751
13752 # Be more Bourne compatible
13753 DUALCASE=1; export DUALCASE # for MKS sh
13754 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13755   emulate sh
13756   NULLCMD=:
13757   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13758   # is contrary to our usage.  Disable this feature.
13759   alias -g '${1+"$@"}'='"$@"'
13760   setopt NO_GLOB_SUBST
13761 else
13762   case `(set -o) 2>/dev/null` in #(
13763   *posix*) :
13764     set -o posix ;; #(
13765   *) :
13766      ;;
13767 esac
13768 fi
13769
13770
13771 as_nl='
13772 '
13773 export as_nl
13774 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13775 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13776 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13777 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13778 # Prefer a ksh shell builtin over an external printf program on Solaris,
13779 # but without wasting forks for bash or zsh.
13780 if test -z "$BASH_VERSION$ZSH_VERSION" \
13781     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13782   as_echo='print -r --'
13783   as_echo_n='print -rn --'
13784 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13785   as_echo='printf %s\n'
13786   as_echo_n='printf %s'
13787 else
13788   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13789     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13790     as_echo_n='/usr/ucb/echo -n'
13791   else
13792     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13793     as_echo_n_body='eval
13794       arg=$1;
13795       case $arg in #(
13796       *"$as_nl"*)
13797         expr "X$arg" : "X\\(.*\\)$as_nl";
13798         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13799       esac;
13800       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13801     '
13802     export as_echo_n_body
13803     as_echo_n='sh -c $as_echo_n_body as_echo'
13804   fi
13805   export as_echo_body
13806   as_echo='sh -c $as_echo_body as_echo'
13807 fi
13808
13809 # The user is always right.
13810 if test "${PATH_SEPARATOR+set}" != set; then
13811   PATH_SEPARATOR=:
13812   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13813     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13814       PATH_SEPARATOR=';'
13815   }
13816 fi
13817
13818
13819 # IFS
13820 # We need space, tab and new line, in precisely that order.  Quoting is
13821 # there to prevent editors from complaining about space-tab.
13822 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13823 # splitting by setting IFS to empty value.)
13824 IFS=" ""        $as_nl"
13825
13826 # Find who we are.  Look in the path if we contain no directory separator.
13827 as_myself=
13828 case $0 in #((
13829   *[\\/]* ) as_myself=$0 ;;
13830   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13831 for as_dir in $PATH
13832 do
13833   IFS=$as_save_IFS
13834   test -z "$as_dir" && as_dir=.
13835     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13836   done
13837 IFS=$as_save_IFS
13838
13839      ;;
13840 esac
13841 # We did not find ourselves, most probably we were run as `sh COMMAND'
13842 # in which case we are not to be found in the path.
13843 if test "x$as_myself" = x; then
13844   as_myself=$0
13845 fi
13846 if test ! -f "$as_myself"; then
13847   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13848   exit 1
13849 fi
13850
13851 # Unset variables that we do not need and which cause bugs (e.g. in
13852 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13853 # suppresses any "Segmentation fault" message there.  '((' could
13854 # trigger a bug in pdksh 5.2.14.
13855 for as_var in BASH_ENV ENV MAIL MAILPATH
13856 do eval test x\${$as_var+set} = xset \
13857   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13858 done
13859 PS1='$ '
13860 PS2='> '
13861 PS4='+ '
13862
13863 # NLS nuisances.
13864 LC_ALL=C
13865 export LC_ALL
13866 LANGUAGE=C
13867 export LANGUAGE
13868
13869 # CDPATH.
13870 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13871
13872
13873 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13874 # ----------------------------------------
13875 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13876 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13877 # script with STATUS, using 1 if that was 0.
13878 as_fn_error ()
13879 {
13880   as_status=$1; test $as_status -eq 0 && as_status=1
13881   if test "$4"; then
13882     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13883     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13884   fi
13885   $as_echo "$as_me: error: $2" >&2
13886   as_fn_exit $as_status
13887 } # as_fn_error
13888
13889
13890 # as_fn_set_status STATUS
13891 # -----------------------
13892 # Set $? to STATUS, without forking.
13893 as_fn_set_status ()
13894 {
13895   return $1
13896 } # as_fn_set_status
13897
13898 # as_fn_exit STATUS
13899 # -----------------
13900 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13901 as_fn_exit ()
13902 {
13903   set +e
13904   as_fn_set_status $1
13905   exit $1
13906 } # as_fn_exit
13907
13908 # as_fn_unset VAR
13909 # ---------------
13910 # Portably unset VAR.
13911 as_fn_unset ()
13912 {
13913   { eval $1=; unset $1;}
13914 }
13915 as_unset=as_fn_unset
13916 # as_fn_append VAR VALUE
13917 # ----------------------
13918 # Append the text in VALUE to the end of the definition contained in VAR. Take
13919 # advantage of any shell optimizations that allow amortized linear growth over
13920 # repeated appends, instead of the typical quadratic growth present in naive
13921 # implementations.
13922 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13923   eval 'as_fn_append ()
13924   {
13925     eval $1+=\$2
13926   }'
13927 else
13928   as_fn_append ()
13929   {
13930     eval $1=\$$1\$2
13931   }
13932 fi # as_fn_append
13933
13934 # as_fn_arith ARG...
13935 # ------------------
13936 # Perform arithmetic evaluation on the ARGs, and store the result in the
13937 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13938 # must be portable across $(()) and expr.
13939 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13940   eval 'as_fn_arith ()
13941   {
13942     as_val=$(( $* ))
13943   }'
13944 else
13945   as_fn_arith ()
13946   {
13947     as_val=`expr "$@" || test $? -eq 1`
13948   }
13949 fi # as_fn_arith
13950
13951
13952 if expr a : '\(a\)' >/dev/null 2>&1 &&
13953    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13954   as_expr=expr
13955 else
13956   as_expr=false
13957 fi
13958
13959 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13960   as_basename=basename
13961 else
13962   as_basename=false
13963 fi
13964
13965 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13966   as_dirname=dirname
13967 else
13968   as_dirname=false
13969 fi
13970
13971 as_me=`$as_basename -- "$0" ||
13972 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13973          X"$0" : 'X\(//\)$' \| \
13974          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13975 $as_echo X/"$0" |
13976     sed '/^.*\/\([^/][^/]*\)\/*$/{
13977             s//\1/
13978             q
13979           }
13980           /^X\/\(\/\/\)$/{
13981             s//\1/
13982             q
13983           }
13984           /^X\/\(\/\).*/{
13985             s//\1/
13986             q
13987           }
13988           s/.*/./; q'`
13989
13990 # Avoid depending upon Character Ranges.
13991 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13992 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13993 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13994 as_cr_digits='0123456789'
13995 as_cr_alnum=$as_cr_Letters$as_cr_digits
13996
13997 ECHO_C= ECHO_N= ECHO_T=
13998 case `echo -n x` in #(((((
13999 -n*)
14000   case `echo 'xy\c'` in
14001   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14002   xy)  ECHO_C='\c';;
14003   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14004        ECHO_T=' ';;
14005   esac;;
14006 *)
14007   ECHO_N='-n';;
14008 esac
14009
14010 rm -f conf$$ conf$$.exe conf$$.file
14011 if test -d conf$$.dir; then
14012   rm -f conf$$.dir/conf$$.file
14013 else
14014   rm -f conf$$.dir
14015   mkdir conf$$.dir 2>/dev/null
14016 fi
14017 if (echo >conf$$.file) 2>/dev/null; then
14018   if ln -s conf$$.file conf$$ 2>/dev/null; then
14019     as_ln_s='ln -s'
14020     # ... but there are two gotchas:
14021     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14022     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14023     # In both cases, we have to default to `cp -pR'.
14024     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14025       as_ln_s='cp -pR'
14026   elif ln conf$$.file conf$$ 2>/dev/null; then
14027     as_ln_s=ln
14028   else
14029     as_ln_s='cp -pR'
14030   fi
14031 else
14032   as_ln_s='cp -pR'
14033 fi
14034 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14035 rmdir conf$$.dir 2>/dev/null
14036
14037
14038 # as_fn_mkdir_p
14039 # -------------
14040 # Create "$as_dir" as a directory, including parents if necessary.
14041 as_fn_mkdir_p ()
14042 {
14043
14044   case $as_dir in #(
14045   -*) as_dir=./$as_dir;;
14046   esac
14047   test -d "$as_dir" || eval $as_mkdir_p || {
14048     as_dirs=
14049     while :; do
14050       case $as_dir in #(
14051       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14052       *) as_qdir=$as_dir;;
14053       esac
14054       as_dirs="'$as_qdir' $as_dirs"
14055       as_dir=`$as_dirname -- "$as_dir" ||
14056 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14057          X"$as_dir" : 'X\(//\)[^/]' \| \
14058          X"$as_dir" : 'X\(//\)$' \| \
14059          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14060 $as_echo X"$as_dir" |
14061     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14062             s//\1/
14063             q
14064           }
14065           /^X\(\/\/\)[^/].*/{
14066             s//\1/
14067             q
14068           }
14069           /^X\(\/\/\)$/{
14070             s//\1/
14071             q
14072           }
14073           /^X\(\/\).*/{
14074             s//\1/
14075             q
14076           }
14077           s/.*/./; q'`
14078       test -d "$as_dir" && break
14079     done
14080     test -z "$as_dirs" || eval "mkdir $as_dirs"
14081   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14082
14083
14084 } # as_fn_mkdir_p
14085 if mkdir -p . 2>/dev/null; then
14086   as_mkdir_p='mkdir -p "$as_dir"'
14087 else
14088   test -d ./-p && rmdir ./-p
14089   as_mkdir_p=false
14090 fi
14091
14092
14093 # as_fn_executable_p FILE
14094 # -----------------------
14095 # Test if FILE is an executable regular file.
14096 as_fn_executable_p ()
14097 {
14098   test -f "$1" && test -x "$1"
14099 } # as_fn_executable_p
14100 as_test_x='test -x'
14101 as_executable_p=as_fn_executable_p
14102
14103 # Sed expression to map a string onto a valid CPP name.
14104 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14105
14106 # Sed expression to map a string onto a valid variable name.
14107 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14108
14109
14110 exec 6>&1
14111 ## ----------------------------------- ##
14112 ## Main body of $CONFIG_STATUS script. ##
14113 ## ----------------------------------- ##
14114 _ASEOF
14115 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14116
14117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14118 # Save the log message, to keep $0 and so on meaningful, and to
14119 # report actual input values of CONFIG_FILES etc. instead of their
14120 # values after options handling.
14121 ac_log="
14122 This file was extended by connman $as_me 1.29, which was
14123 generated by GNU Autoconf 2.69.  Invocation command line was
14124
14125   CONFIG_FILES    = $CONFIG_FILES
14126   CONFIG_HEADERS  = $CONFIG_HEADERS
14127   CONFIG_LINKS    = $CONFIG_LINKS
14128   CONFIG_COMMANDS = $CONFIG_COMMANDS
14129   $ $0 $@
14130
14131 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14132 "
14133
14134 _ACEOF
14135
14136 case $ac_config_files in *"
14137 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14138 esac
14139
14140 case $ac_config_headers in *"
14141 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14142 esac
14143
14144
14145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14146 # Files that config.status was made for.
14147 config_files="$ac_config_files"
14148 config_headers="$ac_config_headers"
14149 config_commands="$ac_config_commands"
14150
14151 _ACEOF
14152
14153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14154 ac_cs_usage="\
14155 \`$as_me' instantiates files and other configuration actions
14156 from templates according to the current configuration.  Unless the files
14157 and actions are specified as TAGs, all are instantiated by default.
14158
14159 Usage: $0 [OPTION]... [TAG]...
14160
14161   -h, --help       print this help, then exit
14162   -V, --version    print version number and configuration settings, then exit
14163       --config     print configuration, then exit
14164   -q, --quiet, --silent
14165                    do not print progress messages
14166   -d, --debug      don't remove temporary files
14167       --recheck    update $as_me by reconfiguring in the same conditions
14168       --file=FILE[:TEMPLATE]
14169                    instantiate the configuration file FILE
14170       --header=FILE[:TEMPLATE]
14171                    instantiate the configuration header FILE
14172
14173 Configuration files:
14174 $config_files
14175
14176 Configuration headers:
14177 $config_headers
14178
14179 Configuration commands:
14180 $config_commands
14181
14182 Report bugs to the package provider."
14183
14184 _ACEOF
14185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14186 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14187 ac_cs_version="\\
14188 connman config.status 1.29
14189 configured by $0, generated by GNU Autoconf 2.69,
14190   with options \\"\$ac_cs_config\\"
14191
14192 Copyright (C) 2012 Free Software Foundation, Inc.
14193 This config.status script is free software; the Free Software Foundation
14194 gives unlimited permission to copy, distribute and modify it."
14195
14196 ac_pwd='$ac_pwd'
14197 srcdir='$srcdir'
14198 INSTALL='$INSTALL'
14199 MKDIR_P='$MKDIR_P'
14200 AWK='$AWK'
14201 test -n "\$AWK" || AWK=awk
14202 _ACEOF
14203
14204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14205 # The default lists apply if the user does not specify any file.
14206 ac_need_defaults=:
14207 while test $# != 0
14208 do
14209   case $1 in
14210   --*=?*)
14211     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14212     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14213     ac_shift=:
14214     ;;
14215   --*=)
14216     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14217     ac_optarg=
14218     ac_shift=:
14219     ;;
14220   *)
14221     ac_option=$1
14222     ac_optarg=$2
14223     ac_shift=shift
14224     ;;
14225   esac
14226
14227   case $ac_option in
14228   # Handling of the options.
14229   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14230     ac_cs_recheck=: ;;
14231   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14232     $as_echo "$ac_cs_version"; exit ;;
14233   --config | --confi | --conf | --con | --co | --c )
14234     $as_echo "$ac_cs_config"; exit ;;
14235   --debug | --debu | --deb | --de | --d | -d )
14236     debug=: ;;
14237   --file | --fil | --fi | --f )
14238     $ac_shift
14239     case $ac_optarg in
14240     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14241     '') as_fn_error $? "missing file argument" ;;
14242     esac
14243     as_fn_append CONFIG_FILES " '$ac_optarg'"
14244     ac_need_defaults=false;;
14245   --header | --heade | --head | --hea )
14246     $ac_shift
14247     case $ac_optarg in
14248     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14249     esac
14250     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14251     ac_need_defaults=false;;
14252   --he | --h)
14253     # Conflict between --help and --header
14254     as_fn_error $? "ambiguous option: \`$1'
14255 Try \`$0 --help' for more information.";;
14256   --help | --hel | -h )
14257     $as_echo "$ac_cs_usage"; exit ;;
14258   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14259   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14260     ac_cs_silent=: ;;
14261
14262   # This is an error.
14263   -*) as_fn_error $? "unrecognized option: \`$1'
14264 Try \`$0 --help' for more information." ;;
14265
14266   *) as_fn_append ac_config_targets " $1"
14267      ac_need_defaults=false ;;
14268
14269   esac
14270   shift
14271 done
14272
14273 ac_configure_extra_args=
14274
14275 if $ac_cs_silent; then
14276   exec 6>/dev/null
14277   ac_configure_extra_args="$ac_configure_extra_args --silent"
14278 fi
14279
14280 _ACEOF
14281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14282 if \$ac_cs_recheck; then
14283   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14284   shift
14285   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14286   CONFIG_SHELL='$SHELL'
14287   export CONFIG_SHELL
14288   exec "\$@"
14289 fi
14290
14291 _ACEOF
14292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14293 exec 5>>config.log
14294 {
14295   echo
14296   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14297 ## Running $as_me. ##
14298 _ASBOX
14299   $as_echo "$ac_log"
14300 } >&5
14301
14302 _ACEOF
14303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14304 #
14305 # INIT-COMMANDS
14306 #
14307 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14308
14309
14310 # The HP-UX ksh and POSIX shell print the target directory to stdout
14311 # if CDPATH is set.
14312 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14313
14314 sed_quote_subst='$sed_quote_subst'
14315 double_quote_subst='$double_quote_subst'
14316 delay_variable_subst='$delay_variable_subst'
14317 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14318 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14319 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14320 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14321 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14322 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14323 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14324 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14325 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14326 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14327 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14328 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14329 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14330 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14331 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14332 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14333 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14334 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14335 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14336 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14337 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14338 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14339 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14340 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14341 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14342 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14343 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14344 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14345 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14346 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14347 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14348 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14349 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14350 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14351 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14352 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14353 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14354 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14355 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14356 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14357 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14358 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14359 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14360 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14361 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14362 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14363 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14364 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14365 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14366 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14367 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14368 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14369 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14370 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14371 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14372 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14373 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"`'
14374 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14375 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14376 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14377 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14378 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14379 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14380 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14381 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14382 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14383 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14384 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14385 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14386 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14387 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14388 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14389 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14390 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14391 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14392 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14393 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14394 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14395 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14396 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14397 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14398 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14399 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14400 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14401 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14402 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14403 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14404 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14405 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14406 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14407 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14408 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14409 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14410 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14411 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14412 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14413 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14414 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14415 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14416 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14417 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14418 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14419 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14420 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14421 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14422 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14423 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14424 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14425 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14426 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14427 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14428 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14429 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14430 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14431 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14432 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14433 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14434 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14435 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14436 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14437 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14438 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14439 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14440 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14441 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14442 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14443 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14444 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14445 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14446 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14447
14448 LTCC='$LTCC'
14449 LTCFLAGS='$LTCFLAGS'
14450 compiler='$compiler_DEFAULT'
14451
14452 # A function that is used when there is no print builtin or printf.
14453 func_fallback_echo ()
14454 {
14455   eval 'cat <<_LTECHO_EOF
14456 \$1
14457 _LTECHO_EOF'
14458 }
14459
14460 # Quote evaled strings.
14461 for var in SHELL \
14462 ECHO \
14463 PATH_SEPARATOR \
14464 SED \
14465 GREP \
14466 EGREP \
14467 FGREP \
14468 LD \
14469 NM \
14470 LN_S \
14471 lt_SP2NL \
14472 lt_NL2SP \
14473 reload_flag \
14474 OBJDUMP \
14475 deplibs_check_method \
14476 file_magic_cmd \
14477 file_magic_glob \
14478 want_nocaseglob \
14479 DLLTOOL \
14480 sharedlib_from_linklib_cmd \
14481 AR \
14482 AR_FLAGS \
14483 archiver_list_spec \
14484 STRIP \
14485 RANLIB \
14486 CC \
14487 CFLAGS \
14488 compiler \
14489 lt_cv_sys_global_symbol_pipe \
14490 lt_cv_sys_global_symbol_to_cdecl \
14491 lt_cv_sys_global_symbol_to_c_name_address \
14492 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14493 nm_file_list_spec \
14494 lt_prog_compiler_no_builtin_flag \
14495 lt_prog_compiler_pic \
14496 lt_prog_compiler_wl \
14497 lt_prog_compiler_static \
14498 lt_cv_prog_compiler_c_o \
14499 need_locks \
14500 MANIFEST_TOOL \
14501 DSYMUTIL \
14502 NMEDIT \
14503 LIPO \
14504 OTOOL \
14505 OTOOL64 \
14506 shrext_cmds \
14507 export_dynamic_flag_spec \
14508 whole_archive_flag_spec \
14509 compiler_needs_object \
14510 with_gnu_ld \
14511 allow_undefined_flag \
14512 no_undefined_flag \
14513 hardcode_libdir_flag_spec \
14514 hardcode_libdir_separator \
14515 exclude_expsyms \
14516 include_expsyms \
14517 file_list_spec \
14518 variables_saved_for_relink \
14519 libname_spec \
14520 library_names_spec \
14521 soname_spec \
14522 install_override_mode \
14523 finish_eval \
14524 old_striplib \
14525 striplib; do
14526     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14527     *[\\\\\\\`\\"\\\$]*)
14528       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14529       ;;
14530     *)
14531       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14532       ;;
14533     esac
14534 done
14535
14536 # Double-quote double-evaled strings.
14537 for var in reload_cmds \
14538 old_postinstall_cmds \
14539 old_postuninstall_cmds \
14540 old_archive_cmds \
14541 extract_expsyms_cmds \
14542 old_archive_from_new_cmds \
14543 old_archive_from_expsyms_cmds \
14544 archive_cmds \
14545 archive_expsym_cmds \
14546 module_cmds \
14547 module_expsym_cmds \
14548 export_symbols_cmds \
14549 prelink_cmds \
14550 postlink_cmds \
14551 postinstall_cmds \
14552 postuninstall_cmds \
14553 finish_cmds \
14554 sys_lib_search_path_spec \
14555 sys_lib_dlsearch_path_spec; do
14556     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14557     *[\\\\\\\`\\"\\\$]*)
14558       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14559       ;;
14560     *)
14561       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14562       ;;
14563     esac
14564 done
14565
14566 ac_aux_dir='$ac_aux_dir'
14567 xsi_shell='$xsi_shell'
14568 lt_shell_append='$lt_shell_append'
14569
14570 # See if we are running on zsh, and set the options which allow our
14571 # commands through without removal of \ escapes INIT.
14572 if test -n "\${ZSH_VERSION+set}" ; then
14573    setopt NO_GLOB_SUBST
14574 fi
14575
14576
14577     PACKAGE='$PACKAGE'
14578     VERSION='$VERSION'
14579     TIMESTAMP='$TIMESTAMP'
14580     RM='$RM'
14581     ofile='$ofile'
14582
14583
14584
14585
14586 _ACEOF
14587
14588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14589
14590 # Handling of arguments.
14591 for ac_config_target in $ac_config_targets
14592 do
14593   case $ac_config_target in
14594     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14595     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14596     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14597     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14598     "include/version.h") CONFIG_FILES="$CONFIG_FILES include/version.h" ;;
14599     "connman.pc") CONFIG_FILES="$CONFIG_FILES connman.pc" ;;
14600
14601   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14602   esac
14603 done
14604
14605
14606 # If the user did not use the arguments to specify the items to instantiate,
14607 # then the envvar interface is used.  Set only those that are not.
14608 # We use the long form for the default assignment because of an extremely
14609 # bizarre bug on SunOS 4.1.3.
14610 if $ac_need_defaults; then
14611   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14612   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14613   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14614 fi
14615
14616 # Have a temporary directory for convenience.  Make it in the build tree
14617 # simply because there is no reason against having it here, and in addition,
14618 # creating and moving files from /tmp can sometimes cause problems.
14619 # Hook for its removal unless debugging.
14620 # Note that there is a small window in which the directory will not be cleaned:
14621 # after its creation but before its name has been assigned to `$tmp'.
14622 $debug ||
14623 {
14624   tmp= ac_tmp=
14625   trap 'exit_status=$?
14626   : "${ac_tmp:=$tmp}"
14627   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14628 ' 0
14629   trap 'as_fn_exit 1' 1 2 13 15
14630 }
14631 # Create a (secure) tmp directory for tmp files.
14632
14633 {
14634   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14635   test -d "$tmp"
14636 }  ||
14637 {
14638   tmp=./conf$$-$RANDOM
14639   (umask 077 && mkdir "$tmp")
14640 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14641 ac_tmp=$tmp
14642
14643 # Set up the scripts for CONFIG_FILES section.
14644 # No need to generate them if there are no CONFIG_FILES.
14645 # This happens for instance with `./config.status config.h'.
14646 if test -n "$CONFIG_FILES"; then
14647
14648
14649 ac_cr=`echo X | tr X '\015'`
14650 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14651 # But we know of no other shell where ac_cr would be empty at this
14652 # point, so we can use a bashism as a fallback.
14653 if test "x$ac_cr" = x; then
14654   eval ac_cr=\$\'\\r\'
14655 fi
14656 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14657 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14658   ac_cs_awk_cr='\\r'
14659 else
14660   ac_cs_awk_cr=$ac_cr
14661 fi
14662
14663 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14664 _ACEOF
14665
14666
14667 {
14668   echo "cat >conf$$subs.awk <<_ACEOF" &&
14669   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14670   echo "_ACEOF"
14671 } >conf$$subs.sh ||
14672   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14673 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14674 ac_delim='%!_!# '
14675 for ac_last_try in false false false false false :; do
14676   . ./conf$$subs.sh ||
14677     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14678
14679   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14680   if test $ac_delim_n = $ac_delim_num; then
14681     break
14682   elif $ac_last_try; then
14683     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14684   else
14685     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14686   fi
14687 done
14688 rm -f conf$$subs.sh
14689
14690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14691 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14692 _ACEOF
14693 sed -n '
14694 h
14695 s/^/S["/; s/!.*/"]=/
14696 p
14697 g
14698 s/^[^!]*!//
14699 :repl
14700 t repl
14701 s/'"$ac_delim"'$//
14702 t delim
14703 :nl
14704 h
14705 s/\(.\{148\}\)..*/\1/
14706 t more1
14707 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14708 p
14709 n
14710 b repl
14711 :more1
14712 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14713 p
14714 g
14715 s/.\{148\}//
14716 t nl
14717 :delim
14718 h
14719 s/\(.\{148\}\)..*/\1/
14720 t more2
14721 s/["\\]/\\&/g; s/^/"/; s/$/"/
14722 p
14723 b
14724 :more2
14725 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14726 p
14727 g
14728 s/.\{148\}//
14729 t delim
14730 ' <conf$$subs.awk | sed '
14731 /^[^""]/{
14732   N
14733   s/\n//
14734 }
14735 ' >>$CONFIG_STATUS || ac_write_fail=1
14736 rm -f conf$$subs.awk
14737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14738 _ACAWK
14739 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14740   for (key in S) S_is_set[key] = 1
14741   FS = "\a"
14742
14743 }
14744 {
14745   line = $ 0
14746   nfields = split(line, field, "@")
14747   substed = 0
14748   len = length(field[1])
14749   for (i = 2; i < nfields; i++) {
14750     key = field[i]
14751     keylen = length(key)
14752     if (S_is_set[key]) {
14753       value = S[key]
14754       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14755       len += length(value) + length(field[++i])
14756       substed = 1
14757     } else
14758       len += 1 + keylen
14759   }
14760
14761   print line
14762 }
14763
14764 _ACAWK
14765 _ACEOF
14766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14767 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14768   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14769 else
14770   cat
14771 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14772   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14773 _ACEOF
14774
14775 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14776 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14777 # trailing colons and then remove the whole line if VPATH becomes empty
14778 # (actually we leave an empty line to preserve line numbers).
14779 if test "x$srcdir" = x.; then
14780   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14781 h
14782 s///
14783 s/^/:/
14784 s/[      ]*$/:/
14785 s/:\$(srcdir):/:/g
14786 s/:\${srcdir}:/:/g
14787 s/:@srcdir@:/:/g
14788 s/^:*//
14789 s/:*$//
14790 x
14791 s/\(=[   ]*\).*/\1/
14792 G
14793 s/\n//
14794 s/^[^=]*=[       ]*$//
14795 }'
14796 fi
14797
14798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14799 fi # test -n "$CONFIG_FILES"
14800
14801 # Set up the scripts for CONFIG_HEADERS section.
14802 # No need to generate them if there are no CONFIG_HEADERS.
14803 # This happens for instance with `./config.status Makefile'.
14804 if test -n "$CONFIG_HEADERS"; then
14805 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14806 BEGIN {
14807 _ACEOF
14808
14809 # Transform confdefs.h into an awk script `defines.awk', embedded as
14810 # here-document in config.status, that substitutes the proper values into
14811 # config.h.in to produce config.h.
14812
14813 # Create a delimiter string that does not exist in confdefs.h, to ease
14814 # handling of long lines.
14815 ac_delim='%!_!# '
14816 for ac_last_try in false false :; do
14817   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14818   if test -z "$ac_tt"; then
14819     break
14820   elif $ac_last_try; then
14821     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14822   else
14823     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14824   fi
14825 done
14826
14827 # For the awk script, D is an array of macro values keyed by name,
14828 # likewise P contains macro parameters if any.  Preserve backslash
14829 # newline sequences.
14830
14831 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14832 sed -n '
14833 s/.\{148\}/&'"$ac_delim"'/g
14834 t rset
14835 :rset
14836 s/^[     ]*#[    ]*define[       ][      ]*/ /
14837 t def
14838 d
14839 :def
14840 s/\\$//
14841 t bsnl
14842 s/["\\]/\\&/g
14843 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14844 D["\1"]=" \3"/p
14845 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14846 d
14847 :bsnl
14848 s/["\\]/\\&/g
14849 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14850 D["\1"]=" \3\\\\\\n"\\/p
14851 t cont
14852 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14853 t cont
14854 d
14855 :cont
14856 n
14857 s/.\{148\}/&'"$ac_delim"'/g
14858 t clear
14859 :clear
14860 s/\\$//
14861 t bsnlc
14862 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14863 d
14864 :bsnlc
14865 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14866 b cont
14867 ' <confdefs.h | sed '
14868 s/'"$ac_delim"'/"\\\
14869 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14870
14871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14872   for (key in D) D_is_set[key] = 1
14873   FS = "\a"
14874 }
14875 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14876   line = \$ 0
14877   split(line, arg, " ")
14878   if (arg[1] == "#") {
14879     defundef = arg[2]
14880     mac1 = arg[3]
14881   } else {
14882     defundef = substr(arg[1], 2)
14883     mac1 = arg[2]
14884   }
14885   split(mac1, mac2, "(") #)
14886   macro = mac2[1]
14887   prefix = substr(line, 1, index(line, defundef) - 1)
14888   if (D_is_set[macro]) {
14889     # Preserve the white space surrounding the "#".
14890     print prefix "define", macro P[macro] D[macro]
14891     next
14892   } else {
14893     # Replace #undef with comments.  This is necessary, for example,
14894     # in the case of _POSIX_SOURCE, which is predefined and required
14895     # on some systems where configure will not decide to define it.
14896     if (defundef == "undef") {
14897       print "/*", prefix defundef, macro, "*/"
14898       next
14899     }
14900   }
14901 }
14902 { print }
14903 _ACAWK
14904 _ACEOF
14905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14906   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14907 fi # test -n "$CONFIG_HEADERS"
14908
14909
14910 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14911 shift
14912 for ac_tag
14913 do
14914   case $ac_tag in
14915   :[FHLC]) ac_mode=$ac_tag; continue;;
14916   esac
14917   case $ac_mode$ac_tag in
14918   :[FHL]*:*);;
14919   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14920   :[FH]-) ac_tag=-:-;;
14921   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14922   esac
14923   ac_save_IFS=$IFS
14924   IFS=:
14925   set x $ac_tag
14926   IFS=$ac_save_IFS
14927   shift
14928   ac_file=$1
14929   shift
14930
14931   case $ac_mode in
14932   :L) ac_source=$1;;
14933   :[FH])
14934     ac_file_inputs=
14935     for ac_f
14936     do
14937       case $ac_f in
14938       -) ac_f="$ac_tmp/stdin";;
14939       *) # Look for the file first in the build tree, then in the source tree
14940          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14941          # because $ac_f cannot contain `:'.
14942          test -f "$ac_f" ||
14943            case $ac_f in
14944            [\\/$]*) false;;
14945            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14946            esac ||
14947            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14948       esac
14949       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14950       as_fn_append ac_file_inputs " '$ac_f'"
14951     done
14952
14953     # Let's still pretend it is `configure' which instantiates (i.e., don't
14954     # use $as_me), people would be surprised to read:
14955     #    /* config.h.  Generated by config.status.  */
14956     configure_input='Generated from '`
14957           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14958         `' by configure.'
14959     if test x"$ac_file" != x-; then
14960       configure_input="$ac_file.  $configure_input"
14961       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14962 $as_echo "$as_me: creating $ac_file" >&6;}
14963     fi
14964     # Neutralize special characters interpreted by sed in replacement strings.
14965     case $configure_input in #(
14966     *\&* | *\|* | *\\* )
14967        ac_sed_conf_input=`$as_echo "$configure_input" |
14968        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14969     *) ac_sed_conf_input=$configure_input;;
14970     esac
14971
14972     case $ac_tag in
14973     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14974       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14975     esac
14976     ;;
14977   esac
14978
14979   ac_dir=`$as_dirname -- "$ac_file" ||
14980 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14981          X"$ac_file" : 'X\(//\)[^/]' \| \
14982          X"$ac_file" : 'X\(//\)$' \| \
14983          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14984 $as_echo X"$ac_file" |
14985     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14986             s//\1/
14987             q
14988           }
14989           /^X\(\/\/\)[^/].*/{
14990             s//\1/
14991             q
14992           }
14993           /^X\(\/\/\)$/{
14994             s//\1/
14995             q
14996           }
14997           /^X\(\/\).*/{
14998             s//\1/
14999             q
15000           }
15001           s/.*/./; q'`
15002   as_dir="$ac_dir"; as_fn_mkdir_p
15003   ac_builddir=.
15004
15005 case "$ac_dir" in
15006 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15007 *)
15008   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15009   # A ".." for each directory in $ac_dir_suffix.
15010   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15011   case $ac_top_builddir_sub in
15012   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15013   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15014   esac ;;
15015 esac
15016 ac_abs_top_builddir=$ac_pwd
15017 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15018 # for backward compatibility:
15019 ac_top_builddir=$ac_top_build_prefix
15020
15021 case $srcdir in
15022   .)  # We are building in place.
15023     ac_srcdir=.
15024     ac_top_srcdir=$ac_top_builddir_sub
15025     ac_abs_top_srcdir=$ac_pwd ;;
15026   [\\/]* | ?:[\\/]* )  # Absolute name.
15027     ac_srcdir=$srcdir$ac_dir_suffix;
15028     ac_top_srcdir=$srcdir
15029     ac_abs_top_srcdir=$srcdir ;;
15030   *) # Relative name.
15031     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15032     ac_top_srcdir=$ac_top_build_prefix$srcdir
15033     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15034 esac
15035 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15036
15037
15038   case $ac_mode in
15039   :F)
15040   #
15041   # CONFIG_FILE
15042   #
15043
15044   case $INSTALL in
15045   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15046   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15047   esac
15048   ac_MKDIR_P=$MKDIR_P
15049   case $MKDIR_P in
15050   [\\/$]* | ?:[\\/]* ) ;;
15051   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15052   esac
15053 _ACEOF
15054
15055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15056 # If the template does not know about datarootdir, expand it.
15057 # FIXME: This hack should be removed a few years after 2.60.
15058 ac_datarootdir_hack=; ac_datarootdir_seen=
15059 ac_sed_dataroot='
15060 /datarootdir/ {
15061   p
15062   q
15063 }
15064 /@datadir@/p
15065 /@docdir@/p
15066 /@infodir@/p
15067 /@localedir@/p
15068 /@mandir@/p'
15069 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15070 *datarootdir*) ac_datarootdir_seen=yes;;
15071 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15072   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15073 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15074 _ACEOF
15075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15076   ac_datarootdir_hack='
15077   s&@datadir@&$datadir&g
15078   s&@docdir@&$docdir&g
15079   s&@infodir@&$infodir&g
15080   s&@localedir@&$localedir&g
15081   s&@mandir@&$mandir&g
15082   s&\\\${datarootdir}&$datarootdir&g' ;;
15083 esac
15084 _ACEOF
15085
15086 # Neutralize VPATH when `$srcdir' = `.'.
15087 # Shell code in configure.ac might set extrasub.
15088 # FIXME: do we really want to maintain this feature?
15089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15090 ac_sed_extra="$ac_vpsub
15091 $extrasub
15092 _ACEOF
15093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15094 :t
15095 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15096 s|@configure_input@|$ac_sed_conf_input|;t t
15097 s&@top_builddir@&$ac_top_builddir_sub&;t t
15098 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15099 s&@srcdir@&$ac_srcdir&;t t
15100 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15101 s&@top_srcdir@&$ac_top_srcdir&;t t
15102 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15103 s&@builddir@&$ac_builddir&;t t
15104 s&@abs_builddir@&$ac_abs_builddir&;t t
15105 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15106 s&@INSTALL@&$ac_INSTALL&;t t
15107 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15108 $ac_datarootdir_hack
15109 "
15110 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15111   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15112
15113 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15114   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15115   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15116       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15117   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15118 which seems to be undefined.  Please make sure it is defined" >&5
15119 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15120 which seems to be undefined.  Please make sure it is defined" >&2;}
15121
15122   rm -f "$ac_tmp/stdin"
15123   case $ac_file in
15124   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15125   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15126   esac \
15127   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15128  ;;
15129   :H)
15130   #
15131   # CONFIG_HEADER
15132   #
15133   if test x"$ac_file" != x-; then
15134     {
15135       $as_echo "/* $configure_input  */" \
15136       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15137     } >"$ac_tmp/config.h" \
15138       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15139     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15140       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15141 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15142     else
15143       rm -f "$ac_file"
15144       mv "$ac_tmp/config.h" "$ac_file" \
15145         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15146     fi
15147   else
15148     $as_echo "/* $configure_input  */" \
15149       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15150       || as_fn_error $? "could not create -" "$LINENO" 5
15151   fi
15152 # Compute "$ac_file"'s index in $config_headers.
15153 _am_arg="$ac_file"
15154 _am_stamp_count=1
15155 for _am_header in $config_headers :; do
15156   case $_am_header in
15157     $_am_arg | $_am_arg:* )
15158       break ;;
15159     * )
15160       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15161   esac
15162 done
15163 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15164 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15165          X"$_am_arg" : 'X\(//\)[^/]' \| \
15166          X"$_am_arg" : 'X\(//\)$' \| \
15167          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15168 $as_echo X"$_am_arg" |
15169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15170             s//\1/
15171             q
15172           }
15173           /^X\(\/\/\)[^/].*/{
15174             s//\1/
15175             q
15176           }
15177           /^X\(\/\/\)$/{
15178             s//\1/
15179             q
15180           }
15181           /^X\(\/\).*/{
15182             s//\1/
15183             q
15184           }
15185           s/.*/./; q'`/stamp-h$_am_stamp_count
15186  ;;
15187
15188   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15189 $as_echo "$as_me: executing $ac_file commands" >&6;}
15190  ;;
15191   esac
15192
15193
15194   case $ac_file$ac_mode in
15195     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15196   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15197   # are listed without --file.  Let's play safe and only enable the eval
15198   # if we detect the quoting.
15199   case $CONFIG_FILES in
15200   *\'*) eval set x "$CONFIG_FILES" ;;
15201   *)   set x $CONFIG_FILES ;;
15202   esac
15203   shift
15204   for mf
15205   do
15206     # Strip MF so we end up with the name of the file.
15207     mf=`echo "$mf" | sed -e 's/:.*$//'`
15208     # Check whether this is an Automake generated Makefile or not.
15209     # We used to match only the files named `Makefile.in', but
15210     # some people rename them; so instead we look at the file content.
15211     # Grep'ing the first line is not enough: some people post-process
15212     # each Makefile.in and add a new line on top of each file to say so.
15213     # Grep'ing the whole file is not good either: AIX grep has a line
15214     # limit of 2048, but all sed's we know have understand at least 4000.
15215     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15216       dirpart=`$as_dirname -- "$mf" ||
15217 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15218          X"$mf" : 'X\(//\)[^/]' \| \
15219          X"$mf" : 'X\(//\)$' \| \
15220          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15221 $as_echo X"$mf" |
15222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15223             s//\1/
15224             q
15225           }
15226           /^X\(\/\/\)[^/].*/{
15227             s//\1/
15228             q
15229           }
15230           /^X\(\/\/\)$/{
15231             s//\1/
15232             q
15233           }
15234           /^X\(\/\).*/{
15235             s//\1/
15236             q
15237           }
15238           s/.*/./; q'`
15239     else
15240       continue
15241     fi
15242     # Extract the definition of DEPDIR, am__include, and am__quote
15243     # from the Makefile without running `make'.
15244     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15245     test -z "$DEPDIR" && continue
15246     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15247     test -z "am__include" && continue
15248     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15249     # When using ansi2knr, U may be empty or an underscore; expand it
15250     U=`sed -n 's/^U = //p' < "$mf"`
15251     # Find all dependency output files, they are included files with
15252     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15253     # simplest approach to changing $(DEPDIR) to its actual value in the
15254     # expansion.
15255     for file in `sed -n "
15256       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15257          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15258       # Make sure the directory exists.
15259       test -f "$dirpart/$file" && continue
15260       fdir=`$as_dirname -- "$file" ||
15261 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15262          X"$file" : 'X\(//\)[^/]' \| \
15263          X"$file" : 'X\(//\)$' \| \
15264          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15265 $as_echo X"$file" |
15266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15267             s//\1/
15268             q
15269           }
15270           /^X\(\/\/\)[^/].*/{
15271             s//\1/
15272             q
15273           }
15274           /^X\(\/\/\)$/{
15275             s//\1/
15276             q
15277           }
15278           /^X\(\/\).*/{
15279             s//\1/
15280             q
15281           }
15282           s/.*/./; q'`
15283       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15284       # echo "creating $dirpart/$file"
15285       echo '# dummy' > "$dirpart/$file"
15286     done
15287   done
15288 }
15289  ;;
15290     "libtool":C)
15291
15292     # See if we are running on zsh, and set the options which allow our
15293     # commands through without removal of \ escapes.
15294     if test -n "${ZSH_VERSION+set}" ; then
15295       setopt NO_GLOB_SUBST
15296     fi
15297
15298     cfgfile="${ofile}T"
15299     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15300     $RM "$cfgfile"
15301
15302     cat <<_LT_EOF >> "$cfgfile"
15303 #! $SHELL
15304
15305 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15306 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15307 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15308 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15309 #
15310 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15311 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15312 #                 Foundation, Inc.
15313 #   Written by Gordon Matzigkeit, 1996
15314 #
15315 #   This file is part of GNU Libtool.
15316 #
15317 # GNU Libtool is free software; you can redistribute it and/or
15318 # modify it under the terms of the GNU General Public License as
15319 # published by the Free Software Foundation; either version 2 of
15320 # the License, or (at your option) any later version.
15321 #
15322 # As a special exception to the GNU General Public License,
15323 # if you distribute this file as part of a program or library that
15324 # is built using GNU Libtool, you may include this file under the
15325 # same distribution terms that you use for the rest of that program.
15326 #
15327 # GNU Libtool is distributed in the hope that it will be useful,
15328 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15329 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15330 # GNU General Public License for more details.
15331 #
15332 # You should have received a copy of the GNU General Public License
15333 # along with GNU Libtool; see the file COPYING.  If not, a copy
15334 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15335 # obtained by writing to the Free Software Foundation, Inc.,
15336 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15337
15338
15339 # The names of the tagged configurations supported by this script.
15340 available_tags=""
15341
15342 # ### BEGIN LIBTOOL CONFIG
15343
15344 # Whether or not to build static libraries.
15345 build_old_libs=$enable_static
15346
15347 # Which release of libtool.m4 was used?
15348 macro_version=$macro_version
15349 macro_revision=$macro_revision
15350
15351 # Whether or not to build shared libraries.
15352 build_libtool_libs=$enable_shared
15353
15354 # What type of objects to build.
15355 pic_mode=$pic_mode
15356
15357 # Whether or not to optimize for fast installation.
15358 fast_install=$enable_fast_install
15359
15360 # Shell to use when invoking shell scripts.
15361 SHELL=$lt_SHELL
15362
15363 # An echo program that protects backslashes.
15364 ECHO=$lt_ECHO
15365
15366 # The PATH separator for the build system.
15367 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15368
15369 # The host system.
15370 host_alias=$host_alias
15371 host=$host
15372 host_os=$host_os
15373
15374 # The build system.
15375 build_alias=$build_alias
15376 build=$build
15377 build_os=$build_os
15378
15379 # A sed program that does not truncate output.
15380 SED=$lt_SED
15381
15382 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15383 Xsed="\$SED -e 1s/^X//"
15384
15385 # A grep program that handles long lines.
15386 GREP=$lt_GREP
15387
15388 # An ERE matcher.
15389 EGREP=$lt_EGREP
15390
15391 # A literal string matcher.
15392 FGREP=$lt_FGREP
15393
15394 # A BSD- or MS-compatible name lister.
15395 NM=$lt_NM
15396
15397 # Whether we need soft or hard links.
15398 LN_S=$lt_LN_S
15399
15400 # What is the maximum length of a command?
15401 max_cmd_len=$max_cmd_len
15402
15403 # Object file suffix (normally "o").
15404 objext=$ac_objext
15405
15406 # Executable file suffix (normally "").
15407 exeext=$exeext
15408
15409 # whether the shell understands "unset".
15410 lt_unset=$lt_unset
15411
15412 # turn spaces into newlines.
15413 SP2NL=$lt_lt_SP2NL
15414
15415 # turn newlines into spaces.
15416 NL2SP=$lt_lt_NL2SP
15417
15418 # convert \$build file names to \$host format.
15419 to_host_file_cmd=$lt_cv_to_host_file_cmd
15420
15421 # convert \$build files to toolchain format.
15422 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15423
15424 # An object symbol dumper.
15425 OBJDUMP=$lt_OBJDUMP
15426
15427 # Method to check whether dependent libraries are shared objects.
15428 deplibs_check_method=$lt_deplibs_check_method
15429
15430 # Command to use when deplibs_check_method = "file_magic".
15431 file_magic_cmd=$lt_file_magic_cmd
15432
15433 # How to find potential files when deplibs_check_method = "file_magic".
15434 file_magic_glob=$lt_file_magic_glob
15435
15436 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15437 want_nocaseglob=$lt_want_nocaseglob
15438
15439 # DLL creation program.
15440 DLLTOOL=$lt_DLLTOOL
15441
15442 # Command to associate shared and link libraries.
15443 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15444
15445 # The archiver.
15446 AR=$lt_AR
15447
15448 # Flags to create an archive.
15449 AR_FLAGS=$lt_AR_FLAGS
15450
15451 # How to feed a file listing to the archiver.
15452 archiver_list_spec=$lt_archiver_list_spec
15453
15454 # A symbol stripping program.
15455 STRIP=$lt_STRIP
15456
15457 # Commands used to install an old-style archive.
15458 RANLIB=$lt_RANLIB
15459 old_postinstall_cmds=$lt_old_postinstall_cmds
15460 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15461
15462 # Whether to use a lock for old archive extraction.
15463 lock_old_archive_extraction=$lock_old_archive_extraction
15464
15465 # A C compiler.
15466 LTCC=$lt_CC
15467
15468 # LTCC compiler flags.
15469 LTCFLAGS=$lt_CFLAGS
15470
15471 # Take the output of nm and produce a listing of raw symbols and C names.
15472 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15473
15474 # Transform the output of nm in a proper C declaration.
15475 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15476
15477 # Transform the output of nm in a C name address pair.
15478 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15479
15480 # Transform the output of nm in a C name address pair when lib prefix is needed.
15481 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15482
15483 # Specify filename containing input files for \$NM.
15484 nm_file_list_spec=$lt_nm_file_list_spec
15485
15486 # The root where to search for dependent libraries,and in which our libraries should be installed.
15487 lt_sysroot=$lt_sysroot
15488
15489 # The name of the directory that contains temporary libtool files.
15490 objdir=$objdir
15491
15492 # Used to examine libraries when file_magic_cmd begins with "file".
15493 MAGIC_CMD=$MAGIC_CMD
15494
15495 # Must we lock files when doing compilation?
15496 need_locks=$lt_need_locks
15497
15498 # Manifest tool.
15499 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15500
15501 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15502 DSYMUTIL=$lt_DSYMUTIL
15503
15504 # Tool to change global to local symbols on Mac OS X.
15505 NMEDIT=$lt_NMEDIT
15506
15507 # Tool to manipulate fat objects and archives on Mac OS X.
15508 LIPO=$lt_LIPO
15509
15510 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15511 OTOOL=$lt_OTOOL
15512
15513 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15514 OTOOL64=$lt_OTOOL64
15515
15516 # Old archive suffix (normally "a").
15517 libext=$libext
15518
15519 # Shared library suffix (normally ".so").
15520 shrext_cmds=$lt_shrext_cmds
15521
15522 # The commands to extract the exported symbol list from a shared archive.
15523 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15524
15525 # Variables whose values should be saved in libtool wrapper scripts and
15526 # restored at link time.
15527 variables_saved_for_relink=$lt_variables_saved_for_relink
15528
15529 # Do we need the "lib" prefix for modules?
15530 need_lib_prefix=$need_lib_prefix
15531
15532 # Do we need a version for libraries?
15533 need_version=$need_version
15534
15535 # Library versioning type.
15536 version_type=$version_type
15537
15538 # Shared library runtime path variable.
15539 runpath_var=$runpath_var
15540
15541 # Shared library path variable.
15542 shlibpath_var=$shlibpath_var
15543
15544 # Is shlibpath searched before the hard-coded library search path?
15545 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15546
15547 # Format of library name prefix.
15548 libname_spec=$lt_libname_spec
15549
15550 # List of archive names.  First name is the real one, the rest are links.
15551 # The last name is the one that the linker finds with -lNAME
15552 library_names_spec=$lt_library_names_spec
15553
15554 # The coded name of the library, if different from the real name.
15555 soname_spec=$lt_soname_spec
15556
15557 # Permission mode override for installation of shared libraries.
15558 install_override_mode=$lt_install_override_mode
15559
15560 # Command to use after installation of a shared archive.
15561 postinstall_cmds=$lt_postinstall_cmds
15562
15563 # Command to use after uninstallation of a shared archive.
15564 postuninstall_cmds=$lt_postuninstall_cmds
15565
15566 # Commands used to finish a libtool library installation in a directory.
15567 finish_cmds=$lt_finish_cmds
15568
15569 # As "finish_cmds", except a single script fragment to be evaled but
15570 # not shown.
15571 finish_eval=$lt_finish_eval
15572
15573 # Whether we should hardcode library paths into libraries.
15574 hardcode_into_libs=$hardcode_into_libs
15575
15576 # Compile-time system search path for libraries.
15577 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15578
15579 # Run-time system search path for libraries.
15580 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15581
15582 # Whether dlopen is supported.
15583 dlopen_support=$enable_dlopen
15584
15585 # Whether dlopen of programs is supported.
15586 dlopen_self=$enable_dlopen_self
15587
15588 # Whether dlopen of statically linked programs is supported.
15589 dlopen_self_static=$enable_dlopen_self_static
15590
15591 # Commands to strip libraries.
15592 old_striplib=$lt_old_striplib
15593 striplib=$lt_striplib
15594
15595
15596 # The linker used to build libraries.
15597 LD=$lt_LD
15598
15599 # How to create reloadable object files.
15600 reload_flag=$lt_reload_flag
15601 reload_cmds=$lt_reload_cmds
15602
15603 # Commands used to build an old-style archive.
15604 old_archive_cmds=$lt_old_archive_cmds
15605
15606 # A language specific compiler.
15607 CC=$lt_compiler
15608
15609 # Is the compiler the GNU compiler?
15610 with_gcc=$GCC
15611
15612 # Compiler flag to turn off builtin functions.
15613 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15614
15615 # Additional compiler flags for building library objects.
15616 pic_flag=$lt_lt_prog_compiler_pic
15617
15618 # How to pass a linker flag through the compiler.
15619 wl=$lt_lt_prog_compiler_wl
15620
15621 # Compiler flag to prevent dynamic linking.
15622 link_static_flag=$lt_lt_prog_compiler_static
15623
15624 # Does compiler simultaneously support -c and -o options?
15625 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15626
15627 # Whether or not to add -lc for building shared libraries.
15628 build_libtool_need_lc=$archive_cmds_need_lc
15629
15630 # Whether or not to disallow shared libs when runtime libs are static.
15631 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15632
15633 # Compiler flag to allow reflexive dlopens.
15634 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15635
15636 # Compiler flag to generate shared objects directly from archives.
15637 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15638
15639 # Whether the compiler copes with passing no objects directly.
15640 compiler_needs_object=$lt_compiler_needs_object
15641
15642 # Create an old-style archive from a shared archive.
15643 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15644
15645 # Create a temporary old-style archive to link instead of a shared archive.
15646 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15647
15648 # Commands used to build a shared archive.
15649 archive_cmds=$lt_archive_cmds
15650 archive_expsym_cmds=$lt_archive_expsym_cmds
15651
15652 # Commands used to build a loadable module if different from building
15653 # a shared archive.
15654 module_cmds=$lt_module_cmds
15655 module_expsym_cmds=$lt_module_expsym_cmds
15656
15657 # Whether we are building with GNU ld or not.
15658 with_gnu_ld=$lt_with_gnu_ld
15659
15660 # Flag that allows shared libraries with undefined symbols to be built.
15661 allow_undefined_flag=$lt_allow_undefined_flag
15662
15663 # Flag that enforces no undefined symbols.
15664 no_undefined_flag=$lt_no_undefined_flag
15665
15666 # Flag to hardcode \$libdir into a binary during linking.
15667 # This must work even if \$libdir does not exist
15668 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15669
15670 # Whether we need a single "-rpath" flag with a separated argument.
15671 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15672
15673 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15674 # DIR into the resulting binary.
15675 hardcode_direct=$hardcode_direct
15676
15677 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15678 # DIR into the resulting binary and the resulting library dependency is
15679 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15680 # library is relocated.
15681 hardcode_direct_absolute=$hardcode_direct_absolute
15682
15683 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15684 # into the resulting binary.
15685 hardcode_minus_L=$hardcode_minus_L
15686
15687 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15688 # into the resulting binary.
15689 hardcode_shlibpath_var=$hardcode_shlibpath_var
15690
15691 # Set to "yes" if building a shared library automatically hardcodes DIR
15692 # into the library and all subsequent libraries and executables linked
15693 # against it.
15694 hardcode_automatic=$hardcode_automatic
15695
15696 # Set to yes if linker adds runtime paths of dependent libraries
15697 # to runtime path list.
15698 inherit_rpath=$inherit_rpath
15699
15700 # Whether libtool must link a program against all its dependency libraries.
15701 link_all_deplibs=$link_all_deplibs
15702
15703 # Set to "yes" if exported symbols are required.
15704 always_export_symbols=$always_export_symbols
15705
15706 # The commands to list exported symbols.
15707 export_symbols_cmds=$lt_export_symbols_cmds
15708
15709 # Symbols that should not be listed in the preloaded symbols.
15710 exclude_expsyms=$lt_exclude_expsyms
15711
15712 # Symbols that must always be exported.
15713 include_expsyms=$lt_include_expsyms
15714
15715 # Commands necessary for linking programs (against libraries) with templates.
15716 prelink_cmds=$lt_prelink_cmds
15717
15718 # Commands necessary for finishing linking programs.
15719 postlink_cmds=$lt_postlink_cmds
15720
15721 # Specify filename containing input files.
15722 file_list_spec=$lt_file_list_spec
15723
15724 # How to hardcode a shared library path into an executable.
15725 hardcode_action=$hardcode_action
15726
15727 # ### END LIBTOOL CONFIG
15728
15729 _LT_EOF
15730
15731   case $host_os in
15732   aix3*)
15733     cat <<\_LT_EOF >> "$cfgfile"
15734 # AIX sometimes has problems with the GCC collect2 program.  For some
15735 # reason, if we set the COLLECT_NAMES environment variable, the problems
15736 # vanish in a puff of smoke.
15737 if test "X${COLLECT_NAMES+set}" != Xset; then
15738   COLLECT_NAMES=
15739   export COLLECT_NAMES
15740 fi
15741 _LT_EOF
15742     ;;
15743   esac
15744
15745
15746 ltmain="$ac_aux_dir/ltmain.sh"
15747
15748
15749   # We use sed instead of cat because bash on DJGPP gets confused if
15750   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15751   # text mode, it properly converts lines to CR/LF.  This bash problem
15752   # is reportedly fixed, but why not run on old versions too?
15753   sed '$q' "$ltmain" >> "$cfgfile" \
15754      || (rm -f "$cfgfile"; exit 1)
15755
15756   if test x"$xsi_shell" = xyes; then
15757   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15758 func_dirname ()\
15759 {\
15760 \    case ${1} in\
15761 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15762 \      *  ) func_dirname_result="${3}" ;;\
15763 \    esac\
15764 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15765   && mv -f "$cfgfile.tmp" "$cfgfile" \
15766     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15767 test 0 -eq $? || _lt_function_replace_fail=:
15768
15769
15770   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15771 func_basename ()\
15772 {\
15773 \    func_basename_result="${1##*/}"\
15774 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15775   && mv -f "$cfgfile.tmp" "$cfgfile" \
15776     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15777 test 0 -eq $? || _lt_function_replace_fail=:
15778
15779
15780   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15781 func_dirname_and_basename ()\
15782 {\
15783 \    case ${1} in\
15784 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15785 \      *  ) func_dirname_result="${3}" ;;\
15786 \    esac\
15787 \    func_basename_result="${1##*/}"\
15788 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15789   && mv -f "$cfgfile.tmp" "$cfgfile" \
15790     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15791 test 0 -eq $? || _lt_function_replace_fail=:
15792
15793
15794   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15795 func_stripname ()\
15796 {\
15797 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15798 \    # positional parameters, so assign one to ordinary parameter first.\
15799 \    func_stripname_result=${3}\
15800 \    func_stripname_result=${func_stripname_result#"${1}"}\
15801 \    func_stripname_result=${func_stripname_result%"${2}"}\
15802 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15803   && mv -f "$cfgfile.tmp" "$cfgfile" \
15804     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15805 test 0 -eq $? || _lt_function_replace_fail=:
15806
15807
15808   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15809 func_split_long_opt ()\
15810 {\
15811 \    func_split_long_opt_name=${1%%=*}\
15812 \    func_split_long_opt_arg=${1#*=}\
15813 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15814   && mv -f "$cfgfile.tmp" "$cfgfile" \
15815     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15816 test 0 -eq $? || _lt_function_replace_fail=:
15817
15818
15819   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15820 func_split_short_opt ()\
15821 {\
15822 \    func_split_short_opt_arg=${1#??}\
15823 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15824 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15825   && mv -f "$cfgfile.tmp" "$cfgfile" \
15826     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15827 test 0 -eq $? || _lt_function_replace_fail=:
15828
15829
15830   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15831 func_lo2o ()\
15832 {\
15833 \    case ${1} in\
15834 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15835 \      *)    func_lo2o_result=${1} ;;\
15836 \    esac\
15837 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15838   && mv -f "$cfgfile.tmp" "$cfgfile" \
15839     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15840 test 0 -eq $? || _lt_function_replace_fail=:
15841
15842
15843   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15844 func_xform ()\
15845 {\
15846     func_xform_result=${1%.*}.lo\
15847 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15848   && mv -f "$cfgfile.tmp" "$cfgfile" \
15849     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15850 test 0 -eq $? || _lt_function_replace_fail=:
15851
15852
15853   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15854 func_arith ()\
15855 {\
15856     func_arith_result=$(( $* ))\
15857 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15858   && mv -f "$cfgfile.tmp" "$cfgfile" \
15859     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15860 test 0 -eq $? || _lt_function_replace_fail=:
15861
15862
15863   sed -e '/^func_len ()$/,/^} # func_len /c\
15864 func_len ()\
15865 {\
15866     func_len_result=${#1}\
15867 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15868   && mv -f "$cfgfile.tmp" "$cfgfile" \
15869     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15870 test 0 -eq $? || _lt_function_replace_fail=:
15871
15872 fi
15873
15874 if test x"$lt_shell_append" = xyes; then
15875   sed -e '/^func_append ()$/,/^} # func_append /c\
15876 func_append ()\
15877 {\
15878     eval "${1}+=\\${2}"\
15879 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15880   && mv -f "$cfgfile.tmp" "$cfgfile" \
15881     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15882 test 0 -eq $? || _lt_function_replace_fail=:
15883
15884
15885   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15886 func_append_quoted ()\
15887 {\
15888 \    func_quote_for_eval "${2}"\
15889 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15890 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15891   && mv -f "$cfgfile.tmp" "$cfgfile" \
15892     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15893 test 0 -eq $? || _lt_function_replace_fail=:
15894
15895
15896   # Save a `func_append' function call where possible by direct use of '+='
15897   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15898     && mv -f "$cfgfile.tmp" "$cfgfile" \
15899       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15900   test 0 -eq $? || _lt_function_replace_fail=:
15901 else
15902   # Save a `func_append' function call even when '+=' is not available
15903   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15904     && mv -f "$cfgfile.tmp" "$cfgfile" \
15905       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15906   test 0 -eq $? || _lt_function_replace_fail=:
15907 fi
15908
15909 if test x"$_lt_function_replace_fail" = x":"; then
15910   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15911 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15912 fi
15913
15914
15915    mv -f "$cfgfile" "$ofile" ||
15916     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15917   chmod +x "$ofile"
15918
15919  ;;
15920
15921   esac
15922 done # for ac_tag
15923
15924
15925 as_fn_exit 0
15926 _ACEOF
15927 ac_clean_files=$ac_clean_files_save
15928
15929 test $ac_write_fail = 0 ||
15930   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15931
15932
15933 # configure is writing to config.log, and then calls config.status.
15934 # config.status does its own redirection, appending to config.log.
15935 # Unfortunately, on DOS this fails, as config.log is still kept open
15936 # by configure, so config.status won't be able to write to it; its
15937 # output is simply discarded.  So we exec the FD to /dev/null,
15938 # effectively closing config.log, so it can be properly (re)opened and
15939 # appended to by config.status.  When coming back to configure, we
15940 # need to make the FD available again.
15941 if test "$no_create" != yes; then
15942   ac_cs_success=:
15943   ac_config_status_args=
15944   test "$silent" = yes &&
15945     ac_config_status_args="$ac_config_status_args --quiet"
15946   exec 5>/dev/null
15947   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15948   exec 5>>config.log
15949   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15950   # would make configure fail if this is the last instruction.
15951   $ac_cs_success || as_fn_exit 1
15952 fi
15953 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15954   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15955 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15956 fi
15957