Integrate neard post 0.6 changes - handover code
[profile/ivi/neard.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for neard 0.6.
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='neard'
589 PACKAGE_TARNAME='neard'
590 PACKAGE_VERSION='0.6'
591 PACKAGE_STRING='neard 0.6'
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 P2P_FALSE
637 P2P_TRUE
638 NFCTYPE4_FALSE
639 NFCTYPE4_TRUE
640 NFCTYPE3_FALSE
641 NFCTYPE3_TRUE
642 NFCTYPE2_FALSE
643 NFCTYPE2_TRUE
644 NFCTYPE1_FALSE
645 NFCTYPE1_TRUE
646 TOOLS_FALSE
647 TOOLS_TRUE
648 TEST_FALSE
649 TEST_TRUE
650 NETLINK_LIBS
651 NETLINK_CFLAGS
652 LIBNL1_LIBS
653 LIBNL1_CFLAGS
654 LIBNL2_LIBS
655 LIBNL2_CFLAGS
656 LIBNL3_LIBS
657 LIBNL3_CFLAGS
658 DBUS_LIBS
659 DBUS_CFLAGS
660 GLIB_LIBS
661 GLIB_CFLAGS
662 CPP
663 OTOOL64
664 OTOOL
665 LIPO
666 NMEDIT
667 DSYMUTIL
668 MANIFEST_TOOL
669 RANLIB
670 ac_ct_AR
671 AR
672 DLLTOOL
673 OBJDUMP
674 LN_S
675 NM
676 ac_ct_DUMPBIN
677 DUMPBIN
678 LD
679 FGREP
680 EGREP
681 GREP
682 SED
683 host_os
684 host_vendor
685 host_cpu
686 host
687 build_os
688 build_vendor
689 build_cpu
690 build
691 LIBTOOL
692 am__fastdepCC_FALSE
693 am__fastdepCC_TRUE
694 CCDEPMODE
695 am__nodep
696 AMDEPBACKSLASH
697 AMDEP_FALSE
698 AMDEP_TRUE
699 am__quote
700 am__include
701 DEPDIR
702 OBJEXT
703 EXEEXT
704 ac_ct_CC
705 CPPFLAGS
706 LDFLAGS
707 CFLAGS
708 CC
709 PKG_CONFIG_LIBDIR
710 PKG_CONFIG_PATH
711 PKG_CONFIG
712 MAINT
713 MAINTAINER_MODE_FALSE
714 MAINTAINER_MODE_TRUE
715 AM_BACKSLASH
716 AM_DEFAULT_VERBOSITY
717 AM_DEFAULT_V
718 AM_V
719 am__untar
720 am__tar
721 AMTAR
722 am__leading_dot
723 SET_MAKE
724 AWK
725 mkdir_p
726 MKDIR_P
727 INSTALL_STRIP_PROGRAM
728 STRIP
729 install_sh
730 MAKEINFO
731 AUTOHEADER
732 AUTOMAKE
733 AUTOCONF
734 ACLOCAL
735 VERSION
736 PACKAGE
737 CYGPATH_W
738 am__isrc
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 target_alias
743 host_alias
744 build_alias
745 LIBS
746 ECHO_T
747 ECHO_N
748 ECHO_C
749 DEFS
750 mandir
751 localedir
752 libdir
753 psdir
754 pdfdir
755 dvidir
756 htmldir
757 infodir
758 docdir
759 oldincludedir
760 includedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_silent_rules
784 enable_maintainer_mode
785 enable_dependency_tracking
786 enable_static
787 enable_shared
788 with_pic
789 enable_fast_install
790 with_gnu_ld
791 with_sysroot
792 enable_libtool_lock
793 enable_optimization
794 enable_debug
795 enable_pie
796 enable_test
797 enable_tools
798 enable_nfctype1
799 enable_nfctype2
800 enable_nfctype3
801 enable_nfctype4
802 enable_p2p
803 '
804       ac_precious_vars='build_alias
805 host_alias
806 target_alias
807 PKG_CONFIG
808 PKG_CONFIG_PATH
809 PKG_CONFIG_LIBDIR
810 CC
811 CFLAGS
812 LDFLAGS
813 LIBS
814 CPPFLAGS
815 CPP
816 GLIB_CFLAGS
817 GLIB_LIBS
818 DBUS_CFLAGS
819 DBUS_LIBS
820 LIBNL3_CFLAGS
821 LIBNL3_LIBS
822 LIBNL2_CFLAGS
823 LIBNL2_LIBS
824 LIBNL1_CFLAGS
825 LIBNL1_LIBS'
826
827
828 # Initialize some variables set by options.
829 ac_init_help=
830 ac_init_version=false
831 ac_unrecognized_opts=
832 ac_unrecognized_sep=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
849
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
875
876 ac_prev=
877 ac_dashdash=
878 for ac_option
879 do
880   # If the previous option needs an argument, assign it.
881   if test -n "$ac_prev"; then
882     eval $ac_prev=\$ac_option
883     ac_prev=
884     continue
885   fi
886
887   case $ac_option in
888   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889   *=)   ac_optarg= ;;
890   *)    ac_optarg=yes ;;
891   esac
892
893   # Accept the important Cygnus configure options, so we can diagnose typos.
894
895   case $ac_dashdash$ac_option in
896   --)
897     ac_dashdash=yes ;;
898
899   -bindir | --bindir | --bindi | --bind | --bin | --bi)
900     ac_prev=bindir ;;
901   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902     bindir=$ac_optarg ;;
903
904   -build | --build | --buil | --bui | --bu)
905     ac_prev=build_alias ;;
906   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907     build_alias=$ac_optarg ;;
908
909   -cache-file | --cache-file | --cache-fil | --cache-fi \
910   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911     ac_prev=cache_file ;;
912   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914     cache_file=$ac_optarg ;;
915
916   --config-cache | -C)
917     cache_file=config.cache ;;
918
919   -datadir | --datadir | --datadi | --datad)
920     ac_prev=datadir ;;
921   -datadir=* | --datadir=* | --datadi=* | --datad=*)
922     datadir=$ac_optarg ;;
923
924   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925   | --dataroo | --dataro | --datar)
926     ac_prev=datarootdir ;;
927   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929     datarootdir=$ac_optarg ;;
930
931   -disable-* | --disable-*)
932     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933     # Reject names that are not valid shell variable names.
934     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935       as_fn_error $? "invalid feature name: $ac_useropt"
936     ac_useropt_orig=$ac_useropt
937     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938     case $ac_user_opts in
939       *"
940 "enable_$ac_useropt"
941 "*) ;;
942       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943          ac_unrecognized_sep=', ';;
944     esac
945     eval enable_$ac_useropt=no ;;
946
947   -docdir | --docdir | --docdi | --doc | --do)
948     ac_prev=docdir ;;
949   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950     docdir=$ac_optarg ;;
951
952   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953     ac_prev=dvidir ;;
954   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955     dvidir=$ac_optarg ;;
956
957   -enable-* | --enable-*)
958     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959     # Reject names that are not valid shell variable names.
960     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961       as_fn_error $? "invalid feature name: $ac_useropt"
962     ac_useropt_orig=$ac_useropt
963     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964     case $ac_user_opts in
965       *"
966 "enable_$ac_useropt"
967 "*) ;;
968       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969          ac_unrecognized_sep=', ';;
970     esac
971     eval enable_$ac_useropt=\$ac_optarg ;;
972
973   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975   | --exec | --exe | --ex)
976     ac_prev=exec_prefix ;;
977   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979   | --exec=* | --exe=* | --ex=*)
980     exec_prefix=$ac_optarg ;;
981
982   -gas | --gas | --ga | --g)
983     # Obsolete; use --with-gas.
984     with_gas=yes ;;
985
986   -help | --help | --hel | --he | -h)
987     ac_init_help=long ;;
988   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989     ac_init_help=recursive ;;
990   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991     ac_init_help=short ;;
992
993   -host | --host | --hos | --ho)
994     ac_prev=host_alias ;;
995   -host=* | --host=* | --hos=* | --ho=*)
996     host_alias=$ac_optarg ;;
997
998   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999     ac_prev=htmldir ;;
1000   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001   | --ht=*)
1002     htmldir=$ac_optarg ;;
1003
1004   -includedir | --includedir | --includedi | --included | --include \
1005   | --includ | --inclu | --incl | --inc)
1006     ac_prev=includedir ;;
1007   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008   | --includ=* | --inclu=* | --incl=* | --inc=*)
1009     includedir=$ac_optarg ;;
1010
1011   -infodir | --infodir | --infodi | --infod | --info | --inf)
1012     ac_prev=infodir ;;
1013   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014     infodir=$ac_optarg ;;
1015
1016   -libdir | --libdir | --libdi | --libd)
1017     ac_prev=libdir ;;
1018   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019     libdir=$ac_optarg ;;
1020
1021   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022   | --libexe | --libex | --libe)
1023     ac_prev=libexecdir ;;
1024   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025   | --libexe=* | --libex=* | --libe=*)
1026     libexecdir=$ac_optarg ;;
1027
1028   -localedir | --localedir | --localedi | --localed | --locale)
1029     ac_prev=localedir ;;
1030   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031     localedir=$ac_optarg ;;
1032
1033   -localstatedir | --localstatedir | --localstatedi | --localstated \
1034   | --localstate | --localstat | --localsta | --localst | --locals)
1035     ac_prev=localstatedir ;;
1036   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038     localstatedir=$ac_optarg ;;
1039
1040   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041     ac_prev=mandir ;;
1042   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043     mandir=$ac_optarg ;;
1044
1045   -nfp | --nfp | --nf)
1046     # Obsolete; use --without-fp.
1047     with_fp=no ;;
1048
1049   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050   | --no-cr | --no-c | -n)
1051     no_create=yes ;;
1052
1053   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055     no_recursion=yes ;;
1056
1057   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059   | --oldin | --oldi | --old | --ol | --o)
1060     ac_prev=oldincludedir ;;
1061   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064     oldincludedir=$ac_optarg ;;
1065
1066   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067     ac_prev=prefix ;;
1068   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069     prefix=$ac_optarg ;;
1070
1071   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072   | --program-pre | --program-pr | --program-p)
1073     ac_prev=program_prefix ;;
1074   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076     program_prefix=$ac_optarg ;;
1077
1078   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079   | --program-suf | --program-su | --program-s)
1080     ac_prev=program_suffix ;;
1081   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083     program_suffix=$ac_optarg ;;
1084
1085   -program-transform-name | --program-transform-name \
1086   | --program-transform-nam | --program-transform-na \
1087   | --program-transform-n | --program-transform- \
1088   | --program-transform | --program-transfor \
1089   | --program-transfo | --program-transf \
1090   | --program-trans | --program-tran \
1091   | --progr-tra | --program-tr | --program-t)
1092     ac_prev=program_transform_name ;;
1093   -program-transform-name=* | --program-transform-name=* \
1094   | --program-transform-nam=* | --program-transform-na=* \
1095   | --program-transform-n=* | --program-transform-=* \
1096   | --program-transform=* | --program-transfor=* \
1097   | --program-transfo=* | --program-transf=* \
1098   | --program-trans=* | --program-tran=* \
1099   | --progr-tra=* | --program-tr=* | --program-t=*)
1100     program_transform_name=$ac_optarg ;;
1101
1102   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103     ac_prev=pdfdir ;;
1104   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105     pdfdir=$ac_optarg ;;
1106
1107   -psdir | --psdir | --psdi | --psd | --ps)
1108     ac_prev=psdir ;;
1109   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110     psdir=$ac_optarg ;;
1111
1112   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113   | -silent | --silent | --silen | --sile | --sil)
1114     silent=yes ;;
1115
1116   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117     ac_prev=sbindir ;;
1118   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119   | --sbi=* | --sb=*)
1120     sbindir=$ac_optarg ;;
1121
1122   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124   | --sharedst | --shareds | --shared | --share | --shar \
1125   | --sha | --sh)
1126     ac_prev=sharedstatedir ;;
1127   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130   | --sha=* | --sh=*)
1131     sharedstatedir=$ac_optarg ;;
1132
1133   -site | --site | --sit)
1134     ac_prev=site ;;
1135   -site=* | --site=* | --sit=*)
1136     site=$ac_optarg ;;
1137
1138   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139     ac_prev=srcdir ;;
1140   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141     srcdir=$ac_optarg ;;
1142
1143   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144   | --syscon | --sysco | --sysc | --sys | --sy)
1145     ac_prev=sysconfdir ;;
1146   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148     sysconfdir=$ac_optarg ;;
1149
1150   -target | --target | --targe | --targ | --tar | --ta | --t)
1151     ac_prev=target_alias ;;
1152   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153     target_alias=$ac_optarg ;;
1154
1155   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156     verbose=yes ;;
1157
1158   -version | --version | --versio | --versi | --vers | -V)
1159     ac_init_version=: ;;
1160
1161   -with-* | --with-*)
1162     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163     # Reject names that are not valid shell variable names.
1164     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165       as_fn_error $? "invalid package name: $ac_useropt"
1166     ac_useropt_orig=$ac_useropt
1167     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168     case $ac_user_opts in
1169       *"
1170 "with_$ac_useropt"
1171 "*) ;;
1172       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173          ac_unrecognized_sep=', ';;
1174     esac
1175     eval with_$ac_useropt=\$ac_optarg ;;
1176
1177   -without-* | --without-*)
1178     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179     # Reject names that are not valid shell variable names.
1180     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181       as_fn_error $? "invalid package name: $ac_useropt"
1182     ac_useropt_orig=$ac_useropt
1183     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184     case $ac_user_opts in
1185       *"
1186 "with_$ac_useropt"
1187 "*) ;;
1188       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189          ac_unrecognized_sep=', ';;
1190     esac
1191     eval with_$ac_useropt=no ;;
1192
1193   --x)
1194     # Obsolete; use --with-x.
1195     with_x=yes ;;
1196
1197   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198   | --x-incl | --x-inc | --x-in | --x-i)
1199     ac_prev=x_includes ;;
1200   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202     x_includes=$ac_optarg ;;
1203
1204   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206     ac_prev=x_libraries ;;
1207   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209     x_libraries=$ac_optarg ;;
1210
1211   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1212 Try \`$0 --help' for more information"
1213     ;;
1214
1215   *=*)
1216     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217     # Reject names that are not valid shell variable names.
1218     case $ac_envvar in #(
1219       '' | [0-9]* | *[!_$as_cr_alnum]* )
1220       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1221     esac
1222     eval $ac_envvar=\$ac_optarg
1223     export $ac_envvar ;;
1224
1225   *)
1226     # FIXME: should be removed in autoconf 3.0.
1227     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1231     ;;
1232
1233   esac
1234 done
1235
1236 if test -n "$ac_prev"; then
1237   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238   as_fn_error $? "missing argument to $ac_option"
1239 fi
1240
1241 if test -n "$ac_unrecognized_opts"; then
1242   case $enable_option_checking in
1243     no) ;;
1244     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1245     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246   esac
1247 fi
1248
1249 # Check all directory arguments for consistency.
1250 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251                 datadir sysconfdir sharedstatedir localstatedir includedir \
1252                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253                 libdir localedir mandir
1254 do
1255   eval ac_val=\$$ac_var
1256   # Remove trailing slashes.
1257   case $ac_val in
1258     */ )
1259       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260       eval $ac_var=\$ac_val;;
1261   esac
1262   # Be sure to have absolute directory names.
1263   case $ac_val in
1264     [\\/$]* | ?:[\\/]* )  continue;;
1265     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266   esac
1267   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1268 done
1269
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1273 build=$build_alias
1274 host=$host_alias
1275 target=$target_alias
1276
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279   if test "x$build_alias" = x; then
1280     cross_compiling=maybe
1281   elif test "x$build_alias" != "x$host_alias"; then
1282     cross_compiling=yes
1283   fi
1284 fi
1285
1286 ac_tool_prefix=
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288
1289 test "$silent" = yes && exec 6>/dev/null
1290
1291
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295   as_fn_error $? "working directory cannot be determined"
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297   as_fn_error $? "pwd does not report name of working directory"
1298
1299
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302   ac_srcdir_defaulted=yes
1303   # Try the directory containing this script, then the parent directory.
1304   ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306          X"$as_myself" : 'X\(//\)[^/]' \| \
1307          X"$as_myself" : 'X\(//\)$' \| \
1308          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311             s//\1/
1312             q
1313           }
1314           /^X\(\/\/\)[^/].*/{
1315             s//\1/
1316             q
1317           }
1318           /^X\(\/\/\)$/{
1319             s//\1/
1320             q
1321           }
1322           /^X\(\/\).*/{
1323             s//\1/
1324             q
1325           }
1326           s/.*/./; q'`
1327   srcdir=$ac_confdir
1328   if test ! -r "$srcdir/$ac_unique_file"; then
1329     srcdir=..
1330   fi
1331 else
1332   ac_srcdir_defaulted=no
1333 fi
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1337 fi
1338 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1339 ac_abs_confdir=`(
1340         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1341         pwd)`
1342 # When building in place, set srcdir=.
1343 if test "$ac_abs_confdir" = "$ac_pwd"; then
1344   srcdir=.
1345 fi
1346 # Remove unnecessary trailing slashes from srcdir.
1347 # Double slashes in file names in object file debugging info
1348 # mess up M-x gdb in Emacs.
1349 case $srcdir in
1350 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351 esac
1352 for ac_var in $ac_precious_vars; do
1353   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1354   eval ac_env_${ac_var}_value=\$${ac_var}
1355   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1356   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 done
1358
1359 #
1360 # Report the --help message.
1361 #
1362 if test "$ac_init_help" = "long"; then
1363   # Omit some internal or obsolete options to make the list less imposing.
1364   # This message is too long to be a string in the A/UX 3.1 sh.
1365   cat <<_ACEOF
1366 \`configure' configures neard 0.6 to adapt to many kinds of systems.
1367
1368 Usage: $0 [OPTION]... [VAR=VALUE]...
1369
1370 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1371 VAR=VALUE.  See below for descriptions of some of the useful variables.
1372
1373 Defaults for the options are specified in brackets.
1374
1375 Configuration:
1376   -h, --help              display this help and exit
1377       --help=short        display options specific to this package
1378       --help=recursive    display the short help of all the included packages
1379   -V, --version           display version information and exit
1380   -q, --quiet, --silent   do not print \`checking ...' messages
1381       --cache-file=FILE   cache test results in FILE [disabled]
1382   -C, --config-cache      alias for \`--cache-file=config.cache'
1383   -n, --no-create         do not create output files
1384       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1385
1386 Installation directories:
1387   --prefix=PREFIX         install architecture-independent files in PREFIX
1388                           [$ac_default_prefix]
1389   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1390                           [PREFIX]
1391
1392 By default, \`make install' will install all the files in
1393 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1394 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1395 for instance \`--prefix=\$HOME'.
1396
1397 For better control, use the options below.
1398
1399 Fine tuning of the installation directories:
1400   --bindir=DIR            user executables [EPREFIX/bin]
1401   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1402   --libexecdir=DIR        program executables [EPREFIX/libexec]
1403   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1404   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1405   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1406   --libdir=DIR            object code libraries [EPREFIX/lib]
1407   --includedir=DIR        C header files [PREFIX/include]
1408   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1409   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1410   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1411   --infodir=DIR           info documentation [DATAROOTDIR/info]
1412   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1413   --mandir=DIR            man documentation [DATAROOTDIR/man]
1414   --docdir=DIR            documentation root [DATAROOTDIR/doc/neard]
1415   --htmldir=DIR           html documentation [DOCDIR]
1416   --dvidir=DIR            dvi documentation [DOCDIR]
1417   --pdfdir=DIR            pdf documentation [DOCDIR]
1418   --psdir=DIR             ps documentation [DOCDIR]
1419 _ACEOF
1420
1421   cat <<\_ACEOF
1422
1423 Program names:
1424   --program-prefix=PREFIX            prepend PREFIX to installed program names
1425   --program-suffix=SUFFIX            append SUFFIX to installed program names
1426   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1427
1428 System types:
1429   --build=BUILD     configure for building on BUILD [guessed]
1430   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1431 _ACEOF
1432 fi
1433
1434 if test -n "$ac_init_help"; then
1435   case $ac_init_help in
1436      short | recursive ) echo "Configuration of neard 0.6:";;
1437    esac
1438   cat <<\_ACEOF
1439
1440 Optional Features:
1441   --disable-option-checking  ignore unrecognized --enable/--with options
1442   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1443   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1444   --enable-silent-rules          less verbose build output (undo: `make V=1')
1445   --disable-silent-rules         verbose build output (undo: `make V=0')
1446   --enable-maintainer-mode  enable make rules and dependencies not useful
1447                           (and sometimes confusing) to the casual installer
1448   --disable-dependency-tracking  speeds up one-time build
1449   --enable-dependency-tracking   do not reject slow dependency extractors
1450   --enable-static[=PKGS]  build static libraries [default=no]
1451   --enable-shared[=PKGS]  build shared libraries [default=yes]
1452   --enable-fast-install[=PKGS]
1453                           optimize for fast installation [default=yes]
1454   --disable-libtool-lock  avoid locking (might break parallel builds)
1455   --disable-optimization  disable code optimization through compiler
1456   --enable-debug          enable compiling with debugging information
1457   --enable-pie            enable position independent executables flag
1458   --enable-test           enable test/example scripts
1459   --enable-tools          enable testing tools
1460   --disable-nfctype1      disable NFC forum type 1 tags support
1461   --disable-nfctype2      disable NFC forum type 2 tags support
1462   --disable-nfctype3      disable NFC forum type 3 tags support
1463   --disable-nfctype4      disable NFC forum type 4 tags support
1464   --disable-p2p           disable NFC peer to peer support
1465
1466 Optional Packages:
1467   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1468   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1469   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1470                           both]
1471   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1472   --with-sysroot=DIR Search for dependent libraries within DIR
1473                         (or the compiler's sysroot if not specified).
1474
1475 Some influential environment variables:
1476   PKG_CONFIG  path to pkg-config utility
1477   PKG_CONFIG_PATH
1478               directories to add to pkg-config's search path
1479   PKG_CONFIG_LIBDIR
1480               path overriding pkg-config's built-in search path
1481   CC          C compiler command
1482   CFLAGS      C compiler flags
1483   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1484               nonstandard directory <lib dir>
1485   LIBS        libraries to pass to the linker, e.g. -l<library>
1486   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1487               you have headers in a nonstandard directory <include dir>
1488   CPP         C preprocessor
1489   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1490   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1491   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1492   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1493   LIBNL3_CFLAGS
1494               C compiler flags for LIBNL3, overriding pkg-config
1495   LIBNL3_LIBS linker flags for LIBNL3, overriding pkg-config
1496   LIBNL2_CFLAGS
1497               C compiler flags for LIBNL2, overriding pkg-config
1498   LIBNL2_LIBS linker flags for LIBNL2, overriding pkg-config
1499   LIBNL1_CFLAGS
1500               C compiler flags for LIBNL1, overriding pkg-config
1501   LIBNL1_LIBS linker flags for LIBNL1, overriding pkg-config
1502
1503 Use these variables to override the choices made by `configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1505
1506 Report bugs to the package provider.
1507 _ACEOF
1508 ac_status=$?
1509 fi
1510
1511 if test "$ac_init_help" = "recursive"; then
1512   # If there are subdirs, report their specific --help.
1513   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514     test -d "$ac_dir" ||
1515       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1516       continue
1517     ac_builddir=.
1518
1519 case "$ac_dir" in
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *)
1522   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1523   # A ".." for each directory in $ac_dir_suffix.
1524   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1525   case $ac_top_builddir_sub in
1526   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528   esac ;;
1529 esac
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1534
1535 case $srcdir in
1536   .)  # We are building in place.
1537     ac_srcdir=.
1538     ac_top_srcdir=$ac_top_builddir_sub
1539     ac_abs_top_srcdir=$ac_pwd ;;
1540   [\\/]* | ?:[\\/]* )  # Absolute name.
1541     ac_srcdir=$srcdir$ac_dir_suffix;
1542     ac_top_srcdir=$srcdir
1543     ac_abs_top_srcdir=$srcdir ;;
1544   *) # Relative name.
1545     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546     ac_top_srcdir=$ac_top_build_prefix$srcdir
1547     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 esac
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550
1551     cd "$ac_dir" || { ac_status=$?; continue; }
1552     # Check for guested configure.
1553     if test -f "$ac_srcdir/configure.gnu"; then
1554       echo &&
1555       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556     elif test -f "$ac_srcdir/configure"; then
1557       echo &&
1558       $SHELL "$ac_srcdir/configure" --help=recursive
1559     else
1560       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561     fi || ac_status=$?
1562     cd "$ac_pwd" || { ac_status=$?; break; }
1563   done
1564 fi
1565
1566 test -n "$ac_init_help" && exit $ac_status
1567 if $ac_init_version; then
1568   cat <<\_ACEOF
1569 neard configure 0.6
1570 generated by GNU Autoconf 2.69
1571
1572 Copyright (C) 2012 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1575 _ACEOF
1576   exit
1577 fi
1578
1579 ## ------------------------ ##
1580 ## Autoconf initialization. ##
1581 ## ------------------------ ##
1582
1583 # ac_fn_c_try_compile LINENO
1584 # --------------------------
1585 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_c_try_compile ()
1587 {
1588   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589   rm -f conftest.$ac_objext
1590   if { { ac_try="$ac_compile"
1591 case "(($ac_try" in
1592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593   *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597   (eval "$ac_compile") 2>conftest.err
1598   ac_status=$?
1599   if test -s conftest.err; then
1600     grep -v '^ *+' conftest.err >conftest.er1
1601     cat conftest.er1 >&5
1602     mv -f conftest.er1 conftest.err
1603   fi
1604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605   test $ac_status = 0; } && {
1606          test -z "$ac_c_werror_flag" ||
1607          test ! -s conftest.err
1608        } && test -s conftest.$ac_objext; then :
1609   ac_retval=0
1610 else
1611   $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1613
1614         ac_retval=1
1615 fi
1616   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617   as_fn_set_status $ac_retval
1618
1619 } # ac_fn_c_try_compile
1620
1621 # ac_fn_c_try_link LINENO
1622 # -----------------------
1623 # Try to link conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_link ()
1625 {
1626   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627   rm -f conftest.$ac_objext conftest$ac_exeext
1628   if { { ac_try="$ac_link"
1629 case "(($ac_try" in
1630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631   *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635   (eval "$ac_link") 2>conftest.err
1636   ac_status=$?
1637   if test -s conftest.err; then
1638     grep -v '^ *+' conftest.err >conftest.er1
1639     cat conftest.er1 >&5
1640     mv -f conftest.er1 conftest.err
1641   fi
1642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643   test $ac_status = 0; } && {
1644          test -z "$ac_c_werror_flag" ||
1645          test ! -s conftest.err
1646        } && test -s conftest$ac_exeext && {
1647          test "$cross_compiling" = yes ||
1648          test -x conftest$ac_exeext
1649        }; then :
1650   ac_retval=0
1651 else
1652   $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655         ac_retval=1
1656 fi
1657   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1658   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1659   # interfere with the next link command; also delete a directory that is
1660   # left behind by Apple's compiler.  We do this before executing the actions.
1661   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1662   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663   as_fn_set_status $ac_retval
1664
1665 } # ac_fn_c_try_link
1666
1667 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1668 # -------------------------------------------------------
1669 # Tests whether HEADER exists and can be compiled using the include files in
1670 # INCLUDES, setting the cache variable VAR accordingly.
1671 ac_fn_c_check_header_compile ()
1672 {
1673   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677   $as_echo_n "(cached) " >&6
1678 else
1679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h.  */
1681 $4
1682 #include <$2>
1683 _ACEOF
1684 if ac_fn_c_try_compile "$LINENO"; then :
1685   eval "$3=yes"
1686 else
1687   eval "$3=no"
1688 fi
1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1690 fi
1691 eval ac_res=\$$3
1692                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693 $as_echo "$ac_res" >&6; }
1694   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695
1696 } # ac_fn_c_check_header_compile
1697
1698 # ac_fn_c_try_cpp LINENO
1699 # ----------------------
1700 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1701 ac_fn_c_try_cpp ()
1702 {
1703   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704   if { { ac_try="$ac_cpp conftest.$ac_ext"
1705 case "(($ac_try" in
1706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707   *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1712   ac_status=$?
1713   if test -s conftest.err; then
1714     grep -v '^ *+' conftest.err >conftest.er1
1715     cat conftest.er1 >&5
1716     mv -f conftest.er1 conftest.err
1717   fi
1718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719   test $ac_status = 0; } > conftest.i && {
1720          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1721          test ! -s conftest.err
1722        }; then :
1723   ac_retval=0
1724 else
1725   $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728     ac_retval=1
1729 fi
1730   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731   as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_cpp
1734
1735 # ac_fn_c_try_run LINENO
1736 # ----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738 # that executables *can* be run.
1739 ac_fn_c_try_run ()
1740 {
1741   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742   if { { ac_try="$ac_link"
1743 case "(($ac_try" in
1744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745   *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749   (eval "$ac_link") 2>&5
1750   ac_status=$?
1751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1753   { { case "(($ac_try" in
1754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755   *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759   (eval "$ac_try") 2>&5
1760   ac_status=$?
1761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762   test $ac_status = 0; }; }; then :
1763   ac_retval=0
1764 else
1765   $as_echo "$as_me: program exited with status $ac_status" >&5
1766        $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769        ac_retval=$ac_status
1770 fi
1771   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773   as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_run
1776
1777 # ac_fn_c_check_func LINENO FUNC VAR
1778 # ----------------------------------
1779 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1780 ac_fn_c_check_func ()
1781 {
1782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \${$3+:} false; then :
1786   $as_echo_n "(cached) " >&6
1787 else
1788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h.  */
1790 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1792 #define $2 innocuous_$2
1793
1794 /* System header to define __stub macros and hopefully few prototypes,
1795     which can conflict with char $2 (); below.
1796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1797     <limits.h> exists even on freestanding compilers.  */
1798
1799 #ifdef __STDC__
1800 # include <limits.h>
1801 #else
1802 # include <assert.h>
1803 #endif
1804
1805 #undef $2
1806
1807 /* Override any GCC internal prototype to avoid an error.
1808    Use char because int might match the return type of a GCC
1809    builtin and then its argument prototype would still apply.  */
1810 #ifdef __cplusplus
1811 extern "C"
1812 #endif
1813 char $2 ();
1814 /* The GNU C library defines this for functions which it implements
1815     to always fail with ENOSYS.  Some functions are actually named
1816     something starting with __ and the normal name is an alias.  */
1817 #if defined __stub_$2 || defined __stub___$2
1818 choke me
1819 #endif
1820
1821 int
1822 main ()
1823 {
1824 return $2 ();
1825   ;
1826   return 0;
1827 }
1828 _ACEOF
1829 if ac_fn_c_try_link "$LINENO"; then :
1830   eval "$3=yes"
1831 else
1832   eval "$3=no"
1833 fi
1834 rm -f core conftest.err conftest.$ac_objext \
1835     conftest$ac_exeext conftest.$ac_ext
1836 fi
1837 eval ac_res=\$$3
1838                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841
1842 } # ac_fn_c_check_func
1843 cat >config.log <<_ACEOF
1844 This file contains any messages produced by compilers while
1845 running configure, to aid debugging if configure makes a mistake.
1846
1847 It was created by neard $as_me 0.6, which was
1848 generated by GNU Autoconf 2.69.  Invocation command line was
1849
1850   $ $0 $@
1851
1852 _ACEOF
1853 exec 5>>config.log
1854 {
1855 cat <<_ASUNAME
1856 ## --------- ##
1857 ## Platform. ##
1858 ## --------- ##
1859
1860 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1861 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1862 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1863 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1864 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1865
1866 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1867 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1868
1869 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1870 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1871 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1872 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1873 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1874 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1875 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1876
1877 _ASUNAME
1878
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 for as_dir in $PATH
1881 do
1882   IFS=$as_save_IFS
1883   test -z "$as_dir" && as_dir=.
1884     $as_echo "PATH: $as_dir"
1885   done
1886 IFS=$as_save_IFS
1887
1888 } >&5
1889
1890 cat >&5 <<_ACEOF
1891
1892
1893 ## ----------- ##
1894 ## Core tests. ##
1895 ## ----------- ##
1896
1897 _ACEOF
1898
1899
1900 # Keep a trace of the command line.
1901 # Strip out --no-create and --no-recursion so they do not pile up.
1902 # Strip out --silent because we don't want to record it for future runs.
1903 # Also quote any args containing shell meta-characters.
1904 # Make two passes to allow for proper duplicate-argument suppression.
1905 ac_configure_args=
1906 ac_configure_args0=
1907 ac_configure_args1=
1908 ac_must_keep_next=false
1909 for ac_pass in 1 2
1910 do
1911   for ac_arg
1912   do
1913     case $ac_arg in
1914     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1915     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1916     | -silent | --silent | --silen | --sile | --sil)
1917       continue ;;
1918     *\'*)
1919       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1920     esac
1921     case $ac_pass in
1922     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1923     2)
1924       as_fn_append ac_configure_args1 " '$ac_arg'"
1925       if test $ac_must_keep_next = true; then
1926         ac_must_keep_next=false # Got value, back to normal.
1927       else
1928         case $ac_arg in
1929           *=* | --config-cache | -C | -disable-* | --disable-* \
1930           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1931           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1932           | -with-* | --with-* | -without-* | --without-* | --x)
1933             case "$ac_configure_args0 " in
1934               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1935             esac
1936             ;;
1937           -* ) ac_must_keep_next=true ;;
1938         esac
1939       fi
1940       as_fn_append ac_configure_args " '$ac_arg'"
1941       ;;
1942     esac
1943   done
1944 done
1945 { ac_configure_args0=; unset ac_configure_args0;}
1946 { ac_configure_args1=; unset ac_configure_args1;}
1947
1948 # When interrupted or exit'd, cleanup temporary files, and complete
1949 # config.log.  We remove comments because anyway the quotes in there
1950 # would cause problems or look ugly.
1951 # WARNING: Use '\'' to represent an apostrophe within the trap.
1952 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1953 trap 'exit_status=$?
1954   # Save into config.log some information that might help in debugging.
1955   {
1956     echo
1957
1958     $as_echo "## ---------------- ##
1959 ## Cache variables. ##
1960 ## ---------------- ##"
1961     echo
1962     # The following way of writing the cache mishandles newlines in values,
1963 (
1964   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1965     eval ac_val=\$$ac_var
1966     case $ac_val in #(
1967     *${as_nl}*)
1968       case $ac_var in #(
1969       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1970 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1971       esac
1972       case $ac_var in #(
1973       _ | IFS | as_nl) ;; #(
1974       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1975       *) { eval $ac_var=; unset $ac_var;} ;;
1976       esac ;;
1977     esac
1978   done
1979   (set) 2>&1 |
1980     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1981     *${as_nl}ac_space=\ *)
1982       sed -n \
1983         "s/'\''/'\''\\\\'\'''\''/g;
1984           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1985       ;; #(
1986     *)
1987       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1988       ;;
1989     esac |
1990     sort
1991 )
1992     echo
1993
1994     $as_echo "## ----------------- ##
1995 ## Output variables. ##
1996 ## ----------------- ##"
1997     echo
1998     for ac_var in $ac_subst_vars
1999     do
2000       eval ac_val=\$$ac_var
2001       case $ac_val in
2002       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2003       esac
2004       $as_echo "$ac_var='\''$ac_val'\''"
2005     done | sort
2006     echo
2007
2008     if test -n "$ac_subst_files"; then
2009       $as_echo "## ------------------- ##
2010 ## File substitutions. ##
2011 ## ------------------- ##"
2012       echo
2013       for ac_var in $ac_subst_files
2014       do
2015         eval ac_val=\$$ac_var
2016         case $ac_val in
2017         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2018         esac
2019         $as_echo "$ac_var='\''$ac_val'\''"
2020       done | sort
2021       echo
2022     fi
2023
2024     if test -s confdefs.h; then
2025       $as_echo "## ----------- ##
2026 ## confdefs.h. ##
2027 ## ----------- ##"
2028       echo
2029       cat confdefs.h
2030       echo
2031     fi
2032     test "$ac_signal" != 0 &&
2033       $as_echo "$as_me: caught signal $ac_signal"
2034     $as_echo "$as_me: exit $exit_status"
2035   } >&5
2036   rm -f core *.core core.conftest.* &&
2037     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2038     exit $exit_status
2039 ' 0
2040 for ac_signal in 1 2 13 15; do
2041   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2042 done
2043 ac_signal=0
2044
2045 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2046 rm -f -r conftest* confdefs.h
2047
2048 $as_echo "/* confdefs.h */" > confdefs.h
2049
2050 # Predefined preprocessor variables.
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_NAME "$PACKAGE_NAME"
2054 _ACEOF
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2058 _ACEOF
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2062 _ACEOF
2063
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_STRING "$PACKAGE_STRING"
2066 _ACEOF
2067
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2070 _ACEOF
2071
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_URL "$PACKAGE_URL"
2074 _ACEOF
2075
2076
2077 # Let the site file select an alternate cache file if it wants to.
2078 # Prefer an explicitly selected file to automatically selected ones.
2079 ac_site_file1=NONE
2080 ac_site_file2=NONE
2081 if test -n "$CONFIG_SITE"; then
2082   # We do not want a PATH search for config.site.
2083   case $CONFIG_SITE in #((
2084     -*)  ac_site_file1=./$CONFIG_SITE;;
2085     */*) ac_site_file1=$CONFIG_SITE;;
2086     *)   ac_site_file1=./$CONFIG_SITE;;
2087   esac
2088 elif test "x$prefix" != xNONE; then
2089   ac_site_file1=$prefix/share/config.site
2090   ac_site_file2=$prefix/etc/config.site
2091 else
2092   ac_site_file1=$ac_default_prefix/share/config.site
2093   ac_site_file2=$ac_default_prefix/etc/config.site
2094 fi
2095 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2096 do
2097   test "x$ac_site_file" = xNONE && continue
2098   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2099     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2100 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2101     sed 's/^/| /' "$ac_site_file" >&5
2102     . "$ac_site_file" \
2103       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2105 as_fn_error $? "failed to load site script $ac_site_file
2106 See \`config.log' for more details" "$LINENO" 5; }
2107   fi
2108 done
2109
2110 if test -r "$cache_file"; then
2111   # Some versions of bash will fail to source /dev/null (special files
2112   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2113   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2114     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2115 $as_echo "$as_me: loading cache $cache_file" >&6;}
2116     case $cache_file in
2117       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2118       *)                      . "./$cache_file";;
2119     esac
2120   fi
2121 else
2122   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2123 $as_echo "$as_me: creating cache $cache_file" >&6;}
2124   >$cache_file
2125 fi
2126
2127 # Check that the precious variables saved in the cache have kept the same
2128 # value.
2129 ac_cache_corrupted=false
2130 for ac_var in $ac_precious_vars; do
2131   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2132   eval ac_new_set=\$ac_env_${ac_var}_set
2133   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2134   eval ac_new_val=\$ac_env_${ac_var}_value
2135   case $ac_old_set,$ac_new_set in
2136     set,)
2137       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2138 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2139       ac_cache_corrupted=: ;;
2140     ,set)
2141       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2142 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2143       ac_cache_corrupted=: ;;
2144     ,);;
2145     *)
2146       if test "x$ac_old_val" != "x$ac_new_val"; then
2147         # differences in whitespace do not lead to failure.
2148         ac_old_val_w=`echo x $ac_old_val`
2149         ac_new_val_w=`echo x $ac_new_val`
2150         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2151           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2152 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2153           ac_cache_corrupted=:
2154         else
2155           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2156 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2157           eval $ac_var=\$ac_old_val
2158         fi
2159         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2160 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2161         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2162 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2163       fi;;
2164   esac
2165   # Pass precious variables to config.status.
2166   if test "$ac_new_set" = set; then
2167     case $ac_new_val in
2168     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2169     *) ac_arg=$ac_var=$ac_new_val ;;
2170     esac
2171     case " $ac_configure_args " in
2172       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2173       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2174     esac
2175   fi
2176 done
2177 if $ac_cache_corrupted; then
2178   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2180   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2181 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2182   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2183 fi
2184 ## -------------------- ##
2185 ## Main body of script. ##
2186 ## -------------------- ##
2187
2188 ac_ext=c
2189 ac_cpp='$CPP $CPPFLAGS'
2190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2193
2194
2195
2196 am__api_version='1.11'
2197
2198 ac_aux_dir=
2199 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2200   if test -f "$ac_dir/install-sh"; then
2201     ac_aux_dir=$ac_dir
2202     ac_install_sh="$ac_aux_dir/install-sh -c"
2203     break
2204   elif test -f "$ac_dir/install.sh"; then
2205     ac_aux_dir=$ac_dir
2206     ac_install_sh="$ac_aux_dir/install.sh -c"
2207     break
2208   elif test -f "$ac_dir/shtool"; then
2209     ac_aux_dir=$ac_dir
2210     ac_install_sh="$ac_aux_dir/shtool install -c"
2211     break
2212   fi
2213 done
2214 if test -z "$ac_aux_dir"; then
2215   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2216 fi
2217
2218 # These three variables are undocumented and unsupported,
2219 # and are intended to be withdrawn in a future Autoconf release.
2220 # They can cause serious problems if a builder's source tree is in a directory
2221 # whose full name contains unusual characters.
2222 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2223 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2224 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2225
2226
2227 # Find a good install program.  We prefer a C program (faster),
2228 # so one script is as good as another.  But avoid the broken or
2229 # incompatible versions:
2230 # SysV /etc/install, /usr/sbin/install
2231 # SunOS /usr/etc/install
2232 # IRIX /sbin/install
2233 # AIX /bin/install
2234 # AmigaOS /C/install, which installs bootblocks on floppy discs
2235 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2236 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2237 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2238 # OS/2's system install, which has a completely different semantic
2239 # ./install, which can be erroneously created by make from ./install.sh.
2240 # Reject install programs that cannot install multiple files.
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2242 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2243 if test -z "$INSTALL"; then
2244 if ${ac_cv_path_install+:} false; then :
2245   $as_echo_n "(cached) " >&6
2246 else
2247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 for as_dir in $PATH
2249 do
2250   IFS=$as_save_IFS
2251   test -z "$as_dir" && as_dir=.
2252     # Account for people who put trailing slashes in PATH elements.
2253 case $as_dir/ in #((
2254   ./ | .// | /[cC]/* | \
2255   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2256   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2257   /usr/ucb/* ) ;;
2258   *)
2259     # OSF1 and SCO ODT 3.0 have their own names for install.
2260     # Don't use installbsd from OSF since it installs stuff as root
2261     # by default.
2262     for ac_prog in ginstall scoinst install; do
2263       for ac_exec_ext in '' $ac_executable_extensions; do
2264         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2265           if test $ac_prog = install &&
2266             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2267             # AIX install.  It has an incompatible calling convention.
2268             :
2269           elif test $ac_prog = install &&
2270             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2271             # program-specific install script used by HP pwplus--don't use.
2272             :
2273           else
2274             rm -rf conftest.one conftest.two conftest.dir
2275             echo one > conftest.one
2276             echo two > conftest.two
2277             mkdir conftest.dir
2278             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2279               test -s conftest.one && test -s conftest.two &&
2280               test -s conftest.dir/conftest.one &&
2281               test -s conftest.dir/conftest.two
2282             then
2283               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2284               break 3
2285             fi
2286           fi
2287         fi
2288       done
2289     done
2290     ;;
2291 esac
2292
2293   done
2294 IFS=$as_save_IFS
2295
2296 rm -rf conftest.one conftest.two conftest.dir
2297
2298 fi
2299   if test "${ac_cv_path_install+set}" = set; then
2300     INSTALL=$ac_cv_path_install
2301   else
2302     # As a last resort, use the slow shell script.  Don't cache a
2303     # value for INSTALL within a source directory, because that will
2304     # break other packages using the cache if that directory is
2305     # removed, or if the value is a relative name.
2306     INSTALL=$ac_install_sh
2307   fi
2308 fi
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2310 $as_echo "$INSTALL" >&6; }
2311
2312 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2313 # It thinks the first close brace ends the variable substitution.
2314 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2315
2316 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2317
2318 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2319
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2321 $as_echo_n "checking whether build environment is sane... " >&6; }
2322 # Just in case
2323 sleep 1
2324 echo timestamp > conftest.file
2325 # Reject unsafe characters in $srcdir or the absolute working directory
2326 # name.  Accept space and tab only in the latter.
2327 am_lf='
2328 '
2329 case `pwd` in
2330   *[\\\"\#\$\&\'\`$am_lf]*)
2331     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2332 esac
2333 case $srcdir in
2334   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2335     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2336 esac
2337
2338 # Do `set' in a subshell so we don't clobber the current shell's
2339 # arguments.  Must try -L first in case configure is actually a
2340 # symlink; some systems play weird games with the mod time of symlinks
2341 # (eg FreeBSD returns the mod time of the symlink's containing
2342 # directory).
2343 if (
2344    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2345    if test "$*" = "X"; then
2346       # -L didn't work.
2347       set X `ls -t "$srcdir/configure" conftest.file`
2348    fi
2349    rm -f conftest.file
2350    if test "$*" != "X $srcdir/configure conftest.file" \
2351       && test "$*" != "X conftest.file $srcdir/configure"; then
2352
2353       # If neither matched, then we have a broken ls.  This can happen
2354       # if, for instance, CONFIG_SHELL is bash and it inherits a
2355       # broken ls alias from the environment.  This has actually
2356       # happened.  Such a system could not be considered "sane".
2357       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2358 alias in your environment" "$LINENO" 5
2359    fi
2360
2361    test "$2" = conftest.file
2362    )
2363 then
2364    # Ok.
2365    :
2366 else
2367    as_fn_error $? "newly created file is older than distributed files!
2368 Check your system clock" "$LINENO" 5
2369 fi
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2371 $as_echo "yes" >&6; }
2372 test "$program_prefix" != NONE &&
2373   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2374 # Use a double $ so make ignores it.
2375 test "$program_suffix" != NONE &&
2376   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2377 # Double any \ or $.
2378 # By default was `s,x,x', remove it if useless.
2379 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2380 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2381
2382 # expand $ac_aux_dir to an absolute path
2383 am_aux_dir=`cd $ac_aux_dir && pwd`
2384
2385 if test x"${MISSING+set}" != xset; then
2386   case $am_aux_dir in
2387   *\ * | *\     *)
2388     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2389   *)
2390     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2391   esac
2392 fi
2393 # Use eval to expand $SHELL
2394 if eval "$MISSING --run true"; then
2395   am_missing_run="$MISSING --run "
2396 else
2397   am_missing_run=
2398   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2399 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2400 fi
2401
2402 if test x"${install_sh}" != xset; then
2403   case $am_aux_dir in
2404   *\ * | *\     *)
2405     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2406   *)
2407     install_sh="\${SHELL} $am_aux_dir/install-sh"
2408   esac
2409 fi
2410
2411 # Installed binaries are usually stripped using `strip' when the user
2412 # run `make install-strip'.  However `strip' might not be the right
2413 # tool to use in cross-compilation environments, therefore Automake
2414 # will honor the `STRIP' environment variable to overrule this program.
2415 if test "$cross_compiling" != no; then
2416   if test -n "$ac_tool_prefix"; then
2417   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2418 set dummy ${ac_tool_prefix}strip; ac_word=$2
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2420 $as_echo_n "checking for $ac_word... " >&6; }
2421 if ${ac_cv_prog_STRIP+:} false; then :
2422   $as_echo_n "(cached) " >&6
2423 else
2424   if test -n "$STRIP"; then
2425   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2426 else
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 for as_dir in $PATH
2429 do
2430   IFS=$as_save_IFS
2431   test -z "$as_dir" && as_dir=.
2432     for ac_exec_ext in '' $ac_executable_extensions; do
2433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2434     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2436     break 2
2437   fi
2438 done
2439   done
2440 IFS=$as_save_IFS
2441
2442 fi
2443 fi
2444 STRIP=$ac_cv_prog_STRIP
2445 if test -n "$STRIP"; then
2446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2447 $as_echo "$STRIP" >&6; }
2448 else
2449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2450 $as_echo "no" >&6; }
2451 fi
2452
2453
2454 fi
2455 if test -z "$ac_cv_prog_STRIP"; then
2456   ac_ct_STRIP=$STRIP
2457   # Extract the first word of "strip", so it can be a program name with args.
2458 set dummy strip; ac_word=$2
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2460 $as_echo_n "checking for $ac_word... " >&6; }
2461 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2462   $as_echo_n "(cached) " >&6
2463 else
2464   if test -n "$ac_ct_STRIP"; then
2465   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470   IFS=$as_save_IFS
2471   test -z "$as_dir" && as_dir=.
2472     for ac_exec_ext in '' $ac_executable_extensions; do
2473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2474     ac_cv_prog_ac_ct_STRIP="strip"
2475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2476     break 2
2477   fi
2478 done
2479   done
2480 IFS=$as_save_IFS
2481
2482 fi
2483 fi
2484 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2485 if test -n "$ac_ct_STRIP"; then
2486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2487 $as_echo "$ac_ct_STRIP" >&6; }
2488 else
2489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2490 $as_echo "no" >&6; }
2491 fi
2492
2493   if test "x$ac_ct_STRIP" = x; then
2494     STRIP=":"
2495   else
2496     case $cross_compiling:$ac_tool_warned in
2497 yes:)
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2500 ac_tool_warned=yes ;;
2501 esac
2502     STRIP=$ac_ct_STRIP
2503   fi
2504 else
2505   STRIP="$ac_cv_prog_STRIP"
2506 fi
2507
2508 fi
2509 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2510
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2512 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2513 if test -z "$MKDIR_P"; then
2514   if ${ac_cv_path_mkdir+:} false; then :
2515   $as_echo_n "(cached) " >&6
2516 else
2517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2519 do
2520   IFS=$as_save_IFS
2521   test -z "$as_dir" && as_dir=.
2522     for ac_prog in mkdir gmkdir; do
2523          for ac_exec_ext in '' $ac_executable_extensions; do
2524            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2525            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2526              'mkdir (GNU coreutils) '* | \
2527              'mkdir (coreutils) '* | \
2528              'mkdir (fileutils) '4.1*)
2529                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2530                break 3;;
2531            esac
2532          done
2533        done
2534   done
2535 IFS=$as_save_IFS
2536
2537 fi
2538
2539   test -d ./--version && rmdir ./--version
2540   if test "${ac_cv_path_mkdir+set}" = set; then
2541     MKDIR_P="$ac_cv_path_mkdir -p"
2542   else
2543     # As a last resort, use the slow shell script.  Don't cache a
2544     # value for MKDIR_P within a source directory, because that will
2545     # break other packages using the cache if that directory is
2546     # removed, or if the value is a relative name.
2547     MKDIR_P="$ac_install_sh -d"
2548   fi
2549 fi
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2551 $as_echo "$MKDIR_P" >&6; }
2552
2553 mkdir_p="$MKDIR_P"
2554 case $mkdir_p in
2555   [\\/$]* | ?:[\\/]*) ;;
2556   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2557 esac
2558
2559 for ac_prog in gawk mawk nawk awk
2560 do
2561   # Extract the first word of "$ac_prog", so it can be a program name with args.
2562 set dummy $ac_prog; ac_word=$2
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if ${ac_cv_prog_AWK+:} false; then :
2566   $as_echo_n "(cached) " >&6
2567 else
2568   if test -n "$AWK"; then
2569   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2570 else
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574   IFS=$as_save_IFS
2575   test -z "$as_dir" && as_dir=.
2576     for ac_exec_ext in '' $ac_executable_extensions; do
2577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578     ac_cv_prog_AWK="$ac_prog"
2579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580     break 2
2581   fi
2582 done
2583   done
2584 IFS=$as_save_IFS
2585
2586 fi
2587 fi
2588 AWK=$ac_cv_prog_AWK
2589 if test -n "$AWK"; then
2590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2591 $as_echo "$AWK" >&6; }
2592 else
2593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 $as_echo "no" >&6; }
2595 fi
2596
2597
2598   test -n "$AWK" && break
2599 done
2600
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2602 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2603 set x ${MAKE-make}
2604 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2605 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2606   $as_echo_n "(cached) " >&6
2607 else
2608   cat >conftest.make <<\_ACEOF
2609 SHELL = /bin/sh
2610 all:
2611         @echo '@@@%%%=$(MAKE)=@@@%%%'
2612 _ACEOF
2613 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2614 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2615   *@@@%%%=?*=@@@%%%*)
2616     eval ac_cv_prog_make_${ac_make}_set=yes;;
2617   *)
2618     eval ac_cv_prog_make_${ac_make}_set=no;;
2619 esac
2620 rm -f conftest.make
2621 fi
2622 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2624 $as_echo "yes" >&6; }
2625   SET_MAKE=
2626 else
2627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2628 $as_echo "no" >&6; }
2629   SET_MAKE="MAKE=${MAKE-make}"
2630 fi
2631
2632 rm -rf .tst 2>/dev/null
2633 mkdir .tst 2>/dev/null
2634 if test -d .tst; then
2635   am__leading_dot=.
2636 else
2637   am__leading_dot=_
2638 fi
2639 rmdir .tst 2>/dev/null
2640
2641 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2642   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2643   # is not polluted with repeated "-I."
2644   am__isrc=' -I$(srcdir)'
2645   # test to see if srcdir already configured
2646   if test -f $srcdir/config.status; then
2647     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2648   fi
2649 fi
2650
2651 # test whether we have cygpath
2652 if test -z "$CYGPATH_W"; then
2653   if (cygpath --version) >/dev/null 2>/dev/null; then
2654     CYGPATH_W='cygpath -w'
2655   else
2656     CYGPATH_W=echo
2657   fi
2658 fi
2659
2660
2661 # Define the identity of the package.
2662  PACKAGE='neard'
2663  VERSION='0.6'
2664
2665
2666 cat >>confdefs.h <<_ACEOF
2667 #define PACKAGE "$PACKAGE"
2668 _ACEOF
2669
2670
2671 cat >>confdefs.h <<_ACEOF
2672 #define VERSION "$VERSION"
2673 _ACEOF
2674
2675 # Some tools Automake needs.
2676
2677 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2678
2679
2680 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2681
2682
2683 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2684
2685
2686 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2687
2688
2689 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2690
2691 # We need awk for the "check" target.  The system "awk" is bad on
2692 # some platforms.
2693 # Always define AMTAR for backward compatibility.  Yes, it's still used
2694 # in the wild :-(  We should find a proper way to deprecate it ...
2695 AMTAR='$${TAR-tar}'
2696
2697 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2698
2699
2700
2701
2702
2703 ac_config_headers="$ac_config_headers config.h"
2704
2705
2706 # Check whether --enable-silent-rules was given.
2707 if test "${enable_silent_rules+set}" = set; then :
2708   enableval=$enable_silent_rules;
2709 fi
2710
2711 case $enable_silent_rules in
2712 yes) AM_DEFAULT_VERBOSITY=0;;
2713 no)  AM_DEFAULT_VERBOSITY=1;;
2714 *)   AM_DEFAULT_VERBOSITY=0;;
2715 esac
2716 am_make=${MAKE-make}
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2718 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2719 if ${am_cv_make_support_nested_variables+:} false; then :
2720   $as_echo_n "(cached) " >&6
2721 else
2722   if $as_echo 'TRUE=$(BAR$(V))
2723 BAR0=false
2724 BAR1=true
2725 V=1
2726 am__doit:
2727         @$(TRUE)
2728 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2729   am_cv_make_support_nested_variables=yes
2730 else
2731   am_cv_make_support_nested_variables=no
2732 fi
2733 fi
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2735 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2736 if test $am_cv_make_support_nested_variables = yes; then
2737     AM_V='$(V)'
2738   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2739 else
2740   AM_V=$AM_DEFAULT_VERBOSITY
2741   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2742 fi
2743 AM_BACKSLASH='\'
2744
2745
2746
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2748 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2749     # Check whether --enable-maintainer-mode was given.
2750 if test "${enable_maintainer_mode+set}" = set; then :
2751   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2752 else
2753   USE_MAINTAINER_MODE=no
2754 fi
2755
2756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2757 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2758    if test $USE_MAINTAINER_MODE = yes; then
2759   MAINTAINER_MODE_TRUE=
2760   MAINTAINER_MODE_FALSE='#'
2761 else
2762   MAINTAINER_MODE_TRUE='#'
2763   MAINTAINER_MODE_FALSE=
2764 fi
2765
2766   MAINT=$MAINTAINER_MODE_TRUE
2767
2768
2769
2770
2771
2772 if (test "${libdir}" = '${exec_prefix}/lib'); then
2773         libdir="${prefix}/lib"
2774 fi
2775
2776 plugindir="${libdir}/near/plugins"
2777
2778
2779
2780
2781
2782
2783
2784
2785 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2786         if test -n "$ac_tool_prefix"; then
2787   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2788 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if ${ac_cv_path_PKG_CONFIG+:} false; then :
2792   $as_echo_n "(cached) " >&6
2793 else
2794   case $PKG_CONFIG in
2795   [\\/]* | ?:[\\/]*)
2796   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2797   ;;
2798   *)
2799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2801 do
2802   IFS=$as_save_IFS
2803   test -z "$as_dir" && as_dir=.
2804     for ac_exec_ext in '' $ac_executable_extensions; do
2805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2806     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808     break 2
2809   fi
2810 done
2811   done
2812 IFS=$as_save_IFS
2813
2814   ;;
2815 esac
2816 fi
2817 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2818 if test -n "$PKG_CONFIG"; then
2819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
2820 $as_echo "$PKG_CONFIG" >&6; }
2821 else
2822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2824 fi
2825
2826
2827 fi
2828 if test -z "$ac_cv_path_PKG_CONFIG"; then
2829   ac_pt_PKG_CONFIG=$PKG_CONFIG
2830   # Extract the first word of "pkg-config", so it can be a program name with args.
2831 set dummy pkg-config; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
2835   $as_echo_n "(cached) " >&6
2836 else
2837   case $ac_pt_PKG_CONFIG in
2838   [\\/]* | ?:[\\/]*)
2839   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2840   ;;
2841   *)
2842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2844 do
2845   IFS=$as_save_IFS
2846   test -z "$as_dir" && as_dir=.
2847     for ac_exec_ext in '' $ac_executable_extensions; do
2848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2849     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851     break 2
2852   fi
2853 done
2854   done
2855 IFS=$as_save_IFS
2856
2857   ;;
2858 esac
2859 fi
2860 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2861 if test -n "$ac_pt_PKG_CONFIG"; then
2862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
2863 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
2864 else
2865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2867 fi
2868
2869   if test "x$ac_pt_PKG_CONFIG" = x; then
2870     PKG_CONFIG=""
2871   else
2872     case $cross_compiling:$ac_tool_warned in
2873 yes:)
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2876 ac_tool_warned=yes ;;
2877 esac
2878     PKG_CONFIG=$ac_pt_PKG_CONFIG
2879   fi
2880 else
2881   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2882 fi
2883
2884 fi
2885 if test -n "$PKG_CONFIG"; then
2886         _pkg_min_version=0.9.0
2887         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
2888 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
2889         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2890                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2891 $as_echo "yes" >&6; }
2892         else
2893                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2895                 PKG_CONFIG=""
2896         fi
2897 fi
2898
2899
2900         if (test "${CFLAGS}" = ""); then
2901                 CFLAGS="-Wall -O2 -D_FORTIFY_SOURCE=2"
2902         fi
2903         if (test "$USE_MAINTAINER_MODE" = "yes"); then
2904                 CFLAGS+=" -Werror -Wextra"
2905                 CFLAGS+=" -Wno-unused-parameter"
2906                 CFLAGS+=" -Wno-missing-field-initializers"
2907                 CFLAGS+=" -Wdeclaration-after-statement"
2908                 CFLAGS+=" -Wmissing-declarations"
2909                 CFLAGS+=" -Wredundant-decls"
2910                 CFLAGS+=" -Wcast-align"
2911                 CFLAGS+=" -DG_DISABLE_DEPRECATED"
2912         fi
2913
2914
2915 ac_ext=c
2916 ac_cpp='$CPP $CPPFLAGS'
2917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920
2921
2922 ac_ext=c
2923 ac_cpp='$CPP $CPPFLAGS'
2924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2927 if test -n "$ac_tool_prefix"; then
2928   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2929 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if ${ac_cv_prog_CC+:} false; then :
2933   $as_echo_n "(cached) " >&6
2934 else
2935   if test -n "$CC"; then
2936   ac_cv_prog_CC="$CC" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941   IFS=$as_save_IFS
2942   test -z "$as_dir" && as_dir=.
2943     for ac_exec_ext in '' $ac_executable_extensions; do
2944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947     break 2
2948   fi
2949 done
2950   done
2951 IFS=$as_save_IFS
2952
2953 fi
2954 fi
2955 CC=$ac_cv_prog_CC
2956 if test -n "$CC"; then
2957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958 $as_echo "$CC" >&6; }
2959 else
2960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2962 fi
2963
2964
2965 fi
2966 if test -z "$ac_cv_prog_CC"; then
2967   ac_ct_CC=$CC
2968   # Extract the first word of "gcc", so it can be a program name with args.
2969 set dummy gcc; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2973   $as_echo_n "(cached) " >&6
2974 else
2975   if test -n "$ac_ct_CC"; then
2976   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981   IFS=$as_save_IFS
2982   test -z "$as_dir" && as_dir=.
2983     for ac_exec_ext in '' $ac_executable_extensions; do
2984   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985     ac_cv_prog_ac_ct_CC="gcc"
2986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987     break 2
2988   fi
2989 done
2990   done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2996 if test -n "$ac_ct_CC"; then
2997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2998 $as_echo "$ac_ct_CC" >&6; }
2999 else
3000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 fi
3003
3004   if test "x$ac_ct_CC" = x; then
3005     CC=""
3006   else
3007     case $cross_compiling:$ac_tool_warned in
3008 yes:)
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3011 ac_tool_warned=yes ;;
3012 esac
3013     CC=$ac_ct_CC
3014   fi
3015 else
3016   CC="$ac_cv_prog_CC"
3017 fi
3018
3019 if test -z "$CC"; then
3020           if test -n "$ac_tool_prefix"; then
3021     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3022 set dummy ${ac_tool_prefix}cc; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if ${ac_cv_prog_CC+:} false; then :
3026   $as_echo_n "(cached) " >&6
3027 else
3028   if test -n "$CC"; then
3029   ac_cv_prog_CC="$CC" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034   IFS=$as_save_IFS
3035   test -z "$as_dir" && as_dir=.
3036     for ac_exec_ext in '' $ac_executable_extensions; do
3037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038     ac_cv_prog_CC="${ac_tool_prefix}cc"
3039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040     break 2
3041   fi
3042 done
3043   done
3044 IFS=$as_save_IFS
3045
3046 fi
3047 fi
3048 CC=$ac_cv_prog_CC
3049 if test -n "$CC"; then
3050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3051 $as_echo "$CC" >&6; }
3052 else
3053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3055 fi
3056
3057
3058   fi
3059 fi
3060 if test -z "$CC"; then
3061   # Extract the first word of "cc", so it can be a program name with args.
3062 set dummy cc; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_CC+:} false; then :
3066   $as_echo_n "(cached) " >&6
3067 else
3068   if test -n "$CC"; then
3069   ac_cv_prog_CC="$CC" # Let the user override the test.
3070 else
3071   ac_prog_rejected=no
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $PATH
3074 do
3075   IFS=$as_save_IFS
3076   test -z "$as_dir" && as_dir=.
3077     for ac_exec_ext in '' $ac_executable_extensions; do
3078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3080        ac_prog_rejected=yes
3081        continue
3082      fi
3083     ac_cv_prog_CC="cc"
3084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085     break 2
3086   fi
3087 done
3088   done
3089 IFS=$as_save_IFS
3090
3091 if test $ac_prog_rejected = yes; then
3092   # We found a bogon in the path, so make sure we never use it.
3093   set dummy $ac_cv_prog_CC
3094   shift
3095   if test $# != 0; then
3096     # We chose a different compiler from the bogus one.
3097     # However, it has the same basename, so the bogon will be chosen
3098     # first if we set CC to just the basename; use the full file name.
3099     shift
3100     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3101   fi
3102 fi
3103 fi
3104 fi
3105 CC=$ac_cv_prog_CC
3106 if test -n "$CC"; then
3107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108 $as_echo "$CC" >&6; }
3109 else
3110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 fi
3113
3114
3115 fi
3116 if test -z "$CC"; then
3117   if test -n "$ac_tool_prefix"; then
3118   for ac_prog in cl.exe
3119   do
3120     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3121 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_CC+:} false; then :
3125   $as_echo_n "(cached) " >&6
3126 else
3127   if test -n "$CC"; then
3128   ac_cv_prog_CC="$CC" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133   IFS=$as_save_IFS
3134   test -z "$as_dir" && as_dir=.
3135     for ac_exec_ext in '' $ac_executable_extensions; do
3136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139     break 2
3140   fi
3141 done
3142   done
3143 IFS=$as_save_IFS
3144
3145 fi
3146 fi
3147 CC=$ac_cv_prog_CC
3148 if test -n "$CC"; then
3149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3150 $as_echo "$CC" >&6; }
3151 else
3152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3154 fi
3155
3156
3157     test -n "$CC" && break
3158   done
3159 fi
3160 if test -z "$CC"; then
3161   ac_ct_CC=$CC
3162   for ac_prog in cl.exe
3163 do
3164   # Extract the first word of "$ac_prog", so it can be a program name with args.
3165 set dummy $ac_prog; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3169   $as_echo_n "(cached) " >&6
3170 else
3171   if test -n "$ac_ct_CC"; then
3172   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177   IFS=$as_save_IFS
3178   test -z "$as_dir" && as_dir=.
3179     for ac_exec_ext in '' $ac_executable_extensions; do
3180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181     ac_cv_prog_ac_ct_CC="$ac_prog"
3182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183     break 2
3184   fi
3185 done
3186   done
3187 IFS=$as_save_IFS
3188
3189 fi
3190 fi
3191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3192 if test -n "$ac_ct_CC"; then
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3194 $as_echo "$ac_ct_CC" >&6; }
3195 else
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200
3201   test -n "$ac_ct_CC" && break
3202 done
3203
3204   if test "x$ac_ct_CC" = x; then
3205     CC=""
3206   else
3207     case $cross_compiling:$ac_tool_warned in
3208 yes:)
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3211 ac_tool_warned=yes ;;
3212 esac
3213     CC=$ac_ct_CC
3214   fi
3215 fi
3216
3217 fi
3218
3219
3220 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3222 as_fn_error $? "no acceptable C compiler found in \$PATH
3223 See \`config.log' for more details" "$LINENO" 5; }
3224
3225 # Provide some information about the compiler.
3226 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3227 set X $ac_compile
3228 ac_compiler=$2
3229 for ac_option in --version -v -V -qversion; do
3230   { { ac_try="$ac_compiler $ac_option >&5"
3231 case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236 $as_echo "$ac_try_echo"; } >&5
3237   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3238   ac_status=$?
3239   if test -s conftest.err; then
3240     sed '10a\
3241 ... rest of stderr output deleted ...
3242          10q' conftest.err >conftest.er1
3243     cat conftest.er1 >&5
3244   fi
3245   rm -f conftest.er1 conftest.err
3246   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247   test $ac_status = 0; }
3248 done
3249
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h.  */
3252
3253 int
3254 main ()
3255 {
3256
3257   ;
3258   return 0;
3259 }
3260 _ACEOF
3261 ac_clean_files_save=$ac_clean_files
3262 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3263 # Try to create an executable without -o first, disregard a.out.
3264 # It will help us diagnose broken compilers, and finding out an intuition
3265 # of exeext.
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3267 $as_echo_n "checking whether the C compiler works... " >&6; }
3268 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3269
3270 # The possible output files:
3271 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3272
3273 ac_rmfiles=
3274 for ac_file in $ac_files
3275 do
3276   case $ac_file in
3277     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3278     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3279   esac
3280 done
3281 rm -f $ac_rmfiles
3282
3283 if { { ac_try="$ac_link_default"
3284 case "(($ac_try" in
3285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286   *) ac_try_echo=$ac_try;;
3287 esac
3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289 $as_echo "$ac_try_echo"; } >&5
3290   (eval "$ac_link_default") 2>&5
3291   ac_status=$?
3292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293   test $ac_status = 0; }; then :
3294   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3295 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3296 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3297 # so that the user can short-circuit this test for compilers unknown to
3298 # Autoconf.
3299 for ac_file in $ac_files ''
3300 do
3301   test -f "$ac_file" || continue
3302   case $ac_file in
3303     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3304         ;;
3305     [ab].out )
3306         # We found the default executable, but exeext='' is most
3307         # certainly right.
3308         break;;
3309     *.* )
3310         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3311         then :; else
3312            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3313         fi
3314         # We set ac_cv_exeext here because the later test for it is not
3315         # safe: cross compilers may not add the suffix if given an `-o'
3316         # argument, so we may need to know it at that point already.
3317         # Even if this section looks crufty: it has the advantage of
3318         # actually working.
3319         break;;
3320     * )
3321         break;;
3322   esac
3323 done
3324 test "$ac_cv_exeext" = no && ac_cv_exeext=
3325
3326 else
3327   ac_file=''
3328 fi
3329 if test -z "$ac_file"; then :
3330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 $as_echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3334
3335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 as_fn_error 77 "C compiler cannot create executables
3338 See \`config.log' for more details" "$LINENO" 5; }
3339 else
3340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341 $as_echo "yes" >&6; }
3342 fi
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3344 $as_echo_n "checking for C compiler default output file name... " >&6; }
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3346 $as_echo "$ac_file" >&6; }
3347 ac_exeext=$ac_cv_exeext
3348
3349 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3350 ac_clean_files=$ac_clean_files_save
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3352 $as_echo_n "checking for suffix of executables... " >&6; }
3353 if { { ac_try="$ac_link"
3354 case "(($ac_try" in
3355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356   *) ac_try_echo=$ac_try;;
3357 esac
3358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3359 $as_echo "$ac_try_echo"; } >&5
3360   (eval "$ac_link") 2>&5
3361   ac_status=$?
3362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3363   test $ac_status = 0; }; then :
3364   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3365 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3366 # work properly (i.e., refer to `conftest.exe'), while it won't with
3367 # `rm'.
3368 for ac_file in conftest.exe conftest conftest.*; do
3369   test -f "$ac_file" || continue
3370   case $ac_file in
3371     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3372     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3373           break;;
3374     * ) break;;
3375   esac
3376 done
3377 else
3378   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3381 See \`config.log' for more details" "$LINENO" 5; }
3382 fi
3383 rm -f conftest conftest$ac_cv_exeext
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3385 $as_echo "$ac_cv_exeext" >&6; }
3386
3387 rm -f conftest.$ac_ext
3388 EXEEXT=$ac_cv_exeext
3389 ac_exeext=$EXEEXT
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h.  */
3392 #include <stdio.h>
3393 int
3394 main ()
3395 {
3396 FILE *f = fopen ("conftest.out", "w");
3397  return ferror (f) || fclose (f) != 0;
3398
3399   ;
3400   return 0;
3401 }
3402 _ACEOF
3403 ac_clean_files="$ac_clean_files conftest.out"
3404 # Check that the compiler produces executables we can run.  If not, either
3405 # the compiler is broken, or we cross compile.
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3407 $as_echo_n "checking whether we are cross compiling... " >&6; }
3408 if test "$cross_compiling" != yes; then
3409   { { ac_try="$ac_link"
3410 case "(($ac_try" in
3411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412   *) ac_try_echo=$ac_try;;
3413 esac
3414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415 $as_echo "$ac_try_echo"; } >&5
3416   (eval "$ac_link") 2>&5
3417   ac_status=$?
3418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419   test $ac_status = 0; }
3420   if { ac_try='./conftest$ac_cv_exeext'
3421   { { case "(($ac_try" in
3422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423   *) ac_try_echo=$ac_try;;
3424 esac
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427   (eval "$ac_try") 2>&5
3428   ac_status=$?
3429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430   test $ac_status = 0; }; }; then
3431     cross_compiling=no
3432   else
3433     if test "$cross_compiling" = maybe; then
3434         cross_compiling=yes
3435     else
3436         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438 as_fn_error $? "cannot run C compiled programs.
3439 If you meant to cross compile, use \`--host'.
3440 See \`config.log' for more details" "$LINENO" 5; }
3441     fi
3442   fi
3443 fi
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3445 $as_echo "$cross_compiling" >&6; }
3446
3447 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3448 ac_clean_files=$ac_clean_files_save
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3450 $as_echo_n "checking for suffix of object files... " >&6; }
3451 if ${ac_cv_objext+:} false; then :
3452   $as_echo_n "(cached) " >&6
3453 else
3454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h.  */
3456
3457 int
3458 main ()
3459 {
3460
3461   ;
3462   return 0;
3463 }
3464 _ACEOF
3465 rm -f conftest.o conftest.obj
3466 if { { ac_try="$ac_compile"
3467 case "(($ac_try" in
3468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469   *) ac_try_echo=$ac_try;;
3470 esac
3471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472 $as_echo "$ac_try_echo"; } >&5
3473   (eval "$ac_compile") 2>&5
3474   ac_status=$?
3475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476   test $ac_status = 0; }; then :
3477   for ac_file in conftest.o conftest.obj conftest.*; do
3478   test -f "$ac_file" || continue;
3479   case $ac_file in
3480     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3481     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3482        break;;
3483   esac
3484 done
3485 else
3486   $as_echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3488
3489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 as_fn_error $? "cannot compute suffix of object files: cannot compile
3492 See \`config.log' for more details" "$LINENO" 5; }
3493 fi
3494 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3495 fi
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3497 $as_echo "$ac_cv_objext" >&6; }
3498 OBJEXT=$ac_cv_objext
3499 ac_objext=$OBJEXT
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3501 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3502 if ${ac_cv_c_compiler_gnu+:} false; then :
3503   $as_echo_n "(cached) " >&6
3504 else
3505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h.  */
3507
3508 int
3509 main ()
3510 {
3511 #ifndef __GNUC__
3512        choke me
3513 #endif
3514
3515   ;
3516   return 0;
3517 }
3518 _ACEOF
3519 if ac_fn_c_try_compile "$LINENO"; then :
3520   ac_compiler_gnu=yes
3521 else
3522   ac_compiler_gnu=no
3523 fi
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3526
3527 fi
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3529 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3530 if test $ac_compiler_gnu = yes; then
3531   GCC=yes
3532 else
3533   GCC=
3534 fi
3535 ac_test_CFLAGS=${CFLAGS+set}
3536 ac_save_CFLAGS=$CFLAGS
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3538 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3539 if ${ac_cv_prog_cc_g+:} false; then :
3540   $as_echo_n "(cached) " >&6
3541 else
3542   ac_save_c_werror_flag=$ac_c_werror_flag
3543    ac_c_werror_flag=yes
3544    ac_cv_prog_cc_g=no
3545    CFLAGS="-g"
3546    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h.  */
3548
3549 int
3550 main ()
3551 {
3552
3553   ;
3554   return 0;
3555 }
3556 _ACEOF
3557 if ac_fn_c_try_compile "$LINENO"; then :
3558   ac_cv_prog_cc_g=yes
3559 else
3560   CFLAGS=""
3561       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h.  */
3563
3564 int
3565 main ()
3566 {
3567
3568   ;
3569   return 0;
3570 }
3571 _ACEOF
3572 if ac_fn_c_try_compile "$LINENO"; then :
3573
3574 else
3575   ac_c_werror_flag=$ac_save_c_werror_flag
3576          CFLAGS="-g"
3577          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h.  */
3579
3580 int
3581 main ()
3582 {
3583
3584   ;
3585   return 0;
3586 }
3587 _ACEOF
3588 if ac_fn_c_try_compile "$LINENO"; then :
3589   ac_cv_prog_cc_g=yes
3590 fi
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 fi
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 fi
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596    ac_c_werror_flag=$ac_save_c_werror_flag
3597 fi
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3599 $as_echo "$ac_cv_prog_cc_g" >&6; }
3600 if test "$ac_test_CFLAGS" = set; then
3601   CFLAGS=$ac_save_CFLAGS
3602 elif test $ac_cv_prog_cc_g = yes; then
3603   if test "$GCC" = yes; then
3604     CFLAGS="-g -O2"
3605   else
3606     CFLAGS="-g"
3607   fi
3608 else
3609   if test "$GCC" = yes; then
3610     CFLAGS="-O2"
3611   else
3612     CFLAGS=
3613   fi
3614 fi
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3616 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3617 if ${ac_cv_prog_cc_c89+:} false; then :
3618   $as_echo_n "(cached) " >&6
3619 else
3620   ac_cv_prog_cc_c89=no
3621 ac_save_CC=$CC
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h.  */
3624 #include <stdarg.h>
3625 #include <stdio.h>
3626 struct stat;
3627 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3628 struct buf { int x; };
3629 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3630 static char *e (p, i)
3631      char **p;
3632      int i;
3633 {
3634   return p[i];
3635 }
3636 static char *f (char * (*g) (char **, int), char **p, ...)
3637 {
3638   char *s;
3639   va_list v;
3640   va_start (v,p);
3641   s = g (p, va_arg (v,int));
3642   va_end (v);
3643   return s;
3644 }
3645
3646 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3647    function prototypes and stuff, but not '\xHH' hex character constants.
3648    These don't provoke an error unfortunately, instead are silently treated
3649    as 'x'.  The following induces an error, until -std is added to get
3650    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3651    array size at least.  It's necessary to write '\x00'==0 to get something
3652    that's true only with -std.  */
3653 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3654
3655 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3656    inside strings and character constants.  */
3657 #define FOO(x) 'x'
3658 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3659
3660 int test (int i, double x);
3661 struct s1 {int (*f) (int a);};
3662 struct s2 {int (*f) (double a);};
3663 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3664 int argc;
3665 char **argv;
3666 int
3667 main ()
3668 {
3669 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3670   ;
3671   return 0;
3672 }
3673 _ACEOF
3674 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3675         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3676 do
3677   CC="$ac_save_CC $ac_arg"
3678   if ac_fn_c_try_compile "$LINENO"; then :
3679   ac_cv_prog_cc_c89=$ac_arg
3680 fi
3681 rm -f core conftest.err conftest.$ac_objext
3682   test "x$ac_cv_prog_cc_c89" != "xno" && break
3683 done
3684 rm -f conftest.$ac_ext
3685 CC=$ac_save_CC
3686
3687 fi
3688 # AC_CACHE_VAL
3689 case "x$ac_cv_prog_cc_c89" in
3690   x)
3691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3692 $as_echo "none needed" >&6; } ;;
3693   xno)
3694     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3695 $as_echo "unsupported" >&6; } ;;
3696   *)
3697     CC="$CC $ac_cv_prog_cc_c89"
3698     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3699 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3700 esac
3701 if test "x$ac_cv_prog_cc_c89" != xno; then :
3702
3703 fi
3704
3705 ac_ext=c
3706 ac_cpp='$CPP $CPPFLAGS'
3707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710 DEPDIR="${am__leading_dot}deps"
3711
3712 ac_config_commands="$ac_config_commands depfiles"
3713
3714
3715 am_make=${MAKE-make}
3716 cat > confinc << 'END'
3717 am__doit:
3718         @echo this is the am__doit target
3719 .PHONY: am__doit
3720 END
3721 # If we don't find an include directive, just comment out the code.
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3723 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3724 am__include="#"
3725 am__quote=
3726 _am_result=none
3727 # First try GNU make style include.
3728 echo "include confinc" > confmf
3729 # Ignore all kinds of additional output from `make'.
3730 case `$am_make -s -f confmf 2> /dev/null` in #(
3731 *the\ am__doit\ target*)
3732   am__include=include
3733   am__quote=
3734   _am_result=GNU
3735   ;;
3736 esac
3737 # Now try BSD make style include.
3738 if test "$am__include" = "#"; then
3739    echo '.include "confinc"' > confmf
3740    case `$am_make -s -f confmf 2> /dev/null` in #(
3741    *the\ am__doit\ target*)
3742      am__include=.include
3743      am__quote="\""
3744      _am_result=BSD
3745      ;;
3746    esac
3747 fi
3748
3749
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3751 $as_echo "$_am_result" >&6; }
3752 rm -f confinc confmf
3753
3754 # Check whether --enable-dependency-tracking was given.
3755 if test "${enable_dependency_tracking+set}" = set; then :
3756   enableval=$enable_dependency_tracking;
3757 fi
3758
3759 if test "x$enable_dependency_tracking" != xno; then
3760   am_depcomp="$ac_aux_dir/depcomp"
3761   AMDEPBACKSLASH='\'
3762   am__nodep='_no'
3763 fi
3764  if test "x$enable_dependency_tracking" != xno; then
3765   AMDEP_TRUE=
3766   AMDEP_FALSE='#'
3767 else
3768   AMDEP_TRUE='#'
3769   AMDEP_FALSE=
3770 fi
3771
3772
3773
3774 depcc="$CC"   am_compiler_list=
3775
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3777 $as_echo_n "checking dependency style of $depcc... " >&6; }
3778 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3779   $as_echo_n "(cached) " >&6
3780 else
3781   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3782   # We make a subdir and do the tests there.  Otherwise we can end up
3783   # making bogus files that we don't know about and never remove.  For
3784   # instance it was reported that on HP-UX the gcc test will end up
3785   # making a dummy file named `D' -- because `-MD' means `put the output
3786   # in D'.
3787   rm -rf conftest.dir
3788   mkdir conftest.dir
3789   # Copy depcomp to subdir because otherwise we won't find it if we're
3790   # using a relative directory.
3791   cp "$am_depcomp" conftest.dir
3792   cd conftest.dir
3793   # We will build objects and dependencies in a subdirectory because
3794   # it helps to detect inapplicable dependency modes.  For instance
3795   # both Tru64's cc and ICC support -MD to output dependencies as a
3796   # side effect of compilation, but ICC will put the dependencies in
3797   # the current directory while Tru64 will put them in the object
3798   # directory.
3799   mkdir sub
3800
3801   am_cv_CC_dependencies_compiler_type=none
3802   if test "$am_compiler_list" = ""; then
3803      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3804   fi
3805   am__universal=false
3806   case " $depcc " in #(
3807      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3808      esac
3809
3810   for depmode in $am_compiler_list; do
3811     # Setup a source with many dependencies, because some compilers
3812     # like to wrap large dependency lists on column 80 (with \), and
3813     # we should not choose a depcomp mode which is confused by this.
3814     #
3815     # We need to recreate these files for each test, as the compiler may
3816     # overwrite some of them when testing with obscure command lines.
3817     # This happens at least with the AIX C compiler.
3818     : > sub/conftest.c
3819     for i in 1 2 3 4 5 6; do
3820       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3821       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3822       # Solaris 8's {/usr,}/bin/sh.
3823       touch sub/conftst$i.h
3824     done
3825     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3826
3827     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3828     # mode.  It turns out that the SunPro C++ compiler does not properly
3829     # handle `-M -o', and we need to detect this.  Also, some Intel
3830     # versions had trouble with output in subdirs
3831     am__obj=sub/conftest.${OBJEXT-o}
3832     am__minus_obj="-o $am__obj"
3833     case $depmode in
3834     gcc)
3835       # This depmode causes a compiler race in universal mode.
3836       test "$am__universal" = false || continue
3837       ;;
3838     nosideeffect)
3839       # after this tag, mechanisms are not by side-effect, so they'll
3840       # only be used when explicitly requested
3841       if test "x$enable_dependency_tracking" = xyes; then
3842         continue
3843       else
3844         break
3845       fi
3846       ;;
3847     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3848       # This compiler won't grok `-c -o', but also, the minuso test has
3849       # not run yet.  These depmodes are late enough in the game, and
3850       # so weak that their functioning should not be impacted.
3851       am__obj=conftest.${OBJEXT-o}
3852       am__minus_obj=
3853       ;;
3854     none) break ;;
3855     esac
3856     if depmode=$depmode \
3857        source=sub/conftest.c object=$am__obj \
3858        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3859        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3860          >/dev/null 2>conftest.err &&
3861        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3862        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3863        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3864        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3865       # icc doesn't choke on unknown options, it will just issue warnings
3866       # or remarks (even with -Werror).  So we grep stderr for any message
3867       # that says an option was ignored or not supported.
3868       # When given -MP, icc 7.0 and 7.1 complain thusly:
3869       #   icc: Command line warning: ignoring option '-M'; no argument required
3870       # The diagnosis changed in icc 8.0:
3871       #   icc: Command line remark: option '-MP' not supported
3872       if (grep 'ignoring option' conftest.err ||
3873           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3874         am_cv_CC_dependencies_compiler_type=$depmode
3875         break
3876       fi
3877     fi
3878   done
3879
3880   cd ..
3881   rm -rf conftest.dir
3882 else
3883   am_cv_CC_dependencies_compiler_type=none
3884 fi
3885
3886 fi
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3888 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3889 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3890
3891  if
3892   test "x$enable_dependency_tracking" != xno \
3893   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3894   am__fastdepCC_TRUE=
3895   am__fastdepCC_FALSE='#'
3896 else
3897   am__fastdepCC_TRUE='#'
3898   am__fastdepCC_FALSE=
3899 fi
3900
3901
3902
3903         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fPIE" >&5
3904 $as_echo_n "checking whether ${CC-cc} accepts -fPIE... " >&6; }
3905 if ${ac_cv_prog_cc_pie+:} false; then :
3906   $as_echo_n "(cached) " >&6
3907 else
3908
3909                 echo 'void f(){}' > conftest.c
3910                 if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
3911                         ac_cv_prog_cc_pie=yes
3912                 else
3913                         ac_cv_prog_cc_pie=no
3914                 fi
3915                 rm -rf conftest*
3916
3917 fi
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_pie" >&5
3919 $as_echo "$ac_cv_prog_cc_pie" >&6; }
3920
3921
3922
3923
3924
3925
3926 # Check whether --enable-static was given.
3927 if test "${enable_static+set}" = set; then :
3928   enableval=$enable_static; p=${PACKAGE-default}
3929     case $enableval in
3930     yes) enable_static=yes ;;
3931     no) enable_static=no ;;
3932     *)
3933      enable_static=no
3934       # Look at the argument we got.  We use all the common list separators.
3935       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3936       for pkg in $enableval; do
3937         IFS="$lt_save_ifs"
3938         if test "X$pkg" = "X$p"; then
3939           enable_static=yes
3940         fi
3941       done
3942       IFS="$lt_save_ifs"
3943       ;;
3944     esac
3945 else
3946   enable_static=no
3947 fi
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957 case `pwd` in
3958   *\ * | *\     *)
3959     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3960 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3961 esac
3962
3963
3964
3965 macro_version='2.4.2'
3966 macro_revision='1.3337'
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980 ltmain="$ac_aux_dir/ltmain.sh"
3981
3982 # Make sure we can run config.sub.
3983 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3984   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3985
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3987 $as_echo_n "checking build system type... " >&6; }
3988 if ${ac_cv_build+:} false; then :
3989   $as_echo_n "(cached) " >&6
3990 else
3991   ac_build_alias=$build_alias
3992 test "x$ac_build_alias" = x &&
3993   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3994 test "x$ac_build_alias" = x &&
3995   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3996 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3997   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3998
3999 fi
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4001 $as_echo "$ac_cv_build" >&6; }
4002 case $ac_cv_build in
4003 *-*-*) ;;
4004 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4005 esac
4006 build=$ac_cv_build
4007 ac_save_IFS=$IFS; IFS='-'
4008 set x $ac_cv_build
4009 shift
4010 build_cpu=$1
4011 build_vendor=$2
4012 shift; shift
4013 # Remember, the first character of IFS is used to create $*,
4014 # except with old shells:
4015 build_os=$*
4016 IFS=$ac_save_IFS
4017 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4018
4019
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4021 $as_echo_n "checking host system type... " >&6; }
4022 if ${ac_cv_host+:} false; then :
4023   $as_echo_n "(cached) " >&6
4024 else
4025   if test "x$host_alias" = x; then
4026   ac_cv_host=$ac_cv_build
4027 else
4028   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4029     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4030 fi
4031
4032 fi
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4034 $as_echo "$ac_cv_host" >&6; }
4035 case $ac_cv_host in
4036 *-*-*) ;;
4037 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4038 esac
4039 host=$ac_cv_host
4040 ac_save_IFS=$IFS; IFS='-'
4041 set x $ac_cv_host
4042 shift
4043 host_cpu=$1
4044 host_vendor=$2
4045 shift; shift
4046 # Remember, the first character of IFS is used to create $*,
4047 # except with old shells:
4048 host_os=$*
4049 IFS=$ac_save_IFS
4050 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4051
4052
4053 # Backslashify metacharacters that are still active within
4054 # double-quoted strings.
4055 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4056
4057 # Same as above, but do not quote variable references.
4058 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4059
4060 # Sed substitution to delay expansion of an escaped shell variable in a
4061 # double_quote_subst'ed string.
4062 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4063
4064 # Sed substitution to delay expansion of an escaped single quote.
4065 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4066
4067 # Sed substitution to avoid accidental globbing in evaled expressions
4068 no_glob_subst='s/\*/\\\*/g'
4069
4070 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4071 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4072 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4073
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4075 $as_echo_n "checking how to print strings... " >&6; }
4076 # Test print first, because it will be a builtin if present.
4077 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4078    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4079   ECHO='print -r --'
4080 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4081   ECHO='printf %s\n'
4082 else
4083   # Use this function as a fallback that always works.
4084   func_fallback_echo ()
4085   {
4086     eval 'cat <<_LTECHO_EOF
4087 $1
4088 _LTECHO_EOF'
4089   }
4090   ECHO='func_fallback_echo'
4091 fi
4092
4093 # func_echo_all arg...
4094 # Invoke $ECHO with all args, space-separated.
4095 func_echo_all ()
4096 {
4097     $ECHO ""
4098 }
4099
4100 case "$ECHO" in
4101   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4102 $as_echo "printf" >&6; } ;;
4103   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4104 $as_echo "print -r" >&6; } ;;
4105   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4106 $as_echo "cat" >&6; } ;;
4107 esac
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4123 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4124 if ${ac_cv_path_SED+:} false; then :
4125   $as_echo_n "(cached) " >&6
4126 else
4127             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4128      for ac_i in 1 2 3 4 5 6 7; do
4129        ac_script="$ac_script$as_nl$ac_script"
4130      done
4131      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4132      { ac_script=; unset ac_script;}
4133      if test -z "$SED"; then
4134   ac_path_SED_found=false
4135   # Loop through the user's path and test for each of PROGNAME-LIST
4136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH
4138 do
4139   IFS=$as_save_IFS
4140   test -z "$as_dir" && as_dir=.
4141     for ac_prog in sed gsed; do
4142     for ac_exec_ext in '' $ac_executable_extensions; do
4143       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4144       as_fn_executable_p "$ac_path_SED" || continue
4145 # Check for GNU ac_path_SED and select it if it is found.
4146   # Check for GNU $ac_path_SED
4147 case `"$ac_path_SED" --version 2>&1` in
4148 *GNU*)
4149   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4150 *)
4151   ac_count=0
4152   $as_echo_n 0123456789 >"conftest.in"
4153   while :
4154   do
4155     cat "conftest.in" "conftest.in" >"conftest.tmp"
4156     mv "conftest.tmp" "conftest.in"
4157     cp "conftest.in" "conftest.nl"
4158     $as_echo '' >> "conftest.nl"
4159     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4160     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4161     as_fn_arith $ac_count + 1 && ac_count=$as_val
4162     if test $ac_count -gt ${ac_path_SED_max-0}; then
4163       # Best one so far, save it but keep looking for a better one
4164       ac_cv_path_SED="$ac_path_SED"
4165       ac_path_SED_max=$ac_count
4166     fi
4167     # 10*(2^10) chars as input seems more than enough
4168     test $ac_count -gt 10 && break
4169   done
4170   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4171 esac
4172
4173       $ac_path_SED_found && break 3
4174     done
4175   done
4176   done
4177 IFS=$as_save_IFS
4178   if test -z "$ac_cv_path_SED"; then
4179     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4180   fi
4181 else
4182   ac_cv_path_SED=$SED
4183 fi
4184
4185 fi
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4187 $as_echo "$ac_cv_path_SED" >&6; }
4188  SED="$ac_cv_path_SED"
4189   rm -f conftest.sed
4190
4191 test -z "$SED" && SED=sed
4192 Xsed="$SED -e 1s/^X//"
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4205 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4206 if ${ac_cv_path_GREP+:} false; then :
4207   $as_echo_n "(cached) " >&6
4208 else
4209   if test -z "$GREP"; then
4210   ac_path_GREP_found=false
4211   # Loop through the user's path and test for each of PROGNAME-LIST
4212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4214 do
4215   IFS=$as_save_IFS
4216   test -z "$as_dir" && as_dir=.
4217     for ac_prog in grep ggrep; do
4218     for ac_exec_ext in '' $ac_executable_extensions; do
4219       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4220       as_fn_executable_p "$ac_path_GREP" || continue
4221 # Check for GNU ac_path_GREP and select it if it is found.
4222   # Check for GNU $ac_path_GREP
4223 case `"$ac_path_GREP" --version 2>&1` in
4224 *GNU*)
4225   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4226 *)
4227   ac_count=0
4228   $as_echo_n 0123456789 >"conftest.in"
4229   while :
4230   do
4231     cat "conftest.in" "conftest.in" >"conftest.tmp"
4232     mv "conftest.tmp" "conftest.in"
4233     cp "conftest.in" "conftest.nl"
4234     $as_echo 'GREP' >> "conftest.nl"
4235     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4236     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4237     as_fn_arith $ac_count + 1 && ac_count=$as_val
4238     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4239       # Best one so far, save it but keep looking for a better one
4240       ac_cv_path_GREP="$ac_path_GREP"
4241       ac_path_GREP_max=$ac_count
4242     fi
4243     # 10*(2^10) chars as input seems more than enough
4244     test $ac_count -gt 10 && break
4245   done
4246   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4247 esac
4248
4249       $ac_path_GREP_found && break 3
4250     done
4251   done
4252   done
4253 IFS=$as_save_IFS
4254   if test -z "$ac_cv_path_GREP"; then
4255     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4256   fi
4257 else
4258   ac_cv_path_GREP=$GREP
4259 fi
4260
4261 fi
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4263 $as_echo "$ac_cv_path_GREP" >&6; }
4264  GREP="$ac_cv_path_GREP"
4265
4266
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4268 $as_echo_n "checking for egrep... " >&6; }
4269 if ${ac_cv_path_EGREP+:} false; then :
4270   $as_echo_n "(cached) " >&6
4271 else
4272   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4273    then ac_cv_path_EGREP="$GREP -E"
4274    else
4275      if test -z "$EGREP"; then
4276   ac_path_EGREP_found=false
4277   # Loop through the user's path and test for each of PROGNAME-LIST
4278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4280 do
4281   IFS=$as_save_IFS
4282   test -z "$as_dir" && as_dir=.
4283     for ac_prog in egrep; do
4284     for ac_exec_ext in '' $ac_executable_extensions; do
4285       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4286       as_fn_executable_p "$ac_path_EGREP" || continue
4287 # Check for GNU ac_path_EGREP and select it if it is found.
4288   # Check for GNU $ac_path_EGREP
4289 case `"$ac_path_EGREP" --version 2>&1` in
4290 *GNU*)
4291   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4292 *)
4293   ac_count=0
4294   $as_echo_n 0123456789 >"conftest.in"
4295   while :
4296   do
4297     cat "conftest.in" "conftest.in" >"conftest.tmp"
4298     mv "conftest.tmp" "conftest.in"
4299     cp "conftest.in" "conftest.nl"
4300     $as_echo 'EGREP' >> "conftest.nl"
4301     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4302     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4303     as_fn_arith $ac_count + 1 && ac_count=$as_val
4304     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4305       # Best one so far, save it but keep looking for a better one
4306       ac_cv_path_EGREP="$ac_path_EGREP"
4307       ac_path_EGREP_max=$ac_count
4308     fi
4309     # 10*(2^10) chars as input seems more than enough
4310     test $ac_count -gt 10 && break
4311   done
4312   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4313 esac
4314
4315       $ac_path_EGREP_found && break 3
4316     done
4317   done
4318   done
4319 IFS=$as_save_IFS
4320   if test -z "$ac_cv_path_EGREP"; then
4321     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4322   fi
4323 else
4324   ac_cv_path_EGREP=$EGREP
4325 fi
4326
4327    fi
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4330 $as_echo "$ac_cv_path_EGREP" >&6; }
4331  EGREP="$ac_cv_path_EGREP"
4332
4333
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4335 $as_echo_n "checking for fgrep... " >&6; }
4336 if ${ac_cv_path_FGREP+:} false; then :
4337   $as_echo_n "(cached) " >&6
4338 else
4339   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4340    then ac_cv_path_FGREP="$GREP -F"
4341    else
4342      if test -z "$FGREP"; then
4343   ac_path_FGREP_found=false
4344   # Loop through the user's path and test for each of PROGNAME-LIST
4345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4347 do
4348   IFS=$as_save_IFS
4349   test -z "$as_dir" && as_dir=.
4350     for ac_prog in fgrep; do
4351     for ac_exec_ext in '' $ac_executable_extensions; do
4352       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4353       as_fn_executable_p "$ac_path_FGREP" || continue
4354 # Check for GNU ac_path_FGREP and select it if it is found.
4355   # Check for GNU $ac_path_FGREP
4356 case `"$ac_path_FGREP" --version 2>&1` in
4357 *GNU*)
4358   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4359 *)
4360   ac_count=0
4361   $as_echo_n 0123456789 >"conftest.in"
4362   while :
4363   do
4364     cat "conftest.in" "conftest.in" >"conftest.tmp"
4365     mv "conftest.tmp" "conftest.in"
4366     cp "conftest.in" "conftest.nl"
4367     $as_echo 'FGREP' >> "conftest.nl"
4368     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4369     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4370     as_fn_arith $ac_count + 1 && ac_count=$as_val
4371     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4372       # Best one so far, save it but keep looking for a better one
4373       ac_cv_path_FGREP="$ac_path_FGREP"
4374       ac_path_FGREP_max=$ac_count
4375     fi
4376     # 10*(2^10) chars as input seems more than enough
4377     test $ac_count -gt 10 && break
4378   done
4379   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4380 esac
4381
4382       $ac_path_FGREP_found && break 3
4383     done
4384   done
4385   done
4386 IFS=$as_save_IFS
4387   if test -z "$ac_cv_path_FGREP"; then
4388     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4389   fi
4390 else
4391   ac_cv_path_FGREP=$FGREP
4392 fi
4393
4394    fi
4395 fi
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4397 $as_echo "$ac_cv_path_FGREP" >&6; }
4398  FGREP="$ac_cv_path_FGREP"
4399
4400
4401 test -z "$GREP" && GREP=grep
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421 # Check whether --with-gnu-ld was given.
4422 if test "${with_gnu_ld+set}" = set; then :
4423   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4424 else
4425   with_gnu_ld=no
4426 fi
4427
4428 ac_prog=ld
4429 if test "$GCC" = yes; then
4430   # Check if gcc -print-prog-name=ld gives a path.
4431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4432 $as_echo_n "checking for ld used by $CC... " >&6; }
4433   case $host in
4434   *-*-mingw*)
4435     # gcc leaves a trailing carriage return which upsets mingw
4436     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4437   *)
4438     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4439   esac
4440   case $ac_prog in
4441     # Accept absolute paths.
4442     [\\/]* | ?:[\\/]*)
4443       re_direlt='/[^/][^/]*/\.\./'
4444       # Canonicalize the pathname of ld
4445       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4446       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4447         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4448       done
4449       test -z "$LD" && LD="$ac_prog"
4450       ;;
4451   "")
4452     # If it fails, then pretend we aren't using GCC.
4453     ac_prog=ld
4454     ;;
4455   *)
4456     # If it is relative, then search for the first ld in PATH.
4457     with_gnu_ld=unknown
4458     ;;
4459   esac
4460 elif test "$with_gnu_ld" = yes; then
4461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4462 $as_echo_n "checking for GNU ld... " >&6; }
4463 else
4464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4465 $as_echo_n "checking for non-GNU ld... " >&6; }
4466 fi
4467 if ${lt_cv_path_LD+:} false; then :
4468   $as_echo_n "(cached) " >&6
4469 else
4470   if test -z "$LD"; then
4471   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4472   for ac_dir in $PATH; do
4473     IFS="$lt_save_ifs"
4474     test -z "$ac_dir" && ac_dir=.
4475     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4476       lt_cv_path_LD="$ac_dir/$ac_prog"
4477       # Check to see if the program is GNU ld.  I'd rather use --version,
4478       # but apparently some variants of GNU ld only accept -v.
4479       # Break only if it was the GNU/non-GNU ld that we prefer.
4480       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4481       *GNU* | *'with BFD'*)
4482         test "$with_gnu_ld" != no && break
4483         ;;
4484       *)
4485         test "$with_gnu_ld" != yes && break
4486         ;;
4487       esac
4488     fi
4489   done
4490   IFS="$lt_save_ifs"
4491 else
4492   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4493 fi
4494 fi
4495
4496 LD="$lt_cv_path_LD"
4497 if test -n "$LD"; then
4498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4499 $as_echo "$LD" >&6; }
4500 else
4501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4503 fi
4504 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4506 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4507 if ${lt_cv_prog_gnu_ld+:} false; then :
4508   $as_echo_n "(cached) " >&6
4509 else
4510   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4511 case `$LD -v 2>&1 </dev/null` in
4512 *GNU* | *'with BFD'*)
4513   lt_cv_prog_gnu_ld=yes
4514   ;;
4515 *)
4516   lt_cv_prog_gnu_ld=no
4517   ;;
4518 esac
4519 fi
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4521 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4522 with_gnu_ld=$lt_cv_prog_gnu_ld
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4533 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4534 if ${lt_cv_path_NM+:} false; then :
4535   $as_echo_n "(cached) " >&6
4536 else
4537   if test -n "$NM"; then
4538   # Let the user override the test.
4539   lt_cv_path_NM="$NM"
4540 else
4541   lt_nm_to_check="${ac_tool_prefix}nm"
4542   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4543     lt_nm_to_check="$lt_nm_to_check nm"
4544   fi
4545   for lt_tmp_nm in $lt_nm_to_check; do
4546     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4547     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4548       IFS="$lt_save_ifs"
4549       test -z "$ac_dir" && ac_dir=.
4550       tmp_nm="$ac_dir/$lt_tmp_nm"
4551       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4552         # Check to see if the nm accepts a BSD-compat flag.
4553         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4554         #   nm: unknown option "B" ignored
4555         # Tru64's nm complains that /dev/null is an invalid object file
4556         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4557         */dev/null* | *'Invalid file or object type'*)
4558           lt_cv_path_NM="$tmp_nm -B"
4559           break
4560           ;;
4561         *)
4562           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4563           */dev/null*)
4564             lt_cv_path_NM="$tmp_nm -p"
4565             break
4566             ;;
4567           *)
4568             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4569             continue # so that we can try to find one that supports BSD flags
4570             ;;
4571           esac
4572           ;;
4573         esac
4574       fi
4575     done
4576     IFS="$lt_save_ifs"
4577   done
4578   : ${lt_cv_path_NM=no}
4579 fi
4580 fi
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4582 $as_echo "$lt_cv_path_NM" >&6; }
4583 if test "$lt_cv_path_NM" != "no"; then
4584   NM="$lt_cv_path_NM"
4585 else
4586   # Didn't find any BSD compatible name lister, look for dumpbin.
4587   if test -n "$DUMPBIN"; then :
4588     # Let the user override the test.
4589   else
4590     if test -n "$ac_tool_prefix"; then
4591   for ac_prog in dumpbin "link -dump"
4592   do
4593     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if ${ac_cv_prog_DUMPBIN+:} false; then :
4598   $as_echo_n "(cached) " >&6
4599 else
4600   if test -n "$DUMPBIN"; then
4601   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606   IFS=$as_save_IFS
4607   test -z "$as_dir" && as_dir=.
4608     for ac_exec_ext in '' $ac_executable_extensions; do
4609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612     break 2
4613   fi
4614 done
4615   done
4616 IFS=$as_save_IFS
4617
4618 fi
4619 fi
4620 DUMPBIN=$ac_cv_prog_DUMPBIN
4621 if test -n "$DUMPBIN"; then
4622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4623 $as_echo "$DUMPBIN" >&6; }
4624 else
4625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4627 fi
4628
4629
4630     test -n "$DUMPBIN" && break
4631   done
4632 fi
4633 if test -z "$DUMPBIN"; then
4634   ac_ct_DUMPBIN=$DUMPBIN
4635   for ac_prog in dumpbin "link -dump"
4636 do
4637   # Extract the first word of "$ac_prog", so it can be a program name with args.
4638 set dummy $ac_prog; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4642   $as_echo_n "(cached) " >&6
4643 else
4644   if test -n "$ac_ct_DUMPBIN"; then
4645   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650   IFS=$as_save_IFS
4651   test -z "$as_dir" && as_dir=.
4652     for ac_exec_ext in '' $ac_executable_extensions; do
4653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656     break 2
4657   fi
4658 done
4659   done
4660 IFS=$as_save_IFS
4661
4662 fi
4663 fi
4664 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4665 if test -n "$ac_ct_DUMPBIN"; then
4666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4667 $as_echo "$ac_ct_DUMPBIN" >&6; }
4668 else
4669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4671 fi
4672
4673
4674   test -n "$ac_ct_DUMPBIN" && break
4675 done
4676
4677   if test "x$ac_ct_DUMPBIN" = x; then
4678     DUMPBIN=":"
4679   else
4680     case $cross_compiling:$ac_tool_warned in
4681 yes:)
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4684 ac_tool_warned=yes ;;
4685 esac
4686     DUMPBIN=$ac_ct_DUMPBIN
4687   fi
4688 fi
4689
4690     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4691     *COFF*)
4692       DUMPBIN="$DUMPBIN -symbols"
4693       ;;
4694     *)
4695       DUMPBIN=:
4696       ;;
4697     esac
4698   fi
4699
4700   if test "$DUMPBIN" != ":"; then
4701     NM="$DUMPBIN"
4702   fi
4703 fi
4704 test -z "$NM" && NM=nm
4705
4706
4707
4708
4709
4710
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4712 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4713 if ${lt_cv_nm_interface+:} false; then :
4714   $as_echo_n "(cached) " >&6
4715 else
4716   lt_cv_nm_interface="BSD nm"
4717   echo "int some_variable = 0;" > conftest.$ac_ext
4718   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4719   (eval "$ac_compile" 2>conftest.err)
4720   cat conftest.err >&5
4721   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4722   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4723   cat conftest.err >&5
4724   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4725   cat conftest.out >&5
4726   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4727     lt_cv_nm_interface="MS dumpbin"
4728   fi
4729   rm -f conftest*
4730 fi
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4732 $as_echo "$lt_cv_nm_interface" >&6; }
4733
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4735 $as_echo_n "checking whether ln -s works... " >&6; }
4736 LN_S=$as_ln_s
4737 if test "$LN_S" = "ln -s"; then
4738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4739 $as_echo "yes" >&6; }
4740 else
4741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4742 $as_echo "no, using $LN_S" >&6; }
4743 fi
4744
4745 # find the maximum length of command line arguments
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4747 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4748 if ${lt_cv_sys_max_cmd_len+:} false; then :
4749   $as_echo_n "(cached) " >&6
4750 else
4751     i=0
4752   teststring="ABCD"
4753
4754   case $build_os in
4755   msdosdjgpp*)
4756     # On DJGPP, this test can blow up pretty badly due to problems in libc
4757     # (any single argument exceeding 2000 bytes causes a buffer overrun
4758     # during glob expansion).  Even if it were fixed, the result of this
4759     # check would be larger than it should be.
4760     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4761     ;;
4762
4763   gnu*)
4764     # Under GNU Hurd, this test is not required because there is
4765     # no limit to the length of command line arguments.
4766     # Libtool will interpret -1 as no limit whatsoever
4767     lt_cv_sys_max_cmd_len=-1;
4768     ;;
4769
4770   cygwin* | mingw* | cegcc*)
4771     # On Win9x/ME, this test blows up -- it succeeds, but takes
4772     # about 5 minutes as the teststring grows exponentially.
4773     # Worse, since 9x/ME are not pre-emptively multitasking,
4774     # you end up with a "frozen" computer, even though with patience
4775     # the test eventually succeeds (with a max line length of 256k).
4776     # Instead, let's just punt: use the minimum linelength reported by
4777     # all of the supported platforms: 8192 (on NT/2K/XP).
4778     lt_cv_sys_max_cmd_len=8192;
4779     ;;
4780
4781   mint*)
4782     # On MiNT this can take a long time and run out of memory.
4783     lt_cv_sys_max_cmd_len=8192;
4784     ;;
4785
4786   amigaos*)
4787     # On AmigaOS with pdksh, this test takes hours, literally.
4788     # So we just punt and use a minimum line length of 8192.
4789     lt_cv_sys_max_cmd_len=8192;
4790     ;;
4791
4792   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4793     # This has been around since 386BSD, at least.  Likely further.
4794     if test -x /sbin/sysctl; then
4795       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4796     elif test -x /usr/sbin/sysctl; then
4797       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4798     else
4799       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4800     fi
4801     # And add a safety zone
4802     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4803     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4804     ;;
4805
4806   interix*)
4807     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4808     lt_cv_sys_max_cmd_len=196608
4809     ;;
4810
4811   os2*)
4812     # The test takes a long time on OS/2.
4813     lt_cv_sys_max_cmd_len=8192
4814     ;;
4815
4816   osf*)
4817     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4818     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4819     # nice to cause kernel panics so lets avoid the loop below.
4820     # First set a reasonable default.
4821     lt_cv_sys_max_cmd_len=16384
4822     #
4823     if test -x /sbin/sysconfig; then
4824       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4825         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4826       esac
4827     fi
4828     ;;
4829   sco3.2v5*)
4830     lt_cv_sys_max_cmd_len=102400
4831     ;;
4832   sysv5* | sco5v6* | sysv4.2uw2*)
4833     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4834     if test -n "$kargmax"; then
4835       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4836     else
4837       lt_cv_sys_max_cmd_len=32768
4838     fi
4839     ;;
4840   *)
4841     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4842     if test -n "$lt_cv_sys_max_cmd_len"; then
4843       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4844       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4845     else
4846       # Make teststring a little bigger before we do anything with it.
4847       # a 1K string should be a reasonable start.
4848       for i in 1 2 3 4 5 6 7 8 ; do
4849         teststring=$teststring$teststring
4850       done
4851       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4852       # If test is not a shell built-in, we'll probably end up computing a
4853       # maximum length that is only half of the actual maximum length, but
4854       # we can't tell.
4855       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4856                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4857               test $i != 17 # 1/2 MB should be enough
4858       do
4859         i=`expr $i + 1`
4860         teststring=$teststring$teststring
4861       done
4862       # Only check the string length outside the loop.
4863       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4864       teststring=
4865       # Add a significant safety factor because C++ compilers can tack on
4866       # massive amounts of additional arguments before passing them to the
4867       # linker.  It appears as though 1/2 is a usable value.
4868       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4869     fi
4870     ;;
4871   esac
4872
4873 fi
4874
4875 if test -n $lt_cv_sys_max_cmd_len ; then
4876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4877 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4878 else
4879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4880 $as_echo "none" >&6; }
4881 fi
4882 max_cmd_len=$lt_cv_sys_max_cmd_len
4883
4884
4885
4886
4887
4888
4889 : ${CP="cp -f"}
4890 : ${MV="mv -f"}
4891 : ${RM="rm -f"}
4892
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4894 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4895 # Try some XSI features
4896 xsi_shell=no
4897 ( _lt_dummy="a/b/c"
4898   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4899       = c,a/b,b/c, \
4900     && eval 'test $(( 1 + 1 )) -eq 2 \
4901     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4902   && xsi_shell=yes
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4904 $as_echo "$xsi_shell" >&6; }
4905
4906
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4908 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4909 lt_shell_append=no
4910 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4911     >/dev/null 2>&1 \
4912   && lt_shell_append=yes
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4914 $as_echo "$lt_shell_append" >&6; }
4915
4916
4917 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4918   lt_unset=unset
4919 else
4920   lt_unset=false
4921 fi
4922
4923
4924
4925
4926
4927 # test EBCDIC or ASCII
4928 case `echo X|tr X '\101'` in
4929  A) # ASCII based system
4930     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4931   lt_SP2NL='tr \040 \012'
4932   lt_NL2SP='tr \015\012 \040\040'
4933   ;;
4934  *) # EBCDIC based system
4935   lt_SP2NL='tr \100 \n'
4936   lt_NL2SP='tr \r\n \100\100'
4937   ;;
4938 esac
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4949 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4950 if ${lt_cv_to_host_file_cmd+:} false; then :
4951   $as_echo_n "(cached) " >&6
4952 else
4953   case $host in
4954   *-*-mingw* )
4955     case $build in
4956       *-*-mingw* ) # actually msys
4957         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4958         ;;
4959       *-*-cygwin* )
4960         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4961         ;;
4962       * ) # otherwise, assume *nix
4963         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4964         ;;
4965     esac
4966     ;;
4967   *-*-cygwin* )
4968     case $build in
4969       *-*-mingw* ) # actually msys
4970         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4971         ;;
4972       *-*-cygwin* )
4973         lt_cv_to_host_file_cmd=func_convert_file_noop
4974         ;;
4975       * ) # otherwise, assume *nix
4976         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4977         ;;
4978     esac
4979     ;;
4980   * ) # unhandled hosts (and "normal" native builds)
4981     lt_cv_to_host_file_cmd=func_convert_file_noop
4982     ;;
4983 esac
4984
4985 fi
4986
4987 to_host_file_cmd=$lt_cv_to_host_file_cmd
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4989 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4990
4991
4992
4993
4994
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4996 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4997 if ${lt_cv_to_tool_file_cmd+:} false; then :
4998   $as_echo_n "(cached) " >&6
4999 else
5000   #assume ordinary cross tools, or native build.
5001 lt_cv_to_tool_file_cmd=func_convert_file_noop
5002 case $host in
5003   *-*-mingw* )
5004     case $build in
5005       *-*-mingw* ) # actually msys
5006         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5007         ;;
5008     esac
5009     ;;
5010 esac
5011
5012 fi
5013
5014 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5016 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5017
5018
5019
5020
5021
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5023 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5024 if ${lt_cv_ld_reload_flag+:} false; then :
5025   $as_echo_n "(cached) " >&6
5026 else
5027   lt_cv_ld_reload_flag='-r'
5028 fi
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5030 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5031 reload_flag=$lt_cv_ld_reload_flag
5032 case $reload_flag in
5033 "" | " "*) ;;
5034 *) reload_flag=" $reload_flag" ;;
5035 esac
5036 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5037 case $host_os in
5038   cygwin* | mingw* | pw32* | cegcc*)
5039     if test "$GCC" != yes; then
5040       reload_cmds=false
5041     fi
5042     ;;
5043   darwin*)
5044     if test "$GCC" = yes; then
5045       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5046     else
5047       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5048     fi
5049     ;;
5050 esac
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060 if test -n "$ac_tool_prefix"; then
5061   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5062 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_prog_OBJDUMP+:} false; then :
5066   $as_echo_n "(cached) " >&6
5067 else
5068   if test -n "$OBJDUMP"; then
5069   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074   IFS=$as_save_IFS
5075   test -z "$as_dir" && as_dir=.
5076     for ac_exec_ext in '' $ac_executable_extensions; do
5077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080     break 2
5081   fi
5082 done
5083   done
5084 IFS=$as_save_IFS
5085
5086 fi
5087 fi
5088 OBJDUMP=$ac_cv_prog_OBJDUMP
5089 if test -n "$OBJDUMP"; then
5090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5091 $as_echo "$OBJDUMP" >&6; }
5092 else
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095 fi
5096
5097
5098 fi
5099 if test -z "$ac_cv_prog_OBJDUMP"; then
5100   ac_ct_OBJDUMP=$OBJDUMP
5101   # Extract the first word of "objdump", so it can be a program name with args.
5102 set dummy objdump; ac_word=$2
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5106   $as_echo_n "(cached) " >&6
5107 else
5108   if test -n "$ac_ct_OBJDUMP"; then
5109   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5110 else
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114   IFS=$as_save_IFS
5115   test -z "$as_dir" && as_dir=.
5116     for ac_exec_ext in '' $ac_executable_extensions; do
5117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120     break 2
5121   fi
5122 done
5123   done
5124 IFS=$as_save_IFS
5125
5126 fi
5127 fi
5128 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5129 if test -n "$ac_ct_OBJDUMP"; then
5130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5131 $as_echo "$ac_ct_OBJDUMP" >&6; }
5132 else
5133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5135 fi
5136
5137   if test "x$ac_ct_OBJDUMP" = x; then
5138     OBJDUMP="false"
5139   else
5140     case $cross_compiling:$ac_tool_warned in
5141 yes:)
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5144 ac_tool_warned=yes ;;
5145 esac
5146     OBJDUMP=$ac_ct_OBJDUMP
5147   fi
5148 else
5149   OBJDUMP="$ac_cv_prog_OBJDUMP"
5150 fi
5151
5152 test -z "$OBJDUMP" && OBJDUMP=objdump
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5163 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5164 if ${lt_cv_deplibs_check_method+:} false; then :
5165   $as_echo_n "(cached) " >&6
5166 else
5167   lt_cv_file_magic_cmd='$MAGIC_CMD'
5168 lt_cv_file_magic_test_file=
5169 lt_cv_deplibs_check_method='unknown'
5170 # Need to set the preceding variable on all platforms that support
5171 # interlibrary dependencies.
5172 # 'none' -- dependencies not supported.
5173 # `unknown' -- same as none, but documents that we really don't know.
5174 # 'pass_all' -- all dependencies passed with no checks.
5175 # 'test_compile' -- check by making test program.
5176 # 'file_magic [[regex]]' -- check by looking for files in library path
5177 # which responds to the $file_magic_cmd with a given extended regex.
5178 # If you have `file' or equivalent on your system and you're not sure
5179 # whether `pass_all' will *always* work, you probably want this one.
5180
5181 case $host_os in
5182 aix[4-9]*)
5183   lt_cv_deplibs_check_method=pass_all
5184   ;;
5185
5186 beos*)
5187   lt_cv_deplibs_check_method=pass_all
5188   ;;
5189
5190 bsdi[45]*)
5191   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5192   lt_cv_file_magic_cmd='/usr/bin/file -L'
5193   lt_cv_file_magic_test_file=/shlib/libc.so
5194   ;;
5195
5196 cygwin*)
5197   # func_win32_libid is a shell function defined in ltmain.sh
5198   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5199   lt_cv_file_magic_cmd='func_win32_libid'
5200   ;;
5201
5202 mingw* | pw32*)
5203   # Base MSYS/MinGW do not provide the 'file' command needed by
5204   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5205   # unless we find 'file', for example because we are cross-compiling.
5206   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5207   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5208     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5209     lt_cv_file_magic_cmd='func_win32_libid'
5210   else
5211     # Keep this pattern in sync with the one in func_win32_libid.
5212     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5213     lt_cv_file_magic_cmd='$OBJDUMP -f'
5214   fi
5215   ;;
5216
5217 cegcc*)
5218   # use the weaker test based on 'objdump'. See mingw*.
5219   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5220   lt_cv_file_magic_cmd='$OBJDUMP -f'
5221   ;;
5222
5223 darwin* | rhapsody*)
5224   lt_cv_deplibs_check_method=pass_all
5225   ;;
5226
5227 freebsd* | dragonfly*)
5228   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5229     case $host_cpu in
5230     i*86 )
5231       # Not sure whether the presence of OpenBSD here was a mistake.
5232       # Let's accept both of them until this is cleared up.
5233       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5234       lt_cv_file_magic_cmd=/usr/bin/file
5235       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5236       ;;
5237     esac
5238   else
5239     lt_cv_deplibs_check_method=pass_all
5240   fi
5241   ;;
5242
5243 haiku*)
5244   lt_cv_deplibs_check_method=pass_all
5245   ;;
5246
5247 hpux10.20* | hpux11*)
5248   lt_cv_file_magic_cmd=/usr/bin/file
5249   case $host_cpu in
5250   ia64*)
5251     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5252     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5253     ;;
5254   hppa*64*)
5255     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]'
5256     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5257     ;;
5258   *)
5259     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5260     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5261     ;;
5262   esac
5263   ;;
5264
5265 interix[3-9]*)
5266   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5267   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5268   ;;
5269
5270 irix5* | irix6* | nonstopux*)
5271   case $LD in
5272   *-32|*"-32 ") libmagic=32-bit;;
5273   *-n32|*"-n32 ") libmagic=N32;;
5274   *-64|*"-64 ") libmagic=64-bit;;
5275   *) libmagic=never-match;;
5276   esac
5277   lt_cv_deplibs_check_method=pass_all
5278   ;;
5279
5280 # This must be glibc/ELF.
5281 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5282   lt_cv_deplibs_check_method=pass_all
5283   ;;
5284
5285 netbsd* | netbsdelf*-gnu)
5286   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5287     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5288   else
5289     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5290   fi
5291   ;;
5292
5293 newos6*)
5294   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5295   lt_cv_file_magic_cmd=/usr/bin/file
5296   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5297   ;;
5298
5299 *nto* | *qnx*)
5300   lt_cv_deplibs_check_method=pass_all
5301   ;;
5302
5303 openbsd*)
5304   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5305     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5306   else
5307     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5308   fi
5309   ;;
5310
5311 osf3* | osf4* | osf5*)
5312   lt_cv_deplibs_check_method=pass_all
5313   ;;
5314
5315 rdos*)
5316   lt_cv_deplibs_check_method=pass_all
5317   ;;
5318
5319 solaris*)
5320   lt_cv_deplibs_check_method=pass_all
5321   ;;
5322
5323 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5324   lt_cv_deplibs_check_method=pass_all
5325   ;;
5326
5327 sysv4 | sysv4.3*)
5328   case $host_vendor in
5329   motorola)
5330     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]'
5331     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5332     ;;
5333   ncr)
5334     lt_cv_deplibs_check_method=pass_all
5335     ;;
5336   sequent)
5337     lt_cv_file_magic_cmd='/bin/file'
5338     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5339     ;;
5340   sni)
5341     lt_cv_file_magic_cmd='/bin/file'
5342     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5343     lt_cv_file_magic_test_file=/lib/libc.so
5344     ;;
5345   siemens)
5346     lt_cv_deplibs_check_method=pass_all
5347     ;;
5348   pc)
5349     lt_cv_deplibs_check_method=pass_all
5350     ;;
5351   esac
5352   ;;
5353
5354 tpf*)
5355   lt_cv_deplibs_check_method=pass_all
5356   ;;
5357 esac
5358
5359 fi
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5361 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5362
5363 file_magic_glob=
5364 want_nocaseglob=no
5365 if test "$build" = "$host"; then
5366   case $host_os in
5367   mingw* | pw32*)
5368     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5369       want_nocaseglob=yes
5370     else
5371       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5372     fi
5373     ;;
5374   esac
5375 fi
5376
5377 file_magic_cmd=$lt_cv_file_magic_cmd
5378 deplibs_check_method=$lt_cv_deplibs_check_method
5379 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402 if test -n "$ac_tool_prefix"; then
5403   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5404 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if ${ac_cv_prog_DLLTOOL+:} false; then :
5408   $as_echo_n "(cached) " >&6
5409 else
5410   if test -n "$DLLTOOL"; then
5411   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5412 else
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5415 do
5416   IFS=$as_save_IFS
5417   test -z "$as_dir" && as_dir=.
5418     for ac_exec_ext in '' $ac_executable_extensions; do
5419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5420     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422     break 2
5423   fi
5424 done
5425   done
5426 IFS=$as_save_IFS
5427
5428 fi
5429 fi
5430 DLLTOOL=$ac_cv_prog_DLLTOOL
5431 if test -n "$DLLTOOL"; then
5432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5433 $as_echo "$DLLTOOL" >&6; }
5434 else
5435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5437 fi
5438
5439
5440 fi
5441 if test -z "$ac_cv_prog_DLLTOOL"; then
5442   ac_ct_DLLTOOL=$DLLTOOL
5443   # Extract the first word of "dlltool", so it can be a program name with args.
5444 set dummy dlltool; ac_word=$2
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5446 $as_echo_n "checking for $ac_word... " >&6; }
5447 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5448   $as_echo_n "(cached) " >&6
5449 else
5450   if test -n "$ac_ct_DLLTOOL"; then
5451   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5452 else
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 for as_dir in $PATH
5455 do
5456   IFS=$as_save_IFS
5457   test -z "$as_dir" && as_dir=.
5458     for ac_exec_ext in '' $ac_executable_extensions; do
5459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5462     break 2
5463   fi
5464 done
5465   done
5466 IFS=$as_save_IFS
5467
5468 fi
5469 fi
5470 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5471 if test -n "$ac_ct_DLLTOOL"; then
5472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5473 $as_echo "$ac_ct_DLLTOOL" >&6; }
5474 else
5475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5477 fi
5478
5479   if test "x$ac_ct_DLLTOOL" = x; then
5480     DLLTOOL="false"
5481   else
5482     case $cross_compiling:$ac_tool_warned in
5483 yes:)
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5486 ac_tool_warned=yes ;;
5487 esac
5488     DLLTOOL=$ac_ct_DLLTOOL
5489   fi
5490 else
5491   DLLTOOL="$ac_cv_prog_DLLTOOL"
5492 fi
5493
5494 test -z "$DLLTOOL" && DLLTOOL=dlltool
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5506 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5507 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5508   $as_echo_n "(cached) " >&6
5509 else
5510   lt_cv_sharedlib_from_linklib_cmd='unknown'
5511
5512 case $host_os in
5513 cygwin* | mingw* | pw32* | cegcc*)
5514   # two different shell functions defined in ltmain.sh
5515   # decide which to use based on capabilities of $DLLTOOL
5516   case `$DLLTOOL --help 2>&1` in
5517   *--identify-strict*)
5518     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5519     ;;
5520   *)
5521     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5522     ;;
5523   esac
5524   ;;
5525 *)
5526   # fallback: assume linklib IS sharedlib
5527   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5528   ;;
5529 esac
5530
5531 fi
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5533 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5534 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5535 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5536
5537
5538
5539
5540
5541
5542
5543
5544 if test -n "$ac_tool_prefix"; then
5545   for ac_prog in ar
5546   do
5547     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5548 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550 $as_echo_n "checking for $ac_word... " >&6; }
5551 if ${ac_cv_prog_AR+:} false; then :
5552   $as_echo_n "(cached) " >&6
5553 else
5554   if test -n "$AR"; then
5555   ac_cv_prog_AR="$AR" # Let the user override the test.
5556 else
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5559 do
5560   IFS=$as_save_IFS
5561   test -z "$as_dir" && as_dir=.
5562     for ac_exec_ext in '' $ac_executable_extensions; do
5563   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566     break 2
5567   fi
5568 done
5569   done
5570 IFS=$as_save_IFS
5571
5572 fi
5573 fi
5574 AR=$ac_cv_prog_AR
5575 if test -n "$AR"; then
5576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5577 $as_echo "$AR" >&6; }
5578 else
5579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 $as_echo "no" >&6; }
5581 fi
5582
5583
5584     test -n "$AR" && break
5585   done
5586 fi
5587 if test -z "$AR"; then
5588   ac_ct_AR=$AR
5589   for ac_prog in ar
5590 do
5591   # Extract the first word of "$ac_prog", so it can be a program name with args.
5592 set dummy $ac_prog; ac_word=$2
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594 $as_echo_n "checking for $ac_word... " >&6; }
5595 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5596   $as_echo_n "(cached) " >&6
5597 else
5598   if test -n "$ac_ct_AR"; then
5599   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5600 else
5601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 for as_dir in $PATH
5603 do
5604   IFS=$as_save_IFS
5605   test -z "$as_dir" && as_dir=.
5606     for ac_exec_ext in '' $ac_executable_extensions; do
5607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5608     ac_cv_prog_ac_ct_AR="$ac_prog"
5609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610     break 2
5611   fi
5612 done
5613   done
5614 IFS=$as_save_IFS
5615
5616 fi
5617 fi
5618 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5619 if test -n "$ac_ct_AR"; then
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5621 $as_echo "$ac_ct_AR" >&6; }
5622 else
5623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5625 fi
5626
5627
5628   test -n "$ac_ct_AR" && break
5629 done
5630
5631   if test "x$ac_ct_AR" = x; then
5632     AR="false"
5633   else
5634     case $cross_compiling:$ac_tool_warned in
5635 yes:)
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5638 ac_tool_warned=yes ;;
5639 esac
5640     AR=$ac_ct_AR
5641   fi
5642 fi
5643
5644 : ${AR=ar}
5645 : ${AR_FLAGS=cru}
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5658 $as_echo_n "checking for archiver @FILE support... " >&6; }
5659 if ${lt_cv_ar_at_file+:} false; then :
5660   $as_echo_n "(cached) " >&6
5661 else
5662   lt_cv_ar_at_file=no
5663    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h.  */
5665
5666 int
5667 main ()
5668 {
5669
5670   ;
5671   return 0;
5672 }
5673 _ACEOF
5674 if ac_fn_c_try_compile "$LINENO"; then :
5675   echo conftest.$ac_objext > conftest.lst
5676       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5677       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5678   (eval $lt_ar_try) 2>&5
5679   ac_status=$?
5680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5681   test $ac_status = 0; }
5682       if test "$ac_status" -eq 0; then
5683         # Ensure the archiver fails upon bogus file names.
5684         rm -f conftest.$ac_objext libconftest.a
5685         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5686   (eval $lt_ar_try) 2>&5
5687   ac_status=$?
5688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5689   test $ac_status = 0; }
5690         if test "$ac_status" -ne 0; then
5691           lt_cv_ar_at_file=@
5692         fi
5693       fi
5694       rm -f conftest.* libconftest.a
5695
5696 fi
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698
5699 fi
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5701 $as_echo "$lt_cv_ar_at_file" >&6; }
5702
5703 if test "x$lt_cv_ar_at_file" = xno; then
5704   archiver_list_spec=
5705 else
5706   archiver_list_spec=$lt_cv_ar_at_file
5707 fi
5708
5709
5710
5711
5712
5713
5714
5715 if test -n "$ac_tool_prefix"; then
5716   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5717 set dummy ${ac_tool_prefix}strip; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if ${ac_cv_prog_STRIP+:} false; then :
5721   $as_echo_n "(cached) " >&6
5722 else
5723   if test -n "$STRIP"; then
5724   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5728 do
5729   IFS=$as_save_IFS
5730   test -z "$as_dir" && as_dir=.
5731     for ac_exec_ext in '' $ac_executable_extensions; do
5732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735     break 2
5736   fi
5737 done
5738   done
5739 IFS=$as_save_IFS
5740
5741 fi
5742 fi
5743 STRIP=$ac_cv_prog_STRIP
5744 if test -n "$STRIP"; then
5745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5746 $as_echo "$STRIP" >&6; }
5747 else
5748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5750 fi
5751
5752
5753 fi
5754 if test -z "$ac_cv_prog_STRIP"; then
5755   ac_ct_STRIP=$STRIP
5756   # Extract the first word of "strip", so it can be a program name with args.
5757 set dummy strip; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5761   $as_echo_n "(cached) " >&6
5762 else
5763   if test -n "$ac_ct_STRIP"; then
5764   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5768 do
5769   IFS=$as_save_IFS
5770   test -z "$as_dir" && as_dir=.
5771     for ac_exec_ext in '' $ac_executable_extensions; do
5772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5773     ac_cv_prog_ac_ct_STRIP="strip"
5774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775     break 2
5776   fi
5777 done
5778   done
5779 IFS=$as_save_IFS
5780
5781 fi
5782 fi
5783 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5784 if test -n "$ac_ct_STRIP"; then
5785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5786 $as_echo "$ac_ct_STRIP" >&6; }
5787 else
5788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5790 fi
5791
5792   if test "x$ac_ct_STRIP" = x; then
5793     STRIP=":"
5794   else
5795     case $cross_compiling:$ac_tool_warned in
5796 yes:)
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799 ac_tool_warned=yes ;;
5800 esac
5801     STRIP=$ac_ct_STRIP
5802   fi
5803 else
5804   STRIP="$ac_cv_prog_STRIP"
5805 fi
5806
5807 test -z "$STRIP" && STRIP=:
5808
5809
5810
5811
5812
5813
5814 if test -n "$ac_tool_prefix"; then
5815   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5816 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if ${ac_cv_prog_RANLIB+:} false; then :
5820   $as_echo_n "(cached) " >&6
5821 else
5822   if test -n "$RANLIB"; then
5823   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5824 else
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 for as_dir in $PATH
5827 do
5828   IFS=$as_save_IFS
5829   test -z "$as_dir" && as_dir=.
5830     for ac_exec_ext in '' $ac_executable_extensions; do
5831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5832     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834     break 2
5835   fi
5836 done
5837   done
5838 IFS=$as_save_IFS
5839
5840 fi
5841 fi
5842 RANLIB=$ac_cv_prog_RANLIB
5843 if test -n "$RANLIB"; then
5844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5845 $as_echo "$RANLIB" >&6; }
5846 else
5847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5849 fi
5850
5851
5852 fi
5853 if test -z "$ac_cv_prog_RANLIB"; then
5854   ac_ct_RANLIB=$RANLIB
5855   # Extract the first word of "ranlib", so it can be a program name with args.
5856 set dummy ranlib; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5860   $as_echo_n "(cached) " >&6
5861 else
5862   if test -n "$ac_ct_RANLIB"; then
5863   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5864 else
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5867 do
5868   IFS=$as_save_IFS
5869   test -z "$as_dir" && as_dir=.
5870     for ac_exec_ext in '' $ac_executable_extensions; do
5871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872     ac_cv_prog_ac_ct_RANLIB="ranlib"
5873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874     break 2
5875   fi
5876 done
5877   done
5878 IFS=$as_save_IFS
5879
5880 fi
5881 fi
5882 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5883 if test -n "$ac_ct_RANLIB"; then
5884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5885 $as_echo "$ac_ct_RANLIB" >&6; }
5886 else
5887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5889 fi
5890
5891   if test "x$ac_ct_RANLIB" = x; then
5892     RANLIB=":"
5893   else
5894     case $cross_compiling:$ac_tool_warned in
5895 yes:)
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898 ac_tool_warned=yes ;;
5899 esac
5900     RANLIB=$ac_ct_RANLIB
5901   fi
5902 else
5903   RANLIB="$ac_cv_prog_RANLIB"
5904 fi
5905
5906 test -z "$RANLIB" && RANLIB=:
5907
5908
5909
5910
5911
5912
5913 # Determine commands to create old-style static archives.
5914 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5915 old_postinstall_cmds='chmod 644 $oldlib'
5916 old_postuninstall_cmds=
5917
5918 if test -n "$RANLIB"; then
5919   case $host_os in
5920   openbsd*)
5921     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5922     ;;
5923   *)
5924     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5925     ;;
5926   esac
5927   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5928 fi
5929
5930 case $host_os in
5931   darwin*)
5932     lock_old_archive_extraction=yes ;;
5933   *)
5934     lock_old_archive_extraction=no ;;
5935 esac
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975 # If no C compiler was specified, use CC.
5976 LTCC=${LTCC-"$CC"}
5977
5978 # If no C compiler flags were specified, use CFLAGS.
5979 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5980
5981 # Allow CC to be a program name with arguments.
5982 compiler=$CC
5983
5984
5985 # Check for command to grab the raw symbol name followed by C symbol from nm.
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5987 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5988 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5989   $as_echo_n "(cached) " >&6
5990 else
5991
5992 # These are sane defaults that work on at least a few old systems.
5993 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5994
5995 # Character class describing NM global symbol codes.
5996 symcode='[BCDEGRST]'
5997
5998 # Regexp to match symbols that can be accessed directly from C.
5999 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6000
6001 # Define system-specific variables.
6002 case $host_os in
6003 aix*)
6004   symcode='[BCDT]'
6005   ;;
6006 cygwin* | mingw* | pw32* | cegcc*)
6007   symcode='[ABCDGISTW]'
6008   ;;
6009 hpux*)
6010   if test "$host_cpu" = ia64; then
6011     symcode='[ABCDEGRST]'
6012   fi
6013   ;;
6014 irix* | nonstopux*)
6015   symcode='[BCDEGRST]'
6016   ;;
6017 osf*)
6018   symcode='[BCDEGQRST]'
6019   ;;
6020 solaris*)
6021   symcode='[BDRT]'
6022   ;;
6023 sco3.2v5*)
6024   symcode='[DT]'
6025   ;;
6026 sysv4.2uw2*)
6027   symcode='[DT]'
6028   ;;
6029 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6030   symcode='[ABDT]'
6031   ;;
6032 sysv4)
6033   symcode='[DFNSTU]'
6034   ;;
6035 esac
6036
6037 # If we're using GNU nm, then use its standard symbol codes.
6038 case `$NM -V 2>&1` in
6039 *GNU* | *'with BFD'*)
6040   symcode='[ABCDGIRSTW]' ;;
6041 esac
6042
6043 # Transform an extracted symbol line into a proper C declaration.
6044 # Some systems (esp. on ia64) link data and code symbols differently,
6045 # so use this general approach.
6046 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6047
6048 # Transform an extracted symbol line into symbol name and symbol address
6049 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6050 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'"
6051
6052 # Handle CRLF in mingw tool chain
6053 opt_cr=
6054 case $build_os in
6055 mingw*)
6056   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6057   ;;
6058 esac
6059
6060 # Try without a prefix underscore, then with it.
6061 for ac_symprfx in "" "_"; do
6062
6063   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6064   symxfrm="\\1 $ac_symprfx\\2 \\2"
6065
6066   # Write the raw and C identifiers.
6067   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6068     # Fake it for dumpbin and say T for any non-static function
6069     # and D for any global variable.
6070     # Also find C++ and __fastcall symbols from MSVC++,
6071     # which start with @ or ?.
6072     lt_cv_sys_global_symbol_pipe="$AWK '"\
6073 "     {last_section=section; section=\$ 3};"\
6074 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6075 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6076 "     \$ 0!~/External *\|/{next};"\
6077 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6078 "     {if(hide[section]) next};"\
6079 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6080 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6081 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6082 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6083 "     ' prfx=^$ac_symprfx"
6084   else
6085     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6086   fi
6087   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6088
6089   # Check to see that the pipe works correctly.
6090   pipe_works=no
6091
6092   rm -f conftest*
6093   cat > conftest.$ac_ext <<_LT_EOF
6094 #ifdef __cplusplus
6095 extern "C" {
6096 #endif
6097 char nm_test_var;
6098 void nm_test_func(void);
6099 void nm_test_func(void){}
6100 #ifdef __cplusplus
6101 }
6102 #endif
6103 int main(){nm_test_var='a';nm_test_func();return(0);}
6104 _LT_EOF
6105
6106   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6107   (eval $ac_compile) 2>&5
6108   ac_status=$?
6109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6110   test $ac_status = 0; }; then
6111     # Now try to grab the symbols.
6112     nlist=conftest.nm
6113     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6114   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6115   ac_status=$?
6116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6117   test $ac_status = 0; } && test -s "$nlist"; then
6118       # Try sorting and uniquifying the output.
6119       if sort "$nlist" | uniq > "$nlist"T; then
6120         mv -f "$nlist"T "$nlist"
6121       else
6122         rm -f "$nlist"T
6123       fi
6124
6125       # Make sure that we snagged all the symbols we need.
6126       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6127         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6128           cat <<_LT_EOF > conftest.$ac_ext
6129 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6130 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6131 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6132    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6133 # define LT_DLSYM_CONST
6134 #elif defined(__osf__)
6135 /* This system does not cope well with relocations in const data.  */
6136 # define LT_DLSYM_CONST
6137 #else
6138 # define LT_DLSYM_CONST const
6139 #endif
6140
6141 #ifdef __cplusplus
6142 extern "C" {
6143 #endif
6144
6145 _LT_EOF
6146           # Now generate the symbol file.
6147           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6148
6149           cat <<_LT_EOF >> conftest.$ac_ext
6150
6151 /* The mapping between symbol names and symbols.  */
6152 LT_DLSYM_CONST struct {
6153   const char *name;
6154   void       *address;
6155 }
6156 lt__PROGRAM__LTX_preloaded_symbols[] =
6157 {
6158   { "@PROGRAM@", (void *) 0 },
6159 _LT_EOF
6160           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6161           cat <<\_LT_EOF >> conftest.$ac_ext
6162   {0, (void *) 0}
6163 };
6164
6165 /* This works around a problem in FreeBSD linker */
6166 #ifdef FREEBSD_WORKAROUND
6167 static const void *lt_preloaded_setup() {
6168   return lt__PROGRAM__LTX_preloaded_symbols;
6169 }
6170 #endif
6171
6172 #ifdef __cplusplus
6173 }
6174 #endif
6175 _LT_EOF
6176           # Now try linking the two files.
6177           mv conftest.$ac_objext conftstm.$ac_objext
6178           lt_globsym_save_LIBS=$LIBS
6179           lt_globsym_save_CFLAGS=$CFLAGS
6180           LIBS="conftstm.$ac_objext"
6181           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6182           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6183   (eval $ac_link) 2>&5
6184   ac_status=$?
6185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6186   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6187             pipe_works=yes
6188           fi
6189           LIBS=$lt_globsym_save_LIBS
6190           CFLAGS=$lt_globsym_save_CFLAGS
6191         else
6192           echo "cannot find nm_test_func in $nlist" >&5
6193         fi
6194       else
6195         echo "cannot find nm_test_var in $nlist" >&5
6196       fi
6197     else
6198       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6199     fi
6200   else
6201     echo "$progname: failed program was:" >&5
6202     cat conftest.$ac_ext >&5
6203   fi
6204   rm -rf conftest* conftst*
6205
6206   # Do not use the global_symbol_pipe unless it works.
6207   if test "$pipe_works" = yes; then
6208     break
6209   else
6210     lt_cv_sys_global_symbol_pipe=
6211   fi
6212 done
6213
6214 fi
6215
6216 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6217   lt_cv_sys_global_symbol_to_cdecl=
6218 fi
6219 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6221 $as_echo "failed" >&6; }
6222 else
6223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6224 $as_echo "ok" >&6; }
6225 fi
6226
6227 # Response file support.
6228 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6229   nm_file_list_spec='@'
6230 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6231   nm_file_list_spec='@'
6232 fi
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6261 $as_echo_n "checking for sysroot... " >&6; }
6262
6263 # Check whether --with-sysroot was given.
6264 if test "${with_sysroot+set}" = set; then :
6265   withval=$with_sysroot;
6266 else
6267   with_sysroot=no
6268 fi
6269
6270
6271 lt_sysroot=
6272 case ${with_sysroot} in #(
6273  yes)
6274    if test "$GCC" = yes; then
6275      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6276    fi
6277    ;; #(
6278  /*)
6279    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6280    ;; #(
6281  no|'')
6282    ;; #(
6283  *)
6284    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6285 $as_echo "${with_sysroot}" >&6; }
6286    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6287    ;;
6288 esac
6289
6290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6291 $as_echo "${lt_sysroot:-no}" >&6; }
6292
6293
6294
6295
6296
6297 # Check whether --enable-libtool-lock was given.
6298 if test "${enable_libtool_lock+set}" = set; then :
6299   enableval=$enable_libtool_lock;
6300 fi
6301
6302 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6303
6304 # Some flags need to be propagated to the compiler or linker for good
6305 # libtool support.
6306 case $host in
6307 ia64-*-hpux*)
6308   # Find out which ABI we are using.
6309   echo 'int i;' > conftest.$ac_ext
6310   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6311   (eval $ac_compile) 2>&5
6312   ac_status=$?
6313   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6314   test $ac_status = 0; }; then
6315     case `/usr/bin/file conftest.$ac_objext` in
6316       *ELF-32*)
6317         HPUX_IA64_MODE="32"
6318         ;;
6319       *ELF-64*)
6320         HPUX_IA64_MODE="64"
6321         ;;
6322     esac
6323   fi
6324   rm -rf conftest*
6325   ;;
6326 *-*-irix6*)
6327   # Find out which ABI we are using.
6328   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6329   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6330   (eval $ac_compile) 2>&5
6331   ac_status=$?
6332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6333   test $ac_status = 0; }; then
6334     if test "$lt_cv_prog_gnu_ld" = yes; then
6335       case `/usr/bin/file conftest.$ac_objext` in
6336         *32-bit*)
6337           LD="${LD-ld} -melf32bsmip"
6338           ;;
6339         *N32*)
6340           LD="${LD-ld} -melf32bmipn32"
6341           ;;
6342         *64-bit*)
6343           LD="${LD-ld} -melf64bmip"
6344         ;;
6345       esac
6346     else
6347       case `/usr/bin/file conftest.$ac_objext` in
6348         *32-bit*)
6349           LD="${LD-ld} -32"
6350           ;;
6351         *N32*)
6352           LD="${LD-ld} -n32"
6353           ;;
6354         *64-bit*)
6355           LD="${LD-ld} -64"
6356           ;;
6357       esac
6358     fi
6359   fi
6360   rm -rf conftest*
6361   ;;
6362
6363 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6364 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6365   # Find out which ABI we are using.
6366   echo 'int i;' > conftest.$ac_ext
6367   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6368   (eval $ac_compile) 2>&5
6369   ac_status=$?
6370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6371   test $ac_status = 0; }; then
6372     case `/usr/bin/file conftest.o` in
6373       *32-bit*)
6374         case $host in
6375           x86_64-*kfreebsd*-gnu)
6376             LD="${LD-ld} -m elf_i386_fbsd"
6377             ;;
6378           x86_64-*linux*)
6379             LD="${LD-ld} -m elf_i386"
6380             ;;
6381           ppc64-*linux*|powerpc64-*linux*)
6382             LD="${LD-ld} -m elf32ppclinux"
6383             ;;
6384           s390x-*linux*)
6385             LD="${LD-ld} -m elf_s390"
6386             ;;
6387           sparc64-*linux*)
6388             LD="${LD-ld} -m elf32_sparc"
6389             ;;
6390         esac
6391         ;;
6392       *64-bit*)
6393         case $host in
6394           x86_64-*kfreebsd*-gnu)
6395             LD="${LD-ld} -m elf_x86_64_fbsd"
6396             ;;
6397           x86_64-*linux*)
6398             LD="${LD-ld} -m elf_x86_64"
6399             ;;
6400           ppc*-*linux*|powerpc*-*linux*)
6401             LD="${LD-ld} -m elf64ppc"
6402             ;;
6403           s390*-*linux*|s390*-*tpf*)
6404             LD="${LD-ld} -m elf64_s390"
6405             ;;
6406           sparc*-*linux*)
6407             LD="${LD-ld} -m elf64_sparc"
6408             ;;
6409         esac
6410         ;;
6411     esac
6412   fi
6413   rm -rf conftest*
6414   ;;
6415
6416 *-*-sco3.2v5*)
6417   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6418   SAVE_CFLAGS="$CFLAGS"
6419   CFLAGS="$CFLAGS -belf"
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6421 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6422 if ${lt_cv_cc_needs_belf+:} false; then :
6423   $as_echo_n "(cached) " >&6
6424 else
6425   ac_ext=c
6426 ac_cpp='$CPP $CPPFLAGS'
6427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6430
6431      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432 /* end confdefs.h.  */
6433
6434 int
6435 main ()
6436 {
6437
6438   ;
6439   return 0;
6440 }
6441 _ACEOF
6442 if ac_fn_c_try_link "$LINENO"; then :
6443   lt_cv_cc_needs_belf=yes
6444 else
6445   lt_cv_cc_needs_belf=no
6446 fi
6447 rm -f core conftest.err conftest.$ac_objext \
6448     conftest$ac_exeext conftest.$ac_ext
6449      ac_ext=c
6450 ac_cpp='$CPP $CPPFLAGS'
6451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6454
6455 fi
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6457 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6458   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6459     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6460     CFLAGS="$SAVE_CFLAGS"
6461   fi
6462   ;;
6463 *-*solaris*)
6464   # Find out which ABI we are using.
6465   echo 'int i;' > conftest.$ac_ext
6466   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6467   (eval $ac_compile) 2>&5
6468   ac_status=$?
6469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6470   test $ac_status = 0; }; then
6471     case `/usr/bin/file conftest.o` in
6472     *64-bit*)
6473       case $lt_cv_prog_gnu_ld in
6474       yes*)
6475         case $host in
6476         i?86-*-solaris*)
6477           LD="${LD-ld} -m elf_x86_64"
6478           ;;
6479         sparc*-*-solaris*)
6480           LD="${LD-ld} -m elf64_sparc"
6481           ;;
6482         esac
6483         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6484         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6485           LD="${LD-ld}_sol2"
6486         fi
6487         ;;
6488       *)
6489         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6490           LD="${LD-ld} -64"
6491         fi
6492         ;;
6493       esac
6494       ;;
6495     esac
6496   fi
6497   rm -rf conftest*
6498   ;;
6499 esac
6500
6501 need_locks="$enable_libtool_lock"
6502
6503 if test -n "$ac_tool_prefix"; then
6504   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6505 set dummy ${ac_tool_prefix}mt; ac_word=$2
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507 $as_echo_n "checking for $ac_word... " >&6; }
6508 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6509   $as_echo_n "(cached) " >&6
6510 else
6511   if test -n "$MANIFEST_TOOL"; then
6512   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6513 else
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 for as_dir in $PATH
6516 do
6517   IFS=$as_save_IFS
6518   test -z "$as_dir" && as_dir=.
6519     for ac_exec_ext in '' $ac_executable_extensions; do
6520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6521     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6523     break 2
6524   fi
6525 done
6526   done
6527 IFS=$as_save_IFS
6528
6529 fi
6530 fi
6531 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6532 if test -n "$MANIFEST_TOOL"; then
6533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6534 $as_echo "$MANIFEST_TOOL" >&6; }
6535 else
6536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6538 fi
6539
6540
6541 fi
6542 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6543   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6544   # Extract the first word of "mt", so it can be a program name with args.
6545 set dummy mt; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6549   $as_echo_n "(cached) " >&6
6550 else
6551   if test -n "$ac_ct_MANIFEST_TOOL"; then
6552   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6556 do
6557   IFS=$as_save_IFS
6558   test -z "$as_dir" && as_dir=.
6559     for ac_exec_ext in '' $ac_executable_extensions; do
6560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563     break 2
6564   fi
6565 done
6566   done
6567 IFS=$as_save_IFS
6568
6569 fi
6570 fi
6571 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6572 if test -n "$ac_ct_MANIFEST_TOOL"; then
6573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6574 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6575 else
6576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6578 fi
6579
6580   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6581     MANIFEST_TOOL=":"
6582   else
6583     case $cross_compiling:$ac_tool_warned in
6584 yes:)
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6587 ac_tool_warned=yes ;;
6588 esac
6589     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6590   fi
6591 else
6592   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6593 fi
6594
6595 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6597 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6598 if ${lt_cv_path_mainfest_tool+:} false; then :
6599   $as_echo_n "(cached) " >&6
6600 else
6601   lt_cv_path_mainfest_tool=no
6602   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6603   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6604   cat conftest.err >&5
6605   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6606     lt_cv_path_mainfest_tool=yes
6607   fi
6608   rm -f conftest*
6609 fi
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6611 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6612 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6613   MANIFEST_TOOL=:
6614 fi
6615
6616
6617
6618
6619
6620
6621   case $host_os in
6622     rhapsody* | darwin*)
6623     if test -n "$ac_tool_prefix"; then
6624   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6625 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6629   $as_echo_n "(cached) " >&6
6630 else
6631   if test -n "$DSYMUTIL"; then
6632   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6633 else
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637   IFS=$as_save_IFS
6638   test -z "$as_dir" && as_dir=.
6639     for ac_exec_ext in '' $ac_executable_extensions; do
6640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6641     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643     break 2
6644   fi
6645 done
6646   done
6647 IFS=$as_save_IFS
6648
6649 fi
6650 fi
6651 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6652 if test -n "$DSYMUTIL"; then
6653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6654 $as_echo "$DSYMUTIL" >&6; }
6655 else
6656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6658 fi
6659
6660
6661 fi
6662 if test -z "$ac_cv_prog_DSYMUTIL"; then
6663   ac_ct_DSYMUTIL=$DSYMUTIL
6664   # Extract the first word of "dsymutil", so it can be a program name with args.
6665 set dummy dsymutil; ac_word=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6669   $as_echo_n "(cached) " >&6
6670 else
6671   if test -n "$ac_ct_DSYMUTIL"; then
6672   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6673 else
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677   IFS=$as_save_IFS
6678   test -z "$as_dir" && as_dir=.
6679     for ac_exec_ext in '' $ac_executable_extensions; do
6680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683     break 2
6684   fi
6685 done
6686   done
6687 IFS=$as_save_IFS
6688
6689 fi
6690 fi
6691 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6692 if test -n "$ac_ct_DSYMUTIL"; then
6693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6694 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6695 else
6696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6698 fi
6699
6700   if test "x$ac_ct_DSYMUTIL" = x; then
6701     DSYMUTIL=":"
6702   else
6703     case $cross_compiling:$ac_tool_warned in
6704 yes:)
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6707 ac_tool_warned=yes ;;
6708 esac
6709     DSYMUTIL=$ac_ct_DSYMUTIL
6710   fi
6711 else
6712   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6713 fi
6714
6715     if test -n "$ac_tool_prefix"; then
6716   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_NMEDIT+:} false; then :
6721   $as_echo_n "(cached) " >&6
6722 else
6723   if test -n "$NMEDIT"; then
6724   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729   IFS=$as_save_IFS
6730   test -z "$as_dir" && as_dir=.
6731     for ac_exec_ext in '' $ac_executable_extensions; do
6732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735     break 2
6736   fi
6737 done
6738   done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 NMEDIT=$ac_cv_prog_NMEDIT
6744 if test -n "$NMEDIT"; then
6745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6746 $as_echo "$NMEDIT" >&6; }
6747 else
6748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6750 fi
6751
6752
6753 fi
6754 if test -z "$ac_cv_prog_NMEDIT"; then
6755   ac_ct_NMEDIT=$NMEDIT
6756   # Extract the first word of "nmedit", so it can be a program name with args.
6757 set dummy nmedit; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6761   $as_echo_n "(cached) " >&6
6762 else
6763   if test -n "$ac_ct_NMEDIT"; then
6764   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769   IFS=$as_save_IFS
6770   test -z "$as_dir" && as_dir=.
6771     for ac_exec_ext in '' $ac_executable_extensions; do
6772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775     break 2
6776   fi
6777 done
6778   done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6784 if test -n "$ac_ct_NMEDIT"; then
6785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6786 $as_echo "$ac_ct_NMEDIT" >&6; }
6787 else
6788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6790 fi
6791
6792   if test "x$ac_ct_NMEDIT" = x; then
6793     NMEDIT=":"
6794   else
6795     case $cross_compiling:$ac_tool_warned in
6796 yes:)
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6799 ac_tool_warned=yes ;;
6800 esac
6801     NMEDIT=$ac_ct_NMEDIT
6802   fi
6803 else
6804   NMEDIT="$ac_cv_prog_NMEDIT"
6805 fi
6806
6807     if test -n "$ac_tool_prefix"; then
6808   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6809 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if ${ac_cv_prog_LIPO+:} false; then :
6813   $as_echo_n "(cached) " >&6
6814 else
6815   if test -n "$LIPO"; then
6816   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821   IFS=$as_save_IFS
6822   test -z "$as_dir" && as_dir=.
6823     for ac_exec_ext in '' $ac_executable_extensions; do
6824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827     break 2
6828   fi
6829 done
6830   done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 LIPO=$ac_cv_prog_LIPO
6836 if test -n "$LIPO"; then
6837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6838 $as_echo "$LIPO" >&6; }
6839 else
6840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6842 fi
6843
6844
6845 fi
6846 if test -z "$ac_cv_prog_LIPO"; then
6847   ac_ct_LIPO=$LIPO
6848   # Extract the first word of "lipo", so it can be a program name with args.
6849 set dummy lipo; ac_word=$2
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851 $as_echo_n "checking for $ac_word... " >&6; }
6852 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6853   $as_echo_n "(cached) " >&6
6854 else
6855   if test -n "$ac_ct_LIPO"; then
6856   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6857 else
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 for as_dir in $PATH
6860 do
6861   IFS=$as_save_IFS
6862   test -z "$as_dir" && as_dir=.
6863     for ac_exec_ext in '' $ac_executable_extensions; do
6864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6865     ac_cv_prog_ac_ct_LIPO="lipo"
6866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867     break 2
6868   fi
6869 done
6870   done
6871 IFS=$as_save_IFS
6872
6873 fi
6874 fi
6875 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6876 if test -n "$ac_ct_LIPO"; then
6877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6878 $as_echo "$ac_ct_LIPO" >&6; }
6879 else
6880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881 $as_echo "no" >&6; }
6882 fi
6883
6884   if test "x$ac_ct_LIPO" = x; then
6885     LIPO=":"
6886   else
6887     case $cross_compiling:$ac_tool_warned in
6888 yes:)
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6891 ac_tool_warned=yes ;;
6892 esac
6893     LIPO=$ac_ct_LIPO
6894   fi
6895 else
6896   LIPO="$ac_cv_prog_LIPO"
6897 fi
6898
6899     if test -n "$ac_tool_prefix"; then
6900   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6901 set dummy ${ac_tool_prefix}otool; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if ${ac_cv_prog_OTOOL+:} false; then :
6905   $as_echo_n "(cached) " >&6
6906 else
6907   if test -n "$OTOOL"; then
6908   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6909 else
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6912 do
6913   IFS=$as_save_IFS
6914   test -z "$as_dir" && as_dir=.
6915     for ac_exec_ext in '' $ac_executable_extensions; do
6916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919     break 2
6920   fi
6921 done
6922   done
6923 IFS=$as_save_IFS
6924
6925 fi
6926 fi
6927 OTOOL=$ac_cv_prog_OTOOL
6928 if test -n "$OTOOL"; then
6929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6930 $as_echo "$OTOOL" >&6; }
6931 else
6932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6934 fi
6935
6936
6937 fi
6938 if test -z "$ac_cv_prog_OTOOL"; then
6939   ac_ct_OTOOL=$OTOOL
6940   # Extract the first word of "otool", so it can be a program name with args.
6941 set dummy otool; ac_word=$2
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943 $as_echo_n "checking for $ac_word... " >&6; }
6944 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6945   $as_echo_n "(cached) " >&6
6946 else
6947   if test -n "$ac_ct_OTOOL"; then
6948   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6949 else
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6952 do
6953   IFS=$as_save_IFS
6954   test -z "$as_dir" && as_dir=.
6955     for ac_exec_ext in '' $ac_executable_extensions; do
6956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957     ac_cv_prog_ac_ct_OTOOL="otool"
6958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959     break 2
6960   fi
6961 done
6962   done
6963 IFS=$as_save_IFS
6964
6965 fi
6966 fi
6967 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6968 if test -n "$ac_ct_OTOOL"; then
6969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6970 $as_echo "$ac_ct_OTOOL" >&6; }
6971 else
6972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6974 fi
6975
6976   if test "x$ac_ct_OTOOL" = x; then
6977     OTOOL=":"
6978   else
6979     case $cross_compiling:$ac_tool_warned in
6980 yes:)
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983 ac_tool_warned=yes ;;
6984 esac
6985     OTOOL=$ac_ct_OTOOL
6986   fi
6987 else
6988   OTOOL="$ac_cv_prog_OTOOL"
6989 fi
6990
6991     if test -n "$ac_tool_prefix"; then
6992   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6993 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995 $as_echo_n "checking for $ac_word... " >&6; }
6996 if ${ac_cv_prog_OTOOL64+:} false; then :
6997   $as_echo_n "(cached) " >&6
6998 else
6999   if test -n "$OTOOL64"; then
7000   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7001 else
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7004 do
7005   IFS=$as_save_IFS
7006   test -z "$as_dir" && as_dir=.
7007     for ac_exec_ext in '' $ac_executable_extensions; do
7008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011     break 2
7012   fi
7013 done
7014   done
7015 IFS=$as_save_IFS
7016
7017 fi
7018 fi
7019 OTOOL64=$ac_cv_prog_OTOOL64
7020 if test -n "$OTOOL64"; then
7021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7022 $as_echo "$OTOOL64" >&6; }
7023 else
7024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 $as_echo "no" >&6; }
7026 fi
7027
7028
7029 fi
7030 if test -z "$ac_cv_prog_OTOOL64"; then
7031   ac_ct_OTOOL64=$OTOOL64
7032   # Extract the first word of "otool64", so it can be a program name with args.
7033 set dummy otool64; ac_word=$2
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035 $as_echo_n "checking for $ac_word... " >&6; }
7036 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7037   $as_echo_n "(cached) " >&6
7038 else
7039   if test -n "$ac_ct_OTOOL64"; then
7040   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7041 else
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 for as_dir in $PATH
7044 do
7045   IFS=$as_save_IFS
7046   test -z "$as_dir" && as_dir=.
7047     for ac_exec_ext in '' $ac_executable_extensions; do
7048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7049     ac_cv_prog_ac_ct_OTOOL64="otool64"
7050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051     break 2
7052   fi
7053 done
7054   done
7055 IFS=$as_save_IFS
7056
7057 fi
7058 fi
7059 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7060 if test -n "$ac_ct_OTOOL64"; then
7061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7062 $as_echo "$ac_ct_OTOOL64" >&6; }
7063 else
7064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7066 fi
7067
7068   if test "x$ac_ct_OTOOL64" = x; then
7069     OTOOL64=":"
7070   else
7071     case $cross_compiling:$ac_tool_warned in
7072 yes:)
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075 ac_tool_warned=yes ;;
7076 esac
7077     OTOOL64=$ac_ct_OTOOL64
7078   fi
7079 else
7080   OTOOL64="$ac_cv_prog_OTOOL64"
7081 fi
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7110 $as_echo_n "checking for -single_module linker flag... " >&6; }
7111 if ${lt_cv_apple_cc_single_mod+:} false; then :
7112   $as_echo_n "(cached) " >&6
7113 else
7114   lt_cv_apple_cc_single_mod=no
7115       if test -z "${LT_MULTI_MODULE}"; then
7116         # By default we will add the -single_module flag. You can override
7117         # by either setting the environment variable LT_MULTI_MODULE
7118         # non-empty at configure time, or by adding -multi_module to the
7119         # link flags.
7120         rm -rf libconftest.dylib*
7121         echo "int foo(void){return 1;}" > conftest.c
7122         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7123 -dynamiclib -Wl,-single_module conftest.c" >&5
7124         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7125           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7126         _lt_result=$?
7127         # If there is a non-empty error log, and "single_module"
7128         # appears in it, assume the flag caused a linker warning
7129         if test -s conftest.err && $GREP single_module conftest.err; then
7130           cat conftest.err >&5
7131         # Otherwise, if the output was created with a 0 exit code from
7132         # the compiler, it worked.
7133         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7134           lt_cv_apple_cc_single_mod=yes
7135         else
7136           cat conftest.err >&5
7137         fi
7138         rm -rf libconftest.dylib*
7139         rm -f conftest.*
7140       fi
7141 fi
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7143 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7144
7145     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7146 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7147 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7148   $as_echo_n "(cached) " >&6
7149 else
7150   lt_cv_ld_exported_symbols_list=no
7151       save_LDFLAGS=$LDFLAGS
7152       echo "_main" > conftest.sym
7153       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7154       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h.  */
7156
7157 int
7158 main ()
7159 {
7160
7161   ;
7162   return 0;
7163 }
7164 _ACEOF
7165 if ac_fn_c_try_link "$LINENO"; then :
7166   lt_cv_ld_exported_symbols_list=yes
7167 else
7168   lt_cv_ld_exported_symbols_list=no
7169 fi
7170 rm -f core conftest.err conftest.$ac_objext \
7171     conftest$ac_exeext conftest.$ac_ext
7172         LDFLAGS="$save_LDFLAGS"
7173
7174 fi
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7176 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7177
7178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7179 $as_echo_n "checking for -force_load linker flag... " >&6; }
7180 if ${lt_cv_ld_force_load+:} false; then :
7181   $as_echo_n "(cached) " >&6
7182 else
7183   lt_cv_ld_force_load=no
7184       cat > conftest.c << _LT_EOF
7185 int forced_loaded() { return 2;}
7186 _LT_EOF
7187       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7188       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7189       echo "$AR cru libconftest.a conftest.o" >&5
7190       $AR cru libconftest.a conftest.o 2>&5
7191       echo "$RANLIB libconftest.a" >&5
7192       $RANLIB libconftest.a 2>&5
7193       cat > conftest.c << _LT_EOF
7194 int main() { return 0;}
7195 _LT_EOF
7196       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7197       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7198       _lt_result=$?
7199       if test -s conftest.err && $GREP force_load conftest.err; then
7200         cat conftest.err >&5
7201       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7202         lt_cv_ld_force_load=yes
7203       else
7204         cat conftest.err >&5
7205       fi
7206         rm -f conftest.err libconftest.a conftest conftest.c
7207         rm -rf conftest.dSYM
7208
7209 fi
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7211 $as_echo "$lt_cv_ld_force_load" >&6; }
7212     case $host_os in
7213     rhapsody* | darwin1.[012])
7214       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7215     darwin1.*)
7216       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7217     darwin*) # darwin 5.x on
7218       # if running on 10.5 or later, the deployment target defaults
7219       # to the OS version, if on x86, and 10.4, the deployment
7220       # target defaults to 10.4. Don't you love it?
7221       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7222         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7223           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7224         10.[012]*)
7225           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7226         10.*)
7227           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7228       esac
7229     ;;
7230   esac
7231     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7232       _lt_dar_single_mod='$single_module'
7233     fi
7234     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7235       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7236     else
7237       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7238     fi
7239     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7240       _lt_dsymutil='~$DSYMUTIL $lib || :'
7241     else
7242       _lt_dsymutil=
7243     fi
7244     ;;
7245   esac
7246
7247 ac_ext=c
7248 ac_cpp='$CPP $CPPFLAGS'
7249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7253 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7254 # On Suns, sometimes $CPP names a directory.
7255 if test -n "$CPP" && test -d "$CPP"; then
7256   CPP=
7257 fi
7258 if test -z "$CPP"; then
7259   if ${ac_cv_prog_CPP+:} false; then :
7260   $as_echo_n "(cached) " >&6
7261 else
7262       # Double quotes because CPP needs to be expanded
7263     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7264     do
7265       ac_preproc_ok=false
7266 for ac_c_preproc_warn_flag in '' yes
7267 do
7268   # Use a header file that comes with gcc, so configuring glibc
7269   # with a fresh cross-compiler works.
7270   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7271   # <limits.h> exists even on freestanding compilers.
7272   # On the NeXT, cc -E runs the code through the compiler's parser,
7273   # not just through cpp. "Syntax error" is here to catch this case.
7274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h.  */
7276 #ifdef __STDC__
7277 # include <limits.h>
7278 #else
7279 # include <assert.h>
7280 #endif
7281                      Syntax error
7282 _ACEOF
7283 if ac_fn_c_try_cpp "$LINENO"; then :
7284
7285 else
7286   # Broken: fails on valid input.
7287 continue
7288 fi
7289 rm -f conftest.err conftest.i conftest.$ac_ext
7290
7291   # OK, works on sane cases.  Now check whether nonexistent headers
7292   # can be detected and how.
7293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h.  */
7295 #include <ac_nonexistent.h>
7296 _ACEOF
7297 if ac_fn_c_try_cpp "$LINENO"; then :
7298   # Broken: success on invalid input.
7299 continue
7300 else
7301   # Passes both tests.
7302 ac_preproc_ok=:
7303 break
7304 fi
7305 rm -f conftest.err conftest.i conftest.$ac_ext
7306
7307 done
7308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7309 rm -f conftest.i conftest.err conftest.$ac_ext
7310 if $ac_preproc_ok; then :
7311   break
7312 fi
7313
7314     done
7315     ac_cv_prog_CPP=$CPP
7316
7317 fi
7318   CPP=$ac_cv_prog_CPP
7319 else
7320   ac_cv_prog_CPP=$CPP
7321 fi
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7323 $as_echo "$CPP" >&6; }
7324 ac_preproc_ok=false
7325 for ac_c_preproc_warn_flag in '' yes
7326 do
7327   # Use a header file that comes with gcc, so configuring glibc
7328   # with a fresh cross-compiler works.
7329   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7330   # <limits.h> exists even on freestanding compilers.
7331   # On the NeXT, cc -E runs the code through the compiler's parser,
7332   # not just through cpp. "Syntax error" is here to catch this case.
7333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334 /* end confdefs.h.  */
7335 #ifdef __STDC__
7336 # include <limits.h>
7337 #else
7338 # include <assert.h>
7339 #endif
7340                      Syntax error
7341 _ACEOF
7342 if ac_fn_c_try_cpp "$LINENO"; then :
7343
7344 else
7345   # Broken: fails on valid input.
7346 continue
7347 fi
7348 rm -f conftest.err conftest.i conftest.$ac_ext
7349
7350   # OK, works on sane cases.  Now check whether nonexistent headers
7351   # can be detected and how.
7352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h.  */
7354 #include <ac_nonexistent.h>
7355 _ACEOF
7356 if ac_fn_c_try_cpp "$LINENO"; then :
7357   # Broken: success on invalid input.
7358 continue
7359 else
7360   # Passes both tests.
7361 ac_preproc_ok=:
7362 break
7363 fi
7364 rm -f conftest.err conftest.i conftest.$ac_ext
7365
7366 done
7367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7368 rm -f conftest.i conftest.err conftest.$ac_ext
7369 if $ac_preproc_ok; then :
7370
7371 else
7372   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7374 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7375 See \`config.log' for more details" "$LINENO" 5; }
7376 fi
7377
7378 ac_ext=c
7379 ac_cpp='$CPP $CPPFLAGS'
7380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7383
7384
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7386 $as_echo_n "checking for ANSI C header files... " >&6; }
7387 if ${ac_cv_header_stdc+:} false; then :
7388   $as_echo_n "(cached) " >&6
7389 else
7390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h.  */
7392 #include <stdlib.h>
7393 #include <stdarg.h>
7394 #include <string.h>
7395 #include <float.h>
7396
7397 int
7398 main ()
7399 {
7400
7401   ;
7402   return 0;
7403 }
7404 _ACEOF
7405 if ac_fn_c_try_compile "$LINENO"; then :
7406   ac_cv_header_stdc=yes
7407 else
7408   ac_cv_header_stdc=no
7409 fi
7410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7411
7412 if test $ac_cv_header_stdc = yes; then
7413   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h.  */
7416 #include <string.h>
7417
7418 _ACEOF
7419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7420   $EGREP "memchr" >/dev/null 2>&1; then :
7421
7422 else
7423   ac_cv_header_stdc=no
7424 fi
7425 rm -f conftest*
7426
7427 fi
7428
7429 if test $ac_cv_header_stdc = yes; then
7430   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h.  */
7433 #include <stdlib.h>
7434
7435 _ACEOF
7436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7437   $EGREP "free" >/dev/null 2>&1; then :
7438
7439 else
7440   ac_cv_header_stdc=no
7441 fi
7442 rm -f conftest*
7443
7444 fi
7445
7446 if test $ac_cv_header_stdc = yes; then
7447   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7448   if test "$cross_compiling" = yes; then :
7449   :
7450 else
7451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h.  */
7453 #include <ctype.h>
7454 #include <stdlib.h>
7455 #if ((' ' & 0x0FF) == 0x020)
7456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7458 #else
7459 # define ISLOWER(c) \
7460                    (('a' <= (c) && (c) <= 'i') \
7461                      || ('j' <= (c) && (c) <= 'r') \
7462                      || ('s' <= (c) && (c) <= 'z'))
7463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7464 #endif
7465
7466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7467 int
7468 main ()
7469 {
7470   int i;
7471   for (i = 0; i < 256; i++)
7472     if (XOR (islower (i), ISLOWER (i))
7473         || toupper (i) != TOUPPER (i))
7474       return 2;
7475   return 0;
7476 }
7477 _ACEOF
7478 if ac_fn_c_try_run "$LINENO"; then :
7479
7480 else
7481   ac_cv_header_stdc=no
7482 fi
7483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7484   conftest.$ac_objext conftest.beam conftest.$ac_ext
7485 fi
7486
7487 fi
7488 fi
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7490 $as_echo "$ac_cv_header_stdc" >&6; }
7491 if test $ac_cv_header_stdc = yes; then
7492
7493 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7494
7495 fi
7496
7497 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7498 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7499                   inttypes.h stdint.h unistd.h
7500 do :
7501   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7502 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7503 "
7504 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7505   cat >>confdefs.h <<_ACEOF
7506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7507 _ACEOF
7508
7509 fi
7510
7511 done
7512
7513
7514 for ac_header in dlfcn.h
7515 do :
7516   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7517 "
7518 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7519   cat >>confdefs.h <<_ACEOF
7520 #define HAVE_DLFCN_H 1
7521 _ACEOF
7522
7523 fi
7524
7525 done
7526
7527
7528
7529
7530
7531 # Set options
7532
7533
7534
7535         enable_dlopen=no
7536
7537
7538   enable_win32_dll=no
7539
7540
7541             # Check whether --enable-shared was given.
7542 if test "${enable_shared+set}" = set; then :
7543   enableval=$enable_shared; p=${PACKAGE-default}
7544     case $enableval in
7545     yes) enable_shared=yes ;;
7546     no) enable_shared=no ;;
7547     *)
7548       enable_shared=no
7549       # Look at the argument we got.  We use all the common list separators.
7550       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7551       for pkg in $enableval; do
7552         IFS="$lt_save_ifs"
7553         if test "X$pkg" = "X$p"; then
7554           enable_shared=yes
7555         fi
7556       done
7557       IFS="$lt_save_ifs"
7558       ;;
7559     esac
7560 else
7561   enable_shared=yes
7562 fi
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574 # Check whether --with-pic was given.
7575 if test "${with_pic+set}" = set; then :
7576   withval=$with_pic; lt_p=${PACKAGE-default}
7577     case $withval in
7578     yes|no) pic_mode=$withval ;;
7579     *)
7580       pic_mode=default
7581       # Look at the argument we got.  We use all the common list separators.
7582       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7583       for lt_pkg in $withval; do
7584         IFS="$lt_save_ifs"
7585         if test "X$lt_pkg" = "X$lt_p"; then
7586           pic_mode=yes
7587         fi
7588       done
7589       IFS="$lt_save_ifs"
7590       ;;
7591     esac
7592 else
7593   pic_mode=default
7594 fi
7595
7596
7597 test -z "$pic_mode" && pic_mode=default
7598
7599
7600
7601
7602
7603
7604
7605   # Check whether --enable-fast-install was given.
7606 if test "${enable_fast_install+set}" = set; then :
7607   enableval=$enable_fast_install; p=${PACKAGE-default}
7608     case $enableval in
7609     yes) enable_fast_install=yes ;;
7610     no) enable_fast_install=no ;;
7611     *)
7612       enable_fast_install=no
7613       # Look at the argument we got.  We use all the common list separators.
7614       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7615       for pkg in $enableval; do
7616         IFS="$lt_save_ifs"
7617         if test "X$pkg" = "X$p"; then
7618           enable_fast_install=yes
7619         fi
7620       done
7621       IFS="$lt_save_ifs"
7622       ;;
7623     esac
7624 else
7625   enable_fast_install=yes
7626 fi
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638 # This can be used to rebuild libtool when needed
7639 LIBTOOL_DEPS="$ltmain"
7640
7641 # Always use our own libtool.
7642 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673 test -z "$LN_S" && LN_S="ln -s"
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688 if test -n "${ZSH_VERSION+set}" ; then
7689    setopt NO_GLOB_SUBST
7690 fi
7691
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7693 $as_echo_n "checking for objdir... " >&6; }
7694 if ${lt_cv_objdir+:} false; then :
7695   $as_echo_n "(cached) " >&6
7696 else
7697   rm -f .libs 2>/dev/null
7698 mkdir .libs 2>/dev/null
7699 if test -d .libs; then
7700   lt_cv_objdir=.libs
7701 else
7702   # MS-DOS does not allow filenames that begin with a dot.
7703   lt_cv_objdir=_libs
7704 fi
7705 rmdir .libs 2>/dev/null
7706 fi
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7708 $as_echo "$lt_cv_objdir" >&6; }
7709 objdir=$lt_cv_objdir
7710
7711
7712
7713
7714
7715 cat >>confdefs.h <<_ACEOF
7716 #define LT_OBJDIR "$lt_cv_objdir/"
7717 _ACEOF
7718
7719
7720
7721
7722 case $host_os in
7723 aix3*)
7724   # AIX sometimes has problems with the GCC collect2 program.  For some
7725   # reason, if we set the COLLECT_NAMES environment variable, the problems
7726   # vanish in a puff of smoke.
7727   if test "X${COLLECT_NAMES+set}" != Xset; then
7728     COLLECT_NAMES=
7729     export COLLECT_NAMES
7730   fi
7731   ;;
7732 esac
7733
7734 # Global variables:
7735 ofile=libtool
7736 can_build_shared=yes
7737
7738 # All known linkers require a `.a' archive for static linking (except MSVC,
7739 # which needs '.lib').
7740 libext=a
7741
7742 with_gnu_ld="$lt_cv_prog_gnu_ld"
7743
7744 old_CC="$CC"
7745 old_CFLAGS="$CFLAGS"
7746
7747 # Set sane defaults for various variables
7748 test -z "$CC" && CC=cc
7749 test -z "$LTCC" && LTCC=$CC
7750 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7751 test -z "$LD" && LD=ld
7752 test -z "$ac_objext" && ac_objext=o
7753
7754 for cc_temp in $compiler""; do
7755   case $cc_temp in
7756     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7757     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7758     \-*) ;;
7759     *) break;;
7760   esac
7761 done
7762 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7763
7764
7765 # Only perform the check for file, if the check method requires it
7766 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7767 case $deplibs_check_method in
7768 file_magic*)
7769   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7771 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7772 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7773   $as_echo_n "(cached) " >&6
7774 else
7775   case $MAGIC_CMD in
7776 [\\/*] |  ?:[\\/]*)
7777   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7778   ;;
7779 *)
7780   lt_save_MAGIC_CMD="$MAGIC_CMD"
7781   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7782   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7783   for ac_dir in $ac_dummy; do
7784     IFS="$lt_save_ifs"
7785     test -z "$ac_dir" && ac_dir=.
7786     if test -f $ac_dir/${ac_tool_prefix}file; then
7787       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7788       if test -n "$file_magic_test_file"; then
7789         case $deplibs_check_method in
7790         "file_magic "*)
7791           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7792           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7793           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7794             $EGREP "$file_magic_regex" > /dev/null; then
7795             :
7796           else
7797             cat <<_LT_EOF 1>&2
7798
7799 *** Warning: the command libtool uses to detect shared libraries,
7800 *** $file_magic_cmd, produces output that libtool cannot recognize.
7801 *** The result is that libtool may fail to recognize shared libraries
7802 *** as such.  This will affect the creation of libtool libraries that
7803 *** depend on shared libraries, but programs linked with such libtool
7804 *** libraries will work regardless of this problem.  Nevertheless, you
7805 *** may want to report the problem to your system manager and/or to
7806 *** bug-libtool@gnu.org
7807
7808 _LT_EOF
7809           fi ;;
7810         esac
7811       fi
7812       break
7813     fi
7814   done
7815   IFS="$lt_save_ifs"
7816   MAGIC_CMD="$lt_save_MAGIC_CMD"
7817   ;;
7818 esac
7819 fi
7820
7821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7822 if test -n "$MAGIC_CMD"; then
7823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7824 $as_echo "$MAGIC_CMD" >&6; }
7825 else
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7828 fi
7829
7830
7831
7832
7833
7834 if test -z "$lt_cv_path_MAGIC_CMD"; then
7835   if test -n "$ac_tool_prefix"; then
7836     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7837 $as_echo_n "checking for file... " >&6; }
7838 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7839   $as_echo_n "(cached) " >&6
7840 else
7841   case $MAGIC_CMD in
7842 [\\/*] |  ?:[\\/]*)
7843   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7844   ;;
7845 *)
7846   lt_save_MAGIC_CMD="$MAGIC_CMD"
7847   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7848   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7849   for ac_dir in $ac_dummy; do
7850     IFS="$lt_save_ifs"
7851     test -z "$ac_dir" && ac_dir=.
7852     if test -f $ac_dir/file; then
7853       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7854       if test -n "$file_magic_test_file"; then
7855         case $deplibs_check_method in
7856         "file_magic "*)
7857           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7858           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7859           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7860             $EGREP "$file_magic_regex" > /dev/null; then
7861             :
7862           else
7863             cat <<_LT_EOF 1>&2
7864
7865 *** Warning: the command libtool uses to detect shared libraries,
7866 *** $file_magic_cmd, produces output that libtool cannot recognize.
7867 *** The result is that libtool may fail to recognize shared libraries
7868 *** as such.  This will affect the creation of libtool libraries that
7869 *** depend on shared libraries, but programs linked with such libtool
7870 *** libraries will work regardless of this problem.  Nevertheless, you
7871 *** may want to report the problem to your system manager and/or to
7872 *** bug-libtool@gnu.org
7873
7874 _LT_EOF
7875           fi ;;
7876         esac
7877       fi
7878       break
7879     fi
7880   done
7881   IFS="$lt_save_ifs"
7882   MAGIC_CMD="$lt_save_MAGIC_CMD"
7883   ;;
7884 esac
7885 fi
7886
7887 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7888 if test -n "$MAGIC_CMD"; then
7889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7890 $as_echo "$MAGIC_CMD" >&6; }
7891 else
7892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7894 fi
7895
7896
7897   else
7898     MAGIC_CMD=:
7899   fi
7900 fi
7901
7902   fi
7903   ;;
7904 esac
7905
7906 # Use C for the default configuration in the libtool script
7907
7908 lt_save_CC="$CC"
7909 ac_ext=c
7910 ac_cpp='$CPP $CPPFLAGS'
7911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7914
7915
7916 # Source file extension for C test sources.
7917 ac_ext=c
7918
7919 # Object file extension for compiled C test sources.
7920 objext=o
7921 objext=$objext
7922
7923 # Code to be used in simple compile tests
7924 lt_simple_compile_test_code="int some_variable = 0;"
7925
7926 # Code to be used in simple link tests
7927 lt_simple_link_test_code='int main(){return(0);}'
7928
7929
7930
7931
7932
7933
7934
7935 # If no C compiler was specified, use CC.
7936 LTCC=${LTCC-"$CC"}
7937
7938 # If no C compiler flags were specified, use CFLAGS.
7939 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7940
7941 # Allow CC to be a program name with arguments.
7942 compiler=$CC
7943
7944 # Save the default compiler, since it gets overwritten when the other
7945 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7946 compiler_DEFAULT=$CC
7947
7948 # save warnings/boilerplate of simple test code
7949 ac_outfile=conftest.$ac_objext
7950 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7951 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7952 _lt_compiler_boilerplate=`cat conftest.err`
7953 $RM conftest*
7954
7955 ac_outfile=conftest.$ac_objext
7956 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7957 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7958 _lt_linker_boilerplate=`cat conftest.err`
7959 $RM -r conftest*
7960
7961
7962 if test -n "$compiler"; then
7963
7964 lt_prog_compiler_no_builtin_flag=
7965
7966 if test "$GCC" = yes; then
7967   case $cc_basename in
7968   nvcc*)
7969     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7970   *)
7971     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7972   esac
7973
7974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7975 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7976 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7977   $as_echo_n "(cached) " >&6
7978 else
7979   lt_cv_prog_compiler_rtti_exceptions=no
7980    ac_outfile=conftest.$ac_objext
7981    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7982    lt_compiler_flag="-fno-rtti -fno-exceptions"
7983    # Insert the option either (1) after the last *FLAGS variable, or
7984    # (2) before a word containing "conftest.", or (3) at the end.
7985    # Note that $ac_compile itself does not contain backslashes and begins
7986    # with a dollar sign (not a hyphen), so the echo should work correctly.
7987    # The option is referenced via a variable to avoid confusing sed.
7988    lt_compile=`echo "$ac_compile" | $SED \
7989    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7990    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7991    -e 's:$: $lt_compiler_flag:'`
7992    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7993    (eval "$lt_compile" 2>conftest.err)
7994    ac_status=$?
7995    cat conftest.err >&5
7996    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997    if (exit $ac_status) && test -s "$ac_outfile"; then
7998      # The compiler can only warn and ignore the option if not recognized
7999      # So say no if there are warnings other than the usual output.
8000      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8001      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8002      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8003        lt_cv_prog_compiler_rtti_exceptions=yes
8004      fi
8005    fi
8006    $RM conftest*
8007
8008 fi
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8010 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8011
8012 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8013     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8014 else
8015     :
8016 fi
8017
8018 fi
8019
8020
8021
8022
8023
8024
8025   lt_prog_compiler_wl=
8026 lt_prog_compiler_pic=
8027 lt_prog_compiler_static=
8028
8029
8030   if test "$GCC" = yes; then
8031     lt_prog_compiler_wl='-Wl,'
8032     lt_prog_compiler_static='-static'
8033
8034     case $host_os in
8035       aix*)
8036       # All AIX code is PIC.
8037       if test "$host_cpu" = ia64; then
8038         # AIX 5 now supports IA64 processor
8039         lt_prog_compiler_static='-Bstatic'
8040       fi
8041       ;;
8042
8043     amigaos*)
8044       case $host_cpu in
8045       powerpc)
8046             # see comment about AmigaOS4 .so support
8047             lt_prog_compiler_pic='-fPIC'
8048         ;;
8049       m68k)
8050             # FIXME: we need at least 68020 code to build shared libraries, but
8051             # adding the `-m68020' flag to GCC prevents building anything better,
8052             # like `-m68040'.
8053             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8054         ;;
8055       esac
8056       ;;
8057
8058     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8059       # PIC is the default for these OSes.
8060       ;;
8061
8062     mingw* | cygwin* | pw32* | os2* | cegcc*)
8063       # This hack is so that the source file can tell whether it is being
8064       # built for inclusion in a dll (and should export symbols for example).
8065       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8066       # (--disable-auto-import) libraries
8067       lt_prog_compiler_pic='-DDLL_EXPORT'
8068       ;;
8069
8070     darwin* | rhapsody*)
8071       # PIC is the default on this platform
8072       # Common symbols not allowed in MH_DYLIB files
8073       lt_prog_compiler_pic='-fno-common'
8074       ;;
8075
8076     haiku*)
8077       # PIC is the default for Haiku.
8078       # The "-static" flag exists, but is broken.
8079       lt_prog_compiler_static=
8080       ;;
8081
8082     hpux*)
8083       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8084       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8085       # sets the default TLS model and affects inlining.
8086       case $host_cpu in
8087       hppa*64*)
8088         # +Z the default
8089         ;;
8090       *)
8091         lt_prog_compiler_pic='-fPIC'
8092         ;;
8093       esac
8094       ;;
8095
8096     interix[3-9]*)
8097       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8098       # Instead, we relocate shared libraries at runtime.
8099       ;;
8100
8101     msdosdjgpp*)
8102       # Just because we use GCC doesn't mean we suddenly get shared libraries
8103       # on systems that don't support them.
8104       lt_prog_compiler_can_build_shared=no
8105       enable_shared=no
8106       ;;
8107
8108     *nto* | *qnx*)
8109       # QNX uses GNU C++, but need to define -shared option too, otherwise
8110       # it will coredump.
8111       lt_prog_compiler_pic='-fPIC -shared'
8112       ;;
8113
8114     sysv4*MP*)
8115       if test -d /usr/nec; then
8116         lt_prog_compiler_pic=-Kconform_pic
8117       fi
8118       ;;
8119
8120     *)
8121       lt_prog_compiler_pic='-fPIC'
8122       ;;
8123     esac
8124
8125     case $cc_basename in
8126     nvcc*) # Cuda Compiler Driver 2.2
8127       lt_prog_compiler_wl='-Xlinker '
8128       if test -n "$lt_prog_compiler_pic"; then
8129         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8130       fi
8131       ;;
8132     esac
8133   else
8134     # PORTME Check for flag to pass linker flags through the system compiler.
8135     case $host_os in
8136     aix*)
8137       lt_prog_compiler_wl='-Wl,'
8138       if test "$host_cpu" = ia64; then
8139         # AIX 5 now supports IA64 processor
8140         lt_prog_compiler_static='-Bstatic'
8141       else
8142         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8143       fi
8144       ;;
8145
8146     mingw* | cygwin* | pw32* | os2* | cegcc*)
8147       # This hack is so that the source file can tell whether it is being
8148       # built for inclusion in a dll (and should export symbols for example).
8149       lt_prog_compiler_pic='-DDLL_EXPORT'
8150       ;;
8151
8152     hpux9* | hpux10* | hpux11*)
8153       lt_prog_compiler_wl='-Wl,'
8154       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8155       # not for PA HP-UX.
8156       case $host_cpu in
8157       hppa*64*|ia64*)
8158         # +Z the default
8159         ;;
8160       *)
8161         lt_prog_compiler_pic='+Z'
8162         ;;
8163       esac
8164       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8165       lt_prog_compiler_static='${wl}-a ${wl}archive'
8166       ;;
8167
8168     irix5* | irix6* | nonstopux*)
8169       lt_prog_compiler_wl='-Wl,'
8170       # PIC (with -KPIC) is the default.
8171       lt_prog_compiler_static='-non_shared'
8172       ;;
8173
8174     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8175       case $cc_basename in
8176       # old Intel for x86_64 which still supported -KPIC.
8177       ecc*)
8178         lt_prog_compiler_wl='-Wl,'
8179         lt_prog_compiler_pic='-KPIC'
8180         lt_prog_compiler_static='-static'
8181         ;;
8182       # icc used to be incompatible with GCC.
8183       # ICC 10 doesn't accept -KPIC any more.
8184       icc* | ifort*)
8185         lt_prog_compiler_wl='-Wl,'
8186         lt_prog_compiler_pic='-fPIC'
8187         lt_prog_compiler_static='-static'
8188         ;;
8189       # Lahey Fortran 8.1.
8190       lf95*)
8191         lt_prog_compiler_wl='-Wl,'
8192         lt_prog_compiler_pic='--shared'
8193         lt_prog_compiler_static='--static'
8194         ;;
8195       nagfor*)
8196         # NAG Fortran compiler
8197         lt_prog_compiler_wl='-Wl,-Wl,,'
8198         lt_prog_compiler_pic='-PIC'
8199         lt_prog_compiler_static='-Bstatic'
8200         ;;
8201       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8202         # Portland Group compilers (*not* the Pentium gcc compiler,
8203         # which looks to be a dead project)
8204         lt_prog_compiler_wl='-Wl,'
8205         lt_prog_compiler_pic='-fpic'
8206         lt_prog_compiler_static='-Bstatic'
8207         ;;
8208       ccc*)
8209         lt_prog_compiler_wl='-Wl,'
8210         # All Alpha code is PIC.
8211         lt_prog_compiler_static='-non_shared'
8212         ;;
8213       xl* | bgxl* | bgf* | mpixl*)
8214         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8215         lt_prog_compiler_wl='-Wl,'
8216         lt_prog_compiler_pic='-qpic'
8217         lt_prog_compiler_static='-qstaticlink'
8218         ;;
8219       *)
8220         case `$CC -V 2>&1 | sed 5q` in
8221         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8222           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8223           lt_prog_compiler_pic='-KPIC'
8224           lt_prog_compiler_static='-Bstatic'
8225           lt_prog_compiler_wl=''
8226           ;;
8227         *Sun\ F* | *Sun*Fortran*)
8228           lt_prog_compiler_pic='-KPIC'
8229           lt_prog_compiler_static='-Bstatic'
8230           lt_prog_compiler_wl='-Qoption ld '
8231           ;;
8232         *Sun\ C*)
8233           # Sun C 5.9
8234           lt_prog_compiler_pic='-KPIC'
8235           lt_prog_compiler_static='-Bstatic'
8236           lt_prog_compiler_wl='-Wl,'
8237           ;;
8238         *Intel*\ [CF]*Compiler*)
8239           lt_prog_compiler_wl='-Wl,'
8240           lt_prog_compiler_pic='-fPIC'
8241           lt_prog_compiler_static='-static'
8242           ;;
8243         *Portland\ Group*)
8244           lt_prog_compiler_wl='-Wl,'
8245           lt_prog_compiler_pic='-fpic'
8246           lt_prog_compiler_static='-Bstatic'
8247           ;;
8248         esac
8249         ;;
8250       esac
8251       ;;
8252
8253     newsos6)
8254       lt_prog_compiler_pic='-KPIC'
8255       lt_prog_compiler_static='-Bstatic'
8256       ;;
8257
8258     *nto* | *qnx*)
8259       # QNX uses GNU C++, but need to define -shared option too, otherwise
8260       # it will coredump.
8261       lt_prog_compiler_pic='-fPIC -shared'
8262       ;;
8263
8264     osf3* | osf4* | osf5*)
8265       lt_prog_compiler_wl='-Wl,'
8266       # All OSF/1 code is PIC.
8267       lt_prog_compiler_static='-non_shared'
8268       ;;
8269
8270     rdos*)
8271       lt_prog_compiler_static='-non_shared'
8272       ;;
8273
8274     solaris*)
8275       lt_prog_compiler_pic='-KPIC'
8276       lt_prog_compiler_static='-Bstatic'
8277       case $cc_basename in
8278       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8279         lt_prog_compiler_wl='-Qoption ld ';;
8280       *)
8281         lt_prog_compiler_wl='-Wl,';;
8282       esac
8283       ;;
8284
8285     sunos4*)
8286       lt_prog_compiler_wl='-Qoption ld '
8287       lt_prog_compiler_pic='-PIC'
8288       lt_prog_compiler_static='-Bstatic'
8289       ;;
8290
8291     sysv4 | sysv4.2uw2* | sysv4.3*)
8292       lt_prog_compiler_wl='-Wl,'
8293       lt_prog_compiler_pic='-KPIC'
8294       lt_prog_compiler_static='-Bstatic'
8295       ;;
8296
8297     sysv4*MP*)
8298       if test -d /usr/nec ;then
8299         lt_prog_compiler_pic='-Kconform_pic'
8300         lt_prog_compiler_static='-Bstatic'
8301       fi
8302       ;;
8303
8304     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8305       lt_prog_compiler_wl='-Wl,'
8306       lt_prog_compiler_pic='-KPIC'
8307       lt_prog_compiler_static='-Bstatic'
8308       ;;
8309
8310     unicos*)
8311       lt_prog_compiler_wl='-Wl,'
8312       lt_prog_compiler_can_build_shared=no
8313       ;;
8314
8315     uts4*)
8316       lt_prog_compiler_pic='-pic'
8317       lt_prog_compiler_static='-Bstatic'
8318       ;;
8319
8320     *)
8321       lt_prog_compiler_can_build_shared=no
8322       ;;
8323     esac
8324   fi
8325
8326 case $host_os in
8327   # For platforms which do not support PIC, -DPIC is meaningless:
8328   *djgpp*)
8329     lt_prog_compiler_pic=
8330     ;;
8331   *)
8332     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8333     ;;
8334 esac
8335
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8337 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8338 if ${lt_cv_prog_compiler_pic+:} false; then :
8339   $as_echo_n "(cached) " >&6
8340 else
8341   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8342 fi
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8344 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8345 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8346
8347 #
8348 # Check to make sure the PIC flag actually works.
8349 #
8350 if test -n "$lt_prog_compiler_pic"; then
8351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8352 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8353 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8354   $as_echo_n "(cached) " >&6
8355 else
8356   lt_cv_prog_compiler_pic_works=no
8357    ac_outfile=conftest.$ac_objext
8358    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8359    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8360    # Insert the option either (1) after the last *FLAGS variable, or
8361    # (2) before a word containing "conftest.", or (3) at the end.
8362    # Note that $ac_compile itself does not contain backslashes and begins
8363    # with a dollar sign (not a hyphen), so the echo should work correctly.
8364    # The option is referenced via a variable to avoid confusing sed.
8365    lt_compile=`echo "$ac_compile" | $SED \
8366    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8367    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8368    -e 's:$: $lt_compiler_flag:'`
8369    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8370    (eval "$lt_compile" 2>conftest.err)
8371    ac_status=$?
8372    cat conftest.err >&5
8373    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374    if (exit $ac_status) && test -s "$ac_outfile"; then
8375      # The compiler can only warn and ignore the option if not recognized
8376      # So say no if there are warnings other than the usual output.
8377      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8378      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8379      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8380        lt_cv_prog_compiler_pic_works=yes
8381      fi
8382    fi
8383    $RM conftest*
8384
8385 fi
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8387 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8388
8389 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8390     case $lt_prog_compiler_pic in
8391      "" | " "*) ;;
8392      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8393      esac
8394 else
8395     lt_prog_compiler_pic=
8396      lt_prog_compiler_can_build_shared=no
8397 fi
8398
8399 fi
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411 #
8412 # Check to make sure the static flag actually works.
8413 #
8414 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8416 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8417 if ${lt_cv_prog_compiler_static_works+:} false; then :
8418   $as_echo_n "(cached) " >&6
8419 else
8420   lt_cv_prog_compiler_static_works=no
8421    save_LDFLAGS="$LDFLAGS"
8422    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8423    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8424    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8425      # The linker can only warn and ignore the option if not recognized
8426      # So say no if there are warnings
8427      if test -s conftest.err; then
8428        # Append any errors to the config.log.
8429        cat conftest.err 1>&5
8430        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8431        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8432        if diff conftest.exp conftest.er2 >/dev/null; then
8433          lt_cv_prog_compiler_static_works=yes
8434        fi
8435      else
8436        lt_cv_prog_compiler_static_works=yes
8437      fi
8438    fi
8439    $RM -r conftest*
8440    LDFLAGS="$save_LDFLAGS"
8441
8442 fi
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8444 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8445
8446 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8447     :
8448 else
8449     lt_prog_compiler_static=
8450 fi
8451
8452
8453
8454
8455
8456
8457
8458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8459 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8460 if ${lt_cv_prog_compiler_c_o+:} false; then :
8461   $as_echo_n "(cached) " >&6
8462 else
8463   lt_cv_prog_compiler_c_o=no
8464    $RM -r conftest 2>/dev/null
8465    mkdir conftest
8466    cd conftest
8467    mkdir out
8468    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8469
8470    lt_compiler_flag="-o out/conftest2.$ac_objext"
8471    # Insert the option either (1) after the last *FLAGS variable, or
8472    # (2) before a word containing "conftest.", or (3) at the end.
8473    # Note that $ac_compile itself does not contain backslashes and begins
8474    # with a dollar sign (not a hyphen), so the echo should work correctly.
8475    lt_compile=`echo "$ac_compile" | $SED \
8476    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8477    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8478    -e 's:$: $lt_compiler_flag:'`
8479    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8480    (eval "$lt_compile" 2>out/conftest.err)
8481    ac_status=$?
8482    cat out/conftest.err >&5
8483    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8485    then
8486      # The compiler can only warn and ignore the option if not recognized
8487      # So say no if there are warnings
8488      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8489      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8490      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8491        lt_cv_prog_compiler_c_o=yes
8492      fi
8493    fi
8494    chmod u+w . 2>&5
8495    $RM conftest*
8496    # SGI C++ compiler will create directory out/ii_files/ for
8497    # template instantiation
8498    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8499    $RM out/* && rmdir out
8500    cd ..
8501    $RM -r conftest
8502    $RM conftest*
8503
8504 fi
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8506 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8507
8508
8509
8510
8511
8512
8513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8514 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8515 if ${lt_cv_prog_compiler_c_o+:} false; then :
8516   $as_echo_n "(cached) " >&6
8517 else
8518   lt_cv_prog_compiler_c_o=no
8519    $RM -r conftest 2>/dev/null
8520    mkdir conftest
8521    cd conftest
8522    mkdir out
8523    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8524
8525    lt_compiler_flag="-o out/conftest2.$ac_objext"
8526    # Insert the option either (1) after the last *FLAGS variable, or
8527    # (2) before a word containing "conftest.", or (3) at the end.
8528    # Note that $ac_compile itself does not contain backslashes and begins
8529    # with a dollar sign (not a hyphen), so the echo should work correctly.
8530    lt_compile=`echo "$ac_compile" | $SED \
8531    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8532    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8533    -e 's:$: $lt_compiler_flag:'`
8534    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8535    (eval "$lt_compile" 2>out/conftest.err)
8536    ac_status=$?
8537    cat out/conftest.err >&5
8538    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8540    then
8541      # The compiler can only warn and ignore the option if not recognized
8542      # So say no if there are warnings
8543      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8544      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8545      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8546        lt_cv_prog_compiler_c_o=yes
8547      fi
8548    fi
8549    chmod u+w . 2>&5
8550    $RM conftest*
8551    # SGI C++ compiler will create directory out/ii_files/ for
8552    # template instantiation
8553    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8554    $RM out/* && rmdir out
8555    cd ..
8556    $RM -r conftest
8557    $RM conftest*
8558
8559 fi
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8561 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8562
8563
8564
8565
8566 hard_links="nottested"
8567 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8568   # do not overwrite the value of need_locks provided by the user
8569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8570 $as_echo_n "checking if we can lock with hard links... " >&6; }
8571   hard_links=yes
8572   $RM conftest*
8573   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8574   touch conftest.a
8575   ln conftest.a conftest.b 2>&5 || hard_links=no
8576   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8578 $as_echo "$hard_links" >&6; }
8579   if test "$hard_links" = no; then
8580     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8581 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8582     need_locks=warn
8583   fi
8584 else
8585   need_locks=no
8586 fi
8587
8588
8589
8590
8591
8592
8593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8594 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8595
8596   runpath_var=
8597   allow_undefined_flag=
8598   always_export_symbols=no
8599   archive_cmds=
8600   archive_expsym_cmds=
8601   compiler_needs_object=no
8602   enable_shared_with_static_runtimes=no
8603   export_dynamic_flag_spec=
8604   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8605   hardcode_automatic=no
8606   hardcode_direct=no
8607   hardcode_direct_absolute=no
8608   hardcode_libdir_flag_spec=
8609   hardcode_libdir_separator=
8610   hardcode_minus_L=no
8611   hardcode_shlibpath_var=unsupported
8612   inherit_rpath=no
8613   link_all_deplibs=unknown
8614   module_cmds=
8615   module_expsym_cmds=
8616   old_archive_from_new_cmds=
8617   old_archive_from_expsyms_cmds=
8618   thread_safe_flag_spec=
8619   whole_archive_flag_spec=
8620   # include_expsyms should be a list of space-separated symbols to be *always*
8621   # included in the symbol list
8622   include_expsyms=
8623   # exclude_expsyms can be an extended regexp of symbols to exclude
8624   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8625   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8626   # as well as any symbol that contains `d'.
8627   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8628   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8629   # platforms (ab)use it in PIC code, but their linkers get confused if
8630   # the symbol is explicitly referenced.  Since portable code cannot
8631   # rely on this symbol name, it's probably fine to never include it in
8632   # preloaded symbol tables.
8633   # Exclude shared library initialization/finalization symbols.
8634   extract_expsyms_cmds=
8635
8636   case $host_os in
8637   cygwin* | mingw* | pw32* | cegcc*)
8638     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8639     # When not using gcc, we currently assume that we are using
8640     # Microsoft Visual C++.
8641     if test "$GCC" != yes; then
8642       with_gnu_ld=no
8643     fi
8644     ;;
8645   interix*)
8646     # we just hope/assume this is gcc and not c89 (= MSVC++)
8647     with_gnu_ld=yes
8648     ;;
8649   openbsd*)
8650     with_gnu_ld=no
8651     ;;
8652   linux* | k*bsd*-gnu | gnu*)
8653     link_all_deplibs=no
8654     ;;
8655   esac
8656
8657   ld_shlibs=yes
8658
8659   # On some targets, GNU ld is compatible enough with the native linker
8660   # that we're better off using the native interface for both.
8661   lt_use_gnu_ld_interface=no
8662   if test "$with_gnu_ld" = yes; then
8663     case $host_os in
8664       aix*)
8665         # The AIX port of GNU ld has always aspired to compatibility
8666         # with the native linker.  However, as the warning in the GNU ld
8667         # block says, versions before 2.19.5* couldn't really create working
8668         # shared libraries, regardless of the interface used.
8669         case `$LD -v 2>&1` in
8670           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8671           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8672           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8673           *)
8674             lt_use_gnu_ld_interface=yes
8675             ;;
8676         esac
8677         ;;
8678       *)
8679         lt_use_gnu_ld_interface=yes
8680         ;;
8681     esac
8682   fi
8683
8684   if test "$lt_use_gnu_ld_interface" = yes; then
8685     # If archive_cmds runs LD, not CC, wlarc should be empty
8686     wlarc='${wl}'
8687
8688     # Set some defaults for GNU ld with shared library support. These
8689     # are reset later if shared libraries are not supported. Putting them
8690     # here allows them to be overridden if necessary.
8691     runpath_var=LD_RUN_PATH
8692     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8693     export_dynamic_flag_spec='${wl}--export-dynamic'
8694     # ancient GNU ld didn't support --whole-archive et. al.
8695     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8696       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8697     else
8698       whole_archive_flag_spec=
8699     fi
8700     supports_anon_versioning=no
8701     case `$LD -v 2>&1` in
8702       *GNU\ gold*) supports_anon_versioning=yes ;;
8703       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8704       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8705       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8706       *\ 2.11.*) ;; # other 2.11 versions
8707       *) supports_anon_versioning=yes ;;
8708     esac
8709
8710     # See if GNU ld supports shared libraries.
8711     case $host_os in
8712     aix[3-9]*)
8713       # On AIX/PPC, the GNU linker is very broken
8714       if test "$host_cpu" != ia64; then
8715         ld_shlibs=no
8716         cat <<_LT_EOF 1>&2
8717
8718 *** Warning: the GNU linker, at least up to release 2.19, is reported
8719 *** to be unable to reliably create shared libraries on AIX.
8720 *** Therefore, libtool is disabling shared libraries support.  If you
8721 *** really care for shared libraries, you may want to install binutils
8722 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8723 *** You will then need to restart the configuration process.
8724
8725 _LT_EOF
8726       fi
8727       ;;
8728
8729     amigaos*)
8730       case $host_cpu in
8731       powerpc)
8732             # see comment about AmigaOS4 .so support
8733             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8734             archive_expsym_cmds=''
8735         ;;
8736       m68k)
8737             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)'
8738             hardcode_libdir_flag_spec='-L$libdir'
8739             hardcode_minus_L=yes
8740         ;;
8741       esac
8742       ;;
8743
8744     beos*)
8745       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8746         allow_undefined_flag=unsupported
8747         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8748         # support --undefined.  This deserves some investigation.  FIXME
8749         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8750       else
8751         ld_shlibs=no
8752       fi
8753       ;;
8754
8755     cygwin* | mingw* | pw32* | cegcc*)
8756       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8757       # as there is no search path for DLLs.
8758       hardcode_libdir_flag_spec='-L$libdir'
8759       export_dynamic_flag_spec='${wl}--export-all-symbols'
8760       allow_undefined_flag=unsupported
8761       always_export_symbols=no
8762       enable_shared_with_static_runtimes=yes
8763       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'
8764       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8765
8766       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8767         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8768         # If the export-symbols file already is a .def file (1st line
8769         # is EXPORTS), use it as is; otherwise, prepend...
8770         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8771           cp $export_symbols $output_objdir/$soname.def;
8772         else
8773           echo EXPORTS > $output_objdir/$soname.def;
8774           cat $export_symbols >> $output_objdir/$soname.def;
8775         fi~
8776         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8777       else
8778         ld_shlibs=no
8779       fi
8780       ;;
8781
8782     haiku*)
8783       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8784       link_all_deplibs=yes
8785       ;;
8786
8787     interix[3-9]*)
8788       hardcode_direct=no
8789       hardcode_shlibpath_var=no
8790       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8791       export_dynamic_flag_spec='${wl}-E'
8792       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8793       # Instead, shared libraries are loaded at an image base (0x10000000 by
8794       # default) and relocated if they conflict, which is a slow very memory
8795       # consuming and fragmenting process.  To avoid this, we pick a random,
8796       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8797       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8798       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8799       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'
8800       ;;
8801
8802     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8803       tmp_diet=no
8804       if test "$host_os" = linux-dietlibc; then
8805         case $cc_basename in
8806           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8807         esac
8808       fi
8809       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8810          && test "$tmp_diet" = no
8811       then
8812         tmp_addflag=' $pic_flag'
8813         tmp_sharedflag='-shared'
8814         case $cc_basename,$host_cpu in
8815         pgcc*)                          # Portland Group C compiler
8816           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'
8817           tmp_addflag=' $pic_flag'
8818           ;;
8819         pgf77* | pgf90* | pgf95* | pgfortran*)
8820                                         # Portland Group f77 and f90 compilers
8821           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'
8822           tmp_addflag=' $pic_flag -Mnomain' ;;
8823         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8824           tmp_addflag=' -i_dynamic' ;;
8825         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8826           tmp_addflag=' -i_dynamic -nofor_main' ;;
8827         ifc* | ifort*)                  # Intel Fortran compiler
8828           tmp_addflag=' -nofor_main' ;;
8829         lf95*)                          # Lahey Fortran 8.1
8830           whole_archive_flag_spec=
8831           tmp_sharedflag='--shared' ;;
8832         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8833           tmp_sharedflag='-qmkshrobj'
8834           tmp_addflag= ;;
8835         nvcc*)  # Cuda Compiler Driver 2.2
8836           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'
8837           compiler_needs_object=yes
8838           ;;
8839         esac
8840         case `$CC -V 2>&1 | sed 5q` in
8841         *Sun\ C*)                       # Sun C 5.9
8842           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'
8843           compiler_needs_object=yes
8844           tmp_sharedflag='-G' ;;
8845         *Sun\ F*)                       # Sun Fortran 8.3
8846           tmp_sharedflag='-G' ;;
8847         esac
8848         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8849
8850         if test "x$supports_anon_versioning" = xyes; then
8851           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8852             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8853             echo "local: *; };" >> $output_objdir/$libname.ver~
8854             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8855         fi
8856
8857         case $cc_basename in
8858         xlf* | bgf* | bgxlf* | mpixlf*)
8859           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8860           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8861           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8862           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8863           if test "x$supports_anon_versioning" = xyes; then
8864             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8865               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8866               echo "local: *; };" >> $output_objdir/$libname.ver~
8867               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8868           fi
8869           ;;
8870         esac
8871       else
8872         ld_shlibs=no
8873       fi
8874       ;;
8875
8876     netbsd* | netbsdelf*-gnu)
8877       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8878         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8879         wlarc=
8880       else
8881         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8882         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8883       fi
8884       ;;
8885
8886     solaris*)
8887       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8888         ld_shlibs=no
8889         cat <<_LT_EOF 1>&2
8890
8891 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8892 *** create shared libraries on Solaris systems.  Therefore, libtool
8893 *** is disabling shared libraries support.  We urge you to upgrade GNU
8894 *** binutils to release 2.9.1 or newer.  Another option is to modify
8895 *** your PATH or compiler configuration so that the native linker is
8896 *** used, and then restart.
8897
8898 _LT_EOF
8899       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8900         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8901         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8902       else
8903         ld_shlibs=no
8904       fi
8905       ;;
8906
8907     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8908       case `$LD -v 2>&1` in
8909         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8910         ld_shlibs=no
8911         cat <<_LT_EOF 1>&2
8912
8913 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8914 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8915 *** is disabling shared libraries support.  We urge you to upgrade GNU
8916 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8917 *** your PATH or compiler configuration so that the native linker is
8918 *** used, and then restart.
8919
8920 _LT_EOF
8921         ;;
8922         *)
8923           # For security reasons, it is highly recommended that you always
8924           # use absolute paths for naming shared libraries, and exclude the
8925           # DT_RUNPATH tag from executables and libraries.  But doing so
8926           # requires that you compile everything twice, which is a pain.
8927           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8928             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8929             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8930             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8931           else
8932             ld_shlibs=no
8933           fi
8934         ;;
8935       esac
8936       ;;
8937
8938     sunos4*)
8939       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8940       wlarc=
8941       hardcode_direct=yes
8942       hardcode_shlibpath_var=no
8943       ;;
8944
8945     *)
8946       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8947         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8948         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8949       else
8950         ld_shlibs=no
8951       fi
8952       ;;
8953     esac
8954
8955     if test "$ld_shlibs" = no; then
8956       runpath_var=
8957       hardcode_libdir_flag_spec=
8958       export_dynamic_flag_spec=
8959       whole_archive_flag_spec=
8960     fi
8961   else
8962     # PORTME fill in a description of your system's linker (not GNU ld)
8963     case $host_os in
8964     aix3*)
8965       allow_undefined_flag=unsupported
8966       always_export_symbols=yes
8967       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'
8968       # Note: this linker hardcodes the directories in LIBPATH if there
8969       # are no directories specified by -L.
8970       hardcode_minus_L=yes
8971       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8972         # Neither direct hardcoding nor static linking is supported with a
8973         # broken collect2.
8974         hardcode_direct=unsupported
8975       fi
8976       ;;
8977
8978     aix[4-9]*)
8979       if test "$host_cpu" = ia64; then
8980         # On IA64, the linker does run time linking by default, so we don't
8981         # have to do anything special.
8982         aix_use_runtimelinking=no
8983         exp_sym_flag='-Bexport'
8984         no_entry_flag=""
8985       else
8986         # If we're using GNU nm, then we don't want the "-C" option.
8987         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8988         # Also, AIX nm treats weak defined symbols like other global
8989         # defined symbols, whereas GNU nm marks them as "W".
8990         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8991           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'
8992         else
8993           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'
8994         fi
8995         aix_use_runtimelinking=no
8996
8997         # Test if we are trying to use run time linking or normal
8998         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8999         # need to do runtime linking.
9000         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9001           for ld_flag in $LDFLAGS; do
9002           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9003             aix_use_runtimelinking=yes
9004             break
9005           fi
9006           done
9007           ;;
9008         esac
9009
9010         exp_sym_flag='-bexport'
9011         no_entry_flag='-bnoentry'
9012       fi
9013
9014       # When large executables or shared objects are built, AIX ld can
9015       # have problems creating the table of contents.  If linking a library
9016       # or program results in "error TOC overflow" add -mminimal-toc to
9017       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9018       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9019
9020       archive_cmds=''
9021       hardcode_direct=yes
9022       hardcode_direct_absolute=yes
9023       hardcode_libdir_separator=':'
9024       link_all_deplibs=yes
9025       file_list_spec='${wl}-f,'
9026
9027       if test "$GCC" = yes; then
9028         case $host_os in aix4.[012]|aix4.[012].*)
9029         # We only want to do this on AIX 4.2 and lower, the check
9030         # below for broken collect2 doesn't work under 4.3+
9031           collect2name=`${CC} -print-prog-name=collect2`
9032           if test -f "$collect2name" &&
9033            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9034           then
9035           # We have reworked collect2
9036           :
9037           else
9038           # We have old collect2
9039           hardcode_direct=unsupported
9040           # It fails to find uninstalled libraries when the uninstalled
9041           # path is not listed in the libpath.  Setting hardcode_minus_L
9042           # to unsupported forces relinking
9043           hardcode_minus_L=yes
9044           hardcode_libdir_flag_spec='-L$libdir'
9045           hardcode_libdir_separator=
9046           fi
9047           ;;
9048         esac
9049         shared_flag='-shared'
9050         if test "$aix_use_runtimelinking" = yes; then
9051           shared_flag="$shared_flag "'${wl}-G'
9052         fi
9053         link_all_deplibs=no
9054       else
9055         # not using gcc
9056         if test "$host_cpu" = ia64; then
9057         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9058         # chokes on -Wl,-G. The following line is correct:
9059           shared_flag='-G'
9060         else
9061           if test "$aix_use_runtimelinking" = yes; then
9062             shared_flag='${wl}-G'
9063           else
9064             shared_flag='${wl}-bM:SRE'
9065           fi
9066         fi
9067       fi
9068
9069       export_dynamic_flag_spec='${wl}-bexpall'
9070       # It seems that -bexpall does not export symbols beginning with
9071       # underscore (_), so it is better to generate a list of symbols to export.
9072       always_export_symbols=yes
9073       if test "$aix_use_runtimelinking" = yes; then
9074         # Warning - without using the other runtime loading flags (-brtl),
9075         # -berok will link without error, but may produce a broken library.
9076         allow_undefined_flag='-berok'
9077         # Determine the default libpath from the value encoded in an
9078         # empty executable.
9079         if test "${lt_cv_aix_libpath+set}" = set; then
9080   aix_libpath=$lt_cv_aix_libpath
9081 else
9082   if ${lt_cv_aix_libpath_+:} false; then :
9083   $as_echo_n "(cached) " >&6
9084 else
9085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h.  */
9087
9088 int
9089 main ()
9090 {
9091
9092   ;
9093   return 0;
9094 }
9095 _ACEOF
9096 if ac_fn_c_try_link "$LINENO"; then :
9097
9098   lt_aix_libpath_sed='
9099       /Import File Strings/,/^$/ {
9100           /^0/ {
9101               s/^0  *\([^ ]*\) *$/\1/
9102               p
9103           }
9104       }'
9105   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9106   # Check for a 64-bit object if we didn't find anything.
9107   if test -z "$lt_cv_aix_libpath_"; then
9108     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9109   fi
9110 fi
9111 rm -f core conftest.err conftest.$ac_objext \
9112     conftest$ac_exeext conftest.$ac_ext
9113   if test -z "$lt_cv_aix_libpath_"; then
9114     lt_cv_aix_libpath_="/usr/lib:/lib"
9115   fi
9116
9117 fi
9118
9119   aix_libpath=$lt_cv_aix_libpath_
9120 fi
9121
9122         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9123         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"
9124       else
9125         if test "$host_cpu" = ia64; then
9126           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9127           allow_undefined_flag="-z nodefs"
9128           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"
9129         else
9130          # Determine the default libpath from the value encoded in an
9131          # empty executable.
9132          if test "${lt_cv_aix_libpath+set}" = set; then
9133   aix_libpath=$lt_cv_aix_libpath
9134 else
9135   if ${lt_cv_aix_libpath_+:} false; then :
9136   $as_echo_n "(cached) " >&6
9137 else
9138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h.  */
9140
9141 int
9142 main ()
9143 {
9144
9145   ;
9146   return 0;
9147 }
9148 _ACEOF
9149 if ac_fn_c_try_link "$LINENO"; then :
9150
9151   lt_aix_libpath_sed='
9152       /Import File Strings/,/^$/ {
9153           /^0/ {
9154               s/^0  *\([^ ]*\) *$/\1/
9155               p
9156           }
9157       }'
9158   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9159   # Check for a 64-bit object if we didn't find anything.
9160   if test -z "$lt_cv_aix_libpath_"; then
9161     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9162   fi
9163 fi
9164 rm -f core conftest.err conftest.$ac_objext \
9165     conftest$ac_exeext conftest.$ac_ext
9166   if test -z "$lt_cv_aix_libpath_"; then
9167     lt_cv_aix_libpath_="/usr/lib:/lib"
9168   fi
9169
9170 fi
9171
9172   aix_libpath=$lt_cv_aix_libpath_
9173 fi
9174
9175          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9176           # Warning - without using the other run time loading flags,
9177           # -berok will link without error, but may produce a broken library.
9178           no_undefined_flag=' ${wl}-bernotok'
9179           allow_undefined_flag=' ${wl}-berok'
9180           if test "$with_gnu_ld" = yes; then
9181             # We only use this code for GNU lds that support --whole-archive.
9182             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9183           else
9184             # Exported symbols can be pulled into shared objects from archives
9185             whole_archive_flag_spec='$convenience'
9186           fi
9187           archive_cmds_need_lc=yes
9188           # This is similar to how AIX traditionally builds its shared libraries.
9189           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'
9190         fi
9191       fi
9192       ;;
9193
9194     amigaos*)
9195       case $host_cpu in
9196       powerpc)
9197             # see comment about AmigaOS4 .so support
9198             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9199             archive_expsym_cmds=''
9200         ;;
9201       m68k)
9202             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)'
9203             hardcode_libdir_flag_spec='-L$libdir'
9204             hardcode_minus_L=yes
9205         ;;
9206       esac
9207       ;;
9208
9209     bsdi[45]*)
9210       export_dynamic_flag_spec=-rdynamic
9211       ;;
9212
9213     cygwin* | mingw* | pw32* | cegcc*)
9214       # When not using gcc, we currently assume that we are using
9215       # Microsoft Visual C++.
9216       # hardcode_libdir_flag_spec is actually meaningless, as there is
9217       # no search path for DLLs.
9218       case $cc_basename in
9219       cl*)
9220         # Native MSVC
9221         hardcode_libdir_flag_spec=' '
9222         allow_undefined_flag=unsupported
9223         always_export_symbols=yes
9224         file_list_spec='@'
9225         # Tell ltmain to make .lib files, not .a files.
9226         libext=lib
9227         # Tell ltmain to make .dll files, not .so files.
9228         shrext_cmds=".dll"
9229         # FIXME: Setting linknames here is a bad hack.
9230         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9231         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9232             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9233           else
9234             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9235           fi~
9236           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9237           linknames='
9238         # The linker will not automatically build a static lib if we build a DLL.
9239         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9240         enable_shared_with_static_runtimes=yes
9241         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9242         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9243         # Don't use ranlib
9244         old_postinstall_cmds='chmod 644 $oldlib'
9245         postlink_cmds='lt_outputfile="@OUTPUT@"~
9246           lt_tool_outputfile="@TOOL_OUTPUT@"~
9247           case $lt_outputfile in
9248             *.exe|*.EXE) ;;
9249             *)
9250               lt_outputfile="$lt_outputfile.exe"
9251               lt_tool_outputfile="$lt_tool_outputfile.exe"
9252               ;;
9253           esac~
9254           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9255             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9256             $RM "$lt_outputfile.manifest";
9257           fi'
9258         ;;
9259       *)
9260         # Assume MSVC wrapper
9261         hardcode_libdir_flag_spec=' '
9262         allow_undefined_flag=unsupported
9263         # Tell ltmain to make .lib files, not .a files.
9264         libext=lib
9265         # Tell ltmain to make .dll files, not .so files.
9266         shrext_cmds=".dll"
9267         # FIXME: Setting linknames here is a bad hack.
9268         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9269         # The linker will automatically build a .lib file if we build a DLL.
9270         old_archive_from_new_cmds='true'
9271         # FIXME: Should let the user specify the lib program.
9272         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9273         enable_shared_with_static_runtimes=yes
9274         ;;
9275       esac
9276       ;;
9277
9278     darwin* | rhapsody*)
9279
9280
9281   archive_cmds_need_lc=no
9282   hardcode_direct=no
9283   hardcode_automatic=yes
9284   hardcode_shlibpath_var=unsupported
9285   if test "$lt_cv_ld_force_load" = "yes"; then
9286     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\"`'
9287
9288   else
9289     whole_archive_flag_spec=''
9290   fi
9291   link_all_deplibs=yes
9292   allow_undefined_flag="$_lt_dar_allow_undefined"
9293   case $cc_basename in
9294      ifort*) _lt_dar_can_shared=yes ;;
9295      *) _lt_dar_can_shared=$GCC ;;
9296   esac
9297   if test "$_lt_dar_can_shared" = "yes"; then
9298     output_verbose_link_cmd=func_echo_all
9299     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9300     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9301     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}"
9302     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}"
9303
9304   else
9305   ld_shlibs=no
9306   fi
9307
9308       ;;
9309
9310     dgux*)
9311       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9312       hardcode_libdir_flag_spec='-L$libdir'
9313       hardcode_shlibpath_var=no
9314       ;;
9315
9316     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9317     # support.  Future versions do this automatically, but an explicit c++rt0.o
9318     # does not break anything, and helps significantly (at the cost of a little
9319     # extra space).
9320     freebsd2.2*)
9321       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9322       hardcode_libdir_flag_spec='-R$libdir'
9323       hardcode_direct=yes
9324       hardcode_shlibpath_var=no
9325       ;;
9326
9327     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9328     freebsd2.*)
9329       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9330       hardcode_direct=yes
9331       hardcode_minus_L=yes
9332       hardcode_shlibpath_var=no
9333       ;;
9334
9335     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9336     freebsd* | dragonfly*)
9337       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9338       hardcode_libdir_flag_spec='-R$libdir'
9339       hardcode_direct=yes
9340       hardcode_shlibpath_var=no
9341       ;;
9342
9343     hpux9*)
9344       if test "$GCC" = yes; then
9345         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'
9346       else
9347         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'
9348       fi
9349       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9350       hardcode_libdir_separator=:
9351       hardcode_direct=yes
9352
9353       # hardcode_minus_L: Not really in the search PATH,
9354       # but as the default location of the library.
9355       hardcode_minus_L=yes
9356       export_dynamic_flag_spec='${wl}-E'
9357       ;;
9358
9359     hpux10*)
9360       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9361         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9362       else
9363         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9364       fi
9365       if test "$with_gnu_ld" = no; then
9366         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9367         hardcode_libdir_separator=:
9368         hardcode_direct=yes
9369         hardcode_direct_absolute=yes
9370         export_dynamic_flag_spec='${wl}-E'
9371         # hardcode_minus_L: Not really in the search PATH,
9372         # but as the default location of the library.
9373         hardcode_minus_L=yes
9374       fi
9375       ;;
9376
9377     hpux11*)
9378       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9379         case $host_cpu in
9380         hppa*64*)
9381           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9382           ;;
9383         ia64*)
9384           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9385           ;;
9386         *)
9387           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9388           ;;
9389         esac
9390       else
9391         case $host_cpu in
9392         hppa*64*)
9393           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9394           ;;
9395         ia64*)
9396           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9397           ;;
9398         *)
9399
9400           # Older versions of the 11.00 compiler do not understand -b yet
9401           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9402           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9403 $as_echo_n "checking if $CC understands -b... " >&6; }
9404 if ${lt_cv_prog_compiler__b+:} false; then :
9405   $as_echo_n "(cached) " >&6
9406 else
9407   lt_cv_prog_compiler__b=no
9408    save_LDFLAGS="$LDFLAGS"
9409    LDFLAGS="$LDFLAGS -b"
9410    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9411    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9412      # The linker can only warn and ignore the option if not recognized
9413      # So say no if there are warnings
9414      if test -s conftest.err; then
9415        # Append any errors to the config.log.
9416        cat conftest.err 1>&5
9417        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9418        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9419        if diff conftest.exp conftest.er2 >/dev/null; then
9420          lt_cv_prog_compiler__b=yes
9421        fi
9422      else
9423        lt_cv_prog_compiler__b=yes
9424      fi
9425    fi
9426    $RM -r conftest*
9427    LDFLAGS="$save_LDFLAGS"
9428
9429 fi
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9431 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9432
9433 if test x"$lt_cv_prog_compiler__b" = xyes; then
9434     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9435 else
9436     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9437 fi
9438
9439           ;;
9440         esac
9441       fi
9442       if test "$with_gnu_ld" = no; then
9443         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9444         hardcode_libdir_separator=:
9445
9446         case $host_cpu in
9447         hppa*64*|ia64*)
9448           hardcode_direct=no
9449           hardcode_shlibpath_var=no
9450           ;;
9451         *)
9452           hardcode_direct=yes
9453           hardcode_direct_absolute=yes
9454           export_dynamic_flag_spec='${wl}-E'
9455
9456           # hardcode_minus_L: Not really in the search PATH,
9457           # but as the default location of the library.
9458           hardcode_minus_L=yes
9459           ;;
9460         esac
9461       fi
9462       ;;
9463
9464     irix5* | irix6* | nonstopux*)
9465       if test "$GCC" = yes; then
9466         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'
9467         # Try to use the -exported_symbol ld option, if it does not
9468         # work, assume that -exports_file does not work either and
9469         # implicitly export all symbols.
9470         # This should be the same for all languages, so no per-tag cache variable.
9471         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9472 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9473 if ${lt_cv_irix_exported_symbol+:} false; then :
9474   $as_echo_n "(cached) " >&6
9475 else
9476   save_LDFLAGS="$LDFLAGS"
9477            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9478            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h.  */
9480 int foo (void) { return 0; }
9481 _ACEOF
9482 if ac_fn_c_try_link "$LINENO"; then :
9483   lt_cv_irix_exported_symbol=yes
9484 else
9485   lt_cv_irix_exported_symbol=no
9486 fi
9487 rm -f core conftest.err conftest.$ac_objext \
9488     conftest$ac_exeext conftest.$ac_ext
9489            LDFLAGS="$save_LDFLAGS"
9490 fi
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9492 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9493         if test "$lt_cv_irix_exported_symbol" = yes; then
9494           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'
9495         fi
9496       else
9497         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'
9498         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'
9499       fi
9500       archive_cmds_need_lc='no'
9501       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9502       hardcode_libdir_separator=:
9503       inherit_rpath=yes
9504       link_all_deplibs=yes
9505       ;;
9506
9507     netbsd* | netbsdelf*-gnu)
9508       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9509         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9510       else
9511         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9512       fi
9513       hardcode_libdir_flag_spec='-R$libdir'
9514       hardcode_direct=yes
9515       hardcode_shlibpath_var=no
9516       ;;
9517
9518     newsos6)
9519       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9520       hardcode_direct=yes
9521       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9522       hardcode_libdir_separator=:
9523       hardcode_shlibpath_var=no
9524       ;;
9525
9526     *nto* | *qnx*)
9527       ;;
9528
9529     openbsd*)
9530       if test -f /usr/libexec/ld.so; then
9531         hardcode_direct=yes
9532         hardcode_shlibpath_var=no
9533         hardcode_direct_absolute=yes
9534         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9535           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9536           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9537           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9538           export_dynamic_flag_spec='${wl}-E'
9539         else
9540           case $host_os in
9541            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9542              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9543              hardcode_libdir_flag_spec='-R$libdir'
9544              ;;
9545            *)
9546              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9547              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9548              ;;
9549           esac
9550         fi
9551       else
9552         ld_shlibs=no
9553       fi
9554       ;;
9555
9556     os2*)
9557       hardcode_libdir_flag_spec='-L$libdir'
9558       hardcode_minus_L=yes
9559       allow_undefined_flag=unsupported
9560       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'
9561       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9562       ;;
9563
9564     osf3*)
9565       if test "$GCC" = yes; then
9566         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9567         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'
9568       else
9569         allow_undefined_flag=' -expect_unresolved \*'
9570         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'
9571       fi
9572       archive_cmds_need_lc='no'
9573       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9574       hardcode_libdir_separator=:
9575       ;;
9576
9577     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9578       if test "$GCC" = yes; then
9579         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9580         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'
9581         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9582       else
9583         allow_undefined_flag=' -expect_unresolved \*'
9584         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'
9585         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~
9586         $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'
9587
9588         # Both c and cxx compiler support -rpath directly
9589         hardcode_libdir_flag_spec='-rpath $libdir'
9590       fi
9591       archive_cmds_need_lc='no'
9592       hardcode_libdir_separator=:
9593       ;;
9594
9595     solaris*)
9596       no_undefined_flag=' -z defs'
9597       if test "$GCC" = yes; then
9598         wlarc='${wl}'
9599         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9600         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9601           $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'
9602       else
9603         case `$CC -V 2>&1` in
9604         *"Compilers 5.0"*)
9605           wlarc=''
9606           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9607           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9608           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9609           ;;
9610         *)
9611           wlarc='${wl}'
9612           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9613           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9614           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9615           ;;
9616         esac
9617       fi
9618       hardcode_libdir_flag_spec='-R$libdir'
9619       hardcode_shlibpath_var=no
9620       case $host_os in
9621       solaris2.[0-5] | solaris2.[0-5].*) ;;
9622       *)
9623         # The compiler driver will combine and reorder linker options,
9624         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9625         # but is careful enough not to reorder.
9626         # Supported since Solaris 2.6 (maybe 2.5.1?)
9627         if test "$GCC" = yes; then
9628           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9629         else
9630           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9631         fi
9632         ;;
9633       esac
9634       link_all_deplibs=yes
9635       ;;
9636
9637     sunos4*)
9638       if test "x$host_vendor" = xsequent; then
9639         # Use $CC to link under sequent, because it throws in some extra .o
9640         # files that make .init and .fini sections work.
9641         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9642       else
9643         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9644       fi
9645       hardcode_libdir_flag_spec='-L$libdir'
9646       hardcode_direct=yes
9647       hardcode_minus_L=yes
9648       hardcode_shlibpath_var=no
9649       ;;
9650
9651     sysv4)
9652       case $host_vendor in
9653         sni)
9654           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9655           hardcode_direct=yes # is this really true???
9656         ;;
9657         siemens)
9658           ## LD is ld it makes a PLAMLIB
9659           ## CC just makes a GrossModule.
9660           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9661           reload_cmds='$CC -r -o $output$reload_objs'
9662           hardcode_direct=no
9663         ;;
9664         motorola)
9665           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9666           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9667         ;;
9668       esac
9669       runpath_var='LD_RUN_PATH'
9670       hardcode_shlibpath_var=no
9671       ;;
9672
9673     sysv4.3*)
9674       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675       hardcode_shlibpath_var=no
9676       export_dynamic_flag_spec='-Bexport'
9677       ;;
9678
9679     sysv4*MP*)
9680       if test -d /usr/nec; then
9681         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9682         hardcode_shlibpath_var=no
9683         runpath_var=LD_RUN_PATH
9684         hardcode_runpath_var=yes
9685         ld_shlibs=yes
9686       fi
9687       ;;
9688
9689     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9690       no_undefined_flag='${wl}-z,text'
9691       archive_cmds_need_lc=no
9692       hardcode_shlibpath_var=no
9693       runpath_var='LD_RUN_PATH'
9694
9695       if test "$GCC" = yes; then
9696         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9697         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9698       else
9699         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701       fi
9702       ;;
9703
9704     sysv5* | sco3.2v5* | sco5v6*)
9705       # Note: We can NOT use -z defs as we might desire, because we do not
9706       # link with -lc, and that would cause any symbols used from libc to
9707       # always be unresolved, which means just about no library would
9708       # ever link correctly.  If we're not using GNU ld we use -z text
9709       # though, which does catch some bad symbols but isn't as heavy-handed
9710       # as -z defs.
9711       no_undefined_flag='${wl}-z,text'
9712       allow_undefined_flag='${wl}-z,nodefs'
9713       archive_cmds_need_lc=no
9714       hardcode_shlibpath_var=no
9715       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9716       hardcode_libdir_separator=':'
9717       link_all_deplibs=yes
9718       export_dynamic_flag_spec='${wl}-Bexport'
9719       runpath_var='LD_RUN_PATH'
9720
9721       if test "$GCC" = yes; then
9722         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724       else
9725         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727       fi
9728       ;;
9729
9730     uts4*)
9731       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9732       hardcode_libdir_flag_spec='-L$libdir'
9733       hardcode_shlibpath_var=no
9734       ;;
9735
9736     *)
9737       ld_shlibs=no
9738       ;;
9739     esac
9740
9741     if test x$host_vendor = xsni; then
9742       case $host in
9743       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9744         export_dynamic_flag_spec='${wl}-Blargedynsym'
9745         ;;
9746       esac
9747     fi
9748   fi
9749
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9751 $as_echo "$ld_shlibs" >&6; }
9752 test "$ld_shlibs" = no && can_build_shared=no
9753
9754 with_gnu_ld=$with_gnu_ld
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770 #
9771 # Do we need to explicitly link libc?
9772 #
9773 case "x$archive_cmds_need_lc" in
9774 x|xyes)
9775   # Assume -lc should be added
9776   archive_cmds_need_lc=yes
9777
9778   if test "$enable_shared" = yes && test "$GCC" = yes; then
9779     case $archive_cmds in
9780     *'~'*)
9781       # FIXME: we may have to deal with multi-command sequences.
9782       ;;
9783     '$CC '*)
9784       # Test whether the compiler implicitly links with -lc since on some
9785       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9786       # to ld, don't add -lc before -lgcc.
9787       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9788 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9789 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9790   $as_echo_n "(cached) " >&6
9791 else
9792   $RM conftest*
9793         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9794
9795         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9796   (eval $ac_compile) 2>&5
9797   ac_status=$?
9798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9799   test $ac_status = 0; } 2>conftest.err; then
9800           soname=conftest
9801           lib=conftest
9802           libobjs=conftest.$ac_objext
9803           deplibs=
9804           wl=$lt_prog_compiler_wl
9805           pic_flag=$lt_prog_compiler_pic
9806           compiler_flags=-v
9807           linker_flags=-v
9808           verstring=
9809           output_objdir=.
9810           libname=conftest
9811           lt_save_allow_undefined_flag=$allow_undefined_flag
9812           allow_undefined_flag=
9813           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9814   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9815   ac_status=$?
9816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9817   test $ac_status = 0; }
9818           then
9819             lt_cv_archive_cmds_need_lc=no
9820           else
9821             lt_cv_archive_cmds_need_lc=yes
9822           fi
9823           allow_undefined_flag=$lt_save_allow_undefined_flag
9824         else
9825           cat conftest.err 1>&5
9826         fi
9827         $RM conftest*
9828
9829 fi
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9831 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9832       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9833       ;;
9834     esac
9835   fi
9836   ;;
9837 esac
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9991 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9992
9993 if test "$GCC" = yes; then
9994   case $host_os in
9995     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9996     *) lt_awk_arg="/^libraries:/" ;;
9997   esac
9998   case $host_os in
9999     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10000     *) lt_sed_strip_eq="s,=/,/,g" ;;
10001   esac
10002   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10003   case $lt_search_path_spec in
10004   *\;*)
10005     # if the path contains ";" then we assume it to be the separator
10006     # otherwise default to the standard path separator (i.e. ":") - it is
10007     # assumed that no part of a normal pathname contains ";" but that should
10008     # okay in the real world where ";" in dirpaths is itself problematic.
10009     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10010     ;;
10011   *)
10012     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10013     ;;
10014   esac
10015   # Ok, now we have the path, separated by spaces, we can step through it
10016   # and add multilib dir if necessary.
10017   lt_tmp_lt_search_path_spec=
10018   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10019   for lt_sys_path in $lt_search_path_spec; do
10020     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10021       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10022     else
10023       test -d "$lt_sys_path" && \
10024         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10025     fi
10026   done
10027   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10028 BEGIN {RS=" "; FS="/|\n";} {
10029   lt_foo="";
10030   lt_count=0;
10031   for (lt_i = NF; lt_i > 0; lt_i--) {
10032     if ($lt_i != "" && $lt_i != ".") {
10033       if ($lt_i == "..") {
10034         lt_count++;
10035       } else {
10036         if (lt_count == 0) {
10037           lt_foo="/" $lt_i lt_foo;
10038         } else {
10039           lt_count--;
10040         }
10041       }
10042     }
10043   }
10044   if (lt_foo != "") { lt_freq[lt_foo]++; }
10045   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10046 }'`
10047   # AWK program above erroneously prepends '/' to C:/dos/paths
10048   # for these hosts.
10049   case $host_os in
10050     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10051       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10052   esac
10053   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10054 else
10055   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10056 fi
10057 library_names_spec=
10058 libname_spec='lib$name'
10059 soname_spec=
10060 shrext_cmds=".so"
10061 postinstall_cmds=
10062 postuninstall_cmds=
10063 finish_cmds=
10064 finish_eval=
10065 shlibpath_var=
10066 shlibpath_overrides_runpath=unknown
10067 version_type=none
10068 dynamic_linker="$host_os ld.so"
10069 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10070 need_lib_prefix=unknown
10071 hardcode_into_libs=no
10072
10073 # when you set need_version to no, make sure it does not cause -set_version
10074 # flags to be left without arguments
10075 need_version=unknown
10076
10077 case $host_os in
10078 aix3*)
10079   version_type=linux # correct to gnu/linux during the next big refactor
10080   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10081   shlibpath_var=LIBPATH
10082
10083   # AIX 3 has no versioning support, so we append a major version to the name.
10084   soname_spec='${libname}${release}${shared_ext}$major'
10085   ;;
10086
10087 aix[4-9]*)
10088   version_type=linux # correct to gnu/linux during the next big refactor
10089   need_lib_prefix=no
10090   need_version=no
10091   hardcode_into_libs=yes
10092   if test "$host_cpu" = ia64; then
10093     # AIX 5 supports IA64
10094     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10095     shlibpath_var=LD_LIBRARY_PATH
10096   else
10097     # With GCC up to 2.95.x, collect2 would create an import file
10098     # for dependence libraries.  The import file would start with
10099     # the line `#! .'.  This would cause the generated library to
10100     # depend on `.', always an invalid library.  This was fixed in
10101     # development snapshots of GCC prior to 3.0.
10102     case $host_os in
10103       aix4 | aix4.[01] | aix4.[01].*)
10104       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10105            echo ' yes '
10106            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10107         :
10108       else
10109         can_build_shared=no
10110       fi
10111       ;;
10112     esac
10113     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10114     # soname into executable. Probably we can add versioning support to
10115     # collect2, so additional links can be useful in future.
10116     if test "$aix_use_runtimelinking" = yes; then
10117       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10118       # instead of lib<name>.a to let people know that these are not
10119       # typical AIX shared libraries.
10120       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121     else
10122       # We preserve .a as extension for shared libraries through AIX4.2
10123       # and later when we are not doing run time linking.
10124       library_names_spec='${libname}${release}.a $libname.a'
10125       soname_spec='${libname}${release}${shared_ext}$major'
10126     fi
10127     shlibpath_var=LIBPATH
10128   fi
10129   ;;
10130
10131 amigaos*)
10132   case $host_cpu in
10133   powerpc)
10134     # Since July 2007 AmigaOS4 officially supports .so libraries.
10135     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10136     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137     ;;
10138   m68k)
10139     library_names_spec='$libname.ixlibrary $libname.a'
10140     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10141     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'
10142     ;;
10143   esac
10144   ;;
10145
10146 beos*)
10147   library_names_spec='${libname}${shared_ext}'
10148   dynamic_linker="$host_os ld.so"
10149   shlibpath_var=LIBRARY_PATH
10150   ;;
10151
10152 bsdi[45]*)
10153   version_type=linux # correct to gnu/linux during the next big refactor
10154   need_version=no
10155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156   soname_spec='${libname}${release}${shared_ext}$major'
10157   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10158   shlibpath_var=LD_LIBRARY_PATH
10159   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10160   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10161   # the default ld.so.conf also contains /usr/contrib/lib and
10162   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10163   # libtool to hard-code these into programs
10164   ;;
10165
10166 cygwin* | mingw* | pw32* | cegcc*)
10167   version_type=windows
10168   shrext_cmds=".dll"
10169   need_version=no
10170   need_lib_prefix=no
10171
10172   case $GCC,$cc_basename in
10173   yes,*)
10174     # gcc
10175     library_names_spec='$libname.dll.a'
10176     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10177     postinstall_cmds='base_file=`basename \${file}`~
10178       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10179       dldir=$destdir/`dirname \$dlpath`~
10180       test -d \$dldir || mkdir -p \$dldir~
10181       $install_prog $dir/$dlname \$dldir/$dlname~
10182       chmod a+x \$dldir/$dlname~
10183       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10184         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10185       fi'
10186     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10187       dlpath=$dir/\$dldll~
10188        $RM \$dlpath'
10189     shlibpath_overrides_runpath=yes
10190
10191     case $host_os in
10192     cygwin*)
10193       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10194       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10195
10196       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10197       ;;
10198     mingw* | cegcc*)
10199       # MinGW DLLs use traditional 'lib' prefix
10200       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10201       ;;
10202     pw32*)
10203       # pw32 DLLs use 'pw' prefix rather than 'lib'
10204       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10205       ;;
10206     esac
10207     dynamic_linker='Win32 ld.exe'
10208     ;;
10209
10210   *,cl*)
10211     # Native MSVC
10212     libname_spec='$name'
10213     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10214     library_names_spec='${libname}.dll.lib'
10215
10216     case $build_os in
10217     mingw*)
10218       sys_lib_search_path_spec=
10219       lt_save_ifs=$IFS
10220       IFS=';'
10221       for lt_path in $LIB
10222       do
10223         IFS=$lt_save_ifs
10224         # Let DOS variable expansion print the short 8.3 style file name.
10225         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10226         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10227       done
10228       IFS=$lt_save_ifs
10229       # Convert to MSYS style.
10230       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10231       ;;
10232     cygwin*)
10233       # Convert to unix form, then to dos form, then back to unix form
10234       # but this time dos style (no spaces!) so that the unix form looks
10235       # like /cygdrive/c/PROGRA~1:/cygdr...
10236       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10237       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10238       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10239       ;;
10240     *)
10241       sys_lib_search_path_spec="$LIB"
10242       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10243         # It is most probably a Windows format PATH.
10244         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10245       else
10246         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10247       fi
10248       # FIXME: find the short name or the path components, as spaces are
10249       # common. (e.g. "Program Files" -> "PROGRA~1")
10250       ;;
10251     esac
10252
10253     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10254     postinstall_cmds='base_file=`basename \${file}`~
10255       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10256       dldir=$destdir/`dirname \$dlpath`~
10257       test -d \$dldir || mkdir -p \$dldir~
10258       $install_prog $dir/$dlname \$dldir/$dlname'
10259     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10260       dlpath=$dir/\$dldll~
10261        $RM \$dlpath'
10262     shlibpath_overrides_runpath=yes
10263     dynamic_linker='Win32 link.exe'
10264     ;;
10265
10266   *)
10267     # Assume MSVC wrapper
10268     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10269     dynamic_linker='Win32 ld.exe'
10270     ;;
10271   esac
10272   # FIXME: first we should search . and the directory the executable is in
10273   shlibpath_var=PATH
10274   ;;
10275
10276 darwin* | rhapsody*)
10277   dynamic_linker="$host_os dyld"
10278   version_type=darwin
10279   need_lib_prefix=no
10280   need_version=no
10281   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10282   soname_spec='${libname}${release}${major}$shared_ext'
10283   shlibpath_overrides_runpath=yes
10284   shlibpath_var=DYLD_LIBRARY_PATH
10285   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10286
10287   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10288   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10289   ;;
10290
10291 dgux*)
10292   version_type=linux # correct to gnu/linux during the next big refactor
10293   need_lib_prefix=no
10294   need_version=no
10295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10296   soname_spec='${libname}${release}${shared_ext}$major'
10297   shlibpath_var=LD_LIBRARY_PATH
10298   ;;
10299
10300 freebsd* | dragonfly*)
10301   # DragonFly does not have aout.  When/if they implement a new
10302   # versioning mechanism, adjust this.
10303   if test -x /usr/bin/objformat; then
10304     objformat=`/usr/bin/objformat`
10305   else
10306     case $host_os in
10307     freebsd[23].*) objformat=aout ;;
10308     *) objformat=elf ;;
10309     esac
10310   fi
10311   version_type=freebsd-$objformat
10312   case $version_type in
10313     freebsd-elf*)
10314       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10315       need_version=no
10316       need_lib_prefix=no
10317       ;;
10318     freebsd-*)
10319       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10320       need_version=yes
10321       ;;
10322   esac
10323   shlibpath_var=LD_LIBRARY_PATH
10324   case $host_os in
10325   freebsd2.*)
10326     shlibpath_overrides_runpath=yes
10327     ;;
10328   freebsd3.[01]* | freebsdelf3.[01]*)
10329     shlibpath_overrides_runpath=yes
10330     hardcode_into_libs=yes
10331     ;;
10332   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10333   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10334     shlibpath_overrides_runpath=no
10335     hardcode_into_libs=yes
10336     ;;
10337   *) # from 4.6 on, and DragonFly
10338     shlibpath_overrides_runpath=yes
10339     hardcode_into_libs=yes
10340     ;;
10341   esac
10342   ;;
10343
10344 haiku*)
10345   version_type=linux # correct to gnu/linux during the next big refactor
10346   need_lib_prefix=no
10347   need_version=no
10348   dynamic_linker="$host_os runtime_loader"
10349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10350   soname_spec='${libname}${release}${shared_ext}$major'
10351   shlibpath_var=LIBRARY_PATH
10352   shlibpath_overrides_runpath=yes
10353   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10354   hardcode_into_libs=yes
10355   ;;
10356
10357 hpux9* | hpux10* | hpux11*)
10358   # Give a soname corresponding to the major version so that dld.sl refuses to
10359   # link against other versions.
10360   version_type=sunos
10361   need_lib_prefix=no
10362   need_version=no
10363   case $host_cpu in
10364   ia64*)
10365     shrext_cmds='.so'
10366     hardcode_into_libs=yes
10367     dynamic_linker="$host_os dld.so"
10368     shlibpath_var=LD_LIBRARY_PATH
10369     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10370     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371     soname_spec='${libname}${release}${shared_ext}$major'
10372     if test "X$HPUX_IA64_MODE" = X32; then
10373       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10374     else
10375       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10376     fi
10377     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10378     ;;
10379   hppa*64*)
10380     shrext_cmds='.sl'
10381     hardcode_into_libs=yes
10382     dynamic_linker="$host_os dld.sl"
10383     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10384     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10385     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386     soname_spec='${libname}${release}${shared_ext}$major'
10387     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10388     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10389     ;;
10390   *)
10391     shrext_cmds='.sl'
10392     dynamic_linker="$host_os dld.sl"
10393     shlibpath_var=SHLIB_PATH
10394     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10395     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396     soname_spec='${libname}${release}${shared_ext}$major'
10397     ;;
10398   esac
10399   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10400   postinstall_cmds='chmod 555 $lib'
10401   # or fails outright, so override atomically:
10402   install_override_mode=555
10403   ;;
10404
10405 interix[3-9]*)
10406   version_type=linux # correct to gnu/linux during the next big refactor
10407   need_lib_prefix=no
10408   need_version=no
10409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10410   soname_spec='${libname}${release}${shared_ext}$major'
10411   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10412   shlibpath_var=LD_LIBRARY_PATH
10413   shlibpath_overrides_runpath=no
10414   hardcode_into_libs=yes
10415   ;;
10416
10417 irix5* | irix6* | nonstopux*)
10418   case $host_os in
10419     nonstopux*) version_type=nonstopux ;;
10420     *)
10421         if test "$lt_cv_prog_gnu_ld" = yes; then
10422                 version_type=linux # correct to gnu/linux during the next big refactor
10423         else
10424                 version_type=irix
10425         fi ;;
10426   esac
10427   need_lib_prefix=no
10428   need_version=no
10429   soname_spec='${libname}${release}${shared_ext}$major'
10430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10431   case $host_os in
10432   irix5* | nonstopux*)
10433     libsuff= shlibsuff=
10434     ;;
10435   *)
10436     case $LD in # libtool.m4 will add one of these switches to LD
10437     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10438       libsuff= shlibsuff= libmagic=32-bit;;
10439     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10440       libsuff=32 shlibsuff=N32 libmagic=N32;;
10441     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10442       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10443     *) libsuff= shlibsuff= libmagic=never-match;;
10444     esac
10445     ;;
10446   esac
10447   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10448   shlibpath_overrides_runpath=no
10449   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10450   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10451   hardcode_into_libs=yes
10452   ;;
10453
10454 # No shared lib support for Linux oldld, aout, or coff.
10455 linux*oldld* | linux*aout* | linux*coff*)
10456   dynamic_linker=no
10457   ;;
10458
10459 # This must be glibc/ELF.
10460 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10461   version_type=linux # correct to gnu/linux during the next big refactor
10462   need_lib_prefix=no
10463   need_version=no
10464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465   soname_spec='${libname}${release}${shared_ext}$major'
10466   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10467   shlibpath_var=LD_LIBRARY_PATH
10468   shlibpath_overrides_runpath=no
10469
10470   # Some binutils ld are patched to set DT_RUNPATH
10471   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10472   $as_echo_n "(cached) " >&6
10473 else
10474   lt_cv_shlibpath_overrides_runpath=no
10475     save_LDFLAGS=$LDFLAGS
10476     save_libdir=$libdir
10477     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10478          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10479     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480 /* end confdefs.h.  */
10481
10482 int
10483 main ()
10484 {
10485
10486   ;
10487   return 0;
10488 }
10489 _ACEOF
10490 if ac_fn_c_try_link "$LINENO"; then :
10491   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10492   lt_cv_shlibpath_overrides_runpath=yes
10493 fi
10494 fi
10495 rm -f core conftest.err conftest.$ac_objext \
10496     conftest$ac_exeext conftest.$ac_ext
10497     LDFLAGS=$save_LDFLAGS
10498     libdir=$save_libdir
10499
10500 fi
10501
10502   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10503
10504   # This implies no fast_install, which is unacceptable.
10505   # Some rework will be needed to allow for fast_install
10506   # before this can be enabled.
10507   hardcode_into_libs=yes
10508
10509   # Append ld.so.conf contents to the search path
10510   if test -f /etc/ld.so.conf; then
10511     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' ' '`
10512     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10513   fi
10514
10515   # We used to test for /lib/ld.so.1 and disable shared libraries on
10516   # powerpc, because MkLinux only supported shared libraries with the
10517   # GNU dynamic linker.  Since this was broken with cross compilers,
10518   # most powerpc-linux boxes support dynamic linking these days and
10519   # people can always --disable-shared, the test was removed, and we
10520   # assume the GNU/Linux dynamic linker is in use.
10521   dynamic_linker='GNU/Linux ld.so'
10522   ;;
10523
10524 netbsdelf*-gnu)
10525   version_type=linux
10526   need_lib_prefix=no
10527   need_version=no
10528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10529   soname_spec='${libname}${release}${shared_ext}$major'
10530   shlibpath_var=LD_LIBRARY_PATH
10531   shlibpath_overrides_runpath=no
10532   hardcode_into_libs=yes
10533   dynamic_linker='NetBSD ld.elf_so'
10534   ;;
10535
10536 netbsd*)
10537   version_type=sunos
10538   need_lib_prefix=no
10539   need_version=no
10540   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10541     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10542     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10543     dynamic_linker='NetBSD (a.out) ld.so'
10544   else
10545     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10546     soname_spec='${libname}${release}${shared_ext}$major'
10547     dynamic_linker='NetBSD ld.elf_so'
10548   fi
10549   shlibpath_var=LD_LIBRARY_PATH
10550   shlibpath_overrides_runpath=yes
10551   hardcode_into_libs=yes
10552   ;;
10553
10554 newsos6)
10555   version_type=linux # correct to gnu/linux during the next big refactor
10556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557   shlibpath_var=LD_LIBRARY_PATH
10558   shlibpath_overrides_runpath=yes
10559   ;;
10560
10561 *nto* | *qnx*)
10562   version_type=qnx
10563   need_lib_prefix=no
10564   need_version=no
10565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10566   soname_spec='${libname}${release}${shared_ext}$major'
10567   shlibpath_var=LD_LIBRARY_PATH
10568   shlibpath_overrides_runpath=no
10569   hardcode_into_libs=yes
10570   dynamic_linker='ldqnx.so'
10571   ;;
10572
10573 openbsd*)
10574   version_type=sunos
10575   sys_lib_dlsearch_path_spec="/usr/lib"
10576   need_lib_prefix=no
10577   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10578   case $host_os in
10579     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10580     *)                          need_version=no  ;;
10581   esac
10582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10583   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10584   shlibpath_var=LD_LIBRARY_PATH
10585   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10586     case $host_os in
10587       openbsd2.[89] | openbsd2.[89].*)
10588         shlibpath_overrides_runpath=no
10589         ;;
10590       *)
10591         shlibpath_overrides_runpath=yes
10592         ;;
10593       esac
10594   else
10595     shlibpath_overrides_runpath=yes
10596   fi
10597   ;;
10598
10599 os2*)
10600   libname_spec='$name'
10601   shrext_cmds=".dll"
10602   need_lib_prefix=no
10603   library_names_spec='$libname${shared_ext} $libname.a'
10604   dynamic_linker='OS/2 ld.exe'
10605   shlibpath_var=LIBPATH
10606   ;;
10607
10608 osf3* | osf4* | osf5*)
10609   version_type=osf
10610   need_lib_prefix=no
10611   need_version=no
10612   soname_spec='${libname}${release}${shared_ext}$major'
10613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614   shlibpath_var=LD_LIBRARY_PATH
10615   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10616   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10617   ;;
10618
10619 rdos*)
10620   dynamic_linker=no
10621   ;;
10622
10623 solaris*)
10624   version_type=linux # correct to gnu/linux during the next big refactor
10625   need_lib_prefix=no
10626   need_version=no
10627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10628   soname_spec='${libname}${release}${shared_ext}$major'
10629   shlibpath_var=LD_LIBRARY_PATH
10630   shlibpath_overrides_runpath=yes
10631   hardcode_into_libs=yes
10632   # ldd complains unless libraries are executable
10633   postinstall_cmds='chmod +x $lib'
10634   ;;
10635
10636 sunos4*)
10637   version_type=sunos
10638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10639   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10640   shlibpath_var=LD_LIBRARY_PATH
10641   shlibpath_overrides_runpath=yes
10642   if test "$with_gnu_ld" = yes; then
10643     need_lib_prefix=no
10644   fi
10645   need_version=yes
10646   ;;
10647
10648 sysv4 | sysv4.3*)
10649   version_type=linux # correct to gnu/linux during the next big refactor
10650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10651   soname_spec='${libname}${release}${shared_ext}$major'
10652   shlibpath_var=LD_LIBRARY_PATH
10653   case $host_vendor in
10654     sni)
10655       shlibpath_overrides_runpath=no
10656       need_lib_prefix=no
10657       runpath_var=LD_RUN_PATH
10658       ;;
10659     siemens)
10660       need_lib_prefix=no
10661       ;;
10662     motorola)
10663       need_lib_prefix=no
10664       need_version=no
10665       shlibpath_overrides_runpath=no
10666       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10667       ;;
10668   esac
10669   ;;
10670
10671 sysv4*MP*)
10672   if test -d /usr/nec ;then
10673     version_type=linux # correct to gnu/linux during the next big refactor
10674     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10675     soname_spec='$libname${shared_ext}.$major'
10676     shlibpath_var=LD_LIBRARY_PATH
10677   fi
10678   ;;
10679
10680 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10681   version_type=freebsd-elf
10682   need_lib_prefix=no
10683   need_version=no
10684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10685   soname_spec='${libname}${release}${shared_ext}$major'
10686   shlibpath_var=LD_LIBRARY_PATH
10687   shlibpath_overrides_runpath=yes
10688   hardcode_into_libs=yes
10689   if test "$with_gnu_ld" = yes; then
10690     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10691   else
10692     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10693     case $host_os in
10694       sco3.2v5*)
10695         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10696         ;;
10697     esac
10698   fi
10699   sys_lib_dlsearch_path_spec='/usr/lib'
10700   ;;
10701
10702 tpf*)
10703   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10704   version_type=linux # correct to gnu/linux during the next big refactor
10705   need_lib_prefix=no
10706   need_version=no
10707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10708   shlibpath_var=LD_LIBRARY_PATH
10709   shlibpath_overrides_runpath=no
10710   hardcode_into_libs=yes
10711   ;;
10712
10713 uts4*)
10714   version_type=linux # correct to gnu/linux during the next big refactor
10715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716   soname_spec='${libname}${release}${shared_ext}$major'
10717   shlibpath_var=LD_LIBRARY_PATH
10718   ;;
10719
10720 *)
10721   dynamic_linker=no
10722   ;;
10723 esac
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10725 $as_echo "$dynamic_linker" >&6; }
10726 test "$dynamic_linker" = no && can_build_shared=no
10727
10728 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10729 if test "$GCC" = yes; then
10730   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10731 fi
10732
10733 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10734   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10735 fi
10736 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10737   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10738 fi
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10832 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10833 hardcode_action=
10834 if test -n "$hardcode_libdir_flag_spec" ||
10835    test -n "$runpath_var" ||
10836    test "X$hardcode_automatic" = "Xyes" ; then
10837
10838   # We can hardcode non-existent directories.
10839   if test "$hardcode_direct" != no &&
10840      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10841      # have to relink, otherwise we might link with an installed library
10842      # when we should be linking with a yet-to-be-installed one
10843      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10844      test "$hardcode_minus_L" != no; then
10845     # Linking always hardcodes the temporary library directory.
10846     hardcode_action=relink
10847   else
10848     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10849     hardcode_action=immediate
10850   fi
10851 else
10852   # We cannot hardcode anything, or else we can only hardcode existing
10853   # directories.
10854   hardcode_action=unsupported
10855 fi
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10857 $as_echo "$hardcode_action" >&6; }
10858
10859 if test "$hardcode_action" = relink ||
10860    test "$inherit_rpath" = yes; then
10861   # Fast installation is not supported
10862   enable_fast_install=no
10863 elif test "$shlibpath_overrides_runpath" = yes ||
10864      test "$enable_shared" = no; then
10865   # Fast installation is not necessary
10866   enable_fast_install=needless
10867 fi
10868
10869
10870
10871
10872
10873
10874   if test "x$enable_dlopen" != xyes; then
10875   enable_dlopen=unknown
10876   enable_dlopen_self=unknown
10877   enable_dlopen_self_static=unknown
10878 else
10879   lt_cv_dlopen=no
10880   lt_cv_dlopen_libs=
10881
10882   case $host_os in
10883   beos*)
10884     lt_cv_dlopen="load_add_on"
10885     lt_cv_dlopen_libs=
10886     lt_cv_dlopen_self=yes
10887     ;;
10888
10889   mingw* | pw32* | cegcc*)
10890     lt_cv_dlopen="LoadLibrary"
10891     lt_cv_dlopen_libs=
10892     ;;
10893
10894   cygwin*)
10895     lt_cv_dlopen="dlopen"
10896     lt_cv_dlopen_libs=
10897     ;;
10898
10899   darwin*)
10900   # if libdl is installed we need to link against it
10901     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10902 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10903 if ${ac_cv_lib_dl_dlopen+:} false; then :
10904   $as_echo_n "(cached) " >&6
10905 else
10906   ac_check_lib_save_LIBS=$LIBS
10907 LIBS="-ldl  $LIBS"
10908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h.  */
10910
10911 /* Override any GCC internal prototype to avoid an error.
10912    Use char because int might match the return type of a GCC
10913    builtin and then its argument prototype would still apply.  */
10914 #ifdef __cplusplus
10915 extern "C"
10916 #endif
10917 char dlopen ();
10918 int
10919 main ()
10920 {
10921 return dlopen ();
10922   ;
10923   return 0;
10924 }
10925 _ACEOF
10926 if ac_fn_c_try_link "$LINENO"; then :
10927   ac_cv_lib_dl_dlopen=yes
10928 else
10929   ac_cv_lib_dl_dlopen=no
10930 fi
10931 rm -f core conftest.err conftest.$ac_objext \
10932     conftest$ac_exeext conftest.$ac_ext
10933 LIBS=$ac_check_lib_save_LIBS
10934 fi
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10936 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10937 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10938   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10939 else
10940
10941     lt_cv_dlopen="dyld"
10942     lt_cv_dlopen_libs=
10943     lt_cv_dlopen_self=yes
10944
10945 fi
10946
10947     ;;
10948
10949   *)
10950     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10951 if test "x$ac_cv_func_shl_load" = xyes; then :
10952   lt_cv_dlopen="shl_load"
10953 else
10954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10955 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10956 if ${ac_cv_lib_dld_shl_load+:} false; then :
10957   $as_echo_n "(cached) " >&6
10958 else
10959   ac_check_lib_save_LIBS=$LIBS
10960 LIBS="-ldld  $LIBS"
10961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10962 /* end confdefs.h.  */
10963
10964 /* Override any GCC internal prototype to avoid an error.
10965    Use char because int might match the return type of a GCC
10966    builtin and then its argument prototype would still apply.  */
10967 #ifdef __cplusplus
10968 extern "C"
10969 #endif
10970 char shl_load ();
10971 int
10972 main ()
10973 {
10974 return shl_load ();
10975   ;
10976   return 0;
10977 }
10978 _ACEOF
10979 if ac_fn_c_try_link "$LINENO"; then :
10980   ac_cv_lib_dld_shl_load=yes
10981 else
10982   ac_cv_lib_dld_shl_load=no
10983 fi
10984 rm -f core conftest.err conftest.$ac_objext \
10985     conftest$ac_exeext conftest.$ac_ext
10986 LIBS=$ac_check_lib_save_LIBS
10987 fi
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10989 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10990 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10991   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10992 else
10993   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10994 if test "x$ac_cv_func_dlopen" = xyes; then :
10995   lt_cv_dlopen="dlopen"
10996 else
10997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10998 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10999 if ${ac_cv_lib_dl_dlopen+:} false; then :
11000   $as_echo_n "(cached) " >&6
11001 else
11002   ac_check_lib_save_LIBS=$LIBS
11003 LIBS="-ldl  $LIBS"
11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h.  */
11006
11007 /* Override any GCC internal prototype to avoid an error.
11008    Use char because int might match the return type of a GCC
11009    builtin and then its argument prototype would still apply.  */
11010 #ifdef __cplusplus
11011 extern "C"
11012 #endif
11013 char dlopen ();
11014 int
11015 main ()
11016 {
11017 return dlopen ();
11018   ;
11019   return 0;
11020 }
11021 _ACEOF
11022 if ac_fn_c_try_link "$LINENO"; then :
11023   ac_cv_lib_dl_dlopen=yes
11024 else
11025   ac_cv_lib_dl_dlopen=no
11026 fi
11027 rm -f core conftest.err conftest.$ac_objext \
11028     conftest$ac_exeext conftest.$ac_ext
11029 LIBS=$ac_check_lib_save_LIBS
11030 fi
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11032 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11033 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11034   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11035 else
11036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11037 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11038 if ${ac_cv_lib_svld_dlopen+:} false; then :
11039   $as_echo_n "(cached) " >&6
11040 else
11041   ac_check_lib_save_LIBS=$LIBS
11042 LIBS="-lsvld  $LIBS"
11043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11044 /* end confdefs.h.  */
11045
11046 /* Override any GCC internal prototype to avoid an error.
11047    Use char because int might match the return type of a GCC
11048    builtin and then its argument prototype would still apply.  */
11049 #ifdef __cplusplus
11050 extern "C"
11051 #endif
11052 char dlopen ();
11053 int
11054 main ()
11055 {
11056 return dlopen ();
11057   ;
11058   return 0;
11059 }
11060 _ACEOF
11061 if ac_fn_c_try_link "$LINENO"; then :
11062   ac_cv_lib_svld_dlopen=yes
11063 else
11064   ac_cv_lib_svld_dlopen=no
11065 fi
11066 rm -f core conftest.err conftest.$ac_objext \
11067     conftest$ac_exeext conftest.$ac_ext
11068 LIBS=$ac_check_lib_save_LIBS
11069 fi
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11071 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11072 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11073   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11074 else
11075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11076 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11077 if ${ac_cv_lib_dld_dld_link+:} false; then :
11078   $as_echo_n "(cached) " >&6
11079 else
11080   ac_check_lib_save_LIBS=$LIBS
11081 LIBS="-ldld  $LIBS"
11082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083 /* end confdefs.h.  */
11084
11085 /* Override any GCC internal prototype to avoid an error.
11086    Use char because int might match the return type of a GCC
11087    builtin and then its argument prototype would still apply.  */
11088 #ifdef __cplusplus
11089 extern "C"
11090 #endif
11091 char dld_link ();
11092 int
11093 main ()
11094 {
11095 return dld_link ();
11096   ;
11097   return 0;
11098 }
11099 _ACEOF
11100 if ac_fn_c_try_link "$LINENO"; then :
11101   ac_cv_lib_dld_dld_link=yes
11102 else
11103   ac_cv_lib_dld_dld_link=no
11104 fi
11105 rm -f core conftest.err conftest.$ac_objext \
11106     conftest$ac_exeext conftest.$ac_ext
11107 LIBS=$ac_check_lib_save_LIBS
11108 fi
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11110 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11111 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11112   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11113 fi
11114
11115
11116 fi
11117
11118
11119 fi
11120
11121
11122 fi
11123
11124
11125 fi
11126
11127
11128 fi
11129
11130     ;;
11131   esac
11132
11133   if test "x$lt_cv_dlopen" != xno; then
11134     enable_dlopen=yes
11135   else
11136     enable_dlopen=no
11137   fi
11138
11139   case $lt_cv_dlopen in
11140   dlopen)
11141     save_CPPFLAGS="$CPPFLAGS"
11142     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11143
11144     save_LDFLAGS="$LDFLAGS"
11145     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11146
11147     save_LIBS="$LIBS"
11148     LIBS="$lt_cv_dlopen_libs $LIBS"
11149
11150     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11151 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11152 if ${lt_cv_dlopen_self+:} false; then :
11153   $as_echo_n "(cached) " >&6
11154 else
11155           if test "$cross_compiling" = yes; then :
11156   lt_cv_dlopen_self=cross
11157 else
11158   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11159   lt_status=$lt_dlunknown
11160   cat > conftest.$ac_ext <<_LT_EOF
11161 #line $LINENO "configure"
11162 #include "confdefs.h"
11163
11164 #if HAVE_DLFCN_H
11165 #include <dlfcn.h>
11166 #endif
11167
11168 #include <stdio.h>
11169
11170 #ifdef RTLD_GLOBAL
11171 #  define LT_DLGLOBAL           RTLD_GLOBAL
11172 #else
11173 #  ifdef DL_GLOBAL
11174 #    define LT_DLGLOBAL         DL_GLOBAL
11175 #  else
11176 #    define LT_DLGLOBAL         0
11177 #  endif
11178 #endif
11179
11180 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11181    find out it does not work in some platform. */
11182 #ifndef LT_DLLAZY_OR_NOW
11183 #  ifdef RTLD_LAZY
11184 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11185 #  else
11186 #    ifdef DL_LAZY
11187 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11188 #    else
11189 #      ifdef RTLD_NOW
11190 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11191 #      else
11192 #        ifdef DL_NOW
11193 #          define LT_DLLAZY_OR_NOW      DL_NOW
11194 #        else
11195 #          define LT_DLLAZY_OR_NOW      0
11196 #        endif
11197 #      endif
11198 #    endif
11199 #  endif
11200 #endif
11201
11202 /* When -fvisbility=hidden is used, assume the code has been annotated
11203    correspondingly for the symbols needed.  */
11204 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11205 int fnord () __attribute__((visibility("default")));
11206 #endif
11207
11208 int fnord () { return 42; }
11209 int main ()
11210 {
11211   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11212   int status = $lt_dlunknown;
11213
11214   if (self)
11215     {
11216       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11217       else
11218         {
11219           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11220           else puts (dlerror ());
11221         }
11222       /* dlclose (self); */
11223     }
11224   else
11225     puts (dlerror ());
11226
11227   return status;
11228 }
11229 _LT_EOF
11230   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11231   (eval $ac_link) 2>&5
11232   ac_status=$?
11233   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11234   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11235     (./conftest; exit; ) >&5 2>/dev/null
11236     lt_status=$?
11237     case x$lt_status in
11238       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11239       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11240       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11241     esac
11242   else :
11243     # compilation failed
11244     lt_cv_dlopen_self=no
11245   fi
11246 fi
11247 rm -fr conftest*
11248
11249
11250 fi
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11252 $as_echo "$lt_cv_dlopen_self" >&6; }
11253
11254     if test "x$lt_cv_dlopen_self" = xyes; then
11255       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11256       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11257 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11258 if ${lt_cv_dlopen_self_static+:} false; then :
11259   $as_echo_n "(cached) " >&6
11260 else
11261           if test "$cross_compiling" = yes; then :
11262   lt_cv_dlopen_self_static=cross
11263 else
11264   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11265   lt_status=$lt_dlunknown
11266   cat > conftest.$ac_ext <<_LT_EOF
11267 #line $LINENO "configure"
11268 #include "confdefs.h"
11269
11270 #if HAVE_DLFCN_H
11271 #include <dlfcn.h>
11272 #endif
11273
11274 #include <stdio.h>
11275
11276 #ifdef RTLD_GLOBAL
11277 #  define LT_DLGLOBAL           RTLD_GLOBAL
11278 #else
11279 #  ifdef DL_GLOBAL
11280 #    define LT_DLGLOBAL         DL_GLOBAL
11281 #  else
11282 #    define LT_DLGLOBAL         0
11283 #  endif
11284 #endif
11285
11286 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11287    find out it does not work in some platform. */
11288 #ifndef LT_DLLAZY_OR_NOW
11289 #  ifdef RTLD_LAZY
11290 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11291 #  else
11292 #    ifdef DL_LAZY
11293 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11294 #    else
11295 #      ifdef RTLD_NOW
11296 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11297 #      else
11298 #        ifdef DL_NOW
11299 #          define LT_DLLAZY_OR_NOW      DL_NOW
11300 #        else
11301 #          define LT_DLLAZY_OR_NOW      0
11302 #        endif
11303 #      endif
11304 #    endif
11305 #  endif
11306 #endif
11307
11308 /* When -fvisbility=hidden is used, assume the code has been annotated
11309    correspondingly for the symbols needed.  */
11310 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11311 int fnord () __attribute__((visibility("default")));
11312 #endif
11313
11314 int fnord () { return 42; }
11315 int main ()
11316 {
11317   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11318   int status = $lt_dlunknown;
11319
11320   if (self)
11321     {
11322       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11323       else
11324         {
11325           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11326           else puts (dlerror ());
11327         }
11328       /* dlclose (self); */
11329     }
11330   else
11331     puts (dlerror ());
11332
11333   return status;
11334 }
11335 _LT_EOF
11336   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11337   (eval $ac_link) 2>&5
11338   ac_status=$?
11339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11340   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11341     (./conftest; exit; ) >&5 2>/dev/null
11342     lt_status=$?
11343     case x$lt_status in
11344       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11345       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11346       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11347     esac
11348   else :
11349     # compilation failed
11350     lt_cv_dlopen_self_static=no
11351   fi
11352 fi
11353 rm -fr conftest*
11354
11355
11356 fi
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11358 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11359     fi
11360
11361     CPPFLAGS="$save_CPPFLAGS"
11362     LDFLAGS="$save_LDFLAGS"
11363     LIBS="$save_LIBS"
11364     ;;
11365   esac
11366
11367   case $lt_cv_dlopen_self in
11368   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11369   *) enable_dlopen_self=unknown ;;
11370   esac
11371
11372   case $lt_cv_dlopen_self_static in
11373   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11374   *) enable_dlopen_self_static=unknown ;;
11375   esac
11376 fi
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394 striplib=
11395 old_striplib=
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11397 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11398 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11399   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11400   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11402 $as_echo "yes" >&6; }
11403 else
11404 # FIXME - insert some real tests, host_os isn't really good enough
11405   case $host_os in
11406   darwin*)
11407     if test -n "$STRIP" ; then
11408       striplib="$STRIP -x"
11409       old_striplib="$STRIP -S"
11410       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11411 $as_echo "yes" >&6; }
11412     else
11413       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11415     fi
11416     ;;
11417   *)
11418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419 $as_echo "no" >&6; }
11420     ;;
11421   esac
11422 fi
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435   # Report which library types will actually be built
11436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11437 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11439 $as_echo "$can_build_shared" >&6; }
11440
11441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11442 $as_echo_n "checking whether to build shared libraries... " >&6; }
11443   test "$can_build_shared" = "no" && enable_shared=no
11444
11445   # On AIX, shared libraries and static libraries use the same namespace, and
11446   # are all built from PIC.
11447   case $host_os in
11448   aix3*)
11449     test "$enable_shared" = yes && enable_static=no
11450     if test -n "$RANLIB"; then
11451       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11452       postinstall_cmds='$RANLIB $lib'
11453     fi
11454     ;;
11455
11456   aix[4-9]*)
11457     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11458       test "$enable_shared" = yes && enable_static=no
11459     fi
11460     ;;
11461   esac
11462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11463 $as_echo "$enable_shared" >&6; }
11464
11465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11466 $as_echo_n "checking whether to build static libraries... " >&6; }
11467   # Make sure either enable_shared or enable_static is yes.
11468   test "$enable_shared" = yes || enable_static=yes
11469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11470 $as_echo "$enable_static" >&6; }
11471
11472
11473
11474
11475 fi
11476 ac_ext=c
11477 ac_cpp='$CPP $CPPFLAGS'
11478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11481
11482 CC="$lt_save_CC"
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498         ac_config_commands="$ac_config_commands libtool"
11499
11500
11501
11502
11503 # Only expand once:
11504
11505
11506
11507 # Check whether --enable-optimization was given.
11508 if test "${enable_optimization+set}" = set; then :
11509   enableval=$enable_optimization;
11510         if (test "${enableval}" = "no"); then
11511                 CFLAGS="$CFLAGS -O0"
11512         fi
11513
11514 fi
11515
11516
11517 # Check whether --enable-debug was given.
11518 if test "${enable_debug+set}" = set; then :
11519   enableval=$enable_debug;
11520         if (test "${enableval}" = "yes" &&
11521                                 test "${ac_cv_prog_cc_g}" = "yes"); then
11522                 CFLAGS="$CFLAGS -g"
11523         fi
11524
11525 fi
11526
11527
11528 # Check whether --enable-pie was given.
11529 if test "${enable_pie+set}" = set; then :
11530   enableval=$enable_pie;
11531         if (test "${enableval}" = "yes" &&
11532                                 test "${ac_cv_prog_cc_pie}" = "yes"); then
11533                 CFLAGS="$CFLAGS -fPIE"
11534                 LDFLAGS="$LDFLAGS -pie"
11535         fi
11536
11537 fi
11538
11539
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11541 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11542 if ${ac_cv_lib_dl_dlopen+:} false; then :
11543   $as_echo_n "(cached) " >&6
11544 else
11545   ac_check_lib_save_LIBS=$LIBS
11546 LIBS="-ldl  $LIBS"
11547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548 /* end confdefs.h.  */
11549
11550 /* Override any GCC internal prototype to avoid an error.
11551    Use char because int might match the return type of a GCC
11552    builtin and then its argument prototype would still apply.  */
11553 #ifdef __cplusplus
11554 extern "C"
11555 #endif
11556 char dlopen ();
11557 int
11558 main ()
11559 {
11560 return dlopen ();
11561   ;
11562   return 0;
11563 }
11564 _ACEOF
11565 if ac_fn_c_try_link "$LINENO"; then :
11566   ac_cv_lib_dl_dlopen=yes
11567 else
11568   ac_cv_lib_dl_dlopen=no
11569 fi
11570 rm -f core conftest.err conftest.$ac_objext \
11571     conftest$ac_exeext conftest.$ac_ext
11572 LIBS=$ac_check_lib_save_LIBS
11573 fi
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11575 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11576 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11577   dummy=yes
11578 else
11579   as_fn_error $? "dynamic linking loader is required" "$LINENO" 5
11580 fi
11581
11582
11583
11584 pkg_failed=no
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
11586 $as_echo_n "checking for GLIB... " >&6; }
11587
11588 if test -n "$GLIB_CFLAGS"; then
11589     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
11590  elif test -n "$PKG_CONFIG"; then
11591     if test -n "$PKG_CONFIG" && \
11592     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
11593   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
11594   ac_status=$?
11595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11596   test $ac_status = 0; }; then
11597   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28" 2>/dev/null`
11598                       test "x$?" != "x0" && pkg_failed=yes
11599 else
11600   pkg_failed=yes
11601 fi
11602  else
11603     pkg_failed=untried
11604 fi
11605 if test -n "$GLIB_LIBS"; then
11606     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
11607  elif test -n "$PKG_CONFIG"; then
11608     if test -n "$PKG_CONFIG" && \
11609     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
11610   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
11611   ac_status=$?
11612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11613   test $ac_status = 0; }; then
11614   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28" 2>/dev/null`
11615                       test "x$?" != "x0" && pkg_failed=yes
11616 else
11617   pkg_failed=yes
11618 fi
11619  else
11620     pkg_failed=untried
11621 fi
11622
11623
11624
11625 if test $pkg_failed = yes; then
11626         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11627 $as_echo "no" >&6; }
11628
11629 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11630         _pkg_short_errors_supported=yes
11631 else
11632         _pkg_short_errors_supported=no
11633 fi
11634         if test $_pkg_short_errors_supported = yes; then
11635                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
11636         else
11637                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
11638         fi
11639         # Put the nasty error message in config.log where it belongs
11640         echo "$GLIB_PKG_ERRORS" >&5
11641
11642         as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
11643 elif test $pkg_failed = untried; then
11644         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645 $as_echo "no" >&6; }
11646         as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
11647 else
11648         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
11649         GLIB_LIBS=$pkg_cv_GLIB_LIBS
11650         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11651 $as_echo "yes" >&6; }
11652         dummy=yes
11653 fi
11654
11655
11656
11657
11658 pkg_failed=no
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
11660 $as_echo_n "checking for DBUS... " >&6; }
11661
11662 if test -n "$DBUS_CFLAGS"; then
11663     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
11664  elif test -n "$PKG_CONFIG"; then
11665     if test -n "$PKG_CONFIG" && \
11666     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2\""; } >&5
11667   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2") 2>&5
11668   ac_status=$?
11669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11670   test $ac_status = 0; }; then
11671   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2" 2>/dev/null`
11672                       test "x$?" != "x0" && pkg_failed=yes
11673 else
11674   pkg_failed=yes
11675 fi
11676  else
11677     pkg_failed=untried
11678 fi
11679 if test -n "$DBUS_LIBS"; then
11680     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
11681  elif test -n "$PKG_CONFIG"; then
11682     if test -n "$PKG_CONFIG" && \
11683     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2\""; } >&5
11684   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2") 2>&5
11685   ac_status=$?
11686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11687   test $ac_status = 0; }; then
11688   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2" 2>/dev/null`
11689                       test "x$?" != "x0" && pkg_failed=yes
11690 else
11691   pkg_failed=yes
11692 fi
11693  else
11694     pkg_failed=untried
11695 fi
11696
11697
11698
11699 if test $pkg_failed = yes; then
11700         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701 $as_echo "no" >&6; }
11702
11703 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11704         _pkg_short_errors_supported=yes
11705 else
11706         _pkg_short_errors_supported=no
11707 fi
11708         if test $_pkg_short_errors_supported = yes; then
11709                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 1.2" 2>&1`
11710         else
11711                 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 1.2" 2>&1`
11712         fi
11713         # Put the nasty error message in config.log where it belongs
11714         echo "$DBUS_PKG_ERRORS" >&5
11715
11716         as_fn_error $? "D-Bus >= 1.2 is required" "$LINENO" 5
11717 elif test $pkg_failed = untried; then
11718         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719 $as_echo "no" >&6; }
11720         as_fn_error $? "D-Bus >= 1.2 is required" "$LINENO" 5
11721 else
11722         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
11723         DBUS_LIBS=$pkg_cv_DBUS_LIBS
11724         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11725 $as_echo "yes" >&6; }
11726         dummy=yes
11727 fi
11728
11729
11730
11731
11732 pkg_failed=no
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL3" >&5
11734 $as_echo_n "checking for LIBNL3... " >&6; }
11735
11736 if test -n "$LIBNL3_CFLAGS"; then
11737     pkg_cv_LIBNL3_CFLAGS="$LIBNL3_CFLAGS"
11738  elif test -n "$PKG_CONFIG"; then
11739     if test -n "$PKG_CONFIG" && \
11740     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-3.0 libnl-genl-3.0\""; } >&5
11741   ($PKG_CONFIG --exists --print-errors "libnl-3.0 libnl-genl-3.0") 2>&5
11742   ac_status=$?
11743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11744   test $ac_status = 0; }; then
11745   pkg_cv_LIBNL3_CFLAGS=`$PKG_CONFIG --cflags "libnl-3.0 libnl-genl-3.0" 2>/dev/null`
11746                       test "x$?" != "x0" && pkg_failed=yes
11747 else
11748   pkg_failed=yes
11749 fi
11750  else
11751     pkg_failed=untried
11752 fi
11753 if test -n "$LIBNL3_LIBS"; then
11754     pkg_cv_LIBNL3_LIBS="$LIBNL3_LIBS"
11755  elif test -n "$PKG_CONFIG"; then
11756     if test -n "$PKG_CONFIG" && \
11757     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-3.0 libnl-genl-3.0\""; } >&5
11758   ($PKG_CONFIG --exists --print-errors "libnl-3.0 libnl-genl-3.0") 2>&5
11759   ac_status=$?
11760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11761   test $ac_status = 0; }; then
11762   pkg_cv_LIBNL3_LIBS=`$PKG_CONFIG --libs "libnl-3.0 libnl-genl-3.0" 2>/dev/null`
11763                       test "x$?" != "x0" && pkg_failed=yes
11764 else
11765   pkg_failed=yes
11766 fi
11767  else
11768     pkg_failed=untried
11769 fi
11770
11771
11772
11773 if test $pkg_failed = yes; then
11774         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775 $as_echo "no" >&6; }
11776
11777 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11778         _pkg_short_errors_supported=yes
11779 else
11780         _pkg_short_errors_supported=no
11781 fi
11782         if test $_pkg_short_errors_supported = yes; then
11783                 LIBNL3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-3.0 libnl-genl-3.0" 2>&1`
11784         else
11785                 LIBNL3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-3.0 libnl-genl-3.0" 2>&1`
11786         fi
11787         # Put the nasty error message in config.log where it belongs
11788         echo "$LIBNL3_PKG_ERRORS" >&5
11789
11790
11791
11792 pkg_failed=no
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL2" >&5
11794 $as_echo_n "checking for LIBNL2... " >&6; }
11795
11796 if test -n "$LIBNL2_CFLAGS"; then
11797     pkg_cv_LIBNL2_CFLAGS="$LIBNL2_CFLAGS"
11798  elif test -n "$PKG_CONFIG"; then
11799     if test -n "$PKG_CONFIG" && \
11800     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-2.0\""; } >&5
11801   ($PKG_CONFIG --exists --print-errors "libnl-2.0") 2>&5
11802   ac_status=$?
11803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11804   test $ac_status = 0; }; then
11805   pkg_cv_LIBNL2_CFLAGS=`$PKG_CONFIG --cflags "libnl-2.0" 2>/dev/null`
11806                       test "x$?" != "x0" && pkg_failed=yes
11807 else
11808   pkg_failed=yes
11809 fi
11810  else
11811     pkg_failed=untried
11812 fi
11813 if test -n "$LIBNL2_LIBS"; then
11814     pkg_cv_LIBNL2_LIBS="$LIBNL2_LIBS"
11815  elif test -n "$PKG_CONFIG"; then
11816     if test -n "$PKG_CONFIG" && \
11817     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-2.0\""; } >&5
11818   ($PKG_CONFIG --exists --print-errors "libnl-2.0") 2>&5
11819   ac_status=$?
11820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11821   test $ac_status = 0; }; then
11822   pkg_cv_LIBNL2_LIBS=`$PKG_CONFIG --libs "libnl-2.0" 2>/dev/null`
11823                       test "x$?" != "x0" && pkg_failed=yes
11824 else
11825   pkg_failed=yes
11826 fi
11827  else
11828     pkg_failed=untried
11829 fi
11830
11831
11832
11833 if test $pkg_failed = yes; then
11834         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11836
11837 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11838         _pkg_short_errors_supported=yes
11839 else
11840         _pkg_short_errors_supported=no
11841 fi
11842         if test $_pkg_short_errors_supported = yes; then
11843                 LIBNL2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-2.0" 2>&1`
11844         else
11845                 LIBNL2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-2.0" 2>&1`
11846         fi
11847         # Put the nasty error message in config.log where it belongs
11848         echo "$LIBNL2_PKG_ERRORS" >&5
11849
11850
11851
11852 pkg_failed=no
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL1" >&5
11854 $as_echo_n "checking for LIBNL1... " >&6; }
11855
11856 if test -n "$LIBNL1_CFLAGS"; then
11857     pkg_cv_LIBNL1_CFLAGS="$LIBNL1_CFLAGS"
11858  elif test -n "$PKG_CONFIG"; then
11859     if test -n "$PKG_CONFIG" && \
11860     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1\""; } >&5
11861   ($PKG_CONFIG --exists --print-errors "libnl-1") 2>&5
11862   ac_status=$?
11863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11864   test $ac_status = 0; }; then
11865   pkg_cv_LIBNL1_CFLAGS=`$PKG_CONFIG --cflags "libnl-1" 2>/dev/null`
11866                       test "x$?" != "x0" && pkg_failed=yes
11867 else
11868   pkg_failed=yes
11869 fi
11870  else
11871     pkg_failed=untried
11872 fi
11873 if test -n "$LIBNL1_LIBS"; then
11874     pkg_cv_LIBNL1_LIBS="$LIBNL1_LIBS"
11875  elif test -n "$PKG_CONFIG"; then
11876     if test -n "$PKG_CONFIG" && \
11877     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1\""; } >&5
11878   ($PKG_CONFIG --exists --print-errors "libnl-1") 2>&5
11879   ac_status=$?
11880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11881   test $ac_status = 0; }; then
11882   pkg_cv_LIBNL1_LIBS=`$PKG_CONFIG --libs "libnl-1" 2>/dev/null`
11883                       test "x$?" != "x0" && pkg_failed=yes
11884 else
11885   pkg_failed=yes
11886 fi
11887  else
11888     pkg_failed=untried
11889 fi
11890
11891
11892
11893 if test $pkg_failed = yes; then
11894         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895 $as_echo "no" >&6; }
11896
11897 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11898         _pkg_short_errors_supported=yes
11899 else
11900         _pkg_short_errors_supported=no
11901 fi
11902         if test $_pkg_short_errors_supported = yes; then
11903                 LIBNL1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-1" 2>&1`
11904         else
11905                 LIBNL1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-1" 2>&1`
11906         fi
11907         # Put the nasty error message in config.log where it belongs
11908         echo "$LIBNL1_PKG_ERRORS" >&5
11909
11910         as_fn_error $? "Netlink library is required" "$LINENO" 5
11911 elif test $pkg_failed = untried; then
11912         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11914         as_fn_error $? "Netlink library is required" "$LINENO" 5
11915 else
11916         LIBNL1_CFLAGS=$pkg_cv_LIBNL1_CFLAGS
11917         LIBNL1_LIBS=$pkg_cv_LIBNL1_LIBS
11918         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11919 $as_echo "yes" >&6; }
11920         dummy=yes
11921 fi
11922
11923 $as_echo "#define NEED_LIBNL_COMPAT 1" >>confdefs.h
11924
11925                 NETLINK_CFLAGS=${LIBNL1_CFLAGS}
11926                 NETLINK_LIBS=${LIBNL1_LIBS}
11927
11928 elif test $pkg_failed = untried; then
11929         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930 $as_echo "no" >&6; }
11931
11932
11933 pkg_failed=no
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL1" >&5
11935 $as_echo_n "checking for LIBNL1... " >&6; }
11936
11937 if test -n "$LIBNL1_CFLAGS"; then
11938     pkg_cv_LIBNL1_CFLAGS="$LIBNL1_CFLAGS"
11939  elif test -n "$PKG_CONFIG"; then
11940     if test -n "$PKG_CONFIG" && \
11941     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1\""; } >&5
11942   ($PKG_CONFIG --exists --print-errors "libnl-1") 2>&5
11943   ac_status=$?
11944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11945   test $ac_status = 0; }; then
11946   pkg_cv_LIBNL1_CFLAGS=`$PKG_CONFIG --cflags "libnl-1" 2>/dev/null`
11947                       test "x$?" != "x0" && pkg_failed=yes
11948 else
11949   pkg_failed=yes
11950 fi
11951  else
11952     pkg_failed=untried
11953 fi
11954 if test -n "$LIBNL1_LIBS"; then
11955     pkg_cv_LIBNL1_LIBS="$LIBNL1_LIBS"
11956  elif test -n "$PKG_CONFIG"; then
11957     if test -n "$PKG_CONFIG" && \
11958     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1\""; } >&5
11959   ($PKG_CONFIG --exists --print-errors "libnl-1") 2>&5
11960   ac_status=$?
11961   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11962   test $ac_status = 0; }; then
11963   pkg_cv_LIBNL1_LIBS=`$PKG_CONFIG --libs "libnl-1" 2>/dev/null`
11964                       test "x$?" != "x0" && pkg_failed=yes
11965 else
11966   pkg_failed=yes
11967 fi
11968  else
11969     pkg_failed=untried
11970 fi
11971
11972
11973
11974 if test $pkg_failed = yes; then
11975         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976 $as_echo "no" >&6; }
11977
11978 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11979         _pkg_short_errors_supported=yes
11980 else
11981         _pkg_short_errors_supported=no
11982 fi
11983         if test $_pkg_short_errors_supported = yes; then
11984                 LIBNL1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-1" 2>&1`
11985         else
11986                 LIBNL1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-1" 2>&1`
11987         fi
11988         # Put the nasty error message in config.log where it belongs
11989         echo "$LIBNL1_PKG_ERRORS" >&5
11990
11991         as_fn_error $? "Netlink library is required" "$LINENO" 5
11992 elif test $pkg_failed = untried; then
11993         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994 $as_echo "no" >&6; }
11995         as_fn_error $? "Netlink library is required" "$LINENO" 5
11996 else
11997         LIBNL1_CFLAGS=$pkg_cv_LIBNL1_CFLAGS
11998         LIBNL1_LIBS=$pkg_cv_LIBNL1_LIBS
11999         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12000 $as_echo "yes" >&6; }
12001         dummy=yes
12002 fi
12003
12004 $as_echo "#define NEED_LIBNL_COMPAT 1" >>confdefs.h
12005
12006                 NETLINK_CFLAGS=${LIBNL1_CFLAGS}
12007                 NETLINK_LIBS=${LIBNL1_LIBS}
12008
12009 else
12010         LIBNL2_CFLAGS=$pkg_cv_LIBNL2_CFLAGS
12011         LIBNL2_LIBS=$pkg_cv_LIBNL2_LIBS
12012         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12013 $as_echo "yes" >&6; }
12014
12015                 NETLINK_CFLAGS=${LIBNL2_CFLAGS}
12016                 NETLINK_LIBS=${LIBNL2_LIBS}
12017
12018 fi
12019
12020 elif test $pkg_failed = untried; then
12021         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022 $as_echo "no" >&6; }
12023
12024
12025 pkg_failed=no
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL2" >&5
12027 $as_echo_n "checking for LIBNL2... " >&6; }
12028
12029 if test -n "$LIBNL2_CFLAGS"; then
12030     pkg_cv_LIBNL2_CFLAGS="$LIBNL2_CFLAGS"
12031  elif test -n "$PKG_CONFIG"; then
12032     if test -n "$PKG_CONFIG" && \
12033     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-2.0\""; } >&5
12034   ($PKG_CONFIG --exists --print-errors "libnl-2.0") 2>&5
12035   ac_status=$?
12036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12037   test $ac_status = 0; }; then
12038   pkg_cv_LIBNL2_CFLAGS=`$PKG_CONFIG --cflags "libnl-2.0" 2>/dev/null`
12039                       test "x$?" != "x0" && pkg_failed=yes
12040 else
12041   pkg_failed=yes
12042 fi
12043  else
12044     pkg_failed=untried
12045 fi
12046 if test -n "$LIBNL2_LIBS"; then
12047     pkg_cv_LIBNL2_LIBS="$LIBNL2_LIBS"
12048  elif test -n "$PKG_CONFIG"; then
12049     if test -n "$PKG_CONFIG" && \
12050     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-2.0\""; } >&5
12051   ($PKG_CONFIG --exists --print-errors "libnl-2.0") 2>&5
12052   ac_status=$?
12053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12054   test $ac_status = 0; }; then
12055   pkg_cv_LIBNL2_LIBS=`$PKG_CONFIG --libs "libnl-2.0" 2>/dev/null`
12056                       test "x$?" != "x0" && pkg_failed=yes
12057 else
12058   pkg_failed=yes
12059 fi
12060  else
12061     pkg_failed=untried
12062 fi
12063
12064
12065
12066 if test $pkg_failed = yes; then
12067         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068 $as_echo "no" >&6; }
12069
12070 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12071         _pkg_short_errors_supported=yes
12072 else
12073         _pkg_short_errors_supported=no
12074 fi
12075         if test $_pkg_short_errors_supported = yes; then
12076                 LIBNL2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-2.0" 2>&1`
12077         else
12078                 LIBNL2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-2.0" 2>&1`
12079         fi
12080         # Put the nasty error message in config.log where it belongs
12081         echo "$LIBNL2_PKG_ERRORS" >&5
12082
12083
12084
12085 pkg_failed=no
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL1" >&5
12087 $as_echo_n "checking for LIBNL1... " >&6; }
12088
12089 if test -n "$LIBNL1_CFLAGS"; then
12090     pkg_cv_LIBNL1_CFLAGS="$LIBNL1_CFLAGS"
12091  elif test -n "$PKG_CONFIG"; then
12092     if test -n "$PKG_CONFIG" && \
12093     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1\""; } >&5
12094   ($PKG_CONFIG --exists --print-errors "libnl-1") 2>&5
12095   ac_status=$?
12096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12097   test $ac_status = 0; }; then
12098   pkg_cv_LIBNL1_CFLAGS=`$PKG_CONFIG --cflags "libnl-1" 2>/dev/null`
12099                       test "x$?" != "x0" && pkg_failed=yes
12100 else
12101   pkg_failed=yes
12102 fi
12103  else
12104     pkg_failed=untried
12105 fi
12106 if test -n "$LIBNL1_LIBS"; then
12107     pkg_cv_LIBNL1_LIBS="$LIBNL1_LIBS"
12108  elif test -n "$PKG_CONFIG"; then
12109     if test -n "$PKG_CONFIG" && \
12110     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1\""; } >&5
12111   ($PKG_CONFIG --exists --print-errors "libnl-1") 2>&5
12112   ac_status=$?
12113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12114   test $ac_status = 0; }; then
12115   pkg_cv_LIBNL1_LIBS=`$PKG_CONFIG --libs "libnl-1" 2>/dev/null`
12116                       test "x$?" != "x0" && pkg_failed=yes
12117 else
12118   pkg_failed=yes
12119 fi
12120  else
12121     pkg_failed=untried
12122 fi
12123
12124
12125
12126 if test $pkg_failed = yes; then
12127         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128 $as_echo "no" >&6; }
12129
12130 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12131         _pkg_short_errors_supported=yes
12132 else
12133         _pkg_short_errors_supported=no
12134 fi
12135         if test $_pkg_short_errors_supported = yes; then
12136                 LIBNL1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-1" 2>&1`
12137         else
12138                 LIBNL1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-1" 2>&1`
12139         fi
12140         # Put the nasty error message in config.log where it belongs
12141         echo "$LIBNL1_PKG_ERRORS" >&5
12142
12143         as_fn_error $? "Netlink library is required" "$LINENO" 5
12144 elif test $pkg_failed = untried; then
12145         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146 $as_echo "no" >&6; }
12147         as_fn_error $? "Netlink library is required" "$LINENO" 5
12148 else
12149         LIBNL1_CFLAGS=$pkg_cv_LIBNL1_CFLAGS
12150         LIBNL1_LIBS=$pkg_cv_LIBNL1_LIBS
12151         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12152 $as_echo "yes" >&6; }
12153         dummy=yes
12154 fi
12155
12156 $as_echo "#define NEED_LIBNL_COMPAT 1" >>confdefs.h
12157
12158                 NETLINK_CFLAGS=${LIBNL1_CFLAGS}
12159                 NETLINK_LIBS=${LIBNL1_LIBS}
12160
12161 elif test $pkg_failed = untried; then
12162         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163 $as_echo "no" >&6; }
12164
12165
12166 pkg_failed=no
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL1" >&5
12168 $as_echo_n "checking for LIBNL1... " >&6; }
12169
12170 if test -n "$LIBNL1_CFLAGS"; then
12171     pkg_cv_LIBNL1_CFLAGS="$LIBNL1_CFLAGS"
12172  elif test -n "$PKG_CONFIG"; then
12173     if test -n "$PKG_CONFIG" && \
12174     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1\""; } >&5
12175   ($PKG_CONFIG --exists --print-errors "libnl-1") 2>&5
12176   ac_status=$?
12177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12178   test $ac_status = 0; }; then
12179   pkg_cv_LIBNL1_CFLAGS=`$PKG_CONFIG --cflags "libnl-1" 2>/dev/null`
12180                       test "x$?" != "x0" && pkg_failed=yes
12181 else
12182   pkg_failed=yes
12183 fi
12184  else
12185     pkg_failed=untried
12186 fi
12187 if test -n "$LIBNL1_LIBS"; then
12188     pkg_cv_LIBNL1_LIBS="$LIBNL1_LIBS"
12189  elif test -n "$PKG_CONFIG"; then
12190     if test -n "$PKG_CONFIG" && \
12191     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1\""; } >&5
12192   ($PKG_CONFIG --exists --print-errors "libnl-1") 2>&5
12193   ac_status=$?
12194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12195   test $ac_status = 0; }; then
12196   pkg_cv_LIBNL1_LIBS=`$PKG_CONFIG --libs "libnl-1" 2>/dev/null`
12197                       test "x$?" != "x0" && pkg_failed=yes
12198 else
12199   pkg_failed=yes
12200 fi
12201  else
12202     pkg_failed=untried
12203 fi
12204
12205
12206
12207 if test $pkg_failed = yes; then
12208         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209 $as_echo "no" >&6; }
12210
12211 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12212         _pkg_short_errors_supported=yes
12213 else
12214         _pkg_short_errors_supported=no
12215 fi
12216         if test $_pkg_short_errors_supported = yes; then
12217                 LIBNL1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-1" 2>&1`
12218         else
12219                 LIBNL1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-1" 2>&1`
12220         fi
12221         # Put the nasty error message in config.log where it belongs
12222         echo "$LIBNL1_PKG_ERRORS" >&5
12223
12224         as_fn_error $? "Netlink library is required" "$LINENO" 5
12225 elif test $pkg_failed = untried; then
12226         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12228         as_fn_error $? "Netlink library is required" "$LINENO" 5
12229 else
12230         LIBNL1_CFLAGS=$pkg_cv_LIBNL1_CFLAGS
12231         LIBNL1_LIBS=$pkg_cv_LIBNL1_LIBS
12232         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12233 $as_echo "yes" >&6; }
12234         dummy=yes
12235 fi
12236
12237 $as_echo "#define NEED_LIBNL_COMPAT 1" >>confdefs.h
12238
12239                 NETLINK_CFLAGS=${LIBNL1_CFLAGS}
12240                 NETLINK_LIBS=${LIBNL1_LIBS}
12241
12242 else
12243         LIBNL2_CFLAGS=$pkg_cv_LIBNL2_CFLAGS
12244         LIBNL2_LIBS=$pkg_cv_LIBNL2_LIBS
12245         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12246 $as_echo "yes" >&6; }
12247
12248                 NETLINK_CFLAGS=${LIBNL2_CFLAGS}
12249                 NETLINK_LIBS=${LIBNL2_LIBS}
12250
12251 fi
12252
12253 else
12254         LIBNL3_CFLAGS=$pkg_cv_LIBNL3_CFLAGS
12255         LIBNL3_LIBS=$pkg_cv_LIBNL3_LIBS
12256         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12257 $as_echo "yes" >&6; }
12258
12259         NETLINK_CFLAGS=${LIBNL3_CFLAGS}
12260         NETLINK_LIBS=${LIBNL3_LIBS}
12261
12262 fi
12263
12264
12265
12266 # Check whether --enable-test was given.
12267 if test "${enable_test+set}" = set; then :
12268   enableval=$enable_test; enable_test=${enableval}
12269 fi
12270
12271  if test "${enable_test}" = "yes"; then
12272   TEST_TRUE=
12273   TEST_FALSE='#'
12274 else
12275   TEST_TRUE='#'
12276   TEST_FALSE=
12277 fi
12278
12279
12280 # Check whether --enable-tools was given.
12281 if test "${enable_tools+set}" = set; then :
12282   enableval=$enable_tools; enable_tools=${enableval}
12283 fi
12284
12285  if test "${enable_tools}" = "yes"; then
12286   TOOLS_TRUE=
12287   TOOLS_FALSE='#'
12288 else
12289   TOOLS_TRUE='#'
12290   TOOLS_FALSE=
12291 fi
12292
12293
12294 # Check whether --enable-nfctype1 was given.
12295 if test "${enable_nfctype1+set}" = set; then :
12296   enableval=$enable_nfctype1; enable_nfctype1=${enableval}
12297 fi
12298
12299  if test "${enable_nfctype1}" != "no"; then
12300   NFCTYPE1_TRUE=
12301   NFCTYPE1_FALSE='#'
12302 else
12303   NFCTYPE1_TRUE='#'
12304   NFCTYPE1_FALSE=
12305 fi
12306
12307
12308 # Check whether --enable-nfctype2 was given.
12309 if test "${enable_nfctype2+set}" = set; then :
12310   enableval=$enable_nfctype2; enable_nfctype2=${enableval}
12311 fi
12312
12313  if test "${enable_nfctype2}" != "no"; then
12314   NFCTYPE2_TRUE=
12315   NFCTYPE2_FALSE='#'
12316 else
12317   NFCTYPE2_TRUE='#'
12318   NFCTYPE2_FALSE=
12319 fi
12320
12321
12322 # Check whether --enable-nfctype3 was given.
12323 if test "${enable_nfctype3+set}" = set; then :
12324   enableval=$enable_nfctype3; enable_nfctype3=${enableval}
12325 fi
12326
12327  if test "${enable_nfctype3}" != "no"; then
12328   NFCTYPE3_TRUE=
12329   NFCTYPE3_FALSE='#'
12330 else
12331   NFCTYPE3_TRUE='#'
12332   NFCTYPE3_FALSE=
12333 fi
12334
12335
12336 # Check whether --enable-nfctype4 was given.
12337 if test "${enable_nfctype4+set}" = set; then :
12338   enableval=$enable_nfctype4; enable_nfctype4=${enableval}
12339 fi
12340
12341  if test "${enable_nfctype4}" != "no"; then
12342   NFCTYPE4_TRUE=
12343   NFCTYPE4_FALSE='#'
12344 else
12345   NFCTYPE4_TRUE='#'
12346   NFCTYPE4_FALSE=
12347 fi
12348
12349
12350 # Check whether --enable-p2p was given.
12351 if test "${enable_p2p+set}" = set; then :
12352   enableval=$enable_p2p; enable_p2p=${enableval}
12353 fi
12354
12355  if test "${enable_p2p}" != "no"; then
12356   P2P_TRUE=
12357   P2P_FALSE='#'
12358 else
12359   P2P_TRUE='#'
12360   P2P_FALSE=
12361 fi
12362
12363
12364 ac_config_files="$ac_config_files Makefile include/version.h neard.pc"
12365
12366 cat >confcache <<\_ACEOF
12367 # This file is a shell script that caches the results of configure
12368 # tests run on this system so they can be shared between configure
12369 # scripts and configure runs, see configure's option --config-cache.
12370 # It is not useful on other systems.  If it contains results you don't
12371 # want to keep, you may remove or edit it.
12372 #
12373 # config.status only pays attention to the cache file if you give it
12374 # the --recheck option to rerun configure.
12375 #
12376 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12377 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12378 # following values.
12379
12380 _ACEOF
12381
12382 # The following way of writing the cache mishandles newlines in values,
12383 # but we know of no workaround that is simple, portable, and efficient.
12384 # So, we kill variables containing newlines.
12385 # Ultrix sh set writes to stderr and can't be redirected directly,
12386 # and sets the high bit in the cache file unless we assign to the vars.
12387 (
12388   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12389     eval ac_val=\$$ac_var
12390     case $ac_val in #(
12391     *${as_nl}*)
12392       case $ac_var in #(
12393       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12394 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12395       esac
12396       case $ac_var in #(
12397       _ | IFS | as_nl) ;; #(
12398       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12399       *) { eval $ac_var=; unset $ac_var;} ;;
12400       esac ;;
12401     esac
12402   done
12403
12404   (set) 2>&1 |
12405     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12406     *${as_nl}ac_space=\ *)
12407       # `set' does not quote correctly, so add quotes: double-quote
12408       # substitution turns \\\\ into \\, and sed turns \\ into \.
12409       sed -n \
12410         "s/'/'\\\\''/g;
12411           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12412       ;; #(
12413     *)
12414       # `set' quotes correctly as required by POSIX, so do not add quotes.
12415       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12416       ;;
12417     esac |
12418     sort
12419 ) |
12420   sed '
12421      /^ac_cv_env_/b end
12422      t clear
12423      :clear
12424      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12425      t end
12426      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12427      :end' >>confcache
12428 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12429   if test -w "$cache_file"; then
12430     if test "x$cache_file" != "x/dev/null"; then
12431       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12432 $as_echo "$as_me: updating cache $cache_file" >&6;}
12433       if test ! -f "$cache_file" || test -h "$cache_file"; then
12434         cat confcache >"$cache_file"
12435       else
12436         case $cache_file in #(
12437         */* | ?:*)
12438           mv -f confcache "$cache_file"$$ &&
12439           mv -f "$cache_file"$$ "$cache_file" ;; #(
12440         *)
12441           mv -f confcache "$cache_file" ;;
12442         esac
12443       fi
12444     fi
12445   else
12446     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12447 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12448   fi
12449 fi
12450 rm -f confcache
12451
12452 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12453 # Let make expand exec_prefix.
12454 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12455
12456 DEFS=-DHAVE_CONFIG_H
12457
12458 ac_libobjs=
12459 ac_ltlibobjs=
12460 U=
12461 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12462   # 1. Remove the extension, and $U if already installed.
12463   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12464   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12465   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12466   #    will be set to the directory where LIBOBJS objects are built.
12467   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12468   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12469 done
12470 LIBOBJS=$ac_libobjs
12471
12472 LTLIBOBJS=$ac_ltlibobjs
12473
12474
12475  if test -n "$EXEEXT"; then
12476   am__EXEEXT_TRUE=
12477   am__EXEEXT_FALSE='#'
12478 else
12479   am__EXEEXT_TRUE='#'
12480   am__EXEEXT_FALSE=
12481 fi
12482
12483 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12484   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12486 fi
12487 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12488   as_fn_error $? "conditional \"AMDEP\" was never defined.
12489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12490 fi
12491 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12492   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12494 fi
12495 if test -z "${TEST_TRUE}" && test -z "${TEST_FALSE}"; then
12496   as_fn_error $? "conditional \"TEST\" was never defined.
12497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12498 fi
12499 if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then
12500   as_fn_error $? "conditional \"TOOLS\" was never defined.
12501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12502 fi
12503 if test -z "${NFCTYPE1_TRUE}" && test -z "${NFCTYPE1_FALSE}"; then
12504   as_fn_error $? "conditional \"NFCTYPE1\" was never defined.
12505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12506 fi
12507 if test -z "${NFCTYPE2_TRUE}" && test -z "${NFCTYPE2_FALSE}"; then
12508   as_fn_error $? "conditional \"NFCTYPE2\" was never defined.
12509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12510 fi
12511 if test -z "${NFCTYPE3_TRUE}" && test -z "${NFCTYPE3_FALSE}"; then
12512   as_fn_error $? "conditional \"NFCTYPE3\" was never defined.
12513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12514 fi
12515 if test -z "${NFCTYPE4_TRUE}" && test -z "${NFCTYPE4_FALSE}"; then
12516   as_fn_error $? "conditional \"NFCTYPE4\" was never defined.
12517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12518 fi
12519 if test -z "${P2P_TRUE}" && test -z "${P2P_FALSE}"; then
12520   as_fn_error $? "conditional \"P2P\" was never defined.
12521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12522 fi
12523
12524 : "${CONFIG_STATUS=./config.status}"
12525 ac_write_fail=0
12526 ac_clean_files_save=$ac_clean_files
12527 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12529 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12530 as_write_fail=0
12531 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12532 #! $SHELL
12533 # Generated by $as_me.
12534 # Run this file to recreate the current configuration.
12535 # Compiler output produced by configure, useful for debugging
12536 # configure, is in config.log if it exists.
12537
12538 debug=false
12539 ac_cs_recheck=false
12540 ac_cs_silent=false
12541
12542 SHELL=\${CONFIG_SHELL-$SHELL}
12543 export SHELL
12544 _ASEOF
12545 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12546 ## -------------------- ##
12547 ## M4sh Initialization. ##
12548 ## -------------------- ##
12549
12550 # Be more Bourne compatible
12551 DUALCASE=1; export DUALCASE # for MKS sh
12552 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12553   emulate sh
12554   NULLCMD=:
12555   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12556   # is contrary to our usage.  Disable this feature.
12557   alias -g '${1+"$@"}'='"$@"'
12558   setopt NO_GLOB_SUBST
12559 else
12560   case `(set -o) 2>/dev/null` in #(
12561   *posix*) :
12562     set -o posix ;; #(
12563   *) :
12564      ;;
12565 esac
12566 fi
12567
12568
12569 as_nl='
12570 '
12571 export as_nl
12572 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12573 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12574 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12575 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12576 # Prefer a ksh shell builtin over an external printf program on Solaris,
12577 # but without wasting forks for bash or zsh.
12578 if test -z "$BASH_VERSION$ZSH_VERSION" \
12579     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12580   as_echo='print -r --'
12581   as_echo_n='print -rn --'
12582 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12583   as_echo='printf %s\n'
12584   as_echo_n='printf %s'
12585 else
12586   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12587     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12588     as_echo_n='/usr/ucb/echo -n'
12589   else
12590     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12591     as_echo_n_body='eval
12592       arg=$1;
12593       case $arg in #(
12594       *"$as_nl"*)
12595         expr "X$arg" : "X\\(.*\\)$as_nl";
12596         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12597       esac;
12598       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12599     '
12600     export as_echo_n_body
12601     as_echo_n='sh -c $as_echo_n_body as_echo'
12602   fi
12603   export as_echo_body
12604   as_echo='sh -c $as_echo_body as_echo'
12605 fi
12606
12607 # The user is always right.
12608 if test "${PATH_SEPARATOR+set}" != set; then
12609   PATH_SEPARATOR=:
12610   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12611     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12612       PATH_SEPARATOR=';'
12613   }
12614 fi
12615
12616
12617 # IFS
12618 # We need space, tab and new line, in precisely that order.  Quoting is
12619 # there to prevent editors from complaining about space-tab.
12620 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12621 # splitting by setting IFS to empty value.)
12622 IFS=" ""        $as_nl"
12623
12624 # Find who we are.  Look in the path if we contain no directory separator.
12625 as_myself=
12626 case $0 in #((
12627   *[\\/]* ) as_myself=$0 ;;
12628   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629 for as_dir in $PATH
12630 do
12631   IFS=$as_save_IFS
12632   test -z "$as_dir" && as_dir=.
12633     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12634   done
12635 IFS=$as_save_IFS
12636
12637      ;;
12638 esac
12639 # We did not find ourselves, most probably we were run as `sh COMMAND'
12640 # in which case we are not to be found in the path.
12641 if test "x$as_myself" = x; then
12642   as_myself=$0
12643 fi
12644 if test ! -f "$as_myself"; then
12645   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12646   exit 1
12647 fi
12648
12649 # Unset variables that we do not need and which cause bugs (e.g. in
12650 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12651 # suppresses any "Segmentation fault" message there.  '((' could
12652 # trigger a bug in pdksh 5.2.14.
12653 for as_var in BASH_ENV ENV MAIL MAILPATH
12654 do eval test x\${$as_var+set} = xset \
12655   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12656 done
12657 PS1='$ '
12658 PS2='> '
12659 PS4='+ '
12660
12661 # NLS nuisances.
12662 LC_ALL=C
12663 export LC_ALL
12664 LANGUAGE=C
12665 export LANGUAGE
12666
12667 # CDPATH.
12668 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12669
12670
12671 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12672 # ----------------------------------------
12673 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12674 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12675 # script with STATUS, using 1 if that was 0.
12676 as_fn_error ()
12677 {
12678   as_status=$1; test $as_status -eq 0 && as_status=1
12679   if test "$4"; then
12680     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12681     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12682   fi
12683   $as_echo "$as_me: error: $2" >&2
12684   as_fn_exit $as_status
12685 } # as_fn_error
12686
12687
12688 # as_fn_set_status STATUS
12689 # -----------------------
12690 # Set $? to STATUS, without forking.
12691 as_fn_set_status ()
12692 {
12693   return $1
12694 } # as_fn_set_status
12695
12696 # as_fn_exit STATUS
12697 # -----------------
12698 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12699 as_fn_exit ()
12700 {
12701   set +e
12702   as_fn_set_status $1
12703   exit $1
12704 } # as_fn_exit
12705
12706 # as_fn_unset VAR
12707 # ---------------
12708 # Portably unset VAR.
12709 as_fn_unset ()
12710 {
12711   { eval $1=; unset $1;}
12712 }
12713 as_unset=as_fn_unset
12714 # as_fn_append VAR VALUE
12715 # ----------------------
12716 # Append the text in VALUE to the end of the definition contained in VAR. Take
12717 # advantage of any shell optimizations that allow amortized linear growth over
12718 # repeated appends, instead of the typical quadratic growth present in naive
12719 # implementations.
12720 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12721   eval 'as_fn_append ()
12722   {
12723     eval $1+=\$2
12724   }'
12725 else
12726   as_fn_append ()
12727   {
12728     eval $1=\$$1\$2
12729   }
12730 fi # as_fn_append
12731
12732 # as_fn_arith ARG...
12733 # ------------------
12734 # Perform arithmetic evaluation on the ARGs, and store the result in the
12735 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12736 # must be portable across $(()) and expr.
12737 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12738   eval 'as_fn_arith ()
12739   {
12740     as_val=$(( $* ))
12741   }'
12742 else
12743   as_fn_arith ()
12744   {
12745     as_val=`expr "$@" || test $? -eq 1`
12746   }
12747 fi # as_fn_arith
12748
12749
12750 if expr a : '\(a\)' >/dev/null 2>&1 &&
12751    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12752   as_expr=expr
12753 else
12754   as_expr=false
12755 fi
12756
12757 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12758   as_basename=basename
12759 else
12760   as_basename=false
12761 fi
12762
12763 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12764   as_dirname=dirname
12765 else
12766   as_dirname=false
12767 fi
12768
12769 as_me=`$as_basename -- "$0" ||
12770 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12771          X"$0" : 'X\(//\)$' \| \
12772          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12773 $as_echo X/"$0" |
12774     sed '/^.*\/\([^/][^/]*\)\/*$/{
12775             s//\1/
12776             q
12777           }
12778           /^X\/\(\/\/\)$/{
12779             s//\1/
12780             q
12781           }
12782           /^X\/\(\/\).*/{
12783             s//\1/
12784             q
12785           }
12786           s/.*/./; q'`
12787
12788 # Avoid depending upon Character Ranges.
12789 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12790 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12791 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12792 as_cr_digits='0123456789'
12793 as_cr_alnum=$as_cr_Letters$as_cr_digits
12794
12795 ECHO_C= ECHO_N= ECHO_T=
12796 case `echo -n x` in #(((((
12797 -n*)
12798   case `echo 'xy\c'` in
12799   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12800   xy)  ECHO_C='\c';;
12801   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12802        ECHO_T=' ';;
12803   esac;;
12804 *)
12805   ECHO_N='-n';;
12806 esac
12807
12808 rm -f conf$$ conf$$.exe conf$$.file
12809 if test -d conf$$.dir; then
12810   rm -f conf$$.dir/conf$$.file
12811 else
12812   rm -f conf$$.dir
12813   mkdir conf$$.dir 2>/dev/null
12814 fi
12815 if (echo >conf$$.file) 2>/dev/null; then
12816   if ln -s conf$$.file conf$$ 2>/dev/null; then
12817     as_ln_s='ln -s'
12818     # ... but there are two gotchas:
12819     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12820     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12821     # In both cases, we have to default to `cp -pR'.
12822     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12823       as_ln_s='cp -pR'
12824   elif ln conf$$.file conf$$ 2>/dev/null; then
12825     as_ln_s=ln
12826   else
12827     as_ln_s='cp -pR'
12828   fi
12829 else
12830   as_ln_s='cp -pR'
12831 fi
12832 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12833 rmdir conf$$.dir 2>/dev/null
12834
12835
12836 # as_fn_mkdir_p
12837 # -------------
12838 # Create "$as_dir" as a directory, including parents if necessary.
12839 as_fn_mkdir_p ()
12840 {
12841
12842   case $as_dir in #(
12843   -*) as_dir=./$as_dir;;
12844   esac
12845   test -d "$as_dir" || eval $as_mkdir_p || {
12846     as_dirs=
12847     while :; do
12848       case $as_dir in #(
12849       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12850       *) as_qdir=$as_dir;;
12851       esac
12852       as_dirs="'$as_qdir' $as_dirs"
12853       as_dir=`$as_dirname -- "$as_dir" ||
12854 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12855          X"$as_dir" : 'X\(//\)[^/]' \| \
12856          X"$as_dir" : 'X\(//\)$' \| \
12857          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12858 $as_echo X"$as_dir" |
12859     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12860             s//\1/
12861             q
12862           }
12863           /^X\(\/\/\)[^/].*/{
12864             s//\1/
12865             q
12866           }
12867           /^X\(\/\/\)$/{
12868             s//\1/
12869             q
12870           }
12871           /^X\(\/\).*/{
12872             s//\1/
12873             q
12874           }
12875           s/.*/./; q'`
12876       test -d "$as_dir" && break
12877     done
12878     test -z "$as_dirs" || eval "mkdir $as_dirs"
12879   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12880
12881
12882 } # as_fn_mkdir_p
12883 if mkdir -p . 2>/dev/null; then
12884   as_mkdir_p='mkdir -p "$as_dir"'
12885 else
12886   test -d ./-p && rmdir ./-p
12887   as_mkdir_p=false
12888 fi
12889
12890
12891 # as_fn_executable_p FILE
12892 # -----------------------
12893 # Test if FILE is an executable regular file.
12894 as_fn_executable_p ()
12895 {
12896   test -f "$1" && test -x "$1"
12897 } # as_fn_executable_p
12898 as_test_x='test -x'
12899 as_executable_p=as_fn_executable_p
12900
12901 # Sed expression to map a string onto a valid CPP name.
12902 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12903
12904 # Sed expression to map a string onto a valid variable name.
12905 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12906
12907
12908 exec 6>&1
12909 ## ----------------------------------- ##
12910 ## Main body of $CONFIG_STATUS script. ##
12911 ## ----------------------------------- ##
12912 _ASEOF
12913 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12914
12915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12916 # Save the log message, to keep $0 and so on meaningful, and to
12917 # report actual input values of CONFIG_FILES etc. instead of their
12918 # values after options handling.
12919 ac_log="
12920 This file was extended by neard $as_me 0.6, which was
12921 generated by GNU Autoconf 2.69.  Invocation command line was
12922
12923   CONFIG_FILES    = $CONFIG_FILES
12924   CONFIG_HEADERS  = $CONFIG_HEADERS
12925   CONFIG_LINKS    = $CONFIG_LINKS
12926   CONFIG_COMMANDS = $CONFIG_COMMANDS
12927   $ $0 $@
12928
12929 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12930 "
12931
12932 _ACEOF
12933
12934 case $ac_config_files in *"
12935 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12936 esac
12937
12938 case $ac_config_headers in *"
12939 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12940 esac
12941
12942
12943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12944 # Files that config.status was made for.
12945 config_files="$ac_config_files"
12946 config_headers="$ac_config_headers"
12947 config_commands="$ac_config_commands"
12948
12949 _ACEOF
12950
12951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12952 ac_cs_usage="\
12953 \`$as_me' instantiates files and other configuration actions
12954 from templates according to the current configuration.  Unless the files
12955 and actions are specified as TAGs, all are instantiated by default.
12956
12957 Usage: $0 [OPTION]... [TAG]...
12958
12959   -h, --help       print this help, then exit
12960   -V, --version    print version number and configuration settings, then exit
12961       --config     print configuration, then exit
12962   -q, --quiet, --silent
12963                    do not print progress messages
12964   -d, --debug      don't remove temporary files
12965       --recheck    update $as_me by reconfiguring in the same conditions
12966       --file=FILE[:TEMPLATE]
12967                    instantiate the configuration file FILE
12968       --header=FILE[:TEMPLATE]
12969                    instantiate the configuration header FILE
12970
12971 Configuration files:
12972 $config_files
12973
12974 Configuration headers:
12975 $config_headers
12976
12977 Configuration commands:
12978 $config_commands
12979
12980 Report bugs to the package provider."
12981
12982 _ACEOF
12983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12984 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12985 ac_cs_version="\\
12986 neard config.status 0.6
12987 configured by $0, generated by GNU Autoconf 2.69,
12988   with options \\"\$ac_cs_config\\"
12989
12990 Copyright (C) 2012 Free Software Foundation, Inc.
12991 This config.status script is free software; the Free Software Foundation
12992 gives unlimited permission to copy, distribute and modify it."
12993
12994 ac_pwd='$ac_pwd'
12995 srcdir='$srcdir'
12996 INSTALL='$INSTALL'
12997 MKDIR_P='$MKDIR_P'
12998 AWK='$AWK'
12999 test -n "\$AWK" || AWK=awk
13000 _ACEOF
13001
13002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13003 # The default lists apply if the user does not specify any file.
13004 ac_need_defaults=:
13005 while test $# != 0
13006 do
13007   case $1 in
13008   --*=?*)
13009     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13010     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13011     ac_shift=:
13012     ;;
13013   --*=)
13014     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13015     ac_optarg=
13016     ac_shift=:
13017     ;;
13018   *)
13019     ac_option=$1
13020     ac_optarg=$2
13021     ac_shift=shift
13022     ;;
13023   esac
13024
13025   case $ac_option in
13026   # Handling of the options.
13027   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13028     ac_cs_recheck=: ;;
13029   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13030     $as_echo "$ac_cs_version"; exit ;;
13031   --config | --confi | --conf | --con | --co | --c )
13032     $as_echo "$ac_cs_config"; exit ;;
13033   --debug | --debu | --deb | --de | --d | -d )
13034     debug=: ;;
13035   --file | --fil | --fi | --f )
13036     $ac_shift
13037     case $ac_optarg in
13038     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13039     '') as_fn_error $? "missing file argument" ;;
13040     esac
13041     as_fn_append CONFIG_FILES " '$ac_optarg'"
13042     ac_need_defaults=false;;
13043   --header | --heade | --head | --hea )
13044     $ac_shift
13045     case $ac_optarg in
13046     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13047     esac
13048     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13049     ac_need_defaults=false;;
13050   --he | --h)
13051     # Conflict between --help and --header
13052     as_fn_error $? "ambiguous option: \`$1'
13053 Try \`$0 --help' for more information.";;
13054   --help | --hel | -h )
13055     $as_echo "$ac_cs_usage"; exit ;;
13056   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13057   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13058     ac_cs_silent=: ;;
13059
13060   # This is an error.
13061   -*) as_fn_error $? "unrecognized option: \`$1'
13062 Try \`$0 --help' for more information." ;;
13063
13064   *) as_fn_append ac_config_targets " $1"
13065      ac_need_defaults=false ;;
13066
13067   esac
13068   shift
13069 done
13070
13071 ac_configure_extra_args=
13072
13073 if $ac_cs_silent; then
13074   exec 6>/dev/null
13075   ac_configure_extra_args="$ac_configure_extra_args --silent"
13076 fi
13077
13078 _ACEOF
13079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13080 if \$ac_cs_recheck; then
13081   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13082   shift
13083   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13084   CONFIG_SHELL='$SHELL'
13085   export CONFIG_SHELL
13086   exec "\$@"
13087 fi
13088
13089 _ACEOF
13090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13091 exec 5>>config.log
13092 {
13093   echo
13094   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13095 ## Running $as_me. ##
13096 _ASBOX
13097   $as_echo "$ac_log"
13098 } >&5
13099
13100 _ACEOF
13101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13102 #
13103 # INIT-COMMANDS
13104 #
13105 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13106
13107
13108 # The HP-UX ksh and POSIX shell print the target directory to stdout
13109 # if CDPATH is set.
13110 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13111
13112 sed_quote_subst='$sed_quote_subst'
13113 double_quote_subst='$double_quote_subst'
13114 delay_variable_subst='$delay_variable_subst'
13115 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13116 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13117 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13118 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13119 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13120 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13121 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13122 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13123 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13124 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13125 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13126 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13127 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13128 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13129 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13130 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13131 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13132 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13133 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13134 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13135 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13136 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13137 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13138 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13139 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13140 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13141 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13142 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13143 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13144 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13145 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13146 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13147 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13148 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13149 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13150 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13151 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13152 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13153 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13154 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13155 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13156 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13157 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13158 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13159 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13160 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13161 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13162 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13163 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13164 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13165 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13166 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13167 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13168 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13169 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13170 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13171 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"`'
13172 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13173 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13174 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13175 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13176 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13177 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13178 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13179 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13180 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13181 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13182 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13183 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13184 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13185 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13186 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13187 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13188 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13189 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13190 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13191 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13192 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13193 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13194 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13195 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13196 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13197 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13198 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13199 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13200 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13201 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13202 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13203 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13204 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13205 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13206 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13207 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13208 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13209 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13210 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13211 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13212 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13213 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13214 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13215 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13216 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13217 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13218 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13219 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13220 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13221 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13222 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13223 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13224 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13225 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13226 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13227 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13228 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13229 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13230 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13231 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13232 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13233 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13234 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13235 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13236 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13237 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13238 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13239 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13240 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13241 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13242 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13243 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13244 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13245
13246 LTCC='$LTCC'
13247 LTCFLAGS='$LTCFLAGS'
13248 compiler='$compiler_DEFAULT'
13249
13250 # A function that is used when there is no print builtin or printf.
13251 func_fallback_echo ()
13252 {
13253   eval 'cat <<_LTECHO_EOF
13254 \$1
13255 _LTECHO_EOF'
13256 }
13257
13258 # Quote evaled strings.
13259 for var in SHELL \
13260 ECHO \
13261 PATH_SEPARATOR \
13262 SED \
13263 GREP \
13264 EGREP \
13265 FGREP \
13266 LD \
13267 NM \
13268 LN_S \
13269 lt_SP2NL \
13270 lt_NL2SP \
13271 reload_flag \
13272 OBJDUMP \
13273 deplibs_check_method \
13274 file_magic_cmd \
13275 file_magic_glob \
13276 want_nocaseglob \
13277 DLLTOOL \
13278 sharedlib_from_linklib_cmd \
13279 AR \
13280 AR_FLAGS \
13281 archiver_list_spec \
13282 STRIP \
13283 RANLIB \
13284 CC \
13285 CFLAGS \
13286 compiler \
13287 lt_cv_sys_global_symbol_pipe \
13288 lt_cv_sys_global_symbol_to_cdecl \
13289 lt_cv_sys_global_symbol_to_c_name_address \
13290 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13291 nm_file_list_spec \
13292 lt_prog_compiler_no_builtin_flag \
13293 lt_prog_compiler_pic \
13294 lt_prog_compiler_wl \
13295 lt_prog_compiler_static \
13296 lt_cv_prog_compiler_c_o \
13297 need_locks \
13298 MANIFEST_TOOL \
13299 DSYMUTIL \
13300 NMEDIT \
13301 LIPO \
13302 OTOOL \
13303 OTOOL64 \
13304 shrext_cmds \
13305 export_dynamic_flag_spec \
13306 whole_archive_flag_spec \
13307 compiler_needs_object \
13308 with_gnu_ld \
13309 allow_undefined_flag \
13310 no_undefined_flag \
13311 hardcode_libdir_flag_spec \
13312 hardcode_libdir_separator \
13313 exclude_expsyms \
13314 include_expsyms \
13315 file_list_spec \
13316 variables_saved_for_relink \
13317 libname_spec \
13318 library_names_spec \
13319 soname_spec \
13320 install_override_mode \
13321 finish_eval \
13322 old_striplib \
13323 striplib; do
13324     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13325     *[\\\\\\\`\\"\\\$]*)
13326       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13327       ;;
13328     *)
13329       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13330       ;;
13331     esac
13332 done
13333
13334 # Double-quote double-evaled strings.
13335 for var in reload_cmds \
13336 old_postinstall_cmds \
13337 old_postuninstall_cmds \
13338 old_archive_cmds \
13339 extract_expsyms_cmds \
13340 old_archive_from_new_cmds \
13341 old_archive_from_expsyms_cmds \
13342 archive_cmds \
13343 archive_expsym_cmds \
13344 module_cmds \
13345 module_expsym_cmds \
13346 export_symbols_cmds \
13347 prelink_cmds \
13348 postlink_cmds \
13349 postinstall_cmds \
13350 postuninstall_cmds \
13351 finish_cmds \
13352 sys_lib_search_path_spec \
13353 sys_lib_dlsearch_path_spec; do
13354     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13355     *[\\\\\\\`\\"\\\$]*)
13356       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13357       ;;
13358     *)
13359       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13360       ;;
13361     esac
13362 done
13363
13364 ac_aux_dir='$ac_aux_dir'
13365 xsi_shell='$xsi_shell'
13366 lt_shell_append='$lt_shell_append'
13367
13368 # See if we are running on zsh, and set the options which allow our
13369 # commands through without removal of \ escapes INIT.
13370 if test -n "\${ZSH_VERSION+set}" ; then
13371    setopt NO_GLOB_SUBST
13372 fi
13373
13374
13375     PACKAGE='$PACKAGE'
13376     VERSION='$VERSION'
13377     TIMESTAMP='$TIMESTAMP'
13378     RM='$RM'
13379     ofile='$ofile'
13380
13381
13382
13383
13384 _ACEOF
13385
13386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13387
13388 # Handling of arguments.
13389 for ac_config_target in $ac_config_targets
13390 do
13391   case $ac_config_target in
13392     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13393     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13394     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13395     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13396     "include/version.h") CONFIG_FILES="$CONFIG_FILES include/version.h" ;;
13397     "neard.pc") CONFIG_FILES="$CONFIG_FILES neard.pc" ;;
13398
13399   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13400   esac
13401 done
13402
13403
13404 # If the user did not use the arguments to specify the items to instantiate,
13405 # then the envvar interface is used.  Set only those that are not.
13406 # We use the long form for the default assignment because of an extremely
13407 # bizarre bug on SunOS 4.1.3.
13408 if $ac_need_defaults; then
13409   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13410   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13411   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13412 fi
13413
13414 # Have a temporary directory for convenience.  Make it in the build tree
13415 # simply because there is no reason against having it here, and in addition,
13416 # creating and moving files from /tmp can sometimes cause problems.
13417 # Hook for its removal unless debugging.
13418 # Note that there is a small window in which the directory will not be cleaned:
13419 # after its creation but before its name has been assigned to `$tmp'.
13420 $debug ||
13421 {
13422   tmp= ac_tmp=
13423   trap 'exit_status=$?
13424   : "${ac_tmp:=$tmp}"
13425   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13426 ' 0
13427   trap 'as_fn_exit 1' 1 2 13 15
13428 }
13429 # Create a (secure) tmp directory for tmp files.
13430
13431 {
13432   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13433   test -d "$tmp"
13434 }  ||
13435 {
13436   tmp=./conf$$-$RANDOM
13437   (umask 077 && mkdir "$tmp")
13438 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13439 ac_tmp=$tmp
13440
13441 # Set up the scripts for CONFIG_FILES section.
13442 # No need to generate them if there are no CONFIG_FILES.
13443 # This happens for instance with `./config.status config.h'.
13444 if test -n "$CONFIG_FILES"; then
13445
13446
13447 ac_cr=`echo X | tr X '\015'`
13448 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13449 # But we know of no other shell where ac_cr would be empty at this
13450 # point, so we can use a bashism as a fallback.
13451 if test "x$ac_cr" = x; then
13452   eval ac_cr=\$\'\\r\'
13453 fi
13454 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13455 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13456   ac_cs_awk_cr='\\r'
13457 else
13458   ac_cs_awk_cr=$ac_cr
13459 fi
13460
13461 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13462 _ACEOF
13463
13464
13465 {
13466   echo "cat >conf$$subs.awk <<_ACEOF" &&
13467   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13468   echo "_ACEOF"
13469 } >conf$$subs.sh ||
13470   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13471 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13472 ac_delim='%!_!# '
13473 for ac_last_try in false false false false false :; do
13474   . ./conf$$subs.sh ||
13475     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13476
13477   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13478   if test $ac_delim_n = $ac_delim_num; then
13479     break
13480   elif $ac_last_try; then
13481     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13482   else
13483     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13484   fi
13485 done
13486 rm -f conf$$subs.sh
13487
13488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13489 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13490 _ACEOF
13491 sed -n '
13492 h
13493 s/^/S["/; s/!.*/"]=/
13494 p
13495 g
13496 s/^[^!]*!//
13497 :repl
13498 t repl
13499 s/'"$ac_delim"'$//
13500 t delim
13501 :nl
13502 h
13503 s/\(.\{148\}\)..*/\1/
13504 t more1
13505 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13506 p
13507 n
13508 b repl
13509 :more1
13510 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13511 p
13512 g
13513 s/.\{148\}//
13514 t nl
13515 :delim
13516 h
13517 s/\(.\{148\}\)..*/\1/
13518 t more2
13519 s/["\\]/\\&/g; s/^/"/; s/$/"/
13520 p
13521 b
13522 :more2
13523 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13524 p
13525 g
13526 s/.\{148\}//
13527 t delim
13528 ' <conf$$subs.awk | sed '
13529 /^[^""]/{
13530   N
13531   s/\n//
13532 }
13533 ' >>$CONFIG_STATUS || ac_write_fail=1
13534 rm -f conf$$subs.awk
13535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13536 _ACAWK
13537 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13538   for (key in S) S_is_set[key] = 1
13539   FS = "\a"
13540
13541 }
13542 {
13543   line = $ 0
13544   nfields = split(line, field, "@")
13545   substed = 0
13546   len = length(field[1])
13547   for (i = 2; i < nfields; i++) {
13548     key = field[i]
13549     keylen = length(key)
13550     if (S_is_set[key]) {
13551       value = S[key]
13552       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13553       len += length(value) + length(field[++i])
13554       substed = 1
13555     } else
13556       len += 1 + keylen
13557   }
13558
13559   print line
13560 }
13561
13562 _ACAWK
13563 _ACEOF
13564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13565 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13566   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13567 else
13568   cat
13569 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13570   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13571 _ACEOF
13572
13573 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13574 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13575 # trailing colons and then remove the whole line if VPATH becomes empty
13576 # (actually we leave an empty line to preserve line numbers).
13577 if test "x$srcdir" = x.; then
13578   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13579 h
13580 s///
13581 s/^/:/
13582 s/[      ]*$/:/
13583 s/:\$(srcdir):/:/g
13584 s/:\${srcdir}:/:/g
13585 s/:@srcdir@:/:/g
13586 s/^:*//
13587 s/:*$//
13588 x
13589 s/\(=[   ]*\).*/\1/
13590 G
13591 s/\n//
13592 s/^[^=]*=[       ]*$//
13593 }'
13594 fi
13595
13596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13597 fi # test -n "$CONFIG_FILES"
13598
13599 # Set up the scripts for CONFIG_HEADERS section.
13600 # No need to generate them if there are no CONFIG_HEADERS.
13601 # This happens for instance with `./config.status Makefile'.
13602 if test -n "$CONFIG_HEADERS"; then
13603 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13604 BEGIN {
13605 _ACEOF
13606
13607 # Transform confdefs.h into an awk script `defines.awk', embedded as
13608 # here-document in config.status, that substitutes the proper values into
13609 # config.h.in to produce config.h.
13610
13611 # Create a delimiter string that does not exist in confdefs.h, to ease
13612 # handling of long lines.
13613 ac_delim='%!_!# '
13614 for ac_last_try in false false :; do
13615   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13616   if test -z "$ac_tt"; then
13617     break
13618   elif $ac_last_try; then
13619     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13620   else
13621     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13622   fi
13623 done
13624
13625 # For the awk script, D is an array of macro values keyed by name,
13626 # likewise P contains macro parameters if any.  Preserve backslash
13627 # newline sequences.
13628
13629 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13630 sed -n '
13631 s/.\{148\}/&'"$ac_delim"'/g
13632 t rset
13633 :rset
13634 s/^[     ]*#[    ]*define[       ][      ]*/ /
13635 t def
13636 d
13637 :def
13638 s/\\$//
13639 t bsnl
13640 s/["\\]/\\&/g
13641 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13642 D["\1"]=" \3"/p
13643 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13644 d
13645 :bsnl
13646 s/["\\]/\\&/g
13647 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13648 D["\1"]=" \3\\\\\\n"\\/p
13649 t cont
13650 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13651 t cont
13652 d
13653 :cont
13654 n
13655 s/.\{148\}/&'"$ac_delim"'/g
13656 t clear
13657 :clear
13658 s/\\$//
13659 t bsnlc
13660 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13661 d
13662 :bsnlc
13663 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13664 b cont
13665 ' <confdefs.h | sed '
13666 s/'"$ac_delim"'/"\\\
13667 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13668
13669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13670   for (key in D) D_is_set[key] = 1
13671   FS = "\a"
13672 }
13673 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13674   line = \$ 0
13675   split(line, arg, " ")
13676   if (arg[1] == "#") {
13677     defundef = arg[2]
13678     mac1 = arg[3]
13679   } else {
13680     defundef = substr(arg[1], 2)
13681     mac1 = arg[2]
13682   }
13683   split(mac1, mac2, "(") #)
13684   macro = mac2[1]
13685   prefix = substr(line, 1, index(line, defundef) - 1)
13686   if (D_is_set[macro]) {
13687     # Preserve the white space surrounding the "#".
13688     print prefix "define", macro P[macro] D[macro]
13689     next
13690   } else {
13691     # Replace #undef with comments.  This is necessary, for example,
13692     # in the case of _POSIX_SOURCE, which is predefined and required
13693     # on some systems where configure will not decide to define it.
13694     if (defundef == "undef") {
13695       print "/*", prefix defundef, macro, "*/"
13696       next
13697     }
13698   }
13699 }
13700 { print }
13701 _ACAWK
13702 _ACEOF
13703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13704   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13705 fi # test -n "$CONFIG_HEADERS"
13706
13707
13708 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13709 shift
13710 for ac_tag
13711 do
13712   case $ac_tag in
13713   :[FHLC]) ac_mode=$ac_tag; continue;;
13714   esac
13715   case $ac_mode$ac_tag in
13716   :[FHL]*:*);;
13717   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13718   :[FH]-) ac_tag=-:-;;
13719   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13720   esac
13721   ac_save_IFS=$IFS
13722   IFS=:
13723   set x $ac_tag
13724   IFS=$ac_save_IFS
13725   shift
13726   ac_file=$1
13727   shift
13728
13729   case $ac_mode in
13730   :L) ac_source=$1;;
13731   :[FH])
13732     ac_file_inputs=
13733     for ac_f
13734     do
13735       case $ac_f in
13736       -) ac_f="$ac_tmp/stdin";;
13737       *) # Look for the file first in the build tree, then in the source tree
13738          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13739          # because $ac_f cannot contain `:'.
13740          test -f "$ac_f" ||
13741            case $ac_f in
13742            [\\/$]*) false;;
13743            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13744            esac ||
13745            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13746       esac
13747       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13748       as_fn_append ac_file_inputs " '$ac_f'"
13749     done
13750
13751     # Let's still pretend it is `configure' which instantiates (i.e., don't
13752     # use $as_me), people would be surprised to read:
13753     #    /* config.h.  Generated by config.status.  */
13754     configure_input='Generated from '`
13755           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13756         `' by configure.'
13757     if test x"$ac_file" != x-; then
13758       configure_input="$ac_file.  $configure_input"
13759       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13760 $as_echo "$as_me: creating $ac_file" >&6;}
13761     fi
13762     # Neutralize special characters interpreted by sed in replacement strings.
13763     case $configure_input in #(
13764     *\&* | *\|* | *\\* )
13765        ac_sed_conf_input=`$as_echo "$configure_input" |
13766        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13767     *) ac_sed_conf_input=$configure_input;;
13768     esac
13769
13770     case $ac_tag in
13771     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13772       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13773     esac
13774     ;;
13775   esac
13776
13777   ac_dir=`$as_dirname -- "$ac_file" ||
13778 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13779          X"$ac_file" : 'X\(//\)[^/]' \| \
13780          X"$ac_file" : 'X\(//\)$' \| \
13781          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13782 $as_echo X"$ac_file" |
13783     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13784             s//\1/
13785             q
13786           }
13787           /^X\(\/\/\)[^/].*/{
13788             s//\1/
13789             q
13790           }
13791           /^X\(\/\/\)$/{
13792             s//\1/
13793             q
13794           }
13795           /^X\(\/\).*/{
13796             s//\1/
13797             q
13798           }
13799           s/.*/./; q'`
13800   as_dir="$ac_dir"; as_fn_mkdir_p
13801   ac_builddir=.
13802
13803 case "$ac_dir" in
13804 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13805 *)
13806   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13807   # A ".." for each directory in $ac_dir_suffix.
13808   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13809   case $ac_top_builddir_sub in
13810   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13811   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13812   esac ;;
13813 esac
13814 ac_abs_top_builddir=$ac_pwd
13815 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13816 # for backward compatibility:
13817 ac_top_builddir=$ac_top_build_prefix
13818
13819 case $srcdir in
13820   .)  # We are building in place.
13821     ac_srcdir=.
13822     ac_top_srcdir=$ac_top_builddir_sub
13823     ac_abs_top_srcdir=$ac_pwd ;;
13824   [\\/]* | ?:[\\/]* )  # Absolute name.
13825     ac_srcdir=$srcdir$ac_dir_suffix;
13826     ac_top_srcdir=$srcdir
13827     ac_abs_top_srcdir=$srcdir ;;
13828   *) # Relative name.
13829     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13830     ac_top_srcdir=$ac_top_build_prefix$srcdir
13831     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13832 esac
13833 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13834
13835
13836   case $ac_mode in
13837   :F)
13838   #
13839   # CONFIG_FILE
13840   #
13841
13842   case $INSTALL in
13843   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13844   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13845   esac
13846   ac_MKDIR_P=$MKDIR_P
13847   case $MKDIR_P in
13848   [\\/$]* | ?:[\\/]* ) ;;
13849   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13850   esac
13851 _ACEOF
13852
13853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13854 # If the template does not know about datarootdir, expand it.
13855 # FIXME: This hack should be removed a few years after 2.60.
13856 ac_datarootdir_hack=; ac_datarootdir_seen=
13857 ac_sed_dataroot='
13858 /datarootdir/ {
13859   p
13860   q
13861 }
13862 /@datadir@/p
13863 /@docdir@/p
13864 /@infodir@/p
13865 /@localedir@/p
13866 /@mandir@/p'
13867 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13868 *datarootdir*) ac_datarootdir_seen=yes;;
13869 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13870   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13871 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13872 _ACEOF
13873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13874   ac_datarootdir_hack='
13875   s&@datadir@&$datadir&g
13876   s&@docdir@&$docdir&g
13877   s&@infodir@&$infodir&g
13878   s&@localedir@&$localedir&g
13879   s&@mandir@&$mandir&g
13880   s&\\\${datarootdir}&$datarootdir&g' ;;
13881 esac
13882 _ACEOF
13883
13884 # Neutralize VPATH when `$srcdir' = `.'.
13885 # Shell code in configure.ac might set extrasub.
13886 # FIXME: do we really want to maintain this feature?
13887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13888 ac_sed_extra="$ac_vpsub
13889 $extrasub
13890 _ACEOF
13891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13892 :t
13893 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13894 s|@configure_input@|$ac_sed_conf_input|;t t
13895 s&@top_builddir@&$ac_top_builddir_sub&;t t
13896 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13897 s&@srcdir@&$ac_srcdir&;t t
13898 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13899 s&@top_srcdir@&$ac_top_srcdir&;t t
13900 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13901 s&@builddir@&$ac_builddir&;t t
13902 s&@abs_builddir@&$ac_abs_builddir&;t t
13903 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13904 s&@INSTALL@&$ac_INSTALL&;t t
13905 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13906 $ac_datarootdir_hack
13907 "
13908 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13909   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13910
13911 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13912   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13913   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13914       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13915   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13916 which seems to be undefined.  Please make sure it is defined" >&5
13917 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13918 which seems to be undefined.  Please make sure it is defined" >&2;}
13919
13920   rm -f "$ac_tmp/stdin"
13921   case $ac_file in
13922   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13923   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13924   esac \
13925   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13926  ;;
13927   :H)
13928   #
13929   # CONFIG_HEADER
13930   #
13931   if test x"$ac_file" != x-; then
13932     {
13933       $as_echo "/* $configure_input  */" \
13934       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13935     } >"$ac_tmp/config.h" \
13936       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13937     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13938       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13939 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13940     else
13941       rm -f "$ac_file"
13942       mv "$ac_tmp/config.h" "$ac_file" \
13943         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13944     fi
13945   else
13946     $as_echo "/* $configure_input  */" \
13947       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13948       || as_fn_error $? "could not create -" "$LINENO" 5
13949   fi
13950 # Compute "$ac_file"'s index in $config_headers.
13951 _am_arg="$ac_file"
13952 _am_stamp_count=1
13953 for _am_header in $config_headers :; do
13954   case $_am_header in
13955     $_am_arg | $_am_arg:* )
13956       break ;;
13957     * )
13958       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13959   esac
13960 done
13961 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13962 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13963          X"$_am_arg" : 'X\(//\)[^/]' \| \
13964          X"$_am_arg" : 'X\(//\)$' \| \
13965          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13966 $as_echo X"$_am_arg" |
13967     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13968             s//\1/
13969             q
13970           }
13971           /^X\(\/\/\)[^/].*/{
13972             s//\1/
13973             q
13974           }
13975           /^X\(\/\/\)$/{
13976             s//\1/
13977             q
13978           }
13979           /^X\(\/\).*/{
13980             s//\1/
13981             q
13982           }
13983           s/.*/./; q'`/stamp-h$_am_stamp_count
13984  ;;
13985
13986   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13987 $as_echo "$as_me: executing $ac_file commands" >&6;}
13988  ;;
13989   esac
13990
13991
13992   case $ac_file$ac_mode in
13993     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13994   # Autoconf 2.62 quotes --file arguments for eval, but not when files
13995   # are listed without --file.  Let's play safe and only enable the eval
13996   # if we detect the quoting.
13997   case $CONFIG_FILES in
13998   *\'*) eval set x "$CONFIG_FILES" ;;
13999   *)   set x $CONFIG_FILES ;;
14000   esac
14001   shift
14002   for mf
14003   do
14004     # Strip MF so we end up with the name of the file.
14005     mf=`echo "$mf" | sed -e 's/:.*$//'`
14006     # Check whether this is an Automake generated Makefile or not.
14007     # We used to match only the files named `Makefile.in', but
14008     # some people rename them; so instead we look at the file content.
14009     # Grep'ing the first line is not enough: some people post-process
14010     # each Makefile.in and add a new line on top of each file to say so.
14011     # Grep'ing the whole file is not good either: AIX grep has a line
14012     # limit of 2048, but all sed's we know have understand at least 4000.
14013     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14014       dirpart=`$as_dirname -- "$mf" ||
14015 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14016          X"$mf" : 'X\(//\)[^/]' \| \
14017          X"$mf" : 'X\(//\)$' \| \
14018          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14019 $as_echo X"$mf" |
14020     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14021             s//\1/
14022             q
14023           }
14024           /^X\(\/\/\)[^/].*/{
14025             s//\1/
14026             q
14027           }
14028           /^X\(\/\/\)$/{
14029             s//\1/
14030             q
14031           }
14032           /^X\(\/\).*/{
14033             s//\1/
14034             q
14035           }
14036           s/.*/./; q'`
14037     else
14038       continue
14039     fi
14040     # Extract the definition of DEPDIR, am__include, and am__quote
14041     # from the Makefile without running `make'.
14042     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14043     test -z "$DEPDIR" && continue
14044     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14045     test -z "am__include" && continue
14046     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14047     # When using ansi2knr, U may be empty or an underscore; expand it
14048     U=`sed -n 's/^U = //p' < "$mf"`
14049     # Find all dependency output files, they are included files with
14050     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14051     # simplest approach to changing $(DEPDIR) to its actual value in the
14052     # expansion.
14053     for file in `sed -n "
14054       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14055          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14056       # Make sure the directory exists.
14057       test -f "$dirpart/$file" && continue
14058       fdir=`$as_dirname -- "$file" ||
14059 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14060          X"$file" : 'X\(//\)[^/]' \| \
14061          X"$file" : 'X\(//\)$' \| \
14062          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14063 $as_echo X"$file" |
14064     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14065             s//\1/
14066             q
14067           }
14068           /^X\(\/\/\)[^/].*/{
14069             s//\1/
14070             q
14071           }
14072           /^X\(\/\/\)$/{
14073             s//\1/
14074             q
14075           }
14076           /^X\(\/\).*/{
14077             s//\1/
14078             q
14079           }
14080           s/.*/./; q'`
14081       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14082       # echo "creating $dirpart/$file"
14083       echo '# dummy' > "$dirpart/$file"
14084     done
14085   done
14086 }
14087  ;;
14088     "libtool":C)
14089
14090     # See if we are running on zsh, and set the options which allow our
14091     # commands through without removal of \ escapes.
14092     if test -n "${ZSH_VERSION+set}" ; then
14093       setopt NO_GLOB_SUBST
14094     fi
14095
14096     cfgfile="${ofile}T"
14097     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14098     $RM "$cfgfile"
14099
14100     cat <<_LT_EOF >> "$cfgfile"
14101 #! $SHELL
14102
14103 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14104 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14105 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14106 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14107 #
14108 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14109 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14110 #                 Foundation, Inc.
14111 #   Written by Gordon Matzigkeit, 1996
14112 #
14113 #   This file is part of GNU Libtool.
14114 #
14115 # GNU Libtool is free software; you can redistribute it and/or
14116 # modify it under the terms of the GNU General Public License as
14117 # published by the Free Software Foundation; either version 2 of
14118 # the License, or (at your option) any later version.
14119 #
14120 # As a special exception to the GNU General Public License,
14121 # if you distribute this file as part of a program or library that
14122 # is built using GNU Libtool, you may include this file under the
14123 # same distribution terms that you use for the rest of that program.
14124 #
14125 # GNU Libtool is distributed in the hope that it will be useful,
14126 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14127 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14128 # GNU General Public License for more details.
14129 #
14130 # You should have received a copy of the GNU General Public License
14131 # along with GNU Libtool; see the file COPYING.  If not, a copy
14132 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14133 # obtained by writing to the Free Software Foundation, Inc.,
14134 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14135
14136
14137 # The names of the tagged configurations supported by this script.
14138 available_tags=""
14139
14140 # ### BEGIN LIBTOOL CONFIG
14141
14142 # Whether or not to build static libraries.
14143 build_old_libs=$enable_static
14144
14145 # Which release of libtool.m4 was used?
14146 macro_version=$macro_version
14147 macro_revision=$macro_revision
14148
14149 # Whether or not to build shared libraries.
14150 build_libtool_libs=$enable_shared
14151
14152 # What type of objects to build.
14153 pic_mode=$pic_mode
14154
14155 # Whether or not to optimize for fast installation.
14156 fast_install=$enable_fast_install
14157
14158 # Shell to use when invoking shell scripts.
14159 SHELL=$lt_SHELL
14160
14161 # An echo program that protects backslashes.
14162 ECHO=$lt_ECHO
14163
14164 # The PATH separator for the build system.
14165 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14166
14167 # The host system.
14168 host_alias=$host_alias
14169 host=$host
14170 host_os=$host_os
14171
14172 # The build system.
14173 build_alias=$build_alias
14174 build=$build
14175 build_os=$build_os
14176
14177 # A sed program that does not truncate output.
14178 SED=$lt_SED
14179
14180 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14181 Xsed="\$SED -e 1s/^X//"
14182
14183 # A grep program that handles long lines.
14184 GREP=$lt_GREP
14185
14186 # An ERE matcher.
14187 EGREP=$lt_EGREP
14188
14189 # A literal string matcher.
14190 FGREP=$lt_FGREP
14191
14192 # A BSD- or MS-compatible name lister.
14193 NM=$lt_NM
14194
14195 # Whether we need soft or hard links.
14196 LN_S=$lt_LN_S
14197
14198 # What is the maximum length of a command?
14199 max_cmd_len=$max_cmd_len
14200
14201 # Object file suffix (normally "o").
14202 objext=$ac_objext
14203
14204 # Executable file suffix (normally "").
14205 exeext=$exeext
14206
14207 # whether the shell understands "unset".
14208 lt_unset=$lt_unset
14209
14210 # turn spaces into newlines.
14211 SP2NL=$lt_lt_SP2NL
14212
14213 # turn newlines into spaces.
14214 NL2SP=$lt_lt_NL2SP
14215
14216 # convert \$build file names to \$host format.
14217 to_host_file_cmd=$lt_cv_to_host_file_cmd
14218
14219 # convert \$build files to toolchain format.
14220 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14221
14222 # An object symbol dumper.
14223 OBJDUMP=$lt_OBJDUMP
14224
14225 # Method to check whether dependent libraries are shared objects.
14226 deplibs_check_method=$lt_deplibs_check_method
14227
14228 # Command to use when deplibs_check_method = "file_magic".
14229 file_magic_cmd=$lt_file_magic_cmd
14230
14231 # How to find potential files when deplibs_check_method = "file_magic".
14232 file_magic_glob=$lt_file_magic_glob
14233
14234 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14235 want_nocaseglob=$lt_want_nocaseglob
14236
14237 # DLL creation program.
14238 DLLTOOL=$lt_DLLTOOL
14239
14240 # Command to associate shared and link libraries.
14241 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14242
14243 # The archiver.
14244 AR=$lt_AR
14245
14246 # Flags to create an archive.
14247 AR_FLAGS=$lt_AR_FLAGS
14248
14249 # How to feed a file listing to the archiver.
14250 archiver_list_spec=$lt_archiver_list_spec
14251
14252 # A symbol stripping program.
14253 STRIP=$lt_STRIP
14254
14255 # Commands used to install an old-style archive.
14256 RANLIB=$lt_RANLIB
14257 old_postinstall_cmds=$lt_old_postinstall_cmds
14258 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14259
14260 # Whether to use a lock for old archive extraction.
14261 lock_old_archive_extraction=$lock_old_archive_extraction
14262
14263 # A C compiler.
14264 LTCC=$lt_CC
14265
14266 # LTCC compiler flags.
14267 LTCFLAGS=$lt_CFLAGS
14268
14269 # Take the output of nm and produce a listing of raw symbols and C names.
14270 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14271
14272 # Transform the output of nm in a proper C declaration.
14273 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14274
14275 # Transform the output of nm in a C name address pair.
14276 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14277
14278 # Transform the output of nm in a C name address pair when lib prefix is needed.
14279 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14280
14281 # Specify filename containing input files for \$NM.
14282 nm_file_list_spec=$lt_nm_file_list_spec
14283
14284 # The root where to search for dependent libraries,and in which our libraries should be installed.
14285 lt_sysroot=$lt_sysroot
14286
14287 # The name of the directory that contains temporary libtool files.
14288 objdir=$objdir
14289
14290 # Used to examine libraries when file_magic_cmd begins with "file".
14291 MAGIC_CMD=$MAGIC_CMD
14292
14293 # Must we lock files when doing compilation?
14294 need_locks=$lt_need_locks
14295
14296 # Manifest tool.
14297 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14298
14299 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14300 DSYMUTIL=$lt_DSYMUTIL
14301
14302 # Tool to change global to local symbols on Mac OS X.
14303 NMEDIT=$lt_NMEDIT
14304
14305 # Tool to manipulate fat objects and archives on Mac OS X.
14306 LIPO=$lt_LIPO
14307
14308 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14309 OTOOL=$lt_OTOOL
14310
14311 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14312 OTOOL64=$lt_OTOOL64
14313
14314 # Old archive suffix (normally "a").
14315 libext=$libext
14316
14317 # Shared library suffix (normally ".so").
14318 shrext_cmds=$lt_shrext_cmds
14319
14320 # The commands to extract the exported symbol list from a shared archive.
14321 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14322
14323 # Variables whose values should be saved in libtool wrapper scripts and
14324 # restored at link time.
14325 variables_saved_for_relink=$lt_variables_saved_for_relink
14326
14327 # Do we need the "lib" prefix for modules?
14328 need_lib_prefix=$need_lib_prefix
14329
14330 # Do we need a version for libraries?
14331 need_version=$need_version
14332
14333 # Library versioning type.
14334 version_type=$version_type
14335
14336 # Shared library runtime path variable.
14337 runpath_var=$runpath_var
14338
14339 # Shared library path variable.
14340 shlibpath_var=$shlibpath_var
14341
14342 # Is shlibpath searched before the hard-coded library search path?
14343 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14344
14345 # Format of library name prefix.
14346 libname_spec=$lt_libname_spec
14347
14348 # List of archive names.  First name is the real one, the rest are links.
14349 # The last name is the one that the linker finds with -lNAME
14350 library_names_spec=$lt_library_names_spec
14351
14352 # The coded name of the library, if different from the real name.
14353 soname_spec=$lt_soname_spec
14354
14355 # Permission mode override for installation of shared libraries.
14356 install_override_mode=$lt_install_override_mode
14357
14358 # Command to use after installation of a shared archive.
14359 postinstall_cmds=$lt_postinstall_cmds
14360
14361 # Command to use after uninstallation of a shared archive.
14362 postuninstall_cmds=$lt_postuninstall_cmds
14363
14364 # Commands used to finish a libtool library installation in a directory.
14365 finish_cmds=$lt_finish_cmds
14366
14367 # As "finish_cmds", except a single script fragment to be evaled but
14368 # not shown.
14369 finish_eval=$lt_finish_eval
14370
14371 # Whether we should hardcode library paths into libraries.
14372 hardcode_into_libs=$hardcode_into_libs
14373
14374 # Compile-time system search path for libraries.
14375 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14376
14377 # Run-time system search path for libraries.
14378 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14379
14380 # Whether dlopen is supported.
14381 dlopen_support=$enable_dlopen
14382
14383 # Whether dlopen of programs is supported.
14384 dlopen_self=$enable_dlopen_self
14385
14386 # Whether dlopen of statically linked programs is supported.
14387 dlopen_self_static=$enable_dlopen_self_static
14388
14389 # Commands to strip libraries.
14390 old_striplib=$lt_old_striplib
14391 striplib=$lt_striplib
14392
14393
14394 # The linker used to build libraries.
14395 LD=$lt_LD
14396
14397 # How to create reloadable object files.
14398 reload_flag=$lt_reload_flag
14399 reload_cmds=$lt_reload_cmds
14400
14401 # Commands used to build an old-style archive.
14402 old_archive_cmds=$lt_old_archive_cmds
14403
14404 # A language specific compiler.
14405 CC=$lt_compiler
14406
14407 # Is the compiler the GNU compiler?
14408 with_gcc=$GCC
14409
14410 # Compiler flag to turn off builtin functions.
14411 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14412
14413 # Additional compiler flags for building library objects.
14414 pic_flag=$lt_lt_prog_compiler_pic
14415
14416 # How to pass a linker flag through the compiler.
14417 wl=$lt_lt_prog_compiler_wl
14418
14419 # Compiler flag to prevent dynamic linking.
14420 link_static_flag=$lt_lt_prog_compiler_static
14421
14422 # Does compiler simultaneously support -c and -o options?
14423 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14424
14425 # Whether or not to add -lc for building shared libraries.
14426 build_libtool_need_lc=$archive_cmds_need_lc
14427
14428 # Whether or not to disallow shared libs when runtime libs are static.
14429 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14430
14431 # Compiler flag to allow reflexive dlopens.
14432 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14433
14434 # Compiler flag to generate shared objects directly from archives.
14435 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14436
14437 # Whether the compiler copes with passing no objects directly.
14438 compiler_needs_object=$lt_compiler_needs_object
14439
14440 # Create an old-style archive from a shared archive.
14441 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14442
14443 # Create a temporary old-style archive to link instead of a shared archive.
14444 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14445
14446 # Commands used to build a shared archive.
14447 archive_cmds=$lt_archive_cmds
14448 archive_expsym_cmds=$lt_archive_expsym_cmds
14449
14450 # Commands used to build a loadable module if different from building
14451 # a shared archive.
14452 module_cmds=$lt_module_cmds
14453 module_expsym_cmds=$lt_module_expsym_cmds
14454
14455 # Whether we are building with GNU ld or not.
14456 with_gnu_ld=$lt_with_gnu_ld
14457
14458 # Flag that allows shared libraries with undefined symbols to be built.
14459 allow_undefined_flag=$lt_allow_undefined_flag
14460
14461 # Flag that enforces no undefined symbols.
14462 no_undefined_flag=$lt_no_undefined_flag
14463
14464 # Flag to hardcode \$libdir into a binary during linking.
14465 # This must work even if \$libdir does not exist
14466 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14467
14468 # Whether we need a single "-rpath" flag with a separated argument.
14469 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14470
14471 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14472 # DIR into the resulting binary.
14473 hardcode_direct=$hardcode_direct
14474
14475 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14476 # DIR into the resulting binary and the resulting library dependency is
14477 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14478 # library is relocated.
14479 hardcode_direct_absolute=$hardcode_direct_absolute
14480
14481 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14482 # into the resulting binary.
14483 hardcode_minus_L=$hardcode_minus_L
14484
14485 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14486 # into the resulting binary.
14487 hardcode_shlibpath_var=$hardcode_shlibpath_var
14488
14489 # Set to "yes" if building a shared library automatically hardcodes DIR
14490 # into the library and all subsequent libraries and executables linked
14491 # against it.
14492 hardcode_automatic=$hardcode_automatic
14493
14494 # Set to yes if linker adds runtime paths of dependent libraries
14495 # to runtime path list.
14496 inherit_rpath=$inherit_rpath
14497
14498 # Whether libtool must link a program against all its dependency libraries.
14499 link_all_deplibs=$link_all_deplibs
14500
14501 # Set to "yes" if exported symbols are required.
14502 always_export_symbols=$always_export_symbols
14503
14504 # The commands to list exported symbols.
14505 export_symbols_cmds=$lt_export_symbols_cmds
14506
14507 # Symbols that should not be listed in the preloaded symbols.
14508 exclude_expsyms=$lt_exclude_expsyms
14509
14510 # Symbols that must always be exported.
14511 include_expsyms=$lt_include_expsyms
14512
14513 # Commands necessary for linking programs (against libraries) with templates.
14514 prelink_cmds=$lt_prelink_cmds
14515
14516 # Commands necessary for finishing linking programs.
14517 postlink_cmds=$lt_postlink_cmds
14518
14519 # Specify filename containing input files.
14520 file_list_spec=$lt_file_list_spec
14521
14522 # How to hardcode a shared library path into an executable.
14523 hardcode_action=$hardcode_action
14524
14525 # ### END LIBTOOL CONFIG
14526
14527 _LT_EOF
14528
14529   case $host_os in
14530   aix3*)
14531     cat <<\_LT_EOF >> "$cfgfile"
14532 # AIX sometimes has problems with the GCC collect2 program.  For some
14533 # reason, if we set the COLLECT_NAMES environment variable, the problems
14534 # vanish in a puff of smoke.
14535 if test "X${COLLECT_NAMES+set}" != Xset; then
14536   COLLECT_NAMES=
14537   export COLLECT_NAMES
14538 fi
14539 _LT_EOF
14540     ;;
14541   esac
14542
14543
14544 ltmain="$ac_aux_dir/ltmain.sh"
14545
14546
14547   # We use sed instead of cat because bash on DJGPP gets confused if
14548   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14549   # text mode, it properly converts lines to CR/LF.  This bash problem
14550   # is reportedly fixed, but why not run on old versions too?
14551   sed '$q' "$ltmain" >> "$cfgfile" \
14552      || (rm -f "$cfgfile"; exit 1)
14553
14554   if test x"$xsi_shell" = xyes; then
14555   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14556 func_dirname ()\
14557 {\
14558 \    case ${1} in\
14559 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14560 \      *  ) func_dirname_result="${3}" ;;\
14561 \    esac\
14562 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14563   && mv -f "$cfgfile.tmp" "$cfgfile" \
14564     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14565 test 0 -eq $? || _lt_function_replace_fail=:
14566
14567
14568   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14569 func_basename ()\
14570 {\
14571 \    func_basename_result="${1##*/}"\
14572 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14573   && mv -f "$cfgfile.tmp" "$cfgfile" \
14574     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14575 test 0 -eq $? || _lt_function_replace_fail=:
14576
14577
14578   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14579 func_dirname_and_basename ()\
14580 {\
14581 \    case ${1} in\
14582 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14583 \      *  ) func_dirname_result="${3}" ;;\
14584 \    esac\
14585 \    func_basename_result="${1##*/}"\
14586 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14587   && mv -f "$cfgfile.tmp" "$cfgfile" \
14588     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14589 test 0 -eq $? || _lt_function_replace_fail=:
14590
14591
14592   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14593 func_stripname ()\
14594 {\
14595 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14596 \    # positional parameters, so assign one to ordinary parameter first.\
14597 \    func_stripname_result=${3}\
14598 \    func_stripname_result=${func_stripname_result#"${1}"}\
14599 \    func_stripname_result=${func_stripname_result%"${2}"}\
14600 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14601   && mv -f "$cfgfile.tmp" "$cfgfile" \
14602     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14603 test 0 -eq $? || _lt_function_replace_fail=:
14604
14605
14606   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14607 func_split_long_opt ()\
14608 {\
14609 \    func_split_long_opt_name=${1%%=*}\
14610 \    func_split_long_opt_arg=${1#*=}\
14611 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14612   && mv -f "$cfgfile.tmp" "$cfgfile" \
14613     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14614 test 0 -eq $? || _lt_function_replace_fail=:
14615
14616
14617   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14618 func_split_short_opt ()\
14619 {\
14620 \    func_split_short_opt_arg=${1#??}\
14621 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14622 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14623   && mv -f "$cfgfile.tmp" "$cfgfile" \
14624     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14625 test 0 -eq $? || _lt_function_replace_fail=:
14626
14627
14628   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14629 func_lo2o ()\
14630 {\
14631 \    case ${1} in\
14632 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14633 \      *)    func_lo2o_result=${1} ;;\
14634 \    esac\
14635 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14636   && mv -f "$cfgfile.tmp" "$cfgfile" \
14637     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14638 test 0 -eq $? || _lt_function_replace_fail=:
14639
14640
14641   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14642 func_xform ()\
14643 {\
14644     func_xform_result=${1%.*}.lo\
14645 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14646   && mv -f "$cfgfile.tmp" "$cfgfile" \
14647     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14648 test 0 -eq $? || _lt_function_replace_fail=:
14649
14650
14651   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14652 func_arith ()\
14653 {\
14654     func_arith_result=$(( $* ))\
14655 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14656   && mv -f "$cfgfile.tmp" "$cfgfile" \
14657     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14658 test 0 -eq $? || _lt_function_replace_fail=:
14659
14660
14661   sed -e '/^func_len ()$/,/^} # func_len /c\
14662 func_len ()\
14663 {\
14664     func_len_result=${#1}\
14665 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14666   && mv -f "$cfgfile.tmp" "$cfgfile" \
14667     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14668 test 0 -eq $? || _lt_function_replace_fail=:
14669
14670 fi
14671
14672 if test x"$lt_shell_append" = xyes; then
14673   sed -e '/^func_append ()$/,/^} # func_append /c\
14674 func_append ()\
14675 {\
14676     eval "${1}+=\\${2}"\
14677 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14678   && mv -f "$cfgfile.tmp" "$cfgfile" \
14679     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14680 test 0 -eq $? || _lt_function_replace_fail=:
14681
14682
14683   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14684 func_append_quoted ()\
14685 {\
14686 \    func_quote_for_eval "${2}"\
14687 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14688 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14689   && mv -f "$cfgfile.tmp" "$cfgfile" \
14690     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14691 test 0 -eq $? || _lt_function_replace_fail=:
14692
14693
14694   # Save a `func_append' function call where possible by direct use of '+='
14695   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14696     && mv -f "$cfgfile.tmp" "$cfgfile" \
14697       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14698   test 0 -eq $? || _lt_function_replace_fail=:
14699 else
14700   # Save a `func_append' function call even when '+=' is not available
14701   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14702     && mv -f "$cfgfile.tmp" "$cfgfile" \
14703       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14704   test 0 -eq $? || _lt_function_replace_fail=:
14705 fi
14706
14707 if test x"$_lt_function_replace_fail" = x":"; then
14708   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14709 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14710 fi
14711
14712
14713    mv -f "$cfgfile" "$ofile" ||
14714     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14715   chmod +x "$ofile"
14716
14717  ;;
14718
14719   esac
14720 done # for ac_tag
14721
14722
14723 as_fn_exit 0
14724 _ACEOF
14725 ac_clean_files=$ac_clean_files_save
14726
14727 test $ac_write_fail = 0 ||
14728   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14729
14730
14731 # configure is writing to config.log, and then calls config.status.
14732 # config.status does its own redirection, appending to config.log.
14733 # Unfortunately, on DOS this fails, as config.log is still kept open
14734 # by configure, so config.status won't be able to write to it; its
14735 # output is simply discarded.  So we exec the FD to /dev/null,
14736 # effectively closing config.log, so it can be properly (re)opened and
14737 # appended to by config.status.  When coming back to configure, we
14738 # need to make the FD available again.
14739 if test "$no_create" != yes; then
14740   ac_cs_success=:
14741   ac_config_status_args=
14742   test "$silent" = yes &&
14743     ac_config_status_args="$ac_config_status_args --quiet"
14744   exec 5>/dev/null
14745   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14746   exec 5>>config.log
14747   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14748   # would make configure fail if this is the last instruction.
14749   $ac_cs_success || as_fn_exit 1
14750 fi
14751 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14752   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14753 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14754 fi
14755