1@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.69 for liblscp 0.9.4.
4@%:@
5@%:@ Report bugs to <rncbc@rncbc.org>.
6@%:@
7@%:@
8@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9@%:@
10@%:@
11@%:@ This configure script is free software; the Free Software Foundation
12@%:@ gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in @%:@(
28  *posix*) :
29    set -o posix ;; @%:@(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in @%:@(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in @%:@((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in @%:@ ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in @%:@(
172  *posix*) :
173    set -o posix ;; @%:@(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in @%:@(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in @%:@ ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and rncbc@rncbc.org
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296@%:@ as_fn_unset VAR
297@%:@ ---------------
298@%:@ Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305@%:@ as_fn_set_status STATUS
306@%:@ -----------------------
307@%:@ Set @S|@? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} @%:@ as_fn_set_status
312
313@%:@ as_fn_exit STATUS
314@%:@ -----------------
315@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} @%:@ as_fn_exit
322
323@%:@ as_fn_mkdir_p
324@%:@ -------------
325@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} @%:@ as_fn_mkdir_p
370
371@%:@ as_fn_executable_p FILE
372@%:@ -----------------------
373@%:@ Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} @%:@ as_fn_executable_p
378@%:@ as_fn_append VAR VALUE
379@%:@ ----------------------
380@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
381@%:@ advantage of any shell optimizations that allow amortized linear growth over
382@%:@ repeated appends, instead of the typical quadratic growth present in naive
383@%:@ implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396@%:@ as_fn_arith ARG...
397@%:@ ------------------
398@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
399@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
400@%:@ must be portable across @S|@(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
415@%:@ ----------------------------------------
416@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418@%:@ script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} @%:@ as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in @%:@(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIB@&t@OBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='liblscp'
592PACKAGE_TARNAME='liblscp'
593PACKAGE_VERSION='0.9.4'
594PACKAGE_STRING='liblscp 0.9.4'
595PACKAGE_BUGREPORT='rncbc@rncbc.org'
596PACKAGE_URL=''
597
598ac_unique_file="src/client.c"
599ac_default_prefix=/usr/local
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIB@&t@OBJS
640ac_doxygen
641WINDOWS_FALSE
642WINDOWS_TRUE
643CPP
644LT_SYS_LIBRARY_PATH
645OTOOL64
646OTOOL
647LIPO
648NMEDIT
649DSYMUTIL
650MANIFEST_TOOL
651RANLIB
652ac_ct_AR
653AR
654LN_S
655NM
656ac_ct_DUMPBIN
657DUMPBIN
658LD
659FGREP
660EGREP
661GREP
662SED
663LIBTOOL
664OBJDUMP
665DLLTOOL
666AS
667host_os
668host_vendor
669host_cpu
670host
671build_os
672build_vendor
673build_cpu
674build
675am__fastdepCC_FALSE
676am__fastdepCC_TRUE
677CCDEPMODE
678am__nodep
679AMDEPBACKSLASH
680AMDEP_FALSE
681AMDEP_TRUE
682am__include
683DEPDIR
684OBJEXT
685EXEEXT
686ac_ct_CC
687CPPFLAGS
688LDFLAGS
689CFLAGS
690CC
691ac_includedir
692ac_libdir
693ac_prefix
694ac_version
695SHARED_VERSION_INFO
696AM_BACKSLASH
697AM_DEFAULT_VERBOSITY
698AM_DEFAULT_V
699AM_V
700am__untar
701am__tar
702AMTAR
703am__leading_dot
704SET_MAKE
705AWK
706mkdir_p
707MKDIR_P
708INSTALL_STRIP_PROGRAM
709STRIP
710install_sh
711MAKEINFO
712AUTOHEADER
713AUTOMAKE
714AUTOCONF
715ACLOCAL
716VERSION
717PACKAGE
718CYGPATH_W
719am__isrc
720INSTALL_DATA
721INSTALL_SCRIPT
722INSTALL_PROGRAM
723target_alias
724host_alias
725build_alias
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
753PACKAGE_URL
754PACKAGE_BUGREPORT
755PACKAGE_STRING
756PACKAGE_VERSION
757PACKAGE_TARNAME
758PACKAGE_NAME
759PATH_SEPARATOR
760SHELL
761am__quote'
762ac_subst_files=''
763ac_user_opts='
764enable_option_checking
765enable_silent_rules
766enable_debug
767enable_dependency_tracking
768enable_shared
769enable_static
770with_pic
771enable_fast_install
772with_aix_soname
773with_gnu_ld
774with_sysroot
775enable_libtool_lock
776'
777      ac_precious_vars='build_alias
778host_alias
779target_alias
780CC
781CFLAGS
782LDFLAGS
783LIBS
784CPPFLAGS
785LT_SYS_LIBRARY_PATH
786CPP'
787
788
789# Initialize some variables set by options.
790ac_init_help=
791ac_init_version=false
792ac_unrecognized_opts=
793ac_unrecognized_sep=
794# The variables have the same names as the options, with
795# dashes changed to underlines.
796cache_file=/dev/null
797exec_prefix=NONE
798no_create=
799no_recursion=
800prefix=NONE
801program_prefix=NONE
802program_suffix=NONE
803program_transform_name=s,x,x,
804silent=
805site=
806srcdir=
807verbose=
808x_includes=NONE
809x_libraries=NONE
810
811# Installation directory options.
812# These are left unexpanded so users can "make install exec_prefix=/foo"
813# and all the variables that are supposed to be based on exec_prefix
814# by default will actually change.
815# Use braces instead of parens because sh, perl, etc. also accept them.
816# (The list follows the same order as the GNU Coding Standards.)
817bindir='${exec_prefix}/bin'
818sbindir='${exec_prefix}/sbin'
819libexecdir='${exec_prefix}/libexec'
820datarootdir='${prefix}/share'
821datadir='${datarootdir}'
822sysconfdir='${prefix}/etc'
823sharedstatedir='${prefix}/com'
824localstatedir='${prefix}/var'
825includedir='${prefix}/include'
826oldincludedir='/usr/include'
827docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828infodir='${datarootdir}/info'
829htmldir='${docdir}'
830dvidir='${docdir}'
831pdfdir='${docdir}'
832psdir='${docdir}'
833libdir='${exec_prefix}/lib'
834localedir='${datarootdir}/locale'
835mandir='${datarootdir}/man'
836
837ac_prev=
838ac_dashdash=
839for ac_option
840do
841  # If the previous option needs an argument, assign it.
842  if test -n "$ac_prev"; then
843    eval $ac_prev=\$ac_option
844    ac_prev=
845    continue
846  fi
847
848  case $ac_option in
849  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850  *=)   ac_optarg= ;;
851  *)    ac_optarg=yes ;;
852  esac
853
854  # Accept the important Cygnus configure options, so we can diagnose typos.
855
856  case $ac_dashdash$ac_option in
857  --)
858    ac_dashdash=yes ;;
859
860  -bindir | --bindir | --bindi | --bind | --bin | --bi)
861    ac_prev=bindir ;;
862  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863    bindir=$ac_optarg ;;
864
865  -build | --build | --buil | --bui | --bu)
866    ac_prev=build_alias ;;
867  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868    build_alias=$ac_optarg ;;
869
870  -cache-file | --cache-file | --cache-fil | --cache-fi \
871  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872    ac_prev=cache_file ;;
873  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875    cache_file=$ac_optarg ;;
876
877  --config-cache | -C)
878    cache_file=config.cache ;;
879
880  -datadir | --datadir | --datadi | --datad)
881    ac_prev=datadir ;;
882  -datadir=* | --datadir=* | --datadi=* | --datad=*)
883    datadir=$ac_optarg ;;
884
885  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886  | --dataroo | --dataro | --datar)
887    ac_prev=datarootdir ;;
888  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890    datarootdir=$ac_optarg ;;
891
892  -disable-* | --disable-*)
893    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894    # Reject names that are not valid shell variable names.
895    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896      as_fn_error $? "invalid feature name: $ac_useropt"
897    ac_useropt_orig=$ac_useropt
898    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899    case $ac_user_opts in
900      *"
901"enable_$ac_useropt"
902"*) ;;
903      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904	 ac_unrecognized_sep=', ';;
905    esac
906    eval enable_$ac_useropt=no ;;
907
908  -docdir | --docdir | --docdi | --doc | --do)
909    ac_prev=docdir ;;
910  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911    docdir=$ac_optarg ;;
912
913  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914    ac_prev=dvidir ;;
915  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916    dvidir=$ac_optarg ;;
917
918  -enable-* | --enable-*)
919    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920    # Reject names that are not valid shell variable names.
921    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922      as_fn_error $? "invalid feature name: $ac_useropt"
923    ac_useropt_orig=$ac_useropt
924    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925    case $ac_user_opts in
926      *"
927"enable_$ac_useropt"
928"*) ;;
929      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930	 ac_unrecognized_sep=', ';;
931    esac
932    eval enable_$ac_useropt=\$ac_optarg ;;
933
934  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936  | --exec | --exe | --ex)
937    ac_prev=exec_prefix ;;
938  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940  | --exec=* | --exe=* | --ex=*)
941    exec_prefix=$ac_optarg ;;
942
943  -gas | --gas | --ga | --g)
944    # Obsolete; use --with-gas.
945    with_gas=yes ;;
946
947  -help | --help | --hel | --he | -h)
948    ac_init_help=long ;;
949  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950    ac_init_help=recursive ;;
951  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952    ac_init_help=short ;;
953
954  -host | --host | --hos | --ho)
955    ac_prev=host_alias ;;
956  -host=* | --host=* | --hos=* | --ho=*)
957    host_alias=$ac_optarg ;;
958
959  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960    ac_prev=htmldir ;;
961  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962  | --ht=*)
963    htmldir=$ac_optarg ;;
964
965  -includedir | --includedir | --includedi | --included | --include \
966  | --includ | --inclu | --incl | --inc)
967    ac_prev=includedir ;;
968  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969  | --includ=* | --inclu=* | --incl=* | --inc=*)
970    includedir=$ac_optarg ;;
971
972  -infodir | --infodir | --infodi | --infod | --info | --inf)
973    ac_prev=infodir ;;
974  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975    infodir=$ac_optarg ;;
976
977  -libdir | --libdir | --libdi | --libd)
978    ac_prev=libdir ;;
979  -libdir=* | --libdir=* | --libdi=* | --libd=*)
980    libdir=$ac_optarg ;;
981
982  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983  | --libexe | --libex | --libe)
984    ac_prev=libexecdir ;;
985  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986  | --libexe=* | --libex=* | --libe=*)
987    libexecdir=$ac_optarg ;;
988
989  -localedir | --localedir | --localedi | --localed | --locale)
990    ac_prev=localedir ;;
991  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992    localedir=$ac_optarg ;;
993
994  -localstatedir | --localstatedir | --localstatedi | --localstated \
995  | --localstate | --localstat | --localsta | --localst | --locals)
996    ac_prev=localstatedir ;;
997  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999    localstatedir=$ac_optarg ;;
1000
1001  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002    ac_prev=mandir ;;
1003  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004    mandir=$ac_optarg ;;
1005
1006  -nfp | --nfp | --nf)
1007    # Obsolete; use --without-fp.
1008    with_fp=no ;;
1009
1010  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011  | --no-cr | --no-c | -n)
1012    no_create=yes ;;
1013
1014  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016    no_recursion=yes ;;
1017
1018  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020  | --oldin | --oldi | --old | --ol | --o)
1021    ac_prev=oldincludedir ;;
1022  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025    oldincludedir=$ac_optarg ;;
1026
1027  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028    ac_prev=prefix ;;
1029  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030    prefix=$ac_optarg ;;
1031
1032  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033  | --program-pre | --program-pr | --program-p)
1034    ac_prev=program_prefix ;;
1035  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037    program_prefix=$ac_optarg ;;
1038
1039  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040  | --program-suf | --program-su | --program-s)
1041    ac_prev=program_suffix ;;
1042  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044    program_suffix=$ac_optarg ;;
1045
1046  -program-transform-name | --program-transform-name \
1047  | --program-transform-nam | --program-transform-na \
1048  | --program-transform-n | --program-transform- \
1049  | --program-transform | --program-transfor \
1050  | --program-transfo | --program-transf \
1051  | --program-trans | --program-tran \
1052  | --progr-tra | --program-tr | --program-t)
1053    ac_prev=program_transform_name ;;
1054  -program-transform-name=* | --program-transform-name=* \
1055  | --program-transform-nam=* | --program-transform-na=* \
1056  | --program-transform-n=* | --program-transform-=* \
1057  | --program-transform=* | --program-transfor=* \
1058  | --program-transfo=* | --program-transf=* \
1059  | --program-trans=* | --program-tran=* \
1060  | --progr-tra=* | --program-tr=* | --program-t=*)
1061    program_transform_name=$ac_optarg ;;
1062
1063  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064    ac_prev=pdfdir ;;
1065  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066    pdfdir=$ac_optarg ;;
1067
1068  -psdir | --psdir | --psdi | --psd | --ps)
1069    ac_prev=psdir ;;
1070  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071    psdir=$ac_optarg ;;
1072
1073  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074  | -silent | --silent | --silen | --sile | --sil)
1075    silent=yes ;;
1076
1077  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078    ac_prev=sbindir ;;
1079  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080  | --sbi=* | --sb=*)
1081    sbindir=$ac_optarg ;;
1082
1083  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085  | --sharedst | --shareds | --shared | --share | --shar \
1086  | --sha | --sh)
1087    ac_prev=sharedstatedir ;;
1088  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091  | --sha=* | --sh=*)
1092    sharedstatedir=$ac_optarg ;;
1093
1094  -site | --site | --sit)
1095    ac_prev=site ;;
1096  -site=* | --site=* | --sit=*)
1097    site=$ac_optarg ;;
1098
1099  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100    ac_prev=srcdir ;;
1101  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102    srcdir=$ac_optarg ;;
1103
1104  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105  | --syscon | --sysco | --sysc | --sys | --sy)
1106    ac_prev=sysconfdir ;;
1107  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109    sysconfdir=$ac_optarg ;;
1110
1111  -target | --target | --targe | --targ | --tar | --ta | --t)
1112    ac_prev=target_alias ;;
1113  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114    target_alias=$ac_optarg ;;
1115
1116  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117    verbose=yes ;;
1118
1119  -version | --version | --versio | --versi | --vers | -V)
1120    ac_init_version=: ;;
1121
1122  -with-* | --with-*)
1123    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124    # Reject names that are not valid shell variable names.
1125    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126      as_fn_error $? "invalid package name: $ac_useropt"
1127    ac_useropt_orig=$ac_useropt
1128    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129    case $ac_user_opts in
1130      *"
1131"with_$ac_useropt"
1132"*) ;;
1133      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134	 ac_unrecognized_sep=', ';;
1135    esac
1136    eval with_$ac_useropt=\$ac_optarg ;;
1137
1138  -without-* | --without-*)
1139    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140    # Reject names that are not valid shell variable names.
1141    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142      as_fn_error $? "invalid package name: $ac_useropt"
1143    ac_useropt_orig=$ac_useropt
1144    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145    case $ac_user_opts in
1146      *"
1147"with_$ac_useropt"
1148"*) ;;
1149      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150	 ac_unrecognized_sep=', ';;
1151    esac
1152    eval with_$ac_useropt=no ;;
1153
1154  --x)
1155    # Obsolete; use --with-x.
1156    with_x=yes ;;
1157
1158  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159  | --x-incl | --x-inc | --x-in | --x-i)
1160    ac_prev=x_includes ;;
1161  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163    x_includes=$ac_optarg ;;
1164
1165  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167    ac_prev=x_libraries ;;
1168  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170    x_libraries=$ac_optarg ;;
1171
1172  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173Try \`$0 --help' for more information"
1174    ;;
1175
1176  *=*)
1177    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178    # Reject names that are not valid shell variable names.
1179    case $ac_envvar in #(
1180      '' | [0-9]* | *[!_$as_cr_alnum]* )
1181      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182    esac
1183    eval $ac_envvar=\$ac_optarg
1184    export $ac_envvar ;;
1185
1186  *)
1187    # FIXME: should be removed in autoconf 3.0.
1188    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192    ;;
1193
1194  esac
1195done
1196
1197if test -n "$ac_prev"; then
1198  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199  as_fn_error $? "missing argument to $ac_option"
1200fi
1201
1202if test -n "$ac_unrecognized_opts"; then
1203  case $enable_option_checking in
1204    no) ;;
1205    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207  esac
1208fi
1209
1210# Check all directory arguments for consistency.
1211for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212		datadir sysconfdir sharedstatedir localstatedir includedir \
1213		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214		libdir localedir mandir
1215do
1216  eval ac_val=\$$ac_var
1217  # Remove trailing slashes.
1218  case $ac_val in
1219    */ )
1220      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221      eval $ac_var=\$ac_val;;
1222  esac
1223  # Be sure to have absolute directory names.
1224  case $ac_val in
1225    [\\/$]* | ?:[\\/]* )  continue;;
1226    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227  esac
1228  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229done
1230
1231# There might be people who depend on the old broken behavior: `$host'
1232# used to hold the argument of --host etc.
1233# FIXME: To remove some day.
1234build=$build_alias
1235host=$host_alias
1236target=$target_alias
1237
1238# FIXME: To remove some day.
1239if test "x$host_alias" != x; then
1240  if test "x$build_alias" = x; then
1241    cross_compiling=maybe
1242  elif test "x$build_alias" != "x$host_alias"; then
1243    cross_compiling=yes
1244  fi
1245fi
1246
1247ac_tool_prefix=
1248test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250test "$silent" = yes && exec 6>/dev/null
1251
1252
1253ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254ac_ls_di=`ls -di .` &&
1255ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256  as_fn_error $? "working directory cannot be determined"
1257test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258  as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261# Find the source files, if location was not specified.
1262if test -z "$srcdir"; then
1263  ac_srcdir_defaulted=yes
1264  # Try the directory containing this script, then the parent directory.
1265  ac_confdir=`$as_dirname -- "$as_myself" ||
1266$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267	 X"$as_myself" : 'X\(//\)[^/]' \| \
1268	 X"$as_myself" : 'X\(//\)$' \| \
1269	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270$as_echo X"$as_myself" |
1271    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272	    s//\1/
1273	    q
1274	  }
1275	  /^X\(\/\/\)[^/].*/{
1276	    s//\1/
1277	    q
1278	  }
1279	  /^X\(\/\/\)$/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\).*/{
1284	    s//\1/
1285	    q
1286	  }
1287	  s/.*/./; q'`
1288  srcdir=$ac_confdir
1289  if test ! -r "$srcdir/$ac_unique_file"; then
1290    srcdir=..
1291  fi
1292else
1293  ac_srcdir_defaulted=no
1294fi
1295if test ! -r "$srcdir/$ac_unique_file"; then
1296  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298fi
1299ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300ac_abs_confdir=`(
1301	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302	pwd)`
1303# When building in place, set srcdir=.
1304if test "$ac_abs_confdir" = "$ac_pwd"; then
1305  srcdir=.
1306fi
1307# Remove unnecessary trailing slashes from srcdir.
1308# Double slashes in file names in object file debugging info
1309# mess up M-x gdb in Emacs.
1310case $srcdir in
1311*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312esac
1313for ac_var in $ac_precious_vars; do
1314  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315  eval ac_env_${ac_var}_value=\$${ac_var}
1316  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318done
1319
1320#
1321# Report the --help message.
1322#
1323if test "$ac_init_help" = "long"; then
1324  # Omit some internal or obsolete options to make the list less imposing.
1325  # This message is too long to be a string in the A/UX 3.1 sh.
1326  cat <<_ACEOF
1327\`configure' configures liblscp 0.9.4 to adapt to many kinds of systems.
1328
1329Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332VAR=VALUE.  See below for descriptions of some of the useful variables.
1333
1334Defaults for the options are specified in brackets.
1335
1336Configuration:
1337  -h, --help              display this help and exit
1338      --help=short        display options specific to this package
1339      --help=recursive    display the short help of all the included packages
1340  -V, --version           display version information and exit
1341  -q, --quiet, --silent   do not print \`checking ...' messages
1342      --cache-file=FILE   cache test results in FILE [disabled]
1343  -C, --config-cache      alias for \`--cache-file=config.cache'
1344  -n, --no-create         do not create output files
1345      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1346
1347Installation directories:
1348  --prefix=PREFIX         install architecture-independent files in PREFIX
1349                          @<:@@S|@ac_default_prefix@:>@
1350  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1351                          @<:@PREFIX@:>@
1352
1353By default, \`make install' will install all the files in
1354\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1355an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356for instance \`--prefix=\$HOME'.
1357
1358For better control, use the options below.
1359
1360Fine tuning of the installation directories:
1361  --bindir=DIR            user executables [EPREFIX/bin]
1362  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1363  --libexecdir=DIR        program executables [EPREFIX/libexec]
1364  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1365  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1366  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1367  --libdir=DIR            object code libraries [EPREFIX/lib]
1368  --includedir=DIR        C header files [PREFIX/include]
1369  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1370  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1371  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1372  --infodir=DIR           info documentation [DATAROOTDIR/info]
1373  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1374  --mandir=DIR            man documentation [DATAROOTDIR/man]
1375  --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/liblscp@:>@
1376  --htmldir=DIR           html documentation [DOCDIR]
1377  --dvidir=DIR            dvi documentation [DOCDIR]
1378  --pdfdir=DIR            pdf documentation [DOCDIR]
1379  --psdir=DIR             ps documentation [DOCDIR]
1380_ACEOF
1381
1382  cat <<\_ACEOF
1383
1384Program names:
1385  --program-prefix=PREFIX            prepend PREFIX to installed program names
1386  --program-suffix=SUFFIX            append SUFFIX to installed program names
1387  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1388
1389System types:
1390  --build=BUILD     configure for building on BUILD [guessed]
1391  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1392_ACEOF
1393fi
1394
1395if test -n "$ac_init_help"; then
1396  case $ac_init_help in
1397     short | recursive ) echo "Configuration of liblscp 0.9.4:";;
1398   esac
1399  cat <<\_ACEOF
1400
1401Optional Features:
1402  --disable-option-checking  ignore unrecognized --enable/--with options
1403  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1404  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1405  --enable-silent-rules   less verbose build output (undo: "make V=1")
1406  --disable-silent-rules  verbose build output (undo: "make V=0")
1407  --enable-debug          enable debugging (default=no)
1408  --enable-dependency-tracking
1409                          do not reject slow dependency extractors
1410  --disable-dependency-tracking
1411                          speeds up one-time build
1412  --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1413  --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1414  --enable-fast-install@<:@=PKGS@:>@
1415                          optimize for fast installation @<:@default=yes@:>@
1416  --disable-libtool-lock  avoid locking (might break parallel builds)
1417
1418Optional Packages:
1419  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1420  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1421  --with-pic@<:@=PKGS@:>@       try to use only PIC/non-PIC objects @<:@default=use
1422                          both@:>@
1423  --with-aix-soname=aix|svr4|both
1424                          shared library versioning (aka "SONAME") variant to
1425                          provide on AIX, @<:@default=aix@:>@.
1426  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1427  --with-sysroot@<:@=DIR@:>@    Search for dependent libraries within DIR (or the
1428                          compiler's sysroot if not specified).
1429
1430Some influential environment variables:
1431  CC          C compiler command
1432  CFLAGS      C compiler flags
1433  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1434              nonstandard directory <lib dir>
1435  LIBS        libraries to pass to the linker, e.g. -l<library>
1436  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1437              you have headers in a nonstandard directory <include dir>
1438  LT_SYS_LIBRARY_PATH
1439              User-defined run-time library search path.
1440  CPP         C preprocessor
1441
1442Use these variables to override the choices made by `configure' or to help
1443it to find libraries and programs with nonstandard names/locations.
1444
1445Report bugs to <rncbc@rncbc.org>.
1446_ACEOF
1447ac_status=$?
1448fi
1449
1450if test "$ac_init_help" = "recursive"; then
1451  # If there are subdirs, report their specific --help.
1452  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453    test -d "$ac_dir" ||
1454      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455      continue
1456    ac_builddir=.
1457
1458case "$ac_dir" in
1459.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460*)
1461  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462  # A ".." for each directory in $ac_dir_suffix.
1463  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464  case $ac_top_builddir_sub in
1465  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467  esac ;;
1468esac
1469ac_abs_top_builddir=$ac_pwd
1470ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471# for backward compatibility:
1472ac_top_builddir=$ac_top_build_prefix
1473
1474case $srcdir in
1475  .)  # We are building in place.
1476    ac_srcdir=.
1477    ac_top_srcdir=$ac_top_builddir_sub
1478    ac_abs_top_srcdir=$ac_pwd ;;
1479  [\\/]* | ?:[\\/]* )  # Absolute name.
1480    ac_srcdir=$srcdir$ac_dir_suffix;
1481    ac_top_srcdir=$srcdir
1482    ac_abs_top_srcdir=$srcdir ;;
1483  *) # Relative name.
1484    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485    ac_top_srcdir=$ac_top_build_prefix$srcdir
1486    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487esac
1488ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489
1490    cd "$ac_dir" || { ac_status=$?; continue; }
1491    # Check for guested configure.
1492    if test -f "$ac_srcdir/configure.gnu"; then
1493      echo &&
1494      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495    elif test -f "$ac_srcdir/configure"; then
1496      echo &&
1497      $SHELL "$ac_srcdir/configure" --help=recursive
1498    else
1499      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500    fi || ac_status=$?
1501    cd "$ac_pwd" || { ac_status=$?; break; }
1502  done
1503fi
1504
1505test -n "$ac_init_help" && exit $ac_status
1506if $ac_init_version; then
1507  cat <<\_ACEOF
1508liblscp configure 0.9.4
1509generated by GNU Autoconf 2.69
1510
1511Copyright (C) 2012 Free Software Foundation, Inc.
1512This configure script is free software; the Free Software Foundation
1513gives unlimited permission to copy, distribute and modify it.
1514_ACEOF
1515  exit
1516fi
1517
1518## ------------------------ ##
1519## Autoconf initialization. ##
1520## ------------------------ ##
1521
1522@%:@ ac_fn_c_try_compile LINENO
1523@%:@ --------------------------
1524@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1525ac_fn_c_try_compile ()
1526{
1527  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528  rm -f conftest.$ac_objext
1529  if { { ac_try="$ac_compile"
1530case "(($ac_try" in
1531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532  *) ac_try_echo=$ac_try;;
1533esac
1534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535$as_echo "$ac_try_echo"; } >&5
1536  (eval "$ac_compile") 2>conftest.err
1537  ac_status=$?
1538  if test -s conftest.err; then
1539    grep -v '^ *+' conftest.err >conftest.er1
1540    cat conftest.er1 >&5
1541    mv -f conftest.er1 conftest.err
1542  fi
1543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544  test $ac_status = 0; } && {
1545	 test -z "$ac_c_werror_flag" ||
1546	 test ! -s conftest.err
1547       } && test -s conftest.$ac_objext; then :
1548  ac_retval=0
1549else
1550  $as_echo "$as_me: failed program was:" >&5
1551sed 's/^/| /' conftest.$ac_ext >&5
1552
1553	ac_retval=1
1554fi
1555  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556  as_fn_set_status $ac_retval
1557
1558} @%:@ ac_fn_c_try_compile
1559
1560@%:@ ac_fn_c_try_link LINENO
1561@%:@ -----------------------
1562@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1563ac_fn_c_try_link ()
1564{
1565  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566  rm -f conftest.$ac_objext conftest$ac_exeext
1567  if { { ac_try="$ac_link"
1568case "(($ac_try" in
1569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570  *) ac_try_echo=$ac_try;;
1571esac
1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573$as_echo "$ac_try_echo"; } >&5
1574  (eval "$ac_link") 2>conftest.err
1575  ac_status=$?
1576  if test -s conftest.err; then
1577    grep -v '^ *+' conftest.err >conftest.er1
1578    cat conftest.er1 >&5
1579    mv -f conftest.er1 conftest.err
1580  fi
1581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582  test $ac_status = 0; } && {
1583	 test -z "$ac_c_werror_flag" ||
1584	 test ! -s conftest.err
1585       } && test -s conftest$ac_exeext && {
1586	 test "$cross_compiling" = yes ||
1587	 test -x conftest$ac_exeext
1588       }; then :
1589  ac_retval=0
1590else
1591  $as_echo "$as_me: failed program was:" >&5
1592sed 's/^/| /' conftest.$ac_ext >&5
1593
1594	ac_retval=1
1595fi
1596  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1597  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1598  # interfere with the next link command; also delete a directory that is
1599  # left behind by Apple's compiler.  We do this before executing the actions.
1600  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1601  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602  as_fn_set_status $ac_retval
1603
1604} @%:@ ac_fn_c_try_link
1605
1606@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1607@%:@ -------------------------------------------------------
1608@%:@ Tests whether HEADER exists and can be compiled using the include files in
1609@%:@ INCLUDES, setting the cache variable VAR accordingly.
1610ac_fn_c_check_header_compile ()
1611{
1612  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614$as_echo_n "checking for $2... " >&6; }
1615if eval \${$3+:} false; then :
1616  $as_echo_n "(cached) " >&6
1617else
1618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619/* end confdefs.h.  */
1620$4
1621@%:@include <$2>
1622_ACEOF
1623if ac_fn_c_try_compile "$LINENO"; then :
1624  eval "$3=yes"
1625else
1626  eval "$3=no"
1627fi
1628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629fi
1630eval ac_res=\$$3
1631	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632$as_echo "$ac_res" >&6; }
1633  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634
1635} @%:@ ac_fn_c_check_header_compile
1636
1637@%:@ ac_fn_c_try_cpp LINENO
1638@%:@ ----------------------
1639@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1640ac_fn_c_try_cpp ()
1641{
1642  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643  if { { ac_try="$ac_cpp conftest.$ac_ext"
1644case "(($ac_try" in
1645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646  *) ac_try_echo=$ac_try;;
1647esac
1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649$as_echo "$ac_try_echo"; } >&5
1650  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1651  ac_status=$?
1652  if test -s conftest.err; then
1653    grep -v '^ *+' conftest.err >conftest.er1
1654    cat conftest.er1 >&5
1655    mv -f conftest.er1 conftest.err
1656  fi
1657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658  test $ac_status = 0; } > conftest.i && {
1659	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1660	 test ! -s conftest.err
1661       }; then :
1662  ac_retval=0
1663else
1664  $as_echo "$as_me: failed program was:" >&5
1665sed 's/^/| /' conftest.$ac_ext >&5
1666
1667    ac_retval=1
1668fi
1669  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670  as_fn_set_status $ac_retval
1671
1672} @%:@ ac_fn_c_try_cpp
1673
1674@%:@ ac_fn_c_try_run LINENO
1675@%:@ ----------------------
1676@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1677@%:@ that executables *can* be run.
1678ac_fn_c_try_run ()
1679{
1680  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681  if { { ac_try="$ac_link"
1682case "(($ac_try" in
1683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684  *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688  (eval "$ac_link") 2>&5
1689  ac_status=$?
1690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1692  { { case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_try") 2>&5
1699  ac_status=$?
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; }; }; then :
1702  ac_retval=0
1703else
1704  $as_echo "$as_me: program exited with status $ac_status" >&5
1705       $as_echo "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708       ac_retval=$ac_status
1709fi
1710  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712  as_fn_set_status $ac_retval
1713
1714} @%:@ ac_fn_c_try_run
1715
1716@%:@ ac_fn_c_check_func LINENO FUNC VAR
1717@%:@ ----------------------------------
1718@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1719ac_fn_c_check_func ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723$as_echo_n "checking for $2... " >&6; }
1724if eval \${$3+:} false; then :
1725  $as_echo_n "(cached) " >&6
1726else
1727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728/* end confdefs.h.  */
1729/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1730   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1731#define $2 innocuous_$2
1732
1733/* System header to define __stub macros and hopefully few prototypes,
1734    which can conflict with char $2 (); below.
1735    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1736    <limits.h> exists even on freestanding compilers.  */
1737
1738#ifdef __STDC__
1739# include <limits.h>
1740#else
1741# include <assert.h>
1742#endif
1743
1744#undef $2
1745
1746/* Override any GCC internal prototype to avoid an error.
1747   Use char because int might match the return type of a GCC
1748   builtin and then its argument prototype would still apply.  */
1749#ifdef __cplusplus
1750extern "C"
1751#endif
1752char $2 ();
1753/* The GNU C library defines this for functions which it implements
1754    to always fail with ENOSYS.  Some functions are actually named
1755    something starting with __ and the normal name is an alias.  */
1756#if defined __stub_$2 || defined __stub___$2
1757choke me
1758#endif
1759
1760int
1761main ()
1762{
1763return $2 ();
1764  ;
1765  return 0;
1766}
1767_ACEOF
1768if ac_fn_c_try_link "$LINENO"; then :
1769  eval "$3=yes"
1770else
1771  eval "$3=no"
1772fi
1773rm -f core conftest.err conftest.$ac_objext \
1774    conftest$ac_exeext conftest.$ac_ext
1775fi
1776eval ac_res=\$$3
1777	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778$as_echo "$ac_res" >&6; }
1779  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781} @%:@ ac_fn_c_check_func
1782
1783@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1784@%:@ -------------------------------------------
1785@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
1786@%:@ variable VAR accordingly.
1787ac_fn_c_check_type ()
1788{
1789  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791$as_echo_n "checking for $2... " >&6; }
1792if eval \${$3+:} false; then :
1793  $as_echo_n "(cached) " >&6
1794else
1795  eval "$3=no"
1796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h.  */
1798$4
1799int
1800main ()
1801{
1802if (sizeof ($2))
1803	 return 0;
1804  ;
1805  return 0;
1806}
1807_ACEOF
1808if ac_fn_c_try_compile "$LINENO"; then :
1809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810/* end confdefs.h.  */
1811$4
1812int
1813main ()
1814{
1815if (sizeof (($2)))
1816	    return 0;
1817  ;
1818  return 0;
1819}
1820_ACEOF
1821if ac_fn_c_try_compile "$LINENO"; then :
1822
1823else
1824  eval "$3=yes"
1825fi
1826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827fi
1828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829fi
1830eval ac_res=\$$3
1831	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832$as_echo "$ac_res" >&6; }
1833  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834
1835} @%:@ ac_fn_c_check_type
1836
1837@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1838@%:@ -------------------------------------------------------
1839@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1840@%:@ the include files in INCLUDES and setting the cache variable VAR
1841@%:@ accordingly.
1842ac_fn_c_check_header_mongrel ()
1843{
1844  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845  if eval \${$3+:} false; then :
1846  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847$as_echo_n "checking for $2... " >&6; }
1848if eval \${$3+:} false; then :
1849  $as_echo_n "(cached) " >&6
1850fi
1851eval ac_res=\$$3
1852	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853$as_echo "$ac_res" >&6; }
1854else
1855  # Is the header compilable?
1856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1857$as_echo_n "checking $2 usability... " >&6; }
1858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859/* end confdefs.h.  */
1860$4
1861@%:@include <$2>
1862_ACEOF
1863if ac_fn_c_try_compile "$LINENO"; then :
1864  ac_header_compiler=yes
1865else
1866  ac_header_compiler=no
1867fi
1868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1870$as_echo "$ac_header_compiler" >&6; }
1871
1872# Is the header present?
1873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1874$as_echo_n "checking $2 presence... " >&6; }
1875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876/* end confdefs.h.  */
1877@%:@include <$2>
1878_ACEOF
1879if ac_fn_c_try_cpp "$LINENO"; then :
1880  ac_header_preproc=yes
1881else
1882  ac_header_preproc=no
1883fi
1884rm -f conftest.err conftest.i conftest.$ac_ext
1885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1886$as_echo "$ac_header_preproc" >&6; }
1887
1888# So?  What about this header?
1889case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1890  yes:no: )
1891    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1892$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1893    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1894$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1895    ;;
1896  no:yes:* )
1897    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1898$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1899    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1900$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1901    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1902$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1903    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1904$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1905    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1906$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1907( $as_echo "## ------------------------------ ##
1908## Report this to rncbc@rncbc.org ##
1909## ------------------------------ ##"
1910     ) | sed "s/^/$as_me: WARNING:     /" >&2
1911    ;;
1912esac
1913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914$as_echo_n "checking for $2... " >&6; }
1915if eval \${$3+:} false; then :
1916  $as_echo_n "(cached) " >&6
1917else
1918  eval "$3=\$ac_header_compiler"
1919fi
1920eval ac_res=\$$3
1921	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922$as_echo "$ac_res" >&6; }
1923fi
1924  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926} @%:@ ac_fn_c_check_header_mongrel
1927cat >config.log <<_ACEOF
1928This file contains any messages produced by compilers while
1929running configure, to aid debugging if configure makes a mistake.
1930
1931It was created by liblscp $as_me 0.9.4, which was
1932generated by GNU Autoconf 2.69.  Invocation command line was
1933
1934  $ $0 $@
1935
1936_ACEOF
1937exec 5>>config.log
1938{
1939cat <<_ASUNAME
1940## --------- ##
1941## Platform. ##
1942## --------- ##
1943
1944hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1945uname -m = `(uname -m) 2>/dev/null || echo unknown`
1946uname -r = `(uname -r) 2>/dev/null || echo unknown`
1947uname -s = `(uname -s) 2>/dev/null || echo unknown`
1948uname -v = `(uname -v) 2>/dev/null || echo unknown`
1949
1950/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1951/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1952
1953/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1954/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1955/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1956/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1957/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1958/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1959/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1960
1961_ASUNAME
1962
1963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964for as_dir in $PATH
1965do
1966  IFS=$as_save_IFS
1967  test -z "$as_dir" && as_dir=.
1968    $as_echo "PATH: $as_dir"
1969  done
1970IFS=$as_save_IFS
1971
1972} >&5
1973
1974cat >&5 <<_ACEOF
1975
1976
1977## ----------- ##
1978## Core tests. ##
1979## ----------- ##
1980
1981_ACEOF
1982
1983
1984# Keep a trace of the command line.
1985# Strip out --no-create and --no-recursion so they do not pile up.
1986# Strip out --silent because we don't want to record it for future runs.
1987# Also quote any args containing shell meta-characters.
1988# Make two passes to allow for proper duplicate-argument suppression.
1989ac_configure_args=
1990ac_configure_args0=
1991ac_configure_args1=
1992ac_must_keep_next=false
1993for ac_pass in 1 2
1994do
1995  for ac_arg
1996  do
1997    case $ac_arg in
1998    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1999    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2000    | -silent | --silent | --silen | --sile | --sil)
2001      continue ;;
2002    *\'*)
2003      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2004    esac
2005    case $ac_pass in
2006    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2007    2)
2008      as_fn_append ac_configure_args1 " '$ac_arg'"
2009      if test $ac_must_keep_next = true; then
2010	ac_must_keep_next=false # Got value, back to normal.
2011      else
2012	case $ac_arg in
2013	  *=* | --config-cache | -C | -disable-* | --disable-* \
2014	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2015	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2016	  | -with-* | --with-* | -without-* | --without-* | --x)
2017	    case "$ac_configure_args0 " in
2018	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2019	    esac
2020	    ;;
2021	  -* ) ac_must_keep_next=true ;;
2022	esac
2023      fi
2024      as_fn_append ac_configure_args " '$ac_arg'"
2025      ;;
2026    esac
2027  done
2028done
2029{ ac_configure_args0=; unset ac_configure_args0;}
2030{ ac_configure_args1=; unset ac_configure_args1;}
2031
2032# When interrupted or exit'd, cleanup temporary files, and complete
2033# config.log.  We remove comments because anyway the quotes in there
2034# would cause problems or look ugly.
2035# WARNING: Use '\'' to represent an apostrophe within the trap.
2036# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2037trap 'exit_status=$?
2038  # Save into config.log some information that might help in debugging.
2039  {
2040    echo
2041
2042    $as_echo "## ---------------- ##
2043## Cache variables. ##
2044## ---------------- ##"
2045    echo
2046    # The following way of writing the cache mishandles newlines in values,
2047(
2048  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2049    eval ac_val=\$$ac_var
2050    case $ac_val in #(
2051    *${as_nl}*)
2052      case $ac_var in #(
2053      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2054$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2055      esac
2056      case $ac_var in #(
2057      _ | IFS | as_nl) ;; #(
2058      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2059      *) { eval $ac_var=; unset $ac_var;} ;;
2060      esac ;;
2061    esac
2062  done
2063  (set) 2>&1 |
2064    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2065    *${as_nl}ac_space=\ *)
2066      sed -n \
2067	"s/'\''/'\''\\\\'\'''\''/g;
2068	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2069      ;; #(
2070    *)
2071      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2072      ;;
2073    esac |
2074    sort
2075)
2076    echo
2077
2078    $as_echo "## ----------------- ##
2079## Output variables. ##
2080## ----------------- ##"
2081    echo
2082    for ac_var in $ac_subst_vars
2083    do
2084      eval ac_val=\$$ac_var
2085      case $ac_val in
2086      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2087      esac
2088      $as_echo "$ac_var='\''$ac_val'\''"
2089    done | sort
2090    echo
2091
2092    if test -n "$ac_subst_files"; then
2093      $as_echo "## ------------------- ##
2094## File substitutions. ##
2095## ------------------- ##"
2096      echo
2097      for ac_var in $ac_subst_files
2098      do
2099	eval ac_val=\$$ac_var
2100	case $ac_val in
2101	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2102	esac
2103	$as_echo "$ac_var='\''$ac_val'\''"
2104      done | sort
2105      echo
2106    fi
2107
2108    if test -s confdefs.h; then
2109      $as_echo "## ----------- ##
2110## confdefs.h. ##
2111## ----------- ##"
2112      echo
2113      cat confdefs.h
2114      echo
2115    fi
2116    test "$ac_signal" != 0 &&
2117      $as_echo "$as_me: caught signal $ac_signal"
2118    $as_echo "$as_me: exit $exit_status"
2119  } >&5
2120  rm -f core *.core core.conftest.* &&
2121    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2122    exit $exit_status
2123' 0
2124for ac_signal in 1 2 13 15; do
2125  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2126done
2127ac_signal=0
2128
2129# confdefs.h avoids OS command line length limits that DEFS can exceed.
2130rm -f -r conftest* confdefs.h
2131
2132$as_echo "/* confdefs.h */" > confdefs.h
2133
2134# Predefined preprocessor variables.
2135
2136cat >>confdefs.h <<_ACEOF
2137@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2138_ACEOF
2139
2140cat >>confdefs.h <<_ACEOF
2141@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2142_ACEOF
2143
2144cat >>confdefs.h <<_ACEOF
2145@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2146_ACEOF
2147
2148cat >>confdefs.h <<_ACEOF
2149@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2150_ACEOF
2151
2152cat >>confdefs.h <<_ACEOF
2153@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2154_ACEOF
2155
2156cat >>confdefs.h <<_ACEOF
2157@%:@define PACKAGE_URL "$PACKAGE_URL"
2158_ACEOF
2159
2160
2161# Let the site file select an alternate cache file if it wants to.
2162# Prefer an explicitly selected file to automatically selected ones.
2163ac_site_file1=NONE
2164ac_site_file2=NONE
2165if test -n "$CONFIG_SITE"; then
2166  # We do not want a PATH search for config.site.
2167  case $CONFIG_SITE in @%:@((
2168    -*)  ac_site_file1=./$CONFIG_SITE;;
2169    */*) ac_site_file1=$CONFIG_SITE;;
2170    *)   ac_site_file1=./$CONFIG_SITE;;
2171  esac
2172elif test "x$prefix" != xNONE; then
2173  ac_site_file1=$prefix/share/config.site
2174  ac_site_file2=$prefix/etc/config.site
2175else
2176  ac_site_file1=$ac_default_prefix/share/config.site
2177  ac_site_file2=$ac_default_prefix/etc/config.site
2178fi
2179for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2180do
2181  test "x$ac_site_file" = xNONE && continue
2182  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2183    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2184$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2185    sed 's/^/| /' "$ac_site_file" >&5
2186    . "$ac_site_file" \
2187      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2189as_fn_error $? "failed to load site script $ac_site_file
2190See \`config.log' for more details" "$LINENO" 5; }
2191  fi
2192done
2193
2194if test -r "$cache_file"; then
2195  # Some versions of bash will fail to source /dev/null (special files
2196  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2197  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2198    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2199$as_echo "$as_me: loading cache $cache_file" >&6;}
2200    case $cache_file in
2201      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2202      *)                      . "./$cache_file";;
2203    esac
2204  fi
2205else
2206  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2207$as_echo "$as_me: creating cache $cache_file" >&6;}
2208  >$cache_file
2209fi
2210
2211# Check that the precious variables saved in the cache have kept the same
2212# value.
2213ac_cache_corrupted=false
2214for ac_var in $ac_precious_vars; do
2215  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2216  eval ac_new_set=\$ac_env_${ac_var}_set
2217  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2218  eval ac_new_val=\$ac_env_${ac_var}_value
2219  case $ac_old_set,$ac_new_set in
2220    set,)
2221      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2222$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2223      ac_cache_corrupted=: ;;
2224    ,set)
2225      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2226$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2227      ac_cache_corrupted=: ;;
2228    ,);;
2229    *)
2230      if test "x$ac_old_val" != "x$ac_new_val"; then
2231	# differences in whitespace do not lead to failure.
2232	ac_old_val_w=`echo x $ac_old_val`
2233	ac_new_val_w=`echo x $ac_new_val`
2234	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2235	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2236$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2237	  ac_cache_corrupted=:
2238	else
2239	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2240$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2241	  eval $ac_var=\$ac_old_val
2242	fi
2243	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2244$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2245	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2246$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2247      fi;;
2248  esac
2249  # Pass precious variables to config.status.
2250  if test "$ac_new_set" = set; then
2251    case $ac_new_val in
2252    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2253    *) ac_arg=$ac_var=$ac_new_val ;;
2254    esac
2255    case " $ac_configure_args " in
2256      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2257      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2258    esac
2259  fi
2260done
2261if $ac_cache_corrupted; then
2262  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2264  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2265$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2266  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2267fi
2268## -------------------- ##
2269## Main body of script. ##
2270## -------------------- ##
2271
2272ac_ext=c
2273ac_cpp='$CPP $CPPFLAGS'
2274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2276ac_compiler_gnu=$ac_cv_c_compiler_gnu
2277
2278
2279
2280
2281ac_config_headers="$ac_config_headers src/config.h"
2282
2283
2284
2285am__api_version='1.16'
2286
2287ac_aux_dir=
2288for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2289  if test -f "$ac_dir/install-sh"; then
2290    ac_aux_dir=$ac_dir
2291    ac_install_sh="$ac_aux_dir/install-sh -c"
2292    break
2293  elif test -f "$ac_dir/install.sh"; then
2294    ac_aux_dir=$ac_dir
2295    ac_install_sh="$ac_aux_dir/install.sh -c"
2296    break
2297  elif test -f "$ac_dir/shtool"; then
2298    ac_aux_dir=$ac_dir
2299    ac_install_sh="$ac_aux_dir/shtool install -c"
2300    break
2301  fi
2302done
2303if test -z "$ac_aux_dir"; then
2304  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2305fi
2306
2307# These three variables are undocumented and unsupported,
2308# and are intended to be withdrawn in a future Autoconf release.
2309# They can cause serious problems if a builder's source tree is in a directory
2310# whose full name contains unusual characters.
2311ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2312ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2313ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2314
2315
2316# Find a good install program.  We prefer a C program (faster),
2317# so one script is as good as another.  But avoid the broken or
2318# incompatible versions:
2319# SysV /etc/install, /usr/sbin/install
2320# SunOS /usr/etc/install
2321# IRIX /sbin/install
2322# AIX /bin/install
2323# AmigaOS /C/install, which installs bootblocks on floppy discs
2324# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2325# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2326# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2327# OS/2's system install, which has a completely different semantic
2328# ./install, which can be erroneously created by make from ./install.sh.
2329# Reject install programs that cannot install multiple files.
2330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2331$as_echo_n "checking for a BSD-compatible install... " >&6; }
2332if test -z "$INSTALL"; then
2333if ${ac_cv_path_install+:} false; then :
2334  $as_echo_n "(cached) " >&6
2335else
2336  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337for as_dir in $PATH
2338do
2339  IFS=$as_save_IFS
2340  test -z "$as_dir" && as_dir=.
2341    # Account for people who put trailing slashes in PATH elements.
2342case $as_dir/ in @%:@((
2343  ./ | .// | /[cC]/* | \
2344  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2345  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2346  /usr/ucb/* ) ;;
2347  *)
2348    # OSF1 and SCO ODT 3.0 have their own names for install.
2349    # Don't use installbsd from OSF since it installs stuff as root
2350    # by default.
2351    for ac_prog in ginstall scoinst install; do
2352      for ac_exec_ext in '' $ac_executable_extensions; do
2353	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2354	  if test $ac_prog = install &&
2355	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2356	    # AIX install.  It has an incompatible calling convention.
2357	    :
2358	  elif test $ac_prog = install &&
2359	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2360	    # program-specific install script used by HP pwplus--don't use.
2361	    :
2362	  else
2363	    rm -rf conftest.one conftest.two conftest.dir
2364	    echo one > conftest.one
2365	    echo two > conftest.two
2366	    mkdir conftest.dir
2367	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2368	      test -s conftest.one && test -s conftest.two &&
2369	      test -s conftest.dir/conftest.one &&
2370	      test -s conftest.dir/conftest.two
2371	    then
2372	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2373	      break 3
2374	    fi
2375	  fi
2376	fi
2377      done
2378    done
2379    ;;
2380esac
2381
2382  done
2383IFS=$as_save_IFS
2384
2385rm -rf conftest.one conftest.two conftest.dir
2386
2387fi
2388  if test "${ac_cv_path_install+set}" = set; then
2389    INSTALL=$ac_cv_path_install
2390  else
2391    # As a last resort, use the slow shell script.  Don't cache a
2392    # value for INSTALL within a source directory, because that will
2393    # break other packages using the cache if that directory is
2394    # removed, or if the value is a relative name.
2395    INSTALL=$ac_install_sh
2396  fi
2397fi
2398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2399$as_echo "$INSTALL" >&6; }
2400
2401# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2402# It thinks the first close brace ends the variable substitution.
2403test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2404
2405test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2406
2407test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2408
2409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2410$as_echo_n "checking whether build environment is sane... " >&6; }
2411# Reject unsafe characters in $srcdir or the absolute working directory
2412# name.  Accept space and tab only in the latter.
2413am_lf='
2414'
2415case `pwd` in
2416  *[\\\"\#\$\&\'\`$am_lf]*)
2417    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2418esac
2419case $srcdir in
2420  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2421    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2422esac
2423
2424# Do 'set' in a subshell so we don't clobber the current shell's
2425# arguments.  Must try -L first in case configure is actually a
2426# symlink; some systems play weird games with the mod time of symlinks
2427# (eg FreeBSD returns the mod time of the symlink's containing
2428# directory).
2429if (
2430   am_has_slept=no
2431   for am_try in 1 2; do
2432     echo "timestamp, slept: $am_has_slept" > conftest.file
2433     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2434     if test "$*" = "X"; then
2435	# -L didn't work.
2436	set X `ls -t "$srcdir/configure" conftest.file`
2437     fi
2438     if test "$*" != "X $srcdir/configure conftest.file" \
2439	&& test "$*" != "X conftest.file $srcdir/configure"; then
2440
2441	# If neither matched, then we have a broken ls.  This can happen
2442	# if, for instance, CONFIG_SHELL is bash and it inherits a
2443	# broken ls alias from the environment.  This has actually
2444	# happened.  Such a system could not be considered "sane".
2445	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2446  alias in your environment" "$LINENO" 5
2447     fi
2448     if test "$2" = conftest.file || test $am_try -eq 2; then
2449       break
2450     fi
2451     # Just in case.
2452     sleep 1
2453     am_has_slept=yes
2454   done
2455   test "$2" = conftest.file
2456   )
2457then
2458   # Ok.
2459   :
2460else
2461   as_fn_error $? "newly created file is older than distributed files!
2462Check your system clock" "$LINENO" 5
2463fi
2464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2465$as_echo "yes" >&6; }
2466# If we didn't sleep, we still need to ensure time stamps of config.status and
2467# generated files are strictly newer.
2468am_sleep_pid=
2469if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2470  ( sleep 1 ) &
2471  am_sleep_pid=$!
2472fi
2473
2474rm -f conftest.file
2475
2476test "$program_prefix" != NONE &&
2477  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2478# Use a double $ so make ignores it.
2479test "$program_suffix" != NONE &&
2480  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2481# Double any \ or $.
2482# By default was `s,x,x', remove it if useless.
2483ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2484program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2485
2486# Expand $ac_aux_dir to an absolute path.
2487am_aux_dir=`cd "$ac_aux_dir" && pwd`
2488
2489if test x"${MISSING+set}" != xset; then
2490  MISSING="\${SHELL} '$am_aux_dir/missing'"
2491fi
2492# Use eval to expand $SHELL
2493if eval "$MISSING --is-lightweight"; then
2494  am_missing_run="$MISSING "
2495else
2496  am_missing_run=
2497  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2498$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2499fi
2500
2501if test x"${install_sh+set}" != xset; then
2502  case $am_aux_dir in
2503  *\ * | *\	*)
2504    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2505  *)
2506    install_sh="\${SHELL} $am_aux_dir/install-sh"
2507  esac
2508fi
2509
2510# Installed binaries are usually stripped using 'strip' when the user
2511# run "make install-strip".  However 'strip' might not be the right
2512# tool to use in cross-compilation environments, therefore Automake
2513# will honor the 'STRIP' environment variable to overrule this program.
2514if test "$cross_compiling" != no; then
2515  if test -n "$ac_tool_prefix"; then
2516  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2517set dummy ${ac_tool_prefix}strip; ac_word=$2
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519$as_echo_n "checking for $ac_word... " >&6; }
2520if ${ac_cv_prog_STRIP+:} false; then :
2521  $as_echo_n "(cached) " >&6
2522else
2523  if test -n "$STRIP"; then
2524  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2525else
2526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527for as_dir in $PATH
2528do
2529  IFS=$as_save_IFS
2530  test -z "$as_dir" && as_dir=.
2531    for ac_exec_ext in '' $ac_executable_extensions; do
2532  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2533    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2534    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2535    break 2
2536  fi
2537done
2538  done
2539IFS=$as_save_IFS
2540
2541fi
2542fi
2543STRIP=$ac_cv_prog_STRIP
2544if test -n "$STRIP"; then
2545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2546$as_echo "$STRIP" >&6; }
2547else
2548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549$as_echo "no" >&6; }
2550fi
2551
2552
2553fi
2554if test -z "$ac_cv_prog_STRIP"; then
2555  ac_ct_STRIP=$STRIP
2556  # Extract the first word of "strip", so it can be a program name with args.
2557set dummy strip; ac_word=$2
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559$as_echo_n "checking for $ac_word... " >&6; }
2560if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2561  $as_echo_n "(cached) " >&6
2562else
2563  if test -n "$ac_ct_STRIP"; then
2564  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2565else
2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569  IFS=$as_save_IFS
2570  test -z "$as_dir" && as_dir=.
2571    for ac_exec_ext in '' $ac_executable_extensions; do
2572  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2573    ac_cv_prog_ac_ct_STRIP="strip"
2574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575    break 2
2576  fi
2577done
2578  done
2579IFS=$as_save_IFS
2580
2581fi
2582fi
2583ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2584if test -n "$ac_ct_STRIP"; then
2585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2586$as_echo "$ac_ct_STRIP" >&6; }
2587else
2588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589$as_echo "no" >&6; }
2590fi
2591
2592  if test "x$ac_ct_STRIP" = x; then
2593    STRIP=":"
2594  else
2595    case $cross_compiling:$ac_tool_warned in
2596yes:)
2597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2599ac_tool_warned=yes ;;
2600esac
2601    STRIP=$ac_ct_STRIP
2602  fi
2603else
2604  STRIP="$ac_cv_prog_STRIP"
2605fi
2606
2607fi
2608INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2609
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2611$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2612if test -z "$MKDIR_P"; then
2613  if ${ac_cv_path_mkdir+:} false; then :
2614  $as_echo_n "(cached) " >&6
2615else
2616  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2618do
2619  IFS=$as_save_IFS
2620  test -z "$as_dir" && as_dir=.
2621    for ac_prog in mkdir gmkdir; do
2622	 for ac_exec_ext in '' $ac_executable_extensions; do
2623	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2624	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2625	     'mkdir (GNU coreutils) '* | \
2626	     'mkdir (coreutils) '* | \
2627	     'mkdir (fileutils) '4.1*)
2628	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2629	       break 3;;
2630	   esac
2631	 done
2632       done
2633  done
2634IFS=$as_save_IFS
2635
2636fi
2637
2638  test -d ./--version && rmdir ./--version
2639  if test "${ac_cv_path_mkdir+set}" = set; then
2640    MKDIR_P="$ac_cv_path_mkdir -p"
2641  else
2642    # As a last resort, use the slow shell script.  Don't cache a
2643    # value for MKDIR_P within a source directory, because that will
2644    # break other packages using the cache if that directory is
2645    # removed, or if the value is a relative name.
2646    MKDIR_P="$ac_install_sh -d"
2647  fi
2648fi
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2650$as_echo "$MKDIR_P" >&6; }
2651
2652for ac_prog in gawk mawk nawk awk
2653do
2654  # Extract the first word of "$ac_prog", so it can be a program name with args.
2655set dummy $ac_prog; ac_word=$2
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2657$as_echo_n "checking for $ac_word... " >&6; }
2658if ${ac_cv_prog_AWK+:} false; then :
2659  $as_echo_n "(cached) " >&6
2660else
2661  if test -n "$AWK"; then
2662  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2663else
2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
2667  IFS=$as_save_IFS
2668  test -z "$as_dir" && as_dir=.
2669    for ac_exec_ext in '' $ac_executable_extensions; do
2670  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2671    ac_cv_prog_AWK="$ac_prog"
2672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2673    break 2
2674  fi
2675done
2676  done
2677IFS=$as_save_IFS
2678
2679fi
2680fi
2681AWK=$ac_cv_prog_AWK
2682if test -n "$AWK"; then
2683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2684$as_echo "$AWK" >&6; }
2685else
2686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687$as_echo "no" >&6; }
2688fi
2689
2690
2691  test -n "$AWK" && break
2692done
2693
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2695$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2696set x ${MAKE-make}
2697ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2698if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2699  $as_echo_n "(cached) " >&6
2700else
2701  cat >conftest.make <<\_ACEOF
2702SHELL = /bin/sh
2703all:
2704	@echo '@@@%%%=$(MAKE)=@@@%%%'
2705_ACEOF
2706# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2707case `${MAKE-make} -f conftest.make 2>/dev/null` in
2708  *@@@%%%=?*=@@@%%%*)
2709    eval ac_cv_prog_make_${ac_make}_set=yes;;
2710  *)
2711    eval ac_cv_prog_make_${ac_make}_set=no;;
2712esac
2713rm -f conftest.make
2714fi
2715if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2717$as_echo "yes" >&6; }
2718  SET_MAKE=
2719else
2720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721$as_echo "no" >&6; }
2722  SET_MAKE="MAKE=${MAKE-make}"
2723fi
2724
2725rm -rf .tst 2>/dev/null
2726mkdir .tst 2>/dev/null
2727if test -d .tst; then
2728  am__leading_dot=.
2729else
2730  am__leading_dot=_
2731fi
2732rmdir .tst 2>/dev/null
2733
2734@%:@ Check whether --enable-silent-rules was given.
2735if test "${enable_silent_rules+set}" = set; then :
2736  enableval=$enable_silent_rules;
2737fi
2738
2739case $enable_silent_rules in @%:@ (((
2740  yes) AM_DEFAULT_VERBOSITY=0;;
2741   no) AM_DEFAULT_VERBOSITY=1;;
2742    *) AM_DEFAULT_VERBOSITY=1;;
2743esac
2744am_make=${MAKE-make}
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2746$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2747if ${am_cv_make_support_nested_variables+:} false; then :
2748  $as_echo_n "(cached) " >&6
2749else
2750  if $as_echo 'TRUE=$(BAR$(V))
2751BAR0=false
2752BAR1=true
2753V=1
2754am__doit:
2755	@$(TRUE)
2756.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2757  am_cv_make_support_nested_variables=yes
2758else
2759  am_cv_make_support_nested_variables=no
2760fi
2761fi
2762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2763$as_echo "$am_cv_make_support_nested_variables" >&6; }
2764if test $am_cv_make_support_nested_variables = yes; then
2765    AM_V='$(V)'
2766  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2767else
2768  AM_V=$AM_DEFAULT_VERBOSITY
2769  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2770fi
2771AM_BACKSLASH='\'
2772
2773if test "`cd $srcdir && pwd`" != "`pwd`"; then
2774  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2775  # is not polluted with repeated "-I."
2776  am__isrc=' -I$(srcdir)'
2777  # test to see if srcdir already configured
2778  if test -f $srcdir/config.status; then
2779    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2780  fi
2781fi
2782
2783# test whether we have cygpath
2784if test -z "$CYGPATH_W"; then
2785  if (cygpath --version) >/dev/null 2>/dev/null; then
2786    CYGPATH_W='cygpath -w'
2787  else
2788    CYGPATH_W=echo
2789  fi
2790fi
2791
2792
2793# Define the identity of the package.
2794 PACKAGE='liblscp'
2795 VERSION='0.9.4'
2796
2797
2798cat >>confdefs.h <<_ACEOF
2799@%:@define PACKAGE "$PACKAGE"
2800_ACEOF
2801
2802
2803cat >>confdefs.h <<_ACEOF
2804@%:@define VERSION "$VERSION"
2805_ACEOF
2806
2807# Some tools Automake needs.
2808
2809ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2810
2811
2812AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2813
2814
2815AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2816
2817
2818AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2819
2820
2821MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2822
2823# For better backward compatibility.  To be removed once Automake 1.9.x
2824# dies out for good.  For more background, see:
2825# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2826# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2827mkdir_p='$(MKDIR_P)'
2828
2829# We need awk for the "check" target (and possibly the TAP driver).  The
2830# system "awk" is bad on some platforms.
2831# Always define AMTAR for backward compatibility.  Yes, it's still used
2832# in the wild :-(  We should find a proper way to deprecate it ...
2833AMTAR='$${TAR-tar}'
2834
2835
2836# We'll loop over all known methods to create a tar archive until one works.
2837_am_tools='gnutar  pax cpio none'
2838
2839am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2840
2841
2842
2843
2844
2845
2846# POSIX will say in a future version that running "rm -f" with no argument
2847# is OK; and we want to be able to make that assumption in our Makefile
2848# recipes.  So use an aggressive probe to check that the usage we want is
2849# actually supported "in the wild" to an acceptable degree.
2850# See automake bug#10828.
2851# To make any issue more visible, cause the running configure to be aborted
2852# by default if the 'rm' program in use doesn't match our expectations; the
2853# user can still override this though.
2854if rm -f && rm -fr && rm -rf; then : OK; else
2855  cat >&2 <<'END'
2856Oops!
2857
2858Your 'rm' program seems unable to run without file operands specified
2859on the command line, even when the '-f' option is present.  This is contrary
2860to the behaviour of most rm programs out there, and not conforming with
2861the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2862
2863Please tell bug-automake@gnu.org about your system, including the value
2864of your $PATH and any error possibly output before this message.  This
2865can help us improve future automake versions.
2866
2867END
2868  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2869    echo 'Configuration will proceed anyway, since you have set the' >&2
2870    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2871    echo >&2
2872  else
2873    cat >&2 <<'END'
2874Aborting the configuration process, to ensure you take notice of the issue.
2875
2876You can download and install GNU coreutils to get an 'rm' implementation
2877that behaves properly: <https://www.gnu.org/software/coreutils/>.
2878
2879If you want to complete the configuration process using your problematic
2880'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2881to "yes", and re-run configure.
2882
2883END
2884    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2885  fi
2886fi
2887
2888
2889#------------------------------------------------------------------------------------
2890# Rules for library version information:
2891#
2892#  1. Start with version information of `0:0:0' for each libtool library.
2893#  2. Update the version information only immediately before a public release of
2894#     your software. More frequent updates are unnecessary, and only guarantee
2895#     that the current interface number gets larger faster.
2896#  3. If the library source code has changed at all since the last update, then
2897#     increment revision (`c:r:a' becomes `c:r+1:a').
2898#  4. If any interfaces have been added, removed, or changed since the last update,
2899#     increment current, and set revision to 0.
2900#  5. If any interfaces have been added since the last public release, then increment
2901#     age.
2902#  6. If any interfaces have been removed since the last public release, then set age
2903#     to 0.
2904
2905SHARED_VERSION_INFO="6:4:0"
2906
2907
2908
2909# Build version string.
2910if ${ac_cv_build_version+:} false; then :
2911  $as_echo_n "(cached) " >&6
2912else
2913
2914   ac_cv_build_version=$(git describe --tags --dirty --abbrev=6 2>/dev/null)
2915   if test -n "$ac_cv_build_version"; then
2916      ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/^[^0-9]\+//')
2917      ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/^1_//')
2918      ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/^[_vV]\+//')
2919      ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/-g/git./')
2920      ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/[_|-]/./g')
2921      ac_cv_build_version_extra=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
2922      if test "x$ac_cv_build_version_extra" != "xmaster"; then
2923         ac_cv_build_version="$ac_cv_build_version [$ac_cv_build_version_extra]"
2924      fi
2925   else
2926      ac_cv_build_version=$PACKAGE_VERSION
2927   fi
2928
2929fi
2930
2931ac_build_version="$ac_cv_build_version"
2932
2933cat >>confdefs.h <<_ACEOF
2934@%:@define CONFIG_BUILD_VERSION "$ac_build_version"
2935_ACEOF
2936
2937
2938# Sanitized version string.
2939if ${ac_cv_version+:} false; then :
2940  $as_echo_n "(cached) " >&6
2941else
2942
2943   ac_cv_version=$(echo $PACKAGE_VERSION | sed -r 's/^([0-9|\.]+).*$/\1/')
2944
2945fi
2946
2947ac_version="$ac_cv_version"
2948
2949cat >>confdefs.h <<_ACEOF
2950@%:@define CONFIG_VERSION "$ac_version"
2951_ACEOF
2952
2953
2954
2955# Set default installation prefix.
2956
2957if test "x$prefix" = "xNONE"; then
2958   prefix=$ac_default_prefix
2959fi
2960if test "x$exec_prefix" = "xNONE"; then
2961   exec_prefix=$prefix
2962fi
2963eval ac_prefix=$prefix
2964
2965
2966cat >>confdefs.h <<_ACEOF
2967@%:@define CONFIG_PREFIX "$ac_prefix"
2968_ACEOF
2969
2970
2971# Set default installation directories.
2972eval ac_libdir=$libdir
2973
2974
2975cat >>confdefs.h <<_ACEOF
2976@%:@define CONFIG_LIBDIR "$ac_libdir"
2977_ACEOF
2978
2979
2980eval ac_includedir=$includedir
2981
2982
2983cat >>confdefs.h <<_ACEOF
2984@%:@define CONFIG_INCLUDEDIR "$ac_includedir"
2985_ACEOF
2986
2987
2988# Enable debugging argument option.
2989@%:@ Check whether --enable-debug was given.
2990if test "${enable_debug+set}" = set; then :
2991  enableval=$enable_debug; ac_debug="$enableval"
2992fi
2993
2994if test "x$ac_debug" = "xyes"; then
2995
2996$as_echo "@%:@define CONFIG_DEBUG 1" >>confdefs.h
2997
2998fi
2999
3000# Checks for programs.
3001ac_ext=c
3002ac_cpp='$CPP $CPPFLAGS'
3003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006if test -n "$ac_tool_prefix"; then
3007  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3008set dummy ${ac_tool_prefix}gcc; ac_word=$2
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010$as_echo_n "checking for $ac_word... " >&6; }
3011if ${ac_cv_prog_CC+:} false; then :
3012  $as_echo_n "(cached) " >&6
3013else
3014  if test -n "$CC"; then
3015  ac_cv_prog_CC="$CC" # Let the user override the test.
3016else
3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018for as_dir in $PATH
3019do
3020  IFS=$as_save_IFS
3021  test -z "$as_dir" && as_dir=.
3022    for ac_exec_ext in '' $ac_executable_extensions; do
3023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026    break 2
3027  fi
3028done
3029  done
3030IFS=$as_save_IFS
3031
3032fi
3033fi
3034CC=$ac_cv_prog_CC
3035if test -n "$CC"; then
3036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3037$as_echo "$CC" >&6; }
3038else
3039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040$as_echo "no" >&6; }
3041fi
3042
3043
3044fi
3045if test -z "$ac_cv_prog_CC"; then
3046  ac_ct_CC=$CC
3047  # Extract the first word of "gcc", so it can be a program name with args.
3048set dummy gcc; ac_word=$2
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050$as_echo_n "checking for $ac_word... " >&6; }
3051if ${ac_cv_prog_ac_ct_CC+:} false; then :
3052  $as_echo_n "(cached) " >&6
3053else
3054  if test -n "$ac_ct_CC"; then
3055  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3056else
3057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058for as_dir in $PATH
3059do
3060  IFS=$as_save_IFS
3061  test -z "$as_dir" && as_dir=.
3062    for ac_exec_ext in '' $ac_executable_extensions; do
3063  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064    ac_cv_prog_ac_ct_CC="gcc"
3065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066    break 2
3067  fi
3068done
3069  done
3070IFS=$as_save_IFS
3071
3072fi
3073fi
3074ac_ct_CC=$ac_cv_prog_ac_ct_CC
3075if test -n "$ac_ct_CC"; then
3076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3077$as_echo "$ac_ct_CC" >&6; }
3078else
3079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080$as_echo "no" >&6; }
3081fi
3082
3083  if test "x$ac_ct_CC" = x; then
3084    CC=""
3085  else
3086    case $cross_compiling:$ac_tool_warned in
3087yes:)
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3090ac_tool_warned=yes ;;
3091esac
3092    CC=$ac_ct_CC
3093  fi
3094else
3095  CC="$ac_cv_prog_CC"
3096fi
3097
3098if test -z "$CC"; then
3099          if test -n "$ac_tool_prefix"; then
3100    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3101set dummy ${ac_tool_prefix}cc; ac_word=$2
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103$as_echo_n "checking for $ac_word... " >&6; }
3104if ${ac_cv_prog_CC+:} false; then :
3105  $as_echo_n "(cached) " >&6
3106else
3107  if test -n "$CC"; then
3108  ac_cv_prog_CC="$CC" # Let the user override the test.
3109else
3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111for as_dir in $PATH
3112do
3113  IFS=$as_save_IFS
3114  test -z "$as_dir" && as_dir=.
3115    for ac_exec_ext in '' $ac_executable_extensions; do
3116  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117    ac_cv_prog_CC="${ac_tool_prefix}cc"
3118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119    break 2
3120  fi
3121done
3122  done
3123IFS=$as_save_IFS
3124
3125fi
3126fi
3127CC=$ac_cv_prog_CC
3128if test -n "$CC"; then
3129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3130$as_echo "$CC" >&6; }
3131else
3132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133$as_echo "no" >&6; }
3134fi
3135
3136
3137  fi
3138fi
3139if test -z "$CC"; then
3140  # Extract the first word of "cc", so it can be a program name with args.
3141set dummy cc; ac_word=$2
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143$as_echo_n "checking for $ac_word... " >&6; }
3144if ${ac_cv_prog_CC+:} false; then :
3145  $as_echo_n "(cached) " >&6
3146else
3147  if test -n "$CC"; then
3148  ac_cv_prog_CC="$CC" # Let the user override the test.
3149else
3150  ac_prog_rejected=no
3151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152for as_dir in $PATH
3153do
3154  IFS=$as_save_IFS
3155  test -z "$as_dir" && as_dir=.
3156    for ac_exec_ext in '' $ac_executable_extensions; do
3157  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3159       ac_prog_rejected=yes
3160       continue
3161     fi
3162    ac_cv_prog_CC="cc"
3163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164    break 2
3165  fi
3166done
3167  done
3168IFS=$as_save_IFS
3169
3170if test $ac_prog_rejected = yes; then
3171  # We found a bogon in the path, so make sure we never use it.
3172  set dummy $ac_cv_prog_CC
3173  shift
3174  if test $@%:@ != 0; then
3175    # We chose a different compiler from the bogus one.
3176    # However, it has the same basename, so the bogon will be chosen
3177    # first if we set CC to just the basename; use the full file name.
3178    shift
3179    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3180  fi
3181fi
3182fi
3183fi
3184CC=$ac_cv_prog_CC
3185if test -n "$CC"; then
3186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3187$as_echo "$CC" >&6; }
3188else
3189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190$as_echo "no" >&6; }
3191fi
3192
3193
3194fi
3195if test -z "$CC"; then
3196  if test -n "$ac_tool_prefix"; then
3197  for ac_prog in cl.exe
3198  do
3199    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3200set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202$as_echo_n "checking for $ac_word... " >&6; }
3203if ${ac_cv_prog_CC+:} false; then :
3204  $as_echo_n "(cached) " >&6
3205else
3206  if test -n "$CC"; then
3207  ac_cv_prog_CC="$CC" # Let the user override the test.
3208else
3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210for as_dir in $PATH
3211do
3212  IFS=$as_save_IFS
3213  test -z "$as_dir" && as_dir=.
3214    for ac_exec_ext in '' $ac_executable_extensions; do
3215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218    break 2
3219  fi
3220done
3221  done
3222IFS=$as_save_IFS
3223
3224fi
3225fi
3226CC=$ac_cv_prog_CC
3227if test -n "$CC"; then
3228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3229$as_echo "$CC" >&6; }
3230else
3231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232$as_echo "no" >&6; }
3233fi
3234
3235
3236    test -n "$CC" && break
3237  done
3238fi
3239if test -z "$CC"; then
3240  ac_ct_CC=$CC
3241  for ac_prog in cl.exe
3242do
3243  # Extract the first word of "$ac_prog", so it can be a program name with args.
3244set dummy $ac_prog; ac_word=$2
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246$as_echo_n "checking for $ac_word... " >&6; }
3247if ${ac_cv_prog_ac_ct_CC+:} false; then :
3248  $as_echo_n "(cached) " >&6
3249else
3250  if test -n "$ac_ct_CC"; then
3251  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3252else
3253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254for as_dir in $PATH
3255do
3256  IFS=$as_save_IFS
3257  test -z "$as_dir" && as_dir=.
3258    for ac_exec_ext in '' $ac_executable_extensions; do
3259  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260    ac_cv_prog_ac_ct_CC="$ac_prog"
3261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262    break 2
3263  fi
3264done
3265  done
3266IFS=$as_save_IFS
3267
3268fi
3269fi
3270ac_ct_CC=$ac_cv_prog_ac_ct_CC
3271if test -n "$ac_ct_CC"; then
3272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3273$as_echo "$ac_ct_CC" >&6; }
3274else
3275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276$as_echo "no" >&6; }
3277fi
3278
3279
3280  test -n "$ac_ct_CC" && break
3281done
3282
3283  if test "x$ac_ct_CC" = x; then
3284    CC=""
3285  else
3286    case $cross_compiling:$ac_tool_warned in
3287yes:)
3288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3290ac_tool_warned=yes ;;
3291esac
3292    CC=$ac_ct_CC
3293  fi
3294fi
3295
3296fi
3297
3298
3299test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301as_fn_error $? "no acceptable C compiler found in \$PATH
3302See \`config.log' for more details" "$LINENO" 5; }
3303
3304# Provide some information about the compiler.
3305$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3306set X $ac_compile
3307ac_compiler=$2
3308for ac_option in --version -v -V -qversion; do
3309  { { ac_try="$ac_compiler $ac_option >&5"
3310case "(($ac_try" in
3311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312  *) ac_try_echo=$ac_try;;
3313esac
3314eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3315$as_echo "$ac_try_echo"; } >&5
3316  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3317  ac_status=$?
3318  if test -s conftest.err; then
3319    sed '10a\
3320... rest of stderr output deleted ...
3321         10q' conftest.err >conftest.er1
3322    cat conftest.er1 >&5
3323  fi
3324  rm -f conftest.er1 conftest.err
3325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326  test $ac_status = 0; }
3327done
3328
3329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330/* end confdefs.h.  */
3331
3332int
3333main ()
3334{
3335
3336  ;
3337  return 0;
3338}
3339_ACEOF
3340ac_clean_files_save=$ac_clean_files
3341ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3342# Try to create an executable without -o first, disregard a.out.
3343# It will help us diagnose broken compilers, and finding out an intuition
3344# of exeext.
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3346$as_echo_n "checking whether the C compiler works... " >&6; }
3347ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3348
3349# The possible output files:
3350ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3351
3352ac_rmfiles=
3353for ac_file in $ac_files
3354do
3355  case $ac_file in
3356    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3357    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3358  esac
3359done
3360rm -f $ac_rmfiles
3361
3362if { { ac_try="$ac_link_default"
3363case "(($ac_try" in
3364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365  *) ac_try_echo=$ac_try;;
3366esac
3367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368$as_echo "$ac_try_echo"; } >&5
3369  (eval "$ac_link_default") 2>&5
3370  ac_status=$?
3371  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372  test $ac_status = 0; }; then :
3373  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3374# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3375# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3376# so that the user can short-circuit this test for compilers unknown to
3377# Autoconf.
3378for ac_file in $ac_files ''
3379do
3380  test -f "$ac_file" || continue
3381  case $ac_file in
3382    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3383	;;
3384    [ab].out )
3385	# We found the default executable, but exeext='' is most
3386	# certainly right.
3387	break;;
3388    *.* )
3389	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3390	then :; else
3391	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3392	fi
3393	# We set ac_cv_exeext here because the later test for it is not
3394	# safe: cross compilers may not add the suffix if given an `-o'
3395	# argument, so we may need to know it at that point already.
3396	# Even if this section looks crufty: it has the advantage of
3397	# actually working.
3398	break;;
3399    * )
3400	break;;
3401  esac
3402done
3403test "$ac_cv_exeext" = no && ac_cv_exeext=
3404
3405else
3406  ac_file=''
3407fi
3408if test -z "$ac_file"; then :
3409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410$as_echo "no" >&6; }
3411$as_echo "$as_me: failed program was:" >&5
3412sed 's/^/| /' conftest.$ac_ext >&5
3413
3414{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416as_fn_error 77 "C compiler cannot create executables
3417See \`config.log' for more details" "$LINENO" 5; }
3418else
3419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3420$as_echo "yes" >&6; }
3421fi
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3423$as_echo_n "checking for C compiler default output file name... " >&6; }
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3425$as_echo "$ac_file" >&6; }
3426ac_exeext=$ac_cv_exeext
3427
3428rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3429ac_clean_files=$ac_clean_files_save
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3431$as_echo_n "checking for suffix of executables... " >&6; }
3432if { { ac_try="$ac_link"
3433case "(($ac_try" in
3434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435  *) ac_try_echo=$ac_try;;
3436esac
3437eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438$as_echo "$ac_try_echo"; } >&5
3439  (eval "$ac_link") 2>&5
3440  ac_status=$?
3441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442  test $ac_status = 0; }; then :
3443  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3444# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3445# work properly (i.e., refer to `conftest.exe'), while it won't with
3446# `rm'.
3447for ac_file in conftest.exe conftest conftest.*; do
3448  test -f "$ac_file" || continue
3449  case $ac_file in
3450    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3451    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3452	  break;;
3453    * ) break;;
3454  esac
3455done
3456else
3457  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3460See \`config.log' for more details" "$LINENO" 5; }
3461fi
3462rm -f conftest conftest$ac_cv_exeext
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3464$as_echo "$ac_cv_exeext" >&6; }
3465
3466rm -f conftest.$ac_ext
3467EXEEXT=$ac_cv_exeext
3468ac_exeext=$EXEEXT
3469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470/* end confdefs.h.  */
3471@%:@include <stdio.h>
3472int
3473main ()
3474{
3475FILE *f = fopen ("conftest.out", "w");
3476 return ferror (f) || fclose (f) != 0;
3477
3478  ;
3479  return 0;
3480}
3481_ACEOF
3482ac_clean_files="$ac_clean_files conftest.out"
3483# Check that the compiler produces executables we can run.  If not, either
3484# the compiler is broken, or we cross compile.
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3486$as_echo_n "checking whether we are cross compiling... " >&6; }
3487if test "$cross_compiling" != yes; then
3488  { { ac_try="$ac_link"
3489case "(($ac_try" in
3490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491  *) ac_try_echo=$ac_try;;
3492esac
3493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494$as_echo "$ac_try_echo"; } >&5
3495  (eval "$ac_link") 2>&5
3496  ac_status=$?
3497  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498  test $ac_status = 0; }
3499  if { ac_try='./conftest$ac_cv_exeext'
3500  { { case "(($ac_try" in
3501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502  *) ac_try_echo=$ac_try;;
3503esac
3504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505$as_echo "$ac_try_echo"; } >&5
3506  (eval "$ac_try") 2>&5
3507  ac_status=$?
3508  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509  test $ac_status = 0; }; }; then
3510    cross_compiling=no
3511  else
3512    if test "$cross_compiling" = maybe; then
3513	cross_compiling=yes
3514    else
3515	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3516$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3517as_fn_error $? "cannot run C compiled programs.
3518If you meant to cross compile, use \`--host'.
3519See \`config.log' for more details" "$LINENO" 5; }
3520    fi
3521  fi
3522fi
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3524$as_echo "$cross_compiling" >&6; }
3525
3526rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3527ac_clean_files=$ac_clean_files_save
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3529$as_echo_n "checking for suffix of object files... " >&6; }
3530if ${ac_cv_objext+:} false; then :
3531  $as_echo_n "(cached) " >&6
3532else
3533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534/* end confdefs.h.  */
3535
3536int
3537main ()
3538{
3539
3540  ;
3541  return 0;
3542}
3543_ACEOF
3544rm -f conftest.o conftest.obj
3545if { { ac_try="$ac_compile"
3546case "(($ac_try" in
3547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548  *) ac_try_echo=$ac_try;;
3549esac
3550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551$as_echo "$ac_try_echo"; } >&5
3552  (eval "$ac_compile") 2>&5
3553  ac_status=$?
3554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555  test $ac_status = 0; }; then :
3556  for ac_file in conftest.o conftest.obj conftest.*; do
3557  test -f "$ac_file" || continue;
3558  case $ac_file in
3559    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3560    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3561       break;;
3562  esac
3563done
3564else
3565  $as_echo "$as_me: failed program was:" >&5
3566sed 's/^/| /' conftest.$ac_ext >&5
3567
3568{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3570as_fn_error $? "cannot compute suffix of object files: cannot compile
3571See \`config.log' for more details" "$LINENO" 5; }
3572fi
3573rm -f conftest.$ac_cv_objext conftest.$ac_ext
3574fi
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3576$as_echo "$ac_cv_objext" >&6; }
3577OBJEXT=$ac_cv_objext
3578ac_objext=$OBJEXT
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3580$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3581if ${ac_cv_c_compiler_gnu+:} false; then :
3582  $as_echo_n "(cached) " >&6
3583else
3584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585/* end confdefs.h.  */
3586
3587int
3588main ()
3589{
3590#ifndef __GNUC__
3591       choke me
3592#endif
3593
3594  ;
3595  return 0;
3596}
3597_ACEOF
3598if ac_fn_c_try_compile "$LINENO"; then :
3599  ac_compiler_gnu=yes
3600else
3601  ac_compiler_gnu=no
3602fi
3603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604ac_cv_c_compiler_gnu=$ac_compiler_gnu
3605
3606fi
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3608$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3609if test $ac_compiler_gnu = yes; then
3610  GCC=yes
3611else
3612  GCC=
3613fi
3614ac_test_CFLAGS=${CFLAGS+set}
3615ac_save_CFLAGS=$CFLAGS
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3617$as_echo_n "checking whether $CC accepts -g... " >&6; }
3618if ${ac_cv_prog_cc_g+:} false; then :
3619  $as_echo_n "(cached) " >&6
3620else
3621  ac_save_c_werror_flag=$ac_c_werror_flag
3622   ac_c_werror_flag=yes
3623   ac_cv_prog_cc_g=no
3624   CFLAGS="-g"
3625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626/* end confdefs.h.  */
3627
3628int
3629main ()
3630{
3631
3632  ;
3633  return 0;
3634}
3635_ACEOF
3636if ac_fn_c_try_compile "$LINENO"; then :
3637  ac_cv_prog_cc_g=yes
3638else
3639  CFLAGS=""
3640      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641/* end confdefs.h.  */
3642
3643int
3644main ()
3645{
3646
3647  ;
3648  return 0;
3649}
3650_ACEOF
3651if ac_fn_c_try_compile "$LINENO"; then :
3652
3653else
3654  ac_c_werror_flag=$ac_save_c_werror_flag
3655	 CFLAGS="-g"
3656	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657/* end confdefs.h.  */
3658
3659int
3660main ()
3661{
3662
3663  ;
3664  return 0;
3665}
3666_ACEOF
3667if ac_fn_c_try_compile "$LINENO"; then :
3668  ac_cv_prog_cc_g=yes
3669fi
3670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671fi
3672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673fi
3674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675   ac_c_werror_flag=$ac_save_c_werror_flag
3676fi
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3678$as_echo "$ac_cv_prog_cc_g" >&6; }
3679if test "$ac_test_CFLAGS" = set; then
3680  CFLAGS=$ac_save_CFLAGS
3681elif test $ac_cv_prog_cc_g = yes; then
3682  if test "$GCC" = yes; then
3683    CFLAGS="-g -O2"
3684  else
3685    CFLAGS="-g"
3686  fi
3687else
3688  if test "$GCC" = yes; then
3689    CFLAGS="-O2"
3690  else
3691    CFLAGS=
3692  fi
3693fi
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3695$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3696if ${ac_cv_prog_cc_c89+:} false; then :
3697  $as_echo_n "(cached) " >&6
3698else
3699  ac_cv_prog_cc_c89=no
3700ac_save_CC=$CC
3701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702/* end confdefs.h.  */
3703#include <stdarg.h>
3704#include <stdio.h>
3705struct stat;
3706/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3707struct buf { int x; };
3708FILE * (*rcsopen) (struct buf *, struct stat *, int);
3709static char *e (p, i)
3710     char **p;
3711     int i;
3712{
3713  return p[i];
3714}
3715static char *f (char * (*g) (char **, int), char **p, ...)
3716{
3717  char *s;
3718  va_list v;
3719  va_start (v,p);
3720  s = g (p, va_arg (v,int));
3721  va_end (v);
3722  return s;
3723}
3724
3725/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3726   function prototypes and stuff, but not '\xHH' hex character constants.
3727   These don't provoke an error unfortunately, instead are silently treated
3728   as 'x'.  The following induces an error, until -std is added to get
3729   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3730   array size at least.  It's necessary to write '\x00'==0 to get something
3731   that's true only with -std.  */
3732int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3733
3734/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3735   inside strings and character constants.  */
3736#define FOO(x) 'x'
3737int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3738
3739int test (int i, double x);
3740struct s1 {int (*f) (int a);};
3741struct s2 {int (*f) (double a);};
3742int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3743int argc;
3744char **argv;
3745int
3746main ()
3747{
3748return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3749  ;
3750  return 0;
3751}
3752_ACEOF
3753for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3754	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3755do
3756  CC="$ac_save_CC $ac_arg"
3757  if ac_fn_c_try_compile "$LINENO"; then :
3758  ac_cv_prog_cc_c89=$ac_arg
3759fi
3760rm -f core conftest.err conftest.$ac_objext
3761  test "x$ac_cv_prog_cc_c89" != "xno" && break
3762done
3763rm -f conftest.$ac_ext
3764CC=$ac_save_CC
3765
3766fi
3767# AC_CACHE_VAL
3768case "x$ac_cv_prog_cc_c89" in
3769  x)
3770    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3771$as_echo "none needed" >&6; } ;;
3772  xno)
3773    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3774$as_echo "unsupported" >&6; } ;;
3775  *)
3776    CC="$CC $ac_cv_prog_cc_c89"
3777    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3778$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3779esac
3780if test "x$ac_cv_prog_cc_c89" != xno; then :
3781
3782fi
3783
3784ac_ext=c
3785ac_cpp='$CPP $CPPFLAGS'
3786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3788ac_compiler_gnu=$ac_cv_c_compiler_gnu
3789
3790ac_ext=c
3791ac_cpp='$CPP $CPPFLAGS'
3792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3796$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3797if ${am_cv_prog_cc_c_o+:} false; then :
3798  $as_echo_n "(cached) " >&6
3799else
3800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801/* end confdefs.h.  */
3802
3803int
3804main ()
3805{
3806
3807  ;
3808  return 0;
3809}
3810_ACEOF
3811  # Make sure it works both with $CC and with simple cc.
3812  # Following AC_PROG_CC_C_O, we do the test twice because some
3813  # compilers refuse to overwrite an existing .o file with -o,
3814  # though they will create one.
3815  am_cv_prog_cc_c_o=yes
3816  for am_i in 1 2; do
3817    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3818   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); } \
3822         && test -f conftest2.$ac_objext; then
3823      : OK
3824    else
3825      am_cv_prog_cc_c_o=no
3826      break
3827    fi
3828  done
3829  rm -f core conftest*
3830  unset am_i
3831fi
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3833$as_echo "$am_cv_prog_cc_c_o" >&6; }
3834if test "$am_cv_prog_cc_c_o" != yes; then
3835   # Losing compiler, so override with the script.
3836   # FIXME: It is wrong to rewrite CC.
3837   # But if we don't then we get into trouble of one sort or another.
3838   # A longer-term fix would be to have automake use am__CC in this case,
3839   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3840   CC="$am_aux_dir/compile $CC"
3841fi
3842ac_ext=c
3843ac_cpp='$CPP $CPPFLAGS'
3844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846ac_compiler_gnu=$ac_cv_c_compiler_gnu
3847
3848DEPDIR="${am__leading_dot}deps"
3849
3850ac_config_commands="$ac_config_commands depfiles"
3851
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3853$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3854cat > confinc.mk << 'END'
3855am__doit:
3856	@echo this is the am__doit target >confinc.out
3857.PHONY: am__doit
3858END
3859am__include="#"
3860am__quote=
3861# BSD make does it like this.
3862echo '.include "confinc.mk" # ignored' > confmf.BSD
3863# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3864echo 'include confinc.mk # ignored' > confmf.GNU
3865_am_result=no
3866for s in GNU BSD; do
3867  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3868   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3869   ac_status=$?
3870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871   (exit $ac_status); }
3872  case $?:`cat confinc.out 2>/dev/null` in @%:@(
3873  '0:this is the am__doit target') :
3874    case $s in @%:@(
3875  BSD) :
3876    am__include='.include' am__quote='"' ;; @%:@(
3877  *) :
3878    am__include='include' am__quote='' ;;
3879esac ;; @%:@(
3880  *) :
3881     ;;
3882esac
3883  if test "$am__include" != "#"; then
3884    _am_result="yes ($s style)"
3885    break
3886  fi
3887done
3888rm -f confinc.* confmf.*
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3890$as_echo "${_am_result}" >&6; }
3891
3892@%:@ Check whether --enable-dependency-tracking was given.
3893if test "${enable_dependency_tracking+set}" = set; then :
3894  enableval=$enable_dependency_tracking;
3895fi
3896
3897if test "x$enable_dependency_tracking" != xno; then
3898  am_depcomp="$ac_aux_dir/depcomp"
3899  AMDEPBACKSLASH='\'
3900  am__nodep='_no'
3901fi
3902 if test "x$enable_dependency_tracking" != xno; then
3903  AMDEP_TRUE=
3904  AMDEP_FALSE='#'
3905else
3906  AMDEP_TRUE='#'
3907  AMDEP_FALSE=
3908fi
3909
3910
3911
3912depcc="$CC"   am_compiler_list=
3913
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3915$as_echo_n "checking dependency style of $depcc... " >&6; }
3916if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3917  $as_echo_n "(cached) " >&6
3918else
3919  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3920  # We make a subdir and do the tests there.  Otherwise we can end up
3921  # making bogus files that we don't know about and never remove.  For
3922  # instance it was reported that on HP-UX the gcc test will end up
3923  # making a dummy file named 'D' -- because '-MD' means "put the output
3924  # in D".
3925  rm -rf conftest.dir
3926  mkdir conftest.dir
3927  # Copy depcomp to subdir because otherwise we won't find it if we're
3928  # using a relative directory.
3929  cp "$am_depcomp" conftest.dir
3930  cd conftest.dir
3931  # We will build objects and dependencies in a subdirectory because
3932  # it helps to detect inapplicable dependency modes.  For instance
3933  # both Tru64's cc and ICC support -MD to output dependencies as a
3934  # side effect of compilation, but ICC will put the dependencies in
3935  # the current directory while Tru64 will put them in the object
3936  # directory.
3937  mkdir sub
3938
3939  am_cv_CC_dependencies_compiler_type=none
3940  if test "$am_compiler_list" = ""; then
3941     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3942  fi
3943  am__universal=false
3944  case " $depcc " in #(
3945     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3946     esac
3947
3948  for depmode in $am_compiler_list; do
3949    # Setup a source with many dependencies, because some compilers
3950    # like to wrap large dependency lists on column 80 (with \), and
3951    # we should not choose a depcomp mode which is confused by this.
3952    #
3953    # We need to recreate these files for each test, as the compiler may
3954    # overwrite some of them when testing with obscure command lines.
3955    # This happens at least with the AIX C compiler.
3956    : > sub/conftest.c
3957    for i in 1 2 3 4 5 6; do
3958      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3959      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3960      # Solaris 10 /bin/sh.
3961      echo '/* dummy */' > sub/conftst$i.h
3962    done
3963    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3964
3965    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3966    # mode.  It turns out that the SunPro C++ compiler does not properly
3967    # handle '-M -o', and we need to detect this.  Also, some Intel
3968    # versions had trouble with output in subdirs.
3969    am__obj=sub/conftest.${OBJEXT-o}
3970    am__minus_obj="-o $am__obj"
3971    case $depmode in
3972    gcc)
3973      # This depmode causes a compiler race in universal mode.
3974      test "$am__universal" = false || continue
3975      ;;
3976    nosideeffect)
3977      # After this tag, mechanisms are not by side-effect, so they'll
3978      # only be used when explicitly requested.
3979      if test "x$enable_dependency_tracking" = xyes; then
3980	continue
3981      else
3982	break
3983      fi
3984      ;;
3985    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3986      # This compiler won't grok '-c -o', but also, the minuso test has
3987      # not run yet.  These depmodes are late enough in the game, and
3988      # so weak that their functioning should not be impacted.
3989      am__obj=conftest.${OBJEXT-o}
3990      am__minus_obj=
3991      ;;
3992    none) break ;;
3993    esac
3994    if depmode=$depmode \
3995       source=sub/conftest.c object=$am__obj \
3996       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3997       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3998         >/dev/null 2>conftest.err &&
3999       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4000       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4001       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4002       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4003      # icc doesn't choke on unknown options, it will just issue warnings
4004      # or remarks (even with -Werror).  So we grep stderr for any message
4005      # that says an option was ignored or not supported.
4006      # When given -MP, icc 7.0 and 7.1 complain thusly:
4007      #   icc: Command line warning: ignoring option '-M'; no argument required
4008      # The diagnosis changed in icc 8.0:
4009      #   icc: Command line remark: option '-MP' not supported
4010      if (grep 'ignoring option' conftest.err ||
4011          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4012        am_cv_CC_dependencies_compiler_type=$depmode
4013        break
4014      fi
4015    fi
4016  done
4017
4018  cd ..
4019  rm -rf conftest.dir
4020else
4021  am_cv_CC_dependencies_compiler_type=none
4022fi
4023
4024fi
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4026$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4027CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4028
4029 if
4030  test "x$enable_dependency_tracking" != xno \
4031  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4032  am__fastdepCC_TRUE=
4033  am__fastdepCC_FALSE='#'
4034else
4035  am__fastdepCC_TRUE='#'
4036  am__fastdepCC_FALSE=
4037fi
4038
4039
4040# Make sure we can run config.sub.
4041$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4042  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4043
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4045$as_echo_n "checking build system type... " >&6; }
4046if ${ac_cv_build+:} false; then :
4047  $as_echo_n "(cached) " >&6
4048else
4049  ac_build_alias=$build_alias
4050test "x$ac_build_alias" = x &&
4051  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4052test "x$ac_build_alias" = x &&
4053  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4054ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4055  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4056
4057fi
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4059$as_echo "$ac_cv_build" >&6; }
4060case $ac_cv_build in
4061*-*-*) ;;
4062*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4063esac
4064build=$ac_cv_build
4065ac_save_IFS=$IFS; IFS='-'
4066set x $ac_cv_build
4067shift
4068build_cpu=$1
4069build_vendor=$2
4070shift; shift
4071# Remember, the first character of IFS is used to create $*,
4072# except with old shells:
4073build_os=$*
4074IFS=$ac_save_IFS
4075case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4076
4077
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4079$as_echo_n "checking host system type... " >&6; }
4080if ${ac_cv_host+:} false; then :
4081  $as_echo_n "(cached) " >&6
4082else
4083  if test "x$host_alias" = x; then
4084  ac_cv_host=$ac_cv_build
4085else
4086  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4087    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4088fi
4089
4090fi
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4092$as_echo "$ac_cv_host" >&6; }
4093case $ac_cv_host in
4094*-*-*) ;;
4095*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4096esac
4097host=$ac_cv_host
4098ac_save_IFS=$IFS; IFS='-'
4099set x $ac_cv_host
4100shift
4101host_cpu=$1
4102host_vendor=$2
4103shift; shift
4104# Remember, the first character of IFS is used to create $*,
4105# except with old shells:
4106host_os=$*
4107IFS=$ac_save_IFS
4108case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4109
4110
4111enable_win32_dll=yes
4112
4113case $host in
4114*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4115  if test -n "$ac_tool_prefix"; then
4116  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4117set dummy ${ac_tool_prefix}as; ac_word=$2
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119$as_echo_n "checking for $ac_word... " >&6; }
4120if ${ac_cv_prog_AS+:} false; then :
4121  $as_echo_n "(cached) " >&6
4122else
4123  if test -n "$AS"; then
4124  ac_cv_prog_AS="$AS" # Let the user override the test.
4125else
4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH
4128do
4129  IFS=$as_save_IFS
4130  test -z "$as_dir" && as_dir=.
4131    for ac_exec_ext in '' $ac_executable_extensions; do
4132  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133    ac_cv_prog_AS="${ac_tool_prefix}as"
4134    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4135    break 2
4136  fi
4137done
4138  done
4139IFS=$as_save_IFS
4140
4141fi
4142fi
4143AS=$ac_cv_prog_AS
4144if test -n "$AS"; then
4145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4146$as_echo "$AS" >&6; }
4147else
4148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149$as_echo "no" >&6; }
4150fi
4151
4152
4153fi
4154if test -z "$ac_cv_prog_AS"; then
4155  ac_ct_AS=$AS
4156  # Extract the first word of "as", so it can be a program name with args.
4157set dummy as; ac_word=$2
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159$as_echo_n "checking for $ac_word... " >&6; }
4160if ${ac_cv_prog_ac_ct_AS+:} false; then :
4161  $as_echo_n "(cached) " >&6
4162else
4163  if test -n "$ac_ct_AS"; then
4164  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4165else
4166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167for as_dir in $PATH
4168do
4169  IFS=$as_save_IFS
4170  test -z "$as_dir" && as_dir=.
4171    for ac_exec_ext in '' $ac_executable_extensions; do
4172  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173    ac_cv_prog_ac_ct_AS="as"
4174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4175    break 2
4176  fi
4177done
4178  done
4179IFS=$as_save_IFS
4180
4181fi
4182fi
4183ac_ct_AS=$ac_cv_prog_ac_ct_AS
4184if test -n "$ac_ct_AS"; then
4185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4186$as_echo "$ac_ct_AS" >&6; }
4187else
4188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189$as_echo "no" >&6; }
4190fi
4191
4192  if test "x$ac_ct_AS" = x; then
4193    AS="false"
4194  else
4195    case $cross_compiling:$ac_tool_warned in
4196yes:)
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4199ac_tool_warned=yes ;;
4200esac
4201    AS=$ac_ct_AS
4202  fi
4203else
4204  AS="$ac_cv_prog_AS"
4205fi
4206
4207  if test -n "$ac_tool_prefix"; then
4208  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4209set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211$as_echo_n "checking for $ac_word... " >&6; }
4212if ${ac_cv_prog_DLLTOOL+:} false; then :
4213  $as_echo_n "(cached) " >&6
4214else
4215  if test -n "$DLLTOOL"; then
4216  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4217else
4218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219for as_dir in $PATH
4220do
4221  IFS=$as_save_IFS
4222  test -z "$as_dir" && as_dir=.
4223    for ac_exec_ext in '' $ac_executable_extensions; do
4224  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4225    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227    break 2
4228  fi
4229done
4230  done
4231IFS=$as_save_IFS
4232
4233fi
4234fi
4235DLLTOOL=$ac_cv_prog_DLLTOOL
4236if test -n "$DLLTOOL"; then
4237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4238$as_echo "$DLLTOOL" >&6; }
4239else
4240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241$as_echo "no" >&6; }
4242fi
4243
4244
4245fi
4246if test -z "$ac_cv_prog_DLLTOOL"; then
4247  ac_ct_DLLTOOL=$DLLTOOL
4248  # Extract the first word of "dlltool", so it can be a program name with args.
4249set dummy dlltool; ac_word=$2
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4251$as_echo_n "checking for $ac_word... " >&6; }
4252if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4253  $as_echo_n "(cached) " >&6
4254else
4255  if test -n "$ac_ct_DLLTOOL"; then
4256  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4257else
4258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259for as_dir in $PATH
4260do
4261  IFS=$as_save_IFS
4262  test -z "$as_dir" && as_dir=.
4263    for ac_exec_ext in '' $ac_executable_extensions; do
4264  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4265    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4267    break 2
4268  fi
4269done
4270  done
4271IFS=$as_save_IFS
4272
4273fi
4274fi
4275ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4276if test -n "$ac_ct_DLLTOOL"; then
4277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4278$as_echo "$ac_ct_DLLTOOL" >&6; }
4279else
4280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281$as_echo "no" >&6; }
4282fi
4283
4284  if test "x$ac_ct_DLLTOOL" = x; then
4285    DLLTOOL="false"
4286  else
4287    case $cross_compiling:$ac_tool_warned in
4288yes:)
4289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4291ac_tool_warned=yes ;;
4292esac
4293    DLLTOOL=$ac_ct_DLLTOOL
4294  fi
4295else
4296  DLLTOOL="$ac_cv_prog_DLLTOOL"
4297fi
4298
4299  if test -n "$ac_tool_prefix"; then
4300  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4301set dummy ${ac_tool_prefix}objdump; ac_word=$2
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303$as_echo_n "checking for $ac_word... " >&6; }
4304if ${ac_cv_prog_OBJDUMP+:} false; then :
4305  $as_echo_n "(cached) " >&6
4306else
4307  if test -n "$OBJDUMP"; then
4308  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4309else
4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH
4312do
4313  IFS=$as_save_IFS
4314  test -z "$as_dir" && as_dir=.
4315    for ac_exec_ext in '' $ac_executable_extensions; do
4316  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4317    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319    break 2
4320  fi
4321done
4322  done
4323IFS=$as_save_IFS
4324
4325fi
4326fi
4327OBJDUMP=$ac_cv_prog_OBJDUMP
4328if test -n "$OBJDUMP"; then
4329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4330$as_echo "$OBJDUMP" >&6; }
4331else
4332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333$as_echo "no" >&6; }
4334fi
4335
4336
4337fi
4338if test -z "$ac_cv_prog_OBJDUMP"; then
4339  ac_ct_OBJDUMP=$OBJDUMP
4340  # Extract the first word of "objdump", so it can be a program name with args.
4341set dummy objdump; ac_word=$2
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4343$as_echo_n "checking for $ac_word... " >&6; }
4344if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4345  $as_echo_n "(cached) " >&6
4346else
4347  if test -n "$ac_ct_OBJDUMP"; then
4348  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4349else
4350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351for as_dir in $PATH
4352do
4353  IFS=$as_save_IFS
4354  test -z "$as_dir" && as_dir=.
4355    for ac_exec_ext in '' $ac_executable_extensions; do
4356  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4357    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359    break 2
4360  fi
4361done
4362  done
4363IFS=$as_save_IFS
4364
4365fi
4366fi
4367ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4368if test -n "$ac_ct_OBJDUMP"; then
4369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4370$as_echo "$ac_ct_OBJDUMP" >&6; }
4371else
4372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373$as_echo "no" >&6; }
4374fi
4375
4376  if test "x$ac_ct_OBJDUMP" = x; then
4377    OBJDUMP="false"
4378  else
4379    case $cross_compiling:$ac_tool_warned in
4380yes:)
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4383ac_tool_warned=yes ;;
4384esac
4385    OBJDUMP=$ac_ct_OBJDUMP
4386  fi
4387else
4388  OBJDUMP="$ac_cv_prog_OBJDUMP"
4389fi
4390
4391  ;;
4392esac
4393
4394test -z "$AS" && AS=as
4395
4396
4397
4398
4399
4400test -z "$DLLTOOL" && DLLTOOL=dlltool
4401
4402
4403
4404
4405
4406test -z "$OBJDUMP" && OBJDUMP=objdump
4407
4408
4409
4410
4411
4412
4413
4414case `pwd` in
4415  *\ * | *\	*)
4416    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4417$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4418esac
4419
4420
4421
4422macro_version='2.4.6'
4423macro_revision='2.4.6'
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437ltmain=$ac_aux_dir/ltmain.sh
4438
4439# Backslashify metacharacters that are still active within
4440# double-quoted strings.
4441sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4442
4443# Same as above, but do not quote variable references.
4444double_quote_subst='s/\(["`\\]\)/\\\1/g'
4445
4446# Sed substitution to delay expansion of an escaped shell variable in a
4447# double_quote_subst'ed string.
4448delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4449
4450# Sed substitution to delay expansion of an escaped single quote.
4451delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4452
4453# Sed substitution to avoid accidental globbing in evaled expressions
4454no_glob_subst='s/\*/\\\*/g'
4455
4456ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4457ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4458ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4459
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4461$as_echo_n "checking how to print strings... " >&6; }
4462# Test print first, because it will be a builtin if present.
4463if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4464   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4465  ECHO='print -r --'
4466elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4467  ECHO='printf %s\n'
4468else
4469  # Use this function as a fallback that always works.
4470  func_fallback_echo ()
4471  {
4472    eval 'cat <<_LTECHO_EOF
4473$1
4474_LTECHO_EOF'
4475  }
4476  ECHO='func_fallback_echo'
4477fi
4478
4479# func_echo_all arg...
4480# Invoke $ECHO with all args, space-separated.
4481func_echo_all ()
4482{
4483    $ECHO ""
4484}
4485
4486case $ECHO in
4487  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4488$as_echo "printf" >&6; } ;;
4489  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4490$as_echo "print -r" >&6; } ;;
4491  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4492$as_echo "cat" >&6; } ;;
4493esac
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4509$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4510if ${ac_cv_path_SED+:} false; then :
4511  $as_echo_n "(cached) " >&6
4512else
4513            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4514     for ac_i in 1 2 3 4 5 6 7; do
4515       ac_script="$ac_script$as_nl$ac_script"
4516     done
4517     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4518     { ac_script=; unset ac_script;}
4519     if test -z "$SED"; then
4520  ac_path_SED_found=false
4521  # Loop through the user's path and test for each of PROGNAME-LIST
4522  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH
4524do
4525  IFS=$as_save_IFS
4526  test -z "$as_dir" && as_dir=.
4527    for ac_prog in sed gsed; do
4528    for ac_exec_ext in '' $ac_executable_extensions; do
4529      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4530      as_fn_executable_p "$ac_path_SED" || continue
4531# Check for GNU ac_path_SED and select it if it is found.
4532  # Check for GNU $ac_path_SED
4533case `"$ac_path_SED" --version 2>&1` in
4534*GNU*)
4535  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4536*)
4537  ac_count=0
4538  $as_echo_n 0123456789 >"conftest.in"
4539  while :
4540  do
4541    cat "conftest.in" "conftest.in" >"conftest.tmp"
4542    mv "conftest.tmp" "conftest.in"
4543    cp "conftest.in" "conftest.nl"
4544    $as_echo '' >> "conftest.nl"
4545    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4546    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4547    as_fn_arith $ac_count + 1 && ac_count=$as_val
4548    if test $ac_count -gt ${ac_path_SED_max-0}; then
4549      # Best one so far, save it but keep looking for a better one
4550      ac_cv_path_SED="$ac_path_SED"
4551      ac_path_SED_max=$ac_count
4552    fi
4553    # 10*(2^10) chars as input seems more than enough
4554    test $ac_count -gt 10 && break
4555  done
4556  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4557esac
4558
4559      $ac_path_SED_found && break 3
4560    done
4561  done
4562  done
4563IFS=$as_save_IFS
4564  if test -z "$ac_cv_path_SED"; then
4565    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4566  fi
4567else
4568  ac_cv_path_SED=$SED
4569fi
4570
4571fi
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4573$as_echo "$ac_cv_path_SED" >&6; }
4574 SED="$ac_cv_path_SED"
4575  rm -f conftest.sed
4576
4577test -z "$SED" && SED=sed
4578Xsed="$SED -e 1s/^X//"
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4591$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4592if ${ac_cv_path_GREP+:} false; then :
4593  $as_echo_n "(cached) " >&6
4594else
4595  if test -z "$GREP"; then
4596  ac_path_GREP_found=false
4597  # Loop through the user's path and test for each of PROGNAME-LIST
4598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4600do
4601  IFS=$as_save_IFS
4602  test -z "$as_dir" && as_dir=.
4603    for ac_prog in grep ggrep; do
4604    for ac_exec_ext in '' $ac_executable_extensions; do
4605      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4606      as_fn_executable_p "$ac_path_GREP" || continue
4607# Check for GNU ac_path_GREP and select it if it is found.
4608  # Check for GNU $ac_path_GREP
4609case `"$ac_path_GREP" --version 2>&1` in
4610*GNU*)
4611  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4612*)
4613  ac_count=0
4614  $as_echo_n 0123456789 >"conftest.in"
4615  while :
4616  do
4617    cat "conftest.in" "conftest.in" >"conftest.tmp"
4618    mv "conftest.tmp" "conftest.in"
4619    cp "conftest.in" "conftest.nl"
4620    $as_echo 'GREP' >> "conftest.nl"
4621    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4622    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4623    as_fn_arith $ac_count + 1 && ac_count=$as_val
4624    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4625      # Best one so far, save it but keep looking for a better one
4626      ac_cv_path_GREP="$ac_path_GREP"
4627      ac_path_GREP_max=$ac_count
4628    fi
4629    # 10*(2^10) chars as input seems more than enough
4630    test $ac_count -gt 10 && break
4631  done
4632  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4633esac
4634
4635      $ac_path_GREP_found && break 3
4636    done
4637  done
4638  done
4639IFS=$as_save_IFS
4640  if test -z "$ac_cv_path_GREP"; then
4641    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4642  fi
4643else
4644  ac_cv_path_GREP=$GREP
4645fi
4646
4647fi
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4649$as_echo "$ac_cv_path_GREP" >&6; }
4650 GREP="$ac_cv_path_GREP"
4651
4652
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4654$as_echo_n "checking for egrep... " >&6; }
4655if ${ac_cv_path_EGREP+:} false; then :
4656  $as_echo_n "(cached) " >&6
4657else
4658  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4659   then ac_cv_path_EGREP="$GREP -E"
4660   else
4661     if test -z "$EGREP"; then
4662  ac_path_EGREP_found=false
4663  # Loop through the user's path and test for each of PROGNAME-LIST
4664  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4666do
4667  IFS=$as_save_IFS
4668  test -z "$as_dir" && as_dir=.
4669    for ac_prog in egrep; do
4670    for ac_exec_ext in '' $ac_executable_extensions; do
4671      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4672      as_fn_executable_p "$ac_path_EGREP" || continue
4673# Check for GNU ac_path_EGREP and select it if it is found.
4674  # Check for GNU $ac_path_EGREP
4675case `"$ac_path_EGREP" --version 2>&1` in
4676*GNU*)
4677  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4678*)
4679  ac_count=0
4680  $as_echo_n 0123456789 >"conftest.in"
4681  while :
4682  do
4683    cat "conftest.in" "conftest.in" >"conftest.tmp"
4684    mv "conftest.tmp" "conftest.in"
4685    cp "conftest.in" "conftest.nl"
4686    $as_echo 'EGREP' >> "conftest.nl"
4687    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4688    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4689    as_fn_arith $ac_count + 1 && ac_count=$as_val
4690    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4691      # Best one so far, save it but keep looking for a better one
4692      ac_cv_path_EGREP="$ac_path_EGREP"
4693      ac_path_EGREP_max=$ac_count
4694    fi
4695    # 10*(2^10) chars as input seems more than enough
4696    test $ac_count -gt 10 && break
4697  done
4698  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4699esac
4700
4701      $ac_path_EGREP_found && break 3
4702    done
4703  done
4704  done
4705IFS=$as_save_IFS
4706  if test -z "$ac_cv_path_EGREP"; then
4707    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4708  fi
4709else
4710  ac_cv_path_EGREP=$EGREP
4711fi
4712
4713   fi
4714fi
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4716$as_echo "$ac_cv_path_EGREP" >&6; }
4717 EGREP="$ac_cv_path_EGREP"
4718
4719
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4721$as_echo_n "checking for fgrep... " >&6; }
4722if ${ac_cv_path_FGREP+:} false; then :
4723  $as_echo_n "(cached) " >&6
4724else
4725  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4726   then ac_cv_path_FGREP="$GREP -F"
4727   else
4728     if test -z "$FGREP"; then
4729  ac_path_FGREP_found=false
4730  # Loop through the user's path and test for each of PROGNAME-LIST
4731  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4733do
4734  IFS=$as_save_IFS
4735  test -z "$as_dir" && as_dir=.
4736    for ac_prog in fgrep; do
4737    for ac_exec_ext in '' $ac_executable_extensions; do
4738      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4739      as_fn_executable_p "$ac_path_FGREP" || continue
4740# Check for GNU ac_path_FGREP and select it if it is found.
4741  # Check for GNU $ac_path_FGREP
4742case `"$ac_path_FGREP" --version 2>&1` in
4743*GNU*)
4744  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4745*)
4746  ac_count=0
4747  $as_echo_n 0123456789 >"conftest.in"
4748  while :
4749  do
4750    cat "conftest.in" "conftest.in" >"conftest.tmp"
4751    mv "conftest.tmp" "conftest.in"
4752    cp "conftest.in" "conftest.nl"
4753    $as_echo 'FGREP' >> "conftest.nl"
4754    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4755    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4756    as_fn_arith $ac_count + 1 && ac_count=$as_val
4757    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4758      # Best one so far, save it but keep looking for a better one
4759      ac_cv_path_FGREP="$ac_path_FGREP"
4760      ac_path_FGREP_max=$ac_count
4761    fi
4762    # 10*(2^10) chars as input seems more than enough
4763    test $ac_count -gt 10 && break
4764  done
4765  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4766esac
4767
4768      $ac_path_FGREP_found && break 3
4769    done
4770  done
4771  done
4772IFS=$as_save_IFS
4773  if test -z "$ac_cv_path_FGREP"; then
4774    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4775  fi
4776else
4777  ac_cv_path_FGREP=$FGREP
4778fi
4779
4780   fi
4781fi
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4783$as_echo "$ac_cv_path_FGREP" >&6; }
4784 FGREP="$ac_cv_path_FGREP"
4785
4786
4787test -z "$GREP" && GREP=grep
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807@%:@ Check whether --with-gnu-ld was given.
4808if test "${with_gnu_ld+set}" = set; then :
4809  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4810else
4811  with_gnu_ld=no
4812fi
4813
4814ac_prog=ld
4815if test yes = "$GCC"; then
4816  # Check if gcc -print-prog-name=ld gives a path.
4817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4818$as_echo_n "checking for ld used by $CC... " >&6; }
4819  case $host in
4820  *-*-mingw*)
4821    # gcc leaves a trailing carriage return, which upsets mingw
4822    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4823  *)
4824    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4825  esac
4826  case $ac_prog in
4827    # Accept absolute paths.
4828    [\\/]* | ?:[\\/]*)
4829      re_direlt='/[^/][^/]*/\.\./'
4830      # Canonicalize the pathname of ld
4831      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4832      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4833	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4834      done
4835      test -z "$LD" && LD=$ac_prog
4836      ;;
4837  "")
4838    # If it fails, then pretend we aren't using GCC.
4839    ac_prog=ld
4840    ;;
4841  *)
4842    # If it is relative, then search for the first ld in PATH.
4843    with_gnu_ld=unknown
4844    ;;
4845  esac
4846elif test yes = "$with_gnu_ld"; then
4847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4848$as_echo_n "checking for GNU ld... " >&6; }
4849else
4850  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4851$as_echo_n "checking for non-GNU ld... " >&6; }
4852fi
4853if ${lt_cv_path_LD+:} false; then :
4854  $as_echo_n "(cached) " >&6
4855else
4856  if test -z "$LD"; then
4857  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4858  for ac_dir in $PATH; do
4859    IFS=$lt_save_ifs
4860    test -z "$ac_dir" && ac_dir=.
4861    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4862      lt_cv_path_LD=$ac_dir/$ac_prog
4863      # Check to see if the program is GNU ld.  I'd rather use --version,
4864      # but apparently some variants of GNU ld only accept -v.
4865      # Break only if it was the GNU/non-GNU ld that we prefer.
4866      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4867      *GNU* | *'with BFD'*)
4868	test no != "$with_gnu_ld" && break
4869	;;
4870      *)
4871	test yes != "$with_gnu_ld" && break
4872	;;
4873      esac
4874    fi
4875  done
4876  IFS=$lt_save_ifs
4877else
4878  lt_cv_path_LD=$LD # Let the user override the test with a path.
4879fi
4880fi
4881
4882LD=$lt_cv_path_LD
4883if test -n "$LD"; then
4884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4885$as_echo "$LD" >&6; }
4886else
4887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888$as_echo "no" >&6; }
4889fi
4890test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4892$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4893if ${lt_cv_prog_gnu_ld+:} false; then :
4894  $as_echo_n "(cached) " >&6
4895else
4896  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4897case `$LD -v 2>&1 </dev/null` in
4898*GNU* | *'with BFD'*)
4899  lt_cv_prog_gnu_ld=yes
4900  ;;
4901*)
4902  lt_cv_prog_gnu_ld=no
4903  ;;
4904esac
4905fi
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4907$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4908with_gnu_ld=$lt_cv_prog_gnu_ld
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4919$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4920if ${lt_cv_path_NM+:} false; then :
4921  $as_echo_n "(cached) " >&6
4922else
4923  if test -n "$NM"; then
4924  # Let the user override the test.
4925  lt_cv_path_NM=$NM
4926else
4927  lt_nm_to_check=${ac_tool_prefix}nm
4928  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4929    lt_nm_to_check="$lt_nm_to_check nm"
4930  fi
4931  for lt_tmp_nm in $lt_nm_to_check; do
4932    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4933    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4934      IFS=$lt_save_ifs
4935      test -z "$ac_dir" && ac_dir=.
4936      tmp_nm=$ac_dir/$lt_tmp_nm
4937      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4938	# Check to see if the nm accepts a BSD-compat flag.
4939	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4940	#   nm: unknown option "B" ignored
4941	# Tru64's nm complains that /dev/null is an invalid object file
4942	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4943	case $build_os in
4944	mingw*) lt_bad_file=conftest.nm/nofile ;;
4945	*) lt_bad_file=/dev/null ;;
4946	esac
4947	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4948	*$lt_bad_file* | *'Invalid file or object type'*)
4949	  lt_cv_path_NM="$tmp_nm -B"
4950	  break 2
4951	  ;;
4952	*)
4953	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4954	  */dev/null*)
4955	    lt_cv_path_NM="$tmp_nm -p"
4956	    break 2
4957	    ;;
4958	  *)
4959	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4960	    continue # so that we can try to find one that supports BSD flags
4961	    ;;
4962	  esac
4963	  ;;
4964	esac
4965      fi
4966    done
4967    IFS=$lt_save_ifs
4968  done
4969  : ${lt_cv_path_NM=no}
4970fi
4971fi
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4973$as_echo "$lt_cv_path_NM" >&6; }
4974if test no != "$lt_cv_path_NM"; then
4975  NM=$lt_cv_path_NM
4976else
4977  # Didn't find any BSD compatible name lister, look for dumpbin.
4978  if test -n "$DUMPBIN"; then :
4979    # Let the user override the test.
4980  else
4981    if test -n "$ac_tool_prefix"; then
4982  for ac_prog in dumpbin "link -dump"
4983  do
4984    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4985set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987$as_echo_n "checking for $ac_word... " >&6; }
4988if ${ac_cv_prog_DUMPBIN+:} false; then :
4989  $as_echo_n "(cached) " >&6
4990else
4991  if test -n "$DUMPBIN"; then
4992  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4993else
4994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995for as_dir in $PATH
4996do
4997  IFS=$as_save_IFS
4998  test -z "$as_dir" && as_dir=.
4999    for ac_exec_ext in '' $ac_executable_extensions; do
5000  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5001    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003    break 2
5004  fi
5005done
5006  done
5007IFS=$as_save_IFS
5008
5009fi
5010fi
5011DUMPBIN=$ac_cv_prog_DUMPBIN
5012if test -n "$DUMPBIN"; then
5013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5014$as_echo "$DUMPBIN" >&6; }
5015else
5016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017$as_echo "no" >&6; }
5018fi
5019
5020
5021    test -n "$DUMPBIN" && break
5022  done
5023fi
5024if test -z "$DUMPBIN"; then
5025  ac_ct_DUMPBIN=$DUMPBIN
5026  for ac_prog in dumpbin "link -dump"
5027do
5028  # Extract the first word of "$ac_prog", so it can be a program name with args.
5029set dummy $ac_prog; ac_word=$2
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031$as_echo_n "checking for $ac_word... " >&6; }
5032if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5033  $as_echo_n "(cached) " >&6
5034else
5035  if test -n "$ac_ct_DUMPBIN"; then
5036  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5037else
5038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039for as_dir in $PATH
5040do
5041  IFS=$as_save_IFS
5042  test -z "$as_dir" && as_dir=.
5043    for ac_exec_ext in '' $ac_executable_extensions; do
5044  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047    break 2
5048  fi
5049done
5050  done
5051IFS=$as_save_IFS
5052
5053fi
5054fi
5055ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5056if test -n "$ac_ct_DUMPBIN"; then
5057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5058$as_echo "$ac_ct_DUMPBIN" >&6; }
5059else
5060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061$as_echo "no" >&6; }
5062fi
5063
5064
5065  test -n "$ac_ct_DUMPBIN" && break
5066done
5067
5068  if test "x$ac_ct_DUMPBIN" = x; then
5069    DUMPBIN=":"
5070  else
5071    case $cross_compiling:$ac_tool_warned in
5072yes:)
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5075ac_tool_warned=yes ;;
5076esac
5077    DUMPBIN=$ac_ct_DUMPBIN
5078  fi
5079fi
5080
5081    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5082    *COFF*)
5083      DUMPBIN="$DUMPBIN -symbols -headers"
5084      ;;
5085    *)
5086      DUMPBIN=:
5087      ;;
5088    esac
5089  fi
5090
5091  if test : != "$DUMPBIN"; then
5092    NM=$DUMPBIN
5093  fi
5094fi
5095test -z "$NM" && NM=nm
5096
5097
5098
5099
5100
5101
5102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5103$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5104if ${lt_cv_nm_interface+:} false; then :
5105  $as_echo_n "(cached) " >&6
5106else
5107  lt_cv_nm_interface="BSD nm"
5108  echo "int some_variable = 0;" > conftest.$ac_ext
5109  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5110  (eval "$ac_compile" 2>conftest.err)
5111  cat conftest.err >&5
5112  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5113  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5114  cat conftest.err >&5
5115  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5116  cat conftest.out >&5
5117  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5118    lt_cv_nm_interface="MS dumpbin"
5119  fi
5120  rm -f conftest*
5121fi
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5123$as_echo "$lt_cv_nm_interface" >&6; }
5124
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5126$as_echo_n "checking whether ln -s works... " >&6; }
5127LN_S=$as_ln_s
5128if test "$LN_S" = "ln -s"; then
5129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5130$as_echo "yes" >&6; }
5131else
5132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5133$as_echo "no, using $LN_S" >&6; }
5134fi
5135
5136# find the maximum length of command line arguments
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5138$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5139if ${lt_cv_sys_max_cmd_len+:} false; then :
5140  $as_echo_n "(cached) " >&6
5141else
5142    i=0
5143  teststring=ABCD
5144
5145  case $build_os in
5146  msdosdjgpp*)
5147    # On DJGPP, this test can blow up pretty badly due to problems in libc
5148    # (any single argument exceeding 2000 bytes causes a buffer overrun
5149    # during glob expansion).  Even if it were fixed, the result of this
5150    # check would be larger than it should be.
5151    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5152    ;;
5153
5154  gnu*)
5155    # Under GNU Hurd, this test is not required because there is
5156    # no limit to the length of command line arguments.
5157    # Libtool will interpret -1 as no limit whatsoever
5158    lt_cv_sys_max_cmd_len=-1;
5159    ;;
5160
5161  cygwin* | mingw* | cegcc*)
5162    # On Win9x/ME, this test blows up -- it succeeds, but takes
5163    # about 5 minutes as the teststring grows exponentially.
5164    # Worse, since 9x/ME are not pre-emptively multitasking,
5165    # you end up with a "frozen" computer, even though with patience
5166    # the test eventually succeeds (with a max line length of 256k).
5167    # Instead, let's just punt: use the minimum linelength reported by
5168    # all of the supported platforms: 8192 (on NT/2K/XP).
5169    lt_cv_sys_max_cmd_len=8192;
5170    ;;
5171
5172  mint*)
5173    # On MiNT this can take a long time and run out of memory.
5174    lt_cv_sys_max_cmd_len=8192;
5175    ;;
5176
5177  amigaos*)
5178    # On AmigaOS with pdksh, this test takes hours, literally.
5179    # So we just punt and use a minimum line length of 8192.
5180    lt_cv_sys_max_cmd_len=8192;
5181    ;;
5182
5183  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5184    # This has been around since 386BSD, at least.  Likely further.
5185    if test -x /sbin/sysctl; then
5186      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5187    elif test -x /usr/sbin/sysctl; then
5188      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5189    else
5190      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5191    fi
5192    # And add a safety zone
5193    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5194    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5195    ;;
5196
5197  interix*)
5198    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5199    lt_cv_sys_max_cmd_len=196608
5200    ;;
5201
5202  os2*)
5203    # The test takes a long time on OS/2.
5204    lt_cv_sys_max_cmd_len=8192
5205    ;;
5206
5207  osf*)
5208    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5209    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5210    # nice to cause kernel panics so lets avoid the loop below.
5211    # First set a reasonable default.
5212    lt_cv_sys_max_cmd_len=16384
5213    #
5214    if test -x /sbin/sysconfig; then
5215      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5216        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5217      esac
5218    fi
5219    ;;
5220  sco3.2v5*)
5221    lt_cv_sys_max_cmd_len=102400
5222    ;;
5223  sysv5* | sco5v6* | sysv4.2uw2*)
5224    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5225    if test -n "$kargmax"; then
5226      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5227    else
5228      lt_cv_sys_max_cmd_len=32768
5229    fi
5230    ;;
5231  *)
5232    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5233    if test -n "$lt_cv_sys_max_cmd_len" && \
5234       test undefined != "$lt_cv_sys_max_cmd_len"; then
5235      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5236      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5237    else
5238      # Make teststring a little bigger before we do anything with it.
5239      # a 1K string should be a reasonable start.
5240      for i in 1 2 3 4 5 6 7 8; do
5241        teststring=$teststring$teststring
5242      done
5243      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5244      # If test is not a shell built-in, we'll probably end up computing a
5245      # maximum length that is only half of the actual maximum length, but
5246      # we can't tell.
5247      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5248	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5249	      test 17 != "$i" # 1/2 MB should be enough
5250      do
5251        i=`expr $i + 1`
5252        teststring=$teststring$teststring
5253      done
5254      # Only check the string length outside the loop.
5255      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5256      teststring=
5257      # Add a significant safety factor because C++ compilers can tack on
5258      # massive amounts of additional arguments before passing them to the
5259      # linker.  It appears as though 1/2 is a usable value.
5260      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5261    fi
5262    ;;
5263  esac
5264
5265fi
5266
5267if test -n "$lt_cv_sys_max_cmd_len"; then
5268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5269$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5270else
5271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5272$as_echo "none" >&6; }
5273fi
5274max_cmd_len=$lt_cv_sys_max_cmd_len
5275
5276
5277
5278
5279
5280
5281: ${CP="cp -f"}
5282: ${MV="mv -f"}
5283: ${RM="rm -f"}
5284
5285if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5286  lt_unset=unset
5287else
5288  lt_unset=false
5289fi
5290
5291
5292
5293
5294
5295# test EBCDIC or ASCII
5296case `echo X|tr X '\101'` in
5297 A) # ASCII based system
5298    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5299  lt_SP2NL='tr \040 \012'
5300  lt_NL2SP='tr \015\012 \040\040'
5301  ;;
5302 *) # EBCDIC based system
5303  lt_SP2NL='tr \100 \n'
5304  lt_NL2SP='tr \r\n \100\100'
5305  ;;
5306esac
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5317$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5318if ${lt_cv_to_host_file_cmd+:} false; then :
5319  $as_echo_n "(cached) " >&6
5320else
5321  case $host in
5322  *-*-mingw* )
5323    case $build in
5324      *-*-mingw* ) # actually msys
5325        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5326        ;;
5327      *-*-cygwin* )
5328        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5329        ;;
5330      * ) # otherwise, assume *nix
5331        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5332        ;;
5333    esac
5334    ;;
5335  *-*-cygwin* )
5336    case $build in
5337      *-*-mingw* ) # actually msys
5338        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5339        ;;
5340      *-*-cygwin* )
5341        lt_cv_to_host_file_cmd=func_convert_file_noop
5342        ;;
5343      * ) # otherwise, assume *nix
5344        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5345        ;;
5346    esac
5347    ;;
5348  * ) # unhandled hosts (and "normal" native builds)
5349    lt_cv_to_host_file_cmd=func_convert_file_noop
5350    ;;
5351esac
5352
5353fi
5354
5355to_host_file_cmd=$lt_cv_to_host_file_cmd
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5357$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5358
5359
5360
5361
5362
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5364$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5365if ${lt_cv_to_tool_file_cmd+:} false; then :
5366  $as_echo_n "(cached) " >&6
5367else
5368  #assume ordinary cross tools, or native build.
5369lt_cv_to_tool_file_cmd=func_convert_file_noop
5370case $host in
5371  *-*-mingw* )
5372    case $build in
5373      *-*-mingw* ) # actually msys
5374        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5375        ;;
5376    esac
5377    ;;
5378esac
5379
5380fi
5381
5382to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5384$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5385
5386
5387
5388
5389
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5391$as_echo_n "checking for $LD option to reload object files... " >&6; }
5392if ${lt_cv_ld_reload_flag+:} false; then :
5393  $as_echo_n "(cached) " >&6
5394else
5395  lt_cv_ld_reload_flag='-r'
5396fi
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5398$as_echo "$lt_cv_ld_reload_flag" >&6; }
5399reload_flag=$lt_cv_ld_reload_flag
5400case $reload_flag in
5401"" | " "*) ;;
5402*) reload_flag=" $reload_flag" ;;
5403esac
5404reload_cmds='$LD$reload_flag -o $output$reload_objs'
5405case $host_os in
5406  cygwin* | mingw* | pw32* | cegcc*)
5407    if test yes != "$GCC"; then
5408      reload_cmds=false
5409    fi
5410    ;;
5411  darwin*)
5412    if test yes = "$GCC"; then
5413      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5414    else
5415      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5416    fi
5417    ;;
5418esac
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428if test -n "$ac_tool_prefix"; then
5429  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5430set dummy ${ac_tool_prefix}objdump; ac_word=$2
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432$as_echo_n "checking for $ac_word... " >&6; }
5433if ${ac_cv_prog_OBJDUMP+:} false; then :
5434  $as_echo_n "(cached) " >&6
5435else
5436  if test -n "$OBJDUMP"; then
5437  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5438else
5439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440for as_dir in $PATH
5441do
5442  IFS=$as_save_IFS
5443  test -z "$as_dir" && as_dir=.
5444    for ac_exec_ext in '' $ac_executable_extensions; do
5445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5446    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448    break 2
5449  fi
5450done
5451  done
5452IFS=$as_save_IFS
5453
5454fi
5455fi
5456OBJDUMP=$ac_cv_prog_OBJDUMP
5457if test -n "$OBJDUMP"; then
5458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5459$as_echo "$OBJDUMP" >&6; }
5460else
5461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462$as_echo "no" >&6; }
5463fi
5464
5465
5466fi
5467if test -z "$ac_cv_prog_OBJDUMP"; then
5468  ac_ct_OBJDUMP=$OBJDUMP
5469  # Extract the first word of "objdump", so it can be a program name with args.
5470set dummy objdump; ac_word=$2
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472$as_echo_n "checking for $ac_word... " >&6; }
5473if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5474  $as_echo_n "(cached) " >&6
5475else
5476  if test -n "$ac_ct_OBJDUMP"; then
5477  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5478else
5479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480for as_dir in $PATH
5481do
5482  IFS=$as_save_IFS
5483  test -z "$as_dir" && as_dir=.
5484    for ac_exec_ext in '' $ac_executable_extensions; do
5485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488    break 2
5489  fi
5490done
5491  done
5492IFS=$as_save_IFS
5493
5494fi
5495fi
5496ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5497if test -n "$ac_ct_OBJDUMP"; then
5498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5499$as_echo "$ac_ct_OBJDUMP" >&6; }
5500else
5501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502$as_echo "no" >&6; }
5503fi
5504
5505  if test "x$ac_ct_OBJDUMP" = x; then
5506    OBJDUMP="false"
5507  else
5508    case $cross_compiling:$ac_tool_warned in
5509yes:)
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5512ac_tool_warned=yes ;;
5513esac
5514    OBJDUMP=$ac_ct_OBJDUMP
5515  fi
5516else
5517  OBJDUMP="$ac_cv_prog_OBJDUMP"
5518fi
5519
5520test -z "$OBJDUMP" && OBJDUMP=objdump
5521
5522
5523
5524
5525
5526
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5528$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5529if ${lt_cv_deplibs_check_method+:} false; then :
5530  $as_echo_n "(cached) " >&6
5531else
5532  lt_cv_file_magic_cmd='$MAGIC_CMD'
5533lt_cv_file_magic_test_file=
5534lt_cv_deplibs_check_method='unknown'
5535# Need to set the preceding variable on all platforms that support
5536# interlibrary dependencies.
5537# 'none' -- dependencies not supported.
5538# 'unknown' -- same as none, but documents that we really don't know.
5539# 'pass_all' -- all dependencies passed with no checks.
5540# 'test_compile' -- check by making test program.
5541# 'file_magic [[regex]]' -- check by looking for files in library path
5542# that responds to the $file_magic_cmd with a given extended regex.
5543# If you have 'file' or equivalent on your system and you're not sure
5544# whether 'pass_all' will *always* work, you probably want this one.
5545
5546case $host_os in
5547aix[4-9]*)
5548  lt_cv_deplibs_check_method=pass_all
5549  ;;
5550
5551beos*)
5552  lt_cv_deplibs_check_method=pass_all
5553  ;;
5554
5555bsdi[45]*)
5556  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5557  lt_cv_file_magic_cmd='/usr/bin/file -L'
5558  lt_cv_file_magic_test_file=/shlib/libc.so
5559  ;;
5560
5561cygwin*)
5562  # func_win32_libid is a shell function defined in ltmain.sh
5563  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5564  lt_cv_file_magic_cmd='func_win32_libid'
5565  ;;
5566
5567mingw* | pw32*)
5568  # Base MSYS/MinGW do not provide the 'file' command needed by
5569  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5570  # unless we find 'file', for example because we are cross-compiling.
5571  if ( file / ) >/dev/null 2>&1; then
5572    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5573    lt_cv_file_magic_cmd='func_win32_libid'
5574  else
5575    # Keep this pattern in sync with the one in func_win32_libid.
5576    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5577    lt_cv_file_magic_cmd='$OBJDUMP -f'
5578  fi
5579  ;;
5580
5581cegcc*)
5582  # use the weaker test based on 'objdump'. See mingw*.
5583  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5584  lt_cv_file_magic_cmd='$OBJDUMP -f'
5585  ;;
5586
5587darwin* | rhapsody*)
5588  lt_cv_deplibs_check_method=pass_all
5589  ;;
5590
5591freebsd* | dragonfly*)
5592  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5593    case $host_cpu in
5594    i*86 )
5595      # Not sure whether the presence of OpenBSD here was a mistake.
5596      # Let's accept both of them until this is cleared up.
5597      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5598      lt_cv_file_magic_cmd=/usr/bin/file
5599      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5600      ;;
5601    esac
5602  else
5603    lt_cv_deplibs_check_method=pass_all
5604  fi
5605  ;;
5606
5607haiku*)
5608  lt_cv_deplibs_check_method=pass_all
5609  ;;
5610
5611hpux10.20* | hpux11*)
5612  lt_cv_file_magic_cmd=/usr/bin/file
5613  case $host_cpu in
5614  ia64*)
5615    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5616    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5617    ;;
5618  hppa*64*)
5619    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]'
5620    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5621    ;;
5622  *)
5623    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5624    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5625    ;;
5626  esac
5627  ;;
5628
5629interix[3-9]*)
5630  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5631  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5632  ;;
5633
5634irix5* | irix6* | nonstopux*)
5635  case $LD in
5636  *-32|*"-32 ") libmagic=32-bit;;
5637  *-n32|*"-n32 ") libmagic=N32;;
5638  *-64|*"-64 ") libmagic=64-bit;;
5639  *) libmagic=never-match;;
5640  esac
5641  lt_cv_deplibs_check_method=pass_all
5642  ;;
5643
5644# This must be glibc/ELF.
5645linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5646  lt_cv_deplibs_check_method=pass_all
5647  ;;
5648
5649netbsd*)
5650  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5651    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5652  else
5653    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5654  fi
5655  ;;
5656
5657newos6*)
5658  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5659  lt_cv_file_magic_cmd=/usr/bin/file
5660  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5661  ;;
5662
5663*nto* | *qnx*)
5664  lt_cv_deplibs_check_method=pass_all
5665  ;;
5666
5667openbsd* | bitrig*)
5668  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5669    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5670  else
5671    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5672  fi
5673  ;;
5674
5675osf3* | osf4* | osf5*)
5676  lt_cv_deplibs_check_method=pass_all
5677  ;;
5678
5679rdos*)
5680  lt_cv_deplibs_check_method=pass_all
5681  ;;
5682
5683solaris*)
5684  lt_cv_deplibs_check_method=pass_all
5685  ;;
5686
5687sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5688  lt_cv_deplibs_check_method=pass_all
5689  ;;
5690
5691sysv4 | sysv4.3*)
5692  case $host_vendor in
5693  motorola)
5694    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]'
5695    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5696    ;;
5697  ncr)
5698    lt_cv_deplibs_check_method=pass_all
5699    ;;
5700  sequent)
5701    lt_cv_file_magic_cmd='/bin/file'
5702    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5703    ;;
5704  sni)
5705    lt_cv_file_magic_cmd='/bin/file'
5706    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5707    lt_cv_file_magic_test_file=/lib/libc.so
5708    ;;
5709  siemens)
5710    lt_cv_deplibs_check_method=pass_all
5711    ;;
5712  pc)
5713    lt_cv_deplibs_check_method=pass_all
5714    ;;
5715  esac
5716  ;;
5717
5718tpf*)
5719  lt_cv_deplibs_check_method=pass_all
5720  ;;
5721os2*)
5722  lt_cv_deplibs_check_method=pass_all
5723  ;;
5724esac
5725
5726fi
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5728$as_echo "$lt_cv_deplibs_check_method" >&6; }
5729
5730file_magic_glob=
5731want_nocaseglob=no
5732if test "$build" = "$host"; then
5733  case $host_os in
5734  mingw* | pw32*)
5735    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5736      want_nocaseglob=yes
5737    else
5738      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5739    fi
5740    ;;
5741  esac
5742fi
5743
5744file_magic_cmd=$lt_cv_file_magic_cmd
5745deplibs_check_method=$lt_cv_deplibs_check_method
5746test -z "$deplibs_check_method" && deplibs_check_method=unknown
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769if test -n "$ac_tool_prefix"; then
5770  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5771set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773$as_echo_n "checking for $ac_word... " >&6; }
5774if ${ac_cv_prog_DLLTOOL+:} false; then :
5775  $as_echo_n "(cached) " >&6
5776else
5777  if test -n "$DLLTOOL"; then
5778  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5779else
5780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH
5782do
5783  IFS=$as_save_IFS
5784  test -z "$as_dir" && as_dir=.
5785    for ac_exec_ext in '' $ac_executable_extensions; do
5786  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5787    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789    break 2
5790  fi
5791done
5792  done
5793IFS=$as_save_IFS
5794
5795fi
5796fi
5797DLLTOOL=$ac_cv_prog_DLLTOOL
5798if test -n "$DLLTOOL"; then
5799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5800$as_echo "$DLLTOOL" >&6; }
5801else
5802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803$as_echo "no" >&6; }
5804fi
5805
5806
5807fi
5808if test -z "$ac_cv_prog_DLLTOOL"; then
5809  ac_ct_DLLTOOL=$DLLTOOL
5810  # Extract the first word of "dlltool", so it can be a program name with args.
5811set dummy dlltool; ac_word=$2
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813$as_echo_n "checking for $ac_word... " >&6; }
5814if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5815  $as_echo_n "(cached) " >&6
5816else
5817  if test -n "$ac_ct_DLLTOOL"; then
5818  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5819else
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823  IFS=$as_save_IFS
5824  test -z "$as_dir" && as_dir=.
5825    for ac_exec_ext in '' $ac_executable_extensions; do
5826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5827    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829    break 2
5830  fi
5831done
5832  done
5833IFS=$as_save_IFS
5834
5835fi
5836fi
5837ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5838if test -n "$ac_ct_DLLTOOL"; then
5839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5840$as_echo "$ac_ct_DLLTOOL" >&6; }
5841else
5842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843$as_echo "no" >&6; }
5844fi
5845
5846  if test "x$ac_ct_DLLTOOL" = x; then
5847    DLLTOOL="false"
5848  else
5849    case $cross_compiling:$ac_tool_warned in
5850yes:)
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5853ac_tool_warned=yes ;;
5854esac
5855    DLLTOOL=$ac_ct_DLLTOOL
5856  fi
5857else
5858  DLLTOOL="$ac_cv_prog_DLLTOOL"
5859fi
5860
5861test -z "$DLLTOOL" && DLLTOOL=dlltool
5862
5863
5864
5865
5866
5867
5868
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5870$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5871if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5872  $as_echo_n "(cached) " >&6
5873else
5874  lt_cv_sharedlib_from_linklib_cmd='unknown'
5875
5876case $host_os in
5877cygwin* | mingw* | pw32* | cegcc*)
5878  # two different shell functions defined in ltmain.sh;
5879  # decide which one to use based on capabilities of $DLLTOOL
5880  case `$DLLTOOL --help 2>&1` in
5881  *--identify-strict*)
5882    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5883    ;;
5884  *)
5885    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5886    ;;
5887  esac
5888  ;;
5889*)
5890  # fallback: assume linklib IS sharedlib
5891  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5892  ;;
5893esac
5894
5895fi
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5897$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5898sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5899test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5900
5901
5902
5903
5904
5905
5906
5907
5908if test -n "$ac_tool_prefix"; then
5909  for ac_prog in ar
5910  do
5911    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5912set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914$as_echo_n "checking for $ac_word... " >&6; }
5915if ${ac_cv_prog_AR+:} false; then :
5916  $as_echo_n "(cached) " >&6
5917else
5918  if test -n "$AR"; then
5919  ac_cv_prog_AR="$AR" # Let the user override the test.
5920else
5921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922for as_dir in $PATH
5923do
5924  IFS=$as_save_IFS
5925  test -z "$as_dir" && as_dir=.
5926    for ac_exec_ext in '' $ac_executable_extensions; do
5927  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930    break 2
5931  fi
5932done
5933  done
5934IFS=$as_save_IFS
5935
5936fi
5937fi
5938AR=$ac_cv_prog_AR
5939if test -n "$AR"; then
5940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5941$as_echo "$AR" >&6; }
5942else
5943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944$as_echo "no" >&6; }
5945fi
5946
5947
5948    test -n "$AR" && break
5949  done
5950fi
5951if test -z "$AR"; then
5952  ac_ct_AR=$AR
5953  for ac_prog in ar
5954do
5955  # Extract the first word of "$ac_prog", so it can be a program name with args.
5956set dummy $ac_prog; ac_word=$2
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958$as_echo_n "checking for $ac_word... " >&6; }
5959if ${ac_cv_prog_ac_ct_AR+:} false; then :
5960  $as_echo_n "(cached) " >&6
5961else
5962  if test -n "$ac_ct_AR"; then
5963  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5964else
5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966for as_dir in $PATH
5967do
5968  IFS=$as_save_IFS
5969  test -z "$as_dir" && as_dir=.
5970    for ac_exec_ext in '' $ac_executable_extensions; do
5971  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972    ac_cv_prog_ac_ct_AR="$ac_prog"
5973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974    break 2
5975  fi
5976done
5977  done
5978IFS=$as_save_IFS
5979
5980fi
5981fi
5982ac_ct_AR=$ac_cv_prog_ac_ct_AR
5983if test -n "$ac_ct_AR"; then
5984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5985$as_echo "$ac_ct_AR" >&6; }
5986else
5987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988$as_echo "no" >&6; }
5989fi
5990
5991
5992  test -n "$ac_ct_AR" && break
5993done
5994
5995  if test "x$ac_ct_AR" = x; then
5996    AR="false"
5997  else
5998    case $cross_compiling:$ac_tool_warned in
5999yes:)
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6002ac_tool_warned=yes ;;
6003esac
6004    AR=$ac_ct_AR
6005  fi
6006fi
6007
6008: ${AR=ar}
6009: ${AR_FLAGS=cru}
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6022$as_echo_n "checking for archiver @FILE support... " >&6; }
6023if ${lt_cv_ar_at_file+:} false; then :
6024  $as_echo_n "(cached) " >&6
6025else
6026  lt_cv_ar_at_file=no
6027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028/* end confdefs.h.  */
6029
6030int
6031main ()
6032{
6033
6034  ;
6035  return 0;
6036}
6037_ACEOF
6038if ac_fn_c_try_compile "$LINENO"; then :
6039  echo conftest.$ac_objext > conftest.lst
6040      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6041      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6042  (eval $lt_ar_try) 2>&5
6043  ac_status=$?
6044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6045  test $ac_status = 0; }
6046      if test 0 -eq "$ac_status"; then
6047	# Ensure the archiver fails upon bogus file names.
6048	rm -f conftest.$ac_objext libconftest.a
6049	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6050  (eval $lt_ar_try) 2>&5
6051  ac_status=$?
6052  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6053  test $ac_status = 0; }
6054	if test 0 -ne "$ac_status"; then
6055          lt_cv_ar_at_file=@
6056        fi
6057      fi
6058      rm -f conftest.* libconftest.a
6059
6060fi
6061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062
6063fi
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6065$as_echo "$lt_cv_ar_at_file" >&6; }
6066
6067if test no = "$lt_cv_ar_at_file"; then
6068  archiver_list_spec=
6069else
6070  archiver_list_spec=$lt_cv_ar_at_file
6071fi
6072
6073
6074
6075
6076
6077
6078
6079if test -n "$ac_tool_prefix"; then
6080  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6081set dummy ${ac_tool_prefix}strip; ac_word=$2
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6083$as_echo_n "checking for $ac_word... " >&6; }
6084if ${ac_cv_prog_STRIP+:} false; then :
6085  $as_echo_n "(cached) " >&6
6086else
6087  if test -n "$STRIP"; then
6088  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6089else
6090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091for as_dir in $PATH
6092do
6093  IFS=$as_save_IFS
6094  test -z "$as_dir" && as_dir=.
6095    for ac_exec_ext in '' $ac_executable_extensions; do
6096  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6097    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6099    break 2
6100  fi
6101done
6102  done
6103IFS=$as_save_IFS
6104
6105fi
6106fi
6107STRIP=$ac_cv_prog_STRIP
6108if test -n "$STRIP"; then
6109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6110$as_echo "$STRIP" >&6; }
6111else
6112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113$as_echo "no" >&6; }
6114fi
6115
6116
6117fi
6118if test -z "$ac_cv_prog_STRIP"; then
6119  ac_ct_STRIP=$STRIP
6120  # Extract the first word of "strip", so it can be a program name with args.
6121set dummy strip; ac_word=$2
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6123$as_echo_n "checking for $ac_word... " >&6; }
6124if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6125  $as_echo_n "(cached) " >&6
6126else
6127  if test -n "$ac_ct_STRIP"; then
6128  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6129else
6130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131for as_dir in $PATH
6132do
6133  IFS=$as_save_IFS
6134  test -z "$as_dir" && as_dir=.
6135    for ac_exec_ext in '' $ac_executable_extensions; do
6136  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6137    ac_cv_prog_ac_ct_STRIP="strip"
6138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139    break 2
6140  fi
6141done
6142  done
6143IFS=$as_save_IFS
6144
6145fi
6146fi
6147ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6148if test -n "$ac_ct_STRIP"; then
6149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6150$as_echo "$ac_ct_STRIP" >&6; }
6151else
6152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153$as_echo "no" >&6; }
6154fi
6155
6156  if test "x$ac_ct_STRIP" = x; then
6157    STRIP=":"
6158  else
6159    case $cross_compiling:$ac_tool_warned in
6160yes:)
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6163ac_tool_warned=yes ;;
6164esac
6165    STRIP=$ac_ct_STRIP
6166  fi
6167else
6168  STRIP="$ac_cv_prog_STRIP"
6169fi
6170
6171test -z "$STRIP" && STRIP=:
6172
6173
6174
6175
6176
6177
6178if test -n "$ac_tool_prefix"; then
6179  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6180set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182$as_echo_n "checking for $ac_word... " >&6; }
6183if ${ac_cv_prog_RANLIB+:} false; then :
6184  $as_echo_n "(cached) " >&6
6185else
6186  if test -n "$RANLIB"; then
6187  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6188else
6189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190for as_dir in $PATH
6191do
6192  IFS=$as_save_IFS
6193  test -z "$as_dir" && as_dir=.
6194    for ac_exec_ext in '' $ac_executable_extensions; do
6195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6196    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198    break 2
6199  fi
6200done
6201  done
6202IFS=$as_save_IFS
6203
6204fi
6205fi
6206RANLIB=$ac_cv_prog_RANLIB
6207if test -n "$RANLIB"; then
6208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6209$as_echo "$RANLIB" >&6; }
6210else
6211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212$as_echo "no" >&6; }
6213fi
6214
6215
6216fi
6217if test -z "$ac_cv_prog_RANLIB"; then
6218  ac_ct_RANLIB=$RANLIB
6219  # Extract the first word of "ranlib", so it can be a program name with args.
6220set dummy ranlib; ac_word=$2
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222$as_echo_n "checking for $ac_word... " >&6; }
6223if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6224  $as_echo_n "(cached) " >&6
6225else
6226  if test -n "$ac_ct_RANLIB"; then
6227  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6228else
6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230for as_dir in $PATH
6231do
6232  IFS=$as_save_IFS
6233  test -z "$as_dir" && as_dir=.
6234    for ac_exec_ext in '' $ac_executable_extensions; do
6235  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6236    ac_cv_prog_ac_ct_RANLIB="ranlib"
6237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238    break 2
6239  fi
6240done
6241  done
6242IFS=$as_save_IFS
6243
6244fi
6245fi
6246ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6247if test -n "$ac_ct_RANLIB"; then
6248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6249$as_echo "$ac_ct_RANLIB" >&6; }
6250else
6251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252$as_echo "no" >&6; }
6253fi
6254
6255  if test "x$ac_ct_RANLIB" = x; then
6256    RANLIB=":"
6257  else
6258    case $cross_compiling:$ac_tool_warned in
6259yes:)
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6262ac_tool_warned=yes ;;
6263esac
6264    RANLIB=$ac_ct_RANLIB
6265  fi
6266else
6267  RANLIB="$ac_cv_prog_RANLIB"
6268fi
6269
6270test -z "$RANLIB" && RANLIB=:
6271
6272
6273
6274
6275
6276
6277# Determine commands to create old-style static archives.
6278old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6279old_postinstall_cmds='chmod 644 $oldlib'
6280old_postuninstall_cmds=
6281
6282if test -n "$RANLIB"; then
6283  case $host_os in
6284  bitrig* | openbsd*)
6285    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6286    ;;
6287  *)
6288    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6289    ;;
6290  esac
6291  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6292fi
6293
6294case $host_os in
6295  darwin*)
6296    lock_old_archive_extraction=yes ;;
6297  *)
6298    lock_old_archive_extraction=no ;;
6299esac
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339# If no C compiler was specified, use CC.
6340LTCC=${LTCC-"$CC"}
6341
6342# If no C compiler flags were specified, use CFLAGS.
6343LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6344
6345# Allow CC to be a program name with arguments.
6346compiler=$CC
6347
6348
6349# Check for command to grab the raw symbol name followed by C symbol from nm.
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6351$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6352if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6353  $as_echo_n "(cached) " >&6
6354else
6355
6356# These are sane defaults that work on at least a few old systems.
6357# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6358
6359# Character class describing NM global symbol codes.
6360symcode='[BCDEGRST]'
6361
6362# Regexp to match symbols that can be accessed directly from C.
6363sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6364
6365# Define system-specific variables.
6366case $host_os in
6367aix*)
6368  symcode='[BCDT]'
6369  ;;
6370cygwin* | mingw* | pw32* | cegcc*)
6371  symcode='[ABCDGISTW]'
6372  ;;
6373hpux*)
6374  if test ia64 = "$host_cpu"; then
6375    symcode='[ABCDEGRST]'
6376  fi
6377  ;;
6378irix* | nonstopux*)
6379  symcode='[BCDEGRST]'
6380  ;;
6381osf*)
6382  symcode='[BCDEGQRST]'
6383  ;;
6384solaris*)
6385  symcode='[BDRT]'
6386  ;;
6387sco3.2v5*)
6388  symcode='[DT]'
6389  ;;
6390sysv4.2uw2*)
6391  symcode='[DT]'
6392  ;;
6393sysv5* | sco5v6* | unixware* | OpenUNIX*)
6394  symcode='[ABDT]'
6395  ;;
6396sysv4)
6397  symcode='[DFNSTU]'
6398  ;;
6399esac
6400
6401# If we're using GNU nm, then use its standard symbol codes.
6402case `$NM -V 2>&1` in
6403*GNU* | *'with BFD'*)
6404  symcode='[ABCDGIRSTW]' ;;
6405esac
6406
6407if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6408  # Gets list of data symbols to import.
6409  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6410  # Adjust the below global symbol transforms to fixup imported variables.
6411  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6412  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6413  lt_c_name_lib_hook="\
6414  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6415  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6416else
6417  # Disable hooks by default.
6418  lt_cv_sys_global_symbol_to_import=
6419  lt_cdecl_hook=
6420  lt_c_name_hook=
6421  lt_c_name_lib_hook=
6422fi
6423
6424# Transform an extracted symbol line into a proper C declaration.
6425# Some systems (esp. on ia64) link data and code symbols differently,
6426# so use this general approach.
6427lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6428$lt_cdecl_hook\
6429" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6430" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6431
6432# Transform an extracted symbol line into symbol name and symbol address
6433lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6434$lt_c_name_hook\
6435" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6436" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6437
6438# Transform an extracted symbol line into symbol name with lib prefix and
6439# symbol address.
6440lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6441$lt_c_name_lib_hook\
6442" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6443" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6444" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6445
6446# Handle CRLF in mingw tool chain
6447opt_cr=
6448case $build_os in
6449mingw*)
6450  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6451  ;;
6452esac
6453
6454# Try without a prefix underscore, then with it.
6455for ac_symprfx in "" "_"; do
6456
6457  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6458  symxfrm="\\1 $ac_symprfx\\2 \\2"
6459
6460  # Write the raw and C identifiers.
6461  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6462    # Fake it for dumpbin and say T for any non-static function,
6463    # D for any global variable and I for any imported variable.
6464    # Also find C++ and __fastcall symbols from MSVC++,
6465    # which start with @ or ?.
6466    lt_cv_sys_global_symbol_pipe="$AWK '"\
6467"     {last_section=section; section=\$ 3};"\
6468"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6469"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6470"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6471"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6472"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6473"     \$ 0!~/External *\|/{next};"\
6474"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6475"     {if(hide[section]) next};"\
6476"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6477"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6478"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6479"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6480"     ' prfx=^$ac_symprfx"
6481  else
6482    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6483  fi
6484  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6485
6486  # Check to see that the pipe works correctly.
6487  pipe_works=no
6488
6489  rm -f conftest*
6490  cat > conftest.$ac_ext <<_LT_EOF
6491#ifdef __cplusplus
6492extern "C" {
6493#endif
6494char nm_test_var;
6495void nm_test_func(void);
6496void nm_test_func(void){}
6497#ifdef __cplusplus
6498}
6499#endif
6500int main(){nm_test_var='a';nm_test_func();return(0);}
6501_LT_EOF
6502
6503  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6504  (eval $ac_compile) 2>&5
6505  ac_status=$?
6506  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6507  test $ac_status = 0; }; then
6508    # Now try to grab the symbols.
6509    nlist=conftest.nm
6510    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6511  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6512  ac_status=$?
6513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6514  test $ac_status = 0; } && test -s "$nlist"; then
6515      # Try sorting and uniquifying the output.
6516      if sort "$nlist" | uniq > "$nlist"T; then
6517	mv -f "$nlist"T "$nlist"
6518      else
6519	rm -f "$nlist"T
6520      fi
6521
6522      # Make sure that we snagged all the symbols we need.
6523      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6524	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6525	  cat <<_LT_EOF > conftest.$ac_ext
6526/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6527#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6528/* DATA imports from DLLs on WIN32 can't be const, because runtime
6529   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6530# define LT@&t@_DLSYM_CONST
6531#elif defined __osf__
6532/* This system does not cope well with relocations in const data.  */
6533# define LT@&t@_DLSYM_CONST
6534#else
6535# define LT@&t@_DLSYM_CONST const
6536#endif
6537
6538#ifdef __cplusplus
6539extern "C" {
6540#endif
6541
6542_LT_EOF
6543	  # Now generate the symbol file.
6544	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6545
6546	  cat <<_LT_EOF >> conftest.$ac_ext
6547
6548/* The mapping between symbol names and symbols.  */
6549LT@&t@_DLSYM_CONST struct {
6550  const char *name;
6551  void       *address;
6552}
6553lt__PROGRAM__LTX_preloaded_symbols[] =
6554{
6555  { "@PROGRAM@", (void *) 0 },
6556_LT_EOF
6557	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6558	  cat <<\_LT_EOF >> conftest.$ac_ext
6559  {0, (void *) 0}
6560};
6561
6562/* This works around a problem in FreeBSD linker */
6563#ifdef FREEBSD_WORKAROUND
6564static const void *lt_preloaded_setup() {
6565  return lt__PROGRAM__LTX_preloaded_symbols;
6566}
6567#endif
6568
6569#ifdef __cplusplus
6570}
6571#endif
6572_LT_EOF
6573	  # Now try linking the two files.
6574	  mv conftest.$ac_objext conftstm.$ac_objext
6575	  lt_globsym_save_LIBS=$LIBS
6576	  lt_globsym_save_CFLAGS=$CFLAGS
6577	  LIBS=conftstm.$ac_objext
6578	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6579	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6580  (eval $ac_link) 2>&5
6581  ac_status=$?
6582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6583  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6584	    pipe_works=yes
6585	  fi
6586	  LIBS=$lt_globsym_save_LIBS
6587	  CFLAGS=$lt_globsym_save_CFLAGS
6588	else
6589	  echo "cannot find nm_test_func in $nlist" >&5
6590	fi
6591      else
6592	echo "cannot find nm_test_var in $nlist" >&5
6593      fi
6594    else
6595      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6596    fi
6597  else
6598    echo "$progname: failed program was:" >&5
6599    cat conftest.$ac_ext >&5
6600  fi
6601  rm -rf conftest* conftst*
6602
6603  # Do not use the global_symbol_pipe unless it works.
6604  if test yes = "$pipe_works"; then
6605    break
6606  else
6607    lt_cv_sys_global_symbol_pipe=
6608  fi
6609done
6610
6611fi
6612
6613if test -z "$lt_cv_sys_global_symbol_pipe"; then
6614  lt_cv_sys_global_symbol_to_cdecl=
6615fi
6616if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6618$as_echo "failed" >&6; }
6619else
6620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6621$as_echo "ok" >&6; }
6622fi
6623
6624# Response file support.
6625if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6626  nm_file_list_spec='@'
6627elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6628  nm_file_list_spec='@'
6629fi
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6668$as_echo_n "checking for sysroot... " >&6; }
6669
6670@%:@ Check whether --with-sysroot was given.
6671if test "${with_sysroot+set}" = set; then :
6672  withval=$with_sysroot;
6673else
6674  with_sysroot=no
6675fi
6676
6677
6678lt_sysroot=
6679case $with_sysroot in #(
6680 yes)
6681   if test yes = "$GCC"; then
6682     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6683   fi
6684   ;; #(
6685 /*)
6686   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6687   ;; #(
6688 no|'')
6689   ;; #(
6690 *)
6691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6692$as_echo "$with_sysroot" >&6; }
6693   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6694   ;;
6695esac
6696
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6698$as_echo "${lt_sysroot:-no}" >&6; }
6699
6700
6701
6702
6703
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6705$as_echo_n "checking for a working dd... " >&6; }
6706if ${ac_cv_path_lt_DD+:} false; then :
6707  $as_echo_n "(cached) " >&6
6708else
6709  printf 0123456789abcdef0123456789abcdef >conftest.i
6710cat conftest.i conftest.i >conftest2.i
6711: ${lt_DD:=$DD}
6712if test -z "$lt_DD"; then
6713  ac_path_lt_DD_found=false
6714  # Loop through the user's path and test for each of PROGNAME-LIST
6715  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716for as_dir in $PATH
6717do
6718  IFS=$as_save_IFS
6719  test -z "$as_dir" && as_dir=.
6720    for ac_prog in dd; do
6721    for ac_exec_ext in '' $ac_executable_extensions; do
6722      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6723      as_fn_executable_p "$ac_path_lt_DD" || continue
6724if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6725  cmp -s conftest.i conftest.out \
6726  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6727fi
6728      $ac_path_lt_DD_found && break 3
6729    done
6730  done
6731  done
6732IFS=$as_save_IFS
6733  if test -z "$ac_cv_path_lt_DD"; then
6734    :
6735  fi
6736else
6737  ac_cv_path_lt_DD=$lt_DD
6738fi
6739
6740rm -f conftest.i conftest2.i conftest.out
6741fi
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6743$as_echo "$ac_cv_path_lt_DD" >&6; }
6744
6745
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6747$as_echo_n "checking how to truncate binary pipes... " >&6; }
6748if ${lt_cv_truncate_bin+:} false; then :
6749  $as_echo_n "(cached) " >&6
6750else
6751  printf 0123456789abcdef0123456789abcdef >conftest.i
6752cat conftest.i conftest.i >conftest2.i
6753lt_cv_truncate_bin=
6754if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6755  cmp -s conftest.i conftest.out \
6756  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6757fi
6758rm -f conftest.i conftest2.i conftest.out
6759test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6760fi
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6762$as_echo "$lt_cv_truncate_bin" >&6; }
6763
6764
6765
6766
6767
6768
6769
6770# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6771func_cc_basename ()
6772{
6773    for cc_temp in @S|@*""; do
6774      case $cc_temp in
6775        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6776        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6777        \-*) ;;
6778        *) break;;
6779      esac
6780    done
6781    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6782}
6783
6784@%:@ Check whether --enable-libtool-lock was given.
6785if test "${enable_libtool_lock+set}" = set; then :
6786  enableval=$enable_libtool_lock;
6787fi
6788
6789test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6790
6791# Some flags need to be propagated to the compiler or linker for good
6792# libtool support.
6793case $host in
6794ia64-*-hpux*)
6795  # Find out what ABI is being produced by ac_compile, and set mode
6796  # options accordingly.
6797  echo 'int i;' > conftest.$ac_ext
6798  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6799  (eval $ac_compile) 2>&5
6800  ac_status=$?
6801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6802  test $ac_status = 0; }; then
6803    case `/usr/bin/file conftest.$ac_objext` in
6804      *ELF-32*)
6805	HPUX_IA64_MODE=32
6806	;;
6807      *ELF-64*)
6808	HPUX_IA64_MODE=64
6809	;;
6810    esac
6811  fi
6812  rm -rf conftest*
6813  ;;
6814*-*-irix6*)
6815  # Find out what ABI is being produced by ac_compile, and set linker
6816  # options accordingly.
6817  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6818  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6819  (eval $ac_compile) 2>&5
6820  ac_status=$?
6821  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6822  test $ac_status = 0; }; then
6823    if test yes = "$lt_cv_prog_gnu_ld"; then
6824      case `/usr/bin/file conftest.$ac_objext` in
6825	*32-bit*)
6826	  LD="${LD-ld} -melf32bsmip"
6827	  ;;
6828	*N32*)
6829	  LD="${LD-ld} -melf32bmipn32"
6830	  ;;
6831	*64-bit*)
6832	  LD="${LD-ld} -melf64bmip"
6833	;;
6834      esac
6835    else
6836      case `/usr/bin/file conftest.$ac_objext` in
6837	*32-bit*)
6838	  LD="${LD-ld} -32"
6839	  ;;
6840	*N32*)
6841	  LD="${LD-ld} -n32"
6842	  ;;
6843	*64-bit*)
6844	  LD="${LD-ld} -64"
6845	  ;;
6846      esac
6847    fi
6848  fi
6849  rm -rf conftest*
6850  ;;
6851
6852mips64*-*linux*)
6853  # Find out what ABI is being produced by ac_compile, and set linker
6854  # options accordingly.
6855  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6856  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6857  (eval $ac_compile) 2>&5
6858  ac_status=$?
6859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860  test $ac_status = 0; }; then
6861    emul=elf
6862    case `/usr/bin/file conftest.$ac_objext` in
6863      *32-bit*)
6864	emul="${emul}32"
6865	;;
6866      *64-bit*)
6867	emul="${emul}64"
6868	;;
6869    esac
6870    case `/usr/bin/file conftest.$ac_objext` in
6871      *MSB*)
6872	emul="${emul}btsmip"
6873	;;
6874      *LSB*)
6875	emul="${emul}ltsmip"
6876	;;
6877    esac
6878    case `/usr/bin/file conftest.$ac_objext` in
6879      *N32*)
6880	emul="${emul}n32"
6881	;;
6882    esac
6883    LD="${LD-ld} -m $emul"
6884  fi
6885  rm -rf conftest*
6886  ;;
6887
6888x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6889s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6890  # Find out what ABI is being produced by ac_compile, and set linker
6891  # options accordingly.  Note that the listed cases only cover the
6892  # situations where additional linker options are needed (such as when
6893  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6894  # vice versa); the common cases where no linker options are needed do
6895  # not appear in the list.
6896  echo 'int i;' > conftest.$ac_ext
6897  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6898  (eval $ac_compile) 2>&5
6899  ac_status=$?
6900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6901  test $ac_status = 0; }; then
6902    case `/usr/bin/file conftest.o` in
6903      *32-bit*)
6904	case $host in
6905	  x86_64-*kfreebsd*-gnu)
6906	    LD="${LD-ld} -m elf_i386_fbsd"
6907	    ;;
6908	  x86_64-*linux*)
6909	    case `/usr/bin/file conftest.o` in
6910	      *x86-64*)
6911		LD="${LD-ld} -m elf32_x86_64"
6912		;;
6913	      *)
6914		LD="${LD-ld} -m elf_i386"
6915		;;
6916	    esac
6917	    ;;
6918	  powerpc64le-*linux*)
6919	    LD="${LD-ld} -m elf32lppclinux"
6920	    ;;
6921	  powerpc64-*linux*)
6922	    LD="${LD-ld} -m elf32ppclinux"
6923	    ;;
6924	  s390x-*linux*)
6925	    LD="${LD-ld} -m elf_s390"
6926	    ;;
6927	  sparc64-*linux*)
6928	    LD="${LD-ld} -m elf32_sparc"
6929	    ;;
6930	esac
6931	;;
6932      *64-bit*)
6933	case $host in
6934	  x86_64-*kfreebsd*-gnu)
6935	    LD="${LD-ld} -m elf_x86_64_fbsd"
6936	    ;;
6937	  x86_64-*linux*)
6938	    LD="${LD-ld} -m elf_x86_64"
6939	    ;;
6940	  powerpcle-*linux*)
6941	    LD="${LD-ld} -m elf64lppc"
6942	    ;;
6943	  powerpc-*linux*)
6944	    LD="${LD-ld} -m elf64ppc"
6945	    ;;
6946	  s390*-*linux*|s390*-*tpf*)
6947	    LD="${LD-ld} -m elf64_s390"
6948	    ;;
6949	  sparc*-*linux*)
6950	    LD="${LD-ld} -m elf64_sparc"
6951	    ;;
6952	esac
6953	;;
6954    esac
6955  fi
6956  rm -rf conftest*
6957  ;;
6958
6959*-*-sco3.2v5*)
6960  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6961  SAVE_CFLAGS=$CFLAGS
6962  CFLAGS="$CFLAGS -belf"
6963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6964$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6965if ${lt_cv_cc_needs_belf+:} false; then :
6966  $as_echo_n "(cached) " >&6
6967else
6968  ac_ext=c
6969ac_cpp='$CPP $CPPFLAGS'
6970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6972ac_compiler_gnu=$ac_cv_c_compiler_gnu
6973
6974     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975/* end confdefs.h.  */
6976
6977int
6978main ()
6979{
6980
6981  ;
6982  return 0;
6983}
6984_ACEOF
6985if ac_fn_c_try_link "$LINENO"; then :
6986  lt_cv_cc_needs_belf=yes
6987else
6988  lt_cv_cc_needs_belf=no
6989fi
6990rm -f core conftest.err conftest.$ac_objext \
6991    conftest$ac_exeext conftest.$ac_ext
6992     ac_ext=c
6993ac_cpp='$CPP $CPPFLAGS'
6994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6996ac_compiler_gnu=$ac_cv_c_compiler_gnu
6997
6998fi
6999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7000$as_echo "$lt_cv_cc_needs_belf" >&6; }
7001  if test yes != "$lt_cv_cc_needs_belf"; then
7002    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7003    CFLAGS=$SAVE_CFLAGS
7004  fi
7005  ;;
7006*-*solaris*)
7007  # Find out what ABI is being produced by ac_compile, and set linker
7008  # options accordingly.
7009  echo 'int i;' > conftest.$ac_ext
7010  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7011  (eval $ac_compile) 2>&5
7012  ac_status=$?
7013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7014  test $ac_status = 0; }; then
7015    case `/usr/bin/file conftest.o` in
7016    *64-bit*)
7017      case $lt_cv_prog_gnu_ld in
7018      yes*)
7019        case $host in
7020        i?86-*-solaris*|x86_64-*-solaris*)
7021          LD="${LD-ld} -m elf_x86_64"
7022          ;;
7023        sparc*-*-solaris*)
7024          LD="${LD-ld} -m elf64_sparc"
7025          ;;
7026        esac
7027        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7028        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7029          LD=${LD-ld}_sol2
7030        fi
7031        ;;
7032      *)
7033	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7034	  LD="${LD-ld} -64"
7035	fi
7036	;;
7037      esac
7038      ;;
7039    esac
7040  fi
7041  rm -rf conftest*
7042  ;;
7043esac
7044
7045need_locks=$enable_libtool_lock
7046
7047if test -n "$ac_tool_prefix"; then
7048  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7049set dummy ${ac_tool_prefix}mt; ac_word=$2
7050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051$as_echo_n "checking for $ac_word... " >&6; }
7052if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7053  $as_echo_n "(cached) " >&6
7054else
7055  if test -n "$MANIFEST_TOOL"; then
7056  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7057else
7058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061  IFS=$as_save_IFS
7062  test -z "$as_dir" && as_dir=.
7063    for ac_exec_ext in '' $ac_executable_extensions; do
7064  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067    break 2
7068  fi
7069done
7070  done
7071IFS=$as_save_IFS
7072
7073fi
7074fi
7075MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7076if test -n "$MANIFEST_TOOL"; then
7077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7078$as_echo "$MANIFEST_TOOL" >&6; }
7079else
7080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081$as_echo "no" >&6; }
7082fi
7083
7084
7085fi
7086if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7087  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7088  # Extract the first word of "mt", so it can be a program name with args.
7089set dummy mt; ac_word=$2
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091$as_echo_n "checking for $ac_word... " >&6; }
7092if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7093  $as_echo_n "(cached) " >&6
7094else
7095  if test -n "$ac_ct_MANIFEST_TOOL"; then
7096  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7097else
7098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099for as_dir in $PATH
7100do
7101  IFS=$as_save_IFS
7102  test -z "$as_dir" && as_dir=.
7103    for ac_exec_ext in '' $ac_executable_extensions; do
7104  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107    break 2
7108  fi
7109done
7110  done
7111IFS=$as_save_IFS
7112
7113fi
7114fi
7115ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7116if test -n "$ac_ct_MANIFEST_TOOL"; then
7117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7118$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7119else
7120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121$as_echo "no" >&6; }
7122fi
7123
7124  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7125    MANIFEST_TOOL=":"
7126  else
7127    case $cross_compiling:$ac_tool_warned in
7128yes:)
7129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7131ac_tool_warned=yes ;;
7132esac
7133    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7134  fi
7135else
7136  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7137fi
7138
7139test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7141$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7142if ${lt_cv_path_mainfest_tool+:} false; then :
7143  $as_echo_n "(cached) " >&6
7144else
7145  lt_cv_path_mainfest_tool=no
7146  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7147  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7148  cat conftest.err >&5
7149  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7150    lt_cv_path_mainfest_tool=yes
7151  fi
7152  rm -f conftest*
7153fi
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7155$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7156if test yes != "$lt_cv_path_mainfest_tool"; then
7157  MANIFEST_TOOL=:
7158fi
7159
7160
7161
7162
7163
7164
7165  case $host_os in
7166    rhapsody* | darwin*)
7167    if test -n "$ac_tool_prefix"; then
7168  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7169set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171$as_echo_n "checking for $ac_word... " >&6; }
7172if ${ac_cv_prog_DSYMUTIL+:} false; then :
7173  $as_echo_n "(cached) " >&6
7174else
7175  if test -n "$DSYMUTIL"; then
7176  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7177else
7178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179for as_dir in $PATH
7180do
7181  IFS=$as_save_IFS
7182  test -z "$as_dir" && as_dir=.
7183    for ac_exec_ext in '' $ac_executable_extensions; do
7184  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7185    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187    break 2
7188  fi
7189done
7190  done
7191IFS=$as_save_IFS
7192
7193fi
7194fi
7195DSYMUTIL=$ac_cv_prog_DSYMUTIL
7196if test -n "$DSYMUTIL"; then
7197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7198$as_echo "$DSYMUTIL" >&6; }
7199else
7200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201$as_echo "no" >&6; }
7202fi
7203
7204
7205fi
7206if test -z "$ac_cv_prog_DSYMUTIL"; then
7207  ac_ct_DSYMUTIL=$DSYMUTIL
7208  # Extract the first word of "dsymutil", so it can be a program name with args.
7209set dummy dsymutil; ac_word=$2
7210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211$as_echo_n "checking for $ac_word... " >&6; }
7212if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7213  $as_echo_n "(cached) " >&6
7214else
7215  if test -n "$ac_ct_DSYMUTIL"; then
7216  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7217else
7218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221  IFS=$as_save_IFS
7222  test -z "$as_dir" && as_dir=.
7223    for ac_exec_ext in '' $ac_executable_extensions; do
7224  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227    break 2
7228  fi
7229done
7230  done
7231IFS=$as_save_IFS
7232
7233fi
7234fi
7235ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7236if test -n "$ac_ct_DSYMUTIL"; then
7237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7238$as_echo "$ac_ct_DSYMUTIL" >&6; }
7239else
7240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241$as_echo "no" >&6; }
7242fi
7243
7244  if test "x$ac_ct_DSYMUTIL" = x; then
7245    DSYMUTIL=":"
7246  else
7247    case $cross_compiling:$ac_tool_warned in
7248yes:)
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7251ac_tool_warned=yes ;;
7252esac
7253    DSYMUTIL=$ac_ct_DSYMUTIL
7254  fi
7255else
7256  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7257fi
7258
7259    if test -n "$ac_tool_prefix"; then
7260  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7261set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263$as_echo_n "checking for $ac_word... " >&6; }
7264if ${ac_cv_prog_NMEDIT+:} false; then :
7265  $as_echo_n "(cached) " >&6
7266else
7267  if test -n "$NMEDIT"; then
7268  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7269else
7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273  IFS=$as_save_IFS
7274  test -z "$as_dir" && as_dir=.
7275    for ac_exec_ext in '' $ac_executable_extensions; do
7276  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279    break 2
7280  fi
7281done
7282  done
7283IFS=$as_save_IFS
7284
7285fi
7286fi
7287NMEDIT=$ac_cv_prog_NMEDIT
7288if test -n "$NMEDIT"; then
7289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7290$as_echo "$NMEDIT" >&6; }
7291else
7292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293$as_echo "no" >&6; }
7294fi
7295
7296
7297fi
7298if test -z "$ac_cv_prog_NMEDIT"; then
7299  ac_ct_NMEDIT=$NMEDIT
7300  # Extract the first word of "nmedit", so it can be a program name with args.
7301set dummy nmedit; ac_word=$2
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303$as_echo_n "checking for $ac_word... " >&6; }
7304if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7305  $as_echo_n "(cached) " >&6
7306else
7307  if test -n "$ac_ct_NMEDIT"; then
7308  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7309else
7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313  IFS=$as_save_IFS
7314  test -z "$as_dir" && as_dir=.
7315    for ac_exec_ext in '' $ac_executable_extensions; do
7316  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319    break 2
7320  fi
7321done
7322  done
7323IFS=$as_save_IFS
7324
7325fi
7326fi
7327ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7328if test -n "$ac_ct_NMEDIT"; then
7329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7330$as_echo "$ac_ct_NMEDIT" >&6; }
7331else
7332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333$as_echo "no" >&6; }
7334fi
7335
7336  if test "x$ac_ct_NMEDIT" = x; then
7337    NMEDIT=":"
7338  else
7339    case $cross_compiling:$ac_tool_warned in
7340yes:)
7341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7343ac_tool_warned=yes ;;
7344esac
7345    NMEDIT=$ac_ct_NMEDIT
7346  fi
7347else
7348  NMEDIT="$ac_cv_prog_NMEDIT"
7349fi
7350
7351    if test -n "$ac_tool_prefix"; then
7352  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7353set dummy ${ac_tool_prefix}lipo; ac_word=$2
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355$as_echo_n "checking for $ac_word... " >&6; }
7356if ${ac_cv_prog_LIPO+:} false; then :
7357  $as_echo_n "(cached) " >&6
7358else
7359  if test -n "$LIPO"; then
7360  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7361else
7362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH
7364do
7365  IFS=$as_save_IFS
7366  test -z "$as_dir" && as_dir=.
7367    for ac_exec_ext in '' $ac_executable_extensions; do
7368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371    break 2
7372  fi
7373done
7374  done
7375IFS=$as_save_IFS
7376
7377fi
7378fi
7379LIPO=$ac_cv_prog_LIPO
7380if test -n "$LIPO"; then
7381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7382$as_echo "$LIPO" >&6; }
7383else
7384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385$as_echo "no" >&6; }
7386fi
7387
7388
7389fi
7390if test -z "$ac_cv_prog_LIPO"; then
7391  ac_ct_LIPO=$LIPO
7392  # Extract the first word of "lipo", so it can be a program name with args.
7393set dummy lipo; ac_word=$2
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395$as_echo_n "checking for $ac_word... " >&6; }
7396if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7397  $as_echo_n "(cached) " >&6
7398else
7399  if test -n "$ac_ct_LIPO"; then
7400  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7401else
7402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403for as_dir in $PATH
7404do
7405  IFS=$as_save_IFS
7406  test -z "$as_dir" && as_dir=.
7407    for ac_exec_ext in '' $ac_executable_extensions; do
7408  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7409    ac_cv_prog_ac_ct_LIPO="lipo"
7410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411    break 2
7412  fi
7413done
7414  done
7415IFS=$as_save_IFS
7416
7417fi
7418fi
7419ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7420if test -n "$ac_ct_LIPO"; then
7421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7422$as_echo "$ac_ct_LIPO" >&6; }
7423else
7424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425$as_echo "no" >&6; }
7426fi
7427
7428  if test "x$ac_ct_LIPO" = x; then
7429    LIPO=":"
7430  else
7431    case $cross_compiling:$ac_tool_warned in
7432yes:)
7433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7435ac_tool_warned=yes ;;
7436esac
7437    LIPO=$ac_ct_LIPO
7438  fi
7439else
7440  LIPO="$ac_cv_prog_LIPO"
7441fi
7442
7443    if test -n "$ac_tool_prefix"; then
7444  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7445set dummy ${ac_tool_prefix}otool; ac_word=$2
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447$as_echo_n "checking for $ac_word... " >&6; }
7448if ${ac_cv_prog_OTOOL+:} false; then :
7449  $as_echo_n "(cached) " >&6
7450else
7451  if test -n "$OTOOL"; then
7452  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7453else
7454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455for as_dir in $PATH
7456do
7457  IFS=$as_save_IFS
7458  test -z "$as_dir" && as_dir=.
7459    for ac_exec_ext in '' $ac_executable_extensions; do
7460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7461    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463    break 2
7464  fi
7465done
7466  done
7467IFS=$as_save_IFS
7468
7469fi
7470fi
7471OTOOL=$ac_cv_prog_OTOOL
7472if test -n "$OTOOL"; then
7473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7474$as_echo "$OTOOL" >&6; }
7475else
7476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477$as_echo "no" >&6; }
7478fi
7479
7480
7481fi
7482if test -z "$ac_cv_prog_OTOOL"; then
7483  ac_ct_OTOOL=$OTOOL
7484  # Extract the first word of "otool", so it can be a program name with args.
7485set dummy otool; ac_word=$2
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487$as_echo_n "checking for $ac_word... " >&6; }
7488if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7489  $as_echo_n "(cached) " >&6
7490else
7491  if test -n "$ac_ct_OTOOL"; then
7492  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7493else
7494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497  IFS=$as_save_IFS
7498  test -z "$as_dir" && as_dir=.
7499    for ac_exec_ext in '' $ac_executable_extensions; do
7500  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501    ac_cv_prog_ac_ct_OTOOL="otool"
7502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503    break 2
7504  fi
7505done
7506  done
7507IFS=$as_save_IFS
7508
7509fi
7510fi
7511ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7512if test -n "$ac_ct_OTOOL"; then
7513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7514$as_echo "$ac_ct_OTOOL" >&6; }
7515else
7516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517$as_echo "no" >&6; }
7518fi
7519
7520  if test "x$ac_ct_OTOOL" = x; then
7521    OTOOL=":"
7522  else
7523    case $cross_compiling:$ac_tool_warned in
7524yes:)
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7527ac_tool_warned=yes ;;
7528esac
7529    OTOOL=$ac_ct_OTOOL
7530  fi
7531else
7532  OTOOL="$ac_cv_prog_OTOOL"
7533fi
7534
7535    if test -n "$ac_tool_prefix"; then
7536  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7537set dummy ${ac_tool_prefix}otool64; ac_word=$2
7538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539$as_echo_n "checking for $ac_word... " >&6; }
7540if ${ac_cv_prog_OTOOL64+:} false; then :
7541  $as_echo_n "(cached) " >&6
7542else
7543  if test -n "$OTOOL64"; then
7544  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7545else
7546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547for as_dir in $PATH
7548do
7549  IFS=$as_save_IFS
7550  test -z "$as_dir" && as_dir=.
7551    for ac_exec_ext in '' $ac_executable_extensions; do
7552  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7553    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555    break 2
7556  fi
7557done
7558  done
7559IFS=$as_save_IFS
7560
7561fi
7562fi
7563OTOOL64=$ac_cv_prog_OTOOL64
7564if test -n "$OTOOL64"; then
7565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7566$as_echo "$OTOOL64" >&6; }
7567else
7568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569$as_echo "no" >&6; }
7570fi
7571
7572
7573fi
7574if test -z "$ac_cv_prog_OTOOL64"; then
7575  ac_ct_OTOOL64=$OTOOL64
7576  # Extract the first word of "otool64", so it can be a program name with args.
7577set dummy otool64; ac_word=$2
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579$as_echo_n "checking for $ac_word... " >&6; }
7580if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7581  $as_echo_n "(cached) " >&6
7582else
7583  if test -n "$ac_ct_OTOOL64"; then
7584  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7585else
7586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587for as_dir in $PATH
7588do
7589  IFS=$as_save_IFS
7590  test -z "$as_dir" && as_dir=.
7591    for ac_exec_ext in '' $ac_executable_extensions; do
7592  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7593    ac_cv_prog_ac_ct_OTOOL64="otool64"
7594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595    break 2
7596  fi
7597done
7598  done
7599IFS=$as_save_IFS
7600
7601fi
7602fi
7603ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7604if test -n "$ac_ct_OTOOL64"; then
7605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7606$as_echo "$ac_ct_OTOOL64" >&6; }
7607else
7608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609$as_echo "no" >&6; }
7610fi
7611
7612  if test "x$ac_ct_OTOOL64" = x; then
7613    OTOOL64=":"
7614  else
7615    case $cross_compiling:$ac_tool_warned in
7616yes:)
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7619ac_tool_warned=yes ;;
7620esac
7621    OTOOL64=$ac_ct_OTOOL64
7622  fi
7623else
7624  OTOOL64="$ac_cv_prog_OTOOL64"
7625fi
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7654$as_echo_n "checking for -single_module linker flag... " >&6; }
7655if ${lt_cv_apple_cc_single_mod+:} false; then :
7656  $as_echo_n "(cached) " >&6
7657else
7658  lt_cv_apple_cc_single_mod=no
7659      if test -z "$LT_MULTI_MODULE"; then
7660	# By default we will add the -single_module flag. You can override
7661	# by either setting the environment variable LT_MULTI_MODULE
7662	# non-empty at configure time, or by adding -multi_module to the
7663	# link flags.
7664	rm -rf libconftest.dylib*
7665	echo "int foo(void){return 1;}" > conftest.c
7666	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7667-dynamiclib -Wl,-single_module conftest.c" >&5
7668	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7669	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7670        _lt_result=$?
7671	# If there is a non-empty error log, and "single_module"
7672	# appears in it, assume the flag caused a linker warning
7673        if test -s conftest.err && $GREP single_module conftest.err; then
7674	  cat conftest.err >&5
7675	# Otherwise, if the output was created with a 0 exit code from
7676	# the compiler, it worked.
7677	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7678	  lt_cv_apple_cc_single_mod=yes
7679	else
7680	  cat conftest.err >&5
7681	fi
7682	rm -rf libconftest.dylib*
7683	rm -f conftest.*
7684      fi
7685fi
7686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7687$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7688
7689    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7690$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7691if ${lt_cv_ld_exported_symbols_list+:} false; then :
7692  $as_echo_n "(cached) " >&6
7693else
7694  lt_cv_ld_exported_symbols_list=no
7695      save_LDFLAGS=$LDFLAGS
7696      echo "_main" > conftest.sym
7697      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7698      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699/* end confdefs.h.  */
7700
7701int
7702main ()
7703{
7704
7705  ;
7706  return 0;
7707}
7708_ACEOF
7709if ac_fn_c_try_link "$LINENO"; then :
7710  lt_cv_ld_exported_symbols_list=yes
7711else
7712  lt_cv_ld_exported_symbols_list=no
7713fi
7714rm -f core conftest.err conftest.$ac_objext \
7715    conftest$ac_exeext conftest.$ac_ext
7716	LDFLAGS=$save_LDFLAGS
7717
7718fi
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7720$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7721
7722    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7723$as_echo_n "checking for -force_load linker flag... " >&6; }
7724if ${lt_cv_ld_force_load+:} false; then :
7725  $as_echo_n "(cached) " >&6
7726else
7727  lt_cv_ld_force_load=no
7728      cat > conftest.c << _LT_EOF
7729int forced_loaded() { return 2;}
7730_LT_EOF
7731      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7732      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7733      echo "$AR cru libconftest.a conftest.o" >&5
7734      $AR cru libconftest.a conftest.o 2>&5
7735      echo "$RANLIB libconftest.a" >&5
7736      $RANLIB libconftest.a 2>&5
7737      cat > conftest.c << _LT_EOF
7738int main() { return 0;}
7739_LT_EOF
7740      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7741      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7742      _lt_result=$?
7743      if test -s conftest.err && $GREP force_load conftest.err; then
7744	cat conftest.err >&5
7745      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7746	lt_cv_ld_force_load=yes
7747      else
7748	cat conftest.err >&5
7749      fi
7750        rm -f conftest.err libconftest.a conftest conftest.c
7751        rm -rf conftest.dSYM
7752
7753fi
7754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7755$as_echo "$lt_cv_ld_force_load" >&6; }
7756    case $host_os in
7757    rhapsody* | darwin1.[012])
7758      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7759    darwin1.*)
7760      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7761    darwin*) # darwin 5.x on
7762      # if running on 10.5 or later, the deployment target defaults
7763      # to the OS version, if on x86, and 10.4, the deployment
7764      # target defaults to 10.4. Don't you love it?
7765      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7766	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7767	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7768	10.[012][,.]*)
7769	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7770	10.*)
7771	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7772      esac
7773    ;;
7774  esac
7775    if test yes = "$lt_cv_apple_cc_single_mod"; then
7776      _lt_dar_single_mod='$single_module'
7777    fi
7778    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7779      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7780    else
7781      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7782    fi
7783    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7784      _lt_dsymutil='~$DSYMUTIL $lib || :'
7785    else
7786      _lt_dsymutil=
7787    fi
7788    ;;
7789  esac
7790
7791# func_munge_path_list VARIABLE PATH
7792# -----------------------------------
7793# VARIABLE is name of variable containing _space_ separated list of
7794# directories to be munged by the contents of PATH, which is string
7795# having a format:
7796# "DIR[:DIR]:"
7797#       string "DIR[ DIR]" will be prepended to VARIABLE
7798# ":DIR[:DIR]"
7799#       string "DIR[ DIR]" will be appended to VARIABLE
7800# "DIRP[:DIRP]::[DIRA:]DIRA"
7801#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7802#       "DIRA[ DIRA]" will be appended to VARIABLE
7803# "DIR[:DIR]"
7804#       VARIABLE will be replaced by "DIR[ DIR]"
7805func_munge_path_list ()
7806{
7807    case x@S|@2 in
7808    x)
7809        ;;
7810    *:)
7811        eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
7812        ;;
7813    x:*)
7814        eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
7815        ;;
7816    *::*)
7817        eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7818        eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
7819        ;;
7820    *)
7821        eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
7822        ;;
7823    esac
7824}
7825
7826ac_ext=c
7827ac_cpp='$CPP $CPPFLAGS'
7828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830ac_compiler_gnu=$ac_cv_c_compiler_gnu
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7832$as_echo_n "checking how to run the C preprocessor... " >&6; }
7833# On Suns, sometimes $CPP names a directory.
7834if test -n "$CPP" && test -d "$CPP"; then
7835  CPP=
7836fi
7837if test -z "$CPP"; then
7838  if ${ac_cv_prog_CPP+:} false; then :
7839  $as_echo_n "(cached) " >&6
7840else
7841      # Double quotes because CPP needs to be expanded
7842    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7843    do
7844      ac_preproc_ok=false
7845for ac_c_preproc_warn_flag in '' yes
7846do
7847  # Use a header file that comes with gcc, so configuring glibc
7848  # with a fresh cross-compiler works.
7849  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7850  # <limits.h> exists even on freestanding compilers.
7851  # On the NeXT, cc -E runs the code through the compiler's parser,
7852  # not just through cpp. "Syntax error" is here to catch this case.
7853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854/* end confdefs.h.  */
7855@%:@ifdef __STDC__
7856@%:@ include <limits.h>
7857@%:@else
7858@%:@ include <assert.h>
7859@%:@endif
7860		     Syntax error
7861_ACEOF
7862if ac_fn_c_try_cpp "$LINENO"; then :
7863
7864else
7865  # Broken: fails on valid input.
7866continue
7867fi
7868rm -f conftest.err conftest.i conftest.$ac_ext
7869
7870  # OK, works on sane cases.  Now check whether nonexistent headers
7871  # can be detected and how.
7872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873/* end confdefs.h.  */
7874@%:@include <ac_nonexistent.h>
7875_ACEOF
7876if ac_fn_c_try_cpp "$LINENO"; then :
7877  # Broken: success on invalid input.
7878continue
7879else
7880  # Passes both tests.
7881ac_preproc_ok=:
7882break
7883fi
7884rm -f conftest.err conftest.i conftest.$ac_ext
7885
7886done
7887# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7888rm -f conftest.i conftest.err conftest.$ac_ext
7889if $ac_preproc_ok; then :
7890  break
7891fi
7892
7893    done
7894    ac_cv_prog_CPP=$CPP
7895
7896fi
7897  CPP=$ac_cv_prog_CPP
7898else
7899  ac_cv_prog_CPP=$CPP
7900fi
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7902$as_echo "$CPP" >&6; }
7903ac_preproc_ok=false
7904for ac_c_preproc_warn_flag in '' yes
7905do
7906  # Use a header file that comes with gcc, so configuring glibc
7907  # with a fresh cross-compiler works.
7908  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7909  # <limits.h> exists even on freestanding compilers.
7910  # On the NeXT, cc -E runs the code through the compiler's parser,
7911  # not just through cpp. "Syntax error" is here to catch this case.
7912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913/* end confdefs.h.  */
7914@%:@ifdef __STDC__
7915@%:@ include <limits.h>
7916@%:@else
7917@%:@ include <assert.h>
7918@%:@endif
7919		     Syntax error
7920_ACEOF
7921if ac_fn_c_try_cpp "$LINENO"; then :
7922
7923else
7924  # Broken: fails on valid input.
7925continue
7926fi
7927rm -f conftest.err conftest.i conftest.$ac_ext
7928
7929  # OK, works on sane cases.  Now check whether nonexistent headers
7930  # can be detected and how.
7931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932/* end confdefs.h.  */
7933@%:@include <ac_nonexistent.h>
7934_ACEOF
7935if ac_fn_c_try_cpp "$LINENO"; then :
7936  # Broken: success on invalid input.
7937continue
7938else
7939  # Passes both tests.
7940ac_preproc_ok=:
7941break
7942fi
7943rm -f conftest.err conftest.i conftest.$ac_ext
7944
7945done
7946# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7947rm -f conftest.i conftest.err conftest.$ac_ext
7948if $ac_preproc_ok; then :
7949
7950else
7951  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7953as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7954See \`config.log' for more details" "$LINENO" 5; }
7955fi
7956
7957ac_ext=c
7958ac_cpp='$CPP $CPPFLAGS'
7959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7961ac_compiler_gnu=$ac_cv_c_compiler_gnu
7962
7963
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7965$as_echo_n "checking for ANSI C header files... " >&6; }
7966if ${ac_cv_header_stdc+:} false; then :
7967  $as_echo_n "(cached) " >&6
7968else
7969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970/* end confdefs.h.  */
7971#include <stdlib.h>
7972#include <stdarg.h>
7973#include <string.h>
7974#include <float.h>
7975
7976int
7977main ()
7978{
7979
7980  ;
7981  return 0;
7982}
7983_ACEOF
7984if ac_fn_c_try_compile "$LINENO"; then :
7985  ac_cv_header_stdc=yes
7986else
7987  ac_cv_header_stdc=no
7988fi
7989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990
7991if test $ac_cv_header_stdc = yes; then
7992  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994/* end confdefs.h.  */
7995#include <string.h>
7996
7997_ACEOF
7998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7999  $EGREP "memchr" >/dev/null 2>&1; then :
8000
8001else
8002  ac_cv_header_stdc=no
8003fi
8004rm -f conftest*
8005
8006fi
8007
8008if test $ac_cv_header_stdc = yes; then
8009  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011/* end confdefs.h.  */
8012#include <stdlib.h>
8013
8014_ACEOF
8015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8016  $EGREP "free" >/dev/null 2>&1; then :
8017
8018else
8019  ac_cv_header_stdc=no
8020fi
8021rm -f conftest*
8022
8023fi
8024
8025if test $ac_cv_header_stdc = yes; then
8026  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8027  if test "$cross_compiling" = yes; then :
8028  :
8029else
8030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031/* end confdefs.h.  */
8032#include <ctype.h>
8033#include <stdlib.h>
8034#if ((' ' & 0x0FF) == 0x020)
8035# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8036# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8037#else
8038# define ISLOWER(c) \
8039		   (('a' <= (c) && (c) <= 'i') \
8040		     || ('j' <= (c) && (c) <= 'r') \
8041		     || ('s' <= (c) && (c) <= 'z'))
8042# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8043#endif
8044
8045#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8046int
8047main ()
8048{
8049  int i;
8050  for (i = 0; i < 256; i++)
8051    if (XOR (islower (i), ISLOWER (i))
8052	|| toupper (i) != TOUPPER (i))
8053      return 2;
8054  return 0;
8055}
8056_ACEOF
8057if ac_fn_c_try_run "$LINENO"; then :
8058
8059else
8060  ac_cv_header_stdc=no
8061fi
8062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8063  conftest.$ac_objext conftest.beam conftest.$ac_ext
8064fi
8065
8066fi
8067fi
8068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8069$as_echo "$ac_cv_header_stdc" >&6; }
8070if test $ac_cv_header_stdc = yes; then
8071
8072$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
8073
8074fi
8075
8076# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8077for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8078		  inttypes.h stdint.h unistd.h
8079do :
8080  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8081ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8082"
8083if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8084  cat >>confdefs.h <<_ACEOF
8085@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8086_ACEOF
8087
8088fi
8089
8090done
8091
8092
8093for ac_header in dlfcn.h
8094do :
8095  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8096"
8097if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8098  cat >>confdefs.h <<_ACEOF
8099@%:@define HAVE_DLFCN_H 1
8100_ACEOF
8101
8102fi
8103
8104done
8105
8106
8107
8108
8109
8110# Set options
8111
8112
8113
8114        enable_dlopen=no
8115
8116
8117
8118            @%:@ Check whether --enable-shared was given.
8119if test "${enable_shared+set}" = set; then :
8120  enableval=$enable_shared; p=${PACKAGE-default}
8121    case $enableval in
8122    yes) enable_shared=yes ;;
8123    no) enable_shared=no ;;
8124    *)
8125      enable_shared=no
8126      # Look at the argument we got.  We use all the common list separators.
8127      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8128      for pkg in $enableval; do
8129	IFS=$lt_save_ifs
8130	if test "X$pkg" = "X$p"; then
8131	  enable_shared=yes
8132	fi
8133      done
8134      IFS=$lt_save_ifs
8135      ;;
8136    esac
8137else
8138  enable_shared=yes
8139fi
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149  @%:@ Check whether --enable-static was given.
8150if test "${enable_static+set}" = set; then :
8151  enableval=$enable_static; p=${PACKAGE-default}
8152    case $enableval in
8153    yes) enable_static=yes ;;
8154    no) enable_static=no ;;
8155    *)
8156     enable_static=no
8157      # Look at the argument we got.  We use all the common list separators.
8158      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8159      for pkg in $enableval; do
8160	IFS=$lt_save_ifs
8161	if test "X$pkg" = "X$p"; then
8162	  enable_static=yes
8163	fi
8164      done
8165      IFS=$lt_save_ifs
8166      ;;
8167    esac
8168else
8169  enable_static=yes
8170fi
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181@%:@ Check whether --with-pic was given.
8182if test "${with_pic+set}" = set; then :
8183  withval=$with_pic; lt_p=${PACKAGE-default}
8184    case $withval in
8185    yes|no) pic_mode=$withval ;;
8186    *)
8187      pic_mode=default
8188      # Look at the argument we got.  We use all the common list separators.
8189      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8190      for lt_pkg in $withval; do
8191	IFS=$lt_save_ifs
8192	if test "X$lt_pkg" = "X$lt_p"; then
8193	  pic_mode=yes
8194	fi
8195      done
8196      IFS=$lt_save_ifs
8197      ;;
8198    esac
8199else
8200  pic_mode=default
8201fi
8202
8203
8204
8205
8206
8207
8208
8209
8210  @%:@ Check whether --enable-fast-install was given.
8211if test "${enable_fast_install+set}" = set; then :
8212  enableval=$enable_fast_install; p=${PACKAGE-default}
8213    case $enableval in
8214    yes) enable_fast_install=yes ;;
8215    no) enable_fast_install=no ;;
8216    *)
8217      enable_fast_install=no
8218      # Look at the argument we got.  We use all the common list separators.
8219      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8220      for pkg in $enableval; do
8221	IFS=$lt_save_ifs
8222	if test "X$pkg" = "X$p"; then
8223	  enable_fast_install=yes
8224	fi
8225      done
8226      IFS=$lt_save_ifs
8227      ;;
8228    esac
8229else
8230  enable_fast_install=yes
8231fi
8232
8233
8234
8235
8236
8237
8238
8239
8240  shared_archive_member_spec=
8241case $host,$enable_shared in
8242power*-*-aix[5-9]*,yes)
8243  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8244$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8245
8246@%:@ Check whether --with-aix-soname was given.
8247if test "${with_aix_soname+set}" = set; then :
8248  withval=$with_aix_soname; case $withval in
8249    aix|svr4|both)
8250      ;;
8251    *)
8252      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8253      ;;
8254    esac
8255    lt_cv_with_aix_soname=$with_aix_soname
8256else
8257  if ${lt_cv_with_aix_soname+:} false; then :
8258  $as_echo_n "(cached) " >&6
8259else
8260  lt_cv_with_aix_soname=aix
8261fi
8262
8263    with_aix_soname=$lt_cv_with_aix_soname
8264fi
8265
8266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8267$as_echo "$with_aix_soname" >&6; }
8268  if test aix != "$with_aix_soname"; then
8269    # For the AIX way of multilib, we name the shared archive member
8270    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8271    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8272    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8273    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8274    if test 64 = "${OBJECT_MODE-32}"; then
8275      shared_archive_member_spec=shr_64
8276    else
8277      shared_archive_member_spec=shr
8278    fi
8279  fi
8280  ;;
8281*)
8282  with_aix_soname=aix
8283  ;;
8284esac
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295# This can be used to rebuild libtool when needed
8296LIBTOOL_DEPS=$ltmain
8297
8298# Always use our own libtool.
8299LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330test -z "$LN_S" && LN_S="ln -s"
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345if test -n "${ZSH_VERSION+set}"; then
8346   setopt NO_GLOB_SUBST
8347fi
8348
8349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8350$as_echo_n "checking for objdir... " >&6; }
8351if ${lt_cv_objdir+:} false; then :
8352  $as_echo_n "(cached) " >&6
8353else
8354  rm -f .libs 2>/dev/null
8355mkdir .libs 2>/dev/null
8356if test -d .libs; then
8357  lt_cv_objdir=.libs
8358else
8359  # MS-DOS does not allow filenames that begin with a dot.
8360  lt_cv_objdir=_libs
8361fi
8362rmdir .libs 2>/dev/null
8363fi
8364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8365$as_echo "$lt_cv_objdir" >&6; }
8366objdir=$lt_cv_objdir
8367
8368
8369
8370
8371
8372cat >>confdefs.h <<_ACEOF
8373@%:@define LT_OBJDIR "$lt_cv_objdir/"
8374_ACEOF
8375
8376
8377
8378
8379case $host_os in
8380aix3*)
8381  # AIX sometimes has problems with the GCC collect2 program.  For some
8382  # reason, if we set the COLLECT_NAMES environment variable, the problems
8383  # vanish in a puff of smoke.
8384  if test set != "${COLLECT_NAMES+set}"; then
8385    COLLECT_NAMES=
8386    export COLLECT_NAMES
8387  fi
8388  ;;
8389esac
8390
8391# Global variables:
8392ofile=libtool
8393can_build_shared=yes
8394
8395# All known linkers require a '.a' archive for static linking (except MSVC,
8396# which needs '.lib').
8397libext=a
8398
8399with_gnu_ld=$lt_cv_prog_gnu_ld
8400
8401old_CC=$CC
8402old_CFLAGS=$CFLAGS
8403
8404# Set sane defaults for various variables
8405test -z "$CC" && CC=cc
8406test -z "$LTCC" && LTCC=$CC
8407test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8408test -z "$LD" && LD=ld
8409test -z "$ac_objext" && ac_objext=o
8410
8411func_cc_basename $compiler
8412cc_basename=$func_cc_basename_result
8413
8414
8415# Only perform the check for file, if the check method requires it
8416test -z "$MAGIC_CMD" && MAGIC_CMD=file
8417case $deplibs_check_method in
8418file_magic*)
8419  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8420    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8421$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8422if ${lt_cv_path_MAGIC_CMD+:} false; then :
8423  $as_echo_n "(cached) " >&6
8424else
8425  case $MAGIC_CMD in
8426[\\/*] |  ?:[\\/]*)
8427  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8428  ;;
8429*)
8430  lt_save_MAGIC_CMD=$MAGIC_CMD
8431  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8432  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8433  for ac_dir in $ac_dummy; do
8434    IFS=$lt_save_ifs
8435    test -z "$ac_dir" && ac_dir=.
8436    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8437      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8438      if test -n "$file_magic_test_file"; then
8439	case $deplibs_check_method in
8440	"file_magic "*)
8441	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8442	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8443	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8444	    $EGREP "$file_magic_regex" > /dev/null; then
8445	    :
8446	  else
8447	    cat <<_LT_EOF 1>&2
8448
8449*** Warning: the command libtool uses to detect shared libraries,
8450*** $file_magic_cmd, produces output that libtool cannot recognize.
8451*** The result is that libtool may fail to recognize shared libraries
8452*** as such.  This will affect the creation of libtool libraries that
8453*** depend on shared libraries, but programs linked with such libtool
8454*** libraries will work regardless of this problem.  Nevertheless, you
8455*** may want to report the problem to your system manager and/or to
8456*** bug-libtool@gnu.org
8457
8458_LT_EOF
8459	  fi ;;
8460	esac
8461      fi
8462      break
8463    fi
8464  done
8465  IFS=$lt_save_ifs
8466  MAGIC_CMD=$lt_save_MAGIC_CMD
8467  ;;
8468esac
8469fi
8470
8471MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8472if test -n "$MAGIC_CMD"; then
8473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8474$as_echo "$MAGIC_CMD" >&6; }
8475else
8476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477$as_echo "no" >&6; }
8478fi
8479
8480
8481
8482
8483
8484if test -z "$lt_cv_path_MAGIC_CMD"; then
8485  if test -n "$ac_tool_prefix"; then
8486    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8487$as_echo_n "checking for file... " >&6; }
8488if ${lt_cv_path_MAGIC_CMD+:} false; then :
8489  $as_echo_n "(cached) " >&6
8490else
8491  case $MAGIC_CMD in
8492[\\/*] |  ?:[\\/]*)
8493  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8494  ;;
8495*)
8496  lt_save_MAGIC_CMD=$MAGIC_CMD
8497  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8498  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8499  for ac_dir in $ac_dummy; do
8500    IFS=$lt_save_ifs
8501    test -z "$ac_dir" && ac_dir=.
8502    if test -f "$ac_dir/file"; then
8503      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8504      if test -n "$file_magic_test_file"; then
8505	case $deplibs_check_method in
8506	"file_magic "*)
8507	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8508	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8509	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8510	    $EGREP "$file_magic_regex" > /dev/null; then
8511	    :
8512	  else
8513	    cat <<_LT_EOF 1>&2
8514
8515*** Warning: the command libtool uses to detect shared libraries,
8516*** $file_magic_cmd, produces output that libtool cannot recognize.
8517*** The result is that libtool may fail to recognize shared libraries
8518*** as such.  This will affect the creation of libtool libraries that
8519*** depend on shared libraries, but programs linked with such libtool
8520*** libraries will work regardless of this problem.  Nevertheless, you
8521*** may want to report the problem to your system manager and/or to
8522*** bug-libtool@gnu.org
8523
8524_LT_EOF
8525	  fi ;;
8526	esac
8527      fi
8528      break
8529    fi
8530  done
8531  IFS=$lt_save_ifs
8532  MAGIC_CMD=$lt_save_MAGIC_CMD
8533  ;;
8534esac
8535fi
8536
8537MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8538if test -n "$MAGIC_CMD"; then
8539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8540$as_echo "$MAGIC_CMD" >&6; }
8541else
8542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543$as_echo "no" >&6; }
8544fi
8545
8546
8547  else
8548    MAGIC_CMD=:
8549  fi
8550fi
8551
8552  fi
8553  ;;
8554esac
8555
8556# Use C for the default configuration in the libtool script
8557
8558lt_save_CC=$CC
8559ac_ext=c
8560ac_cpp='$CPP $CPPFLAGS'
8561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8563ac_compiler_gnu=$ac_cv_c_compiler_gnu
8564
8565
8566# Source file extension for C test sources.
8567ac_ext=c
8568
8569# Object file extension for compiled C test sources.
8570objext=o
8571objext=$objext
8572
8573# Code to be used in simple compile tests
8574lt_simple_compile_test_code="int some_variable = 0;"
8575
8576# Code to be used in simple link tests
8577lt_simple_link_test_code='int main(){return(0);}'
8578
8579
8580
8581
8582
8583
8584
8585# If no C compiler was specified, use CC.
8586LTCC=${LTCC-"$CC"}
8587
8588# If no C compiler flags were specified, use CFLAGS.
8589LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8590
8591# Allow CC to be a program name with arguments.
8592compiler=$CC
8593
8594# Save the default compiler, since it gets overwritten when the other
8595# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8596compiler_DEFAULT=$CC
8597
8598# save warnings/boilerplate of simple test code
8599ac_outfile=conftest.$ac_objext
8600echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8601eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8602_lt_compiler_boilerplate=`cat conftest.err`
8603$RM conftest*
8604
8605ac_outfile=conftest.$ac_objext
8606echo "$lt_simple_link_test_code" >conftest.$ac_ext
8607eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8608_lt_linker_boilerplate=`cat conftest.err`
8609$RM -r conftest*
8610
8611
8612## CAVEAT EMPTOR:
8613## There is no encapsulation within the following macros, do not change
8614## the running order or otherwise move them around unless you know exactly
8615## what you are doing...
8616if test -n "$compiler"; then
8617
8618lt_prog_compiler_no_builtin_flag=
8619
8620if test yes = "$GCC"; then
8621  case $cc_basename in
8622  nvcc*)
8623    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8624  *)
8625    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8626  esac
8627
8628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8629$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8630if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8631  $as_echo_n "(cached) " >&6
8632else
8633  lt_cv_prog_compiler_rtti_exceptions=no
8634   ac_outfile=conftest.$ac_objext
8635   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8636   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8637   # Insert the option either (1) after the last *FLAGS variable, or
8638   # (2) before a word containing "conftest.", or (3) at the end.
8639   # Note that $ac_compile itself does not contain backslashes and begins
8640   # with a dollar sign (not a hyphen), so the echo should work correctly.
8641   # The option is referenced via a variable to avoid confusing sed.
8642   lt_compile=`echo "$ac_compile" | $SED \
8643   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8644   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8645   -e 's:$: $lt_compiler_flag:'`
8646   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8647   (eval "$lt_compile" 2>conftest.err)
8648   ac_status=$?
8649   cat conftest.err >&5
8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651   if (exit $ac_status) && test -s "$ac_outfile"; then
8652     # The compiler can only warn and ignore the option if not recognized
8653     # So say no if there are warnings other than the usual output.
8654     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8655     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8656     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8657       lt_cv_prog_compiler_rtti_exceptions=yes
8658     fi
8659   fi
8660   $RM conftest*
8661
8662fi
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8664$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8665
8666if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8667    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8668else
8669    :
8670fi
8671
8672fi
8673
8674
8675
8676
8677
8678
8679  lt_prog_compiler_wl=
8680lt_prog_compiler_pic=
8681lt_prog_compiler_static=
8682
8683
8684  if test yes = "$GCC"; then
8685    lt_prog_compiler_wl='-Wl,'
8686    lt_prog_compiler_static='-static'
8687
8688    case $host_os in
8689      aix*)
8690      # All AIX code is PIC.
8691      if test ia64 = "$host_cpu"; then
8692	# AIX 5 now supports IA64 processor
8693	lt_prog_compiler_static='-Bstatic'
8694      fi
8695      lt_prog_compiler_pic='-fPIC'
8696      ;;
8697
8698    amigaos*)
8699      case $host_cpu in
8700      powerpc)
8701            # see comment about AmigaOS4 .so support
8702            lt_prog_compiler_pic='-fPIC'
8703        ;;
8704      m68k)
8705            # FIXME: we need at least 68020 code to build shared libraries, but
8706            # adding the '-m68020' flag to GCC prevents building anything better,
8707            # like '-m68040'.
8708            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8709        ;;
8710      esac
8711      ;;
8712
8713    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8714      # PIC is the default for these OSes.
8715      ;;
8716
8717    mingw* | cygwin* | pw32* | os2* | cegcc*)
8718      # This hack is so that the source file can tell whether it is being
8719      # built for inclusion in a dll (and should export symbols for example).
8720      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8721      # (--disable-auto-import) libraries
8722      lt_prog_compiler_pic='-DDLL_EXPORT'
8723      case $host_os in
8724      os2*)
8725	lt_prog_compiler_static='$wl-static'
8726	;;
8727      esac
8728      ;;
8729
8730    darwin* | rhapsody*)
8731      # PIC is the default on this platform
8732      # Common symbols not allowed in MH_DYLIB files
8733      lt_prog_compiler_pic='-fno-common'
8734      ;;
8735
8736    haiku*)
8737      # PIC is the default for Haiku.
8738      # The "-static" flag exists, but is broken.
8739      lt_prog_compiler_static=
8740      ;;
8741
8742    hpux*)
8743      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8744      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8745      # sets the default TLS model and affects inlining.
8746      case $host_cpu in
8747      hppa*64*)
8748	# +Z the default
8749	;;
8750      *)
8751	lt_prog_compiler_pic='-fPIC'
8752	;;
8753      esac
8754      ;;
8755
8756    interix[3-9]*)
8757      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8758      # Instead, we relocate shared libraries at runtime.
8759      ;;
8760
8761    msdosdjgpp*)
8762      # Just because we use GCC doesn't mean we suddenly get shared libraries
8763      # on systems that don't support them.
8764      lt_prog_compiler_can_build_shared=no
8765      enable_shared=no
8766      ;;
8767
8768    *nto* | *qnx*)
8769      # QNX uses GNU C++, but need to define -shared option too, otherwise
8770      # it will coredump.
8771      lt_prog_compiler_pic='-fPIC -shared'
8772      ;;
8773
8774    sysv4*MP*)
8775      if test -d /usr/nec; then
8776	lt_prog_compiler_pic=-Kconform_pic
8777      fi
8778      ;;
8779
8780    *)
8781      lt_prog_compiler_pic='-fPIC'
8782      ;;
8783    esac
8784
8785    case $cc_basename in
8786    nvcc*) # Cuda Compiler Driver 2.2
8787      lt_prog_compiler_wl='-Xlinker '
8788      if test -n "$lt_prog_compiler_pic"; then
8789        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8790      fi
8791      ;;
8792    esac
8793  else
8794    # PORTME Check for flag to pass linker flags through the system compiler.
8795    case $host_os in
8796    aix*)
8797      lt_prog_compiler_wl='-Wl,'
8798      if test ia64 = "$host_cpu"; then
8799	# AIX 5 now supports IA64 processor
8800	lt_prog_compiler_static='-Bstatic'
8801      else
8802	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8803      fi
8804      ;;
8805
8806    darwin* | rhapsody*)
8807      # PIC is the default on this platform
8808      # Common symbols not allowed in MH_DYLIB files
8809      lt_prog_compiler_pic='-fno-common'
8810      case $cc_basename in
8811      nagfor*)
8812        # NAG Fortran compiler
8813        lt_prog_compiler_wl='-Wl,-Wl,,'
8814        lt_prog_compiler_pic='-PIC'
8815        lt_prog_compiler_static='-Bstatic'
8816        ;;
8817      esac
8818      ;;
8819
8820    mingw* | cygwin* | pw32* | os2* | cegcc*)
8821      # This hack is so that the source file can tell whether it is being
8822      # built for inclusion in a dll (and should export symbols for example).
8823      lt_prog_compiler_pic='-DDLL_EXPORT'
8824      case $host_os in
8825      os2*)
8826	lt_prog_compiler_static='$wl-static'
8827	;;
8828      esac
8829      ;;
8830
8831    hpux9* | hpux10* | hpux11*)
8832      lt_prog_compiler_wl='-Wl,'
8833      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8834      # not for PA HP-UX.
8835      case $host_cpu in
8836      hppa*64*|ia64*)
8837	# +Z the default
8838	;;
8839      *)
8840	lt_prog_compiler_pic='+Z'
8841	;;
8842      esac
8843      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8844      lt_prog_compiler_static='$wl-a ${wl}archive'
8845      ;;
8846
8847    irix5* | irix6* | nonstopux*)
8848      lt_prog_compiler_wl='-Wl,'
8849      # PIC (with -KPIC) is the default.
8850      lt_prog_compiler_static='-non_shared'
8851      ;;
8852
8853    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8854      case $cc_basename in
8855      # old Intel for x86_64, which still supported -KPIC.
8856      ecc*)
8857	lt_prog_compiler_wl='-Wl,'
8858	lt_prog_compiler_pic='-KPIC'
8859	lt_prog_compiler_static='-static'
8860        ;;
8861      # icc used to be incompatible with GCC.
8862      # ICC 10 doesn't accept -KPIC any more.
8863      icc* | ifort*)
8864	lt_prog_compiler_wl='-Wl,'
8865	lt_prog_compiler_pic='-fPIC'
8866	lt_prog_compiler_static='-static'
8867        ;;
8868      # Lahey Fortran 8.1.
8869      lf95*)
8870	lt_prog_compiler_wl='-Wl,'
8871	lt_prog_compiler_pic='--shared'
8872	lt_prog_compiler_static='--static'
8873	;;
8874      nagfor*)
8875	# NAG Fortran compiler
8876	lt_prog_compiler_wl='-Wl,-Wl,,'
8877	lt_prog_compiler_pic='-PIC'
8878	lt_prog_compiler_static='-Bstatic'
8879	;;
8880      tcc*)
8881	# Fabrice Bellard et al's Tiny C Compiler
8882	lt_prog_compiler_wl='-Wl,'
8883	lt_prog_compiler_pic='-fPIC'
8884	lt_prog_compiler_static='-static'
8885	;;
8886      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8887        # Portland Group compilers (*not* the Pentium gcc compiler,
8888	# which looks to be a dead project)
8889	lt_prog_compiler_wl='-Wl,'
8890	lt_prog_compiler_pic='-fpic'
8891	lt_prog_compiler_static='-Bstatic'
8892        ;;
8893      ccc*)
8894        lt_prog_compiler_wl='-Wl,'
8895        # All Alpha code is PIC.
8896        lt_prog_compiler_static='-non_shared'
8897        ;;
8898      xl* | bgxl* | bgf* | mpixl*)
8899	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8900	lt_prog_compiler_wl='-Wl,'
8901	lt_prog_compiler_pic='-qpic'
8902	lt_prog_compiler_static='-qstaticlink'
8903	;;
8904      *)
8905	case `$CC -V 2>&1 | sed 5q` in
8906	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8907	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8908	  lt_prog_compiler_pic='-KPIC'
8909	  lt_prog_compiler_static='-Bstatic'
8910	  lt_prog_compiler_wl=''
8911	  ;;
8912	*Sun\ F* | *Sun*Fortran*)
8913	  lt_prog_compiler_pic='-KPIC'
8914	  lt_prog_compiler_static='-Bstatic'
8915	  lt_prog_compiler_wl='-Qoption ld '
8916	  ;;
8917	*Sun\ C*)
8918	  # Sun C 5.9
8919	  lt_prog_compiler_pic='-KPIC'
8920	  lt_prog_compiler_static='-Bstatic'
8921	  lt_prog_compiler_wl='-Wl,'
8922	  ;;
8923        *Intel*\ [CF]*Compiler*)
8924	  lt_prog_compiler_wl='-Wl,'
8925	  lt_prog_compiler_pic='-fPIC'
8926	  lt_prog_compiler_static='-static'
8927	  ;;
8928	*Portland\ Group*)
8929	  lt_prog_compiler_wl='-Wl,'
8930	  lt_prog_compiler_pic='-fpic'
8931	  lt_prog_compiler_static='-Bstatic'
8932	  ;;
8933	esac
8934	;;
8935      esac
8936      ;;
8937
8938    newsos6)
8939      lt_prog_compiler_pic='-KPIC'
8940      lt_prog_compiler_static='-Bstatic'
8941      ;;
8942
8943    *nto* | *qnx*)
8944      # QNX uses GNU C++, but need to define -shared option too, otherwise
8945      # it will coredump.
8946      lt_prog_compiler_pic='-fPIC -shared'
8947      ;;
8948
8949    osf3* | osf4* | osf5*)
8950      lt_prog_compiler_wl='-Wl,'
8951      # All OSF/1 code is PIC.
8952      lt_prog_compiler_static='-non_shared'
8953      ;;
8954
8955    rdos*)
8956      lt_prog_compiler_static='-non_shared'
8957      ;;
8958
8959    solaris*)
8960      lt_prog_compiler_pic='-KPIC'
8961      lt_prog_compiler_static='-Bstatic'
8962      case $cc_basename in
8963      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8964	lt_prog_compiler_wl='-Qoption ld ';;
8965      *)
8966	lt_prog_compiler_wl='-Wl,';;
8967      esac
8968      ;;
8969
8970    sunos4*)
8971      lt_prog_compiler_wl='-Qoption ld '
8972      lt_prog_compiler_pic='-PIC'
8973      lt_prog_compiler_static='-Bstatic'
8974      ;;
8975
8976    sysv4 | sysv4.2uw2* | sysv4.3*)
8977      lt_prog_compiler_wl='-Wl,'
8978      lt_prog_compiler_pic='-KPIC'
8979      lt_prog_compiler_static='-Bstatic'
8980      ;;
8981
8982    sysv4*MP*)
8983      if test -d /usr/nec; then
8984	lt_prog_compiler_pic='-Kconform_pic'
8985	lt_prog_compiler_static='-Bstatic'
8986      fi
8987      ;;
8988
8989    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8990      lt_prog_compiler_wl='-Wl,'
8991      lt_prog_compiler_pic='-KPIC'
8992      lt_prog_compiler_static='-Bstatic'
8993      ;;
8994
8995    unicos*)
8996      lt_prog_compiler_wl='-Wl,'
8997      lt_prog_compiler_can_build_shared=no
8998      ;;
8999
9000    uts4*)
9001      lt_prog_compiler_pic='-pic'
9002      lt_prog_compiler_static='-Bstatic'
9003      ;;
9004
9005    *)
9006      lt_prog_compiler_can_build_shared=no
9007      ;;
9008    esac
9009  fi
9010
9011case $host_os in
9012  # For platforms that do not support PIC, -DPIC is meaningless:
9013  *djgpp*)
9014    lt_prog_compiler_pic=
9015    ;;
9016  *)
9017    lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
9018    ;;
9019esac
9020
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9022$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9023if ${lt_cv_prog_compiler_pic+:} false; then :
9024  $as_echo_n "(cached) " >&6
9025else
9026  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9027fi
9028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9029$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9030lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9031
9032#
9033# Check to make sure the PIC flag actually works.
9034#
9035if test -n "$lt_prog_compiler_pic"; then
9036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9037$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9038if ${lt_cv_prog_compiler_pic_works+:} false; then :
9039  $as_echo_n "(cached) " >&6
9040else
9041  lt_cv_prog_compiler_pic_works=no
9042   ac_outfile=conftest.$ac_objext
9043   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9044   lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9045   # Insert the option either (1) after the last *FLAGS variable, or
9046   # (2) before a word containing "conftest.", or (3) at the end.
9047   # Note that $ac_compile itself does not contain backslashes and begins
9048   # with a dollar sign (not a hyphen), so the echo should work correctly.
9049   # The option is referenced via a variable to avoid confusing sed.
9050   lt_compile=`echo "$ac_compile" | $SED \
9051   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9052   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9053   -e 's:$: $lt_compiler_flag:'`
9054   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9055   (eval "$lt_compile" 2>conftest.err)
9056   ac_status=$?
9057   cat conftest.err >&5
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   if (exit $ac_status) && test -s "$ac_outfile"; then
9060     # The compiler can only warn and ignore the option if not recognized
9061     # So say no if there are warnings other than the usual output.
9062     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9063     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9064     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9065       lt_cv_prog_compiler_pic_works=yes
9066     fi
9067   fi
9068   $RM conftest*
9069
9070fi
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9072$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9073
9074if test yes = "$lt_cv_prog_compiler_pic_works"; then
9075    case $lt_prog_compiler_pic in
9076     "" | " "*) ;;
9077     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9078     esac
9079else
9080    lt_prog_compiler_pic=
9081     lt_prog_compiler_can_build_shared=no
9082fi
9083
9084fi
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096#
9097# Check to make sure the static flag actually works.
9098#
9099wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9101$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9102if ${lt_cv_prog_compiler_static_works+:} false; then :
9103  $as_echo_n "(cached) " >&6
9104else
9105  lt_cv_prog_compiler_static_works=no
9106   save_LDFLAGS=$LDFLAGS
9107   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9108   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9109   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9110     # The linker can only warn and ignore the option if not recognized
9111     # So say no if there are warnings
9112     if test -s conftest.err; then
9113       # Append any errors to the config.log.
9114       cat conftest.err 1>&5
9115       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9116       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9117       if diff conftest.exp conftest.er2 >/dev/null; then
9118         lt_cv_prog_compiler_static_works=yes
9119       fi
9120     else
9121       lt_cv_prog_compiler_static_works=yes
9122     fi
9123   fi
9124   $RM -r conftest*
9125   LDFLAGS=$save_LDFLAGS
9126
9127fi
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9129$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9130
9131if test yes = "$lt_cv_prog_compiler_static_works"; then
9132    :
9133else
9134    lt_prog_compiler_static=
9135fi
9136
9137
9138
9139
9140
9141
9142
9143  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9144$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9145if ${lt_cv_prog_compiler_c_o+:} false; then :
9146  $as_echo_n "(cached) " >&6
9147else
9148  lt_cv_prog_compiler_c_o=no
9149   $RM -r conftest 2>/dev/null
9150   mkdir conftest
9151   cd conftest
9152   mkdir out
9153   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9154
9155   lt_compiler_flag="-o out/conftest2.$ac_objext"
9156   # Insert the option either (1) after the last *FLAGS variable, or
9157   # (2) before a word containing "conftest.", or (3) at the end.
9158   # Note that $ac_compile itself does not contain backslashes and begins
9159   # with a dollar sign (not a hyphen), so the echo should work correctly.
9160   lt_compile=`echo "$ac_compile" | $SED \
9161   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9162   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9163   -e 's:$: $lt_compiler_flag:'`
9164   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9165   (eval "$lt_compile" 2>out/conftest.err)
9166   ac_status=$?
9167   cat out/conftest.err >&5
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9170   then
9171     # The compiler can only warn and ignore the option if not recognized
9172     # So say no if there are warnings
9173     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9174     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9175     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9176       lt_cv_prog_compiler_c_o=yes
9177     fi
9178   fi
9179   chmod u+w . 2>&5
9180   $RM conftest*
9181   # SGI C++ compiler will create directory out/ii_files/ for
9182   # template instantiation
9183   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9184   $RM out/* && rmdir out
9185   cd ..
9186   $RM -r conftest
9187   $RM conftest*
9188
9189fi
9190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9191$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9192
9193
9194
9195
9196
9197
9198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9199$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9200if ${lt_cv_prog_compiler_c_o+:} false; then :
9201  $as_echo_n "(cached) " >&6
9202else
9203  lt_cv_prog_compiler_c_o=no
9204   $RM -r conftest 2>/dev/null
9205   mkdir conftest
9206   cd conftest
9207   mkdir out
9208   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9209
9210   lt_compiler_flag="-o out/conftest2.$ac_objext"
9211   # Insert the option either (1) after the last *FLAGS variable, or
9212   # (2) before a word containing "conftest.", or (3) at the end.
9213   # Note that $ac_compile itself does not contain backslashes and begins
9214   # with a dollar sign (not a hyphen), so the echo should work correctly.
9215   lt_compile=`echo "$ac_compile" | $SED \
9216   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9217   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9218   -e 's:$: $lt_compiler_flag:'`
9219   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9220   (eval "$lt_compile" 2>out/conftest.err)
9221   ac_status=$?
9222   cat out/conftest.err >&5
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9225   then
9226     # The compiler can only warn and ignore the option if not recognized
9227     # So say no if there are warnings
9228     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9229     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9230     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9231       lt_cv_prog_compiler_c_o=yes
9232     fi
9233   fi
9234   chmod u+w . 2>&5
9235   $RM conftest*
9236   # SGI C++ compiler will create directory out/ii_files/ for
9237   # template instantiation
9238   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9239   $RM out/* && rmdir out
9240   cd ..
9241   $RM -r conftest
9242   $RM conftest*
9243
9244fi
9245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9246$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9247
9248
9249
9250
9251hard_links=nottested
9252if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9253  # do not overwrite the value of need_locks provided by the user
9254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9255$as_echo_n "checking if we can lock with hard links... " >&6; }
9256  hard_links=yes
9257  $RM conftest*
9258  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9259  touch conftest.a
9260  ln conftest.a conftest.b 2>&5 || hard_links=no
9261  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9263$as_echo "$hard_links" >&6; }
9264  if test no = "$hard_links"; then
9265    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9266$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9267    need_locks=warn
9268  fi
9269else
9270  need_locks=no
9271fi
9272
9273
9274
9275
9276
9277
9278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9279$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9280
9281  runpath_var=
9282  allow_undefined_flag=
9283  always_export_symbols=no
9284  archive_cmds=
9285  archive_expsym_cmds=
9286  compiler_needs_object=no
9287  enable_shared_with_static_runtimes=no
9288  export_dynamic_flag_spec=
9289  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9290  hardcode_automatic=no
9291  hardcode_direct=no
9292  hardcode_direct_absolute=no
9293  hardcode_libdir_flag_spec=
9294  hardcode_libdir_separator=
9295  hardcode_minus_L=no
9296  hardcode_shlibpath_var=unsupported
9297  inherit_rpath=no
9298  link_all_deplibs=unknown
9299  module_cmds=
9300  module_expsym_cmds=
9301  old_archive_from_new_cmds=
9302  old_archive_from_expsyms_cmds=
9303  thread_safe_flag_spec=
9304  whole_archive_flag_spec=
9305  # include_expsyms should be a list of space-separated symbols to be *always*
9306  # included in the symbol list
9307  include_expsyms=
9308  # exclude_expsyms can be an extended regexp of symbols to exclude
9309  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9310  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9311  # as well as any symbol that contains 'd'.
9312  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9313  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9314  # platforms (ab)use it in PIC code, but their linkers get confused if
9315  # the symbol is explicitly referenced.  Since portable code cannot
9316  # rely on this symbol name, it's probably fine to never include it in
9317  # preloaded symbol tables.
9318  # Exclude shared library initialization/finalization symbols.
9319  extract_expsyms_cmds=
9320
9321  case $host_os in
9322  cygwin* | mingw* | pw32* | cegcc*)
9323    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9324    # When not using gcc, we currently assume that we are using
9325    # Microsoft Visual C++.
9326    if test yes != "$GCC"; then
9327      with_gnu_ld=no
9328    fi
9329    ;;
9330  interix*)
9331    # we just hope/assume this is gcc and not c89 (= MSVC++)
9332    with_gnu_ld=yes
9333    ;;
9334  openbsd* | bitrig*)
9335    with_gnu_ld=no
9336    ;;
9337  esac
9338
9339  ld_shlibs=yes
9340
9341  # On some targets, GNU ld is compatible enough with the native linker
9342  # that we're better off using the native interface for both.
9343  lt_use_gnu_ld_interface=no
9344  if test yes = "$with_gnu_ld"; then
9345    case $host_os in
9346      aix*)
9347	# The AIX port of GNU ld has always aspired to compatibility
9348	# with the native linker.  However, as the warning in the GNU ld
9349	# block says, versions before 2.19.5* couldn't really create working
9350	# shared libraries, regardless of the interface used.
9351	case `$LD -v 2>&1` in
9352	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9353	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9354	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9355	  *)
9356	    lt_use_gnu_ld_interface=yes
9357	    ;;
9358	esac
9359	;;
9360      *)
9361	lt_use_gnu_ld_interface=yes
9362	;;
9363    esac
9364  fi
9365
9366  if test yes = "$lt_use_gnu_ld_interface"; then
9367    # If archive_cmds runs LD, not CC, wlarc should be empty
9368    wlarc='$wl'
9369
9370    # Set some defaults for GNU ld with shared library support. These
9371    # are reset later if shared libraries are not supported. Putting them
9372    # here allows them to be overridden if necessary.
9373    runpath_var=LD_RUN_PATH
9374    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9375    export_dynamic_flag_spec='$wl--export-dynamic'
9376    # ancient GNU ld didn't support --whole-archive et. al.
9377    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9378      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9379    else
9380      whole_archive_flag_spec=
9381    fi
9382    supports_anon_versioning=no
9383    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9384      *GNU\ gold*) supports_anon_versioning=yes ;;
9385      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9386      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9387      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9388      *\ 2.11.*) ;; # other 2.11 versions
9389      *) supports_anon_versioning=yes ;;
9390    esac
9391
9392    # See if GNU ld supports shared libraries.
9393    case $host_os in
9394    aix[3-9]*)
9395      # On AIX/PPC, the GNU linker is very broken
9396      if test ia64 != "$host_cpu"; then
9397	ld_shlibs=no
9398	cat <<_LT_EOF 1>&2
9399
9400*** Warning: the GNU linker, at least up to release 2.19, is reported
9401*** to be unable to reliably create shared libraries on AIX.
9402*** Therefore, libtool is disabling shared libraries support.  If you
9403*** really care for shared libraries, you may want to install binutils
9404*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9405*** You will then need to restart the configuration process.
9406
9407_LT_EOF
9408      fi
9409      ;;
9410
9411    amigaos*)
9412      case $host_cpu in
9413      powerpc)
9414            # see comment about AmigaOS4 .so support
9415            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9416            archive_expsym_cmds=''
9417        ;;
9418      m68k)
9419            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)'
9420            hardcode_libdir_flag_spec='-L$libdir'
9421            hardcode_minus_L=yes
9422        ;;
9423      esac
9424      ;;
9425
9426    beos*)
9427      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9428	allow_undefined_flag=unsupported
9429	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9430	# support --undefined.  This deserves some investigation.  FIXME
9431	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9432      else
9433	ld_shlibs=no
9434      fi
9435      ;;
9436
9437    cygwin* | mingw* | pw32* | cegcc*)
9438      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9439      # as there is no search path for DLLs.
9440      hardcode_libdir_flag_spec='-L$libdir'
9441      export_dynamic_flag_spec='$wl--export-all-symbols'
9442      allow_undefined_flag=unsupported
9443      always_export_symbols=no
9444      enable_shared_with_static_runtimes=yes
9445      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'
9446      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9447
9448      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9449        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9450	# If the export-symbols file already is a .def file, use it as
9451	# is; otherwise, prepend EXPORTS...
9452	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9453          cp $export_symbols $output_objdir/$soname.def;
9454        else
9455          echo EXPORTS > $output_objdir/$soname.def;
9456          cat $export_symbols >> $output_objdir/$soname.def;
9457        fi~
9458        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9459      else
9460	ld_shlibs=no
9461      fi
9462      ;;
9463
9464    haiku*)
9465      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9466      link_all_deplibs=yes
9467      ;;
9468
9469    os2*)
9470      hardcode_libdir_flag_spec='-L$libdir'
9471      hardcode_minus_L=yes
9472      allow_undefined_flag=unsupported
9473      shrext_cmds=.dll
9474      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9475	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9476	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9477	$ECHO EXPORTS >> $output_objdir/$libname.def~
9478	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9479	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9480	emximp -o $lib $output_objdir/$libname.def'
9481      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9482	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9483	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9484	$ECHO EXPORTS >> $output_objdir/$libname.def~
9485	prefix_cmds="$SED"~
9486	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9487	  prefix_cmds="$prefix_cmds -e 1d";
9488	fi~
9489	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9490	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9491	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9492	emximp -o $lib $output_objdir/$libname.def'
9493      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9494      enable_shared_with_static_runtimes=yes
9495      ;;
9496
9497    interix[3-9]*)
9498      hardcode_direct=no
9499      hardcode_shlibpath_var=no
9500      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9501      export_dynamic_flag_spec='$wl-E'
9502      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9503      # Instead, shared libraries are loaded at an image base (0x10000000 by
9504      # default) and relocated if they conflict, which is a slow very memory
9505      # consuming and fragmenting process.  To avoid this, we pick a random,
9506      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9507      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9508      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9509      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'
9510      ;;
9511
9512    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9513      tmp_diet=no
9514      if test linux-dietlibc = "$host_os"; then
9515	case $cc_basename in
9516	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9517	esac
9518      fi
9519      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9520	 && test no = "$tmp_diet"
9521      then
9522	tmp_addflag=' $pic_flag'
9523	tmp_sharedflag='-shared'
9524	case $cc_basename,$host_cpu in
9525        pgcc*)				# Portland Group C compiler
9526	  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'
9527	  tmp_addflag=' $pic_flag'
9528	  ;;
9529	pgf77* | pgf90* | pgf95* | pgfortran*)
9530					# Portland Group f77 and f90 compilers
9531	  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'
9532	  tmp_addflag=' $pic_flag -Mnomain' ;;
9533	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9534	  tmp_addflag=' -i_dynamic' ;;
9535	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9536	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9537	ifc* | ifort*)			# Intel Fortran compiler
9538	  tmp_addflag=' -nofor_main' ;;
9539	lf95*)				# Lahey Fortran 8.1
9540	  whole_archive_flag_spec=
9541	  tmp_sharedflag='--shared' ;;
9542        nagfor*)                        # NAGFOR 5.3
9543          tmp_sharedflag='-Wl,-shared' ;;
9544	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9545	  tmp_sharedflag='-qmkshrobj'
9546	  tmp_addflag= ;;
9547	nvcc*)	# Cuda Compiler Driver 2.2
9548	  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'
9549	  compiler_needs_object=yes
9550	  ;;
9551	esac
9552	case `$CC -V 2>&1 | sed 5q` in
9553	*Sun\ C*)			# Sun C 5.9
9554	  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'
9555	  compiler_needs_object=yes
9556	  tmp_sharedflag='-G' ;;
9557	*Sun\ F*)			# Sun Fortran 8.3
9558	  tmp_sharedflag='-G' ;;
9559	esac
9560	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9561
9562        if test yes = "$supports_anon_versioning"; then
9563          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9564            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9565            echo "local: *; };" >> $output_objdir/$libname.ver~
9566            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9567        fi
9568
9569	case $cc_basename in
9570	tcc*)
9571	  export_dynamic_flag_spec='-rdynamic'
9572	  ;;
9573	xlf* | bgf* | bgxlf* | mpixlf*)
9574	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9575	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9576	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9577	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9578	  if test yes = "$supports_anon_versioning"; then
9579	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9580              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9581              echo "local: *; };" >> $output_objdir/$libname.ver~
9582              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9583	  fi
9584	  ;;
9585	esac
9586      else
9587        ld_shlibs=no
9588      fi
9589      ;;
9590
9591    netbsd*)
9592      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9593	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9594	wlarc=
9595      else
9596	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9597	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9598      fi
9599      ;;
9600
9601    solaris*)
9602      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9603	ld_shlibs=no
9604	cat <<_LT_EOF 1>&2
9605
9606*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9607*** create shared libraries on Solaris systems.  Therefore, libtool
9608*** is disabling shared libraries support.  We urge you to upgrade GNU
9609*** binutils to release 2.9.1 or newer.  Another option is to modify
9610*** your PATH or compiler configuration so that the native linker is
9611*** used, and then restart.
9612
9613_LT_EOF
9614      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9615	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9616	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9617      else
9618	ld_shlibs=no
9619      fi
9620      ;;
9621
9622    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9623      case `$LD -v 2>&1` in
9624        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9625	ld_shlibs=no
9626	cat <<_LT_EOF 1>&2
9627
9628*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9629*** reliably create shared libraries on SCO systems.  Therefore, libtool
9630*** is disabling shared libraries support.  We urge you to upgrade GNU
9631*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9632*** your PATH or compiler configuration so that the native linker is
9633*** used, and then restart.
9634
9635_LT_EOF
9636	;;
9637	*)
9638	  # For security reasons, it is highly recommended that you always
9639	  # use absolute paths for naming shared libraries, and exclude the
9640	  # DT_RUNPATH tag from executables and libraries.  But doing so
9641	  # requires that you compile everything twice, which is a pain.
9642	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9643	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9644	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9645	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9646	  else
9647	    ld_shlibs=no
9648	  fi
9649	;;
9650      esac
9651      ;;
9652
9653    sunos4*)
9654      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9655      wlarc=
9656      hardcode_direct=yes
9657      hardcode_shlibpath_var=no
9658      ;;
9659
9660    *)
9661      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9662	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9663	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9664      else
9665	ld_shlibs=no
9666      fi
9667      ;;
9668    esac
9669
9670    if test no = "$ld_shlibs"; then
9671      runpath_var=
9672      hardcode_libdir_flag_spec=
9673      export_dynamic_flag_spec=
9674      whole_archive_flag_spec=
9675    fi
9676  else
9677    # PORTME fill in a description of your system's linker (not GNU ld)
9678    case $host_os in
9679    aix3*)
9680      allow_undefined_flag=unsupported
9681      always_export_symbols=yes
9682      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'
9683      # Note: this linker hardcodes the directories in LIBPATH if there
9684      # are no directories specified by -L.
9685      hardcode_minus_L=yes
9686      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9687	# Neither direct hardcoding nor static linking is supported with a
9688	# broken collect2.
9689	hardcode_direct=unsupported
9690      fi
9691      ;;
9692
9693    aix[4-9]*)
9694      if test ia64 = "$host_cpu"; then
9695	# On IA64, the linker does run time linking by default, so we don't
9696	# have to do anything special.
9697	aix_use_runtimelinking=no
9698	exp_sym_flag='-Bexport'
9699	no_entry_flag=
9700      else
9701	# If we're using GNU nm, then we don't want the "-C" option.
9702	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9703	# Without the "-l" option, or with the "-B" option, AIX nm treats
9704	# weak defined symbols like other global defined symbols, whereas
9705	# GNU nm marks them as "W".
9706	# While the 'weak' keyword is ignored in the Export File, we need
9707	# it in the Import File for the 'aix-soname' feature, so we have
9708	# to replace the "-B" option with "-P" for AIX nm.
9709	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9710	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9711	else
9712	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9713	fi
9714	aix_use_runtimelinking=no
9715
9716	# Test if we are trying to use run time linking or normal
9717	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9718	# have runtime linking enabled, and use it for executables.
9719	# For shared libraries, we enable/disable runtime linking
9720	# depending on the kind of the shared library created -
9721	# when "with_aix_soname,aix_use_runtimelinking" is:
9722	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9723	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9724	#            lib.a           static archive
9725	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9726	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9727	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9728	#            lib.a(lib.so.V) shared, rtl:no
9729	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9730	#            lib.a           static archive
9731	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9732	  for ld_flag in $LDFLAGS; do
9733	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9734	    aix_use_runtimelinking=yes
9735	    break
9736	  fi
9737	  done
9738	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9739	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9740	    # so we don't have lib.a shared libs to link our executables.
9741	    # We have to force runtime linking in this case.
9742	    aix_use_runtimelinking=yes
9743	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9744	  fi
9745	  ;;
9746	esac
9747
9748	exp_sym_flag='-bexport'
9749	no_entry_flag='-bnoentry'
9750      fi
9751
9752      # When large executables or shared objects are built, AIX ld can
9753      # have problems creating the table of contents.  If linking a library
9754      # or program results in "error TOC overflow" add -mminimal-toc to
9755      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9756      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9757
9758      archive_cmds=''
9759      hardcode_direct=yes
9760      hardcode_direct_absolute=yes
9761      hardcode_libdir_separator=':'
9762      link_all_deplibs=yes
9763      file_list_spec='$wl-f,'
9764      case $with_aix_soname,$aix_use_runtimelinking in
9765      aix,*) ;; # traditional, no import file
9766      svr4,* | *,yes) # use import file
9767	# The Import File defines what to hardcode.
9768	hardcode_direct=no
9769	hardcode_direct_absolute=no
9770	;;
9771      esac
9772
9773      if test yes = "$GCC"; then
9774	case $host_os in aix4.[012]|aix4.[012].*)
9775	# We only want to do this on AIX 4.2 and lower, the check
9776	# below for broken collect2 doesn't work under 4.3+
9777	  collect2name=`$CC -print-prog-name=collect2`
9778	  if test -f "$collect2name" &&
9779	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9780	  then
9781	  # We have reworked collect2
9782	  :
9783	  else
9784	  # We have old collect2
9785	  hardcode_direct=unsupported
9786	  # It fails to find uninstalled libraries when the uninstalled
9787	  # path is not listed in the libpath.  Setting hardcode_minus_L
9788	  # to unsupported forces relinking
9789	  hardcode_minus_L=yes
9790	  hardcode_libdir_flag_spec='-L$libdir'
9791	  hardcode_libdir_separator=
9792	  fi
9793	  ;;
9794	esac
9795	shared_flag='-shared'
9796	if test yes = "$aix_use_runtimelinking"; then
9797	  shared_flag="$shared_flag "'$wl-G'
9798	fi
9799	# Need to ensure runtime linking is disabled for the traditional
9800	# shared library, or the linker may eventually find shared libraries
9801	# /with/ Import File - we do not want to mix them.
9802	shared_flag_aix='-shared'
9803	shared_flag_svr4='-shared $wl-G'
9804      else
9805	# not using gcc
9806	if test ia64 = "$host_cpu"; then
9807	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9808	# chokes on -Wl,-G. The following line is correct:
9809	  shared_flag='-G'
9810	else
9811	  if test yes = "$aix_use_runtimelinking"; then
9812	    shared_flag='$wl-G'
9813	  else
9814	    shared_flag='$wl-bM:SRE'
9815	  fi
9816	  shared_flag_aix='$wl-bM:SRE'
9817	  shared_flag_svr4='$wl-G'
9818	fi
9819      fi
9820
9821      export_dynamic_flag_spec='$wl-bexpall'
9822      # It seems that -bexpall does not export symbols beginning with
9823      # underscore (_), so it is better to generate a list of symbols to export.
9824      always_export_symbols=yes
9825      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9826	# Warning - without using the other runtime loading flags (-brtl),
9827	# -berok will link without error, but may produce a broken library.
9828	allow_undefined_flag='-berok'
9829        # Determine the default libpath from the value encoded in an
9830        # empty executable.
9831        if test set = "${lt_cv_aix_libpath+set}"; then
9832  aix_libpath=$lt_cv_aix_libpath
9833else
9834  if ${lt_cv_aix_libpath_+:} false; then :
9835  $as_echo_n "(cached) " >&6
9836else
9837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838/* end confdefs.h.  */
9839
9840int
9841main ()
9842{
9843
9844  ;
9845  return 0;
9846}
9847_ACEOF
9848if ac_fn_c_try_link "$LINENO"; then :
9849
9850  lt_aix_libpath_sed='
9851      /Import File Strings/,/^$/ {
9852	  /^0/ {
9853	      s/^0  *\([^ ]*\) *$/\1/
9854	      p
9855	  }
9856      }'
9857  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9858  # Check for a 64-bit object if we didn't find anything.
9859  if test -z "$lt_cv_aix_libpath_"; then
9860    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9861  fi
9862fi
9863rm -f core conftest.err conftest.$ac_objext \
9864    conftest$ac_exeext conftest.$ac_ext
9865  if test -z "$lt_cv_aix_libpath_"; then
9866    lt_cv_aix_libpath_=/usr/lib:/lib
9867  fi
9868
9869fi
9870
9871  aix_libpath=$lt_cv_aix_libpath_
9872fi
9873
9874        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9875        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9876      else
9877	if test ia64 = "$host_cpu"; then
9878	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9879	  allow_undefined_flag="-z nodefs"
9880	  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"
9881	else
9882	 # Determine the default libpath from the value encoded in an
9883	 # empty executable.
9884	 if test set = "${lt_cv_aix_libpath+set}"; then
9885  aix_libpath=$lt_cv_aix_libpath
9886else
9887  if ${lt_cv_aix_libpath_+:} false; then :
9888  $as_echo_n "(cached) " >&6
9889else
9890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891/* end confdefs.h.  */
9892
9893int
9894main ()
9895{
9896
9897  ;
9898  return 0;
9899}
9900_ACEOF
9901if ac_fn_c_try_link "$LINENO"; then :
9902
9903  lt_aix_libpath_sed='
9904      /Import File Strings/,/^$/ {
9905	  /^0/ {
9906	      s/^0  *\([^ ]*\) *$/\1/
9907	      p
9908	  }
9909      }'
9910  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9911  # Check for a 64-bit object if we didn't find anything.
9912  if test -z "$lt_cv_aix_libpath_"; then
9913    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9914  fi
9915fi
9916rm -f core conftest.err conftest.$ac_objext \
9917    conftest$ac_exeext conftest.$ac_ext
9918  if test -z "$lt_cv_aix_libpath_"; then
9919    lt_cv_aix_libpath_=/usr/lib:/lib
9920  fi
9921
9922fi
9923
9924  aix_libpath=$lt_cv_aix_libpath_
9925fi
9926
9927	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9928	  # Warning - without using the other run time loading flags,
9929	  # -berok will link without error, but may produce a broken library.
9930	  no_undefined_flag=' $wl-bernotok'
9931	  allow_undefined_flag=' $wl-berok'
9932	  if test yes = "$with_gnu_ld"; then
9933	    # We only use this code for GNU lds that support --whole-archive.
9934	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9935	  else
9936	    # Exported symbols can be pulled into shared objects from archives
9937	    whole_archive_flag_spec='$convenience'
9938	  fi
9939	  archive_cmds_need_lc=yes
9940	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9941	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9942	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9943	  if test svr4 != "$with_aix_soname"; then
9944	    # This is similar to how AIX traditionally builds its shared libraries.
9945	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9946	  fi
9947	  if test aix != "$with_aix_soname"; then
9948	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9949	  else
9950	    # used by -dlpreopen to get the symbols
9951	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9952	  fi
9953	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9954	fi
9955      fi
9956      ;;
9957
9958    amigaos*)
9959      case $host_cpu in
9960      powerpc)
9961            # see comment about AmigaOS4 .so support
9962            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9963            archive_expsym_cmds=''
9964        ;;
9965      m68k)
9966            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)'
9967            hardcode_libdir_flag_spec='-L$libdir'
9968            hardcode_minus_L=yes
9969        ;;
9970      esac
9971      ;;
9972
9973    bsdi[45]*)
9974      export_dynamic_flag_spec=-rdynamic
9975      ;;
9976
9977    cygwin* | mingw* | pw32* | cegcc*)
9978      # When not using gcc, we currently assume that we are using
9979      # Microsoft Visual C++.
9980      # hardcode_libdir_flag_spec is actually meaningless, as there is
9981      # no search path for DLLs.
9982      case $cc_basename in
9983      cl*)
9984	# Native MSVC
9985	hardcode_libdir_flag_spec=' '
9986	allow_undefined_flag=unsupported
9987	always_export_symbols=yes
9988	file_list_spec='@'
9989	# Tell ltmain to make .lib files, not .a files.
9990	libext=lib
9991	# Tell ltmain to make .dll files, not .so files.
9992	shrext_cmds=.dll
9993	# FIXME: Setting linknames here is a bad hack.
9994	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9995	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9996            cp "$export_symbols" "$output_objdir/$soname.def";
9997            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9998          else
9999            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10000          fi~
10001          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10002          linknames='
10003	# The linker will not automatically build a static lib if we build a DLL.
10004	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10005	enable_shared_with_static_runtimes=yes
10006	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10007	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10008	# Don't use ranlib
10009	old_postinstall_cmds='chmod 644 $oldlib'
10010	postlink_cmds='lt_outputfile="@OUTPUT@"~
10011          lt_tool_outputfile="@TOOL_OUTPUT@"~
10012          case $lt_outputfile in
10013            *.exe|*.EXE) ;;
10014            *)
10015              lt_outputfile=$lt_outputfile.exe
10016              lt_tool_outputfile=$lt_tool_outputfile.exe
10017              ;;
10018          esac~
10019          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10020            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10021            $RM "$lt_outputfile.manifest";
10022          fi'
10023	;;
10024      *)
10025	# Assume MSVC wrapper
10026	hardcode_libdir_flag_spec=' '
10027	allow_undefined_flag=unsupported
10028	# Tell ltmain to make .lib files, not .a files.
10029	libext=lib
10030	# Tell ltmain to make .dll files, not .so files.
10031	shrext_cmds=.dll
10032	# FIXME: Setting linknames here is a bad hack.
10033	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10034	# The linker will automatically build a .lib file if we build a DLL.
10035	old_archive_from_new_cmds='true'
10036	# FIXME: Should let the user specify the lib program.
10037	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10038	enable_shared_with_static_runtimes=yes
10039	;;
10040      esac
10041      ;;
10042
10043    darwin* | rhapsody*)
10044
10045
10046  archive_cmds_need_lc=no
10047  hardcode_direct=no
10048  hardcode_automatic=yes
10049  hardcode_shlibpath_var=unsupported
10050  if test yes = "$lt_cv_ld_force_load"; then
10051    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\"`'
10052
10053  else
10054    whole_archive_flag_spec=''
10055  fi
10056  link_all_deplibs=yes
10057  allow_undefined_flag=$_lt_dar_allow_undefined
10058  case $cc_basename in
10059     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10060     *) _lt_dar_can_shared=$GCC ;;
10061  esac
10062  if test yes = "$_lt_dar_can_shared"; then
10063    output_verbose_link_cmd=func_echo_all
10064    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10065    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10066    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"
10067    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"
10068
10069  else
10070  ld_shlibs=no
10071  fi
10072
10073      ;;
10074
10075    dgux*)
10076      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10077      hardcode_libdir_flag_spec='-L$libdir'
10078      hardcode_shlibpath_var=no
10079      ;;
10080
10081    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10082    # support.  Future versions do this automatically, but an explicit c++rt0.o
10083    # does not break anything, and helps significantly (at the cost of a little
10084    # extra space).
10085    freebsd2.2*)
10086      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10087      hardcode_libdir_flag_spec='-R$libdir'
10088      hardcode_direct=yes
10089      hardcode_shlibpath_var=no
10090      ;;
10091
10092    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10093    freebsd2.*)
10094      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10095      hardcode_direct=yes
10096      hardcode_minus_L=yes
10097      hardcode_shlibpath_var=no
10098      ;;
10099
10100    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10101    freebsd* | dragonfly*)
10102      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10103      hardcode_libdir_flag_spec='-R$libdir'
10104      hardcode_direct=yes
10105      hardcode_shlibpath_var=no
10106      ;;
10107
10108    hpux9*)
10109      if test yes = "$GCC"; then
10110	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10111      else
10112	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10113      fi
10114      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10115      hardcode_libdir_separator=:
10116      hardcode_direct=yes
10117
10118      # hardcode_minus_L: Not really in the search PATH,
10119      # but as the default location of the library.
10120      hardcode_minus_L=yes
10121      export_dynamic_flag_spec='$wl-E'
10122      ;;
10123
10124    hpux10*)
10125      if test yes,no = "$GCC,$with_gnu_ld"; then
10126	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10127      else
10128	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10129      fi
10130      if test no = "$with_gnu_ld"; then
10131	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10132	hardcode_libdir_separator=:
10133	hardcode_direct=yes
10134	hardcode_direct_absolute=yes
10135	export_dynamic_flag_spec='$wl-E'
10136	# hardcode_minus_L: Not really in the search PATH,
10137	# but as the default location of the library.
10138	hardcode_minus_L=yes
10139      fi
10140      ;;
10141
10142    hpux11*)
10143      if test yes,no = "$GCC,$with_gnu_ld"; then
10144	case $host_cpu in
10145	hppa*64*)
10146	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10147	  ;;
10148	ia64*)
10149	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10150	  ;;
10151	*)
10152	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10153	  ;;
10154	esac
10155      else
10156	case $host_cpu in
10157	hppa*64*)
10158	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10159	  ;;
10160	ia64*)
10161	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10162	  ;;
10163	*)
10164
10165	  # Older versions of the 11.00 compiler do not understand -b yet
10166	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10167	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10168$as_echo_n "checking if $CC understands -b... " >&6; }
10169if ${lt_cv_prog_compiler__b+:} false; then :
10170  $as_echo_n "(cached) " >&6
10171else
10172  lt_cv_prog_compiler__b=no
10173   save_LDFLAGS=$LDFLAGS
10174   LDFLAGS="$LDFLAGS -b"
10175   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10176   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10177     # The linker can only warn and ignore the option if not recognized
10178     # So say no if there are warnings
10179     if test -s conftest.err; then
10180       # Append any errors to the config.log.
10181       cat conftest.err 1>&5
10182       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10183       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10184       if diff conftest.exp conftest.er2 >/dev/null; then
10185         lt_cv_prog_compiler__b=yes
10186       fi
10187     else
10188       lt_cv_prog_compiler__b=yes
10189     fi
10190   fi
10191   $RM -r conftest*
10192   LDFLAGS=$save_LDFLAGS
10193
10194fi
10195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10196$as_echo "$lt_cv_prog_compiler__b" >&6; }
10197
10198if test yes = "$lt_cv_prog_compiler__b"; then
10199    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10200else
10201    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10202fi
10203
10204	  ;;
10205	esac
10206      fi
10207      if test no = "$with_gnu_ld"; then
10208	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10209	hardcode_libdir_separator=:
10210
10211	case $host_cpu in
10212	hppa*64*|ia64*)
10213	  hardcode_direct=no
10214	  hardcode_shlibpath_var=no
10215	  ;;
10216	*)
10217	  hardcode_direct=yes
10218	  hardcode_direct_absolute=yes
10219	  export_dynamic_flag_spec='$wl-E'
10220
10221	  # hardcode_minus_L: Not really in the search PATH,
10222	  # but as the default location of the library.
10223	  hardcode_minus_L=yes
10224	  ;;
10225	esac
10226      fi
10227      ;;
10228
10229    irix5* | irix6* | nonstopux*)
10230      if test yes = "$GCC"; then
10231	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'
10232	# Try to use the -exported_symbol ld option, if it does not
10233	# work, assume that -exports_file does not work either and
10234	# implicitly export all symbols.
10235	# This should be the same for all languages, so no per-tag cache variable.
10236	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10237$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10238if ${lt_cv_irix_exported_symbol+:} false; then :
10239  $as_echo_n "(cached) " >&6
10240else
10241  save_LDFLAGS=$LDFLAGS
10242	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10243	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244/* end confdefs.h.  */
10245int foo (void) { return 0; }
10246_ACEOF
10247if ac_fn_c_try_link "$LINENO"; then :
10248  lt_cv_irix_exported_symbol=yes
10249else
10250  lt_cv_irix_exported_symbol=no
10251fi
10252rm -f core conftest.err conftest.$ac_objext \
10253    conftest$ac_exeext conftest.$ac_ext
10254           LDFLAGS=$save_LDFLAGS
10255fi
10256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10257$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10258	if test yes = "$lt_cv_irix_exported_symbol"; then
10259          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'
10260	fi
10261      else
10262	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'
10263	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'
10264      fi
10265      archive_cmds_need_lc='no'
10266      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10267      hardcode_libdir_separator=:
10268      inherit_rpath=yes
10269      link_all_deplibs=yes
10270      ;;
10271
10272    linux*)
10273      case $cc_basename in
10274      tcc*)
10275	# Fabrice Bellard et al's Tiny C Compiler
10276	ld_shlibs=yes
10277	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10278	;;
10279      esac
10280      ;;
10281
10282    netbsd*)
10283      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10284	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10285      else
10286	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10287      fi
10288      hardcode_libdir_flag_spec='-R$libdir'
10289      hardcode_direct=yes
10290      hardcode_shlibpath_var=no
10291      ;;
10292
10293    newsos6)
10294      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10295      hardcode_direct=yes
10296      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10297      hardcode_libdir_separator=:
10298      hardcode_shlibpath_var=no
10299      ;;
10300
10301    *nto* | *qnx*)
10302      ;;
10303
10304    openbsd* | bitrig*)
10305      if test -f /usr/libexec/ld.so; then
10306	hardcode_direct=yes
10307	hardcode_shlibpath_var=no
10308	hardcode_direct_absolute=yes
10309	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10310	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10311	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10312	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10313	  export_dynamic_flag_spec='$wl-E'
10314	else
10315	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10316	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10317	fi
10318      else
10319	ld_shlibs=no
10320      fi
10321      ;;
10322
10323    os2*)
10324      hardcode_libdir_flag_spec='-L$libdir'
10325      hardcode_minus_L=yes
10326      allow_undefined_flag=unsupported
10327      shrext_cmds=.dll
10328      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10329	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10330	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10331	$ECHO EXPORTS >> $output_objdir/$libname.def~
10332	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10333	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10334	emximp -o $lib $output_objdir/$libname.def'
10335      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10336	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10337	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10338	$ECHO EXPORTS >> $output_objdir/$libname.def~
10339	prefix_cmds="$SED"~
10340	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10341	  prefix_cmds="$prefix_cmds -e 1d";
10342	fi~
10343	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10344	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10345	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10346	emximp -o $lib $output_objdir/$libname.def'
10347      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10348      enable_shared_with_static_runtimes=yes
10349      ;;
10350
10351    osf3*)
10352      if test yes = "$GCC"; then
10353	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10354	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'
10355      else
10356	allow_undefined_flag=' -expect_unresolved \*'
10357	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'
10358      fi
10359      archive_cmds_need_lc='no'
10360      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10361      hardcode_libdir_separator=:
10362      ;;
10363
10364    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10365      if test yes = "$GCC"; then
10366	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10367	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'
10368	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10369      else
10370	allow_undefined_flag=' -expect_unresolved \*'
10371	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'
10372	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~
10373          $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'
10374
10375	# Both c and cxx compiler support -rpath directly
10376	hardcode_libdir_flag_spec='-rpath $libdir'
10377      fi
10378      archive_cmds_need_lc='no'
10379      hardcode_libdir_separator=:
10380      ;;
10381
10382    solaris*)
10383      no_undefined_flag=' -z defs'
10384      if test yes = "$GCC"; then
10385	wlarc='$wl'
10386	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10387	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10388          $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'
10389      else
10390	case `$CC -V 2>&1` in
10391	*"Compilers 5.0"*)
10392	  wlarc=''
10393	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10394	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10395            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10396	  ;;
10397	*)
10398	  wlarc='$wl'
10399	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10400	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10401            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10402	  ;;
10403	esac
10404      fi
10405      hardcode_libdir_flag_spec='-R$libdir'
10406      hardcode_shlibpath_var=no
10407      case $host_os in
10408      solaris2.[0-5] | solaris2.[0-5].*) ;;
10409      *)
10410	# The compiler driver will combine and reorder linker options,
10411	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10412	# but is careful enough not to reorder.
10413	# Supported since Solaris 2.6 (maybe 2.5.1?)
10414	if test yes = "$GCC"; then
10415	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10416	else
10417	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10418	fi
10419	;;
10420      esac
10421      link_all_deplibs=yes
10422      ;;
10423
10424    sunos4*)
10425      if test sequent = "$host_vendor"; then
10426	# Use $CC to link under sequent, because it throws in some extra .o
10427	# files that make .init and .fini sections work.
10428	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10429      else
10430	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10431      fi
10432      hardcode_libdir_flag_spec='-L$libdir'
10433      hardcode_direct=yes
10434      hardcode_minus_L=yes
10435      hardcode_shlibpath_var=no
10436      ;;
10437
10438    sysv4)
10439      case $host_vendor in
10440	sni)
10441	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10442	  hardcode_direct=yes # is this really true???
10443	;;
10444	siemens)
10445	  ## LD is ld it makes a PLAMLIB
10446	  ## CC just makes a GrossModule.
10447	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10448	  reload_cmds='$CC -r -o $output$reload_objs'
10449	  hardcode_direct=no
10450        ;;
10451	motorola)
10452	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10453	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10454	;;
10455      esac
10456      runpath_var='LD_RUN_PATH'
10457      hardcode_shlibpath_var=no
10458      ;;
10459
10460    sysv4.3*)
10461      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10462      hardcode_shlibpath_var=no
10463      export_dynamic_flag_spec='-Bexport'
10464      ;;
10465
10466    sysv4*MP*)
10467      if test -d /usr/nec; then
10468	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10469	hardcode_shlibpath_var=no
10470	runpath_var=LD_RUN_PATH
10471	hardcode_runpath_var=yes
10472	ld_shlibs=yes
10473      fi
10474      ;;
10475
10476    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10477      no_undefined_flag='$wl-z,text'
10478      archive_cmds_need_lc=no
10479      hardcode_shlibpath_var=no
10480      runpath_var='LD_RUN_PATH'
10481
10482      if test yes = "$GCC"; then
10483	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10484	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10485      else
10486	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10487	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10488      fi
10489      ;;
10490
10491    sysv5* | sco3.2v5* | sco5v6*)
10492      # Note: We CANNOT use -z defs as we might desire, because we do not
10493      # link with -lc, and that would cause any symbols used from libc to
10494      # always be unresolved, which means just about no library would
10495      # ever link correctly.  If we're not using GNU ld we use -z text
10496      # though, which does catch some bad symbols but isn't as heavy-handed
10497      # as -z defs.
10498      no_undefined_flag='$wl-z,text'
10499      allow_undefined_flag='$wl-z,nodefs'
10500      archive_cmds_need_lc=no
10501      hardcode_shlibpath_var=no
10502      hardcode_libdir_flag_spec='$wl-R,$libdir'
10503      hardcode_libdir_separator=':'
10504      link_all_deplibs=yes
10505      export_dynamic_flag_spec='$wl-Bexport'
10506      runpath_var='LD_RUN_PATH'
10507
10508      if test yes = "$GCC"; then
10509	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10510	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10511      else
10512	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10513	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10514      fi
10515      ;;
10516
10517    uts4*)
10518      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10519      hardcode_libdir_flag_spec='-L$libdir'
10520      hardcode_shlibpath_var=no
10521      ;;
10522
10523    *)
10524      ld_shlibs=no
10525      ;;
10526    esac
10527
10528    if test sni = "$host_vendor"; then
10529      case $host in
10530      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10531	export_dynamic_flag_spec='$wl-Blargedynsym'
10532	;;
10533      esac
10534    fi
10535  fi
10536
10537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10538$as_echo "$ld_shlibs" >&6; }
10539test no = "$ld_shlibs" && can_build_shared=no
10540
10541with_gnu_ld=$with_gnu_ld
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557#
10558# Do we need to explicitly link libc?
10559#
10560case "x$archive_cmds_need_lc" in
10561x|xyes)
10562  # Assume -lc should be added
10563  archive_cmds_need_lc=yes
10564
10565  if test yes,yes = "$GCC,$enable_shared"; then
10566    case $archive_cmds in
10567    *'~'*)
10568      # FIXME: we may have to deal with multi-command sequences.
10569      ;;
10570    '$CC '*)
10571      # Test whether the compiler implicitly links with -lc since on some
10572      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10573      # to ld, don't add -lc before -lgcc.
10574      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10575$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10576if ${lt_cv_archive_cmds_need_lc+:} false; then :
10577  $as_echo_n "(cached) " >&6
10578else
10579  $RM conftest*
10580	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10581
10582	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10583  (eval $ac_compile) 2>&5
10584  ac_status=$?
10585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10586  test $ac_status = 0; } 2>conftest.err; then
10587	  soname=conftest
10588	  lib=conftest
10589	  libobjs=conftest.$ac_objext
10590	  deplibs=
10591	  wl=$lt_prog_compiler_wl
10592	  pic_flag=$lt_prog_compiler_pic
10593	  compiler_flags=-v
10594	  linker_flags=-v
10595	  verstring=
10596	  output_objdir=.
10597	  libname=conftest
10598	  lt_save_allow_undefined_flag=$allow_undefined_flag
10599	  allow_undefined_flag=
10600	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10601  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10602  ac_status=$?
10603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10604  test $ac_status = 0; }
10605	  then
10606	    lt_cv_archive_cmds_need_lc=no
10607	  else
10608	    lt_cv_archive_cmds_need_lc=yes
10609	  fi
10610	  allow_undefined_flag=$lt_save_allow_undefined_flag
10611	else
10612	  cat conftest.err 1>&5
10613	fi
10614	$RM conftest*
10615
10616fi
10617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10618$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10619      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10620      ;;
10621    esac
10622  fi
10623  ;;
10624esac
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10778$as_echo_n "checking dynamic linker characteristics... " >&6; }
10779
10780if test yes = "$GCC"; then
10781  case $host_os in
10782    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10783    *) lt_awk_arg='/^libraries:/' ;;
10784  esac
10785  case $host_os in
10786    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10787    *) lt_sed_strip_eq='s|=/|/|g' ;;
10788  esac
10789  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10790  case $lt_search_path_spec in
10791  *\;*)
10792    # if the path contains ";" then we assume it to be the separator
10793    # otherwise default to the standard path separator (i.e. ":") - it is
10794    # assumed that no part of a normal pathname contains ";" but that should
10795    # okay in the real world where ";" in dirpaths is itself problematic.
10796    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10797    ;;
10798  *)
10799    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10800    ;;
10801  esac
10802  # Ok, now we have the path, separated by spaces, we can step through it
10803  # and add multilib dir if necessary...
10804  lt_tmp_lt_search_path_spec=
10805  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10806  # ...but if some path component already ends with the multilib dir we assume
10807  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10808  case "$lt_multi_os_dir; $lt_search_path_spec " in
10809  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10810    lt_multi_os_dir=
10811    ;;
10812  esac
10813  for lt_sys_path in $lt_search_path_spec; do
10814    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10815      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10816    elif test -n "$lt_multi_os_dir"; then
10817      test -d "$lt_sys_path" && \
10818	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10819    fi
10820  done
10821  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10822BEGIN {RS = " "; FS = "/|\n";} {
10823  lt_foo = "";
10824  lt_count = 0;
10825  for (lt_i = NF; lt_i > 0; lt_i--) {
10826    if ($lt_i != "" && $lt_i != ".") {
10827      if ($lt_i == "..") {
10828        lt_count++;
10829      } else {
10830        if (lt_count == 0) {
10831          lt_foo = "/" $lt_i lt_foo;
10832        } else {
10833          lt_count--;
10834        }
10835      }
10836    }
10837  }
10838  if (lt_foo != "") { lt_freq[lt_foo]++; }
10839  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10840}'`
10841  # AWK program above erroneously prepends '/' to C:/dos/paths
10842  # for these hosts.
10843  case $host_os in
10844    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10845      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10846  esac
10847  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10848else
10849  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10850fi
10851library_names_spec=
10852libname_spec='lib$name'
10853soname_spec=
10854shrext_cmds=.so
10855postinstall_cmds=
10856postuninstall_cmds=
10857finish_cmds=
10858finish_eval=
10859shlibpath_var=
10860shlibpath_overrides_runpath=unknown
10861version_type=none
10862dynamic_linker="$host_os ld.so"
10863sys_lib_dlsearch_path_spec="/lib /usr/lib"
10864need_lib_prefix=unknown
10865hardcode_into_libs=no
10866
10867# when you set need_version to no, make sure it does not cause -set_version
10868# flags to be left without arguments
10869need_version=unknown
10870
10871
10872
10873case $host_os in
10874aix3*)
10875  version_type=linux # correct to gnu/linux during the next big refactor
10876  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10877  shlibpath_var=LIBPATH
10878
10879  # AIX 3 has no versioning support, so we append a major version to the name.
10880  soname_spec='$libname$release$shared_ext$major'
10881  ;;
10882
10883aix[4-9]*)
10884  version_type=linux # correct to gnu/linux during the next big refactor
10885  need_lib_prefix=no
10886  need_version=no
10887  hardcode_into_libs=yes
10888  if test ia64 = "$host_cpu"; then
10889    # AIX 5 supports IA64
10890    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10891    shlibpath_var=LD_LIBRARY_PATH
10892  else
10893    # With GCC up to 2.95.x, collect2 would create an import file
10894    # for dependence libraries.  The import file would start with
10895    # the line '#! .'.  This would cause the generated library to
10896    # depend on '.', always an invalid library.  This was fixed in
10897    # development snapshots of GCC prior to 3.0.
10898    case $host_os in
10899      aix4 | aix4.[01] | aix4.[01].*)
10900      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10901	   echo ' yes '
10902	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10903	:
10904      else
10905	can_build_shared=no
10906      fi
10907      ;;
10908    esac
10909    # Using Import Files as archive members, it is possible to support
10910    # filename-based versioning of shared library archives on AIX. While
10911    # this would work for both with and without runtime linking, it will
10912    # prevent static linking of such archives. So we do filename-based
10913    # shared library versioning with .so extension only, which is used
10914    # when both runtime linking and shared linking is enabled.
10915    # Unfortunately, runtime linking may impact performance, so we do
10916    # not want this to be the default eventually. Also, we use the
10917    # versioned .so libs for executables only if there is the -brtl
10918    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10919    # To allow for filename-based versioning support, we need to create
10920    # libNAME.so.V as an archive file, containing:
10921    # *) an Import File, referring to the versioned filename of the
10922    #    archive as well as the shared archive member, telling the
10923    #    bitwidth (32 or 64) of that shared object, and providing the
10924    #    list of exported symbols of that shared object, eventually
10925    #    decorated with the 'weak' keyword
10926    # *) the shared object with the F_LOADONLY flag set, to really avoid
10927    #    it being seen by the linker.
10928    # At run time we better use the real file rather than another symlink,
10929    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10930
10931    case $with_aix_soname,$aix_use_runtimelinking in
10932    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10933    # soname into executable. Probably we can add versioning support to
10934    # collect2, so additional links can be useful in future.
10935    aix,yes) # traditional libtool
10936      dynamic_linker='AIX unversionable lib.so'
10937      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10938      # instead of lib<name>.a to let people know that these are not
10939      # typical AIX shared libraries.
10940      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10941      ;;
10942    aix,no) # traditional AIX only
10943      dynamic_linker='AIX lib.a(lib.so.V)'
10944      # We preserve .a as extension for shared libraries through AIX4.2
10945      # and later when we are not doing run time linking.
10946      library_names_spec='$libname$release.a $libname.a'
10947      soname_spec='$libname$release$shared_ext$major'
10948      ;;
10949    svr4,*) # full svr4 only
10950      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10951      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10952      # We do not specify a path in Import Files, so LIBPATH fires.
10953      shlibpath_overrides_runpath=yes
10954      ;;
10955    *,yes) # both, prefer svr4
10956      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10957      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10958      # unpreferred sharedlib libNAME.a needs extra handling
10959      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10960      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10961      # We do not specify a path in Import Files, so LIBPATH fires.
10962      shlibpath_overrides_runpath=yes
10963      ;;
10964    *,no) # both, prefer aix
10965      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10966      library_names_spec='$libname$release.a $libname.a'
10967      soname_spec='$libname$release$shared_ext$major'
10968      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10969      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10970      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10971      ;;
10972    esac
10973    shlibpath_var=LIBPATH
10974  fi
10975  ;;
10976
10977amigaos*)
10978  case $host_cpu in
10979  powerpc)
10980    # Since July 2007 AmigaOS4 officially supports .so libraries.
10981    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10982    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10983    ;;
10984  m68k)
10985    library_names_spec='$libname.ixlibrary $libname.a'
10986    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10987    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10988    ;;
10989  esac
10990  ;;
10991
10992beos*)
10993  library_names_spec='$libname$shared_ext'
10994  dynamic_linker="$host_os ld.so"
10995  shlibpath_var=LIBRARY_PATH
10996  ;;
10997
10998bsdi[45]*)
10999  version_type=linux # correct to gnu/linux during the next big refactor
11000  need_version=no
11001  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11002  soname_spec='$libname$release$shared_ext$major'
11003  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11004  shlibpath_var=LD_LIBRARY_PATH
11005  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11006  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11007  # the default ld.so.conf also contains /usr/contrib/lib and
11008  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11009  # libtool to hard-code these into programs
11010  ;;
11011
11012cygwin* | mingw* | pw32* | cegcc*)
11013  version_type=windows
11014  shrext_cmds=.dll
11015  need_version=no
11016  need_lib_prefix=no
11017
11018  case $GCC,$cc_basename in
11019  yes,*)
11020    # gcc
11021    library_names_spec='$libname.dll.a'
11022    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11023    postinstall_cmds='base_file=`basename \$file`~
11024      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11025      dldir=$destdir/`dirname \$dlpath`~
11026      test -d \$dldir || mkdir -p \$dldir~
11027      $install_prog $dir/$dlname \$dldir/$dlname~
11028      chmod a+x \$dldir/$dlname~
11029      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11030        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11031      fi'
11032    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11033      dlpath=$dir/\$dldll~
11034       $RM \$dlpath'
11035    shlibpath_overrides_runpath=yes
11036
11037    case $host_os in
11038    cygwin*)
11039      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11040      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11041
11042      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11043      ;;
11044    mingw* | cegcc*)
11045      # MinGW DLLs use traditional 'lib' prefix
11046      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11047      ;;
11048    pw32*)
11049      # pw32 DLLs use 'pw' prefix rather than 'lib'
11050      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11051      ;;
11052    esac
11053    dynamic_linker='Win32 ld.exe'
11054    ;;
11055
11056  *,cl*)
11057    # Native MSVC
11058    libname_spec='$name'
11059    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11060    library_names_spec='$libname.dll.lib'
11061
11062    case $build_os in
11063    mingw*)
11064      sys_lib_search_path_spec=
11065      lt_save_ifs=$IFS
11066      IFS=';'
11067      for lt_path in $LIB
11068      do
11069        IFS=$lt_save_ifs
11070        # Let DOS variable expansion print the short 8.3 style file name.
11071        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11072        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11073      done
11074      IFS=$lt_save_ifs
11075      # Convert to MSYS style.
11076      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11077      ;;
11078    cygwin*)
11079      # Convert to unix form, then to dos form, then back to unix form
11080      # but this time dos style (no spaces!) so that the unix form looks
11081      # like /cygdrive/c/PROGRA~1:/cygdr...
11082      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11083      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11084      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11085      ;;
11086    *)
11087      sys_lib_search_path_spec=$LIB
11088      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11089        # It is most probably a Windows format PATH.
11090        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11091      else
11092        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11093      fi
11094      # FIXME: find the short name or the path components, as spaces are
11095      # common. (e.g. "Program Files" -> "PROGRA~1")
11096      ;;
11097    esac
11098
11099    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11100    postinstall_cmds='base_file=`basename \$file`~
11101      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11102      dldir=$destdir/`dirname \$dlpath`~
11103      test -d \$dldir || mkdir -p \$dldir~
11104      $install_prog $dir/$dlname \$dldir/$dlname'
11105    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11106      dlpath=$dir/\$dldll~
11107       $RM \$dlpath'
11108    shlibpath_overrides_runpath=yes
11109    dynamic_linker='Win32 link.exe'
11110    ;;
11111
11112  *)
11113    # Assume MSVC wrapper
11114    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11115    dynamic_linker='Win32 ld.exe'
11116    ;;
11117  esac
11118  # FIXME: first we should search . and the directory the executable is in
11119  shlibpath_var=PATH
11120  ;;
11121
11122darwin* | rhapsody*)
11123  dynamic_linker="$host_os dyld"
11124  version_type=darwin
11125  need_lib_prefix=no
11126  need_version=no
11127  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11128  soname_spec='$libname$release$major$shared_ext'
11129  shlibpath_overrides_runpath=yes
11130  shlibpath_var=DYLD_LIBRARY_PATH
11131  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11132
11133  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11134  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11135  ;;
11136
11137dgux*)
11138  version_type=linux # correct to gnu/linux during the next big refactor
11139  need_lib_prefix=no
11140  need_version=no
11141  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11142  soname_spec='$libname$release$shared_ext$major'
11143  shlibpath_var=LD_LIBRARY_PATH
11144  ;;
11145
11146freebsd* | dragonfly*)
11147  # DragonFly does not have aout.  When/if they implement a new
11148  # versioning mechanism, adjust this.
11149  if test -x /usr/bin/objformat; then
11150    objformat=`/usr/bin/objformat`
11151  else
11152    case $host_os in
11153    freebsd[23].*) objformat=aout ;;
11154    *) objformat=elf ;;
11155    esac
11156  fi
11157  version_type=freebsd-$objformat
11158  case $version_type in
11159    freebsd-elf*)
11160      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11161      soname_spec='$libname$release$shared_ext$major'
11162      need_version=no
11163      need_lib_prefix=no
11164      ;;
11165    freebsd-*)
11166      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11167      need_version=yes
11168      ;;
11169  esac
11170  shlibpath_var=LD_LIBRARY_PATH
11171  case $host_os in
11172  freebsd2.*)
11173    shlibpath_overrides_runpath=yes
11174    ;;
11175  freebsd3.[01]* | freebsdelf3.[01]*)
11176    shlibpath_overrides_runpath=yes
11177    hardcode_into_libs=yes
11178    ;;
11179  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11180  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11181    shlibpath_overrides_runpath=no
11182    hardcode_into_libs=yes
11183    ;;
11184  *) # from 4.6 on, and DragonFly
11185    shlibpath_overrides_runpath=yes
11186    hardcode_into_libs=yes
11187    ;;
11188  esac
11189  ;;
11190
11191haiku*)
11192  version_type=linux # correct to gnu/linux during the next big refactor
11193  need_lib_prefix=no
11194  need_version=no
11195  dynamic_linker="$host_os runtime_loader"
11196  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11197  soname_spec='$libname$release$shared_ext$major'
11198  shlibpath_var=LIBRARY_PATH
11199  shlibpath_overrides_runpath=no
11200  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11201  hardcode_into_libs=yes
11202  ;;
11203
11204hpux9* | hpux10* | hpux11*)
11205  # Give a soname corresponding to the major version so that dld.sl refuses to
11206  # link against other versions.
11207  version_type=sunos
11208  need_lib_prefix=no
11209  need_version=no
11210  case $host_cpu in
11211  ia64*)
11212    shrext_cmds='.so'
11213    hardcode_into_libs=yes
11214    dynamic_linker="$host_os dld.so"
11215    shlibpath_var=LD_LIBRARY_PATH
11216    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11217    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11218    soname_spec='$libname$release$shared_ext$major'
11219    if test 32 = "$HPUX_IA64_MODE"; then
11220      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11221      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11222    else
11223      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11224      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11225    fi
11226    ;;
11227  hppa*64*)
11228    shrext_cmds='.sl'
11229    hardcode_into_libs=yes
11230    dynamic_linker="$host_os dld.sl"
11231    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11232    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11233    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11234    soname_spec='$libname$release$shared_ext$major'
11235    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11236    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11237    ;;
11238  *)
11239    shrext_cmds='.sl'
11240    dynamic_linker="$host_os dld.sl"
11241    shlibpath_var=SHLIB_PATH
11242    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11243    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11244    soname_spec='$libname$release$shared_ext$major'
11245    ;;
11246  esac
11247  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11248  postinstall_cmds='chmod 555 $lib'
11249  # or fails outright, so override atomically:
11250  install_override_mode=555
11251  ;;
11252
11253interix[3-9]*)
11254  version_type=linux # correct to gnu/linux during the next big refactor
11255  need_lib_prefix=no
11256  need_version=no
11257  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11258  soname_spec='$libname$release$shared_ext$major'
11259  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11260  shlibpath_var=LD_LIBRARY_PATH
11261  shlibpath_overrides_runpath=no
11262  hardcode_into_libs=yes
11263  ;;
11264
11265irix5* | irix6* | nonstopux*)
11266  case $host_os in
11267    nonstopux*) version_type=nonstopux ;;
11268    *)
11269	if test yes = "$lt_cv_prog_gnu_ld"; then
11270		version_type=linux # correct to gnu/linux during the next big refactor
11271	else
11272		version_type=irix
11273	fi ;;
11274  esac
11275  need_lib_prefix=no
11276  need_version=no
11277  soname_spec='$libname$release$shared_ext$major'
11278  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11279  case $host_os in
11280  irix5* | nonstopux*)
11281    libsuff= shlibsuff=
11282    ;;
11283  *)
11284    case $LD in # libtool.m4 will add one of these switches to LD
11285    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11286      libsuff= shlibsuff= libmagic=32-bit;;
11287    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11288      libsuff=32 shlibsuff=N32 libmagic=N32;;
11289    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11290      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11291    *) libsuff= shlibsuff= libmagic=never-match;;
11292    esac
11293    ;;
11294  esac
11295  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11296  shlibpath_overrides_runpath=no
11297  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11298  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11299  hardcode_into_libs=yes
11300  ;;
11301
11302# No shared lib support for Linux oldld, aout, or coff.
11303linux*oldld* | linux*aout* | linux*coff*)
11304  dynamic_linker=no
11305  ;;
11306
11307linux*android*)
11308  version_type=none # Android doesn't support versioned libraries.
11309  need_lib_prefix=no
11310  need_version=no
11311  library_names_spec='$libname$release$shared_ext'
11312  soname_spec='$libname$release$shared_ext'
11313  finish_cmds=
11314  shlibpath_var=LD_LIBRARY_PATH
11315  shlibpath_overrides_runpath=yes
11316
11317  # This implies no fast_install, which is unacceptable.
11318  # Some rework will be needed to allow for fast_install
11319  # before this can be enabled.
11320  hardcode_into_libs=yes
11321
11322  dynamic_linker='Android linker'
11323  # Don't embed -rpath directories since the linker doesn't support them.
11324  hardcode_libdir_flag_spec='-L$libdir'
11325  ;;
11326
11327# This must be glibc/ELF.
11328linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11329  version_type=linux # correct to gnu/linux during the next big refactor
11330  need_lib_prefix=no
11331  need_version=no
11332  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11333  soname_spec='$libname$release$shared_ext$major'
11334  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11335  shlibpath_var=LD_LIBRARY_PATH
11336  shlibpath_overrides_runpath=no
11337
11338  # Some binutils ld are patched to set DT_RUNPATH
11339  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11340  $as_echo_n "(cached) " >&6
11341else
11342  lt_cv_shlibpath_overrides_runpath=no
11343    save_LDFLAGS=$LDFLAGS
11344    save_libdir=$libdir
11345    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11346	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11347    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348/* end confdefs.h.  */
11349
11350int
11351main ()
11352{
11353
11354  ;
11355  return 0;
11356}
11357_ACEOF
11358if ac_fn_c_try_link "$LINENO"; then :
11359  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11360  lt_cv_shlibpath_overrides_runpath=yes
11361fi
11362fi
11363rm -f core conftest.err conftest.$ac_objext \
11364    conftest$ac_exeext conftest.$ac_ext
11365    LDFLAGS=$save_LDFLAGS
11366    libdir=$save_libdir
11367
11368fi
11369
11370  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11371
11372  # This implies no fast_install, which is unacceptable.
11373  # Some rework will be needed to allow for fast_install
11374  # before this can be enabled.
11375  hardcode_into_libs=yes
11376
11377  # Ideally, we could use ldconfig to report *all* directores which are
11378  # searched for libraries, however this is still not possible.  Aside from not
11379  # being certain /sbin/ldconfig is available, command
11380  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11381  # even though it is searched at run-time.  Try to do the best guess by
11382  # appending ld.so.conf contents (and includes) to the search path.
11383  if test -f /etc/ld.so.conf; then
11384    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' ' '`
11385    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11386  fi
11387
11388  # We used to test for /lib/ld.so.1 and disable shared libraries on
11389  # powerpc, because MkLinux only supported shared libraries with the
11390  # GNU dynamic linker.  Since this was broken with cross compilers,
11391  # most powerpc-linux boxes support dynamic linking these days and
11392  # people can always --disable-shared, the test was removed, and we
11393  # assume the GNU/Linux dynamic linker is in use.
11394  dynamic_linker='GNU/Linux ld.so'
11395  ;;
11396
11397netbsd*)
11398  version_type=sunos
11399  need_lib_prefix=no
11400  need_version=no
11401  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11402    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11403    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11404    dynamic_linker='NetBSD (a.out) ld.so'
11405  else
11406    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11407    soname_spec='$libname$release$shared_ext$major'
11408    dynamic_linker='NetBSD ld.elf_so'
11409  fi
11410  shlibpath_var=LD_LIBRARY_PATH
11411  shlibpath_overrides_runpath=yes
11412  hardcode_into_libs=yes
11413  ;;
11414
11415newsos6)
11416  version_type=linux # correct to gnu/linux during the next big refactor
11417  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11418  shlibpath_var=LD_LIBRARY_PATH
11419  shlibpath_overrides_runpath=yes
11420  ;;
11421
11422*nto* | *qnx*)
11423  version_type=qnx
11424  need_lib_prefix=no
11425  need_version=no
11426  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11427  soname_spec='$libname$release$shared_ext$major'
11428  shlibpath_var=LD_LIBRARY_PATH
11429  shlibpath_overrides_runpath=no
11430  hardcode_into_libs=yes
11431  dynamic_linker='ldqnx.so'
11432  ;;
11433
11434openbsd* | bitrig*)
11435  version_type=sunos
11436  sys_lib_dlsearch_path_spec=/usr/lib
11437  need_lib_prefix=no
11438  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11439    need_version=no
11440  else
11441    need_version=yes
11442  fi
11443  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11444  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11445  shlibpath_var=LD_LIBRARY_PATH
11446  shlibpath_overrides_runpath=yes
11447  ;;
11448
11449os2*)
11450  libname_spec='$name'
11451  version_type=windows
11452  shrext_cmds=.dll
11453  need_version=no
11454  need_lib_prefix=no
11455  # OS/2 can only load a DLL with a base name of 8 characters or less.
11456  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11457    v=$($ECHO $release$versuffix | tr -d .-);
11458    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11459    $ECHO $n$v`$shared_ext'
11460  library_names_spec='${libname}_dll.$libext'
11461  dynamic_linker='OS/2 ld.exe'
11462  shlibpath_var=BEGINLIBPATH
11463  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11464  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11465  postinstall_cmds='base_file=`basename \$file`~
11466    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11467    dldir=$destdir/`dirname \$dlpath`~
11468    test -d \$dldir || mkdir -p \$dldir~
11469    $install_prog $dir/$dlname \$dldir/$dlname~
11470    chmod a+x \$dldir/$dlname~
11471    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11472      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11473    fi'
11474  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11475    dlpath=$dir/\$dldll~
11476    $RM \$dlpath'
11477  ;;
11478
11479osf3* | osf4* | osf5*)
11480  version_type=osf
11481  need_lib_prefix=no
11482  need_version=no
11483  soname_spec='$libname$release$shared_ext$major'
11484  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11485  shlibpath_var=LD_LIBRARY_PATH
11486  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11487  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11488  ;;
11489
11490rdos*)
11491  dynamic_linker=no
11492  ;;
11493
11494solaris*)
11495  version_type=linux # correct to gnu/linux during the next big refactor
11496  need_lib_prefix=no
11497  need_version=no
11498  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11499  soname_spec='$libname$release$shared_ext$major'
11500  shlibpath_var=LD_LIBRARY_PATH
11501  shlibpath_overrides_runpath=yes
11502  hardcode_into_libs=yes
11503  # ldd complains unless libraries are executable
11504  postinstall_cmds='chmod +x $lib'
11505  ;;
11506
11507sunos4*)
11508  version_type=sunos
11509  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11510  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11511  shlibpath_var=LD_LIBRARY_PATH
11512  shlibpath_overrides_runpath=yes
11513  if test yes = "$with_gnu_ld"; then
11514    need_lib_prefix=no
11515  fi
11516  need_version=yes
11517  ;;
11518
11519sysv4 | sysv4.3*)
11520  version_type=linux # correct to gnu/linux during the next big refactor
11521  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11522  soname_spec='$libname$release$shared_ext$major'
11523  shlibpath_var=LD_LIBRARY_PATH
11524  case $host_vendor in
11525    sni)
11526      shlibpath_overrides_runpath=no
11527      need_lib_prefix=no
11528      runpath_var=LD_RUN_PATH
11529      ;;
11530    siemens)
11531      need_lib_prefix=no
11532      ;;
11533    motorola)
11534      need_lib_prefix=no
11535      need_version=no
11536      shlibpath_overrides_runpath=no
11537      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11538      ;;
11539  esac
11540  ;;
11541
11542sysv4*MP*)
11543  if test -d /usr/nec; then
11544    version_type=linux # correct to gnu/linux during the next big refactor
11545    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11546    soname_spec='$libname$shared_ext.$major'
11547    shlibpath_var=LD_LIBRARY_PATH
11548  fi
11549  ;;
11550
11551sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11552  version_type=sco
11553  need_lib_prefix=no
11554  need_version=no
11555  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11556  soname_spec='$libname$release$shared_ext$major'
11557  shlibpath_var=LD_LIBRARY_PATH
11558  shlibpath_overrides_runpath=yes
11559  hardcode_into_libs=yes
11560  if test yes = "$with_gnu_ld"; then
11561    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11562  else
11563    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11564    case $host_os in
11565      sco3.2v5*)
11566        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11567	;;
11568    esac
11569  fi
11570  sys_lib_dlsearch_path_spec='/usr/lib'
11571  ;;
11572
11573tpf*)
11574  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11575  version_type=linux # correct to gnu/linux during the next big refactor
11576  need_lib_prefix=no
11577  need_version=no
11578  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11579  shlibpath_var=LD_LIBRARY_PATH
11580  shlibpath_overrides_runpath=no
11581  hardcode_into_libs=yes
11582  ;;
11583
11584uts4*)
11585  version_type=linux # correct to gnu/linux during the next big refactor
11586  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11587  soname_spec='$libname$release$shared_ext$major'
11588  shlibpath_var=LD_LIBRARY_PATH
11589  ;;
11590
11591*)
11592  dynamic_linker=no
11593  ;;
11594esac
11595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11596$as_echo "$dynamic_linker" >&6; }
11597test no = "$dynamic_linker" && can_build_shared=no
11598
11599variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11600if test yes = "$GCC"; then
11601  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11602fi
11603
11604if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11605  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11606fi
11607
11608if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11609  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11610fi
11611
11612# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11613configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11614
11615# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11616func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11617
11618# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11619configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11718$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11719hardcode_action=
11720if test -n "$hardcode_libdir_flag_spec" ||
11721   test -n "$runpath_var" ||
11722   test yes = "$hardcode_automatic"; then
11723
11724  # We can hardcode non-existent directories.
11725  if test no != "$hardcode_direct" &&
11726     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11727     # have to relink, otherwise we might link with an installed library
11728     # when we should be linking with a yet-to-be-installed one
11729     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11730     test no != "$hardcode_minus_L"; then
11731    # Linking always hardcodes the temporary library directory.
11732    hardcode_action=relink
11733  else
11734    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11735    hardcode_action=immediate
11736  fi
11737else
11738  # We cannot hardcode anything, or else we can only hardcode existing
11739  # directories.
11740  hardcode_action=unsupported
11741fi
11742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11743$as_echo "$hardcode_action" >&6; }
11744
11745if test relink = "$hardcode_action" ||
11746   test yes = "$inherit_rpath"; then
11747  # Fast installation is not supported
11748  enable_fast_install=no
11749elif test yes = "$shlibpath_overrides_runpath" ||
11750     test no = "$enable_shared"; then
11751  # Fast installation is not necessary
11752  enable_fast_install=needless
11753fi
11754
11755
11756
11757
11758
11759
11760  if test yes != "$enable_dlopen"; then
11761  enable_dlopen=unknown
11762  enable_dlopen_self=unknown
11763  enable_dlopen_self_static=unknown
11764else
11765  lt_cv_dlopen=no
11766  lt_cv_dlopen_libs=
11767
11768  case $host_os in
11769  beos*)
11770    lt_cv_dlopen=load_add_on
11771    lt_cv_dlopen_libs=
11772    lt_cv_dlopen_self=yes
11773    ;;
11774
11775  mingw* | pw32* | cegcc*)
11776    lt_cv_dlopen=LoadLibrary
11777    lt_cv_dlopen_libs=
11778    ;;
11779
11780  cygwin*)
11781    lt_cv_dlopen=dlopen
11782    lt_cv_dlopen_libs=
11783    ;;
11784
11785  darwin*)
11786    # if libdl is installed we need to link against it
11787    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11788$as_echo_n "checking for dlopen in -ldl... " >&6; }
11789if ${ac_cv_lib_dl_dlopen+:} false; then :
11790  $as_echo_n "(cached) " >&6
11791else
11792  ac_check_lib_save_LIBS=$LIBS
11793LIBS="-ldl  $LIBS"
11794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795/* end confdefs.h.  */
11796
11797/* Override any GCC internal prototype to avoid an error.
11798   Use char because int might match the return type of a GCC
11799   builtin and then its argument prototype would still apply.  */
11800#ifdef __cplusplus
11801extern "C"
11802#endif
11803char dlopen ();
11804int
11805main ()
11806{
11807return dlopen ();
11808  ;
11809  return 0;
11810}
11811_ACEOF
11812if ac_fn_c_try_link "$LINENO"; then :
11813  ac_cv_lib_dl_dlopen=yes
11814else
11815  ac_cv_lib_dl_dlopen=no
11816fi
11817rm -f core conftest.err conftest.$ac_objext \
11818    conftest$ac_exeext conftest.$ac_ext
11819LIBS=$ac_check_lib_save_LIBS
11820fi
11821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11822$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11823if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11824  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11825else
11826
11827    lt_cv_dlopen=dyld
11828    lt_cv_dlopen_libs=
11829    lt_cv_dlopen_self=yes
11830
11831fi
11832
11833    ;;
11834
11835  tpf*)
11836    # Don't try to run any link tests for TPF.  We know it's impossible
11837    # because TPF is a cross-compiler, and we know how we open DSOs.
11838    lt_cv_dlopen=dlopen
11839    lt_cv_dlopen_libs=
11840    lt_cv_dlopen_self=no
11841    ;;
11842
11843  *)
11844    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11845if test "x$ac_cv_func_shl_load" = xyes; then :
11846  lt_cv_dlopen=shl_load
11847else
11848  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11849$as_echo_n "checking for shl_load in -ldld... " >&6; }
11850if ${ac_cv_lib_dld_shl_load+:} false; then :
11851  $as_echo_n "(cached) " >&6
11852else
11853  ac_check_lib_save_LIBS=$LIBS
11854LIBS="-ldld  $LIBS"
11855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11856/* end confdefs.h.  */
11857
11858/* Override any GCC internal prototype to avoid an error.
11859   Use char because int might match the return type of a GCC
11860   builtin and then its argument prototype would still apply.  */
11861#ifdef __cplusplus
11862extern "C"
11863#endif
11864char shl_load ();
11865int
11866main ()
11867{
11868return shl_load ();
11869  ;
11870  return 0;
11871}
11872_ACEOF
11873if ac_fn_c_try_link "$LINENO"; then :
11874  ac_cv_lib_dld_shl_load=yes
11875else
11876  ac_cv_lib_dld_shl_load=no
11877fi
11878rm -f core conftest.err conftest.$ac_objext \
11879    conftest$ac_exeext conftest.$ac_ext
11880LIBS=$ac_check_lib_save_LIBS
11881fi
11882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11883$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11884if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11885  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11886else
11887  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11888if test "x$ac_cv_func_dlopen" = xyes; then :
11889  lt_cv_dlopen=dlopen
11890else
11891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11892$as_echo_n "checking for dlopen in -ldl... " >&6; }
11893if ${ac_cv_lib_dl_dlopen+:} false; then :
11894  $as_echo_n "(cached) " >&6
11895else
11896  ac_check_lib_save_LIBS=$LIBS
11897LIBS="-ldl  $LIBS"
11898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899/* end confdefs.h.  */
11900
11901/* Override any GCC internal prototype to avoid an error.
11902   Use char because int might match the return type of a GCC
11903   builtin and then its argument prototype would still apply.  */
11904#ifdef __cplusplus
11905extern "C"
11906#endif
11907char dlopen ();
11908int
11909main ()
11910{
11911return dlopen ();
11912  ;
11913  return 0;
11914}
11915_ACEOF
11916if ac_fn_c_try_link "$LINENO"; then :
11917  ac_cv_lib_dl_dlopen=yes
11918else
11919  ac_cv_lib_dl_dlopen=no
11920fi
11921rm -f core conftest.err conftest.$ac_objext \
11922    conftest$ac_exeext conftest.$ac_ext
11923LIBS=$ac_check_lib_save_LIBS
11924fi
11925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11926$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11927if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11928  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11929else
11930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11931$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11932if ${ac_cv_lib_svld_dlopen+:} false; then :
11933  $as_echo_n "(cached) " >&6
11934else
11935  ac_check_lib_save_LIBS=$LIBS
11936LIBS="-lsvld  $LIBS"
11937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938/* end confdefs.h.  */
11939
11940/* Override any GCC internal prototype to avoid an error.
11941   Use char because int might match the return type of a GCC
11942   builtin and then its argument prototype would still apply.  */
11943#ifdef __cplusplus
11944extern "C"
11945#endif
11946char dlopen ();
11947int
11948main ()
11949{
11950return dlopen ();
11951  ;
11952  return 0;
11953}
11954_ACEOF
11955if ac_fn_c_try_link "$LINENO"; then :
11956  ac_cv_lib_svld_dlopen=yes
11957else
11958  ac_cv_lib_svld_dlopen=no
11959fi
11960rm -f core conftest.err conftest.$ac_objext \
11961    conftest$ac_exeext conftest.$ac_ext
11962LIBS=$ac_check_lib_save_LIBS
11963fi
11964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11965$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11966if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11967  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11968else
11969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11970$as_echo_n "checking for dld_link in -ldld... " >&6; }
11971if ${ac_cv_lib_dld_dld_link+:} false; then :
11972  $as_echo_n "(cached) " >&6
11973else
11974  ac_check_lib_save_LIBS=$LIBS
11975LIBS="-ldld  $LIBS"
11976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977/* end confdefs.h.  */
11978
11979/* Override any GCC internal prototype to avoid an error.
11980   Use char because int might match the return type of a GCC
11981   builtin and then its argument prototype would still apply.  */
11982#ifdef __cplusplus
11983extern "C"
11984#endif
11985char dld_link ();
11986int
11987main ()
11988{
11989return dld_link ();
11990  ;
11991  return 0;
11992}
11993_ACEOF
11994if ac_fn_c_try_link "$LINENO"; then :
11995  ac_cv_lib_dld_dld_link=yes
11996else
11997  ac_cv_lib_dld_dld_link=no
11998fi
11999rm -f core conftest.err conftest.$ac_objext \
12000    conftest$ac_exeext conftest.$ac_ext
12001LIBS=$ac_check_lib_save_LIBS
12002fi
12003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12004$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12005if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12006  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12007fi
12008
12009
12010fi
12011
12012
12013fi
12014
12015
12016fi
12017
12018
12019fi
12020
12021
12022fi
12023
12024    ;;
12025  esac
12026
12027  if test no = "$lt_cv_dlopen"; then
12028    enable_dlopen=no
12029  else
12030    enable_dlopen=yes
12031  fi
12032
12033  case $lt_cv_dlopen in
12034  dlopen)
12035    save_CPPFLAGS=$CPPFLAGS
12036    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12037
12038    save_LDFLAGS=$LDFLAGS
12039    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12040
12041    save_LIBS=$LIBS
12042    LIBS="$lt_cv_dlopen_libs $LIBS"
12043
12044    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12045$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12046if ${lt_cv_dlopen_self+:} false; then :
12047  $as_echo_n "(cached) " >&6
12048else
12049  	  if test yes = "$cross_compiling"; then :
12050  lt_cv_dlopen_self=cross
12051else
12052  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12053  lt_status=$lt_dlunknown
12054  cat > conftest.$ac_ext <<_LT_EOF
12055#line $LINENO "configure"
12056#include "confdefs.h"
12057
12058#if HAVE_DLFCN_H
12059#include <dlfcn.h>
12060#endif
12061
12062#include <stdio.h>
12063
12064#ifdef RTLD_GLOBAL
12065#  define LT_DLGLOBAL		RTLD_GLOBAL
12066#else
12067#  ifdef DL_GLOBAL
12068#    define LT_DLGLOBAL		DL_GLOBAL
12069#  else
12070#    define LT_DLGLOBAL		0
12071#  endif
12072#endif
12073
12074/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12075   find out it does not work in some platform. */
12076#ifndef LT_DLLAZY_OR_NOW
12077#  ifdef RTLD_LAZY
12078#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12079#  else
12080#    ifdef DL_LAZY
12081#      define LT_DLLAZY_OR_NOW		DL_LAZY
12082#    else
12083#      ifdef RTLD_NOW
12084#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12085#      else
12086#        ifdef DL_NOW
12087#          define LT_DLLAZY_OR_NOW	DL_NOW
12088#        else
12089#          define LT_DLLAZY_OR_NOW	0
12090#        endif
12091#      endif
12092#    endif
12093#  endif
12094#endif
12095
12096/* When -fvisibility=hidden is used, assume the code has been annotated
12097   correspondingly for the symbols needed.  */
12098#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12099int fnord () __attribute__((visibility("default")));
12100#endif
12101
12102int fnord () { return 42; }
12103int main ()
12104{
12105  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12106  int status = $lt_dlunknown;
12107
12108  if (self)
12109    {
12110      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12111      else
12112        {
12113	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12114          else puts (dlerror ());
12115	}
12116      /* dlclose (self); */
12117    }
12118  else
12119    puts (dlerror ());
12120
12121  return status;
12122}
12123_LT_EOF
12124  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12125  (eval $ac_link) 2>&5
12126  ac_status=$?
12127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12128  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12129    (./conftest; exit; ) >&5 2>/dev/null
12130    lt_status=$?
12131    case x$lt_status in
12132      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12133      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12134      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12135    esac
12136  else :
12137    # compilation failed
12138    lt_cv_dlopen_self=no
12139  fi
12140fi
12141rm -fr conftest*
12142
12143
12144fi
12145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12146$as_echo "$lt_cv_dlopen_self" >&6; }
12147
12148    if test yes = "$lt_cv_dlopen_self"; then
12149      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12150      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12151$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12152if ${lt_cv_dlopen_self_static+:} false; then :
12153  $as_echo_n "(cached) " >&6
12154else
12155  	  if test yes = "$cross_compiling"; then :
12156  lt_cv_dlopen_self_static=cross
12157else
12158  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12159  lt_status=$lt_dlunknown
12160  cat > conftest.$ac_ext <<_LT_EOF
12161#line $LINENO "configure"
12162#include "confdefs.h"
12163
12164#if HAVE_DLFCN_H
12165#include <dlfcn.h>
12166#endif
12167
12168#include <stdio.h>
12169
12170#ifdef RTLD_GLOBAL
12171#  define LT_DLGLOBAL		RTLD_GLOBAL
12172#else
12173#  ifdef DL_GLOBAL
12174#    define LT_DLGLOBAL		DL_GLOBAL
12175#  else
12176#    define LT_DLGLOBAL		0
12177#  endif
12178#endif
12179
12180/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12181   find out it does not work in some platform. */
12182#ifndef LT_DLLAZY_OR_NOW
12183#  ifdef RTLD_LAZY
12184#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12185#  else
12186#    ifdef DL_LAZY
12187#      define LT_DLLAZY_OR_NOW		DL_LAZY
12188#    else
12189#      ifdef RTLD_NOW
12190#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12191#      else
12192#        ifdef DL_NOW
12193#          define LT_DLLAZY_OR_NOW	DL_NOW
12194#        else
12195#          define LT_DLLAZY_OR_NOW	0
12196#        endif
12197#      endif
12198#    endif
12199#  endif
12200#endif
12201
12202/* When -fvisibility=hidden is used, assume the code has been annotated
12203   correspondingly for the symbols needed.  */
12204#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12205int fnord () __attribute__((visibility("default")));
12206#endif
12207
12208int fnord () { return 42; }
12209int main ()
12210{
12211  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12212  int status = $lt_dlunknown;
12213
12214  if (self)
12215    {
12216      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12217      else
12218        {
12219	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12220          else puts (dlerror ());
12221	}
12222      /* dlclose (self); */
12223    }
12224  else
12225    puts (dlerror ());
12226
12227  return status;
12228}
12229_LT_EOF
12230  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12231  (eval $ac_link) 2>&5
12232  ac_status=$?
12233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12234  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12235    (./conftest; exit; ) >&5 2>/dev/null
12236    lt_status=$?
12237    case x$lt_status in
12238      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12239      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12240      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12241    esac
12242  else :
12243    # compilation failed
12244    lt_cv_dlopen_self_static=no
12245  fi
12246fi
12247rm -fr conftest*
12248
12249
12250fi
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12252$as_echo "$lt_cv_dlopen_self_static" >&6; }
12253    fi
12254
12255    CPPFLAGS=$save_CPPFLAGS
12256    LDFLAGS=$save_LDFLAGS
12257    LIBS=$save_LIBS
12258    ;;
12259  esac
12260
12261  case $lt_cv_dlopen_self in
12262  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12263  *) enable_dlopen_self=unknown ;;
12264  esac
12265
12266  case $lt_cv_dlopen_self_static in
12267  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12268  *) enable_dlopen_self_static=unknown ;;
12269  esac
12270fi
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288striplib=
12289old_striplib=
12290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12291$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12292if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12293  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12294  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12296$as_echo "yes" >&6; }
12297else
12298# FIXME - insert some real tests, host_os isn't really good enough
12299  case $host_os in
12300  darwin*)
12301    if test -n "$STRIP"; then
12302      striplib="$STRIP -x"
12303      old_striplib="$STRIP -S"
12304      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12305$as_echo "yes" >&6; }
12306    else
12307      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308$as_echo "no" >&6; }
12309    fi
12310    ;;
12311  *)
12312    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313$as_echo "no" >&6; }
12314    ;;
12315  esac
12316fi
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329  # Report what library types will actually be built
12330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12331$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12333$as_echo "$can_build_shared" >&6; }
12334
12335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12336$as_echo_n "checking whether to build shared libraries... " >&6; }
12337  test no = "$can_build_shared" && enable_shared=no
12338
12339  # On AIX, shared libraries and static libraries use the same namespace, and
12340  # are all built from PIC.
12341  case $host_os in
12342  aix3*)
12343    test yes = "$enable_shared" && enable_static=no
12344    if test -n "$RANLIB"; then
12345      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12346      postinstall_cmds='$RANLIB $lib'
12347    fi
12348    ;;
12349
12350  aix[4-9]*)
12351    if test ia64 != "$host_cpu"; then
12352      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12353      yes,aix,yes) ;;			# shared object as lib.so file only
12354      yes,svr4,*) ;;			# shared object as lib.so archive member only
12355      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12356      esac
12357    fi
12358    ;;
12359  esac
12360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12361$as_echo "$enable_shared" >&6; }
12362
12363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12364$as_echo_n "checking whether to build static libraries... " >&6; }
12365  # Make sure either enable_shared or enable_static is yes.
12366  test yes = "$enable_shared" || enable_static=yes
12367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12368$as_echo "$enable_static" >&6; }
12369
12370
12371
12372
12373fi
12374ac_ext=c
12375ac_cpp='$CPP $CPPFLAGS'
12376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12378ac_compiler_gnu=$ac_cv_c_compiler_gnu
12379
12380CC=$lt_save_CC
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396        ac_config_commands="$ac_config_commands libtool"
12397
12398
12399
12400
12401# Only expand once:
12402
12403
12404
12405
12406# Checks for typedefs, structures, and compiler characteristics.
12407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12408$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12409if ${ac_cv_c_const+:} false; then :
12410  $as_echo_n "(cached) " >&6
12411else
12412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413/* end confdefs.h.  */
12414
12415int
12416main ()
12417{
12418
12419#ifndef __cplusplus
12420  /* Ultrix mips cc rejects this sort of thing.  */
12421  typedef int charset[2];
12422  const charset cs = { 0, 0 };
12423  /* SunOS 4.1.1 cc rejects this.  */
12424  char const *const *pcpcc;
12425  char **ppc;
12426  /* NEC SVR4.0.2 mips cc rejects this.  */
12427  struct point {int x, y;};
12428  static struct point const zero = {0,0};
12429  /* AIX XL C 1.02.0.0 rejects this.
12430     It does not let you subtract one const X* pointer from another in
12431     an arm of an if-expression whose if-part is not a constant
12432     expression */
12433  const char *g = "string";
12434  pcpcc = &g + (g ? g-g : 0);
12435  /* HPUX 7.0 cc rejects these. */
12436  ++pcpcc;
12437  ppc = (char**) pcpcc;
12438  pcpcc = (char const *const *) ppc;
12439  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12440    char tx;
12441    char *t = &tx;
12442    char const *s = 0 ? (char *) 0 : (char const *) 0;
12443
12444    *t++ = 0;
12445    if (s) return 0;
12446  }
12447  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12448    int x[] = {25, 17};
12449    const int *foo = &x[0];
12450    ++foo;
12451  }
12452  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12453    typedef const int *iptr;
12454    iptr p = 0;
12455    ++p;
12456  }
12457  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12458       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12459    struct s { int j; const int *ap[3]; } bx;
12460    struct s *b = &bx; b->j = 5;
12461  }
12462  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12463    const int foo = 10;
12464    if (!foo) return 0;
12465  }
12466  return !cs[0] && !zero.x;
12467#endif
12468
12469  ;
12470  return 0;
12471}
12472_ACEOF
12473if ac_fn_c_try_compile "$LINENO"; then :
12474  ac_cv_c_const=yes
12475else
12476  ac_cv_c_const=no
12477fi
12478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479fi
12480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12481$as_echo "$ac_cv_c_const" >&6; }
12482if test $ac_cv_c_const = no; then
12483
12484$as_echo "@%:@define const /**/" >>confdefs.h
12485
12486fi
12487
12488ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12489if test "x$ac_cv_type_size_t" = xyes; then :
12490
12491else
12492
12493cat >>confdefs.h <<_ACEOF
12494@%:@define size_t unsigned int
12495_ACEOF
12496
12497fi
12498
12499
12500# Check for a windows build.
12501case $host in
12502   *mingw*|*cygwin*) windows=yes ;;
12503   *)                windows=no  ;;
12504esac
12505 if test "x$windows" = "xyes"; then
12506  WINDOWS_TRUE=
12507  WINDOWS_FALSE='#'
12508else
12509  WINDOWS_TRUE='#'
12510  WINDOWS_FALSE=
12511fi
12512
12513
12514# Checks for standard header files.
12515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12516$as_echo_n "checking for ANSI C header files... " >&6; }
12517if ${ac_cv_header_stdc+:} false; then :
12518  $as_echo_n "(cached) " >&6
12519else
12520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521/* end confdefs.h.  */
12522#include <stdlib.h>
12523#include <stdarg.h>
12524#include <string.h>
12525#include <float.h>
12526
12527int
12528main ()
12529{
12530
12531  ;
12532  return 0;
12533}
12534_ACEOF
12535if ac_fn_c_try_compile "$LINENO"; then :
12536  ac_cv_header_stdc=yes
12537else
12538  ac_cv_header_stdc=no
12539fi
12540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12541
12542if test $ac_cv_header_stdc = yes; then
12543  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12545/* end confdefs.h.  */
12546#include <string.h>
12547
12548_ACEOF
12549if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12550  $EGREP "memchr" >/dev/null 2>&1; then :
12551
12552else
12553  ac_cv_header_stdc=no
12554fi
12555rm -f conftest*
12556
12557fi
12558
12559if test $ac_cv_header_stdc = yes; then
12560  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562/* end confdefs.h.  */
12563#include <stdlib.h>
12564
12565_ACEOF
12566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12567  $EGREP "free" >/dev/null 2>&1; then :
12568
12569else
12570  ac_cv_header_stdc=no
12571fi
12572rm -f conftest*
12573
12574fi
12575
12576if test $ac_cv_header_stdc = yes; then
12577  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12578  if test "$cross_compiling" = yes; then :
12579  :
12580else
12581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582/* end confdefs.h.  */
12583#include <ctype.h>
12584#include <stdlib.h>
12585#if ((' ' & 0x0FF) == 0x020)
12586# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12587# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12588#else
12589# define ISLOWER(c) \
12590		   (('a' <= (c) && (c) <= 'i') \
12591		     || ('j' <= (c) && (c) <= 'r') \
12592		     || ('s' <= (c) && (c) <= 'z'))
12593# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12594#endif
12595
12596#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12597int
12598main ()
12599{
12600  int i;
12601  for (i = 0; i < 256; i++)
12602    if (XOR (islower (i), ISLOWER (i))
12603	|| toupper (i) != TOUPPER (i))
12604      return 2;
12605  return 0;
12606}
12607_ACEOF
12608if ac_fn_c_try_run "$LINENO"; then :
12609
12610else
12611  ac_cv_header_stdc=no
12612fi
12613rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12614  conftest.$ac_objext conftest.beam conftest.$ac_ext
12615fi
12616
12617fi
12618fi
12619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12620$as_echo "$ac_cv_header_stdc" >&6; }
12621if test $ac_cv_header_stdc = yes; then
12622
12623$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
12624
12625fi
12626
12627
12628# Checks for standard headers and functions.
12629if test "x$windows" = "xno"; then
12630   for ac_header in netdb.h arpa/inet.h netinet/tcp.h netinet/in.h sys/socket.h unistd.h
12631do :
12632  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12633ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12634if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12635  cat >>confdefs.h <<_ACEOF
12636@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12637_ACEOF
12638
12639else
12640  ac_headers_h="no"
12641fi
12642
12643done
12644
12645   if test "x$ac_headers_h" = "xno"; then
12646      as_fn_error $? "*** Standard headers not found." "$LINENO" 5
12647   fi
12648   for ac_func in socket connect bind listen setsockopt getsockopt getsockname gethostbyname
12649do :
12650  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12651ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12652if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12653  cat >>confdefs.h <<_ACEOF
12654@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12655_ACEOF
12656
12657else
12658  ac_funcs_c="no"
12659fi
12660done
12661
12662   if test "x$ac_funcs_c" = "xno"; then
12663      as_fn_error $? "*** Standard functions not found." "$LINENO" 5
12664   fi
12665fi
12666
12667# Checks for pthread library.
12668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
12669$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
12670if ${ac_cv_lib_pthread_pthread_create+:} false; then :
12671  $as_echo_n "(cached) " >&6
12672else
12673  ac_check_lib_save_LIBS=$LIBS
12674LIBS="-lpthread  $LIBS"
12675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676/* end confdefs.h.  */
12677
12678/* Override any GCC internal prototype to avoid an error.
12679   Use char because int might match the return type of a GCC
12680   builtin and then its argument prototype would still apply.  */
12681#ifdef __cplusplus
12682extern "C"
12683#endif
12684char pthread_create ();
12685int
12686main ()
12687{
12688return pthread_create ();
12689  ;
12690  return 0;
12691}
12692_ACEOF
12693if ac_fn_c_try_link "$LINENO"; then :
12694  ac_cv_lib_pthread_pthread_create=yes
12695else
12696  ac_cv_lib_pthread_pthread_create=no
12697fi
12698rm -f core conftest.err conftest.$ac_objext \
12699    conftest$ac_exeext conftest.$ac_ext
12700LIBS=$ac_check_lib_save_LIBS
12701fi
12702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
12703$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
12704if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
12705  cat >>confdefs.h <<_ACEOF
12706@%:@define HAVE_LIBPTHREAD 1
12707_ACEOF
12708
12709  LIBS="-lpthread $LIBS"
12710
12711fi
12712
12713
12714@%:@ Check whether --enable-static was given.
12715if test "${enable_static+set}" = set; then :
12716  enableval=$enable_static; p=${PACKAGE-default}
12717    case $enableval in
12718    yes) enable_static=yes ;;
12719    no) enable_static=no ;;
12720    *)
12721     enable_static=no
12722      # Look at the argument we got.  We use all the common list separators.
12723      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12724      for pkg in $enableval; do
12725	IFS=$lt_save_ifs
12726	if test "X$pkg" = "X$p"; then
12727	  enable_static=yes
12728	fi
12729      done
12730      IFS=$lt_save_ifs
12731      ;;
12732    esac
12733else
12734  enable_static=no
12735fi
12736
12737
12738
12739
12740
12741
12742@%:@ Check whether --enable-shared was given.
12743if test "${enable_shared+set}" = set; then :
12744  enableval=$enable_shared; p=${PACKAGE-default}
12745    case $enableval in
12746    yes) enable_shared=yes ;;
12747    no) enable_shared=no ;;
12748    *)
12749      enable_shared=no
12750      # Look at the argument we got.  We use all the common list separators.
12751      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12752      for pkg in $enableval; do
12753	IFS=$lt_save_ifs
12754	if test "X$pkg" = "X$p"; then
12755	  enable_shared=yes
12756	fi
12757      done
12758      IFS=$lt_save_ifs
12759      ;;
12760    esac
12761else
12762  enable_shared=yes
12763fi
12764
12765
12766
12767
12768
12769
12770
12771# Checks for doxygen.
12772# Extract the first word of "doxygen", so it can be a program name with args.
12773set dummy doxygen; ac_word=$2
12774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775$as_echo_n "checking for $ac_word... " >&6; }
12776if ${ac_cv_prog_ac_doxygen+:} false; then :
12777  $as_echo_n "(cached) " >&6
12778else
12779  if test -n "$ac_doxygen"; then
12780  ac_cv_prog_ac_doxygen="$ac_doxygen" # Let the user override the test.
12781else
12782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783for as_dir in $PATH
12784do
12785  IFS=$as_save_IFS
12786  test -z "$as_dir" && as_dir=.
12787    for ac_exec_ext in '' $ac_executable_extensions; do
12788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12789    ac_cv_prog_ac_doxygen="doc"
12790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12791    break 2
12792  fi
12793done
12794  done
12795IFS=$as_save_IFS
12796
12797fi
12798fi
12799ac_doxygen=$ac_cv_prog_ac_doxygen
12800if test -n "$ac_doxygen"; then
12801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_doxygen" >&5
12802$as_echo "$ac_doxygen" >&6; }
12803else
12804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805$as_echo "no" >&6; }
12806fi
12807
12808
12809
12810
12811ac_config_files="$ac_config_files Makefile src/Makefile lscp/Makefile examples/Makefile doc/Makefile doc/liblscp.doxygen lscp.pc liblscp.spec lscp/version.h"
12812
12813cat >confcache <<\_ACEOF
12814# This file is a shell script that caches the results of configure
12815# tests run on this system so they can be shared between configure
12816# scripts and configure runs, see configure's option --config-cache.
12817# It is not useful on other systems.  If it contains results you don't
12818# want to keep, you may remove or edit it.
12819#
12820# config.status only pays attention to the cache file if you give it
12821# the --recheck option to rerun configure.
12822#
12823# `ac_cv_env_foo' variables (set or unset) will be overridden when
12824# loading this file, other *unset* `ac_cv_foo' will be assigned the
12825# following values.
12826
12827_ACEOF
12828
12829# The following way of writing the cache mishandles newlines in values,
12830# but we know of no workaround that is simple, portable, and efficient.
12831# So, we kill variables containing newlines.
12832# Ultrix sh set writes to stderr and can't be redirected directly,
12833# and sets the high bit in the cache file unless we assign to the vars.
12834(
12835  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12836    eval ac_val=\$$ac_var
12837    case $ac_val in #(
12838    *${as_nl}*)
12839      case $ac_var in #(
12840      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12841$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12842      esac
12843      case $ac_var in #(
12844      _ | IFS | as_nl) ;; #(
12845      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12846      *) { eval $ac_var=; unset $ac_var;} ;;
12847      esac ;;
12848    esac
12849  done
12850
12851  (set) 2>&1 |
12852    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12853    *${as_nl}ac_space=\ *)
12854      # `set' does not quote correctly, so add quotes: double-quote
12855      # substitution turns \\\\ into \\, and sed turns \\ into \.
12856      sed -n \
12857	"s/'/'\\\\''/g;
12858	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12859      ;; #(
12860    *)
12861      # `set' quotes correctly as required by POSIX, so do not add quotes.
12862      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12863      ;;
12864    esac |
12865    sort
12866) |
12867  sed '
12868     /^ac_cv_env_/b end
12869     t clear
12870     :clear
12871     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12872     t end
12873     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12874     :end' >>confcache
12875if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12876  if test -w "$cache_file"; then
12877    if test "x$cache_file" != "x/dev/null"; then
12878      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12879$as_echo "$as_me: updating cache $cache_file" >&6;}
12880      if test ! -f "$cache_file" || test -h "$cache_file"; then
12881	cat confcache >"$cache_file"
12882      else
12883        case $cache_file in #(
12884        */* | ?:*)
12885	  mv -f confcache "$cache_file"$$ &&
12886	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12887        *)
12888	  mv -f confcache "$cache_file" ;;
12889	esac
12890      fi
12891    fi
12892  else
12893    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12894$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12895  fi
12896fi
12897rm -f confcache
12898
12899test "x$prefix" = xNONE && prefix=$ac_default_prefix
12900# Let make expand exec_prefix.
12901test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12902
12903DEFS=-DHAVE_CONFIG_H
12904
12905ac_libobjs=
12906ac_ltlibobjs=
12907U=
12908for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
12909  # 1. Remove the extension, and $U if already installed.
12910  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12911  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12912  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12913  #    will be set to the directory where LIBOBJS objects are built.
12914  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12915  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12916done
12917LIB@&t@OBJS=$ac_libobjs
12918
12919LTLIBOBJS=$ac_ltlibobjs
12920
12921
12922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12923$as_echo_n "checking that generated files are newer than configure... " >&6; }
12924   if test -n "$am_sleep_pid"; then
12925     # Hide warnings about reused PIDs.
12926     wait $am_sleep_pid 2>/dev/null
12927   fi
12928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12929$as_echo "done" >&6; }
12930 if test -n "$EXEEXT"; then
12931  am__EXEEXT_TRUE=
12932  am__EXEEXT_FALSE='#'
12933else
12934  am__EXEEXT_TRUE='#'
12935  am__EXEEXT_FALSE=
12936fi
12937
12938if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12939  as_fn_error $? "conditional \"AMDEP\" was never defined.
12940Usually this means the macro was only invoked conditionally." "$LINENO" 5
12941fi
12942if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12943  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12944Usually this means the macro was only invoked conditionally." "$LINENO" 5
12945fi
12946if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then
12947  as_fn_error $? "conditional \"WINDOWS\" was never defined.
12948Usually this means the macro was only invoked conditionally." "$LINENO" 5
12949fi
12950
12951: "${CONFIG_STATUS=./config.status}"
12952ac_write_fail=0
12953ac_clean_files_save=$ac_clean_files
12954ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12955{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12956$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12957as_write_fail=0
12958cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12959#! $SHELL
12960# Generated by $as_me.
12961# Run this file to recreate the current configuration.
12962# Compiler output produced by configure, useful for debugging
12963# configure, is in config.log if it exists.
12964
12965debug=false
12966ac_cs_recheck=false
12967ac_cs_silent=false
12968
12969SHELL=\${CONFIG_SHELL-$SHELL}
12970export SHELL
12971_ASEOF
12972cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12973## -------------------- ##
12974## M4sh Initialization. ##
12975## -------------------- ##
12976
12977# Be more Bourne compatible
12978DUALCASE=1; export DUALCASE # for MKS sh
12979if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12980  emulate sh
12981  NULLCMD=:
12982  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12983  # is contrary to our usage.  Disable this feature.
12984  alias -g '${1+"$@"}'='"$@"'
12985  setopt NO_GLOB_SUBST
12986else
12987  case `(set -o) 2>/dev/null` in @%:@(
12988  *posix*) :
12989    set -o posix ;; @%:@(
12990  *) :
12991     ;;
12992esac
12993fi
12994
12995
12996as_nl='
12997'
12998export as_nl
12999# Printing a long string crashes Solaris 7 /usr/bin/printf.
13000as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13001as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13002as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13003# Prefer a ksh shell builtin over an external printf program on Solaris,
13004# but without wasting forks for bash or zsh.
13005if test -z "$BASH_VERSION$ZSH_VERSION" \
13006    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13007  as_echo='print -r --'
13008  as_echo_n='print -rn --'
13009elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13010  as_echo='printf %s\n'
13011  as_echo_n='printf %s'
13012else
13013  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13014    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13015    as_echo_n='/usr/ucb/echo -n'
13016  else
13017    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13018    as_echo_n_body='eval
13019      arg=$1;
13020      case $arg in @%:@(
13021      *"$as_nl"*)
13022	expr "X$arg" : "X\\(.*\\)$as_nl";
13023	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13024      esac;
13025      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13026    '
13027    export as_echo_n_body
13028    as_echo_n='sh -c $as_echo_n_body as_echo'
13029  fi
13030  export as_echo_body
13031  as_echo='sh -c $as_echo_body as_echo'
13032fi
13033
13034# The user is always right.
13035if test "${PATH_SEPARATOR+set}" != set; then
13036  PATH_SEPARATOR=:
13037  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13038    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13039      PATH_SEPARATOR=';'
13040  }
13041fi
13042
13043
13044# IFS
13045# We need space, tab and new line, in precisely that order.  Quoting is
13046# there to prevent editors from complaining about space-tab.
13047# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13048# splitting by setting IFS to empty value.)
13049IFS=" ""	$as_nl"
13050
13051# Find who we are.  Look in the path if we contain no directory separator.
13052as_myself=
13053case $0 in @%:@((
13054  *[\\/]* ) as_myself=$0 ;;
13055  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056for as_dir in $PATH
13057do
13058  IFS=$as_save_IFS
13059  test -z "$as_dir" && as_dir=.
13060    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13061  done
13062IFS=$as_save_IFS
13063
13064     ;;
13065esac
13066# We did not find ourselves, most probably we were run as `sh COMMAND'
13067# in which case we are not to be found in the path.
13068if test "x$as_myself" = x; then
13069  as_myself=$0
13070fi
13071if test ! -f "$as_myself"; then
13072  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13073  exit 1
13074fi
13075
13076# Unset variables that we do not need and which cause bugs (e.g. in
13077# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13078# suppresses any "Segmentation fault" message there.  '((' could
13079# trigger a bug in pdksh 5.2.14.
13080for as_var in BASH_ENV ENV MAIL MAILPATH
13081do eval test x\${$as_var+set} = xset \
13082  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13083done
13084PS1='$ '
13085PS2='> '
13086PS4='+ '
13087
13088# NLS nuisances.
13089LC_ALL=C
13090export LC_ALL
13091LANGUAGE=C
13092export LANGUAGE
13093
13094# CDPATH.
13095(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13096
13097
13098@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
13099@%:@ ----------------------------------------
13100@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13101@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13102@%:@ script with STATUS, using 1 if that was 0.
13103as_fn_error ()
13104{
13105  as_status=$1; test $as_status -eq 0 && as_status=1
13106  if test "$4"; then
13107    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13108    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13109  fi
13110  $as_echo "$as_me: error: $2" >&2
13111  as_fn_exit $as_status
13112} @%:@ as_fn_error
13113
13114
13115@%:@ as_fn_set_status STATUS
13116@%:@ -----------------------
13117@%:@ Set @S|@? to STATUS, without forking.
13118as_fn_set_status ()
13119{
13120  return $1
13121} @%:@ as_fn_set_status
13122
13123@%:@ as_fn_exit STATUS
13124@%:@ -----------------
13125@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13126as_fn_exit ()
13127{
13128  set +e
13129  as_fn_set_status $1
13130  exit $1
13131} @%:@ as_fn_exit
13132
13133@%:@ as_fn_unset VAR
13134@%:@ ---------------
13135@%:@ Portably unset VAR.
13136as_fn_unset ()
13137{
13138  { eval $1=; unset $1;}
13139}
13140as_unset=as_fn_unset
13141@%:@ as_fn_append VAR VALUE
13142@%:@ ----------------------
13143@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
13144@%:@ advantage of any shell optimizations that allow amortized linear growth over
13145@%:@ repeated appends, instead of the typical quadratic growth present in naive
13146@%:@ implementations.
13147if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13148  eval 'as_fn_append ()
13149  {
13150    eval $1+=\$2
13151  }'
13152else
13153  as_fn_append ()
13154  {
13155    eval $1=\$$1\$2
13156  }
13157fi # as_fn_append
13158
13159@%:@ as_fn_arith ARG...
13160@%:@ ------------------
13161@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
13162@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
13163@%:@ must be portable across @S|@(()) and expr.
13164if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13165  eval 'as_fn_arith ()
13166  {
13167    as_val=$(( $* ))
13168  }'
13169else
13170  as_fn_arith ()
13171  {
13172    as_val=`expr "$@" || test $? -eq 1`
13173  }
13174fi # as_fn_arith
13175
13176
13177if expr a : '\(a\)' >/dev/null 2>&1 &&
13178   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13179  as_expr=expr
13180else
13181  as_expr=false
13182fi
13183
13184if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13185  as_basename=basename
13186else
13187  as_basename=false
13188fi
13189
13190if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13191  as_dirname=dirname
13192else
13193  as_dirname=false
13194fi
13195
13196as_me=`$as_basename -- "$0" ||
13197$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13198	 X"$0" : 'X\(//\)$' \| \
13199	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13200$as_echo X/"$0" |
13201    sed '/^.*\/\([^/][^/]*\)\/*$/{
13202	    s//\1/
13203	    q
13204	  }
13205	  /^X\/\(\/\/\)$/{
13206	    s//\1/
13207	    q
13208	  }
13209	  /^X\/\(\/\).*/{
13210	    s//\1/
13211	    q
13212	  }
13213	  s/.*/./; q'`
13214
13215# Avoid depending upon Character Ranges.
13216as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13217as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13218as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13219as_cr_digits='0123456789'
13220as_cr_alnum=$as_cr_Letters$as_cr_digits
13221
13222ECHO_C= ECHO_N= ECHO_T=
13223case `echo -n x` in @%:@(((((
13224-n*)
13225  case `echo 'xy\c'` in
13226  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13227  xy)  ECHO_C='\c';;
13228  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13229       ECHO_T='	';;
13230  esac;;
13231*)
13232  ECHO_N='-n';;
13233esac
13234
13235rm -f conf$$ conf$$.exe conf$$.file
13236if test -d conf$$.dir; then
13237  rm -f conf$$.dir/conf$$.file
13238else
13239  rm -f conf$$.dir
13240  mkdir conf$$.dir 2>/dev/null
13241fi
13242if (echo >conf$$.file) 2>/dev/null; then
13243  if ln -s conf$$.file conf$$ 2>/dev/null; then
13244    as_ln_s='ln -s'
13245    # ... but there are two gotchas:
13246    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13247    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13248    # In both cases, we have to default to `cp -pR'.
13249    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13250      as_ln_s='cp -pR'
13251  elif ln conf$$.file conf$$ 2>/dev/null; then
13252    as_ln_s=ln
13253  else
13254    as_ln_s='cp -pR'
13255  fi
13256else
13257  as_ln_s='cp -pR'
13258fi
13259rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13260rmdir conf$$.dir 2>/dev/null
13261
13262
13263@%:@ as_fn_mkdir_p
13264@%:@ -------------
13265@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
13266as_fn_mkdir_p ()
13267{
13268
13269  case $as_dir in #(
13270  -*) as_dir=./$as_dir;;
13271  esac
13272  test -d "$as_dir" || eval $as_mkdir_p || {
13273    as_dirs=
13274    while :; do
13275      case $as_dir in #(
13276      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13277      *) as_qdir=$as_dir;;
13278      esac
13279      as_dirs="'$as_qdir' $as_dirs"
13280      as_dir=`$as_dirname -- "$as_dir" ||
13281$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13282	 X"$as_dir" : 'X\(//\)[^/]' \| \
13283	 X"$as_dir" : 'X\(//\)$' \| \
13284	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13285$as_echo X"$as_dir" |
13286    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13287	    s//\1/
13288	    q
13289	  }
13290	  /^X\(\/\/\)[^/].*/{
13291	    s//\1/
13292	    q
13293	  }
13294	  /^X\(\/\/\)$/{
13295	    s//\1/
13296	    q
13297	  }
13298	  /^X\(\/\).*/{
13299	    s//\1/
13300	    q
13301	  }
13302	  s/.*/./; q'`
13303      test -d "$as_dir" && break
13304    done
13305    test -z "$as_dirs" || eval "mkdir $as_dirs"
13306  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13307
13308
13309} @%:@ as_fn_mkdir_p
13310if mkdir -p . 2>/dev/null; then
13311  as_mkdir_p='mkdir -p "$as_dir"'
13312else
13313  test -d ./-p && rmdir ./-p
13314  as_mkdir_p=false
13315fi
13316
13317
13318@%:@ as_fn_executable_p FILE
13319@%:@ -----------------------
13320@%:@ Test if FILE is an executable regular file.
13321as_fn_executable_p ()
13322{
13323  test -f "$1" && test -x "$1"
13324} @%:@ as_fn_executable_p
13325as_test_x='test -x'
13326as_executable_p=as_fn_executable_p
13327
13328# Sed expression to map a string onto a valid CPP name.
13329as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13330
13331# Sed expression to map a string onto a valid variable name.
13332as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13333
13334
13335exec 6>&1
13336## ----------------------------------- ##
13337## Main body of $CONFIG_STATUS script. ##
13338## ----------------------------------- ##
13339_ASEOF
13340test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13341
13342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13343# Save the log message, to keep $0 and so on meaningful, and to
13344# report actual input values of CONFIG_FILES etc. instead of their
13345# values after options handling.
13346ac_log="
13347This file was extended by liblscp $as_me 0.9.4, which was
13348generated by GNU Autoconf 2.69.  Invocation command line was
13349
13350  CONFIG_FILES    = $CONFIG_FILES
13351  CONFIG_HEADERS  = $CONFIG_HEADERS
13352  CONFIG_LINKS    = $CONFIG_LINKS
13353  CONFIG_COMMANDS = $CONFIG_COMMANDS
13354  $ $0 $@
13355
13356on `(hostname || uname -n) 2>/dev/null | sed 1q`
13357"
13358
13359_ACEOF
13360
13361case $ac_config_files in *"
13362"*) set x $ac_config_files; shift; ac_config_files=$*;;
13363esac
13364
13365case $ac_config_headers in *"
13366"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13367esac
13368
13369
13370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13371# Files that config.status was made for.
13372config_files="$ac_config_files"
13373config_headers="$ac_config_headers"
13374config_commands="$ac_config_commands"
13375
13376_ACEOF
13377
13378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13379ac_cs_usage="\
13380\`$as_me' instantiates files and other configuration actions
13381from templates according to the current configuration.  Unless the files
13382and actions are specified as TAGs, all are instantiated by default.
13383
13384Usage: $0 [OPTION]... [TAG]...
13385
13386  -h, --help       print this help, then exit
13387  -V, --version    print version number and configuration settings, then exit
13388      --config     print configuration, then exit
13389  -q, --quiet, --silent
13390                   do not print progress messages
13391  -d, --debug      don't remove temporary files
13392      --recheck    update $as_me by reconfiguring in the same conditions
13393      --file=FILE[:TEMPLATE]
13394                   instantiate the configuration file FILE
13395      --header=FILE[:TEMPLATE]
13396                   instantiate the configuration header FILE
13397
13398Configuration files:
13399$config_files
13400
13401Configuration headers:
13402$config_headers
13403
13404Configuration commands:
13405$config_commands
13406
13407Report bugs to <rncbc@rncbc.org>."
13408
13409_ACEOF
13410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13411ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13412ac_cs_version="\\
13413liblscp config.status 0.9.4
13414configured by $0, generated by GNU Autoconf 2.69,
13415  with options \\"\$ac_cs_config\\"
13416
13417Copyright (C) 2012 Free Software Foundation, Inc.
13418This config.status script is free software; the Free Software Foundation
13419gives unlimited permission to copy, distribute and modify it."
13420
13421ac_pwd='$ac_pwd'
13422srcdir='$srcdir'
13423INSTALL='$INSTALL'
13424MKDIR_P='$MKDIR_P'
13425AWK='$AWK'
13426test -n "\$AWK" || AWK=awk
13427_ACEOF
13428
13429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13430# The default lists apply if the user does not specify any file.
13431ac_need_defaults=:
13432while test $# != 0
13433do
13434  case $1 in
13435  --*=?*)
13436    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13437    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13438    ac_shift=:
13439    ;;
13440  --*=)
13441    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13442    ac_optarg=
13443    ac_shift=:
13444    ;;
13445  *)
13446    ac_option=$1
13447    ac_optarg=$2
13448    ac_shift=shift
13449    ;;
13450  esac
13451
13452  case $ac_option in
13453  # Handling of the options.
13454  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13455    ac_cs_recheck=: ;;
13456  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13457    $as_echo "$ac_cs_version"; exit ;;
13458  --config | --confi | --conf | --con | --co | --c )
13459    $as_echo "$ac_cs_config"; exit ;;
13460  --debug | --debu | --deb | --de | --d | -d )
13461    debug=: ;;
13462  --file | --fil | --fi | --f )
13463    $ac_shift
13464    case $ac_optarg in
13465    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13466    '') as_fn_error $? "missing file argument" ;;
13467    esac
13468    as_fn_append CONFIG_FILES " '$ac_optarg'"
13469    ac_need_defaults=false;;
13470  --header | --heade | --head | --hea )
13471    $ac_shift
13472    case $ac_optarg in
13473    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13474    esac
13475    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13476    ac_need_defaults=false;;
13477  --he | --h)
13478    # Conflict between --help and --header
13479    as_fn_error $? "ambiguous option: \`$1'
13480Try \`$0 --help' for more information.";;
13481  --help | --hel | -h )
13482    $as_echo "$ac_cs_usage"; exit ;;
13483  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13484  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13485    ac_cs_silent=: ;;
13486
13487  # This is an error.
13488  -*) as_fn_error $? "unrecognized option: \`$1'
13489Try \`$0 --help' for more information." ;;
13490
13491  *) as_fn_append ac_config_targets " $1"
13492     ac_need_defaults=false ;;
13493
13494  esac
13495  shift
13496done
13497
13498ac_configure_extra_args=
13499
13500if $ac_cs_silent; then
13501  exec 6>/dev/null
13502  ac_configure_extra_args="$ac_configure_extra_args --silent"
13503fi
13504
13505_ACEOF
13506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13507if \$ac_cs_recheck; then
13508  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13509  shift
13510  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13511  CONFIG_SHELL='$SHELL'
13512  export CONFIG_SHELL
13513  exec "\$@"
13514fi
13515
13516_ACEOF
13517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13518exec 5>>config.log
13519{
13520  echo
13521  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
13522@%:@@%:@ Running $as_me. @%:@@%:@
13523_ASBOX
13524  $as_echo "$ac_log"
13525} >&5
13526
13527_ACEOF
13528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13529#
13530# INIT-COMMANDS
13531#
13532AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13533
13534
13535# The HP-UX ksh and POSIX shell print the target directory to stdout
13536# if CDPATH is set.
13537(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13538
13539sed_quote_subst='$sed_quote_subst'
13540double_quote_subst='$double_quote_subst'
13541delay_variable_subst='$delay_variable_subst'
13542AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13543DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13544OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13545macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13546macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13547enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13548enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13549pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13550enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13551shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13552SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13553ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13554PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13555host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13556host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13557host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13558build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13559build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13560build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13561SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13562Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13563GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13564EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13565FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13566LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13567NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13568LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13569max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13570ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13571exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13572lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13573lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13574lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13575lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13576lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13577reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13578reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13579deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13580file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13581file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13582want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13583sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13584AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13585AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13586archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13587STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13588RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13589old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13590old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13591old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13592lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13593CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13594CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13595compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13596GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13597lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13598lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13599lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13600lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13601lt_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"`'
13602lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13603nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13604lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13605lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13606objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13607MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13608lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13609lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13610lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13611lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13612lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13613need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13614MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13615DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13616NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13617LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13618OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13619OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13620libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13621shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13622extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13623archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13624enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13625export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13626whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13627compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13628old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13629old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13630archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13631archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13632module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13633module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13634with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13635allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13636no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13637hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13638hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13639hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13640hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13641hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13642hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13643hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13644inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13645link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13646always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13647export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13648exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13649include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13650prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13651postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13652file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13653variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13654need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13655need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13656version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13657runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13658shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13659shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13660libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13661library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13662soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13663install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13664postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13665postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13666finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13667finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13668hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13669sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13670configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13671configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13672hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13673enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13674enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13675enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13676old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13677striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13678
13679LTCC='$LTCC'
13680LTCFLAGS='$LTCFLAGS'
13681compiler='$compiler_DEFAULT'
13682
13683# A function that is used when there is no print builtin or printf.
13684func_fallback_echo ()
13685{
13686  eval 'cat <<_LTECHO_EOF
13687\$1
13688_LTECHO_EOF'
13689}
13690
13691# Quote evaled strings.
13692for var in AS \
13693DLLTOOL \
13694OBJDUMP \
13695SHELL \
13696ECHO \
13697PATH_SEPARATOR \
13698SED \
13699GREP \
13700EGREP \
13701FGREP \
13702LD \
13703NM \
13704LN_S \
13705lt_SP2NL \
13706lt_NL2SP \
13707reload_flag \
13708deplibs_check_method \
13709file_magic_cmd \
13710file_magic_glob \
13711want_nocaseglob \
13712sharedlib_from_linklib_cmd \
13713AR \
13714AR_FLAGS \
13715archiver_list_spec \
13716STRIP \
13717RANLIB \
13718CC \
13719CFLAGS \
13720compiler \
13721lt_cv_sys_global_symbol_pipe \
13722lt_cv_sys_global_symbol_to_cdecl \
13723lt_cv_sys_global_symbol_to_import \
13724lt_cv_sys_global_symbol_to_c_name_address \
13725lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13726lt_cv_nm_interface \
13727nm_file_list_spec \
13728lt_cv_truncate_bin \
13729lt_prog_compiler_no_builtin_flag \
13730lt_prog_compiler_pic \
13731lt_prog_compiler_wl \
13732lt_prog_compiler_static \
13733lt_cv_prog_compiler_c_o \
13734need_locks \
13735MANIFEST_TOOL \
13736DSYMUTIL \
13737NMEDIT \
13738LIPO \
13739OTOOL \
13740OTOOL64 \
13741shrext_cmds \
13742export_dynamic_flag_spec \
13743whole_archive_flag_spec \
13744compiler_needs_object \
13745with_gnu_ld \
13746allow_undefined_flag \
13747no_undefined_flag \
13748hardcode_libdir_flag_spec \
13749hardcode_libdir_separator \
13750exclude_expsyms \
13751include_expsyms \
13752file_list_spec \
13753variables_saved_for_relink \
13754libname_spec \
13755library_names_spec \
13756soname_spec \
13757install_override_mode \
13758finish_eval \
13759old_striplib \
13760striplib; do
13761    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13762    *[\\\\\\\`\\"\\\$]*)
13763      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13764      ;;
13765    *)
13766      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13767      ;;
13768    esac
13769done
13770
13771# Double-quote double-evaled strings.
13772for var in reload_cmds \
13773old_postinstall_cmds \
13774old_postuninstall_cmds \
13775old_archive_cmds \
13776extract_expsyms_cmds \
13777old_archive_from_new_cmds \
13778old_archive_from_expsyms_cmds \
13779archive_cmds \
13780archive_expsym_cmds \
13781module_cmds \
13782module_expsym_cmds \
13783export_symbols_cmds \
13784prelink_cmds \
13785postlink_cmds \
13786postinstall_cmds \
13787postuninstall_cmds \
13788finish_cmds \
13789sys_lib_search_path_spec \
13790configure_time_dlsearch_path \
13791configure_time_lt_sys_library_path; do
13792    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13793    *[\\\\\\\`\\"\\\$]*)
13794      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13795      ;;
13796    *)
13797      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13798      ;;
13799    esac
13800done
13801
13802ac_aux_dir='$ac_aux_dir'
13803
13804# See if we are running on zsh, and set the options that allow our
13805# commands through without removal of \ escapes INIT.
13806if test -n "\${ZSH_VERSION+set}"; then
13807   setopt NO_GLOB_SUBST
13808fi
13809
13810
13811    PACKAGE='$PACKAGE'
13812    VERSION='$VERSION'
13813    RM='$RM'
13814    ofile='$ofile'
13815
13816
13817
13818
13819_ACEOF
13820
13821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13822
13823# Handling of arguments.
13824for ac_config_target in $ac_config_targets
13825do
13826  case $ac_config_target in
13827    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
13828    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13829    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13830    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13831    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13832    "lscp/Makefile") CONFIG_FILES="$CONFIG_FILES lscp/Makefile" ;;
13833    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13834    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13835    "doc/liblscp.doxygen") CONFIG_FILES="$CONFIG_FILES doc/liblscp.doxygen" ;;
13836    "lscp.pc") CONFIG_FILES="$CONFIG_FILES lscp.pc" ;;
13837    "liblscp.spec") CONFIG_FILES="$CONFIG_FILES liblscp.spec" ;;
13838    "lscp/version.h") CONFIG_FILES="$CONFIG_FILES lscp/version.h" ;;
13839
13840  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13841  esac
13842done
13843
13844
13845# If the user did not use the arguments to specify the items to instantiate,
13846# then the envvar interface is used.  Set only those that are not.
13847# We use the long form for the default assignment because of an extremely
13848# bizarre bug on SunOS 4.1.3.
13849if $ac_need_defaults; then
13850  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13851  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13852  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13853fi
13854
13855# Have a temporary directory for convenience.  Make it in the build tree
13856# simply because there is no reason against having it here, and in addition,
13857# creating and moving files from /tmp can sometimes cause problems.
13858# Hook for its removal unless debugging.
13859# Note that there is a small window in which the directory will not be cleaned:
13860# after its creation but before its name has been assigned to `$tmp'.
13861$debug ||
13862{
13863  tmp= ac_tmp=
13864  trap 'exit_status=$?
13865  : "${ac_tmp:=$tmp}"
13866  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13867' 0
13868  trap 'as_fn_exit 1' 1 2 13 15
13869}
13870# Create a (secure) tmp directory for tmp files.
13871
13872{
13873  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13874  test -d "$tmp"
13875}  ||
13876{
13877  tmp=./conf$$-$RANDOM
13878  (umask 077 && mkdir "$tmp")
13879} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13880ac_tmp=$tmp
13881
13882# Set up the scripts for CONFIG_FILES section.
13883# No need to generate them if there are no CONFIG_FILES.
13884# This happens for instance with `./config.status config.h'.
13885if test -n "$CONFIG_FILES"; then
13886
13887
13888ac_cr=`echo X | tr X '\015'`
13889# On cygwin, bash can eat \r inside `` if the user requested igncr.
13890# But we know of no other shell where ac_cr would be empty at this
13891# point, so we can use a bashism as a fallback.
13892if test "x$ac_cr" = x; then
13893  eval ac_cr=\$\'\\r\'
13894fi
13895ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13896if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13897  ac_cs_awk_cr='\\r'
13898else
13899  ac_cs_awk_cr=$ac_cr
13900fi
13901
13902echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13903_ACEOF
13904
13905
13906{
13907  echo "cat >conf$$subs.awk <<_ACEOF" &&
13908  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13909  echo "_ACEOF"
13910} >conf$$subs.sh ||
13911  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13912ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13913ac_delim='%!_!# '
13914for ac_last_try in false false false false false :; do
13915  . ./conf$$subs.sh ||
13916    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13917
13918  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13919  if test $ac_delim_n = $ac_delim_num; then
13920    break
13921  elif $ac_last_try; then
13922    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13923  else
13924    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13925  fi
13926done
13927rm -f conf$$subs.sh
13928
13929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13930cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13931_ACEOF
13932sed -n '
13933h
13934s/^/S["/; s/!.*/"]=/
13935p
13936g
13937s/^[^!]*!//
13938:repl
13939t repl
13940s/'"$ac_delim"'$//
13941t delim
13942:nl
13943h
13944s/\(.\{148\}\)..*/\1/
13945t more1
13946s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13947p
13948n
13949b repl
13950:more1
13951s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13952p
13953g
13954s/.\{148\}//
13955t nl
13956:delim
13957h
13958s/\(.\{148\}\)..*/\1/
13959t more2
13960s/["\\]/\\&/g; s/^/"/; s/$/"/
13961p
13962b
13963:more2
13964s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13965p
13966g
13967s/.\{148\}//
13968t delim
13969' <conf$$subs.awk | sed '
13970/^[^""]/{
13971  N
13972  s/\n//
13973}
13974' >>$CONFIG_STATUS || ac_write_fail=1
13975rm -f conf$$subs.awk
13976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13977_ACAWK
13978cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13979  for (key in S) S_is_set[key] = 1
13980  FS = ""
13981
13982}
13983{
13984  line = $ 0
13985  nfields = split(line, field, "@")
13986  substed = 0
13987  len = length(field[1])
13988  for (i = 2; i < nfields; i++) {
13989    key = field[i]
13990    keylen = length(key)
13991    if (S_is_set[key]) {
13992      value = S[key]
13993      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13994      len += length(value) + length(field[++i])
13995      substed = 1
13996    } else
13997      len += 1 + keylen
13998  }
13999
14000  print line
14001}
14002
14003_ACAWK
14004_ACEOF
14005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14006if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14007  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14008else
14009  cat
14010fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14011  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14012_ACEOF
14013
14014# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14015# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14016# trailing colons and then remove the whole line if VPATH becomes empty
14017# (actually we leave an empty line to preserve line numbers).
14018if test "x$srcdir" = x.; then
14019  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14020h
14021s///
14022s/^/:/
14023s/[	 ]*$/:/
14024s/:\$(srcdir):/:/g
14025s/:\${srcdir}:/:/g
14026s/:@srcdir@:/:/g
14027s/^:*//
14028s/:*$//
14029x
14030s/\(=[	 ]*\).*/\1/
14031G
14032s/\n//
14033s/^[^=]*=[	 ]*$//
14034}'
14035fi
14036
14037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14038fi # test -n "$CONFIG_FILES"
14039
14040# Set up the scripts for CONFIG_HEADERS section.
14041# No need to generate them if there are no CONFIG_HEADERS.
14042# This happens for instance with `./config.status Makefile'.
14043if test -n "$CONFIG_HEADERS"; then
14044cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14045BEGIN {
14046_ACEOF
14047
14048# Transform confdefs.h into an awk script `defines.awk', embedded as
14049# here-document in config.status, that substitutes the proper values into
14050# config.h.in to produce config.h.
14051
14052# Create a delimiter string that does not exist in confdefs.h, to ease
14053# handling of long lines.
14054ac_delim='%!_!# '
14055for ac_last_try in false false :; do
14056  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14057  if test -z "$ac_tt"; then
14058    break
14059  elif $ac_last_try; then
14060    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14061  else
14062    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14063  fi
14064done
14065
14066# For the awk script, D is an array of macro values keyed by name,
14067# likewise P contains macro parameters if any.  Preserve backslash
14068# newline sequences.
14069
14070ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14071sed -n '
14072s/.\{148\}/&'"$ac_delim"'/g
14073t rset
14074:rset
14075s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14076t def
14077d
14078:def
14079s/\\$//
14080t bsnl
14081s/["\\]/\\&/g
14082s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14083D["\1"]=" \3"/p
14084s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14085d
14086:bsnl
14087s/["\\]/\\&/g
14088s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14089D["\1"]=" \3\\\\\\n"\\/p
14090t cont
14091s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14092t cont
14093d
14094:cont
14095n
14096s/.\{148\}/&'"$ac_delim"'/g
14097t clear
14098:clear
14099s/\\$//
14100t bsnlc
14101s/["\\]/\\&/g; s/^/"/; s/$/"/p
14102d
14103:bsnlc
14104s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14105b cont
14106' <confdefs.h | sed '
14107s/'"$ac_delim"'/"\\\
14108"/g' >>$CONFIG_STATUS || ac_write_fail=1
14109
14110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14111  for (key in D) D_is_set[key] = 1
14112  FS = ""
14113}
14114/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14115  line = \$ 0
14116  split(line, arg, " ")
14117  if (arg[1] == "#") {
14118    defundef = arg[2]
14119    mac1 = arg[3]
14120  } else {
14121    defundef = substr(arg[1], 2)
14122    mac1 = arg[2]
14123  }
14124  split(mac1, mac2, "(") #)
14125  macro = mac2[1]
14126  prefix = substr(line, 1, index(line, defundef) - 1)
14127  if (D_is_set[macro]) {
14128    # Preserve the white space surrounding the "#".
14129    print prefix "define", macro P[macro] D[macro]
14130    next
14131  } else {
14132    # Replace #undef with comments.  This is necessary, for example,
14133    # in the case of _POSIX_SOURCE, which is predefined and required
14134    # on some systems where configure will not decide to define it.
14135    if (defundef == "undef") {
14136      print "/*", prefix defundef, macro, "*/"
14137      next
14138    }
14139  }
14140}
14141{ print }
14142_ACAWK
14143_ACEOF
14144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14145  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14146fi # test -n "$CONFIG_HEADERS"
14147
14148
14149eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14150shift
14151for ac_tag
14152do
14153  case $ac_tag in
14154  :[FHLC]) ac_mode=$ac_tag; continue;;
14155  esac
14156  case $ac_mode$ac_tag in
14157  :[FHL]*:*);;
14158  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14159  :[FH]-) ac_tag=-:-;;
14160  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14161  esac
14162  ac_save_IFS=$IFS
14163  IFS=:
14164  set x $ac_tag
14165  IFS=$ac_save_IFS
14166  shift
14167  ac_file=$1
14168  shift
14169
14170  case $ac_mode in
14171  :L) ac_source=$1;;
14172  :[FH])
14173    ac_file_inputs=
14174    for ac_f
14175    do
14176      case $ac_f in
14177      -) ac_f="$ac_tmp/stdin";;
14178      *) # Look for the file first in the build tree, then in the source tree
14179	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14180	 # because $ac_f cannot contain `:'.
14181	 test -f "$ac_f" ||
14182	   case $ac_f in
14183	   [\\/$]*) false;;
14184	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14185	   esac ||
14186	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14187      esac
14188      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14189      as_fn_append ac_file_inputs " '$ac_f'"
14190    done
14191
14192    # Let's still pretend it is `configure' which instantiates (i.e., don't
14193    # use $as_me), people would be surprised to read:
14194    #    /* config.h.  Generated by config.status.  */
14195    configure_input='Generated from '`
14196	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14197	`' by configure.'
14198    if test x"$ac_file" != x-; then
14199      configure_input="$ac_file.  $configure_input"
14200      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14201$as_echo "$as_me: creating $ac_file" >&6;}
14202    fi
14203    # Neutralize special characters interpreted by sed in replacement strings.
14204    case $configure_input in #(
14205    *\&* | *\|* | *\\* )
14206       ac_sed_conf_input=`$as_echo "$configure_input" |
14207       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14208    *) ac_sed_conf_input=$configure_input;;
14209    esac
14210
14211    case $ac_tag in
14212    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14213      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14214    esac
14215    ;;
14216  esac
14217
14218  ac_dir=`$as_dirname -- "$ac_file" ||
14219$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14220	 X"$ac_file" : 'X\(//\)[^/]' \| \
14221	 X"$ac_file" : 'X\(//\)$' \| \
14222	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14223$as_echo X"$ac_file" |
14224    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14225	    s//\1/
14226	    q
14227	  }
14228	  /^X\(\/\/\)[^/].*/{
14229	    s//\1/
14230	    q
14231	  }
14232	  /^X\(\/\/\)$/{
14233	    s//\1/
14234	    q
14235	  }
14236	  /^X\(\/\).*/{
14237	    s//\1/
14238	    q
14239	  }
14240	  s/.*/./; q'`
14241  as_dir="$ac_dir"; as_fn_mkdir_p
14242  ac_builddir=.
14243
14244case "$ac_dir" in
14245.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14246*)
14247  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14248  # A ".." for each directory in $ac_dir_suffix.
14249  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14250  case $ac_top_builddir_sub in
14251  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14252  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14253  esac ;;
14254esac
14255ac_abs_top_builddir=$ac_pwd
14256ac_abs_builddir=$ac_pwd$ac_dir_suffix
14257# for backward compatibility:
14258ac_top_builddir=$ac_top_build_prefix
14259
14260case $srcdir in
14261  .)  # We are building in place.
14262    ac_srcdir=.
14263    ac_top_srcdir=$ac_top_builddir_sub
14264    ac_abs_top_srcdir=$ac_pwd ;;
14265  [\\/]* | ?:[\\/]* )  # Absolute name.
14266    ac_srcdir=$srcdir$ac_dir_suffix;
14267    ac_top_srcdir=$srcdir
14268    ac_abs_top_srcdir=$srcdir ;;
14269  *) # Relative name.
14270    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14271    ac_top_srcdir=$ac_top_build_prefix$srcdir
14272    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14273esac
14274ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14275
14276
14277  case $ac_mode in
14278  :F)
14279  #
14280  # CONFIG_FILE
14281  #
14282
14283  case $INSTALL in
14284  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14285  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14286  esac
14287  ac_MKDIR_P=$MKDIR_P
14288  case $MKDIR_P in
14289  [\\/$]* | ?:[\\/]* ) ;;
14290  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14291  esac
14292_ACEOF
14293
14294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14295# If the template does not know about datarootdir, expand it.
14296# FIXME: This hack should be removed a few years after 2.60.
14297ac_datarootdir_hack=; ac_datarootdir_seen=
14298ac_sed_dataroot='
14299/datarootdir/ {
14300  p
14301  q
14302}
14303/@datadir@/p
14304/@docdir@/p
14305/@infodir@/p
14306/@localedir@/p
14307/@mandir@/p'
14308case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14309*datarootdir*) ac_datarootdir_seen=yes;;
14310*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14311  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14312$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14313_ACEOF
14314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14315  ac_datarootdir_hack='
14316  s&@datadir@&$datadir&g
14317  s&@docdir@&$docdir&g
14318  s&@infodir@&$infodir&g
14319  s&@localedir@&$localedir&g
14320  s&@mandir@&$mandir&g
14321  s&\\\${datarootdir}&$datarootdir&g' ;;
14322esac
14323_ACEOF
14324
14325# Neutralize VPATH when `$srcdir' = `.'.
14326# Shell code in configure.ac might set extrasub.
14327# FIXME: do we really want to maintain this feature?
14328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14329ac_sed_extra="$ac_vpsub
14330$extrasub
14331_ACEOF
14332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14333:t
14334/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14335s|@configure_input@|$ac_sed_conf_input|;t t
14336s&@top_builddir@&$ac_top_builddir_sub&;t t
14337s&@top_build_prefix@&$ac_top_build_prefix&;t t
14338s&@srcdir@&$ac_srcdir&;t t
14339s&@abs_srcdir@&$ac_abs_srcdir&;t t
14340s&@top_srcdir@&$ac_top_srcdir&;t t
14341s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14342s&@builddir@&$ac_builddir&;t t
14343s&@abs_builddir@&$ac_abs_builddir&;t t
14344s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14345s&@INSTALL@&$ac_INSTALL&;t t
14346s&@MKDIR_P@&$ac_MKDIR_P&;t t
14347$ac_datarootdir_hack
14348"
14349eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14350  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14351
14352test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14353  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14354  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14355      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14356  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14357which seems to be undefined.  Please make sure it is defined" >&5
14358$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14359which seems to be undefined.  Please make sure it is defined" >&2;}
14360
14361  rm -f "$ac_tmp/stdin"
14362  case $ac_file in
14363  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14364  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14365  esac \
14366  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14367 ;;
14368  :H)
14369  #
14370  # CONFIG_HEADER
14371  #
14372  if test x"$ac_file" != x-; then
14373    {
14374      $as_echo "/* $configure_input  */" \
14375      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14376    } >"$ac_tmp/config.h" \
14377      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14378    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14379      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14380$as_echo "$as_me: $ac_file is unchanged" >&6;}
14381    else
14382      rm -f "$ac_file"
14383      mv "$ac_tmp/config.h" "$ac_file" \
14384	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14385    fi
14386  else
14387    $as_echo "/* $configure_input  */" \
14388      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14389      || as_fn_error $? "could not create -" "$LINENO" 5
14390  fi
14391# Compute "$ac_file"'s index in $config_headers.
14392_am_arg="$ac_file"
14393_am_stamp_count=1
14394for _am_header in $config_headers :; do
14395  case $_am_header in
14396    $_am_arg | $_am_arg:* )
14397      break ;;
14398    * )
14399      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14400  esac
14401done
14402echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14403$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14404	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14405	 X"$_am_arg" : 'X\(//\)$' \| \
14406	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14407$as_echo X"$_am_arg" |
14408    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14409	    s//\1/
14410	    q
14411	  }
14412	  /^X\(\/\/\)[^/].*/{
14413	    s//\1/
14414	    q
14415	  }
14416	  /^X\(\/\/\)$/{
14417	    s//\1/
14418	    q
14419	  }
14420	  /^X\(\/\).*/{
14421	    s//\1/
14422	    q
14423	  }
14424	  s/.*/./; q'`/stamp-h$_am_stamp_count
14425 ;;
14426
14427  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14428$as_echo "$as_me: executing $ac_file commands" >&6;}
14429 ;;
14430  esac
14431
14432
14433  case $ac_file$ac_mode in
14434    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14435  # Older Autoconf quotes --file arguments for eval, but not when files
14436  # are listed without --file.  Let's play safe and only enable the eval
14437  # if we detect the quoting.
14438  # TODO: see whether this extra hack can be removed once we start
14439  # requiring Autoconf 2.70 or later.
14440  case $CONFIG_FILES in @%:@(
14441  *\'*) :
14442    eval set x "$CONFIG_FILES" ;; @%:@(
14443  *) :
14444    set x $CONFIG_FILES ;; @%:@(
14445  *) :
14446     ;;
14447esac
14448  shift
14449  # Used to flag and report bootstrapping failures.
14450  am_rc=0
14451  for am_mf
14452  do
14453    # Strip MF so we end up with the name of the file.
14454    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14455    # Check whether this is an Automake generated Makefile which includes
14456    # dependency-tracking related rules and includes.
14457    # Grep'ing the whole file directly is not great: AIX grep has a line
14458    # limit of 2048, but all sed's we know have understand at least 4000.
14459    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14460      || continue
14461    am_dirpart=`$as_dirname -- "$am_mf" ||
14462$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14463	 X"$am_mf" : 'X\(//\)[^/]' \| \
14464	 X"$am_mf" : 'X\(//\)$' \| \
14465	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14466$as_echo X"$am_mf" |
14467    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14468	    s//\1/
14469	    q
14470	  }
14471	  /^X\(\/\/\)[^/].*/{
14472	    s//\1/
14473	    q
14474	  }
14475	  /^X\(\/\/\)$/{
14476	    s//\1/
14477	    q
14478	  }
14479	  /^X\(\/\).*/{
14480	    s//\1/
14481	    q
14482	  }
14483	  s/.*/./; q'`
14484    am_filepart=`$as_basename -- "$am_mf" ||
14485$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14486	 X"$am_mf" : 'X\(//\)$' \| \
14487	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14488$as_echo X/"$am_mf" |
14489    sed '/^.*\/\([^/][^/]*\)\/*$/{
14490	    s//\1/
14491	    q
14492	  }
14493	  /^X\/\(\/\/\)$/{
14494	    s//\1/
14495	    q
14496	  }
14497	  /^X\/\(\/\).*/{
14498	    s//\1/
14499	    q
14500	  }
14501	  s/.*/./; q'`
14502    { echo "$as_me:$LINENO: cd "$am_dirpart" \
14503      && sed -e '/# am--include-marker/d' "$am_filepart" \
14504        | $MAKE -f - am--depfiles" >&5
14505   (cd "$am_dirpart" \
14506      && sed -e '/# am--include-marker/d' "$am_filepart" \
14507        | $MAKE -f - am--depfiles) >&5 2>&5
14508   ac_status=$?
14509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510   (exit $ac_status); } || am_rc=$?
14511  done
14512  if test $am_rc -ne 0; then
14513    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14515as_fn_error $? "Something went wrong bootstrapping makefile fragments
14516    for automatic dependency tracking.  If GNU make was not used, consider
14517    re-running the configure script with MAKE=\"gmake\" (or whatever is
14518    necessary).  You can also try re-running configure with the
14519    '--disable-dependency-tracking' option to at least be able to build
14520    the package (albeit without support for automatic dependency tracking).
14521See \`config.log' for more details" "$LINENO" 5; }
14522  fi
14523  { am_dirpart=; unset am_dirpart;}
14524  { am_filepart=; unset am_filepart;}
14525  { am_mf=; unset am_mf;}
14526  { am_rc=; unset am_rc;}
14527  rm -f conftest-deps.mk
14528}
14529 ;;
14530    "libtool":C)
14531
14532    # See if we are running on zsh, and set the options that allow our
14533    # commands through without removal of \ escapes.
14534    if test -n "${ZSH_VERSION+set}"; then
14535      setopt NO_GLOB_SUBST
14536    fi
14537
14538    cfgfile=${ofile}T
14539    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14540    $RM "$cfgfile"
14541
14542    cat <<_LT_EOF >> "$cfgfile"
14543#! $SHELL
14544# Generated automatically by $as_me ($PACKAGE) $VERSION
14545# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14546
14547# Provide generalized library-building support services.
14548# Written by Gordon Matzigkeit, 1996
14549
14550# Copyright (C) 2014 Free Software Foundation, Inc.
14551# This is free software; see the source for copying conditions.  There is NO
14552# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14553
14554# GNU Libtool is free software; you can redistribute it and/or modify
14555# it under the terms of the GNU General Public License as published by
14556# the Free Software Foundation; either version 2 of of the License, or
14557# (at your option) any later version.
14558#
14559# As a special exception to the GNU General Public License, if you
14560# distribute this file as part of a program or library that is built
14561# using GNU Libtool, you may include this file under the  same
14562# distribution terms that you use for the rest of that program.
14563#
14564# GNU Libtool is distributed in the hope that it will be useful, but
14565# WITHOUT ANY WARRANTY; without even the implied warranty of
14566# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14567# GNU General Public License for more details.
14568#
14569# You should have received a copy of the GNU General Public License
14570# along with this program.  If not, see <http://www.gnu.org/licenses/>.
14571
14572
14573# The names of the tagged configurations supported by this script.
14574available_tags=''
14575
14576# Configured defaults for sys_lib_dlsearch_path munging.
14577: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14578
14579# ### BEGIN LIBTOOL CONFIG
14580
14581# Assembler program.
14582AS=$lt_AS
14583
14584# DLL creation program.
14585DLLTOOL=$lt_DLLTOOL
14586
14587# Object dumper program.
14588OBJDUMP=$lt_OBJDUMP
14589
14590# Which release of libtool.m4 was used?
14591macro_version=$macro_version
14592macro_revision=$macro_revision
14593
14594# Whether or not to build shared libraries.
14595build_libtool_libs=$enable_shared
14596
14597# Whether or not to build static libraries.
14598build_old_libs=$enable_static
14599
14600# What type of objects to build.
14601pic_mode=$pic_mode
14602
14603# Whether or not to optimize for fast installation.
14604fast_install=$enable_fast_install
14605
14606# Shared archive member basename,for filename based shared library versioning on AIX.
14607shared_archive_member_spec=$shared_archive_member_spec
14608
14609# Shell to use when invoking shell scripts.
14610SHELL=$lt_SHELL
14611
14612# An echo program that protects backslashes.
14613ECHO=$lt_ECHO
14614
14615# The PATH separator for the build system.
14616PATH_SEPARATOR=$lt_PATH_SEPARATOR
14617
14618# The host system.
14619host_alias=$host_alias
14620host=$host
14621host_os=$host_os
14622
14623# The build system.
14624build_alias=$build_alias
14625build=$build
14626build_os=$build_os
14627
14628# A sed program that does not truncate output.
14629SED=$lt_SED
14630
14631# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14632Xsed="\$SED -e 1s/^X//"
14633
14634# A grep program that handles long lines.
14635GREP=$lt_GREP
14636
14637# An ERE matcher.
14638EGREP=$lt_EGREP
14639
14640# A literal string matcher.
14641FGREP=$lt_FGREP
14642
14643# A BSD- or MS-compatible name lister.
14644NM=$lt_NM
14645
14646# Whether we need soft or hard links.
14647LN_S=$lt_LN_S
14648
14649# What is the maximum length of a command?
14650max_cmd_len=$max_cmd_len
14651
14652# Object file suffix (normally "o").
14653objext=$ac_objext
14654
14655# Executable file suffix (normally "").
14656exeext=$exeext
14657
14658# whether the shell understands "unset".
14659lt_unset=$lt_unset
14660
14661# turn spaces into newlines.
14662SP2NL=$lt_lt_SP2NL
14663
14664# turn newlines into spaces.
14665NL2SP=$lt_lt_NL2SP
14666
14667# convert \$build file names to \$host format.
14668to_host_file_cmd=$lt_cv_to_host_file_cmd
14669
14670# convert \$build files to toolchain format.
14671to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14672
14673# Method to check whether dependent libraries are shared objects.
14674deplibs_check_method=$lt_deplibs_check_method
14675
14676# Command to use when deplibs_check_method = "file_magic".
14677file_magic_cmd=$lt_file_magic_cmd
14678
14679# How to find potential files when deplibs_check_method = "file_magic".
14680file_magic_glob=$lt_file_magic_glob
14681
14682# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14683want_nocaseglob=$lt_want_nocaseglob
14684
14685# Command to associate shared and link libraries.
14686sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14687
14688# The archiver.
14689AR=$lt_AR
14690
14691# Flags to create an archive.
14692AR_FLAGS=$lt_AR_FLAGS
14693
14694# How to feed a file listing to the archiver.
14695archiver_list_spec=$lt_archiver_list_spec
14696
14697# A symbol stripping program.
14698STRIP=$lt_STRIP
14699
14700# Commands used to install an old-style archive.
14701RANLIB=$lt_RANLIB
14702old_postinstall_cmds=$lt_old_postinstall_cmds
14703old_postuninstall_cmds=$lt_old_postuninstall_cmds
14704
14705# Whether to use a lock for old archive extraction.
14706lock_old_archive_extraction=$lock_old_archive_extraction
14707
14708# A C compiler.
14709LTCC=$lt_CC
14710
14711# LTCC compiler flags.
14712LTCFLAGS=$lt_CFLAGS
14713
14714# Take the output of nm and produce a listing of raw symbols and C names.
14715global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14716
14717# Transform the output of nm in a proper C declaration.
14718global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14719
14720# Transform the output of nm into a list of symbols to manually relocate.
14721global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14722
14723# Transform the output of nm in a C name address pair.
14724global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14725
14726# Transform the output of nm in a C name address pair when lib prefix is needed.
14727global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14728
14729# The name lister interface.
14730nm_interface=$lt_lt_cv_nm_interface
14731
14732# Specify filename containing input files for \$NM.
14733nm_file_list_spec=$lt_nm_file_list_spec
14734
14735# The root where to search for dependent libraries,and where our libraries should be installed.
14736lt_sysroot=$lt_sysroot
14737
14738# Command to truncate a binary pipe.
14739lt_truncate_bin=$lt_lt_cv_truncate_bin
14740
14741# The name of the directory that contains temporary libtool files.
14742objdir=$objdir
14743
14744# Used to examine libraries when file_magic_cmd begins with "file".
14745MAGIC_CMD=$MAGIC_CMD
14746
14747# Must we lock files when doing compilation?
14748need_locks=$lt_need_locks
14749
14750# Manifest tool.
14751MANIFEST_TOOL=$lt_MANIFEST_TOOL
14752
14753# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14754DSYMUTIL=$lt_DSYMUTIL
14755
14756# Tool to change global to local symbols on Mac OS X.
14757NMEDIT=$lt_NMEDIT
14758
14759# Tool to manipulate fat objects and archives on Mac OS X.
14760LIPO=$lt_LIPO
14761
14762# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14763OTOOL=$lt_OTOOL
14764
14765# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14766OTOOL64=$lt_OTOOL64
14767
14768# Old archive suffix (normally "a").
14769libext=$libext
14770
14771# Shared library suffix (normally ".so").
14772shrext_cmds=$lt_shrext_cmds
14773
14774# The commands to extract the exported symbol list from a shared archive.
14775extract_expsyms_cmds=$lt_extract_expsyms_cmds
14776
14777# Variables whose values should be saved in libtool wrapper scripts and
14778# restored at link time.
14779variables_saved_for_relink=$lt_variables_saved_for_relink
14780
14781# Do we need the "lib" prefix for modules?
14782need_lib_prefix=$need_lib_prefix
14783
14784# Do we need a version for libraries?
14785need_version=$need_version
14786
14787# Library versioning type.
14788version_type=$version_type
14789
14790# Shared library runtime path variable.
14791runpath_var=$runpath_var
14792
14793# Shared library path variable.
14794shlibpath_var=$shlibpath_var
14795
14796# Is shlibpath searched before the hard-coded library search path?
14797shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14798
14799# Format of library name prefix.
14800libname_spec=$lt_libname_spec
14801
14802# List of archive names.  First name is the real one, the rest are links.
14803# The last name is the one that the linker finds with -lNAME
14804library_names_spec=$lt_library_names_spec
14805
14806# The coded name of the library, if different from the real name.
14807soname_spec=$lt_soname_spec
14808
14809# Permission mode override for installation of shared libraries.
14810install_override_mode=$lt_install_override_mode
14811
14812# Command to use after installation of a shared archive.
14813postinstall_cmds=$lt_postinstall_cmds
14814
14815# Command to use after uninstallation of a shared archive.
14816postuninstall_cmds=$lt_postuninstall_cmds
14817
14818# Commands used to finish a libtool library installation in a directory.
14819finish_cmds=$lt_finish_cmds
14820
14821# As "finish_cmds", except a single script fragment to be evaled but
14822# not shown.
14823finish_eval=$lt_finish_eval
14824
14825# Whether we should hardcode library paths into libraries.
14826hardcode_into_libs=$hardcode_into_libs
14827
14828# Compile-time system search path for libraries.
14829sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14830
14831# Detected run-time system search path for libraries.
14832sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14833
14834# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14835configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14836
14837# Whether dlopen is supported.
14838dlopen_support=$enable_dlopen
14839
14840# Whether dlopen of programs is supported.
14841dlopen_self=$enable_dlopen_self
14842
14843# Whether dlopen of statically linked programs is supported.
14844dlopen_self_static=$enable_dlopen_self_static
14845
14846# Commands to strip libraries.
14847old_striplib=$lt_old_striplib
14848striplib=$lt_striplib
14849
14850
14851# The linker used to build libraries.
14852LD=$lt_LD
14853
14854# How to create reloadable object files.
14855reload_flag=$lt_reload_flag
14856reload_cmds=$lt_reload_cmds
14857
14858# Commands used to build an old-style archive.
14859old_archive_cmds=$lt_old_archive_cmds
14860
14861# A language specific compiler.
14862CC=$lt_compiler
14863
14864# Is the compiler the GNU compiler?
14865with_gcc=$GCC
14866
14867# Compiler flag to turn off builtin functions.
14868no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14869
14870# Additional compiler flags for building library objects.
14871pic_flag=$lt_lt_prog_compiler_pic
14872
14873# How to pass a linker flag through the compiler.
14874wl=$lt_lt_prog_compiler_wl
14875
14876# Compiler flag to prevent dynamic linking.
14877link_static_flag=$lt_lt_prog_compiler_static
14878
14879# Does compiler simultaneously support -c and -o options?
14880compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14881
14882# Whether or not to add -lc for building shared libraries.
14883build_libtool_need_lc=$archive_cmds_need_lc
14884
14885# Whether or not to disallow shared libs when runtime libs are static.
14886allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14887
14888# Compiler flag to allow reflexive dlopens.
14889export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14890
14891# Compiler flag to generate shared objects directly from archives.
14892whole_archive_flag_spec=$lt_whole_archive_flag_spec
14893
14894# Whether the compiler copes with passing no objects directly.
14895compiler_needs_object=$lt_compiler_needs_object
14896
14897# Create an old-style archive from a shared archive.
14898old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14899
14900# Create a temporary old-style archive to link instead of a shared archive.
14901old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14902
14903# Commands used to build a shared archive.
14904archive_cmds=$lt_archive_cmds
14905archive_expsym_cmds=$lt_archive_expsym_cmds
14906
14907# Commands used to build a loadable module if different from building
14908# a shared archive.
14909module_cmds=$lt_module_cmds
14910module_expsym_cmds=$lt_module_expsym_cmds
14911
14912# Whether we are building with GNU ld or not.
14913with_gnu_ld=$lt_with_gnu_ld
14914
14915# Flag that allows shared libraries with undefined symbols to be built.
14916allow_undefined_flag=$lt_allow_undefined_flag
14917
14918# Flag that enforces no undefined symbols.
14919no_undefined_flag=$lt_no_undefined_flag
14920
14921# Flag to hardcode \$libdir into a binary during linking.
14922# This must work even if \$libdir does not exist
14923hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14924
14925# Whether we need a single "-rpath" flag with a separated argument.
14926hardcode_libdir_separator=$lt_hardcode_libdir_separator
14927
14928# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14929# DIR into the resulting binary.
14930hardcode_direct=$hardcode_direct
14931
14932# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14933# DIR into the resulting binary and the resulting library dependency is
14934# "absolute",i.e impossible to change by setting \$shlibpath_var if the
14935# library is relocated.
14936hardcode_direct_absolute=$hardcode_direct_absolute
14937
14938# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14939# into the resulting binary.
14940hardcode_minus_L=$hardcode_minus_L
14941
14942# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14943# into the resulting binary.
14944hardcode_shlibpath_var=$hardcode_shlibpath_var
14945
14946# Set to "yes" if building a shared library automatically hardcodes DIR
14947# into the library and all subsequent libraries and executables linked
14948# against it.
14949hardcode_automatic=$hardcode_automatic
14950
14951# Set to yes if linker adds runtime paths of dependent libraries
14952# to runtime path list.
14953inherit_rpath=$inherit_rpath
14954
14955# Whether libtool must link a program against all its dependency libraries.
14956link_all_deplibs=$link_all_deplibs
14957
14958# Set to "yes" if exported symbols are required.
14959always_export_symbols=$always_export_symbols
14960
14961# The commands to list exported symbols.
14962export_symbols_cmds=$lt_export_symbols_cmds
14963
14964# Symbols that should not be listed in the preloaded symbols.
14965exclude_expsyms=$lt_exclude_expsyms
14966
14967# Symbols that must always be exported.
14968include_expsyms=$lt_include_expsyms
14969
14970# Commands necessary for linking programs (against libraries) with templates.
14971prelink_cmds=$lt_prelink_cmds
14972
14973# Commands necessary for finishing linking programs.
14974postlink_cmds=$lt_postlink_cmds
14975
14976# Specify filename containing input files.
14977file_list_spec=$lt_file_list_spec
14978
14979# How to hardcode a shared library path into an executable.
14980hardcode_action=$hardcode_action
14981
14982# ### END LIBTOOL CONFIG
14983
14984_LT_EOF
14985
14986    cat <<'_LT_EOF' >> "$cfgfile"
14987
14988# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14989
14990# func_munge_path_list VARIABLE PATH
14991# -----------------------------------
14992# VARIABLE is name of variable containing _space_ separated list of
14993# directories to be munged by the contents of PATH, which is string
14994# having a format:
14995# "DIR[:DIR]:"
14996#       string "DIR[ DIR]" will be prepended to VARIABLE
14997# ":DIR[:DIR]"
14998#       string "DIR[ DIR]" will be appended to VARIABLE
14999# "DIRP[:DIRP]::[DIRA:]DIRA"
15000#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15001#       "DIRA[ DIRA]" will be appended to VARIABLE
15002# "DIR[:DIR]"
15003#       VARIABLE will be replaced by "DIR[ DIR]"
15004func_munge_path_list ()
15005{
15006    case x@S|@2 in
15007    x)
15008        ;;
15009    *:)
15010        eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
15011        ;;
15012    x:*)
15013        eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
15014        ;;
15015    *::*)
15016        eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15017        eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
15018        ;;
15019    *)
15020        eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
15021        ;;
15022    esac
15023}
15024
15025
15026# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15027func_cc_basename ()
15028{
15029    for cc_temp in @S|@*""; do
15030      case $cc_temp in
15031        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15032        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15033        \-*) ;;
15034        *) break;;
15035      esac
15036    done
15037    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15038}
15039
15040
15041# ### END FUNCTIONS SHARED WITH CONFIGURE
15042
15043_LT_EOF
15044
15045  case $host_os in
15046  aix3*)
15047    cat <<\_LT_EOF >> "$cfgfile"
15048# AIX sometimes has problems with the GCC collect2 program.  For some
15049# reason, if we set the COLLECT_NAMES environment variable, the problems
15050# vanish in a puff of smoke.
15051if test set != "${COLLECT_NAMES+set}"; then
15052  COLLECT_NAMES=
15053  export COLLECT_NAMES
15054fi
15055_LT_EOF
15056    ;;
15057  esac
15058
15059
15060ltmain=$ac_aux_dir/ltmain.sh
15061
15062
15063  # We use sed instead of cat because bash on DJGPP gets confused if
15064  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15065  # text mode, it properly converts lines to CR/LF.  This bash problem
15066  # is reportedly fixed, but why not run on old versions too?
15067  sed '$q' "$ltmain" >> "$cfgfile" \
15068     || (rm -f "$cfgfile"; exit 1)
15069
15070   mv -f "$cfgfile" "$ofile" ||
15071    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15072  chmod +x "$ofile"
15073
15074 ;;
15075
15076  esac
15077done # for ac_tag
15078
15079
15080as_fn_exit 0
15081_ACEOF
15082ac_clean_files=$ac_clean_files_save
15083
15084test $ac_write_fail = 0 ||
15085  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15086
15087
15088# configure is writing to config.log, and then calls config.status.
15089# config.status does its own redirection, appending to config.log.
15090# Unfortunately, on DOS this fails, as config.log is still kept open
15091# by configure, so config.status won't be able to write to it; its
15092# output is simply discarded.  So we exec the FD to /dev/null,
15093# effectively closing config.log, so it can be properly (re)opened and
15094# appended to by config.status.  When coming back to configure, we
15095# need to make the FD available again.
15096if test "$no_create" != yes; then
15097  ac_cs_success=:
15098  ac_config_status_args=
15099  test "$silent" = yes &&
15100    ac_config_status_args="$ac_config_status_args --quiet"
15101  exec 5>/dev/null
15102  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15103  exec 5>>config.log
15104  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15105  # would make configure fail if this is the last instruction.
15106  $ac_cs_success || as_fn_exit 1
15107fi
15108if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15109  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15110$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15111fi
15112
15113
15114