1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libevdev 1.5.9.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev>.
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
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='libevdev'
593PACKAGE_TARNAME='libevdev'
594PACKAGE_VERSION='1.5.9'
595PACKAGE_STRING='libevdev 1.5.9'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev'
597PACKAGE_URL='http://freedesktop.org/wiki/Software/libevdev/'
598
599ac_unique_file="libevdev/libevdev.c"
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
639LIBOBJS
640ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE
641ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE
642HAVE_NM_FALSE
643HAVE_NM_TRUE
644CAT
645pkgpyexecdir
646pyexecdir
647pkgpythondir
648pythondir
649PYTHON_PLATFORM
650PYTHON_EXEC_PREFIX
651PYTHON_PREFIX
652PYTHON_VERSION
653PYTHON
654GCOV_LDFLAGS
655GCOV_CFLAGS
656GCOV_ENABLED_FALSE
657GCOV_ENABLED_TRUE
658HAVE_DOXYGEN_FALSE
659HAVE_DOXYGEN_TRUE
660DOXYGEN
661GCC_CFLAGS
662RUN_TESTS_FALSE
663RUN_TESTS_TRUE
664ENABLE_STATIC_LINK_TEST_FALSE
665ENABLE_STATIC_LINK_TEST_TRUE
666ENABLE_RUNTIME_TESTS_FALSE
667ENABLE_RUNTIME_TESTS_TRUE
668HAVE_VALGRIND_FALSE
669HAVE_VALGRIND_TRUE
670VALGRIND
671CHECK_LIBS
672CHECK_CFLAGS
673PKG_CONFIG_LIBDIR
674PKG_CONFIG_PATH
675PKG_CONFIG
676GNU_LD_FLAGS
677LT_SYS_LIBRARY_PATH
678OTOOL64
679OTOOL
680LIPO
681NMEDIT
682DSYMUTIL
683MANIFEST_TOOL
684RANLIB
685ac_ct_AR
686AR
687DLLTOOL
688OBJDUMP
689LN_S
690NM
691ac_ct_DUMPBIN
692DUMPBIN
693LD
694FGREP
695SED
696host_os
697host_vendor
698host_cpu
699host
700build_os
701build_vendor
702build_cpu
703build
704LIBTOOL
705LIBEVDEV_LT_VERSION
706AM_BACKSLASH
707AM_DEFAULT_VERBOSITY
708AM_DEFAULT_V
709AM_V
710am__fastdepCC_FALSE
711am__fastdepCC_TRUE
712CCDEPMODE
713am__nodep
714AMDEPBACKSLASH
715AMDEP_FALSE
716AMDEP_TRUE
717am__quote
718am__include
719DEPDIR
720am__untar
721am__tar
722AMTAR
723am__leading_dot
724SET_MAKE
725AWK
726mkdir_p
727MKDIR_P
728INSTALL_STRIP_PROGRAM
729STRIP
730install_sh
731MAKEINFO
732AUTOHEADER
733AUTOMAKE
734AUTOCONF
735ACLOCAL
736VERSION
737PACKAGE
738CYGPATH_W
739am__isrc
740INSTALL_DATA
741INSTALL_SCRIPT
742INSTALL_PROGRAM
743EGREP
744GREP
745CPP
746OBJEXT
747EXEEXT
748ac_ct_CC
749CPPFLAGS
750LDFLAGS
751CFLAGS
752CC
753target_alias
754host_alias
755build_alias
756LIBS
757ECHO_T
758ECHO_N
759ECHO_C
760DEFS
761mandir
762localedir
763libdir
764psdir
765pdfdir
766dvidir
767htmldir
768infodir
769docdir
770oldincludedir
771includedir
772localstatedir
773sharedstatedir
774sysconfdir
775datadir
776datarootdir
777libexecdir
778sbindir
779bindir
780program_transform_name
781prefix
782exec_prefix
783PACKAGE_URL
784PACKAGE_BUGREPORT
785PACKAGE_STRING
786PACKAGE_VERSION
787PACKAGE_TARNAME
788PACKAGE_NAME
789PATH_SEPARATOR
790SHELL'
791ac_subst_files=''
792ac_user_opts='
793enable_option_checking
794enable_dependency_tracking
795enable_silent_rules
796enable_shared
797enable_static
798with_pic
799enable_fast_install
800with_aix_soname
801with_gnu_ld
802with_sysroot
803enable_libtool_lock
804enable_test_run
805enable_gcov
806'
807      ac_precious_vars='build_alias
808host_alias
809target_alias
810CC
811CFLAGS
812LDFLAGS
813LIBS
814CPPFLAGS
815CPP
816LT_SYS_LIBRARY_PATH
817PKG_CONFIG
818PKG_CONFIG_PATH
819PKG_CONFIG_LIBDIR
820CHECK_CFLAGS
821CHECK_LIBS
822PYTHON'
823
824
825# Initialize some variables set by options.
826ac_init_help=
827ac_init_version=false
828ac_unrecognized_opts=
829ac_unrecognized_sep=
830# The variables have the same names as the options, with
831# dashes changed to underlines.
832cache_file=/dev/null
833exec_prefix=NONE
834no_create=
835no_recursion=
836prefix=NONE
837program_prefix=NONE
838program_suffix=NONE
839program_transform_name=s,x,x,
840silent=
841site=
842srcdir=
843verbose=
844x_includes=NONE
845x_libraries=NONE
846
847# Installation directory options.
848# These are left unexpanded so users can "make install exec_prefix=/foo"
849# and all the variables that are supposed to be based on exec_prefix
850# by default will actually change.
851# Use braces instead of parens because sh, perl, etc. also accept them.
852# (The list follows the same order as the GNU Coding Standards.)
853bindir='${exec_prefix}/bin'
854sbindir='${exec_prefix}/sbin'
855libexecdir='${exec_prefix}/libexec'
856datarootdir='${prefix}/share'
857datadir='${datarootdir}'
858sysconfdir='${prefix}/etc'
859sharedstatedir='${prefix}/com'
860localstatedir='${prefix}/var'
861includedir='${prefix}/include'
862oldincludedir='/usr/include'
863docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864infodir='${datarootdir}/info'
865htmldir='${docdir}'
866dvidir='${docdir}'
867pdfdir='${docdir}'
868psdir='${docdir}'
869libdir='${exec_prefix}/lib'
870localedir='${datarootdir}/locale'
871mandir='${datarootdir}/man'
872
873ac_prev=
874ac_dashdash=
875for ac_option
876do
877  # If the previous option needs an argument, assign it.
878  if test -n "$ac_prev"; then
879    eval $ac_prev=\$ac_option
880    ac_prev=
881    continue
882  fi
883
884  case $ac_option in
885  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886  *=)   ac_optarg= ;;
887  *)    ac_optarg=yes ;;
888  esac
889
890  # Accept the important Cygnus configure options, so we can diagnose typos.
891
892  case $ac_dashdash$ac_option in
893  --)
894    ac_dashdash=yes ;;
895
896  -bindir | --bindir | --bindi | --bind | --bin | --bi)
897    ac_prev=bindir ;;
898  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899    bindir=$ac_optarg ;;
900
901  -build | --build | --buil | --bui | --bu)
902    ac_prev=build_alias ;;
903  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904    build_alias=$ac_optarg ;;
905
906  -cache-file | --cache-file | --cache-fil | --cache-fi \
907  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908    ac_prev=cache_file ;;
909  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911    cache_file=$ac_optarg ;;
912
913  --config-cache | -C)
914    cache_file=config.cache ;;
915
916  -datadir | --datadir | --datadi | --datad)
917    ac_prev=datadir ;;
918  -datadir=* | --datadir=* | --datadi=* | --datad=*)
919    datadir=$ac_optarg ;;
920
921  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922  | --dataroo | --dataro | --datar)
923    ac_prev=datarootdir ;;
924  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926    datarootdir=$ac_optarg ;;
927
928  -disable-* | --disable-*)
929    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930    # Reject names that are not valid shell variable names.
931    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932      as_fn_error $? "invalid feature name: $ac_useropt"
933    ac_useropt_orig=$ac_useropt
934    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935    case $ac_user_opts in
936      *"
937"enable_$ac_useropt"
938"*) ;;
939      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940	 ac_unrecognized_sep=', ';;
941    esac
942    eval enable_$ac_useropt=no ;;
943
944  -docdir | --docdir | --docdi | --doc | --do)
945    ac_prev=docdir ;;
946  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947    docdir=$ac_optarg ;;
948
949  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950    ac_prev=dvidir ;;
951  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952    dvidir=$ac_optarg ;;
953
954  -enable-* | --enable-*)
955    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956    # Reject names that are not valid shell variable names.
957    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958      as_fn_error $? "invalid feature name: $ac_useropt"
959    ac_useropt_orig=$ac_useropt
960    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961    case $ac_user_opts in
962      *"
963"enable_$ac_useropt"
964"*) ;;
965      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966	 ac_unrecognized_sep=', ';;
967    esac
968    eval enable_$ac_useropt=\$ac_optarg ;;
969
970  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972  | --exec | --exe | --ex)
973    ac_prev=exec_prefix ;;
974  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976  | --exec=* | --exe=* | --ex=*)
977    exec_prefix=$ac_optarg ;;
978
979  -gas | --gas | --ga | --g)
980    # Obsolete; use --with-gas.
981    with_gas=yes ;;
982
983  -help | --help | --hel | --he | -h)
984    ac_init_help=long ;;
985  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986    ac_init_help=recursive ;;
987  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988    ac_init_help=short ;;
989
990  -host | --host | --hos | --ho)
991    ac_prev=host_alias ;;
992  -host=* | --host=* | --hos=* | --ho=*)
993    host_alias=$ac_optarg ;;
994
995  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996    ac_prev=htmldir ;;
997  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998  | --ht=*)
999    htmldir=$ac_optarg ;;
1000
1001  -includedir | --includedir | --includedi | --included | --include \
1002  | --includ | --inclu | --incl | --inc)
1003    ac_prev=includedir ;;
1004  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005  | --includ=* | --inclu=* | --incl=* | --inc=*)
1006    includedir=$ac_optarg ;;
1007
1008  -infodir | --infodir | --infodi | --infod | --info | --inf)
1009    ac_prev=infodir ;;
1010  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011    infodir=$ac_optarg ;;
1012
1013  -libdir | --libdir | --libdi | --libd)
1014    ac_prev=libdir ;;
1015  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016    libdir=$ac_optarg ;;
1017
1018  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019  | --libexe | --libex | --libe)
1020    ac_prev=libexecdir ;;
1021  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022  | --libexe=* | --libex=* | --libe=*)
1023    libexecdir=$ac_optarg ;;
1024
1025  -localedir | --localedir | --localedi | --localed | --locale)
1026    ac_prev=localedir ;;
1027  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028    localedir=$ac_optarg ;;
1029
1030  -localstatedir | --localstatedir | --localstatedi | --localstated \
1031  | --localstate | --localstat | --localsta | --localst | --locals)
1032    ac_prev=localstatedir ;;
1033  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035    localstatedir=$ac_optarg ;;
1036
1037  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038    ac_prev=mandir ;;
1039  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040    mandir=$ac_optarg ;;
1041
1042  -nfp | --nfp | --nf)
1043    # Obsolete; use --without-fp.
1044    with_fp=no ;;
1045
1046  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047  | --no-cr | --no-c | -n)
1048    no_create=yes ;;
1049
1050  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052    no_recursion=yes ;;
1053
1054  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056  | --oldin | --oldi | --old | --ol | --o)
1057    ac_prev=oldincludedir ;;
1058  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061    oldincludedir=$ac_optarg ;;
1062
1063  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064    ac_prev=prefix ;;
1065  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066    prefix=$ac_optarg ;;
1067
1068  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069  | --program-pre | --program-pr | --program-p)
1070    ac_prev=program_prefix ;;
1071  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073    program_prefix=$ac_optarg ;;
1074
1075  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076  | --program-suf | --program-su | --program-s)
1077    ac_prev=program_suffix ;;
1078  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080    program_suffix=$ac_optarg ;;
1081
1082  -program-transform-name | --program-transform-name \
1083  | --program-transform-nam | --program-transform-na \
1084  | --program-transform-n | --program-transform- \
1085  | --program-transform | --program-transfor \
1086  | --program-transfo | --program-transf \
1087  | --program-trans | --program-tran \
1088  | --progr-tra | --program-tr | --program-t)
1089    ac_prev=program_transform_name ;;
1090  -program-transform-name=* | --program-transform-name=* \
1091  | --program-transform-nam=* | --program-transform-na=* \
1092  | --program-transform-n=* | --program-transform-=* \
1093  | --program-transform=* | --program-transfor=* \
1094  | --program-transfo=* | --program-transf=* \
1095  | --program-trans=* | --program-tran=* \
1096  | --progr-tra=* | --program-tr=* | --program-t=*)
1097    program_transform_name=$ac_optarg ;;
1098
1099  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100    ac_prev=pdfdir ;;
1101  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102    pdfdir=$ac_optarg ;;
1103
1104  -psdir | --psdir | --psdi | --psd | --ps)
1105    ac_prev=psdir ;;
1106  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107    psdir=$ac_optarg ;;
1108
1109  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110  | -silent | --silent | --silen | --sile | --sil)
1111    silent=yes ;;
1112
1113  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114    ac_prev=sbindir ;;
1115  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116  | --sbi=* | --sb=*)
1117    sbindir=$ac_optarg ;;
1118
1119  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121  | --sharedst | --shareds | --shared | --share | --shar \
1122  | --sha | --sh)
1123    ac_prev=sharedstatedir ;;
1124  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127  | --sha=* | --sh=*)
1128    sharedstatedir=$ac_optarg ;;
1129
1130  -site | --site | --sit)
1131    ac_prev=site ;;
1132  -site=* | --site=* | --sit=*)
1133    site=$ac_optarg ;;
1134
1135  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136    ac_prev=srcdir ;;
1137  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138    srcdir=$ac_optarg ;;
1139
1140  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141  | --syscon | --sysco | --sysc | --sys | --sy)
1142    ac_prev=sysconfdir ;;
1143  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145    sysconfdir=$ac_optarg ;;
1146
1147  -target | --target | --targe | --targ | --tar | --ta | --t)
1148    ac_prev=target_alias ;;
1149  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150    target_alias=$ac_optarg ;;
1151
1152  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153    verbose=yes ;;
1154
1155  -version | --version | --versio | --versi | --vers | -V)
1156    ac_init_version=: ;;
1157
1158  -with-* | --with-*)
1159    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160    # Reject names that are not valid shell variable names.
1161    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162      as_fn_error $? "invalid package name: $ac_useropt"
1163    ac_useropt_orig=$ac_useropt
1164    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165    case $ac_user_opts in
1166      *"
1167"with_$ac_useropt"
1168"*) ;;
1169      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1170	 ac_unrecognized_sep=', ';;
1171    esac
1172    eval with_$ac_useropt=\$ac_optarg ;;
1173
1174  -without-* | --without-*)
1175    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1176    # Reject names that are not valid shell variable names.
1177    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178      as_fn_error $? "invalid package name: $ac_useropt"
1179    ac_useropt_orig=$ac_useropt
1180    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181    case $ac_user_opts in
1182      *"
1183"with_$ac_useropt"
1184"*) ;;
1185      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186	 ac_unrecognized_sep=', ';;
1187    esac
1188    eval with_$ac_useropt=no ;;
1189
1190  --x)
1191    # Obsolete; use --with-x.
1192    with_x=yes ;;
1193
1194  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195  | --x-incl | --x-inc | --x-in | --x-i)
1196    ac_prev=x_includes ;;
1197  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199    x_includes=$ac_optarg ;;
1200
1201  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203    ac_prev=x_libraries ;;
1204  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206    x_libraries=$ac_optarg ;;
1207
1208  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1209Try \`$0 --help' for more information"
1210    ;;
1211
1212  *=*)
1213    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214    # Reject names that are not valid shell variable names.
1215    case $ac_envvar in #(
1216      '' | [0-9]* | *[!_$as_cr_alnum]* )
1217      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1218    esac
1219    eval $ac_envvar=\$ac_optarg
1220    export $ac_envvar ;;
1221
1222  *)
1223    # FIXME: should be removed in autoconf 3.0.
1224    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1228    ;;
1229
1230  esac
1231done
1232
1233if test -n "$ac_prev"; then
1234  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235  as_fn_error $? "missing argument to $ac_option"
1236fi
1237
1238if test -n "$ac_unrecognized_opts"; then
1239  case $enable_option_checking in
1240    no) ;;
1241    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1242    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243  esac
1244fi
1245
1246# Check all directory arguments for consistency.
1247for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248		datadir sysconfdir sharedstatedir localstatedir includedir \
1249		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250		libdir localedir mandir
1251do
1252  eval ac_val=\$$ac_var
1253  # Remove trailing slashes.
1254  case $ac_val in
1255    */ )
1256      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257      eval $ac_var=\$ac_val;;
1258  esac
1259  # Be sure to have absolute directory names.
1260  case $ac_val in
1261    [\\/$]* | ?:[\\/]* )  continue;;
1262    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1263  esac
1264  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1265done
1266
1267# There might be people who depend on the old broken behavior: `$host'
1268# used to hold the argument of --host etc.
1269# FIXME: To remove some day.
1270build=$build_alias
1271host=$host_alias
1272target=$target_alias
1273
1274# FIXME: To remove some day.
1275if test "x$host_alias" != x; then
1276  if test "x$build_alias" = x; then
1277    cross_compiling=maybe
1278  elif test "x$build_alias" != "x$host_alias"; then
1279    cross_compiling=yes
1280  fi
1281fi
1282
1283ac_tool_prefix=
1284test -n "$host_alias" && ac_tool_prefix=$host_alias-
1285
1286test "$silent" = yes && exec 6>/dev/null
1287
1288
1289ac_pwd=`pwd` && test -n "$ac_pwd" &&
1290ac_ls_di=`ls -di .` &&
1291ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1292  as_fn_error $? "working directory cannot be determined"
1293test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1294  as_fn_error $? "pwd does not report name of working directory"
1295
1296
1297# Find the source files, if location was not specified.
1298if test -z "$srcdir"; then
1299  ac_srcdir_defaulted=yes
1300  # Try the directory containing this script, then the parent directory.
1301  ac_confdir=`$as_dirname -- "$as_myself" ||
1302$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1303	 X"$as_myself" : 'X\(//\)[^/]' \| \
1304	 X"$as_myself" : 'X\(//\)$' \| \
1305	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1306$as_echo X"$as_myself" |
1307    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1308	    s//\1/
1309	    q
1310	  }
1311	  /^X\(\/\/\)[^/].*/{
1312	    s//\1/
1313	    q
1314	  }
1315	  /^X\(\/\/\)$/{
1316	    s//\1/
1317	    q
1318	  }
1319	  /^X\(\/\).*/{
1320	    s//\1/
1321	    q
1322	  }
1323	  s/.*/./; q'`
1324  srcdir=$ac_confdir
1325  if test ! -r "$srcdir/$ac_unique_file"; then
1326    srcdir=..
1327  fi
1328else
1329  ac_srcdir_defaulted=no
1330fi
1331if test ! -r "$srcdir/$ac_unique_file"; then
1332  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1333  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1334fi
1335ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1336ac_abs_confdir=`(
1337	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1338	pwd)`
1339# When building in place, set srcdir=.
1340if test "$ac_abs_confdir" = "$ac_pwd"; then
1341  srcdir=.
1342fi
1343# Remove unnecessary trailing slashes from srcdir.
1344# Double slashes in file names in object file debugging info
1345# mess up M-x gdb in Emacs.
1346case $srcdir in
1347*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1348esac
1349for ac_var in $ac_precious_vars; do
1350  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1351  eval ac_env_${ac_var}_value=\$${ac_var}
1352  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1353  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1354done
1355
1356#
1357# Report the --help message.
1358#
1359if test "$ac_init_help" = "long"; then
1360  # Omit some internal or obsolete options to make the list less imposing.
1361  # This message is too long to be a string in the A/UX 3.1 sh.
1362  cat <<_ACEOF
1363\`configure' configures libevdev 1.5.9 to adapt to many kinds of systems.
1364
1365Usage: $0 [OPTION]... [VAR=VALUE]...
1366
1367To assign environment variables (e.g., CC, CFLAGS...), specify them as
1368VAR=VALUE.  See below for descriptions of some of the useful variables.
1369
1370Defaults for the options are specified in brackets.
1371
1372Configuration:
1373  -h, --help              display this help and exit
1374      --help=short        display options specific to this package
1375      --help=recursive    display the short help of all the included packages
1376  -V, --version           display version information and exit
1377  -q, --quiet, --silent   do not print \`checking ...' messages
1378      --cache-file=FILE   cache test results in FILE [disabled]
1379  -C, --config-cache      alias for \`--cache-file=config.cache'
1380  -n, --no-create         do not create output files
1381      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1382
1383Installation directories:
1384  --prefix=PREFIX         install architecture-independent files in PREFIX
1385                          [$ac_default_prefix]
1386  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1387                          [PREFIX]
1388
1389By default, \`make install' will install all the files in
1390\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1391an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1392for instance \`--prefix=\$HOME'.
1393
1394For better control, use the options below.
1395
1396Fine tuning of the installation directories:
1397  --bindir=DIR            user executables [EPREFIX/bin]
1398  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1399  --libexecdir=DIR        program executables [EPREFIX/libexec]
1400  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1401  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1402  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1403  --libdir=DIR            object code libraries [EPREFIX/lib]
1404  --includedir=DIR        C header files [PREFIX/include]
1405  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1406  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1407  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1408  --infodir=DIR           info documentation [DATAROOTDIR/info]
1409  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1410  --mandir=DIR            man documentation [DATAROOTDIR/man]
1411  --docdir=DIR            documentation root [DATAROOTDIR/doc/libevdev]
1412  --htmldir=DIR           html documentation [DOCDIR]
1413  --dvidir=DIR            dvi documentation [DOCDIR]
1414  --pdfdir=DIR            pdf documentation [DOCDIR]
1415  --psdir=DIR             ps documentation [DOCDIR]
1416_ACEOF
1417
1418  cat <<\_ACEOF
1419
1420Program names:
1421  --program-prefix=PREFIX            prepend PREFIX to installed program names
1422  --program-suffix=SUFFIX            append SUFFIX to installed program names
1423  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1424
1425System types:
1426  --build=BUILD     configure for building on BUILD [guessed]
1427  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1428_ACEOF
1429fi
1430
1431if test -n "$ac_init_help"; then
1432  case $ac_init_help in
1433     short | recursive ) echo "Configuration of libevdev 1.5.9:";;
1434   esac
1435  cat <<\_ACEOF
1436
1437Optional Features:
1438  --disable-option-checking  ignore unrecognized --enable/--with options
1439  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1440  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1441  --enable-dependency-tracking
1442                          do not reject slow dependency extractors
1443  --disable-dependency-tracking
1444                          speeds up one-time build
1445  --enable-silent-rules   less verbose build output (undo: "make V=1")
1446  --disable-silent-rules  verbose build output (undo: "make V=0")
1447  --enable-shared[=PKGS]  build shared libraries [default=yes]
1448  --enable-static[=PKGS]  build static libraries [default=yes]
1449  --enable-fast-install[=PKGS]
1450                          optimize for fast installation [default=yes]
1451  --disable-libtool-lock  avoid locking (might break parallel builds)
1452  --enable-test-run       For internal use only
1453  --enable-gcov           Whether to enable coverage testing
1454                          (default:disabled)
1455
1456Optional Packages:
1457  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1458  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1459  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1460                          both]
1461  --with-aix-soname=aix|svr4|both
1462                          shared library versioning (aka "SONAME") variant to
1463                          provide on AIX, [default=aix].
1464  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1465  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1466                          compiler's sysroot if not specified).
1467
1468Some influential environment variables:
1469  CC          C compiler command
1470  CFLAGS      C compiler flags
1471  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1472              nonstandard directory <lib dir>
1473  LIBS        libraries to pass to the linker, e.g. -l<library>
1474  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475              you have headers in a nonstandard directory <include dir>
1476  CPP         C preprocessor
1477  LT_SYS_LIBRARY_PATH
1478              User-defined run-time library search path.
1479  PKG_CONFIG  path to pkg-config utility
1480  PKG_CONFIG_PATH
1481              directories to add to pkg-config's search path
1482  PKG_CONFIG_LIBDIR
1483              path overriding pkg-config's built-in search path
1484  CHECK_CFLAGS
1485              C compiler flags for CHECK, overriding pkg-config
1486  CHECK_LIBS  linker flags for CHECK, overriding pkg-config
1487  PYTHON      the Python interpreter
1488
1489Use these variables to override the choices made by `configure' or to help
1490it to find libraries and programs with nonstandard names/locations.
1491
1492Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev>.
1493libevdev home page: <http://freedesktop.org/wiki/Software/libevdev/>.
1494_ACEOF
1495ac_status=$?
1496fi
1497
1498if test "$ac_init_help" = "recursive"; then
1499  # If there are subdirs, report their specific --help.
1500  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501    test -d "$ac_dir" ||
1502      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503      continue
1504    ac_builddir=.
1505
1506case "$ac_dir" in
1507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508*)
1509  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1510  # A ".." for each directory in $ac_dir_suffix.
1511  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512  case $ac_top_builddir_sub in
1513  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515  esac ;;
1516esac
1517ac_abs_top_builddir=$ac_pwd
1518ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519# for backward compatibility:
1520ac_top_builddir=$ac_top_build_prefix
1521
1522case $srcdir in
1523  .)  # We are building in place.
1524    ac_srcdir=.
1525    ac_top_srcdir=$ac_top_builddir_sub
1526    ac_abs_top_srcdir=$ac_pwd ;;
1527  [\\/]* | ?:[\\/]* )  # Absolute name.
1528    ac_srcdir=$srcdir$ac_dir_suffix;
1529    ac_top_srcdir=$srcdir
1530    ac_abs_top_srcdir=$srcdir ;;
1531  *) # Relative name.
1532    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533    ac_top_srcdir=$ac_top_build_prefix$srcdir
1534    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535esac
1536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538    cd "$ac_dir" || { ac_status=$?; continue; }
1539    # Check for guested configure.
1540    if test -f "$ac_srcdir/configure.gnu"; then
1541      echo &&
1542      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543    elif test -f "$ac_srcdir/configure"; then
1544      echo &&
1545      $SHELL "$ac_srcdir/configure" --help=recursive
1546    else
1547      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548    fi || ac_status=$?
1549    cd "$ac_pwd" || { ac_status=$?; break; }
1550  done
1551fi
1552
1553test -n "$ac_init_help" && exit $ac_status
1554if $ac_init_version; then
1555  cat <<\_ACEOF
1556libevdev configure 1.5.9
1557generated by GNU Autoconf 2.69
1558
1559Copyright (C) 2012 Free Software Foundation, Inc.
1560This configure script is free software; the Free Software Foundation
1561gives unlimited permission to copy, distribute and modify it.
1562_ACEOF
1563  exit
1564fi
1565
1566## ------------------------ ##
1567## Autoconf initialization. ##
1568## ------------------------ ##
1569
1570# ac_fn_c_try_compile LINENO
1571# --------------------------
1572# Try to compile conftest.$ac_ext, and return whether this succeeded.
1573ac_fn_c_try_compile ()
1574{
1575  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576  rm -f conftest.$ac_objext
1577  if { { ac_try="$ac_compile"
1578case "(($ac_try" in
1579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580  *) ac_try_echo=$ac_try;;
1581esac
1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583$as_echo "$ac_try_echo"; } >&5
1584  (eval "$ac_compile") 2>conftest.err
1585  ac_status=$?
1586  if test -s conftest.err; then
1587    grep -v '^ *+' conftest.err >conftest.er1
1588    cat conftest.er1 >&5
1589    mv -f conftest.er1 conftest.err
1590  fi
1591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592  test $ac_status = 0; } && {
1593	 test -z "$ac_c_werror_flag" ||
1594	 test ! -s conftest.err
1595       } && test -s conftest.$ac_objext; then :
1596  ac_retval=0
1597else
1598  $as_echo "$as_me: failed program was:" >&5
1599sed 's/^/| /' conftest.$ac_ext >&5
1600
1601	ac_retval=1
1602fi
1603  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604  as_fn_set_status $ac_retval
1605
1606} # ac_fn_c_try_compile
1607
1608# ac_fn_c_try_cpp LINENO
1609# ----------------------
1610# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1611ac_fn_c_try_cpp ()
1612{
1613  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614  if { { ac_try="$ac_cpp conftest.$ac_ext"
1615case "(($ac_try" in
1616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617  *) ac_try_echo=$ac_try;;
1618esac
1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620$as_echo "$ac_try_echo"; } >&5
1621  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622  ac_status=$?
1623  if test -s conftest.err; then
1624    grep -v '^ *+' conftest.err >conftest.er1
1625    cat conftest.er1 >&5
1626    mv -f conftest.er1 conftest.err
1627  fi
1628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629  test $ac_status = 0; } > conftest.i && {
1630	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1631	 test ! -s conftest.err
1632       }; then :
1633  ac_retval=0
1634else
1635  $as_echo "$as_me: failed program was:" >&5
1636sed 's/^/| /' conftest.$ac_ext >&5
1637
1638    ac_retval=1
1639fi
1640  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641  as_fn_set_status $ac_retval
1642
1643} # ac_fn_c_try_cpp
1644
1645# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1646# -------------------------------------------------------
1647# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1648# the include files in INCLUDES and setting the cache variable VAR
1649# accordingly.
1650ac_fn_c_check_header_mongrel ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  if eval \${$3+:} false; then :
1654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655$as_echo_n "checking for $2... " >&6; }
1656if eval \${$3+:} false; then :
1657  $as_echo_n "(cached) " >&6
1658fi
1659eval ac_res=\$$3
1660	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661$as_echo "$ac_res" >&6; }
1662else
1663  # Is the header compilable?
1664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1665$as_echo_n "checking $2 usability... " >&6; }
1666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667/* end confdefs.h.  */
1668$4
1669#include <$2>
1670_ACEOF
1671if ac_fn_c_try_compile "$LINENO"; then :
1672  ac_header_compiler=yes
1673else
1674  ac_header_compiler=no
1675fi
1676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1678$as_echo "$ac_header_compiler" >&6; }
1679
1680# Is the header present?
1681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1682$as_echo_n "checking $2 presence... " >&6; }
1683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684/* end confdefs.h.  */
1685#include <$2>
1686_ACEOF
1687if ac_fn_c_try_cpp "$LINENO"; then :
1688  ac_header_preproc=yes
1689else
1690  ac_header_preproc=no
1691fi
1692rm -f conftest.err conftest.i conftest.$ac_ext
1693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1694$as_echo "$ac_header_preproc" >&6; }
1695
1696# So?  What about this header?
1697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1698  yes:no: )
1699    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1700$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1701    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1703    ;;
1704  no:yes:* )
1705    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1706$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1707    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1708$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1709    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1710$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1711    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1712$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1713    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1714$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1715( $as_echo "## -------------------------------------------------------------------------- ##
1716## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev ##
1717## -------------------------------------------------------------------------- ##"
1718     ) | sed "s/^/$as_me: WARNING:     /" >&2
1719    ;;
1720esac
1721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722$as_echo_n "checking for $2... " >&6; }
1723if eval \${$3+:} false; then :
1724  $as_echo_n "(cached) " >&6
1725else
1726  eval "$3=\$ac_header_compiler"
1727fi
1728eval ac_res=\$$3
1729	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730$as_echo "$ac_res" >&6; }
1731fi
1732  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733
1734} # ac_fn_c_check_header_mongrel
1735
1736# ac_fn_c_try_run LINENO
1737# ----------------------
1738# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1739# that executables *can* be run.
1740ac_fn_c_try_run ()
1741{
1742  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743  if { { ac_try="$ac_link"
1744case "(($ac_try" in
1745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746  *) ac_try_echo=$ac_try;;
1747esac
1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749$as_echo "$ac_try_echo"; } >&5
1750  (eval "$ac_link") 2>&5
1751  ac_status=$?
1752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1754  { { case "(($ac_try" in
1755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756  *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760  (eval "$ac_try") 2>&5
1761  ac_status=$?
1762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763  test $ac_status = 0; }; }; then :
1764  ac_retval=0
1765else
1766  $as_echo "$as_me: program exited with status $ac_status" >&5
1767       $as_echo "$as_me: failed program was:" >&5
1768sed 's/^/| /' conftest.$ac_ext >&5
1769
1770       ac_retval=$ac_status
1771fi
1772  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774  as_fn_set_status $ac_retval
1775
1776} # ac_fn_c_try_run
1777
1778# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1779# -------------------------------------------------------
1780# Tests whether HEADER exists and can be compiled using the include files in
1781# INCLUDES, setting the cache variable VAR accordingly.
1782ac_fn_c_check_header_compile ()
1783{
1784  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786$as_echo_n "checking for $2... " >&6; }
1787if eval \${$3+:} false; then :
1788  $as_echo_n "(cached) " >&6
1789else
1790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791/* end confdefs.h.  */
1792$4
1793#include <$2>
1794_ACEOF
1795if ac_fn_c_try_compile "$LINENO"; then :
1796  eval "$3=yes"
1797else
1798  eval "$3=no"
1799fi
1800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801fi
1802eval ac_res=\$$3
1803	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804$as_echo "$ac_res" >&6; }
1805  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806
1807} # ac_fn_c_check_header_compile
1808
1809# ac_fn_c_try_link LINENO
1810# -----------------------
1811# Try to link conftest.$ac_ext, and return whether this succeeded.
1812ac_fn_c_try_link ()
1813{
1814  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815  rm -f conftest.$ac_objext conftest$ac_exeext
1816  if { { ac_try="$ac_link"
1817case "(($ac_try" in
1818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819  *) ac_try_echo=$ac_try;;
1820esac
1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822$as_echo "$ac_try_echo"; } >&5
1823  (eval "$ac_link") 2>conftest.err
1824  ac_status=$?
1825  if test -s conftest.err; then
1826    grep -v '^ *+' conftest.err >conftest.er1
1827    cat conftest.er1 >&5
1828    mv -f conftest.er1 conftest.err
1829  fi
1830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831  test $ac_status = 0; } && {
1832	 test -z "$ac_c_werror_flag" ||
1833	 test ! -s conftest.err
1834       } && test -s conftest$ac_exeext && {
1835	 test "$cross_compiling" = yes ||
1836	 test -x conftest$ac_exeext
1837       }; then :
1838  ac_retval=0
1839else
1840  $as_echo "$as_me: failed program was:" >&5
1841sed 's/^/| /' conftest.$ac_ext >&5
1842
1843	ac_retval=1
1844fi
1845  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1846  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1847  # interfere with the next link command; also delete a directory that is
1848  # left behind by Apple's compiler.  We do this before executing the actions.
1849  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1850  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851  as_fn_set_status $ac_retval
1852
1853} # ac_fn_c_try_link
1854
1855# ac_fn_c_check_func LINENO FUNC VAR
1856# ----------------------------------
1857# Tests whether FUNC exists, setting the cache variable VAR accordingly
1858ac_fn_c_check_func ()
1859{
1860  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862$as_echo_n "checking for $2... " >&6; }
1863if eval \${$3+:} false; then :
1864  $as_echo_n "(cached) " >&6
1865else
1866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867/* end confdefs.h.  */
1868/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1869   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1870#define $2 innocuous_$2
1871
1872/* System header to define __stub macros and hopefully few prototypes,
1873    which can conflict with char $2 (); below.
1874    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1875    <limits.h> exists even on freestanding compilers.  */
1876
1877#ifdef __STDC__
1878# include <limits.h>
1879#else
1880# include <assert.h>
1881#endif
1882
1883#undef $2
1884
1885/* Override any GCC internal prototype to avoid an error.
1886   Use char because int might match the return type of a GCC
1887   builtin and then its argument prototype would still apply.  */
1888#ifdef __cplusplus
1889extern "C"
1890#endif
1891char $2 ();
1892/* The GNU C library defines this for functions which it implements
1893    to always fail with ENOSYS.  Some functions are actually named
1894    something starting with __ and the normal name is an alias.  */
1895#if defined __stub_$2 || defined __stub___$2
1896choke me
1897#endif
1898
1899int
1900main ()
1901{
1902return $2 ();
1903  ;
1904  return 0;
1905}
1906_ACEOF
1907if ac_fn_c_try_link "$LINENO"; then :
1908  eval "$3=yes"
1909else
1910  eval "$3=no"
1911fi
1912rm -f core conftest.err conftest.$ac_objext \
1913    conftest$ac_exeext conftest.$ac_ext
1914fi
1915eval ac_res=\$$3
1916	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917$as_echo "$ac_res" >&6; }
1918  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919
1920} # ac_fn_c_check_func
1921cat >config.log <<_ACEOF
1922This file contains any messages produced by compilers while
1923running configure, to aid debugging if configure makes a mistake.
1924
1925It was created by libevdev $as_me 1.5.9, which was
1926generated by GNU Autoconf 2.69.  Invocation command line was
1927
1928  $ $0 $@
1929
1930_ACEOF
1931exec 5>>config.log
1932{
1933cat <<_ASUNAME
1934## --------- ##
1935## Platform. ##
1936## --------- ##
1937
1938hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1939uname -m = `(uname -m) 2>/dev/null || echo unknown`
1940uname -r = `(uname -r) 2>/dev/null || echo unknown`
1941uname -s = `(uname -s) 2>/dev/null || echo unknown`
1942uname -v = `(uname -v) 2>/dev/null || echo unknown`
1943
1944/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1945/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1946
1947/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1948/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1949/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1950/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1951/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1952/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1953/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1954
1955_ASUNAME
1956
1957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958for as_dir in $PATH
1959do
1960  IFS=$as_save_IFS
1961  test -z "$as_dir" && as_dir=.
1962    $as_echo "PATH: $as_dir"
1963  done
1964IFS=$as_save_IFS
1965
1966} >&5
1967
1968cat >&5 <<_ACEOF
1969
1970
1971## ----------- ##
1972## Core tests. ##
1973## ----------- ##
1974
1975_ACEOF
1976
1977
1978# Keep a trace of the command line.
1979# Strip out --no-create and --no-recursion so they do not pile up.
1980# Strip out --silent because we don't want to record it for future runs.
1981# Also quote any args containing shell meta-characters.
1982# Make two passes to allow for proper duplicate-argument suppression.
1983ac_configure_args=
1984ac_configure_args0=
1985ac_configure_args1=
1986ac_must_keep_next=false
1987for ac_pass in 1 2
1988do
1989  for ac_arg
1990  do
1991    case $ac_arg in
1992    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1993    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1994    | -silent | --silent | --silen | --sile | --sil)
1995      continue ;;
1996    *\'*)
1997      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1998    esac
1999    case $ac_pass in
2000    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2001    2)
2002      as_fn_append ac_configure_args1 " '$ac_arg'"
2003      if test $ac_must_keep_next = true; then
2004	ac_must_keep_next=false # Got value, back to normal.
2005      else
2006	case $ac_arg in
2007	  *=* | --config-cache | -C | -disable-* | --disable-* \
2008	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2009	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2010	  | -with-* | --with-* | -without-* | --without-* | --x)
2011	    case "$ac_configure_args0 " in
2012	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2013	    esac
2014	    ;;
2015	  -* ) ac_must_keep_next=true ;;
2016	esac
2017      fi
2018      as_fn_append ac_configure_args " '$ac_arg'"
2019      ;;
2020    esac
2021  done
2022done
2023{ ac_configure_args0=; unset ac_configure_args0;}
2024{ ac_configure_args1=; unset ac_configure_args1;}
2025
2026# When interrupted or exit'd, cleanup temporary files, and complete
2027# config.log.  We remove comments because anyway the quotes in there
2028# would cause problems or look ugly.
2029# WARNING: Use '\'' to represent an apostrophe within the trap.
2030# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2031trap 'exit_status=$?
2032  # Save into config.log some information that might help in debugging.
2033  {
2034    echo
2035
2036    $as_echo "## ---------------- ##
2037## Cache variables. ##
2038## ---------------- ##"
2039    echo
2040    # The following way of writing the cache mishandles newlines in values,
2041(
2042  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2043    eval ac_val=\$$ac_var
2044    case $ac_val in #(
2045    *${as_nl}*)
2046      case $ac_var in #(
2047      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2048$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2049      esac
2050      case $ac_var in #(
2051      _ | IFS | as_nl) ;; #(
2052      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2053      *) { eval $ac_var=; unset $ac_var;} ;;
2054      esac ;;
2055    esac
2056  done
2057  (set) 2>&1 |
2058    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2059    *${as_nl}ac_space=\ *)
2060      sed -n \
2061	"s/'\''/'\''\\\\'\'''\''/g;
2062	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2063      ;; #(
2064    *)
2065      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2066      ;;
2067    esac |
2068    sort
2069)
2070    echo
2071
2072    $as_echo "## ----------------- ##
2073## Output variables. ##
2074## ----------------- ##"
2075    echo
2076    for ac_var in $ac_subst_vars
2077    do
2078      eval ac_val=\$$ac_var
2079      case $ac_val in
2080      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2081      esac
2082      $as_echo "$ac_var='\''$ac_val'\''"
2083    done | sort
2084    echo
2085
2086    if test -n "$ac_subst_files"; then
2087      $as_echo "## ------------------- ##
2088## File substitutions. ##
2089## ------------------- ##"
2090      echo
2091      for ac_var in $ac_subst_files
2092      do
2093	eval ac_val=\$$ac_var
2094	case $ac_val in
2095	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2096	esac
2097	$as_echo "$ac_var='\''$ac_val'\''"
2098      done | sort
2099      echo
2100    fi
2101
2102    if test -s confdefs.h; then
2103      $as_echo "## ----------- ##
2104## confdefs.h. ##
2105## ----------- ##"
2106      echo
2107      cat confdefs.h
2108      echo
2109    fi
2110    test "$ac_signal" != 0 &&
2111      $as_echo "$as_me: caught signal $ac_signal"
2112    $as_echo "$as_me: exit $exit_status"
2113  } >&5
2114  rm -f core *.core core.conftest.* &&
2115    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2116    exit $exit_status
2117' 0
2118for ac_signal in 1 2 13 15; do
2119  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2120done
2121ac_signal=0
2122
2123# confdefs.h avoids OS command line length limits that DEFS can exceed.
2124rm -f -r conftest* confdefs.h
2125
2126$as_echo "/* confdefs.h */" > confdefs.h
2127
2128# Predefined preprocessor variables.
2129
2130cat >>confdefs.h <<_ACEOF
2131#define PACKAGE_NAME "$PACKAGE_NAME"
2132_ACEOF
2133
2134cat >>confdefs.h <<_ACEOF
2135#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2136_ACEOF
2137
2138cat >>confdefs.h <<_ACEOF
2139#define PACKAGE_VERSION "$PACKAGE_VERSION"
2140_ACEOF
2141
2142cat >>confdefs.h <<_ACEOF
2143#define PACKAGE_STRING "$PACKAGE_STRING"
2144_ACEOF
2145
2146cat >>confdefs.h <<_ACEOF
2147#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2148_ACEOF
2149
2150cat >>confdefs.h <<_ACEOF
2151#define PACKAGE_URL "$PACKAGE_URL"
2152_ACEOF
2153
2154
2155# Let the site file select an alternate cache file if it wants to.
2156# Prefer an explicitly selected file to automatically selected ones.
2157ac_site_file1=NONE
2158ac_site_file2=NONE
2159if test -n "$CONFIG_SITE"; then
2160  # We do not want a PATH search for config.site.
2161  case $CONFIG_SITE in #((
2162    -*)  ac_site_file1=./$CONFIG_SITE;;
2163    */*) ac_site_file1=$CONFIG_SITE;;
2164    *)   ac_site_file1=./$CONFIG_SITE;;
2165  esac
2166elif test "x$prefix" != xNONE; then
2167  ac_site_file1=$prefix/share/config.site
2168  ac_site_file2=$prefix/etc/config.site
2169else
2170  ac_site_file1=$ac_default_prefix/share/config.site
2171  ac_site_file2=$ac_default_prefix/etc/config.site
2172fi
2173for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2174do
2175  test "x$ac_site_file" = xNONE && continue
2176  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2177    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2178$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2179    sed 's/^/| /' "$ac_site_file" >&5
2180    . "$ac_site_file" \
2181      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2183as_fn_error $? "failed to load site script $ac_site_file
2184See \`config.log' for more details" "$LINENO" 5; }
2185  fi
2186done
2187
2188if test -r "$cache_file"; then
2189  # Some versions of bash will fail to source /dev/null (special files
2190  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2191  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2192    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2193$as_echo "$as_me: loading cache $cache_file" >&6;}
2194    case $cache_file in
2195      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2196      *)                      . "./$cache_file";;
2197    esac
2198  fi
2199else
2200  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2201$as_echo "$as_me: creating cache $cache_file" >&6;}
2202  >$cache_file
2203fi
2204
2205# Check that the precious variables saved in the cache have kept the same
2206# value.
2207ac_cache_corrupted=false
2208for ac_var in $ac_precious_vars; do
2209  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2210  eval ac_new_set=\$ac_env_${ac_var}_set
2211  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2212  eval ac_new_val=\$ac_env_${ac_var}_value
2213  case $ac_old_set,$ac_new_set in
2214    set,)
2215      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2216$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2217      ac_cache_corrupted=: ;;
2218    ,set)
2219      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2220$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2221      ac_cache_corrupted=: ;;
2222    ,);;
2223    *)
2224      if test "x$ac_old_val" != "x$ac_new_val"; then
2225	# differences in whitespace do not lead to failure.
2226	ac_old_val_w=`echo x $ac_old_val`
2227	ac_new_val_w=`echo x $ac_new_val`
2228	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2229	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2230$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2231	  ac_cache_corrupted=:
2232	else
2233	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2234$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2235	  eval $ac_var=\$ac_old_val
2236	fi
2237	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2238$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2239	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2240$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2241      fi;;
2242  esac
2243  # Pass precious variables to config.status.
2244  if test "$ac_new_set" = set; then
2245    case $ac_new_val in
2246    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2247    *) ac_arg=$ac_var=$ac_new_val ;;
2248    esac
2249    case " $ac_configure_args " in
2250      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2251      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2252    esac
2253  fi
2254done
2255if $ac_cache_corrupted; then
2256  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2258  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2259$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2260  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2261fi
2262## -------------------- ##
2263## Main body of script. ##
2264## -------------------- ##
2265
2266ac_ext=c
2267ac_cpp='$CPP $CPPFLAGS'
2268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2270ac_compiler_gnu=$ac_cv_c_compiler_gnu
2271
2272
2273
2274
2275ac_config_headers="$ac_config_headers config.h"
2276
2277
2278ac_aux_dir=
2279for ac_dir in build-aux "$srcdir"/build-aux; do
2280  if test -f "$ac_dir/install-sh"; then
2281    ac_aux_dir=$ac_dir
2282    ac_install_sh="$ac_aux_dir/install-sh -c"
2283    break
2284  elif test -f "$ac_dir/install.sh"; then
2285    ac_aux_dir=$ac_dir
2286    ac_install_sh="$ac_aux_dir/install.sh -c"
2287    break
2288  elif test -f "$ac_dir/shtool"; then
2289    ac_aux_dir=$ac_dir
2290    ac_install_sh="$ac_aux_dir/shtool install -c"
2291    break
2292  fi
2293done
2294if test -z "$ac_aux_dir"; then
2295  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2296fi
2297
2298# These three variables are undocumented and unsupported,
2299# and are intended to be withdrawn in a future Autoconf release.
2300# They can cause serious problems if a builder's source tree is in a directory
2301# whose full name contains unusual characters.
2302ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2303ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2304ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2305
2306
2307# Expand $ac_aux_dir to an absolute path.
2308am_aux_dir=`cd "$ac_aux_dir" && pwd`
2309
2310ac_ext=c
2311ac_cpp='$CPP $CPPFLAGS'
2312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315if test -n "$ac_tool_prefix"; then
2316  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2317set dummy ${ac_tool_prefix}gcc; ac_word=$2
2318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2319$as_echo_n "checking for $ac_word... " >&6; }
2320if ${ac_cv_prog_CC+:} false; then :
2321  $as_echo_n "(cached) " >&6
2322else
2323  if test -n "$CC"; then
2324  ac_cv_prog_CC="$CC" # Let the user override the test.
2325else
2326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327for as_dir in $PATH
2328do
2329  IFS=$as_save_IFS
2330  test -z "$as_dir" && as_dir=.
2331    for ac_exec_ext in '' $ac_executable_extensions; do
2332  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2333    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2335    break 2
2336  fi
2337done
2338  done
2339IFS=$as_save_IFS
2340
2341fi
2342fi
2343CC=$ac_cv_prog_CC
2344if test -n "$CC"; then
2345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2346$as_echo "$CC" >&6; }
2347else
2348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2349$as_echo "no" >&6; }
2350fi
2351
2352
2353fi
2354if test -z "$ac_cv_prog_CC"; then
2355  ac_ct_CC=$CC
2356  # Extract the first word of "gcc", so it can be a program name with args.
2357set dummy gcc; ac_word=$2
2358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2359$as_echo_n "checking for $ac_word... " >&6; }
2360if ${ac_cv_prog_ac_ct_CC+:} false; then :
2361  $as_echo_n "(cached) " >&6
2362else
2363  if test -n "$ac_ct_CC"; then
2364  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2365else
2366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367for as_dir in $PATH
2368do
2369  IFS=$as_save_IFS
2370  test -z "$as_dir" && as_dir=.
2371    for ac_exec_ext in '' $ac_executable_extensions; do
2372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2373    ac_cv_prog_ac_ct_CC="gcc"
2374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2375    break 2
2376  fi
2377done
2378  done
2379IFS=$as_save_IFS
2380
2381fi
2382fi
2383ac_ct_CC=$ac_cv_prog_ac_ct_CC
2384if test -n "$ac_ct_CC"; then
2385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2386$as_echo "$ac_ct_CC" >&6; }
2387else
2388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2389$as_echo "no" >&6; }
2390fi
2391
2392  if test "x$ac_ct_CC" = x; then
2393    CC=""
2394  else
2395    case $cross_compiling:$ac_tool_warned in
2396yes:)
2397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2399ac_tool_warned=yes ;;
2400esac
2401    CC=$ac_ct_CC
2402  fi
2403else
2404  CC="$ac_cv_prog_CC"
2405fi
2406
2407if test -z "$CC"; then
2408          if test -n "$ac_tool_prefix"; then
2409    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2410set dummy ${ac_tool_prefix}cc; ac_word=$2
2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2412$as_echo_n "checking for $ac_word... " >&6; }
2413if ${ac_cv_prog_CC+:} false; then :
2414  $as_echo_n "(cached) " >&6
2415else
2416  if test -n "$CC"; then
2417  ac_cv_prog_CC="$CC" # Let the user override the test.
2418else
2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420for as_dir in $PATH
2421do
2422  IFS=$as_save_IFS
2423  test -z "$as_dir" && as_dir=.
2424    for ac_exec_ext in '' $ac_executable_extensions; do
2425  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2426    ac_cv_prog_CC="${ac_tool_prefix}cc"
2427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2428    break 2
2429  fi
2430done
2431  done
2432IFS=$as_save_IFS
2433
2434fi
2435fi
2436CC=$ac_cv_prog_CC
2437if test -n "$CC"; then
2438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2439$as_echo "$CC" >&6; }
2440else
2441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2442$as_echo "no" >&6; }
2443fi
2444
2445
2446  fi
2447fi
2448if test -z "$CC"; then
2449  # Extract the first word of "cc", so it can be a program name with args.
2450set dummy cc; ac_word=$2
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2452$as_echo_n "checking for $ac_word... " >&6; }
2453if ${ac_cv_prog_CC+:} false; then :
2454  $as_echo_n "(cached) " >&6
2455else
2456  if test -n "$CC"; then
2457  ac_cv_prog_CC="$CC" # Let the user override the test.
2458else
2459  ac_prog_rejected=no
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463  IFS=$as_save_IFS
2464  test -z "$as_dir" && as_dir=.
2465    for ac_exec_ext in '' $ac_executable_extensions; do
2466  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2467    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2468       ac_prog_rejected=yes
2469       continue
2470     fi
2471    ac_cv_prog_CC="cc"
2472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2473    break 2
2474  fi
2475done
2476  done
2477IFS=$as_save_IFS
2478
2479if test $ac_prog_rejected = yes; then
2480  # We found a bogon in the path, so make sure we never use it.
2481  set dummy $ac_cv_prog_CC
2482  shift
2483  if test $# != 0; then
2484    # We chose a different compiler from the bogus one.
2485    # However, it has the same basename, so the bogon will be chosen
2486    # first if we set CC to just the basename; use the full file name.
2487    shift
2488    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2489  fi
2490fi
2491fi
2492fi
2493CC=$ac_cv_prog_CC
2494if test -n "$CC"; then
2495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2496$as_echo "$CC" >&6; }
2497else
2498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2499$as_echo "no" >&6; }
2500fi
2501
2502
2503fi
2504if test -z "$CC"; then
2505  if test -n "$ac_tool_prefix"; then
2506  for ac_prog in cl.exe
2507  do
2508    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2509set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511$as_echo_n "checking for $ac_word... " >&6; }
2512if ${ac_cv_prog_CC+:} false; then :
2513  $as_echo_n "(cached) " >&6
2514else
2515  if test -n "$CC"; then
2516  ac_cv_prog_CC="$CC" # Let the user override the test.
2517else
2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519for as_dir in $PATH
2520do
2521  IFS=$as_save_IFS
2522  test -z "$as_dir" && as_dir=.
2523    for ac_exec_ext in '' $ac_executable_extensions; do
2524  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2525    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2527    break 2
2528  fi
2529done
2530  done
2531IFS=$as_save_IFS
2532
2533fi
2534fi
2535CC=$ac_cv_prog_CC
2536if test -n "$CC"; then
2537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2538$as_echo "$CC" >&6; }
2539else
2540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2541$as_echo "no" >&6; }
2542fi
2543
2544
2545    test -n "$CC" && break
2546  done
2547fi
2548if test -z "$CC"; then
2549  ac_ct_CC=$CC
2550  for ac_prog in cl.exe
2551do
2552  # Extract the first word of "$ac_prog", so it can be a program name with args.
2553set dummy $ac_prog; ac_word=$2
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555$as_echo_n "checking for $ac_word... " >&6; }
2556if ${ac_cv_prog_ac_ct_CC+:} false; then :
2557  $as_echo_n "(cached) " >&6
2558else
2559  if test -n "$ac_ct_CC"; then
2560  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2561else
2562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH
2564do
2565  IFS=$as_save_IFS
2566  test -z "$as_dir" && as_dir=.
2567    for ac_exec_ext in '' $ac_executable_extensions; do
2568  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569    ac_cv_prog_ac_ct_CC="$ac_prog"
2570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571    break 2
2572  fi
2573done
2574  done
2575IFS=$as_save_IFS
2576
2577fi
2578fi
2579ac_ct_CC=$ac_cv_prog_ac_ct_CC
2580if test -n "$ac_ct_CC"; then
2581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2582$as_echo "$ac_ct_CC" >&6; }
2583else
2584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585$as_echo "no" >&6; }
2586fi
2587
2588
2589  test -n "$ac_ct_CC" && break
2590done
2591
2592  if test "x$ac_ct_CC" = x; then
2593    CC=""
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    CC=$ac_ct_CC
2602  fi
2603fi
2604
2605fi
2606
2607
2608test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2610as_fn_error $? "no acceptable C compiler found in \$PATH
2611See \`config.log' for more details" "$LINENO" 5; }
2612
2613# Provide some information about the compiler.
2614$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2615set X $ac_compile
2616ac_compiler=$2
2617for ac_option in --version -v -V -qversion; do
2618  { { ac_try="$ac_compiler $ac_option >&5"
2619case "(($ac_try" in
2620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621  *) ac_try_echo=$ac_try;;
2622esac
2623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2624$as_echo "$ac_try_echo"; } >&5
2625  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2626  ac_status=$?
2627  if test -s conftest.err; then
2628    sed '10a\
2629... rest of stderr output deleted ...
2630         10q' conftest.err >conftest.er1
2631    cat conftest.er1 >&5
2632  fi
2633  rm -f conftest.er1 conftest.err
2634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2635  test $ac_status = 0; }
2636done
2637
2638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639/* end confdefs.h.  */
2640
2641int
2642main ()
2643{
2644
2645  ;
2646  return 0;
2647}
2648_ACEOF
2649ac_clean_files_save=$ac_clean_files
2650ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2651# Try to create an executable without -o first, disregard a.out.
2652# It will help us diagnose broken compilers, and finding out an intuition
2653# of exeext.
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2655$as_echo_n "checking whether the C compiler works... " >&6; }
2656ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2657
2658# The possible output files:
2659ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2660
2661ac_rmfiles=
2662for ac_file in $ac_files
2663do
2664  case $ac_file in
2665    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2666    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2667  esac
2668done
2669rm -f $ac_rmfiles
2670
2671if { { ac_try="$ac_link_default"
2672case "(($ac_try" in
2673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674  *) ac_try_echo=$ac_try;;
2675esac
2676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2677$as_echo "$ac_try_echo"; } >&5
2678  (eval "$ac_link_default") 2>&5
2679  ac_status=$?
2680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2681  test $ac_status = 0; }; then :
2682  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2683# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2684# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2685# so that the user can short-circuit this test for compilers unknown to
2686# Autoconf.
2687for ac_file in $ac_files ''
2688do
2689  test -f "$ac_file" || continue
2690  case $ac_file in
2691    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2692	;;
2693    [ab].out )
2694	# We found the default executable, but exeext='' is most
2695	# certainly right.
2696	break;;
2697    *.* )
2698	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2699	then :; else
2700	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2701	fi
2702	# We set ac_cv_exeext here because the later test for it is not
2703	# safe: cross compilers may not add the suffix if given an `-o'
2704	# argument, so we may need to know it at that point already.
2705	# Even if this section looks crufty: it has the advantage of
2706	# actually working.
2707	break;;
2708    * )
2709	break;;
2710  esac
2711done
2712test "$ac_cv_exeext" = no && ac_cv_exeext=
2713
2714else
2715  ac_file=''
2716fi
2717if test -z "$ac_file"; then :
2718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719$as_echo "no" >&6; }
2720$as_echo "$as_me: failed program was:" >&5
2721sed 's/^/| /' conftest.$ac_ext >&5
2722
2723{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2725as_fn_error 77 "C compiler cannot create executables
2726See \`config.log' for more details" "$LINENO" 5; }
2727else
2728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2729$as_echo "yes" >&6; }
2730fi
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2732$as_echo_n "checking for C compiler default output file name... " >&6; }
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2734$as_echo "$ac_file" >&6; }
2735ac_exeext=$ac_cv_exeext
2736
2737rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2738ac_clean_files=$ac_clean_files_save
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2740$as_echo_n "checking for suffix of executables... " >&6; }
2741if { { ac_try="$ac_link"
2742case "(($ac_try" in
2743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744  *) ac_try_echo=$ac_try;;
2745esac
2746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2747$as_echo "$ac_try_echo"; } >&5
2748  (eval "$ac_link") 2>&5
2749  ac_status=$?
2750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2751  test $ac_status = 0; }; then :
2752  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2753# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2754# work properly (i.e., refer to `conftest.exe'), while it won't with
2755# `rm'.
2756for ac_file in conftest.exe conftest conftest.*; do
2757  test -f "$ac_file" || continue
2758  case $ac_file in
2759    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2760    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2761	  break;;
2762    * ) break;;
2763  esac
2764done
2765else
2766  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2768as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2769See \`config.log' for more details" "$LINENO" 5; }
2770fi
2771rm -f conftest conftest$ac_cv_exeext
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2773$as_echo "$ac_cv_exeext" >&6; }
2774
2775rm -f conftest.$ac_ext
2776EXEEXT=$ac_cv_exeext
2777ac_exeext=$EXEEXT
2778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779/* end confdefs.h.  */
2780#include <stdio.h>
2781int
2782main ()
2783{
2784FILE *f = fopen ("conftest.out", "w");
2785 return ferror (f) || fclose (f) != 0;
2786
2787  ;
2788  return 0;
2789}
2790_ACEOF
2791ac_clean_files="$ac_clean_files conftest.out"
2792# Check that the compiler produces executables we can run.  If not, either
2793# the compiler is broken, or we cross compile.
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2795$as_echo_n "checking whether we are cross compiling... " >&6; }
2796if test "$cross_compiling" != yes; then
2797  { { ac_try="$ac_link"
2798case "(($ac_try" in
2799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800  *) ac_try_echo=$ac_try;;
2801esac
2802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2803$as_echo "$ac_try_echo"; } >&5
2804  (eval "$ac_link") 2>&5
2805  ac_status=$?
2806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2807  test $ac_status = 0; }
2808  if { ac_try='./conftest$ac_cv_exeext'
2809  { { case "(($ac_try" in
2810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811  *) ac_try_echo=$ac_try;;
2812esac
2813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2814$as_echo "$ac_try_echo"; } >&5
2815  (eval "$ac_try") 2>&5
2816  ac_status=$?
2817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2818  test $ac_status = 0; }; }; then
2819    cross_compiling=no
2820  else
2821    if test "$cross_compiling" = maybe; then
2822	cross_compiling=yes
2823    else
2824	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2826as_fn_error $? "cannot run C compiled programs.
2827If you meant to cross compile, use \`--host'.
2828See \`config.log' for more details" "$LINENO" 5; }
2829    fi
2830  fi
2831fi
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2833$as_echo "$cross_compiling" >&6; }
2834
2835rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2836ac_clean_files=$ac_clean_files_save
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2838$as_echo_n "checking for suffix of object files... " >&6; }
2839if ${ac_cv_objext+:} false; then :
2840  $as_echo_n "(cached) " >&6
2841else
2842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843/* end confdefs.h.  */
2844
2845int
2846main ()
2847{
2848
2849  ;
2850  return 0;
2851}
2852_ACEOF
2853rm -f conftest.o conftest.obj
2854if { { ac_try="$ac_compile"
2855case "(($ac_try" in
2856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2857  *) ac_try_echo=$ac_try;;
2858esac
2859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2860$as_echo "$ac_try_echo"; } >&5
2861  (eval "$ac_compile") 2>&5
2862  ac_status=$?
2863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2864  test $ac_status = 0; }; then :
2865  for ac_file in conftest.o conftest.obj conftest.*; do
2866  test -f "$ac_file" || continue;
2867  case $ac_file in
2868    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2869    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2870       break;;
2871  esac
2872done
2873else
2874  $as_echo "$as_me: failed program was:" >&5
2875sed 's/^/| /' conftest.$ac_ext >&5
2876
2877{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2879as_fn_error $? "cannot compute suffix of object files: cannot compile
2880See \`config.log' for more details" "$LINENO" 5; }
2881fi
2882rm -f conftest.$ac_cv_objext conftest.$ac_ext
2883fi
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2885$as_echo "$ac_cv_objext" >&6; }
2886OBJEXT=$ac_cv_objext
2887ac_objext=$OBJEXT
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2889$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2890if ${ac_cv_c_compiler_gnu+:} false; then :
2891  $as_echo_n "(cached) " >&6
2892else
2893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894/* end confdefs.h.  */
2895
2896int
2897main ()
2898{
2899#ifndef __GNUC__
2900       choke me
2901#endif
2902
2903  ;
2904  return 0;
2905}
2906_ACEOF
2907if ac_fn_c_try_compile "$LINENO"; then :
2908  ac_compiler_gnu=yes
2909else
2910  ac_compiler_gnu=no
2911fi
2912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913ac_cv_c_compiler_gnu=$ac_compiler_gnu
2914
2915fi
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2917$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2918if test $ac_compiler_gnu = yes; then
2919  GCC=yes
2920else
2921  GCC=
2922fi
2923ac_test_CFLAGS=${CFLAGS+set}
2924ac_save_CFLAGS=$CFLAGS
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2926$as_echo_n "checking whether $CC accepts -g... " >&6; }
2927if ${ac_cv_prog_cc_g+:} false; then :
2928  $as_echo_n "(cached) " >&6
2929else
2930  ac_save_c_werror_flag=$ac_c_werror_flag
2931   ac_c_werror_flag=yes
2932   ac_cv_prog_cc_g=no
2933   CFLAGS="-g"
2934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2935/* end confdefs.h.  */
2936
2937int
2938main ()
2939{
2940
2941  ;
2942  return 0;
2943}
2944_ACEOF
2945if ac_fn_c_try_compile "$LINENO"; then :
2946  ac_cv_prog_cc_g=yes
2947else
2948  CFLAGS=""
2949      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950/* end confdefs.h.  */
2951
2952int
2953main ()
2954{
2955
2956  ;
2957  return 0;
2958}
2959_ACEOF
2960if ac_fn_c_try_compile "$LINENO"; then :
2961
2962else
2963  ac_c_werror_flag=$ac_save_c_werror_flag
2964	 CFLAGS="-g"
2965	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966/* end confdefs.h.  */
2967
2968int
2969main ()
2970{
2971
2972  ;
2973  return 0;
2974}
2975_ACEOF
2976if ac_fn_c_try_compile "$LINENO"; then :
2977  ac_cv_prog_cc_g=yes
2978fi
2979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980fi
2981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2982fi
2983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984   ac_c_werror_flag=$ac_save_c_werror_flag
2985fi
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2987$as_echo "$ac_cv_prog_cc_g" >&6; }
2988if test "$ac_test_CFLAGS" = set; then
2989  CFLAGS=$ac_save_CFLAGS
2990elif test $ac_cv_prog_cc_g = yes; then
2991  if test "$GCC" = yes; then
2992    CFLAGS="-g -O2"
2993  else
2994    CFLAGS="-g"
2995  fi
2996else
2997  if test "$GCC" = yes; then
2998    CFLAGS="-O2"
2999  else
3000    CFLAGS=
3001  fi
3002fi
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3004$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3005if ${ac_cv_prog_cc_c89+:} false; then :
3006  $as_echo_n "(cached) " >&6
3007else
3008  ac_cv_prog_cc_c89=no
3009ac_save_CC=$CC
3010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011/* end confdefs.h.  */
3012#include <stdarg.h>
3013#include <stdio.h>
3014struct stat;
3015/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3016struct buf { int x; };
3017FILE * (*rcsopen) (struct buf *, struct stat *, int);
3018static char *e (p, i)
3019     char **p;
3020     int i;
3021{
3022  return p[i];
3023}
3024static char *f (char * (*g) (char **, int), char **p, ...)
3025{
3026  char *s;
3027  va_list v;
3028  va_start (v,p);
3029  s = g (p, va_arg (v,int));
3030  va_end (v);
3031  return s;
3032}
3033
3034/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3035   function prototypes and stuff, but not '\xHH' hex character constants.
3036   These don't provoke an error unfortunately, instead are silently treated
3037   as 'x'.  The following induces an error, until -std is added to get
3038   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3039   array size at least.  It's necessary to write '\x00'==0 to get something
3040   that's true only with -std.  */
3041int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3042
3043/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3044   inside strings and character constants.  */
3045#define FOO(x) 'x'
3046int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3047
3048int test (int i, double x);
3049struct s1 {int (*f) (int a);};
3050struct s2 {int (*f) (double a);};
3051int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3052int argc;
3053char **argv;
3054int
3055main ()
3056{
3057return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3058  ;
3059  return 0;
3060}
3061_ACEOF
3062for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3063	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3064do
3065  CC="$ac_save_CC $ac_arg"
3066  if ac_fn_c_try_compile "$LINENO"; then :
3067  ac_cv_prog_cc_c89=$ac_arg
3068fi
3069rm -f core conftest.err conftest.$ac_objext
3070  test "x$ac_cv_prog_cc_c89" != "xno" && break
3071done
3072rm -f conftest.$ac_ext
3073CC=$ac_save_CC
3074
3075fi
3076# AC_CACHE_VAL
3077case "x$ac_cv_prog_cc_c89" in
3078  x)
3079    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3080$as_echo "none needed" >&6; } ;;
3081  xno)
3082    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3083$as_echo "unsupported" >&6; } ;;
3084  *)
3085    CC="$CC $ac_cv_prog_cc_c89"
3086    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3087$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3088esac
3089if test "x$ac_cv_prog_cc_c89" != xno; then :
3090
3091fi
3092
3093ac_ext=c
3094ac_cpp='$CPP $CPPFLAGS'
3095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097ac_compiler_gnu=$ac_cv_c_compiler_gnu
3098
3099ac_ext=c
3100ac_cpp='$CPP $CPPFLAGS'
3101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3105$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3106if ${am_cv_prog_cc_c_o+:} false; then :
3107  $as_echo_n "(cached) " >&6
3108else
3109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110/* end confdefs.h.  */
3111
3112int
3113main ()
3114{
3115
3116  ;
3117  return 0;
3118}
3119_ACEOF
3120  # Make sure it works both with $CC and with simple cc.
3121  # Following AC_PROG_CC_C_O, we do the test twice because some
3122  # compilers refuse to overwrite an existing .o file with -o,
3123  # though they will create one.
3124  am_cv_prog_cc_c_o=yes
3125  for am_i in 1 2; do
3126    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3127   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3128   ac_status=$?
3129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130   (exit $ac_status); } \
3131         && test -f conftest2.$ac_objext; then
3132      : OK
3133    else
3134      am_cv_prog_cc_c_o=no
3135      break
3136    fi
3137  done
3138  rm -f core conftest*
3139  unset am_i
3140fi
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3142$as_echo "$am_cv_prog_cc_c_o" >&6; }
3143if test "$am_cv_prog_cc_c_o" != yes; then
3144   # Losing compiler, so override with the script.
3145   # FIXME: It is wrong to rewrite CC.
3146   # But if we don't then we get into trouble of one sort or another.
3147   # A longer-term fix would be to have automake use am__CC in this case,
3148   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3149   CC="$am_aux_dir/compile $CC"
3150fi
3151ac_ext=c
3152ac_cpp='$CPP $CPPFLAGS'
3153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3155ac_compiler_gnu=$ac_cv_c_compiler_gnu
3156
3157
3158
3159ac_ext=c
3160ac_cpp='$CPP $CPPFLAGS'
3161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3165$as_echo_n "checking how to run the C preprocessor... " >&6; }
3166# On Suns, sometimes $CPP names a directory.
3167if test -n "$CPP" && test -d "$CPP"; then
3168  CPP=
3169fi
3170if test -z "$CPP"; then
3171  if ${ac_cv_prog_CPP+:} false; then :
3172  $as_echo_n "(cached) " >&6
3173else
3174      # Double quotes because CPP needs to be expanded
3175    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3176    do
3177      ac_preproc_ok=false
3178for ac_c_preproc_warn_flag in '' yes
3179do
3180  # Use a header file that comes with gcc, so configuring glibc
3181  # with a fresh cross-compiler works.
3182  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3183  # <limits.h> exists even on freestanding compilers.
3184  # On the NeXT, cc -E runs the code through the compiler's parser,
3185  # not just through cpp. "Syntax error" is here to catch this case.
3186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187/* end confdefs.h.  */
3188#ifdef __STDC__
3189# include <limits.h>
3190#else
3191# include <assert.h>
3192#endif
3193		     Syntax error
3194_ACEOF
3195if ac_fn_c_try_cpp "$LINENO"; then :
3196
3197else
3198  # Broken: fails on valid input.
3199continue
3200fi
3201rm -f conftest.err conftest.i conftest.$ac_ext
3202
3203  # OK, works on sane cases.  Now check whether nonexistent headers
3204  # can be detected and how.
3205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206/* end confdefs.h.  */
3207#include <ac_nonexistent.h>
3208_ACEOF
3209if ac_fn_c_try_cpp "$LINENO"; then :
3210  # Broken: success on invalid input.
3211continue
3212else
3213  # Passes both tests.
3214ac_preproc_ok=:
3215break
3216fi
3217rm -f conftest.err conftest.i conftest.$ac_ext
3218
3219done
3220# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3221rm -f conftest.i conftest.err conftest.$ac_ext
3222if $ac_preproc_ok; then :
3223  break
3224fi
3225
3226    done
3227    ac_cv_prog_CPP=$CPP
3228
3229fi
3230  CPP=$ac_cv_prog_CPP
3231else
3232  ac_cv_prog_CPP=$CPP
3233fi
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3235$as_echo "$CPP" >&6; }
3236ac_preproc_ok=false
3237for ac_c_preproc_warn_flag in '' yes
3238do
3239  # Use a header file that comes with gcc, so configuring glibc
3240  # with a fresh cross-compiler works.
3241  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3242  # <limits.h> exists even on freestanding compilers.
3243  # On the NeXT, cc -E runs the code through the compiler's parser,
3244  # not just through cpp. "Syntax error" is here to catch this case.
3245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246/* end confdefs.h.  */
3247#ifdef __STDC__
3248# include <limits.h>
3249#else
3250# include <assert.h>
3251#endif
3252		     Syntax error
3253_ACEOF
3254if ac_fn_c_try_cpp "$LINENO"; then :
3255
3256else
3257  # Broken: fails on valid input.
3258continue
3259fi
3260rm -f conftest.err conftest.i conftest.$ac_ext
3261
3262  # OK, works on sane cases.  Now check whether nonexistent headers
3263  # can be detected and how.
3264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265/* end confdefs.h.  */
3266#include <ac_nonexistent.h>
3267_ACEOF
3268if ac_fn_c_try_cpp "$LINENO"; then :
3269  # Broken: success on invalid input.
3270continue
3271else
3272  # Passes both tests.
3273ac_preproc_ok=:
3274break
3275fi
3276rm -f conftest.err conftest.i conftest.$ac_ext
3277
3278done
3279# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3280rm -f conftest.i conftest.err conftest.$ac_ext
3281if $ac_preproc_ok; then :
3282
3283else
3284  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3287See \`config.log' for more details" "$LINENO" 5; }
3288fi
3289
3290ac_ext=c
3291ac_cpp='$CPP $CPPFLAGS'
3292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295
3296
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3298$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3299if ${ac_cv_path_GREP+:} false; then :
3300  $as_echo_n "(cached) " >&6
3301else
3302  if test -z "$GREP"; then
3303  ac_path_GREP_found=false
3304  # Loop through the user's path and test for each of PROGNAME-LIST
3305  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3307do
3308  IFS=$as_save_IFS
3309  test -z "$as_dir" && as_dir=.
3310    for ac_prog in grep ggrep; do
3311    for ac_exec_ext in '' $ac_executable_extensions; do
3312      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3313      as_fn_executable_p "$ac_path_GREP" || continue
3314# Check for GNU ac_path_GREP and select it if it is found.
3315  # Check for GNU $ac_path_GREP
3316case `"$ac_path_GREP" --version 2>&1` in
3317*GNU*)
3318  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3319*)
3320  ac_count=0
3321  $as_echo_n 0123456789 >"conftest.in"
3322  while :
3323  do
3324    cat "conftest.in" "conftest.in" >"conftest.tmp"
3325    mv "conftest.tmp" "conftest.in"
3326    cp "conftest.in" "conftest.nl"
3327    $as_echo 'GREP' >> "conftest.nl"
3328    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3329    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3330    as_fn_arith $ac_count + 1 && ac_count=$as_val
3331    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3332      # Best one so far, save it but keep looking for a better one
3333      ac_cv_path_GREP="$ac_path_GREP"
3334      ac_path_GREP_max=$ac_count
3335    fi
3336    # 10*(2^10) chars as input seems more than enough
3337    test $ac_count -gt 10 && break
3338  done
3339  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3340esac
3341
3342      $ac_path_GREP_found && break 3
3343    done
3344  done
3345  done
3346IFS=$as_save_IFS
3347  if test -z "$ac_cv_path_GREP"; then
3348    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3349  fi
3350else
3351  ac_cv_path_GREP=$GREP
3352fi
3353
3354fi
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3356$as_echo "$ac_cv_path_GREP" >&6; }
3357 GREP="$ac_cv_path_GREP"
3358
3359
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3361$as_echo_n "checking for egrep... " >&6; }
3362if ${ac_cv_path_EGREP+:} false; then :
3363  $as_echo_n "(cached) " >&6
3364else
3365  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3366   then ac_cv_path_EGREP="$GREP -E"
3367   else
3368     if test -z "$EGREP"; then
3369  ac_path_EGREP_found=false
3370  # Loop through the user's path and test for each of PROGNAME-LIST
3371  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3373do
3374  IFS=$as_save_IFS
3375  test -z "$as_dir" && as_dir=.
3376    for ac_prog in egrep; do
3377    for ac_exec_ext in '' $ac_executable_extensions; do
3378      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3379      as_fn_executable_p "$ac_path_EGREP" || continue
3380# Check for GNU ac_path_EGREP and select it if it is found.
3381  # Check for GNU $ac_path_EGREP
3382case `"$ac_path_EGREP" --version 2>&1` in
3383*GNU*)
3384  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3385*)
3386  ac_count=0
3387  $as_echo_n 0123456789 >"conftest.in"
3388  while :
3389  do
3390    cat "conftest.in" "conftest.in" >"conftest.tmp"
3391    mv "conftest.tmp" "conftest.in"
3392    cp "conftest.in" "conftest.nl"
3393    $as_echo 'EGREP' >> "conftest.nl"
3394    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3395    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3396    as_fn_arith $ac_count + 1 && ac_count=$as_val
3397    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3398      # Best one so far, save it but keep looking for a better one
3399      ac_cv_path_EGREP="$ac_path_EGREP"
3400      ac_path_EGREP_max=$ac_count
3401    fi
3402    # 10*(2^10) chars as input seems more than enough
3403    test $ac_count -gt 10 && break
3404  done
3405  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3406esac
3407
3408      $ac_path_EGREP_found && break 3
3409    done
3410  done
3411  done
3412IFS=$as_save_IFS
3413  if test -z "$ac_cv_path_EGREP"; then
3414    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3415  fi
3416else
3417  ac_cv_path_EGREP=$EGREP
3418fi
3419
3420   fi
3421fi
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3423$as_echo "$ac_cv_path_EGREP" >&6; }
3424 EGREP="$ac_cv_path_EGREP"
3425
3426
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3428$as_echo_n "checking for ANSI C header files... " >&6; }
3429if ${ac_cv_header_stdc+:} false; then :
3430  $as_echo_n "(cached) " >&6
3431else
3432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433/* end confdefs.h.  */
3434#include <stdlib.h>
3435#include <stdarg.h>
3436#include <string.h>
3437#include <float.h>
3438
3439int
3440main ()
3441{
3442
3443  ;
3444  return 0;
3445}
3446_ACEOF
3447if ac_fn_c_try_compile "$LINENO"; then :
3448  ac_cv_header_stdc=yes
3449else
3450  ac_cv_header_stdc=no
3451fi
3452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453
3454if test $ac_cv_header_stdc = yes; then
3455  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457/* end confdefs.h.  */
3458#include <string.h>
3459
3460_ACEOF
3461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3462  $EGREP "memchr" >/dev/null 2>&1; then :
3463
3464else
3465  ac_cv_header_stdc=no
3466fi
3467rm -f conftest*
3468
3469fi
3470
3471if test $ac_cv_header_stdc = yes; then
3472  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474/* end confdefs.h.  */
3475#include <stdlib.h>
3476
3477_ACEOF
3478if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3479  $EGREP "free" >/dev/null 2>&1; then :
3480
3481else
3482  ac_cv_header_stdc=no
3483fi
3484rm -f conftest*
3485
3486fi
3487
3488if test $ac_cv_header_stdc = yes; then
3489  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3490  if test "$cross_compiling" = yes; then :
3491  :
3492else
3493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494/* end confdefs.h.  */
3495#include <ctype.h>
3496#include <stdlib.h>
3497#if ((' ' & 0x0FF) == 0x020)
3498# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3499# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3500#else
3501# define ISLOWER(c) \
3502		   (('a' <= (c) && (c) <= 'i') \
3503		     || ('j' <= (c) && (c) <= 'r') \
3504		     || ('s' <= (c) && (c) <= 'z'))
3505# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3506#endif
3507
3508#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3509int
3510main ()
3511{
3512  int i;
3513  for (i = 0; i < 256; i++)
3514    if (XOR (islower (i), ISLOWER (i))
3515	|| toupper (i) != TOUPPER (i))
3516      return 2;
3517  return 0;
3518}
3519_ACEOF
3520if ac_fn_c_try_run "$LINENO"; then :
3521
3522else
3523  ac_cv_header_stdc=no
3524fi
3525rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3526  conftest.$ac_objext conftest.beam conftest.$ac_ext
3527fi
3528
3529fi
3530fi
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3532$as_echo "$ac_cv_header_stdc" >&6; }
3533if test $ac_cv_header_stdc = yes; then
3534
3535$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3536
3537fi
3538
3539# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3540for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3541		  inttypes.h stdint.h unistd.h
3542do :
3543  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3544ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3545"
3546if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3547  cat >>confdefs.h <<_ACEOF
3548#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3549_ACEOF
3550
3551fi
3552
3553done
3554
3555
3556
3557  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3558if test "x$ac_cv_header_minix_config_h" = xyes; then :
3559  MINIX=yes
3560else
3561  MINIX=
3562fi
3563
3564
3565  if test "$MINIX" = yes; then
3566
3567$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3568
3569
3570$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3571
3572
3573$as_echo "#define _MINIX 1" >>confdefs.h
3574
3575  fi
3576
3577
3578  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3579$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3580if ${ac_cv_safe_to_define___extensions__+:} false; then :
3581  $as_echo_n "(cached) " >&6
3582else
3583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584/* end confdefs.h.  */
3585
3586#         define __EXTENSIONS__ 1
3587          $ac_includes_default
3588int
3589main ()
3590{
3591
3592  ;
3593  return 0;
3594}
3595_ACEOF
3596if ac_fn_c_try_compile "$LINENO"; then :
3597  ac_cv_safe_to_define___extensions__=yes
3598else
3599  ac_cv_safe_to_define___extensions__=no
3600fi
3601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602fi
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3604$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3605  test $ac_cv_safe_to_define___extensions__ = yes &&
3606    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3607
3608  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3609
3610  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3611
3612  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3613
3614  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3615
3616
3617
3618am__api_version='1.15'
3619
3620# Find a good install program.  We prefer a C program (faster),
3621# so one script is as good as another.  But avoid the broken or
3622# incompatible versions:
3623# SysV /etc/install, /usr/sbin/install
3624# SunOS /usr/etc/install
3625# IRIX /sbin/install
3626# AIX /bin/install
3627# AmigaOS /C/install, which installs bootblocks on floppy discs
3628# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3629# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3630# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3631# OS/2's system install, which has a completely different semantic
3632# ./install, which can be erroneously created by make from ./install.sh.
3633# Reject install programs that cannot install multiple files.
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3635$as_echo_n "checking for a BSD-compatible install... " >&6; }
3636if test -z "$INSTALL"; then
3637if ${ac_cv_path_install+:} false; then :
3638  $as_echo_n "(cached) " >&6
3639else
3640  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641for as_dir in $PATH
3642do
3643  IFS=$as_save_IFS
3644  test -z "$as_dir" && as_dir=.
3645    # Account for people who put trailing slashes in PATH elements.
3646case $as_dir/ in #((
3647  ./ | .// | /[cC]/* | \
3648  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3649  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3650  /usr/ucb/* ) ;;
3651  *)
3652    # OSF1 and SCO ODT 3.0 have their own names for install.
3653    # Don't use installbsd from OSF since it installs stuff as root
3654    # by default.
3655    for ac_prog in ginstall scoinst install; do
3656      for ac_exec_ext in '' $ac_executable_extensions; do
3657	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3658	  if test $ac_prog = install &&
3659	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3660	    # AIX install.  It has an incompatible calling convention.
3661	    :
3662	  elif test $ac_prog = install &&
3663	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3664	    # program-specific install script used by HP pwplus--don't use.
3665	    :
3666	  else
3667	    rm -rf conftest.one conftest.two conftest.dir
3668	    echo one > conftest.one
3669	    echo two > conftest.two
3670	    mkdir conftest.dir
3671	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3672	      test -s conftest.one && test -s conftest.two &&
3673	      test -s conftest.dir/conftest.one &&
3674	      test -s conftest.dir/conftest.two
3675	    then
3676	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3677	      break 3
3678	    fi
3679	  fi
3680	fi
3681      done
3682    done
3683    ;;
3684esac
3685
3686  done
3687IFS=$as_save_IFS
3688
3689rm -rf conftest.one conftest.two conftest.dir
3690
3691fi
3692  if test "${ac_cv_path_install+set}" = set; then
3693    INSTALL=$ac_cv_path_install
3694  else
3695    # As a last resort, use the slow shell script.  Don't cache a
3696    # value for INSTALL within a source directory, because that will
3697    # break other packages using the cache if that directory is
3698    # removed, or if the value is a relative name.
3699    INSTALL=$ac_install_sh
3700  fi
3701fi
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3703$as_echo "$INSTALL" >&6; }
3704
3705# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3706# It thinks the first close brace ends the variable substitution.
3707test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3708
3709test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3710
3711test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3712
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3714$as_echo_n "checking whether build environment is sane... " >&6; }
3715# Reject unsafe characters in $srcdir or the absolute working directory
3716# name.  Accept space and tab only in the latter.
3717am_lf='
3718'
3719case `pwd` in
3720  *[\\\"\#\$\&\'\`$am_lf]*)
3721    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3722esac
3723case $srcdir in
3724  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3725    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3726esac
3727
3728# Do 'set' in a subshell so we don't clobber the current shell's
3729# arguments.  Must try -L first in case configure is actually a
3730# symlink; some systems play weird games with the mod time of symlinks
3731# (eg FreeBSD returns the mod time of the symlink's containing
3732# directory).
3733if (
3734   am_has_slept=no
3735   for am_try in 1 2; do
3736     echo "timestamp, slept: $am_has_slept" > conftest.file
3737     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3738     if test "$*" = "X"; then
3739	# -L didn't work.
3740	set X `ls -t "$srcdir/configure" conftest.file`
3741     fi
3742     if test "$*" != "X $srcdir/configure conftest.file" \
3743	&& test "$*" != "X conftest.file $srcdir/configure"; then
3744
3745	# If neither matched, then we have a broken ls.  This can happen
3746	# if, for instance, CONFIG_SHELL is bash and it inherits a
3747	# broken ls alias from the environment.  This has actually
3748	# happened.  Such a system could not be considered "sane".
3749	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3750  alias in your environment" "$LINENO" 5
3751     fi
3752     if test "$2" = conftest.file || test $am_try -eq 2; then
3753       break
3754     fi
3755     # Just in case.
3756     sleep 1
3757     am_has_slept=yes
3758   done
3759   test "$2" = conftest.file
3760   )
3761then
3762   # Ok.
3763   :
3764else
3765   as_fn_error $? "newly created file is older than distributed files!
3766Check your system clock" "$LINENO" 5
3767fi
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3769$as_echo "yes" >&6; }
3770# If we didn't sleep, we still need to ensure time stamps of config.status and
3771# generated files are strictly newer.
3772am_sleep_pid=
3773if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3774  ( sleep 1 ) &
3775  am_sleep_pid=$!
3776fi
3777
3778rm -f conftest.file
3779
3780test "$program_prefix" != NONE &&
3781  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3782# Use a double $ so make ignores it.
3783test "$program_suffix" != NONE &&
3784  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3785# Double any \ or $.
3786# By default was `s,x,x', remove it if useless.
3787ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3788program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3789
3790if test x"${MISSING+set}" != xset; then
3791  case $am_aux_dir in
3792  *\ * | *\	*)
3793    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3794  *)
3795    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3796  esac
3797fi
3798# Use eval to expand $SHELL
3799if eval "$MISSING --is-lightweight"; then
3800  am_missing_run="$MISSING "
3801else
3802  am_missing_run=
3803  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3804$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3805fi
3806
3807if test x"${install_sh+set}" != xset; then
3808  case $am_aux_dir in
3809  *\ * | *\	*)
3810    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3811  *)
3812    install_sh="\${SHELL} $am_aux_dir/install-sh"
3813  esac
3814fi
3815
3816# Installed binaries are usually stripped using 'strip' when the user
3817# run "make install-strip".  However 'strip' might not be the right
3818# tool to use in cross-compilation environments, therefore Automake
3819# will honor the 'STRIP' environment variable to overrule this program.
3820if test "$cross_compiling" != no; then
3821  if test -n "$ac_tool_prefix"; then
3822  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3823set dummy ${ac_tool_prefix}strip; ac_word=$2
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825$as_echo_n "checking for $ac_word... " >&6; }
3826if ${ac_cv_prog_STRIP+:} false; then :
3827  $as_echo_n "(cached) " >&6
3828else
3829  if test -n "$STRIP"; then
3830  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3831else
3832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833for as_dir in $PATH
3834do
3835  IFS=$as_save_IFS
3836  test -z "$as_dir" && as_dir=.
3837    for ac_exec_ext in '' $ac_executable_extensions; do
3838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3841    break 2
3842  fi
3843done
3844  done
3845IFS=$as_save_IFS
3846
3847fi
3848fi
3849STRIP=$ac_cv_prog_STRIP
3850if test -n "$STRIP"; then
3851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3852$as_echo "$STRIP" >&6; }
3853else
3854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855$as_echo "no" >&6; }
3856fi
3857
3858
3859fi
3860if test -z "$ac_cv_prog_STRIP"; then
3861  ac_ct_STRIP=$STRIP
3862  # Extract the first word of "strip", so it can be a program name with args.
3863set dummy strip; ac_word=$2
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865$as_echo_n "checking for $ac_word... " >&6; }
3866if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3867  $as_echo_n "(cached) " >&6
3868else
3869  if test -n "$ac_ct_STRIP"; then
3870  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3871else
3872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873for as_dir in $PATH
3874do
3875  IFS=$as_save_IFS
3876  test -z "$as_dir" && as_dir=.
3877    for ac_exec_ext in '' $ac_executable_extensions; do
3878  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879    ac_cv_prog_ac_ct_STRIP="strip"
3880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881    break 2
3882  fi
3883done
3884  done
3885IFS=$as_save_IFS
3886
3887fi
3888fi
3889ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3890if test -n "$ac_ct_STRIP"; then
3891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3892$as_echo "$ac_ct_STRIP" >&6; }
3893else
3894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895$as_echo "no" >&6; }
3896fi
3897
3898  if test "x$ac_ct_STRIP" = x; then
3899    STRIP=":"
3900  else
3901    case $cross_compiling:$ac_tool_warned in
3902yes:)
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3905ac_tool_warned=yes ;;
3906esac
3907    STRIP=$ac_ct_STRIP
3908  fi
3909else
3910  STRIP="$ac_cv_prog_STRIP"
3911fi
3912
3913fi
3914INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3915
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3917$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3918if test -z "$MKDIR_P"; then
3919  if ${ac_cv_path_mkdir+:} false; then :
3920  $as_echo_n "(cached) " >&6
3921else
3922  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3924do
3925  IFS=$as_save_IFS
3926  test -z "$as_dir" && as_dir=.
3927    for ac_prog in mkdir gmkdir; do
3928	 for ac_exec_ext in '' $ac_executable_extensions; do
3929	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3930	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3931	     'mkdir (GNU coreutils) '* | \
3932	     'mkdir (coreutils) '* | \
3933	     'mkdir (fileutils) '4.1*)
3934	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3935	       break 3;;
3936	   esac
3937	 done
3938       done
3939  done
3940IFS=$as_save_IFS
3941
3942fi
3943
3944  test -d ./--version && rmdir ./--version
3945  if test "${ac_cv_path_mkdir+set}" = set; then
3946    MKDIR_P="$ac_cv_path_mkdir -p"
3947  else
3948    # As a last resort, use the slow shell script.  Don't cache a
3949    # value for MKDIR_P within a source directory, because that will
3950    # break other packages using the cache if that directory is
3951    # removed, or if the value is a relative name.
3952    MKDIR_P="$ac_install_sh -d"
3953  fi
3954fi
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3956$as_echo "$MKDIR_P" >&6; }
3957
3958for ac_prog in gawk mawk nawk awk
3959do
3960  # Extract the first word of "$ac_prog", so it can be a program name with args.
3961set dummy $ac_prog; ac_word=$2
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963$as_echo_n "checking for $ac_word... " >&6; }
3964if ${ac_cv_prog_AWK+:} false; then :
3965  $as_echo_n "(cached) " >&6
3966else
3967  if test -n "$AWK"; then
3968  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3969else
3970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971for as_dir in $PATH
3972do
3973  IFS=$as_save_IFS
3974  test -z "$as_dir" && as_dir=.
3975    for ac_exec_ext in '' $ac_executable_extensions; do
3976  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977    ac_cv_prog_AWK="$ac_prog"
3978    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979    break 2
3980  fi
3981done
3982  done
3983IFS=$as_save_IFS
3984
3985fi
3986fi
3987AWK=$ac_cv_prog_AWK
3988if test -n "$AWK"; then
3989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3990$as_echo "$AWK" >&6; }
3991else
3992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993$as_echo "no" >&6; }
3994fi
3995
3996
3997  test -n "$AWK" && break
3998done
3999
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4001$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4002set x ${MAKE-make}
4003ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4004if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4005  $as_echo_n "(cached) " >&6
4006else
4007  cat >conftest.make <<\_ACEOF
4008SHELL = /bin/sh
4009all:
4010	@echo '@@@%%%=$(MAKE)=@@@%%%'
4011_ACEOF
4012# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4013case `${MAKE-make} -f conftest.make 2>/dev/null` in
4014  *@@@%%%=?*=@@@%%%*)
4015    eval ac_cv_prog_make_${ac_make}_set=yes;;
4016  *)
4017    eval ac_cv_prog_make_${ac_make}_set=no;;
4018esac
4019rm -f conftest.make
4020fi
4021if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4023$as_echo "yes" >&6; }
4024  SET_MAKE=
4025else
4026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027$as_echo "no" >&6; }
4028  SET_MAKE="MAKE=${MAKE-make}"
4029fi
4030
4031rm -rf .tst 2>/dev/null
4032mkdir .tst 2>/dev/null
4033if test -d .tst; then
4034  am__leading_dot=.
4035else
4036  am__leading_dot=_
4037fi
4038rmdir .tst 2>/dev/null
4039
4040DEPDIR="${am__leading_dot}deps"
4041
4042ac_config_commands="$ac_config_commands depfiles"
4043
4044
4045am_make=${MAKE-make}
4046cat > confinc << 'END'
4047am__doit:
4048	@echo this is the am__doit target
4049.PHONY: am__doit
4050END
4051# If we don't find an include directive, just comment out the code.
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4053$as_echo_n "checking for style of include used by $am_make... " >&6; }
4054am__include="#"
4055am__quote=
4056_am_result=none
4057# First try GNU make style include.
4058echo "include confinc" > confmf
4059# Ignore all kinds of additional output from 'make'.
4060case `$am_make -s -f confmf 2> /dev/null` in #(
4061*the\ am__doit\ target*)
4062  am__include=include
4063  am__quote=
4064  _am_result=GNU
4065  ;;
4066esac
4067# Now try BSD make style include.
4068if test "$am__include" = "#"; then
4069   echo '.include "confinc"' > confmf
4070   case `$am_make -s -f confmf 2> /dev/null` in #(
4071   *the\ am__doit\ target*)
4072     am__include=.include
4073     am__quote="\""
4074     _am_result=BSD
4075     ;;
4076   esac
4077fi
4078
4079
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4081$as_echo "$_am_result" >&6; }
4082rm -f confinc confmf
4083
4084# Check whether --enable-dependency-tracking was given.
4085if test "${enable_dependency_tracking+set}" = set; then :
4086  enableval=$enable_dependency_tracking;
4087fi
4088
4089if test "x$enable_dependency_tracking" != xno; then
4090  am_depcomp="$ac_aux_dir/depcomp"
4091  AMDEPBACKSLASH='\'
4092  am__nodep='_no'
4093fi
4094 if test "x$enable_dependency_tracking" != xno; then
4095  AMDEP_TRUE=
4096  AMDEP_FALSE='#'
4097else
4098  AMDEP_TRUE='#'
4099  AMDEP_FALSE=
4100fi
4101
4102
4103# Check whether --enable-silent-rules was given.
4104if test "${enable_silent_rules+set}" = set; then :
4105  enableval=$enable_silent_rules;
4106fi
4107
4108case $enable_silent_rules in # (((
4109  yes) AM_DEFAULT_VERBOSITY=0;;
4110   no) AM_DEFAULT_VERBOSITY=1;;
4111    *) AM_DEFAULT_VERBOSITY=1;;
4112esac
4113am_make=${MAKE-make}
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4115$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4116if ${am_cv_make_support_nested_variables+:} false; then :
4117  $as_echo_n "(cached) " >&6
4118else
4119  if $as_echo 'TRUE=$(BAR$(V))
4120BAR0=false
4121BAR1=true
4122V=1
4123am__doit:
4124	@$(TRUE)
4125.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4126  am_cv_make_support_nested_variables=yes
4127else
4128  am_cv_make_support_nested_variables=no
4129fi
4130fi
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4132$as_echo "$am_cv_make_support_nested_variables" >&6; }
4133if test $am_cv_make_support_nested_variables = yes; then
4134    AM_V='$(V)'
4135  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4136else
4137  AM_V=$AM_DEFAULT_VERBOSITY
4138  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4139fi
4140AM_BACKSLASH='\'
4141
4142if test "`cd $srcdir && pwd`" != "`pwd`"; then
4143  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4144  # is not polluted with repeated "-I."
4145  am__isrc=' -I$(srcdir)'
4146  # test to see if srcdir already configured
4147  if test -f $srcdir/config.status; then
4148    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4149  fi
4150fi
4151
4152# test whether we have cygpath
4153if test -z "$CYGPATH_W"; then
4154  if (cygpath --version) >/dev/null 2>/dev/null; then
4155    CYGPATH_W='cygpath -w'
4156  else
4157    CYGPATH_W=echo
4158  fi
4159fi
4160
4161
4162# Define the identity of the package.
4163 PACKAGE='libevdev'
4164 VERSION='1.5.9'
4165
4166
4167cat >>confdefs.h <<_ACEOF
4168#define PACKAGE "$PACKAGE"
4169_ACEOF
4170
4171
4172cat >>confdefs.h <<_ACEOF
4173#define VERSION "$VERSION"
4174_ACEOF
4175
4176# Some tools Automake needs.
4177
4178ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4179
4180
4181AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4182
4183
4184AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4185
4186
4187AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4188
4189
4190MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4191
4192# For better backward compatibility.  To be removed once Automake 1.9.x
4193# dies out for good.  For more background, see:
4194# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4195# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4196mkdir_p='$(MKDIR_P)'
4197
4198# We need awk for the "check" target (and possibly the TAP driver).  The
4199# system "awk" is bad on some platforms.
4200# Always define AMTAR for backward compatibility.  Yes, it's still used
4201# in the wild :-(  We should find a proper way to deprecate it ...
4202AMTAR='$${TAR-tar}'
4203
4204
4205# We'll loop over all known methods to create a tar archive until one works.
4206_am_tools='gnutar  pax cpio none'
4207
4208am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4209
4210
4211
4212
4213
4214depcc="$CC"   am_compiler_list=
4215
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4217$as_echo_n "checking dependency style of $depcc... " >&6; }
4218if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4219  $as_echo_n "(cached) " >&6
4220else
4221  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4222  # We make a subdir and do the tests there.  Otherwise we can end up
4223  # making bogus files that we don't know about and never remove.  For
4224  # instance it was reported that on HP-UX the gcc test will end up
4225  # making a dummy file named 'D' -- because '-MD' means "put the output
4226  # in D".
4227  rm -rf conftest.dir
4228  mkdir conftest.dir
4229  # Copy depcomp to subdir because otherwise we won't find it if we're
4230  # using a relative directory.
4231  cp "$am_depcomp" conftest.dir
4232  cd conftest.dir
4233  # We will build objects and dependencies in a subdirectory because
4234  # it helps to detect inapplicable dependency modes.  For instance
4235  # both Tru64's cc and ICC support -MD to output dependencies as a
4236  # side effect of compilation, but ICC will put the dependencies in
4237  # the current directory while Tru64 will put them in the object
4238  # directory.
4239  mkdir sub
4240
4241  am_cv_CC_dependencies_compiler_type=none
4242  if test "$am_compiler_list" = ""; then
4243     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4244  fi
4245  am__universal=false
4246  case " $depcc " in #(
4247     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4248     esac
4249
4250  for depmode in $am_compiler_list; do
4251    # Setup a source with many dependencies, because some compilers
4252    # like to wrap large dependency lists on column 80 (with \), and
4253    # we should not choose a depcomp mode which is confused by this.
4254    #
4255    # We need to recreate these files for each test, as the compiler may
4256    # overwrite some of them when testing with obscure command lines.
4257    # This happens at least with the AIX C compiler.
4258    : > sub/conftest.c
4259    for i in 1 2 3 4 5 6; do
4260      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4261      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4262      # Solaris 10 /bin/sh.
4263      echo '/* dummy */' > sub/conftst$i.h
4264    done
4265    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4266
4267    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4268    # mode.  It turns out that the SunPro C++ compiler does not properly
4269    # handle '-M -o', and we need to detect this.  Also, some Intel
4270    # versions had trouble with output in subdirs.
4271    am__obj=sub/conftest.${OBJEXT-o}
4272    am__minus_obj="-o $am__obj"
4273    case $depmode in
4274    gcc)
4275      # This depmode causes a compiler race in universal mode.
4276      test "$am__universal" = false || continue
4277      ;;
4278    nosideeffect)
4279      # After this tag, mechanisms are not by side-effect, so they'll
4280      # only be used when explicitly requested.
4281      if test "x$enable_dependency_tracking" = xyes; then
4282	continue
4283      else
4284	break
4285      fi
4286      ;;
4287    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4288      # This compiler won't grok '-c -o', but also, the minuso test has
4289      # not run yet.  These depmodes are late enough in the game, and
4290      # so weak that their functioning should not be impacted.
4291      am__obj=conftest.${OBJEXT-o}
4292      am__minus_obj=
4293      ;;
4294    none) break ;;
4295    esac
4296    if depmode=$depmode \
4297       source=sub/conftest.c object=$am__obj \
4298       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4299       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4300         >/dev/null 2>conftest.err &&
4301       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4302       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4303       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4304       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4305      # icc doesn't choke on unknown options, it will just issue warnings
4306      # or remarks (even with -Werror).  So we grep stderr for any message
4307      # that says an option was ignored or not supported.
4308      # When given -MP, icc 7.0 and 7.1 complain thusly:
4309      #   icc: Command line warning: ignoring option '-M'; no argument required
4310      # The diagnosis changed in icc 8.0:
4311      #   icc: Command line remark: option '-MP' not supported
4312      if (grep 'ignoring option' conftest.err ||
4313          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4314        am_cv_CC_dependencies_compiler_type=$depmode
4315        break
4316      fi
4317    fi
4318  done
4319
4320  cd ..
4321  rm -rf conftest.dir
4322else
4323  am_cv_CC_dependencies_compiler_type=none
4324fi
4325
4326fi
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4328$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4329CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4330
4331 if
4332  test "x$enable_dependency_tracking" != xno \
4333  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4334  am__fastdepCC_TRUE=
4335  am__fastdepCC_FALSE='#'
4336else
4337  am__fastdepCC_TRUE='#'
4338  am__fastdepCC_FALSE=
4339fi
4340
4341
4342
4343# POSIX will say in a future version that running "rm -f" with no argument
4344# is OK; and we want to be able to make that assumption in our Makefile
4345# recipes.  So use an aggressive probe to check that the usage we want is
4346# actually supported "in the wild" to an acceptable degree.
4347# See automake bug#10828.
4348# To make any issue more visible, cause the running configure to be aborted
4349# by default if the 'rm' program in use doesn't match our expectations; the
4350# user can still override this though.
4351if rm -f && rm -fr && rm -rf; then : OK; else
4352  cat >&2 <<'END'
4353Oops!
4354
4355Your 'rm' program seems unable to run without file operands specified
4356on the command line, even when the '-f' option is present.  This is contrary
4357to the behaviour of most rm programs out there, and not conforming with
4358the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4359
4360Please tell bug-automake@gnu.org about your system, including the value
4361of your $PATH and any error possibly output before this message.  This
4362can help us improve future automake versions.
4363
4364END
4365  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4366    echo 'Configuration will proceed anyway, since you have set the' >&2
4367    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4368    echo >&2
4369  else
4370    cat >&2 <<'END'
4371Aborting the configuration process, to ensure you take notice of the issue.
4372
4373You can download and install GNU coreutils to get an 'rm' implementation
4374that behaves properly: <http://www.gnu.org/software/coreutils/>.
4375
4376If you want to complete the configuration process using your problematic
4377'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4378to "yes", and re-run configure.
4379
4380END
4381    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4382  fi
4383fi
4384
4385
4386# Before making a release, the LIBEVDEV_LT_VERSION string should be
4387# modified.
4388# The string is of the form C:R:A.
4389# - If interfaces have been changed or added, but binary compatibility has
4390#   been preserved, change to C+1:0:A+1
4391# - If binary compatibility has been broken (eg removed or changed interfaces)
4392#   change to C+1:0:0
4393# - If the interface is the same as the previous version, change to C:R+1:A
4394LIBEVDEV_LT_VERSION=3:21:1
4395
4396
4397
4398# Check whether --enable-silent-rules was given.
4399if test "${enable_silent_rules+set}" = set; then :
4400  enableval=$enable_silent_rules;
4401fi
4402
4403case $enable_silent_rules in # (((
4404  yes) AM_DEFAULT_VERBOSITY=0;;
4405   no) AM_DEFAULT_VERBOSITY=1;;
4406    *) AM_DEFAULT_VERBOSITY=0;;
4407esac
4408am_make=${MAKE-make}
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4410$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4411if ${am_cv_make_support_nested_variables+:} false; then :
4412  $as_echo_n "(cached) " >&6
4413else
4414  if $as_echo 'TRUE=$(BAR$(V))
4415BAR0=false
4416BAR1=true
4417V=1
4418am__doit:
4419	@$(TRUE)
4420.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4421  am_cv_make_support_nested_variables=yes
4422else
4423  am_cv_make_support_nested_variables=no
4424fi
4425fi
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4427$as_echo "$am_cv_make_support_nested_variables" >&6; }
4428if test $am_cv_make_support_nested_variables = yes; then
4429    AM_V='$(V)'
4430  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4431else
4432  AM_V=$AM_DEFAULT_VERBOSITY
4433  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4434fi
4435AM_BACKSLASH='\'
4436
4437
4438# Check for programs
4439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4440$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4441if ${ac_cv_prog_cc_c99+:} false; then :
4442  $as_echo_n "(cached) " >&6
4443else
4444  ac_cv_prog_cc_c99=no
4445ac_save_CC=$CC
4446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447/* end confdefs.h.  */
4448#include <stdarg.h>
4449#include <stdbool.h>
4450#include <stdlib.h>
4451#include <wchar.h>
4452#include <stdio.h>
4453
4454// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4455#define debug(...) fprintf (stderr, __VA_ARGS__)
4456#define showlist(...) puts (#__VA_ARGS__)
4457#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4458static void
4459test_varargs_macros (void)
4460{
4461  int x = 1234;
4462  int y = 5678;
4463  debug ("Flag");
4464  debug ("X = %d\n", x);
4465  showlist (The first, second, and third items.);
4466  report (x>y, "x is %d but y is %d", x, y);
4467}
4468
4469// Check long long types.
4470#define BIG64 18446744073709551615ull
4471#define BIG32 4294967295ul
4472#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4473#if !BIG_OK
4474  your preprocessor is broken;
4475#endif
4476#if BIG_OK
4477#else
4478  your preprocessor is broken;
4479#endif
4480static long long int bignum = -9223372036854775807LL;
4481static unsigned long long int ubignum = BIG64;
4482
4483struct incomplete_array
4484{
4485  int datasize;
4486  double data[];
4487};
4488
4489struct named_init {
4490  int number;
4491  const wchar_t *name;
4492  double average;
4493};
4494
4495typedef const char *ccp;
4496
4497static inline int
4498test_restrict (ccp restrict text)
4499{
4500  // See if C++-style comments work.
4501  // Iterate through items via the restricted pointer.
4502  // Also check for declarations in for loops.
4503  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4504    continue;
4505  return 0;
4506}
4507
4508// Check varargs and va_copy.
4509static void
4510test_varargs (const char *format, ...)
4511{
4512  va_list args;
4513  va_start (args, format);
4514  va_list args_copy;
4515  va_copy (args_copy, args);
4516
4517  const char *str;
4518  int number;
4519  float fnumber;
4520
4521  while (*format)
4522    {
4523      switch (*format++)
4524	{
4525	case 's': // string
4526	  str = va_arg (args_copy, const char *);
4527	  break;
4528	case 'd': // int
4529	  number = va_arg (args_copy, int);
4530	  break;
4531	case 'f': // float
4532	  fnumber = va_arg (args_copy, double);
4533	  break;
4534	default:
4535	  break;
4536	}
4537    }
4538  va_end (args_copy);
4539  va_end (args);
4540}
4541
4542int
4543main ()
4544{
4545
4546  // Check bool.
4547  _Bool success = false;
4548
4549  // Check restrict.
4550  if (test_restrict ("String literal") == 0)
4551    success = true;
4552  char *restrict newvar = "Another string";
4553
4554  // Check varargs.
4555  test_varargs ("s, d' f .", "string", 65, 34.234);
4556  test_varargs_macros ();
4557
4558  // Check flexible array members.
4559  struct incomplete_array *ia =
4560    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4561  ia->datasize = 10;
4562  for (int i = 0; i < ia->datasize; ++i)
4563    ia->data[i] = i * 1.234;
4564
4565  // Check named initializers.
4566  struct named_init ni = {
4567    .number = 34,
4568    .name = L"Test wide string",
4569    .average = 543.34343,
4570  };
4571
4572  ni.number = 58;
4573
4574  int dynamic_array[ni.number];
4575  dynamic_array[ni.number - 1] = 543;
4576
4577  // work around unused variable warnings
4578  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4579	  || dynamic_array[ni.number - 1] != 543);
4580
4581  ;
4582  return 0;
4583}
4584_ACEOF
4585for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4586do
4587  CC="$ac_save_CC $ac_arg"
4588  if ac_fn_c_try_compile "$LINENO"; then :
4589  ac_cv_prog_cc_c99=$ac_arg
4590fi
4591rm -f core conftest.err conftest.$ac_objext
4592  test "x$ac_cv_prog_cc_c99" != "xno" && break
4593done
4594rm -f conftest.$ac_ext
4595CC=$ac_save_CC
4596
4597fi
4598# AC_CACHE_VAL
4599case "x$ac_cv_prog_cc_c99" in
4600  x)
4601    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4602$as_echo "none needed" >&6; } ;;
4603  xno)
4604    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4605$as_echo "unsupported" >&6; } ;;
4606  *)
4607    CC="$CC $ac_cv_prog_cc_c99"
4608    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4609$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4610esac
4611if test "x$ac_cv_prog_cc_c99" != xno; then :
4612
4613fi
4614
4615
4616
4617# Initialize libtool
4618
4619case `pwd` in
4620  *\ * | *\	*)
4621    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4622$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4623esac
4624
4625
4626
4627macro_version='2.4.6'
4628macro_revision='2.4.6'
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642ltmain=$ac_aux_dir/ltmain.sh
4643
4644# Make sure we can run config.sub.
4645$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4646  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4647
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4649$as_echo_n "checking build system type... " >&6; }
4650if ${ac_cv_build+:} false; then :
4651  $as_echo_n "(cached) " >&6
4652else
4653  ac_build_alias=$build_alias
4654test "x$ac_build_alias" = x &&
4655  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4656test "x$ac_build_alias" = x &&
4657  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4658ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4659  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4660
4661fi
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4663$as_echo "$ac_cv_build" >&6; }
4664case $ac_cv_build in
4665*-*-*) ;;
4666*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4667esac
4668build=$ac_cv_build
4669ac_save_IFS=$IFS; IFS='-'
4670set x $ac_cv_build
4671shift
4672build_cpu=$1
4673build_vendor=$2
4674shift; shift
4675# Remember, the first character of IFS is used to create $*,
4676# except with old shells:
4677build_os=$*
4678IFS=$ac_save_IFS
4679case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4680
4681
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4683$as_echo_n "checking host system type... " >&6; }
4684if ${ac_cv_host+:} false; then :
4685  $as_echo_n "(cached) " >&6
4686else
4687  if test "x$host_alias" = x; then
4688  ac_cv_host=$ac_cv_build
4689else
4690  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4691    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4692fi
4693
4694fi
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4696$as_echo "$ac_cv_host" >&6; }
4697case $ac_cv_host in
4698*-*-*) ;;
4699*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4700esac
4701host=$ac_cv_host
4702ac_save_IFS=$IFS; IFS='-'
4703set x $ac_cv_host
4704shift
4705host_cpu=$1
4706host_vendor=$2
4707shift; shift
4708# Remember, the first character of IFS is used to create $*,
4709# except with old shells:
4710host_os=$*
4711IFS=$ac_save_IFS
4712case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4713
4714
4715# Backslashify metacharacters that are still active within
4716# double-quoted strings.
4717sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4718
4719# Same as above, but do not quote variable references.
4720double_quote_subst='s/\(["`\\]\)/\\\1/g'
4721
4722# Sed substitution to delay expansion of an escaped shell variable in a
4723# double_quote_subst'ed string.
4724delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4725
4726# Sed substitution to delay expansion of an escaped single quote.
4727delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4728
4729# Sed substitution to avoid accidental globbing in evaled expressions
4730no_glob_subst='s/\*/\\\*/g'
4731
4732ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4733ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4734ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4735
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4737$as_echo_n "checking how to print strings... " >&6; }
4738# Test print first, because it will be a builtin if present.
4739if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4740   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4741  ECHO='print -r --'
4742elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4743  ECHO='printf %s\n'
4744else
4745  # Use this function as a fallback that always works.
4746  func_fallback_echo ()
4747  {
4748    eval 'cat <<_LTECHO_EOF
4749$1
4750_LTECHO_EOF'
4751  }
4752  ECHO='func_fallback_echo'
4753fi
4754
4755# func_echo_all arg...
4756# Invoke $ECHO with all args, space-separated.
4757func_echo_all ()
4758{
4759    $ECHO ""
4760}
4761
4762case $ECHO in
4763  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4764$as_echo "printf" >&6; } ;;
4765  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4766$as_echo "print -r" >&6; } ;;
4767  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4768$as_echo "cat" >&6; } ;;
4769esac
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4785$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4786if ${ac_cv_path_SED+:} false; then :
4787  $as_echo_n "(cached) " >&6
4788else
4789            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4790     for ac_i in 1 2 3 4 5 6 7; do
4791       ac_script="$ac_script$as_nl$ac_script"
4792     done
4793     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4794     { ac_script=; unset ac_script;}
4795     if test -z "$SED"; then
4796  ac_path_SED_found=false
4797  # Loop through the user's path and test for each of PROGNAME-LIST
4798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799for as_dir in $PATH
4800do
4801  IFS=$as_save_IFS
4802  test -z "$as_dir" && as_dir=.
4803    for ac_prog in sed gsed; do
4804    for ac_exec_ext in '' $ac_executable_extensions; do
4805      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4806      as_fn_executable_p "$ac_path_SED" || continue
4807# Check for GNU ac_path_SED and select it if it is found.
4808  # Check for GNU $ac_path_SED
4809case `"$ac_path_SED" --version 2>&1` in
4810*GNU*)
4811  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4812*)
4813  ac_count=0
4814  $as_echo_n 0123456789 >"conftest.in"
4815  while :
4816  do
4817    cat "conftest.in" "conftest.in" >"conftest.tmp"
4818    mv "conftest.tmp" "conftest.in"
4819    cp "conftest.in" "conftest.nl"
4820    $as_echo '' >> "conftest.nl"
4821    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4822    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4823    as_fn_arith $ac_count + 1 && ac_count=$as_val
4824    if test $ac_count -gt ${ac_path_SED_max-0}; then
4825      # Best one so far, save it but keep looking for a better one
4826      ac_cv_path_SED="$ac_path_SED"
4827      ac_path_SED_max=$ac_count
4828    fi
4829    # 10*(2^10) chars as input seems more than enough
4830    test $ac_count -gt 10 && break
4831  done
4832  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4833esac
4834
4835      $ac_path_SED_found && break 3
4836    done
4837  done
4838  done
4839IFS=$as_save_IFS
4840  if test -z "$ac_cv_path_SED"; then
4841    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4842  fi
4843else
4844  ac_cv_path_SED=$SED
4845fi
4846
4847fi
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4849$as_echo "$ac_cv_path_SED" >&6; }
4850 SED="$ac_cv_path_SED"
4851  rm -f conftest.sed
4852
4853test -z "$SED" && SED=sed
4854Xsed="$SED -e 1s/^X//"
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4867$as_echo_n "checking for fgrep... " >&6; }
4868if ${ac_cv_path_FGREP+:} false; then :
4869  $as_echo_n "(cached) " >&6
4870else
4871  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4872   then ac_cv_path_FGREP="$GREP -F"
4873   else
4874     if test -z "$FGREP"; then
4875  ac_path_FGREP_found=false
4876  # Loop through the user's path and test for each of PROGNAME-LIST
4877  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4879do
4880  IFS=$as_save_IFS
4881  test -z "$as_dir" && as_dir=.
4882    for ac_prog in fgrep; do
4883    for ac_exec_ext in '' $ac_executable_extensions; do
4884      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4885      as_fn_executable_p "$ac_path_FGREP" || continue
4886# Check for GNU ac_path_FGREP and select it if it is found.
4887  # Check for GNU $ac_path_FGREP
4888case `"$ac_path_FGREP" --version 2>&1` in
4889*GNU*)
4890  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4891*)
4892  ac_count=0
4893  $as_echo_n 0123456789 >"conftest.in"
4894  while :
4895  do
4896    cat "conftest.in" "conftest.in" >"conftest.tmp"
4897    mv "conftest.tmp" "conftest.in"
4898    cp "conftest.in" "conftest.nl"
4899    $as_echo 'FGREP' >> "conftest.nl"
4900    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4901    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4902    as_fn_arith $ac_count + 1 && ac_count=$as_val
4903    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4904      # Best one so far, save it but keep looking for a better one
4905      ac_cv_path_FGREP="$ac_path_FGREP"
4906      ac_path_FGREP_max=$ac_count
4907    fi
4908    # 10*(2^10) chars as input seems more than enough
4909    test $ac_count -gt 10 && break
4910  done
4911  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4912esac
4913
4914      $ac_path_FGREP_found && break 3
4915    done
4916  done
4917  done
4918IFS=$as_save_IFS
4919  if test -z "$ac_cv_path_FGREP"; then
4920    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4921  fi
4922else
4923  ac_cv_path_FGREP=$FGREP
4924fi
4925
4926   fi
4927fi
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4929$as_echo "$ac_cv_path_FGREP" >&6; }
4930 FGREP="$ac_cv_path_FGREP"
4931
4932
4933test -z "$GREP" && GREP=grep
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953# Check whether --with-gnu-ld was given.
4954if test "${with_gnu_ld+set}" = set; then :
4955  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4956else
4957  with_gnu_ld=no
4958fi
4959
4960ac_prog=ld
4961if test yes = "$GCC"; then
4962  # Check if gcc -print-prog-name=ld gives a path.
4963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4964$as_echo_n "checking for ld used by $CC... " >&6; }
4965  case $host in
4966  *-*-mingw*)
4967    # gcc leaves a trailing carriage return, which upsets mingw
4968    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4969  *)
4970    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4971  esac
4972  case $ac_prog in
4973    # Accept absolute paths.
4974    [\\/]* | ?:[\\/]*)
4975      re_direlt='/[^/][^/]*/\.\./'
4976      # Canonicalize the pathname of ld
4977      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4978      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4979	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4980      done
4981      test -z "$LD" && LD=$ac_prog
4982      ;;
4983  "")
4984    # If it fails, then pretend we aren't using GCC.
4985    ac_prog=ld
4986    ;;
4987  *)
4988    # If it is relative, then search for the first ld in PATH.
4989    with_gnu_ld=unknown
4990    ;;
4991  esac
4992elif test yes = "$with_gnu_ld"; then
4993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4994$as_echo_n "checking for GNU ld... " >&6; }
4995else
4996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4997$as_echo_n "checking for non-GNU ld... " >&6; }
4998fi
4999if ${lt_cv_path_LD+:} false; then :
5000  $as_echo_n "(cached) " >&6
5001else
5002  if test -z "$LD"; then
5003  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5004  for ac_dir in $PATH; do
5005    IFS=$lt_save_ifs
5006    test -z "$ac_dir" && ac_dir=.
5007    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5008      lt_cv_path_LD=$ac_dir/$ac_prog
5009      # Check to see if the program is GNU ld.  I'd rather use --version,
5010      # but apparently some variants of GNU ld only accept -v.
5011      # Break only if it was the GNU/non-GNU ld that we prefer.
5012      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5013      *GNU* | *'with BFD'*)
5014	test no != "$with_gnu_ld" && break
5015	;;
5016      *)
5017	test yes != "$with_gnu_ld" && break
5018	;;
5019      esac
5020    fi
5021  done
5022  IFS=$lt_save_ifs
5023else
5024  lt_cv_path_LD=$LD # Let the user override the test with a path.
5025fi
5026fi
5027
5028LD=$lt_cv_path_LD
5029if test -n "$LD"; then
5030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5031$as_echo "$LD" >&6; }
5032else
5033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034$as_echo "no" >&6; }
5035fi
5036test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5038$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5039if ${lt_cv_prog_gnu_ld+:} false; then :
5040  $as_echo_n "(cached) " >&6
5041else
5042  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5043case `$LD -v 2>&1 </dev/null` in
5044*GNU* | *'with BFD'*)
5045  lt_cv_prog_gnu_ld=yes
5046  ;;
5047*)
5048  lt_cv_prog_gnu_ld=no
5049  ;;
5050esac
5051fi
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5053$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5054with_gnu_ld=$lt_cv_prog_gnu_ld
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5065$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5066if ${lt_cv_path_NM+:} false; then :
5067  $as_echo_n "(cached) " >&6
5068else
5069  if test -n "$NM"; then
5070  # Let the user override the test.
5071  lt_cv_path_NM=$NM
5072else
5073  lt_nm_to_check=${ac_tool_prefix}nm
5074  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5075    lt_nm_to_check="$lt_nm_to_check nm"
5076  fi
5077  for lt_tmp_nm in $lt_nm_to_check; do
5078    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5079    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5080      IFS=$lt_save_ifs
5081      test -z "$ac_dir" && ac_dir=.
5082      tmp_nm=$ac_dir/$lt_tmp_nm
5083      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5084	# Check to see if the nm accepts a BSD-compat flag.
5085	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5086	#   nm: unknown option "B" ignored
5087	# Tru64's nm complains that /dev/null is an invalid object file
5088	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5089	case $build_os in
5090	mingw*) lt_bad_file=conftest.nm/nofile ;;
5091	*) lt_bad_file=/dev/null ;;
5092	esac
5093	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5094	*$lt_bad_file* | *'Invalid file or object type'*)
5095	  lt_cv_path_NM="$tmp_nm -B"
5096	  break 2
5097	  ;;
5098	*)
5099	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5100	  */dev/null*)
5101	    lt_cv_path_NM="$tmp_nm -p"
5102	    break 2
5103	    ;;
5104	  *)
5105	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5106	    continue # so that we can try to find one that supports BSD flags
5107	    ;;
5108	  esac
5109	  ;;
5110	esac
5111      fi
5112    done
5113    IFS=$lt_save_ifs
5114  done
5115  : ${lt_cv_path_NM=no}
5116fi
5117fi
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5119$as_echo "$lt_cv_path_NM" >&6; }
5120if test no != "$lt_cv_path_NM"; then
5121  NM=$lt_cv_path_NM
5122else
5123  # Didn't find any BSD compatible name lister, look for dumpbin.
5124  if test -n "$DUMPBIN"; then :
5125    # Let the user override the test.
5126  else
5127    if test -n "$ac_tool_prefix"; then
5128  for ac_prog in dumpbin "link -dump"
5129  do
5130    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5131set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133$as_echo_n "checking for $ac_word... " >&6; }
5134if ${ac_cv_prog_DUMPBIN+:} false; then :
5135  $as_echo_n "(cached) " >&6
5136else
5137  if test -n "$DUMPBIN"; then
5138  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5139else
5140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141for as_dir in $PATH
5142do
5143  IFS=$as_save_IFS
5144  test -z "$as_dir" && as_dir=.
5145    for ac_exec_ext in '' $ac_executable_extensions; do
5146  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5147    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149    break 2
5150  fi
5151done
5152  done
5153IFS=$as_save_IFS
5154
5155fi
5156fi
5157DUMPBIN=$ac_cv_prog_DUMPBIN
5158if test -n "$DUMPBIN"; then
5159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5160$as_echo "$DUMPBIN" >&6; }
5161else
5162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163$as_echo "no" >&6; }
5164fi
5165
5166
5167    test -n "$DUMPBIN" && break
5168  done
5169fi
5170if test -z "$DUMPBIN"; then
5171  ac_ct_DUMPBIN=$DUMPBIN
5172  for ac_prog in dumpbin "link -dump"
5173do
5174  # Extract the first word of "$ac_prog", so it can be a program name with args.
5175set dummy $ac_prog; ac_word=$2
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177$as_echo_n "checking for $ac_word... " >&6; }
5178if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5179  $as_echo_n "(cached) " >&6
5180else
5181  if test -n "$ac_ct_DUMPBIN"; then
5182  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5183else
5184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185for as_dir in $PATH
5186do
5187  IFS=$as_save_IFS
5188  test -z "$as_dir" && as_dir=.
5189    for ac_exec_ext in '' $ac_executable_extensions; do
5190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5191    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193    break 2
5194  fi
5195done
5196  done
5197IFS=$as_save_IFS
5198
5199fi
5200fi
5201ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5202if test -n "$ac_ct_DUMPBIN"; then
5203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5204$as_echo "$ac_ct_DUMPBIN" >&6; }
5205else
5206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207$as_echo "no" >&6; }
5208fi
5209
5210
5211  test -n "$ac_ct_DUMPBIN" && break
5212done
5213
5214  if test "x$ac_ct_DUMPBIN" = x; then
5215    DUMPBIN=":"
5216  else
5217    case $cross_compiling:$ac_tool_warned in
5218yes:)
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221ac_tool_warned=yes ;;
5222esac
5223    DUMPBIN=$ac_ct_DUMPBIN
5224  fi
5225fi
5226
5227    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5228    *COFF*)
5229      DUMPBIN="$DUMPBIN -symbols -headers"
5230      ;;
5231    *)
5232      DUMPBIN=:
5233      ;;
5234    esac
5235  fi
5236
5237  if test : != "$DUMPBIN"; then
5238    NM=$DUMPBIN
5239  fi
5240fi
5241test -z "$NM" && NM=nm
5242
5243
5244
5245
5246
5247
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5249$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5250if ${lt_cv_nm_interface+:} false; then :
5251  $as_echo_n "(cached) " >&6
5252else
5253  lt_cv_nm_interface="BSD nm"
5254  echo "int some_variable = 0;" > conftest.$ac_ext
5255  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5256  (eval "$ac_compile" 2>conftest.err)
5257  cat conftest.err >&5
5258  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5259  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5260  cat conftest.err >&5
5261  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5262  cat conftest.out >&5
5263  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5264    lt_cv_nm_interface="MS dumpbin"
5265  fi
5266  rm -f conftest*
5267fi
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5269$as_echo "$lt_cv_nm_interface" >&6; }
5270
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5272$as_echo_n "checking whether ln -s works... " >&6; }
5273LN_S=$as_ln_s
5274if test "$LN_S" = "ln -s"; then
5275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5276$as_echo "yes" >&6; }
5277else
5278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5279$as_echo "no, using $LN_S" >&6; }
5280fi
5281
5282# find the maximum length of command line arguments
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5284$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5285if ${lt_cv_sys_max_cmd_len+:} false; then :
5286  $as_echo_n "(cached) " >&6
5287else
5288    i=0
5289  teststring=ABCD
5290
5291  case $build_os in
5292  msdosdjgpp*)
5293    # On DJGPP, this test can blow up pretty badly due to problems in libc
5294    # (any single argument exceeding 2000 bytes causes a buffer overrun
5295    # during glob expansion).  Even if it were fixed, the result of this
5296    # check would be larger than it should be.
5297    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5298    ;;
5299
5300  gnu*)
5301    # Under GNU Hurd, this test is not required because there is
5302    # no limit to the length of command line arguments.
5303    # Libtool will interpret -1 as no limit whatsoever
5304    lt_cv_sys_max_cmd_len=-1;
5305    ;;
5306
5307  cygwin* | mingw* | cegcc*)
5308    # On Win9x/ME, this test blows up -- it succeeds, but takes
5309    # about 5 minutes as the teststring grows exponentially.
5310    # Worse, since 9x/ME are not pre-emptively multitasking,
5311    # you end up with a "frozen" computer, even though with patience
5312    # the test eventually succeeds (with a max line length of 256k).
5313    # Instead, let's just punt: use the minimum linelength reported by
5314    # all of the supported platforms: 8192 (on NT/2K/XP).
5315    lt_cv_sys_max_cmd_len=8192;
5316    ;;
5317
5318  mint*)
5319    # On MiNT this can take a long time and run out of memory.
5320    lt_cv_sys_max_cmd_len=8192;
5321    ;;
5322
5323  amigaos*)
5324    # On AmigaOS with pdksh, this test takes hours, literally.
5325    # So we just punt and use a minimum line length of 8192.
5326    lt_cv_sys_max_cmd_len=8192;
5327    ;;
5328
5329  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5330    # This has been around since 386BSD, at least.  Likely further.
5331    if test -x /sbin/sysctl; then
5332      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5333    elif test -x /usr/sbin/sysctl; then
5334      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5335    else
5336      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5337    fi
5338    # And add a safety zone
5339    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5340    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5341    ;;
5342
5343  interix*)
5344    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5345    lt_cv_sys_max_cmd_len=196608
5346    ;;
5347
5348  os2*)
5349    # The test takes a long time on OS/2.
5350    lt_cv_sys_max_cmd_len=8192
5351    ;;
5352
5353  osf*)
5354    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5355    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5356    # nice to cause kernel panics so lets avoid the loop below.
5357    # First set a reasonable default.
5358    lt_cv_sys_max_cmd_len=16384
5359    #
5360    if test -x /sbin/sysconfig; then
5361      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5362        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5363      esac
5364    fi
5365    ;;
5366  sco3.2v5*)
5367    lt_cv_sys_max_cmd_len=102400
5368    ;;
5369  sysv5* | sco5v6* | sysv4.2uw2*)
5370    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5371    if test -n "$kargmax"; then
5372      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5373    else
5374      lt_cv_sys_max_cmd_len=32768
5375    fi
5376    ;;
5377  *)
5378    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5379    if test -n "$lt_cv_sys_max_cmd_len" && \
5380       test undefined != "$lt_cv_sys_max_cmd_len"; then
5381      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5382      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5383    else
5384      # Make teststring a little bigger before we do anything with it.
5385      # a 1K string should be a reasonable start.
5386      for i in 1 2 3 4 5 6 7 8; do
5387        teststring=$teststring$teststring
5388      done
5389      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5390      # If test is not a shell built-in, we'll probably end up computing a
5391      # maximum length that is only half of the actual maximum length, but
5392      # we can't tell.
5393      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5394	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5395	      test 17 != "$i" # 1/2 MB should be enough
5396      do
5397        i=`expr $i + 1`
5398        teststring=$teststring$teststring
5399      done
5400      # Only check the string length outside the loop.
5401      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5402      teststring=
5403      # Add a significant safety factor because C++ compilers can tack on
5404      # massive amounts of additional arguments before passing them to the
5405      # linker.  It appears as though 1/2 is a usable value.
5406      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5407    fi
5408    ;;
5409  esac
5410
5411fi
5412
5413if test -n "$lt_cv_sys_max_cmd_len"; then
5414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5415$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5416else
5417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5418$as_echo "none" >&6; }
5419fi
5420max_cmd_len=$lt_cv_sys_max_cmd_len
5421
5422
5423
5424
5425
5426
5427: ${CP="cp -f"}
5428: ${MV="mv -f"}
5429: ${RM="rm -f"}
5430
5431if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5432  lt_unset=unset
5433else
5434  lt_unset=false
5435fi
5436
5437
5438
5439
5440
5441# test EBCDIC or ASCII
5442case `echo X|tr X '\101'` in
5443 A) # ASCII based system
5444    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5445  lt_SP2NL='tr \040 \012'
5446  lt_NL2SP='tr \015\012 \040\040'
5447  ;;
5448 *) # EBCDIC based system
5449  lt_SP2NL='tr \100 \n'
5450  lt_NL2SP='tr \r\n \100\100'
5451  ;;
5452esac
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5463$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5464if ${lt_cv_to_host_file_cmd+:} false; then :
5465  $as_echo_n "(cached) " >&6
5466else
5467  case $host in
5468  *-*-mingw* )
5469    case $build in
5470      *-*-mingw* ) # actually msys
5471        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5472        ;;
5473      *-*-cygwin* )
5474        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5475        ;;
5476      * ) # otherwise, assume *nix
5477        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5478        ;;
5479    esac
5480    ;;
5481  *-*-cygwin* )
5482    case $build in
5483      *-*-mingw* ) # actually msys
5484        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5485        ;;
5486      *-*-cygwin* )
5487        lt_cv_to_host_file_cmd=func_convert_file_noop
5488        ;;
5489      * ) # otherwise, assume *nix
5490        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5491        ;;
5492    esac
5493    ;;
5494  * ) # unhandled hosts (and "normal" native builds)
5495    lt_cv_to_host_file_cmd=func_convert_file_noop
5496    ;;
5497esac
5498
5499fi
5500
5501to_host_file_cmd=$lt_cv_to_host_file_cmd
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5503$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5504
5505
5506
5507
5508
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5510$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5511if ${lt_cv_to_tool_file_cmd+:} false; then :
5512  $as_echo_n "(cached) " >&6
5513else
5514  #assume ordinary cross tools, or native build.
5515lt_cv_to_tool_file_cmd=func_convert_file_noop
5516case $host in
5517  *-*-mingw* )
5518    case $build in
5519      *-*-mingw* ) # actually msys
5520        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5521        ;;
5522    esac
5523    ;;
5524esac
5525
5526fi
5527
5528to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5530$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5531
5532
5533
5534
5535
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5537$as_echo_n "checking for $LD option to reload object files... " >&6; }
5538if ${lt_cv_ld_reload_flag+:} false; then :
5539  $as_echo_n "(cached) " >&6
5540else
5541  lt_cv_ld_reload_flag='-r'
5542fi
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5544$as_echo "$lt_cv_ld_reload_flag" >&6; }
5545reload_flag=$lt_cv_ld_reload_flag
5546case $reload_flag in
5547"" | " "*) ;;
5548*) reload_flag=" $reload_flag" ;;
5549esac
5550reload_cmds='$LD$reload_flag -o $output$reload_objs'
5551case $host_os in
5552  cygwin* | mingw* | pw32* | cegcc*)
5553    if test yes != "$GCC"; then
5554      reload_cmds=false
5555    fi
5556    ;;
5557  darwin*)
5558    if test yes = "$GCC"; then
5559      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5560    else
5561      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5562    fi
5563    ;;
5564esac
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574if test -n "$ac_tool_prefix"; then
5575  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5576set dummy ${ac_tool_prefix}objdump; ac_word=$2
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578$as_echo_n "checking for $ac_word... " >&6; }
5579if ${ac_cv_prog_OBJDUMP+:} false; then :
5580  $as_echo_n "(cached) " >&6
5581else
5582  if test -n "$OBJDUMP"; then
5583  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5584else
5585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586for as_dir in $PATH
5587do
5588  IFS=$as_save_IFS
5589  test -z "$as_dir" && as_dir=.
5590    for ac_exec_ext in '' $ac_executable_extensions; do
5591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594    break 2
5595  fi
5596done
5597  done
5598IFS=$as_save_IFS
5599
5600fi
5601fi
5602OBJDUMP=$ac_cv_prog_OBJDUMP
5603if test -n "$OBJDUMP"; then
5604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5605$as_echo "$OBJDUMP" >&6; }
5606else
5607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608$as_echo "no" >&6; }
5609fi
5610
5611
5612fi
5613if test -z "$ac_cv_prog_OBJDUMP"; then
5614  ac_ct_OBJDUMP=$OBJDUMP
5615  # Extract the first word of "objdump", so it can be a program name with args.
5616set dummy objdump; ac_word=$2
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618$as_echo_n "checking for $ac_word... " >&6; }
5619if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5620  $as_echo_n "(cached) " >&6
5621else
5622  if test -n "$ac_ct_OBJDUMP"; then
5623  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5624else
5625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626for as_dir in $PATH
5627do
5628  IFS=$as_save_IFS
5629  test -z "$as_dir" && as_dir=.
5630    for ac_exec_ext in '' $ac_executable_extensions; do
5631  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634    break 2
5635  fi
5636done
5637  done
5638IFS=$as_save_IFS
5639
5640fi
5641fi
5642ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5643if test -n "$ac_ct_OBJDUMP"; then
5644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5645$as_echo "$ac_ct_OBJDUMP" >&6; }
5646else
5647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648$as_echo "no" >&6; }
5649fi
5650
5651  if test "x$ac_ct_OBJDUMP" = x; then
5652    OBJDUMP="false"
5653  else
5654    case $cross_compiling:$ac_tool_warned in
5655yes:)
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5658ac_tool_warned=yes ;;
5659esac
5660    OBJDUMP=$ac_ct_OBJDUMP
5661  fi
5662else
5663  OBJDUMP="$ac_cv_prog_OBJDUMP"
5664fi
5665
5666test -z "$OBJDUMP" && OBJDUMP=objdump
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5677$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5678if ${lt_cv_deplibs_check_method+:} false; then :
5679  $as_echo_n "(cached) " >&6
5680else
5681  lt_cv_file_magic_cmd='$MAGIC_CMD'
5682lt_cv_file_magic_test_file=
5683lt_cv_deplibs_check_method='unknown'
5684# Need to set the preceding variable on all platforms that support
5685# interlibrary dependencies.
5686# 'none' -- dependencies not supported.
5687# 'unknown' -- same as none, but documents that we really don't know.
5688# 'pass_all' -- all dependencies passed with no checks.
5689# 'test_compile' -- check by making test program.
5690# 'file_magic [[regex]]' -- check by looking for files in library path
5691# that responds to the $file_magic_cmd with a given extended regex.
5692# If you have 'file' or equivalent on your system and you're not sure
5693# whether 'pass_all' will *always* work, you probably want this one.
5694
5695case $host_os in
5696aix[4-9]*)
5697  lt_cv_deplibs_check_method=pass_all
5698  ;;
5699
5700beos*)
5701  lt_cv_deplibs_check_method=pass_all
5702  ;;
5703
5704bsdi[45]*)
5705  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5706  lt_cv_file_magic_cmd='/usr/bin/file -L'
5707  lt_cv_file_magic_test_file=/shlib/libc.so
5708  ;;
5709
5710cygwin*)
5711  # func_win32_libid is a shell function defined in ltmain.sh
5712  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5713  lt_cv_file_magic_cmd='func_win32_libid'
5714  ;;
5715
5716mingw* | pw32*)
5717  # Base MSYS/MinGW do not provide the 'file' command needed by
5718  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5719  # unless we find 'file', for example because we are cross-compiling.
5720  if ( file / ) >/dev/null 2>&1; then
5721    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5722    lt_cv_file_magic_cmd='func_win32_libid'
5723  else
5724    # Keep this pattern in sync with the one in func_win32_libid.
5725    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5726    lt_cv_file_magic_cmd='$OBJDUMP -f'
5727  fi
5728  ;;
5729
5730cegcc*)
5731  # use the weaker test based on 'objdump'. See mingw*.
5732  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5733  lt_cv_file_magic_cmd='$OBJDUMP -f'
5734  ;;
5735
5736darwin* | rhapsody*)
5737  lt_cv_deplibs_check_method=pass_all
5738  ;;
5739
5740freebsd* | dragonfly*)
5741  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5742    case $host_cpu in
5743    i*86 )
5744      # Not sure whether the presence of OpenBSD here was a mistake.
5745      # Let's accept both of them until this is cleared up.
5746      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5747      lt_cv_file_magic_cmd=/usr/bin/file
5748      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5749      ;;
5750    esac
5751  else
5752    lt_cv_deplibs_check_method=pass_all
5753  fi
5754  ;;
5755
5756haiku*)
5757  lt_cv_deplibs_check_method=pass_all
5758  ;;
5759
5760hpux10.20* | hpux11*)
5761  lt_cv_file_magic_cmd=/usr/bin/file
5762  case $host_cpu in
5763  ia64*)
5764    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5765    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5766    ;;
5767  hppa*64*)
5768    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]'
5769    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5770    ;;
5771  *)
5772    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5773    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5774    ;;
5775  esac
5776  ;;
5777
5778interix[3-9]*)
5779  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5780  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5781  ;;
5782
5783irix5* | irix6* | nonstopux*)
5784  case $LD in
5785  *-32|*"-32 ") libmagic=32-bit;;
5786  *-n32|*"-n32 ") libmagic=N32;;
5787  *-64|*"-64 ") libmagic=64-bit;;
5788  *) libmagic=never-match;;
5789  esac
5790  lt_cv_deplibs_check_method=pass_all
5791  ;;
5792
5793# This must be glibc/ELF.
5794linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5795  lt_cv_deplibs_check_method=pass_all
5796  ;;
5797
5798netbsd*)
5799  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5800    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5801  else
5802    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5803  fi
5804  ;;
5805
5806newos6*)
5807  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5808  lt_cv_file_magic_cmd=/usr/bin/file
5809  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5810  ;;
5811
5812*nto* | *qnx*)
5813  lt_cv_deplibs_check_method=pass_all
5814  ;;
5815
5816openbsd* | bitrig*)
5817  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5818    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5819  else
5820    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5821  fi
5822  ;;
5823
5824osf3* | osf4* | osf5*)
5825  lt_cv_deplibs_check_method=pass_all
5826  ;;
5827
5828rdos*)
5829  lt_cv_deplibs_check_method=pass_all
5830  ;;
5831
5832solaris*)
5833  lt_cv_deplibs_check_method=pass_all
5834  ;;
5835
5836sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5837  lt_cv_deplibs_check_method=pass_all
5838  ;;
5839
5840sysv4 | sysv4.3*)
5841  case $host_vendor in
5842  motorola)
5843    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]'
5844    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5845    ;;
5846  ncr)
5847    lt_cv_deplibs_check_method=pass_all
5848    ;;
5849  sequent)
5850    lt_cv_file_magic_cmd='/bin/file'
5851    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5852    ;;
5853  sni)
5854    lt_cv_file_magic_cmd='/bin/file'
5855    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5856    lt_cv_file_magic_test_file=/lib/libc.so
5857    ;;
5858  siemens)
5859    lt_cv_deplibs_check_method=pass_all
5860    ;;
5861  pc)
5862    lt_cv_deplibs_check_method=pass_all
5863    ;;
5864  esac
5865  ;;
5866
5867tpf*)
5868  lt_cv_deplibs_check_method=pass_all
5869  ;;
5870os2*)
5871  lt_cv_deplibs_check_method=pass_all
5872  ;;
5873esac
5874
5875fi
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5877$as_echo "$lt_cv_deplibs_check_method" >&6; }
5878
5879file_magic_glob=
5880want_nocaseglob=no
5881if test "$build" = "$host"; then
5882  case $host_os in
5883  mingw* | pw32*)
5884    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5885      want_nocaseglob=yes
5886    else
5887      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5888    fi
5889    ;;
5890  esac
5891fi
5892
5893file_magic_cmd=$lt_cv_file_magic_cmd
5894deplibs_check_method=$lt_cv_deplibs_check_method
5895test -z "$deplibs_check_method" && deplibs_check_method=unknown
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918if test -n "$ac_tool_prefix"; then
5919  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5920set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922$as_echo_n "checking for $ac_word... " >&6; }
5923if ${ac_cv_prog_DLLTOOL+:} false; then :
5924  $as_echo_n "(cached) " >&6
5925else
5926  if test -n "$DLLTOOL"; then
5927  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5928else
5929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930for as_dir in $PATH
5931do
5932  IFS=$as_save_IFS
5933  test -z "$as_dir" && as_dir=.
5934    for ac_exec_ext in '' $ac_executable_extensions; do
5935  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5936    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938    break 2
5939  fi
5940done
5941  done
5942IFS=$as_save_IFS
5943
5944fi
5945fi
5946DLLTOOL=$ac_cv_prog_DLLTOOL
5947if test -n "$DLLTOOL"; then
5948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5949$as_echo "$DLLTOOL" >&6; }
5950else
5951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952$as_echo "no" >&6; }
5953fi
5954
5955
5956fi
5957if test -z "$ac_cv_prog_DLLTOOL"; then
5958  ac_ct_DLLTOOL=$DLLTOOL
5959  # Extract the first word of "dlltool", so it can be a program name with args.
5960set dummy dlltool; ac_word=$2
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962$as_echo_n "checking for $ac_word... " >&6; }
5963if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5964  $as_echo_n "(cached) " >&6
5965else
5966  if test -n "$ac_ct_DLLTOOL"; then
5967  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5968else
5969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970for as_dir in $PATH
5971do
5972  IFS=$as_save_IFS
5973  test -z "$as_dir" && as_dir=.
5974    for ac_exec_ext in '' $ac_executable_extensions; do
5975  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5976    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978    break 2
5979  fi
5980done
5981  done
5982IFS=$as_save_IFS
5983
5984fi
5985fi
5986ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5987if test -n "$ac_ct_DLLTOOL"; then
5988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5989$as_echo "$ac_ct_DLLTOOL" >&6; }
5990else
5991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992$as_echo "no" >&6; }
5993fi
5994
5995  if test "x$ac_ct_DLLTOOL" = x; then
5996    DLLTOOL="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    DLLTOOL=$ac_ct_DLLTOOL
6005  fi
6006else
6007  DLLTOOL="$ac_cv_prog_DLLTOOL"
6008fi
6009
6010test -z "$DLLTOOL" && DLLTOOL=dlltool
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6022$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6023if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6024  $as_echo_n "(cached) " >&6
6025else
6026  lt_cv_sharedlib_from_linklib_cmd='unknown'
6027
6028case $host_os in
6029cygwin* | mingw* | pw32* | cegcc*)
6030  # two different shell functions defined in ltmain.sh;
6031  # decide which one to use based on capabilities of $DLLTOOL
6032  case `$DLLTOOL --help 2>&1` in
6033  *--identify-strict*)
6034    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6035    ;;
6036  *)
6037    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6038    ;;
6039  esac
6040  ;;
6041*)
6042  # fallback: assume linklib IS sharedlib
6043  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6044  ;;
6045esac
6046
6047fi
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6049$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6050sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6051test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6052
6053
6054
6055
6056
6057
6058
6059if test -n "$ac_tool_prefix"; then
6060  for ac_prog in ar
6061  do
6062    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6063set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065$as_echo_n "checking for $ac_word... " >&6; }
6066if ${ac_cv_prog_AR+:} false; then :
6067  $as_echo_n "(cached) " >&6
6068else
6069  if test -n "$AR"; then
6070  ac_cv_prog_AR="$AR" # Let the user override the test.
6071else
6072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073for as_dir in $PATH
6074do
6075  IFS=$as_save_IFS
6076  test -z "$as_dir" && as_dir=.
6077    for ac_exec_ext in '' $ac_executable_extensions; do
6078  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081    break 2
6082  fi
6083done
6084  done
6085IFS=$as_save_IFS
6086
6087fi
6088fi
6089AR=$ac_cv_prog_AR
6090if test -n "$AR"; then
6091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6092$as_echo "$AR" >&6; }
6093else
6094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095$as_echo "no" >&6; }
6096fi
6097
6098
6099    test -n "$AR" && break
6100  done
6101fi
6102if test -z "$AR"; then
6103  ac_ct_AR=$AR
6104  for ac_prog in ar
6105do
6106  # Extract the first word of "$ac_prog", so it can be a program name with args.
6107set dummy $ac_prog; ac_word=$2
6108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6109$as_echo_n "checking for $ac_word... " >&6; }
6110if ${ac_cv_prog_ac_ct_AR+:} false; then :
6111  $as_echo_n "(cached) " >&6
6112else
6113  if test -n "$ac_ct_AR"; then
6114  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6115else
6116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117for as_dir in $PATH
6118do
6119  IFS=$as_save_IFS
6120  test -z "$as_dir" && as_dir=.
6121    for ac_exec_ext in '' $ac_executable_extensions; do
6122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123    ac_cv_prog_ac_ct_AR="$ac_prog"
6124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125    break 2
6126  fi
6127done
6128  done
6129IFS=$as_save_IFS
6130
6131fi
6132fi
6133ac_ct_AR=$ac_cv_prog_ac_ct_AR
6134if test -n "$ac_ct_AR"; then
6135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6136$as_echo "$ac_ct_AR" >&6; }
6137else
6138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6139$as_echo "no" >&6; }
6140fi
6141
6142
6143  test -n "$ac_ct_AR" && break
6144done
6145
6146  if test "x$ac_ct_AR" = x; then
6147    AR="false"
6148  else
6149    case $cross_compiling:$ac_tool_warned in
6150yes:)
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6153ac_tool_warned=yes ;;
6154esac
6155    AR=$ac_ct_AR
6156  fi
6157fi
6158
6159: ${AR=ar}
6160: ${AR_FLAGS=cru}
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6173$as_echo_n "checking for archiver @FILE support... " >&6; }
6174if ${lt_cv_ar_at_file+:} false; then :
6175  $as_echo_n "(cached) " >&6
6176else
6177  lt_cv_ar_at_file=no
6178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179/* end confdefs.h.  */
6180
6181int
6182main ()
6183{
6184
6185  ;
6186  return 0;
6187}
6188_ACEOF
6189if ac_fn_c_try_compile "$LINENO"; then :
6190  echo conftest.$ac_objext > conftest.lst
6191      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6192      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6193  (eval $lt_ar_try) 2>&5
6194  ac_status=$?
6195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6196  test $ac_status = 0; }
6197      if test 0 -eq "$ac_status"; then
6198	# Ensure the archiver fails upon bogus file names.
6199	rm -f conftest.$ac_objext libconftest.a
6200	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6201  (eval $lt_ar_try) 2>&5
6202  ac_status=$?
6203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6204  test $ac_status = 0; }
6205	if test 0 -ne "$ac_status"; then
6206          lt_cv_ar_at_file=@
6207        fi
6208      fi
6209      rm -f conftest.* libconftest.a
6210
6211fi
6212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213
6214fi
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6216$as_echo "$lt_cv_ar_at_file" >&6; }
6217
6218if test no = "$lt_cv_ar_at_file"; then
6219  archiver_list_spec=
6220else
6221  archiver_list_spec=$lt_cv_ar_at_file
6222fi
6223
6224
6225
6226
6227
6228
6229
6230if test -n "$ac_tool_prefix"; then
6231  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6232set dummy ${ac_tool_prefix}strip; ac_word=$2
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234$as_echo_n "checking for $ac_word... " >&6; }
6235if ${ac_cv_prog_STRIP+:} false; then :
6236  $as_echo_n "(cached) " >&6
6237else
6238  if test -n "$STRIP"; then
6239  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6240else
6241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH
6243do
6244  IFS=$as_save_IFS
6245  test -z "$as_dir" && as_dir=.
6246    for ac_exec_ext in '' $ac_executable_extensions; do
6247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250    break 2
6251  fi
6252done
6253  done
6254IFS=$as_save_IFS
6255
6256fi
6257fi
6258STRIP=$ac_cv_prog_STRIP
6259if test -n "$STRIP"; then
6260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6261$as_echo "$STRIP" >&6; }
6262else
6263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264$as_echo "no" >&6; }
6265fi
6266
6267
6268fi
6269if test -z "$ac_cv_prog_STRIP"; then
6270  ac_ct_STRIP=$STRIP
6271  # Extract the first word of "strip", so it can be a program name with args.
6272set dummy strip; ac_word=$2
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274$as_echo_n "checking for $ac_word... " >&6; }
6275if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6276  $as_echo_n "(cached) " >&6
6277else
6278  if test -n "$ac_ct_STRIP"; then
6279  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6280else
6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284  IFS=$as_save_IFS
6285  test -z "$as_dir" && as_dir=.
6286    for ac_exec_ext in '' $ac_executable_extensions; do
6287  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6288    ac_cv_prog_ac_ct_STRIP="strip"
6289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290    break 2
6291  fi
6292done
6293  done
6294IFS=$as_save_IFS
6295
6296fi
6297fi
6298ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6299if test -n "$ac_ct_STRIP"; then
6300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6301$as_echo "$ac_ct_STRIP" >&6; }
6302else
6303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304$as_echo "no" >&6; }
6305fi
6306
6307  if test "x$ac_ct_STRIP" = x; then
6308    STRIP=":"
6309  else
6310    case $cross_compiling:$ac_tool_warned in
6311yes:)
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6314ac_tool_warned=yes ;;
6315esac
6316    STRIP=$ac_ct_STRIP
6317  fi
6318else
6319  STRIP="$ac_cv_prog_STRIP"
6320fi
6321
6322test -z "$STRIP" && STRIP=:
6323
6324
6325
6326
6327
6328
6329if test -n "$ac_tool_prefix"; then
6330  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6331set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333$as_echo_n "checking for $ac_word... " >&6; }
6334if ${ac_cv_prog_RANLIB+:} false; then :
6335  $as_echo_n "(cached) " >&6
6336else
6337  if test -n "$RANLIB"; then
6338  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6339else
6340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341for as_dir in $PATH
6342do
6343  IFS=$as_save_IFS
6344  test -z "$as_dir" && as_dir=.
6345    for ac_exec_ext in '' $ac_executable_extensions; do
6346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6347    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349    break 2
6350  fi
6351done
6352  done
6353IFS=$as_save_IFS
6354
6355fi
6356fi
6357RANLIB=$ac_cv_prog_RANLIB
6358if test -n "$RANLIB"; then
6359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6360$as_echo "$RANLIB" >&6; }
6361else
6362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363$as_echo "no" >&6; }
6364fi
6365
6366
6367fi
6368if test -z "$ac_cv_prog_RANLIB"; then
6369  ac_ct_RANLIB=$RANLIB
6370  # Extract the first word of "ranlib", so it can be a program name with args.
6371set dummy ranlib; ac_word=$2
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373$as_echo_n "checking for $ac_word... " >&6; }
6374if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6375  $as_echo_n "(cached) " >&6
6376else
6377  if test -n "$ac_ct_RANLIB"; then
6378  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6379else
6380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381for as_dir in $PATH
6382do
6383  IFS=$as_save_IFS
6384  test -z "$as_dir" && as_dir=.
6385    for ac_exec_ext in '' $ac_executable_extensions; do
6386  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387    ac_cv_prog_ac_ct_RANLIB="ranlib"
6388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389    break 2
6390  fi
6391done
6392  done
6393IFS=$as_save_IFS
6394
6395fi
6396fi
6397ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6398if test -n "$ac_ct_RANLIB"; then
6399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6400$as_echo "$ac_ct_RANLIB" >&6; }
6401else
6402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403$as_echo "no" >&6; }
6404fi
6405
6406  if test "x$ac_ct_RANLIB" = x; then
6407    RANLIB=":"
6408  else
6409    case $cross_compiling:$ac_tool_warned in
6410yes:)
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6413ac_tool_warned=yes ;;
6414esac
6415    RANLIB=$ac_ct_RANLIB
6416  fi
6417else
6418  RANLIB="$ac_cv_prog_RANLIB"
6419fi
6420
6421test -z "$RANLIB" && RANLIB=:
6422
6423
6424
6425
6426
6427
6428# Determine commands to create old-style static archives.
6429old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6430old_postinstall_cmds='chmod 644 $oldlib'
6431old_postuninstall_cmds=
6432
6433if test -n "$RANLIB"; then
6434  case $host_os in
6435  bitrig* | openbsd*)
6436    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6437    ;;
6438  *)
6439    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6440    ;;
6441  esac
6442  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6443fi
6444
6445case $host_os in
6446  darwin*)
6447    lock_old_archive_extraction=yes ;;
6448  *)
6449    lock_old_archive_extraction=no ;;
6450esac
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490# If no C compiler was specified, use CC.
6491LTCC=${LTCC-"$CC"}
6492
6493# If no C compiler flags were specified, use CFLAGS.
6494LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6495
6496# Allow CC to be a program name with arguments.
6497compiler=$CC
6498
6499
6500# Check for command to grab the raw symbol name followed by C symbol from nm.
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6502$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6503if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6504  $as_echo_n "(cached) " >&6
6505else
6506
6507# These are sane defaults that work on at least a few old systems.
6508# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6509
6510# Character class describing NM global symbol codes.
6511symcode='[BCDEGRST]'
6512
6513# Regexp to match symbols that can be accessed directly from C.
6514sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6515
6516# Define system-specific variables.
6517case $host_os in
6518aix*)
6519  symcode='[BCDT]'
6520  ;;
6521cygwin* | mingw* | pw32* | cegcc*)
6522  symcode='[ABCDGISTW]'
6523  ;;
6524hpux*)
6525  if test ia64 = "$host_cpu"; then
6526    symcode='[ABCDEGRST]'
6527  fi
6528  ;;
6529irix* | nonstopux*)
6530  symcode='[BCDEGRST]'
6531  ;;
6532osf*)
6533  symcode='[BCDEGQRST]'
6534  ;;
6535solaris*)
6536  symcode='[BDRT]'
6537  ;;
6538sco3.2v5*)
6539  symcode='[DT]'
6540  ;;
6541sysv4.2uw2*)
6542  symcode='[DT]'
6543  ;;
6544sysv5* | sco5v6* | unixware* | OpenUNIX*)
6545  symcode='[ABDT]'
6546  ;;
6547sysv4)
6548  symcode='[DFNSTU]'
6549  ;;
6550esac
6551
6552# If we're using GNU nm, then use its standard symbol codes.
6553case `$NM -V 2>&1` in
6554*GNU* | *'with BFD'*)
6555  symcode='[ABCDGIRSTW]' ;;
6556esac
6557
6558if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6559  # Gets list of data symbols to import.
6560  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6561  # Adjust the below global symbol transforms to fixup imported variables.
6562  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6563  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6564  lt_c_name_lib_hook="\
6565  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6566  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6567else
6568  # Disable hooks by default.
6569  lt_cv_sys_global_symbol_to_import=
6570  lt_cdecl_hook=
6571  lt_c_name_hook=
6572  lt_c_name_lib_hook=
6573fi
6574
6575# Transform an extracted symbol line into a proper C declaration.
6576# Some systems (esp. on ia64) link data and code symbols differently,
6577# so use this general approach.
6578lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6579$lt_cdecl_hook\
6580" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6581" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6582
6583# Transform an extracted symbol line into symbol name and symbol address
6584lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6585$lt_c_name_hook\
6586" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6587" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6588
6589# Transform an extracted symbol line into symbol name with lib prefix and
6590# symbol address.
6591lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6592$lt_c_name_lib_hook\
6593" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6594" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6595" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6596
6597# Handle CRLF in mingw tool chain
6598opt_cr=
6599case $build_os in
6600mingw*)
6601  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6602  ;;
6603esac
6604
6605# Try without a prefix underscore, then with it.
6606for ac_symprfx in "" "_"; do
6607
6608  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6609  symxfrm="\\1 $ac_symprfx\\2 \\2"
6610
6611  # Write the raw and C identifiers.
6612  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6613    # Fake it for dumpbin and say T for any non-static function,
6614    # D for any global variable and I for any imported variable.
6615    # Also find C++ and __fastcall symbols from MSVC++,
6616    # which start with @ or ?.
6617    lt_cv_sys_global_symbol_pipe="$AWK '"\
6618"     {last_section=section; section=\$ 3};"\
6619"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6620"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6621"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6622"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6623"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6624"     \$ 0!~/External *\|/{next};"\
6625"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6626"     {if(hide[section]) next};"\
6627"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6628"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6629"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6630"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6631"     ' prfx=^$ac_symprfx"
6632  else
6633    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6634  fi
6635  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6636
6637  # Check to see that the pipe works correctly.
6638  pipe_works=no
6639
6640  rm -f conftest*
6641  cat > conftest.$ac_ext <<_LT_EOF
6642#ifdef __cplusplus
6643extern "C" {
6644#endif
6645char nm_test_var;
6646void nm_test_func(void);
6647void nm_test_func(void){}
6648#ifdef __cplusplus
6649}
6650#endif
6651int main(){nm_test_var='a';nm_test_func();return(0);}
6652_LT_EOF
6653
6654  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6655  (eval $ac_compile) 2>&5
6656  ac_status=$?
6657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6658  test $ac_status = 0; }; then
6659    # Now try to grab the symbols.
6660    nlist=conftest.nm
6661    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6662  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6663  ac_status=$?
6664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6665  test $ac_status = 0; } && test -s "$nlist"; then
6666      # Try sorting and uniquifying the output.
6667      if sort "$nlist" | uniq > "$nlist"T; then
6668	mv -f "$nlist"T "$nlist"
6669      else
6670	rm -f "$nlist"T
6671      fi
6672
6673      # Make sure that we snagged all the symbols we need.
6674      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6675	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6676	  cat <<_LT_EOF > conftest.$ac_ext
6677/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6678#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6679/* DATA imports from DLLs on WIN32 can't be const, because runtime
6680   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6681# define LT_DLSYM_CONST
6682#elif defined __osf__
6683/* This system does not cope well with relocations in const data.  */
6684# define LT_DLSYM_CONST
6685#else
6686# define LT_DLSYM_CONST const
6687#endif
6688
6689#ifdef __cplusplus
6690extern "C" {
6691#endif
6692
6693_LT_EOF
6694	  # Now generate the symbol file.
6695	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6696
6697	  cat <<_LT_EOF >> conftest.$ac_ext
6698
6699/* The mapping between symbol names and symbols.  */
6700LT_DLSYM_CONST struct {
6701  const char *name;
6702  void       *address;
6703}
6704lt__PROGRAM__LTX_preloaded_symbols[] =
6705{
6706  { "@PROGRAM@", (void *) 0 },
6707_LT_EOF
6708	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6709	  cat <<\_LT_EOF >> conftest.$ac_ext
6710  {0, (void *) 0}
6711};
6712
6713/* This works around a problem in FreeBSD linker */
6714#ifdef FREEBSD_WORKAROUND
6715static const void *lt_preloaded_setup() {
6716  return lt__PROGRAM__LTX_preloaded_symbols;
6717}
6718#endif
6719
6720#ifdef __cplusplus
6721}
6722#endif
6723_LT_EOF
6724	  # Now try linking the two files.
6725	  mv conftest.$ac_objext conftstm.$ac_objext
6726	  lt_globsym_save_LIBS=$LIBS
6727	  lt_globsym_save_CFLAGS=$CFLAGS
6728	  LIBS=conftstm.$ac_objext
6729	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6730	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6731  (eval $ac_link) 2>&5
6732  ac_status=$?
6733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6735	    pipe_works=yes
6736	  fi
6737	  LIBS=$lt_globsym_save_LIBS
6738	  CFLAGS=$lt_globsym_save_CFLAGS
6739	else
6740	  echo "cannot find nm_test_func in $nlist" >&5
6741	fi
6742      else
6743	echo "cannot find nm_test_var in $nlist" >&5
6744      fi
6745    else
6746      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6747    fi
6748  else
6749    echo "$progname: failed program was:" >&5
6750    cat conftest.$ac_ext >&5
6751  fi
6752  rm -rf conftest* conftst*
6753
6754  # Do not use the global_symbol_pipe unless it works.
6755  if test yes = "$pipe_works"; then
6756    break
6757  else
6758    lt_cv_sys_global_symbol_pipe=
6759  fi
6760done
6761
6762fi
6763
6764if test -z "$lt_cv_sys_global_symbol_pipe"; then
6765  lt_cv_sys_global_symbol_to_cdecl=
6766fi
6767if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6769$as_echo "failed" >&6; }
6770else
6771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6772$as_echo "ok" >&6; }
6773fi
6774
6775# Response file support.
6776if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6777  nm_file_list_spec='@'
6778elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6779  nm_file_list_spec='@'
6780fi
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6819$as_echo_n "checking for sysroot... " >&6; }
6820
6821# Check whether --with-sysroot was given.
6822if test "${with_sysroot+set}" = set; then :
6823  withval=$with_sysroot;
6824else
6825  with_sysroot=no
6826fi
6827
6828
6829lt_sysroot=
6830case $with_sysroot in #(
6831 yes)
6832   if test yes = "$GCC"; then
6833     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6834   fi
6835   ;; #(
6836 /*)
6837   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6838   ;; #(
6839 no|'')
6840   ;; #(
6841 *)
6842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6843$as_echo "$with_sysroot" >&6; }
6844   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6845   ;;
6846esac
6847
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6849$as_echo "${lt_sysroot:-no}" >&6; }
6850
6851
6852
6853
6854
6855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6856$as_echo_n "checking for a working dd... " >&6; }
6857if ${ac_cv_path_lt_DD+:} false; then :
6858  $as_echo_n "(cached) " >&6
6859else
6860  printf 0123456789abcdef0123456789abcdef >conftest.i
6861cat conftest.i conftest.i >conftest2.i
6862: ${lt_DD:=$DD}
6863if test -z "$lt_DD"; then
6864  ac_path_lt_DD_found=false
6865  # Loop through the user's path and test for each of PROGNAME-LIST
6866  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867for as_dir in $PATH
6868do
6869  IFS=$as_save_IFS
6870  test -z "$as_dir" && as_dir=.
6871    for ac_prog in dd; do
6872    for ac_exec_ext in '' $ac_executable_extensions; do
6873      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6874      as_fn_executable_p "$ac_path_lt_DD" || continue
6875if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6876  cmp -s conftest.i conftest.out \
6877  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6878fi
6879      $ac_path_lt_DD_found && break 3
6880    done
6881  done
6882  done
6883IFS=$as_save_IFS
6884  if test -z "$ac_cv_path_lt_DD"; then
6885    :
6886  fi
6887else
6888  ac_cv_path_lt_DD=$lt_DD
6889fi
6890
6891rm -f conftest.i conftest2.i conftest.out
6892fi
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6894$as_echo "$ac_cv_path_lt_DD" >&6; }
6895
6896
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6898$as_echo_n "checking how to truncate binary pipes... " >&6; }
6899if ${lt_cv_truncate_bin+:} false; then :
6900  $as_echo_n "(cached) " >&6
6901else
6902  printf 0123456789abcdef0123456789abcdef >conftest.i
6903cat conftest.i conftest.i >conftest2.i
6904lt_cv_truncate_bin=
6905if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6906  cmp -s conftest.i conftest.out \
6907  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6908fi
6909rm -f conftest.i conftest2.i conftest.out
6910test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6911fi
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6913$as_echo "$lt_cv_truncate_bin" >&6; }
6914
6915
6916
6917
6918
6919
6920
6921# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6922func_cc_basename ()
6923{
6924    for cc_temp in $*""; do
6925      case $cc_temp in
6926        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6927        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6928        \-*) ;;
6929        *) break;;
6930      esac
6931    done
6932    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6933}
6934
6935# Check whether --enable-libtool-lock was given.
6936if test "${enable_libtool_lock+set}" = set; then :
6937  enableval=$enable_libtool_lock;
6938fi
6939
6940test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6941
6942# Some flags need to be propagated to the compiler or linker for good
6943# libtool support.
6944case $host in
6945ia64-*-hpux*)
6946  # Find out what ABI is being produced by ac_compile, and set mode
6947  # options accordingly.
6948  echo 'int i;' > conftest.$ac_ext
6949  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6950  (eval $ac_compile) 2>&5
6951  ac_status=$?
6952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6953  test $ac_status = 0; }; then
6954    case `/usr/bin/file conftest.$ac_objext` in
6955      *ELF-32*)
6956	HPUX_IA64_MODE=32
6957	;;
6958      *ELF-64*)
6959	HPUX_IA64_MODE=64
6960	;;
6961    esac
6962  fi
6963  rm -rf conftest*
6964  ;;
6965*-*-irix6*)
6966  # Find out what ABI is being produced by ac_compile, and set linker
6967  # options accordingly.
6968  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6969  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6970  (eval $ac_compile) 2>&5
6971  ac_status=$?
6972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6973  test $ac_status = 0; }; then
6974    if test yes = "$lt_cv_prog_gnu_ld"; then
6975      case `/usr/bin/file conftest.$ac_objext` in
6976	*32-bit*)
6977	  LD="${LD-ld} -melf32bsmip"
6978	  ;;
6979	*N32*)
6980	  LD="${LD-ld} -melf32bmipn32"
6981	  ;;
6982	*64-bit*)
6983	  LD="${LD-ld} -melf64bmip"
6984	;;
6985      esac
6986    else
6987      case `/usr/bin/file conftest.$ac_objext` in
6988	*32-bit*)
6989	  LD="${LD-ld} -32"
6990	  ;;
6991	*N32*)
6992	  LD="${LD-ld} -n32"
6993	  ;;
6994	*64-bit*)
6995	  LD="${LD-ld} -64"
6996	  ;;
6997      esac
6998    fi
6999  fi
7000  rm -rf conftest*
7001  ;;
7002
7003mips64*-*linux*)
7004  # Find out what ABI is being produced by ac_compile, and set linker
7005  # options accordingly.
7006  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7007  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7008  (eval $ac_compile) 2>&5
7009  ac_status=$?
7010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7011  test $ac_status = 0; }; then
7012    emul=elf
7013    case `/usr/bin/file conftest.$ac_objext` in
7014      *32-bit*)
7015	emul="${emul}32"
7016	;;
7017      *64-bit*)
7018	emul="${emul}64"
7019	;;
7020    esac
7021    case `/usr/bin/file conftest.$ac_objext` in
7022      *MSB*)
7023	emul="${emul}btsmip"
7024	;;
7025      *LSB*)
7026	emul="${emul}ltsmip"
7027	;;
7028    esac
7029    case `/usr/bin/file conftest.$ac_objext` in
7030      *N32*)
7031	emul="${emul}n32"
7032	;;
7033    esac
7034    LD="${LD-ld} -m $emul"
7035  fi
7036  rm -rf conftest*
7037  ;;
7038
7039x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7040s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7041  # Find out what ABI is being produced by ac_compile, and set linker
7042  # options accordingly.  Note that the listed cases only cover the
7043  # situations where additional linker options are needed (such as when
7044  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7045  # vice versa); the common cases where no linker options are needed do
7046  # not appear in the list.
7047  echo 'int i;' > conftest.$ac_ext
7048  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7049  (eval $ac_compile) 2>&5
7050  ac_status=$?
7051  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7052  test $ac_status = 0; }; then
7053    case `/usr/bin/file conftest.o` in
7054      *32-bit*)
7055	case $host in
7056	  x86_64-*kfreebsd*-gnu)
7057	    LD="${LD-ld} -m elf_i386_fbsd"
7058	    ;;
7059	  x86_64-*linux*)
7060	    case `/usr/bin/file conftest.o` in
7061	      *x86-64*)
7062		LD="${LD-ld} -m elf32_x86_64"
7063		;;
7064	      *)
7065		LD="${LD-ld} -m elf_i386"
7066		;;
7067	    esac
7068	    ;;
7069	  powerpc64le-*linux*)
7070	    LD="${LD-ld} -m elf32lppclinux"
7071	    ;;
7072	  powerpc64-*linux*)
7073	    LD="${LD-ld} -m elf32ppclinux"
7074	    ;;
7075	  s390x-*linux*)
7076	    LD="${LD-ld} -m elf_s390"
7077	    ;;
7078	  sparc64-*linux*)
7079	    LD="${LD-ld} -m elf32_sparc"
7080	    ;;
7081	esac
7082	;;
7083      *64-bit*)
7084	case $host in
7085	  x86_64-*kfreebsd*-gnu)
7086	    LD="${LD-ld} -m elf_x86_64_fbsd"
7087	    ;;
7088	  x86_64-*linux*)
7089	    LD="${LD-ld} -m elf_x86_64"
7090	    ;;
7091	  powerpcle-*linux*)
7092	    LD="${LD-ld} -m elf64lppc"
7093	    ;;
7094	  powerpc-*linux*)
7095	    LD="${LD-ld} -m elf64ppc"
7096	    ;;
7097	  s390*-*linux*|s390*-*tpf*)
7098	    LD="${LD-ld} -m elf64_s390"
7099	    ;;
7100	  sparc*-*linux*)
7101	    LD="${LD-ld} -m elf64_sparc"
7102	    ;;
7103	esac
7104	;;
7105    esac
7106  fi
7107  rm -rf conftest*
7108  ;;
7109
7110*-*-sco3.2v5*)
7111  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7112  SAVE_CFLAGS=$CFLAGS
7113  CFLAGS="$CFLAGS -belf"
7114  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7115$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7116if ${lt_cv_cc_needs_belf+:} false; then :
7117  $as_echo_n "(cached) " >&6
7118else
7119  ac_ext=c
7120ac_cpp='$CPP $CPPFLAGS'
7121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7123ac_compiler_gnu=$ac_cv_c_compiler_gnu
7124
7125     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126/* end confdefs.h.  */
7127
7128int
7129main ()
7130{
7131
7132  ;
7133  return 0;
7134}
7135_ACEOF
7136if ac_fn_c_try_link "$LINENO"; then :
7137  lt_cv_cc_needs_belf=yes
7138else
7139  lt_cv_cc_needs_belf=no
7140fi
7141rm -f core conftest.err conftest.$ac_objext \
7142    conftest$ac_exeext conftest.$ac_ext
7143     ac_ext=c
7144ac_cpp='$CPP $CPPFLAGS'
7145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7147ac_compiler_gnu=$ac_cv_c_compiler_gnu
7148
7149fi
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7151$as_echo "$lt_cv_cc_needs_belf" >&6; }
7152  if test yes != "$lt_cv_cc_needs_belf"; then
7153    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7154    CFLAGS=$SAVE_CFLAGS
7155  fi
7156  ;;
7157*-*solaris*)
7158  # Find out what ABI is being produced by ac_compile, and set linker
7159  # options accordingly.
7160  echo 'int i;' > conftest.$ac_ext
7161  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7162  (eval $ac_compile) 2>&5
7163  ac_status=$?
7164  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7165  test $ac_status = 0; }; then
7166    case `/usr/bin/file conftest.o` in
7167    *64-bit*)
7168      case $lt_cv_prog_gnu_ld in
7169      yes*)
7170        case $host in
7171        i?86-*-solaris*|x86_64-*-solaris*)
7172          LD="${LD-ld} -m elf_x86_64"
7173          ;;
7174        sparc*-*-solaris*)
7175          LD="${LD-ld} -m elf64_sparc"
7176          ;;
7177        esac
7178        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7179        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7180          LD=${LD-ld}_sol2
7181        fi
7182        ;;
7183      *)
7184	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7185	  LD="${LD-ld} -64"
7186	fi
7187	;;
7188      esac
7189      ;;
7190    esac
7191  fi
7192  rm -rf conftest*
7193  ;;
7194esac
7195
7196need_locks=$enable_libtool_lock
7197
7198if test -n "$ac_tool_prefix"; then
7199  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7200set dummy ${ac_tool_prefix}mt; ac_word=$2
7201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202$as_echo_n "checking for $ac_word... " >&6; }
7203if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7204  $as_echo_n "(cached) " >&6
7205else
7206  if test -n "$MANIFEST_TOOL"; then
7207  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7208else
7209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210for as_dir in $PATH
7211do
7212  IFS=$as_save_IFS
7213  test -z "$as_dir" && as_dir=.
7214    for ac_exec_ext in '' $ac_executable_extensions; do
7215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218    break 2
7219  fi
7220done
7221  done
7222IFS=$as_save_IFS
7223
7224fi
7225fi
7226MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7227if test -n "$MANIFEST_TOOL"; then
7228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7229$as_echo "$MANIFEST_TOOL" >&6; }
7230else
7231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232$as_echo "no" >&6; }
7233fi
7234
7235
7236fi
7237if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7238  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7239  # Extract the first word of "mt", so it can be a program name with args.
7240set dummy mt; ac_word=$2
7241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7242$as_echo_n "checking for $ac_word... " >&6; }
7243if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7244  $as_echo_n "(cached) " >&6
7245else
7246  if test -n "$ac_ct_MANIFEST_TOOL"; then
7247  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7248else
7249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250for as_dir in $PATH
7251do
7252  IFS=$as_save_IFS
7253  test -z "$as_dir" && as_dir=.
7254    for ac_exec_ext in '' $ac_executable_extensions; do
7255  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7256    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7257    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7258    break 2
7259  fi
7260done
7261  done
7262IFS=$as_save_IFS
7263
7264fi
7265fi
7266ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7267if test -n "$ac_ct_MANIFEST_TOOL"; then
7268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7269$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7270else
7271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272$as_echo "no" >&6; }
7273fi
7274
7275  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7276    MANIFEST_TOOL=":"
7277  else
7278    case $cross_compiling:$ac_tool_warned in
7279yes:)
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7282ac_tool_warned=yes ;;
7283esac
7284    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7285  fi
7286else
7287  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7288fi
7289
7290test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7292$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7293if ${lt_cv_path_mainfest_tool+:} false; then :
7294  $as_echo_n "(cached) " >&6
7295else
7296  lt_cv_path_mainfest_tool=no
7297  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7298  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7299  cat conftest.err >&5
7300  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7301    lt_cv_path_mainfest_tool=yes
7302  fi
7303  rm -f conftest*
7304fi
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7306$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7307if test yes != "$lt_cv_path_mainfest_tool"; then
7308  MANIFEST_TOOL=:
7309fi
7310
7311
7312
7313
7314
7315
7316  case $host_os in
7317    rhapsody* | darwin*)
7318    if test -n "$ac_tool_prefix"; then
7319  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7320set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7322$as_echo_n "checking for $ac_word... " >&6; }
7323if ${ac_cv_prog_DSYMUTIL+:} false; then :
7324  $as_echo_n "(cached) " >&6
7325else
7326  if test -n "$DSYMUTIL"; then
7327  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7328else
7329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330for as_dir in $PATH
7331do
7332  IFS=$as_save_IFS
7333  test -z "$as_dir" && as_dir=.
7334    for ac_exec_ext in '' $ac_executable_extensions; do
7335  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7336    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7337    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7338    break 2
7339  fi
7340done
7341  done
7342IFS=$as_save_IFS
7343
7344fi
7345fi
7346DSYMUTIL=$ac_cv_prog_DSYMUTIL
7347if test -n "$DSYMUTIL"; then
7348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7349$as_echo "$DSYMUTIL" >&6; }
7350else
7351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352$as_echo "no" >&6; }
7353fi
7354
7355
7356fi
7357if test -z "$ac_cv_prog_DSYMUTIL"; then
7358  ac_ct_DSYMUTIL=$DSYMUTIL
7359  # Extract the first word of "dsymutil", so it can be a program name with args.
7360set dummy dsymutil; ac_word=$2
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362$as_echo_n "checking for $ac_word... " >&6; }
7363if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7364  $as_echo_n "(cached) " >&6
7365else
7366  if test -n "$ac_ct_DSYMUTIL"; then
7367  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7368else
7369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372  IFS=$as_save_IFS
7373  test -z "$as_dir" && as_dir=.
7374    for ac_exec_ext in '' $ac_executable_extensions; do
7375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378    break 2
7379  fi
7380done
7381  done
7382IFS=$as_save_IFS
7383
7384fi
7385fi
7386ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7387if test -n "$ac_ct_DSYMUTIL"; then
7388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7389$as_echo "$ac_ct_DSYMUTIL" >&6; }
7390else
7391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392$as_echo "no" >&6; }
7393fi
7394
7395  if test "x$ac_ct_DSYMUTIL" = x; then
7396    DSYMUTIL=":"
7397  else
7398    case $cross_compiling:$ac_tool_warned in
7399yes:)
7400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7402ac_tool_warned=yes ;;
7403esac
7404    DSYMUTIL=$ac_ct_DSYMUTIL
7405  fi
7406else
7407  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7408fi
7409
7410    if test -n "$ac_tool_prefix"; then
7411  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7412set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414$as_echo_n "checking for $ac_word... " >&6; }
7415if ${ac_cv_prog_NMEDIT+:} false; then :
7416  $as_echo_n "(cached) " >&6
7417else
7418  if test -n "$NMEDIT"; then
7419  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7420else
7421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422for as_dir in $PATH
7423do
7424  IFS=$as_save_IFS
7425  test -z "$as_dir" && as_dir=.
7426    for ac_exec_ext in '' $ac_executable_extensions; do
7427  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7428    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7429    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7430    break 2
7431  fi
7432done
7433  done
7434IFS=$as_save_IFS
7435
7436fi
7437fi
7438NMEDIT=$ac_cv_prog_NMEDIT
7439if test -n "$NMEDIT"; then
7440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7441$as_echo "$NMEDIT" >&6; }
7442else
7443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444$as_echo "no" >&6; }
7445fi
7446
7447
7448fi
7449if test -z "$ac_cv_prog_NMEDIT"; then
7450  ac_ct_NMEDIT=$NMEDIT
7451  # Extract the first word of "nmedit", so it can be a program name with args.
7452set dummy nmedit; ac_word=$2
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454$as_echo_n "checking for $ac_word... " >&6; }
7455if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7456  $as_echo_n "(cached) " >&6
7457else
7458  if test -n "$ac_ct_NMEDIT"; then
7459  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7460else
7461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462for as_dir in $PATH
7463do
7464  IFS=$as_save_IFS
7465  test -z "$as_dir" && as_dir=.
7466    for ac_exec_ext in '' $ac_executable_extensions; do
7467  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470    break 2
7471  fi
7472done
7473  done
7474IFS=$as_save_IFS
7475
7476fi
7477fi
7478ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7479if test -n "$ac_ct_NMEDIT"; then
7480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7481$as_echo "$ac_ct_NMEDIT" >&6; }
7482else
7483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484$as_echo "no" >&6; }
7485fi
7486
7487  if test "x$ac_ct_NMEDIT" = x; then
7488    NMEDIT=":"
7489  else
7490    case $cross_compiling:$ac_tool_warned in
7491yes:)
7492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7494ac_tool_warned=yes ;;
7495esac
7496    NMEDIT=$ac_ct_NMEDIT
7497  fi
7498else
7499  NMEDIT="$ac_cv_prog_NMEDIT"
7500fi
7501
7502    if test -n "$ac_tool_prefix"; then
7503  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7504set dummy ${ac_tool_prefix}lipo; ac_word=$2
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506$as_echo_n "checking for $ac_word... " >&6; }
7507if ${ac_cv_prog_LIPO+:} false; then :
7508  $as_echo_n "(cached) " >&6
7509else
7510  if test -n "$LIPO"; then
7511  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7512else
7513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514for as_dir in $PATH
7515do
7516  IFS=$as_save_IFS
7517  test -z "$as_dir" && as_dir=.
7518    for ac_exec_ext in '' $ac_executable_extensions; do
7519  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522    break 2
7523  fi
7524done
7525  done
7526IFS=$as_save_IFS
7527
7528fi
7529fi
7530LIPO=$ac_cv_prog_LIPO
7531if test -n "$LIPO"; then
7532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7533$as_echo "$LIPO" >&6; }
7534else
7535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536$as_echo "no" >&6; }
7537fi
7538
7539
7540fi
7541if test -z "$ac_cv_prog_LIPO"; then
7542  ac_ct_LIPO=$LIPO
7543  # Extract the first word of "lipo", so it can be a program name with args.
7544set dummy lipo; ac_word=$2
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546$as_echo_n "checking for $ac_word... " >&6; }
7547if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7548  $as_echo_n "(cached) " >&6
7549else
7550  if test -n "$ac_ct_LIPO"; then
7551  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7552else
7553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH
7555do
7556  IFS=$as_save_IFS
7557  test -z "$as_dir" && as_dir=.
7558    for ac_exec_ext in '' $ac_executable_extensions; do
7559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560    ac_cv_prog_ac_ct_LIPO="lipo"
7561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562    break 2
7563  fi
7564done
7565  done
7566IFS=$as_save_IFS
7567
7568fi
7569fi
7570ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7571if test -n "$ac_ct_LIPO"; then
7572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7573$as_echo "$ac_ct_LIPO" >&6; }
7574else
7575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576$as_echo "no" >&6; }
7577fi
7578
7579  if test "x$ac_ct_LIPO" = x; then
7580    LIPO=":"
7581  else
7582    case $cross_compiling:$ac_tool_warned in
7583yes:)
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586ac_tool_warned=yes ;;
7587esac
7588    LIPO=$ac_ct_LIPO
7589  fi
7590else
7591  LIPO="$ac_cv_prog_LIPO"
7592fi
7593
7594    if test -n "$ac_tool_prefix"; then
7595  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7596set dummy ${ac_tool_prefix}otool; ac_word=$2
7597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598$as_echo_n "checking for $ac_word... " >&6; }
7599if ${ac_cv_prog_OTOOL+:} false; then :
7600  $as_echo_n "(cached) " >&6
7601else
7602  if test -n "$OTOOL"; then
7603  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7604else
7605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606for as_dir in $PATH
7607do
7608  IFS=$as_save_IFS
7609  test -z "$as_dir" && as_dir=.
7610    for ac_exec_ext in '' $ac_executable_extensions; do
7611  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7612    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614    break 2
7615  fi
7616done
7617  done
7618IFS=$as_save_IFS
7619
7620fi
7621fi
7622OTOOL=$ac_cv_prog_OTOOL
7623if test -n "$OTOOL"; then
7624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7625$as_echo "$OTOOL" >&6; }
7626else
7627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628$as_echo "no" >&6; }
7629fi
7630
7631
7632fi
7633if test -z "$ac_cv_prog_OTOOL"; then
7634  ac_ct_OTOOL=$OTOOL
7635  # Extract the first word of "otool", so it can be a program name with args.
7636set dummy otool; ac_word=$2
7637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638$as_echo_n "checking for $ac_word... " >&6; }
7639if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7640  $as_echo_n "(cached) " >&6
7641else
7642  if test -n "$ac_ct_OTOOL"; then
7643  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7644else
7645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646for as_dir in $PATH
7647do
7648  IFS=$as_save_IFS
7649  test -z "$as_dir" && as_dir=.
7650    for ac_exec_ext in '' $ac_executable_extensions; do
7651  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652    ac_cv_prog_ac_ct_OTOOL="otool"
7653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654    break 2
7655  fi
7656done
7657  done
7658IFS=$as_save_IFS
7659
7660fi
7661fi
7662ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7663if test -n "$ac_ct_OTOOL"; then
7664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7665$as_echo "$ac_ct_OTOOL" >&6; }
7666else
7667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668$as_echo "no" >&6; }
7669fi
7670
7671  if test "x$ac_ct_OTOOL" = x; then
7672    OTOOL=":"
7673  else
7674    case $cross_compiling:$ac_tool_warned in
7675yes:)
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7678ac_tool_warned=yes ;;
7679esac
7680    OTOOL=$ac_ct_OTOOL
7681  fi
7682else
7683  OTOOL="$ac_cv_prog_OTOOL"
7684fi
7685
7686    if test -n "$ac_tool_prefix"; then
7687  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7688set dummy ${ac_tool_prefix}otool64; ac_word=$2
7689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690$as_echo_n "checking for $ac_word... " >&6; }
7691if ${ac_cv_prog_OTOOL64+:} false; then :
7692  $as_echo_n "(cached) " >&6
7693else
7694  if test -n "$OTOOL64"; then
7695  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7696else
7697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698for as_dir in $PATH
7699do
7700  IFS=$as_save_IFS
7701  test -z "$as_dir" && as_dir=.
7702    for ac_exec_ext in '' $ac_executable_extensions; do
7703  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7704    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706    break 2
7707  fi
7708done
7709  done
7710IFS=$as_save_IFS
7711
7712fi
7713fi
7714OTOOL64=$ac_cv_prog_OTOOL64
7715if test -n "$OTOOL64"; then
7716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7717$as_echo "$OTOOL64" >&6; }
7718else
7719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720$as_echo "no" >&6; }
7721fi
7722
7723
7724fi
7725if test -z "$ac_cv_prog_OTOOL64"; then
7726  ac_ct_OTOOL64=$OTOOL64
7727  # Extract the first word of "otool64", so it can be a program name with args.
7728set dummy otool64; ac_word=$2
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730$as_echo_n "checking for $ac_word... " >&6; }
7731if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7732  $as_echo_n "(cached) " >&6
7733else
7734  if test -n "$ac_ct_OTOOL64"; then
7735  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7736else
7737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738for as_dir in $PATH
7739do
7740  IFS=$as_save_IFS
7741  test -z "$as_dir" && as_dir=.
7742    for ac_exec_ext in '' $ac_executable_extensions; do
7743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7744    ac_cv_prog_ac_ct_OTOOL64="otool64"
7745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746    break 2
7747  fi
7748done
7749  done
7750IFS=$as_save_IFS
7751
7752fi
7753fi
7754ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7755if test -n "$ac_ct_OTOOL64"; then
7756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7757$as_echo "$ac_ct_OTOOL64" >&6; }
7758else
7759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760$as_echo "no" >&6; }
7761fi
7762
7763  if test "x$ac_ct_OTOOL64" = x; then
7764    OTOOL64=":"
7765  else
7766    case $cross_compiling:$ac_tool_warned in
7767yes:)
7768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7770ac_tool_warned=yes ;;
7771esac
7772    OTOOL64=$ac_ct_OTOOL64
7773  fi
7774else
7775  OTOOL64="$ac_cv_prog_OTOOL64"
7776fi
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7805$as_echo_n "checking for -single_module linker flag... " >&6; }
7806if ${lt_cv_apple_cc_single_mod+:} false; then :
7807  $as_echo_n "(cached) " >&6
7808else
7809  lt_cv_apple_cc_single_mod=no
7810      if test -z "$LT_MULTI_MODULE"; then
7811	# By default we will add the -single_module flag. You can override
7812	# by either setting the environment variable LT_MULTI_MODULE
7813	# non-empty at configure time, or by adding -multi_module to the
7814	# link flags.
7815	rm -rf libconftest.dylib*
7816	echo "int foo(void){return 1;}" > conftest.c
7817	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7818-dynamiclib -Wl,-single_module conftest.c" >&5
7819	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7820	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7821        _lt_result=$?
7822	# If there is a non-empty error log, and "single_module"
7823	# appears in it, assume the flag caused a linker warning
7824        if test -s conftest.err && $GREP single_module conftest.err; then
7825	  cat conftest.err >&5
7826	# Otherwise, if the output was created with a 0 exit code from
7827	# the compiler, it worked.
7828	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7829	  lt_cv_apple_cc_single_mod=yes
7830	else
7831	  cat conftest.err >&5
7832	fi
7833	rm -rf libconftest.dylib*
7834	rm -f conftest.*
7835      fi
7836fi
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7838$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7839
7840    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7841$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7842if ${lt_cv_ld_exported_symbols_list+:} false; then :
7843  $as_echo_n "(cached) " >&6
7844else
7845  lt_cv_ld_exported_symbols_list=no
7846      save_LDFLAGS=$LDFLAGS
7847      echo "_main" > conftest.sym
7848      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7849      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850/* end confdefs.h.  */
7851
7852int
7853main ()
7854{
7855
7856  ;
7857  return 0;
7858}
7859_ACEOF
7860if ac_fn_c_try_link "$LINENO"; then :
7861  lt_cv_ld_exported_symbols_list=yes
7862else
7863  lt_cv_ld_exported_symbols_list=no
7864fi
7865rm -f core conftest.err conftest.$ac_objext \
7866    conftest$ac_exeext conftest.$ac_ext
7867	LDFLAGS=$save_LDFLAGS
7868
7869fi
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7871$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7872
7873    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7874$as_echo_n "checking for -force_load linker flag... " >&6; }
7875if ${lt_cv_ld_force_load+:} false; then :
7876  $as_echo_n "(cached) " >&6
7877else
7878  lt_cv_ld_force_load=no
7879      cat > conftest.c << _LT_EOF
7880int forced_loaded() { return 2;}
7881_LT_EOF
7882      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7883      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7884      echo "$AR cru libconftest.a conftest.o" >&5
7885      $AR cru libconftest.a conftest.o 2>&5
7886      echo "$RANLIB libconftest.a" >&5
7887      $RANLIB libconftest.a 2>&5
7888      cat > conftest.c << _LT_EOF
7889int main() { return 0;}
7890_LT_EOF
7891      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7892      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7893      _lt_result=$?
7894      if test -s conftest.err && $GREP force_load conftest.err; then
7895	cat conftest.err >&5
7896      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7897	lt_cv_ld_force_load=yes
7898      else
7899	cat conftest.err >&5
7900      fi
7901        rm -f conftest.err libconftest.a conftest conftest.c
7902        rm -rf conftest.dSYM
7903
7904fi
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7906$as_echo "$lt_cv_ld_force_load" >&6; }
7907    case $host_os in
7908    rhapsody* | darwin1.[012])
7909      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7910    darwin1.*)
7911      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7912    darwin*) # darwin 5.x on
7913      # if running on 10.5 or later, the deployment target defaults
7914      # to the OS version, if on x86, and 10.4, the deployment
7915      # target defaults to 10.4. Don't you love it?
7916      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7917	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7918	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7919	10.[012][,.]*)
7920	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7921	10.*)
7922	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7923      esac
7924    ;;
7925  esac
7926    if test yes = "$lt_cv_apple_cc_single_mod"; then
7927      _lt_dar_single_mod='$single_module'
7928    fi
7929    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7930      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7931    else
7932      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7933    fi
7934    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7935      _lt_dsymutil='~$DSYMUTIL $lib || :'
7936    else
7937      _lt_dsymutil=
7938    fi
7939    ;;
7940  esac
7941
7942# func_munge_path_list VARIABLE PATH
7943# -----------------------------------
7944# VARIABLE is name of variable containing _space_ separated list of
7945# directories to be munged by the contents of PATH, which is string
7946# having a format:
7947# "DIR[:DIR]:"
7948#       string "DIR[ DIR]" will be prepended to VARIABLE
7949# ":DIR[:DIR]"
7950#       string "DIR[ DIR]" will be appended to VARIABLE
7951# "DIRP[:DIRP]::[DIRA:]DIRA"
7952#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7953#       "DIRA[ DIRA]" will be appended to VARIABLE
7954# "DIR[:DIR]"
7955#       VARIABLE will be replaced by "DIR[ DIR]"
7956func_munge_path_list ()
7957{
7958    case x$2 in
7959    x)
7960        ;;
7961    *:)
7962        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7963        ;;
7964    x:*)
7965        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7966        ;;
7967    *::*)
7968        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7969        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7970        ;;
7971    *)
7972        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7973        ;;
7974    esac
7975}
7976
7977for ac_header in dlfcn.h
7978do :
7979  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7980"
7981if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7982  cat >>confdefs.h <<_ACEOF
7983#define HAVE_DLFCN_H 1
7984_ACEOF
7985
7986fi
7987
7988done
7989
7990
7991
7992
7993
7994# Set options
7995
7996
7997
7998        enable_dlopen=no
7999
8000
8001  enable_win32_dll=no
8002
8003
8004            # Check whether --enable-shared was given.
8005if test "${enable_shared+set}" = set; then :
8006  enableval=$enable_shared; p=${PACKAGE-default}
8007    case $enableval in
8008    yes) enable_shared=yes ;;
8009    no) enable_shared=no ;;
8010    *)
8011      enable_shared=no
8012      # Look at the argument we got.  We use all the common list separators.
8013      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8014      for pkg in $enableval; do
8015	IFS=$lt_save_ifs
8016	if test "X$pkg" = "X$p"; then
8017	  enable_shared=yes
8018	fi
8019      done
8020      IFS=$lt_save_ifs
8021      ;;
8022    esac
8023else
8024  enable_shared=yes
8025fi
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035  # Check whether --enable-static was given.
8036if test "${enable_static+set}" = set; then :
8037  enableval=$enable_static; p=${PACKAGE-default}
8038    case $enableval in
8039    yes) enable_static=yes ;;
8040    no) enable_static=no ;;
8041    *)
8042     enable_static=no
8043      # Look at the argument we got.  We use all the common list separators.
8044      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8045      for pkg in $enableval; do
8046	IFS=$lt_save_ifs
8047	if test "X$pkg" = "X$p"; then
8048	  enable_static=yes
8049	fi
8050      done
8051      IFS=$lt_save_ifs
8052      ;;
8053    esac
8054else
8055  enable_static=yes
8056fi
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067# Check whether --with-pic was given.
8068if test "${with_pic+set}" = set; then :
8069  withval=$with_pic; lt_p=${PACKAGE-default}
8070    case $withval in
8071    yes|no) pic_mode=$withval ;;
8072    *)
8073      pic_mode=default
8074      # Look at the argument we got.  We use all the common list separators.
8075      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8076      for lt_pkg in $withval; do
8077	IFS=$lt_save_ifs
8078	if test "X$lt_pkg" = "X$lt_p"; then
8079	  pic_mode=yes
8080	fi
8081      done
8082      IFS=$lt_save_ifs
8083      ;;
8084    esac
8085else
8086  pic_mode=default
8087fi
8088
8089
8090
8091
8092
8093
8094
8095
8096  # Check whether --enable-fast-install was given.
8097if test "${enable_fast_install+set}" = set; then :
8098  enableval=$enable_fast_install; p=${PACKAGE-default}
8099    case $enableval in
8100    yes) enable_fast_install=yes ;;
8101    no) enable_fast_install=no ;;
8102    *)
8103      enable_fast_install=no
8104      # Look at the argument we got.  We use all the common list separators.
8105      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8106      for pkg in $enableval; do
8107	IFS=$lt_save_ifs
8108	if test "X$pkg" = "X$p"; then
8109	  enable_fast_install=yes
8110	fi
8111      done
8112      IFS=$lt_save_ifs
8113      ;;
8114    esac
8115else
8116  enable_fast_install=yes
8117fi
8118
8119
8120
8121
8122
8123
8124
8125
8126  shared_archive_member_spec=
8127case $host,$enable_shared in
8128power*-*-aix[5-9]*,yes)
8129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8130$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8131
8132# Check whether --with-aix-soname was given.
8133if test "${with_aix_soname+set}" = set; then :
8134  withval=$with_aix_soname; case $withval in
8135    aix|svr4|both)
8136      ;;
8137    *)
8138      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8139      ;;
8140    esac
8141    lt_cv_with_aix_soname=$with_aix_soname
8142else
8143  if ${lt_cv_with_aix_soname+:} false; then :
8144  $as_echo_n "(cached) " >&6
8145else
8146  lt_cv_with_aix_soname=aix
8147fi
8148
8149    with_aix_soname=$lt_cv_with_aix_soname
8150fi
8151
8152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8153$as_echo "$with_aix_soname" >&6; }
8154  if test aix != "$with_aix_soname"; then
8155    # For the AIX way of multilib, we name the shared archive member
8156    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8157    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8158    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8159    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8160    if test 64 = "${OBJECT_MODE-32}"; then
8161      shared_archive_member_spec=shr_64
8162    else
8163      shared_archive_member_spec=shr
8164    fi
8165  fi
8166  ;;
8167*)
8168  with_aix_soname=aix
8169  ;;
8170esac
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181# This can be used to rebuild libtool when needed
8182LIBTOOL_DEPS=$ltmain
8183
8184# Always use our own libtool.
8185LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216test -z "$LN_S" && LN_S="ln -s"
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231if test -n "${ZSH_VERSION+set}"; then
8232   setopt NO_GLOB_SUBST
8233fi
8234
8235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8236$as_echo_n "checking for objdir... " >&6; }
8237if ${lt_cv_objdir+:} false; then :
8238  $as_echo_n "(cached) " >&6
8239else
8240  rm -f .libs 2>/dev/null
8241mkdir .libs 2>/dev/null
8242if test -d .libs; then
8243  lt_cv_objdir=.libs
8244else
8245  # MS-DOS does not allow filenames that begin with a dot.
8246  lt_cv_objdir=_libs
8247fi
8248rmdir .libs 2>/dev/null
8249fi
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8251$as_echo "$lt_cv_objdir" >&6; }
8252objdir=$lt_cv_objdir
8253
8254
8255
8256
8257
8258cat >>confdefs.h <<_ACEOF
8259#define LT_OBJDIR "$lt_cv_objdir/"
8260_ACEOF
8261
8262
8263
8264
8265case $host_os in
8266aix3*)
8267  # AIX sometimes has problems with the GCC collect2 program.  For some
8268  # reason, if we set the COLLECT_NAMES environment variable, the problems
8269  # vanish in a puff of smoke.
8270  if test set != "${COLLECT_NAMES+set}"; then
8271    COLLECT_NAMES=
8272    export COLLECT_NAMES
8273  fi
8274  ;;
8275esac
8276
8277# Global variables:
8278ofile=libtool
8279can_build_shared=yes
8280
8281# All known linkers require a '.a' archive for static linking (except MSVC,
8282# which needs '.lib').
8283libext=a
8284
8285with_gnu_ld=$lt_cv_prog_gnu_ld
8286
8287old_CC=$CC
8288old_CFLAGS=$CFLAGS
8289
8290# Set sane defaults for various variables
8291test -z "$CC" && CC=cc
8292test -z "$LTCC" && LTCC=$CC
8293test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8294test -z "$LD" && LD=ld
8295test -z "$ac_objext" && ac_objext=o
8296
8297func_cc_basename $compiler
8298cc_basename=$func_cc_basename_result
8299
8300
8301# Only perform the check for file, if the check method requires it
8302test -z "$MAGIC_CMD" && MAGIC_CMD=file
8303case $deplibs_check_method in
8304file_magic*)
8305  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8306    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8307$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8308if ${lt_cv_path_MAGIC_CMD+:} false; then :
8309  $as_echo_n "(cached) " >&6
8310else
8311  case $MAGIC_CMD in
8312[\\/*] |  ?:[\\/]*)
8313  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8314  ;;
8315*)
8316  lt_save_MAGIC_CMD=$MAGIC_CMD
8317  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8318  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8319  for ac_dir in $ac_dummy; do
8320    IFS=$lt_save_ifs
8321    test -z "$ac_dir" && ac_dir=.
8322    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8323      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8324      if test -n "$file_magic_test_file"; then
8325	case $deplibs_check_method in
8326	"file_magic "*)
8327	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8328	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8329	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8330	    $EGREP "$file_magic_regex" > /dev/null; then
8331	    :
8332	  else
8333	    cat <<_LT_EOF 1>&2
8334
8335*** Warning: the command libtool uses to detect shared libraries,
8336*** $file_magic_cmd, produces output that libtool cannot recognize.
8337*** The result is that libtool may fail to recognize shared libraries
8338*** as such.  This will affect the creation of libtool libraries that
8339*** depend on shared libraries, but programs linked with such libtool
8340*** libraries will work regardless of this problem.  Nevertheless, you
8341*** may want to report the problem to your system manager and/or to
8342*** bug-libtool@gnu.org
8343
8344_LT_EOF
8345	  fi ;;
8346	esac
8347      fi
8348      break
8349    fi
8350  done
8351  IFS=$lt_save_ifs
8352  MAGIC_CMD=$lt_save_MAGIC_CMD
8353  ;;
8354esac
8355fi
8356
8357MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8358if test -n "$MAGIC_CMD"; then
8359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8360$as_echo "$MAGIC_CMD" >&6; }
8361else
8362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363$as_echo "no" >&6; }
8364fi
8365
8366
8367
8368
8369
8370if test -z "$lt_cv_path_MAGIC_CMD"; then
8371  if test -n "$ac_tool_prefix"; then
8372    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8373$as_echo_n "checking for file... " >&6; }
8374if ${lt_cv_path_MAGIC_CMD+:} false; then :
8375  $as_echo_n "(cached) " >&6
8376else
8377  case $MAGIC_CMD in
8378[\\/*] |  ?:[\\/]*)
8379  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8380  ;;
8381*)
8382  lt_save_MAGIC_CMD=$MAGIC_CMD
8383  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8384  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8385  for ac_dir in $ac_dummy; do
8386    IFS=$lt_save_ifs
8387    test -z "$ac_dir" && ac_dir=.
8388    if test -f "$ac_dir/file"; then
8389      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8390      if test -n "$file_magic_test_file"; then
8391	case $deplibs_check_method in
8392	"file_magic "*)
8393	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8394	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8395	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8396	    $EGREP "$file_magic_regex" > /dev/null; then
8397	    :
8398	  else
8399	    cat <<_LT_EOF 1>&2
8400
8401*** Warning: the command libtool uses to detect shared libraries,
8402*** $file_magic_cmd, produces output that libtool cannot recognize.
8403*** The result is that libtool may fail to recognize shared libraries
8404*** as such.  This will affect the creation of libtool libraries that
8405*** depend on shared libraries, but programs linked with such libtool
8406*** libraries will work regardless of this problem.  Nevertheless, you
8407*** may want to report the problem to your system manager and/or to
8408*** bug-libtool@gnu.org
8409
8410_LT_EOF
8411	  fi ;;
8412	esac
8413      fi
8414      break
8415    fi
8416  done
8417  IFS=$lt_save_ifs
8418  MAGIC_CMD=$lt_save_MAGIC_CMD
8419  ;;
8420esac
8421fi
8422
8423MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8424if test -n "$MAGIC_CMD"; then
8425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8426$as_echo "$MAGIC_CMD" >&6; }
8427else
8428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8429$as_echo "no" >&6; }
8430fi
8431
8432
8433  else
8434    MAGIC_CMD=:
8435  fi
8436fi
8437
8438  fi
8439  ;;
8440esac
8441
8442# Use C for the default configuration in the libtool script
8443
8444lt_save_CC=$CC
8445ac_ext=c
8446ac_cpp='$CPP $CPPFLAGS'
8447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8449ac_compiler_gnu=$ac_cv_c_compiler_gnu
8450
8451
8452# Source file extension for C test sources.
8453ac_ext=c
8454
8455# Object file extension for compiled C test sources.
8456objext=o
8457objext=$objext
8458
8459# Code to be used in simple compile tests
8460lt_simple_compile_test_code="int some_variable = 0;"
8461
8462# Code to be used in simple link tests
8463lt_simple_link_test_code='int main(){return(0);}'
8464
8465
8466
8467
8468
8469
8470
8471# If no C compiler was specified, use CC.
8472LTCC=${LTCC-"$CC"}
8473
8474# If no C compiler flags were specified, use CFLAGS.
8475LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8476
8477# Allow CC to be a program name with arguments.
8478compiler=$CC
8479
8480# Save the default compiler, since it gets overwritten when the other
8481# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8482compiler_DEFAULT=$CC
8483
8484# save warnings/boilerplate of simple test code
8485ac_outfile=conftest.$ac_objext
8486echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8487eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8488_lt_compiler_boilerplate=`cat conftest.err`
8489$RM conftest*
8490
8491ac_outfile=conftest.$ac_objext
8492echo "$lt_simple_link_test_code" >conftest.$ac_ext
8493eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8494_lt_linker_boilerplate=`cat conftest.err`
8495$RM -r conftest*
8496
8497
8498## CAVEAT EMPTOR:
8499## There is no encapsulation within the following macros, do not change
8500## the running order or otherwise move them around unless you know exactly
8501## what you are doing...
8502if test -n "$compiler"; then
8503
8504lt_prog_compiler_no_builtin_flag=
8505
8506if test yes = "$GCC"; then
8507  case $cc_basename in
8508  nvcc*)
8509    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8510  *)
8511    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8512  esac
8513
8514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8515$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8516if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8517  $as_echo_n "(cached) " >&6
8518else
8519  lt_cv_prog_compiler_rtti_exceptions=no
8520   ac_outfile=conftest.$ac_objext
8521   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8522   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8523   # Insert the option either (1) after the last *FLAGS variable, or
8524   # (2) before a word containing "conftest.", or (3) at the end.
8525   # Note that $ac_compile itself does not contain backslashes and begins
8526   # with a dollar sign (not a hyphen), so the echo should work correctly.
8527   # The option is referenced via a variable to avoid confusing sed.
8528   lt_compile=`echo "$ac_compile" | $SED \
8529   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8530   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8531   -e 's:$: $lt_compiler_flag:'`
8532   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8533   (eval "$lt_compile" 2>conftest.err)
8534   ac_status=$?
8535   cat conftest.err >&5
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   if (exit $ac_status) && test -s "$ac_outfile"; then
8538     # The compiler can only warn and ignore the option if not recognized
8539     # So say no if there are warnings other than the usual output.
8540     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8541     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8542     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8543       lt_cv_prog_compiler_rtti_exceptions=yes
8544     fi
8545   fi
8546   $RM conftest*
8547
8548fi
8549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8550$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8551
8552if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8553    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8554else
8555    :
8556fi
8557
8558fi
8559
8560
8561
8562
8563
8564
8565  lt_prog_compiler_wl=
8566lt_prog_compiler_pic=
8567lt_prog_compiler_static=
8568
8569
8570  if test yes = "$GCC"; then
8571    lt_prog_compiler_wl='-Wl,'
8572    lt_prog_compiler_static='-static'
8573
8574    case $host_os in
8575      aix*)
8576      # All AIX code is PIC.
8577      if test ia64 = "$host_cpu"; then
8578	# AIX 5 now supports IA64 processor
8579	lt_prog_compiler_static='-Bstatic'
8580      fi
8581      lt_prog_compiler_pic='-fPIC'
8582      ;;
8583
8584    amigaos*)
8585      case $host_cpu in
8586      powerpc)
8587            # see comment about AmigaOS4 .so support
8588            lt_prog_compiler_pic='-fPIC'
8589        ;;
8590      m68k)
8591            # FIXME: we need at least 68020 code to build shared libraries, but
8592            # adding the '-m68020' flag to GCC prevents building anything better,
8593            # like '-m68040'.
8594            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8595        ;;
8596      esac
8597      ;;
8598
8599    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8600      # PIC is the default for these OSes.
8601      ;;
8602
8603    mingw* | cygwin* | pw32* | os2* | cegcc*)
8604      # This hack is so that the source file can tell whether it is being
8605      # built for inclusion in a dll (and should export symbols for example).
8606      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8607      # (--disable-auto-import) libraries
8608      lt_prog_compiler_pic='-DDLL_EXPORT'
8609      case $host_os in
8610      os2*)
8611	lt_prog_compiler_static='$wl-static'
8612	;;
8613      esac
8614      ;;
8615
8616    darwin* | rhapsody*)
8617      # PIC is the default on this platform
8618      # Common symbols not allowed in MH_DYLIB files
8619      lt_prog_compiler_pic='-fno-common'
8620      ;;
8621
8622    haiku*)
8623      # PIC is the default for Haiku.
8624      # The "-static" flag exists, but is broken.
8625      lt_prog_compiler_static=
8626      ;;
8627
8628    hpux*)
8629      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8630      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8631      # sets the default TLS model and affects inlining.
8632      case $host_cpu in
8633      hppa*64*)
8634	# +Z the default
8635	;;
8636      *)
8637	lt_prog_compiler_pic='-fPIC'
8638	;;
8639      esac
8640      ;;
8641
8642    interix[3-9]*)
8643      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8644      # Instead, we relocate shared libraries at runtime.
8645      ;;
8646
8647    msdosdjgpp*)
8648      # Just because we use GCC doesn't mean we suddenly get shared libraries
8649      # on systems that don't support them.
8650      lt_prog_compiler_can_build_shared=no
8651      enable_shared=no
8652      ;;
8653
8654    *nto* | *qnx*)
8655      # QNX uses GNU C++, but need to define -shared option too, otherwise
8656      # it will coredump.
8657      lt_prog_compiler_pic='-fPIC -shared'
8658      ;;
8659
8660    sysv4*MP*)
8661      if test -d /usr/nec; then
8662	lt_prog_compiler_pic=-Kconform_pic
8663      fi
8664      ;;
8665
8666    *)
8667      lt_prog_compiler_pic='-fPIC'
8668      ;;
8669    esac
8670
8671    case $cc_basename in
8672    nvcc*) # Cuda Compiler Driver 2.2
8673      lt_prog_compiler_wl='-Xlinker '
8674      if test -n "$lt_prog_compiler_pic"; then
8675        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8676      fi
8677      ;;
8678    esac
8679  else
8680    # PORTME Check for flag to pass linker flags through the system compiler.
8681    case $host_os in
8682    aix*)
8683      lt_prog_compiler_wl='-Wl,'
8684      if test ia64 = "$host_cpu"; then
8685	# AIX 5 now supports IA64 processor
8686	lt_prog_compiler_static='-Bstatic'
8687      else
8688	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8689      fi
8690      ;;
8691
8692    darwin* | rhapsody*)
8693      # PIC is the default on this platform
8694      # Common symbols not allowed in MH_DYLIB files
8695      lt_prog_compiler_pic='-fno-common'
8696      case $cc_basename in
8697      nagfor*)
8698        # NAG Fortran compiler
8699        lt_prog_compiler_wl='-Wl,-Wl,,'
8700        lt_prog_compiler_pic='-PIC'
8701        lt_prog_compiler_static='-Bstatic'
8702        ;;
8703      esac
8704      ;;
8705
8706    mingw* | cygwin* | pw32* | os2* | cegcc*)
8707      # This hack is so that the source file can tell whether it is being
8708      # built for inclusion in a dll (and should export symbols for example).
8709      lt_prog_compiler_pic='-DDLL_EXPORT'
8710      case $host_os in
8711      os2*)
8712	lt_prog_compiler_static='$wl-static'
8713	;;
8714      esac
8715      ;;
8716
8717    hpux9* | hpux10* | hpux11*)
8718      lt_prog_compiler_wl='-Wl,'
8719      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8720      # not for PA HP-UX.
8721      case $host_cpu in
8722      hppa*64*|ia64*)
8723	# +Z the default
8724	;;
8725      *)
8726	lt_prog_compiler_pic='+Z'
8727	;;
8728      esac
8729      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8730      lt_prog_compiler_static='$wl-a ${wl}archive'
8731      ;;
8732
8733    irix5* | irix6* | nonstopux*)
8734      lt_prog_compiler_wl='-Wl,'
8735      # PIC (with -KPIC) is the default.
8736      lt_prog_compiler_static='-non_shared'
8737      ;;
8738
8739    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8740      case $cc_basename in
8741      # old Intel for x86_64, which still supported -KPIC.
8742      ecc*)
8743	lt_prog_compiler_wl='-Wl,'
8744	lt_prog_compiler_pic='-KPIC'
8745	lt_prog_compiler_static='-static'
8746        ;;
8747      # icc used to be incompatible with GCC.
8748      # ICC 10 doesn't accept -KPIC any more.
8749      icc* | ifort*)
8750	lt_prog_compiler_wl='-Wl,'
8751	lt_prog_compiler_pic='-fPIC'
8752	lt_prog_compiler_static='-static'
8753        ;;
8754      # Lahey Fortran 8.1.
8755      lf95*)
8756	lt_prog_compiler_wl='-Wl,'
8757	lt_prog_compiler_pic='--shared'
8758	lt_prog_compiler_static='--static'
8759	;;
8760      nagfor*)
8761	# NAG Fortran compiler
8762	lt_prog_compiler_wl='-Wl,-Wl,,'
8763	lt_prog_compiler_pic='-PIC'
8764	lt_prog_compiler_static='-Bstatic'
8765	;;
8766      tcc*)
8767	# Fabrice Bellard et al's Tiny C Compiler
8768	lt_prog_compiler_wl='-Wl,'
8769	lt_prog_compiler_pic='-fPIC'
8770	lt_prog_compiler_static='-static'
8771	;;
8772      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8773        # Portland Group compilers (*not* the Pentium gcc compiler,
8774	# which looks to be a dead project)
8775	lt_prog_compiler_wl='-Wl,'
8776	lt_prog_compiler_pic='-fpic'
8777	lt_prog_compiler_static='-Bstatic'
8778        ;;
8779      ccc*)
8780        lt_prog_compiler_wl='-Wl,'
8781        # All Alpha code is PIC.
8782        lt_prog_compiler_static='-non_shared'
8783        ;;
8784      xl* | bgxl* | bgf* | mpixl*)
8785	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8786	lt_prog_compiler_wl='-Wl,'
8787	lt_prog_compiler_pic='-qpic'
8788	lt_prog_compiler_static='-qstaticlink'
8789	;;
8790      *)
8791	case `$CC -V 2>&1 | sed 5q` in
8792	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8793	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8794	  lt_prog_compiler_pic='-KPIC'
8795	  lt_prog_compiler_static='-Bstatic'
8796	  lt_prog_compiler_wl=''
8797	  ;;
8798	*Sun\ F* | *Sun*Fortran*)
8799	  lt_prog_compiler_pic='-KPIC'
8800	  lt_prog_compiler_static='-Bstatic'
8801	  lt_prog_compiler_wl='-Qoption ld '
8802	  ;;
8803	*Sun\ C*)
8804	  # Sun C 5.9
8805	  lt_prog_compiler_pic='-KPIC'
8806	  lt_prog_compiler_static='-Bstatic'
8807	  lt_prog_compiler_wl='-Wl,'
8808	  ;;
8809        *Intel*\ [CF]*Compiler*)
8810	  lt_prog_compiler_wl='-Wl,'
8811	  lt_prog_compiler_pic='-fPIC'
8812	  lt_prog_compiler_static='-static'
8813	  ;;
8814	*Portland\ Group*)
8815	  lt_prog_compiler_wl='-Wl,'
8816	  lt_prog_compiler_pic='-fpic'
8817	  lt_prog_compiler_static='-Bstatic'
8818	  ;;
8819	esac
8820	;;
8821      esac
8822      ;;
8823
8824    newsos6)
8825      lt_prog_compiler_pic='-KPIC'
8826      lt_prog_compiler_static='-Bstatic'
8827      ;;
8828
8829    *nto* | *qnx*)
8830      # QNX uses GNU C++, but need to define -shared option too, otherwise
8831      # it will coredump.
8832      lt_prog_compiler_pic='-fPIC -shared'
8833      ;;
8834
8835    osf3* | osf4* | osf5*)
8836      lt_prog_compiler_wl='-Wl,'
8837      # All OSF/1 code is PIC.
8838      lt_prog_compiler_static='-non_shared'
8839      ;;
8840
8841    rdos*)
8842      lt_prog_compiler_static='-non_shared'
8843      ;;
8844
8845    solaris*)
8846      lt_prog_compiler_pic='-KPIC'
8847      lt_prog_compiler_static='-Bstatic'
8848      case $cc_basename in
8849      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8850	lt_prog_compiler_wl='-Qoption ld ';;
8851      *)
8852	lt_prog_compiler_wl='-Wl,';;
8853      esac
8854      ;;
8855
8856    sunos4*)
8857      lt_prog_compiler_wl='-Qoption ld '
8858      lt_prog_compiler_pic='-PIC'
8859      lt_prog_compiler_static='-Bstatic'
8860      ;;
8861
8862    sysv4 | sysv4.2uw2* | sysv4.3*)
8863      lt_prog_compiler_wl='-Wl,'
8864      lt_prog_compiler_pic='-KPIC'
8865      lt_prog_compiler_static='-Bstatic'
8866      ;;
8867
8868    sysv4*MP*)
8869      if test -d /usr/nec; then
8870	lt_prog_compiler_pic='-Kconform_pic'
8871	lt_prog_compiler_static='-Bstatic'
8872      fi
8873      ;;
8874
8875    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8876      lt_prog_compiler_wl='-Wl,'
8877      lt_prog_compiler_pic='-KPIC'
8878      lt_prog_compiler_static='-Bstatic'
8879      ;;
8880
8881    unicos*)
8882      lt_prog_compiler_wl='-Wl,'
8883      lt_prog_compiler_can_build_shared=no
8884      ;;
8885
8886    uts4*)
8887      lt_prog_compiler_pic='-pic'
8888      lt_prog_compiler_static='-Bstatic'
8889      ;;
8890
8891    *)
8892      lt_prog_compiler_can_build_shared=no
8893      ;;
8894    esac
8895  fi
8896
8897case $host_os in
8898  # For platforms that do not support PIC, -DPIC is meaningless:
8899  *djgpp*)
8900    lt_prog_compiler_pic=
8901    ;;
8902  *)
8903    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8904    ;;
8905esac
8906
8907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8908$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8909if ${lt_cv_prog_compiler_pic+:} false; then :
8910  $as_echo_n "(cached) " >&6
8911else
8912  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8913fi
8914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8915$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8916lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8917
8918#
8919# Check to make sure the PIC flag actually works.
8920#
8921if test -n "$lt_prog_compiler_pic"; then
8922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8923$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8924if ${lt_cv_prog_compiler_pic_works+:} false; then :
8925  $as_echo_n "(cached) " >&6
8926else
8927  lt_cv_prog_compiler_pic_works=no
8928   ac_outfile=conftest.$ac_objext
8929   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8930   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8931   # Insert the option either (1) after the last *FLAGS variable, or
8932   # (2) before a word containing "conftest.", or (3) at the end.
8933   # Note that $ac_compile itself does not contain backslashes and begins
8934   # with a dollar sign (not a hyphen), so the echo should work correctly.
8935   # The option is referenced via a variable to avoid confusing sed.
8936   lt_compile=`echo "$ac_compile" | $SED \
8937   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8938   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8939   -e 's:$: $lt_compiler_flag:'`
8940   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8941   (eval "$lt_compile" 2>conftest.err)
8942   ac_status=$?
8943   cat conftest.err >&5
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   if (exit $ac_status) && test -s "$ac_outfile"; then
8946     # The compiler can only warn and ignore the option if not recognized
8947     # So say no if there are warnings other than the usual output.
8948     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8949     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8950     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8951       lt_cv_prog_compiler_pic_works=yes
8952     fi
8953   fi
8954   $RM conftest*
8955
8956fi
8957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8958$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8959
8960if test yes = "$lt_cv_prog_compiler_pic_works"; then
8961    case $lt_prog_compiler_pic in
8962     "" | " "*) ;;
8963     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8964     esac
8965else
8966    lt_prog_compiler_pic=
8967     lt_prog_compiler_can_build_shared=no
8968fi
8969
8970fi
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982#
8983# Check to make sure the static flag actually works.
8984#
8985wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8987$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8988if ${lt_cv_prog_compiler_static_works+:} false; then :
8989  $as_echo_n "(cached) " >&6
8990else
8991  lt_cv_prog_compiler_static_works=no
8992   save_LDFLAGS=$LDFLAGS
8993   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8994   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8995   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8996     # The linker can only warn and ignore the option if not recognized
8997     # So say no if there are warnings
8998     if test -s conftest.err; then
8999       # Append any errors to the config.log.
9000       cat conftest.err 1>&5
9001       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9002       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9003       if diff conftest.exp conftest.er2 >/dev/null; then
9004         lt_cv_prog_compiler_static_works=yes
9005       fi
9006     else
9007       lt_cv_prog_compiler_static_works=yes
9008     fi
9009   fi
9010   $RM -r conftest*
9011   LDFLAGS=$save_LDFLAGS
9012
9013fi
9014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9015$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9016
9017if test yes = "$lt_cv_prog_compiler_static_works"; then
9018    :
9019else
9020    lt_prog_compiler_static=
9021fi
9022
9023
9024
9025
9026
9027
9028
9029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9030$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9031if ${lt_cv_prog_compiler_c_o+:} false; then :
9032  $as_echo_n "(cached) " >&6
9033else
9034  lt_cv_prog_compiler_c_o=no
9035   $RM -r conftest 2>/dev/null
9036   mkdir conftest
9037   cd conftest
9038   mkdir out
9039   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9040
9041   lt_compiler_flag="-o out/conftest2.$ac_objext"
9042   # Insert the option either (1) after the last *FLAGS variable, or
9043   # (2) before a word containing "conftest.", or (3) at the end.
9044   # Note that $ac_compile itself does not contain backslashes and begins
9045   # with a dollar sign (not a hyphen), so the echo should work correctly.
9046   lt_compile=`echo "$ac_compile" | $SED \
9047   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9048   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9049   -e 's:$: $lt_compiler_flag:'`
9050   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9051   (eval "$lt_compile" 2>out/conftest.err)
9052   ac_status=$?
9053   cat out/conftest.err >&5
9054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9056   then
9057     # The compiler can only warn and ignore the option if not recognized
9058     # So say no if there are warnings
9059     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9060     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9061     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9062       lt_cv_prog_compiler_c_o=yes
9063     fi
9064   fi
9065   chmod u+w . 2>&5
9066   $RM conftest*
9067   # SGI C++ compiler will create directory out/ii_files/ for
9068   # template instantiation
9069   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9070   $RM out/* && rmdir out
9071   cd ..
9072   $RM -r conftest
9073   $RM conftest*
9074
9075fi
9076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9077$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9078
9079
9080
9081
9082
9083
9084  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9085$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9086if ${lt_cv_prog_compiler_c_o+:} false; then :
9087  $as_echo_n "(cached) " >&6
9088else
9089  lt_cv_prog_compiler_c_o=no
9090   $RM -r conftest 2>/dev/null
9091   mkdir conftest
9092   cd conftest
9093   mkdir out
9094   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9095
9096   lt_compiler_flag="-o out/conftest2.$ac_objext"
9097   # Insert the option either (1) after the last *FLAGS variable, or
9098   # (2) before a word containing "conftest.", or (3) at the end.
9099   # Note that $ac_compile itself does not contain backslashes and begins
9100   # with a dollar sign (not a hyphen), so the echo should work correctly.
9101   lt_compile=`echo "$ac_compile" | $SED \
9102   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9103   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9104   -e 's:$: $lt_compiler_flag:'`
9105   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9106   (eval "$lt_compile" 2>out/conftest.err)
9107   ac_status=$?
9108   cat out/conftest.err >&5
9109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9111   then
9112     # The compiler can only warn and ignore the option if not recognized
9113     # So say no if there are warnings
9114     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9115     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9116     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9117       lt_cv_prog_compiler_c_o=yes
9118     fi
9119   fi
9120   chmod u+w . 2>&5
9121   $RM conftest*
9122   # SGI C++ compiler will create directory out/ii_files/ for
9123   # template instantiation
9124   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9125   $RM out/* && rmdir out
9126   cd ..
9127   $RM -r conftest
9128   $RM conftest*
9129
9130fi
9131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9132$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9133
9134
9135
9136
9137hard_links=nottested
9138if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9139  # do not overwrite the value of need_locks provided by the user
9140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9141$as_echo_n "checking if we can lock with hard links... " >&6; }
9142  hard_links=yes
9143  $RM conftest*
9144  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9145  touch conftest.a
9146  ln conftest.a conftest.b 2>&5 || hard_links=no
9147  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9149$as_echo "$hard_links" >&6; }
9150  if test no = "$hard_links"; then
9151    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9152$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9153    need_locks=warn
9154  fi
9155else
9156  need_locks=no
9157fi
9158
9159
9160
9161
9162
9163
9164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9165$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9166
9167  runpath_var=
9168  allow_undefined_flag=
9169  always_export_symbols=no
9170  archive_cmds=
9171  archive_expsym_cmds=
9172  compiler_needs_object=no
9173  enable_shared_with_static_runtimes=no
9174  export_dynamic_flag_spec=
9175  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9176  hardcode_automatic=no
9177  hardcode_direct=no
9178  hardcode_direct_absolute=no
9179  hardcode_libdir_flag_spec=
9180  hardcode_libdir_separator=
9181  hardcode_minus_L=no
9182  hardcode_shlibpath_var=unsupported
9183  inherit_rpath=no
9184  link_all_deplibs=unknown
9185  module_cmds=
9186  module_expsym_cmds=
9187  old_archive_from_new_cmds=
9188  old_archive_from_expsyms_cmds=
9189  thread_safe_flag_spec=
9190  whole_archive_flag_spec=
9191  # include_expsyms should be a list of space-separated symbols to be *always*
9192  # included in the symbol list
9193  include_expsyms=
9194  # exclude_expsyms can be an extended regexp of symbols to exclude
9195  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9196  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9197  # as well as any symbol that contains 'd'.
9198  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9199  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9200  # platforms (ab)use it in PIC code, but their linkers get confused if
9201  # the symbol is explicitly referenced.  Since portable code cannot
9202  # rely on this symbol name, it's probably fine to never include it in
9203  # preloaded symbol tables.
9204  # Exclude shared library initialization/finalization symbols.
9205  extract_expsyms_cmds=
9206
9207  case $host_os in
9208  cygwin* | mingw* | pw32* | cegcc*)
9209    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9210    # When not using gcc, we currently assume that we are using
9211    # Microsoft Visual C++.
9212    if test yes != "$GCC"; then
9213      with_gnu_ld=no
9214    fi
9215    ;;
9216  interix*)
9217    # we just hope/assume this is gcc and not c89 (= MSVC++)
9218    with_gnu_ld=yes
9219    ;;
9220  openbsd* | bitrig*)
9221    with_gnu_ld=no
9222    ;;
9223  esac
9224
9225  ld_shlibs=yes
9226
9227  # On some targets, GNU ld is compatible enough with the native linker
9228  # that we're better off using the native interface for both.
9229  lt_use_gnu_ld_interface=no
9230  if test yes = "$with_gnu_ld"; then
9231    case $host_os in
9232      aix*)
9233	# The AIX port of GNU ld has always aspired to compatibility
9234	# with the native linker.  However, as the warning in the GNU ld
9235	# block says, versions before 2.19.5* couldn't really create working
9236	# shared libraries, regardless of the interface used.
9237	case `$LD -v 2>&1` in
9238	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9239	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9240	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9241	  *)
9242	    lt_use_gnu_ld_interface=yes
9243	    ;;
9244	esac
9245	;;
9246      *)
9247	lt_use_gnu_ld_interface=yes
9248	;;
9249    esac
9250  fi
9251
9252  if test yes = "$lt_use_gnu_ld_interface"; then
9253    # If archive_cmds runs LD, not CC, wlarc should be empty
9254    wlarc='$wl'
9255
9256    # Set some defaults for GNU ld with shared library support. These
9257    # are reset later if shared libraries are not supported. Putting them
9258    # here allows them to be overridden if necessary.
9259    runpath_var=LD_RUN_PATH
9260    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9261    export_dynamic_flag_spec='$wl--export-dynamic'
9262    # ancient GNU ld didn't support --whole-archive et. al.
9263    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9264      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9265    else
9266      whole_archive_flag_spec=
9267    fi
9268    supports_anon_versioning=no
9269    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9270      *GNU\ gold*) supports_anon_versioning=yes ;;
9271      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9272      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9273      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9274      *\ 2.11.*) ;; # other 2.11 versions
9275      *) supports_anon_versioning=yes ;;
9276    esac
9277
9278    # See if GNU ld supports shared libraries.
9279    case $host_os in
9280    aix[3-9]*)
9281      # On AIX/PPC, the GNU linker is very broken
9282      if test ia64 != "$host_cpu"; then
9283	ld_shlibs=no
9284	cat <<_LT_EOF 1>&2
9285
9286*** Warning: the GNU linker, at least up to release 2.19, is reported
9287*** to be unable to reliably create shared libraries on AIX.
9288*** Therefore, libtool is disabling shared libraries support.  If you
9289*** really care for shared libraries, you may want to install binutils
9290*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9291*** You will then need to restart the configuration process.
9292
9293_LT_EOF
9294      fi
9295      ;;
9296
9297    amigaos*)
9298      case $host_cpu in
9299      powerpc)
9300            # see comment about AmigaOS4 .so support
9301            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9302            archive_expsym_cmds=''
9303        ;;
9304      m68k)
9305            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)'
9306            hardcode_libdir_flag_spec='-L$libdir'
9307            hardcode_minus_L=yes
9308        ;;
9309      esac
9310      ;;
9311
9312    beos*)
9313      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9314	allow_undefined_flag=unsupported
9315	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9316	# support --undefined.  This deserves some investigation.  FIXME
9317	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9318      else
9319	ld_shlibs=no
9320      fi
9321      ;;
9322
9323    cygwin* | mingw* | pw32* | cegcc*)
9324      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9325      # as there is no search path for DLLs.
9326      hardcode_libdir_flag_spec='-L$libdir'
9327      export_dynamic_flag_spec='$wl--export-all-symbols'
9328      allow_undefined_flag=unsupported
9329      always_export_symbols=no
9330      enable_shared_with_static_runtimes=yes
9331      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'
9332      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9333
9334      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9335        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9336	# If the export-symbols file already is a .def file, use it as
9337	# is; otherwise, prepend EXPORTS...
9338	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9339          cp $export_symbols $output_objdir/$soname.def;
9340        else
9341          echo EXPORTS > $output_objdir/$soname.def;
9342          cat $export_symbols >> $output_objdir/$soname.def;
9343        fi~
9344        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9345      else
9346	ld_shlibs=no
9347      fi
9348      ;;
9349
9350    haiku*)
9351      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9352      link_all_deplibs=yes
9353      ;;
9354
9355    os2*)
9356      hardcode_libdir_flag_spec='-L$libdir'
9357      hardcode_minus_L=yes
9358      allow_undefined_flag=unsupported
9359      shrext_cmds=.dll
9360      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9361	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9362	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9363	$ECHO EXPORTS >> $output_objdir/$libname.def~
9364	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9365	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9366	emximp -o $lib $output_objdir/$libname.def'
9367      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9368	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9369	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9370	$ECHO EXPORTS >> $output_objdir/$libname.def~
9371	prefix_cmds="$SED"~
9372	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9373	  prefix_cmds="$prefix_cmds -e 1d";
9374	fi~
9375	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9376	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9377	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9378	emximp -o $lib $output_objdir/$libname.def'
9379      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9380      enable_shared_with_static_runtimes=yes
9381      ;;
9382
9383    interix[3-9]*)
9384      hardcode_direct=no
9385      hardcode_shlibpath_var=no
9386      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9387      export_dynamic_flag_spec='$wl-E'
9388      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9389      # Instead, shared libraries are loaded at an image base (0x10000000 by
9390      # default) and relocated if they conflict, which is a slow very memory
9391      # consuming and fragmenting process.  To avoid this, we pick a random,
9392      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9393      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9394      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9395      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'
9396      ;;
9397
9398    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9399      tmp_diet=no
9400      if test linux-dietlibc = "$host_os"; then
9401	case $cc_basename in
9402	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9403	esac
9404      fi
9405      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9406	 && test no = "$tmp_diet"
9407      then
9408	tmp_addflag=' $pic_flag'
9409	tmp_sharedflag='-shared'
9410	case $cc_basename,$host_cpu in
9411        pgcc*)				# Portland Group C compiler
9412	  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'
9413	  tmp_addflag=' $pic_flag'
9414	  ;;
9415	pgf77* | pgf90* | pgf95* | pgfortran*)
9416					# Portland Group f77 and f90 compilers
9417	  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'
9418	  tmp_addflag=' $pic_flag -Mnomain' ;;
9419	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9420	  tmp_addflag=' -i_dynamic' ;;
9421	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9422	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9423	ifc* | ifort*)			# Intel Fortran compiler
9424	  tmp_addflag=' -nofor_main' ;;
9425	lf95*)				# Lahey Fortran 8.1
9426	  whole_archive_flag_spec=
9427	  tmp_sharedflag='--shared' ;;
9428        nagfor*)                        # NAGFOR 5.3
9429          tmp_sharedflag='-Wl,-shared' ;;
9430	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9431	  tmp_sharedflag='-qmkshrobj'
9432	  tmp_addflag= ;;
9433	nvcc*)	# Cuda Compiler Driver 2.2
9434	  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'
9435	  compiler_needs_object=yes
9436	  ;;
9437	esac
9438	case `$CC -V 2>&1 | sed 5q` in
9439	*Sun\ C*)			# Sun C 5.9
9440	  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'
9441	  compiler_needs_object=yes
9442	  tmp_sharedflag='-G' ;;
9443	*Sun\ F*)			# Sun Fortran 8.3
9444	  tmp_sharedflag='-G' ;;
9445	esac
9446	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9447
9448        if test yes = "$supports_anon_versioning"; then
9449          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9450            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9451            echo "local: *; };" >> $output_objdir/$libname.ver~
9452            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9453        fi
9454
9455	case $cc_basename in
9456	tcc*)
9457	  export_dynamic_flag_spec='-rdynamic'
9458	  ;;
9459	xlf* | bgf* | bgxlf* | mpixlf*)
9460	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9461	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9462	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9463	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9464	  if test yes = "$supports_anon_versioning"; then
9465	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9466              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9467              echo "local: *; };" >> $output_objdir/$libname.ver~
9468              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9469	  fi
9470	  ;;
9471	esac
9472      else
9473        ld_shlibs=no
9474      fi
9475      ;;
9476
9477    netbsd*)
9478      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9479	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9480	wlarc=
9481      else
9482	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9483	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9484      fi
9485      ;;
9486
9487    solaris*)
9488      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9489	ld_shlibs=no
9490	cat <<_LT_EOF 1>&2
9491
9492*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9493*** create shared libraries on Solaris systems.  Therefore, libtool
9494*** is disabling shared libraries support.  We urge you to upgrade GNU
9495*** binutils to release 2.9.1 or newer.  Another option is to modify
9496*** your PATH or compiler configuration so that the native linker is
9497*** used, and then restart.
9498
9499_LT_EOF
9500      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9501	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9502	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9503      else
9504	ld_shlibs=no
9505      fi
9506      ;;
9507
9508    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9509      case `$LD -v 2>&1` in
9510        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9511	ld_shlibs=no
9512	cat <<_LT_EOF 1>&2
9513
9514*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9515*** reliably create shared libraries on SCO systems.  Therefore, libtool
9516*** is disabling shared libraries support.  We urge you to upgrade GNU
9517*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9518*** your PATH or compiler configuration so that the native linker is
9519*** used, and then restart.
9520
9521_LT_EOF
9522	;;
9523	*)
9524	  # For security reasons, it is highly recommended that you always
9525	  # use absolute paths for naming shared libraries, and exclude the
9526	  # DT_RUNPATH tag from executables and libraries.  But doing so
9527	  # requires that you compile everything twice, which is a pain.
9528	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9529	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9530	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9531	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9532	  else
9533	    ld_shlibs=no
9534	  fi
9535	;;
9536      esac
9537      ;;
9538
9539    sunos4*)
9540      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9541      wlarc=
9542      hardcode_direct=yes
9543      hardcode_shlibpath_var=no
9544      ;;
9545
9546    *)
9547      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9548	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9549	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9550      else
9551	ld_shlibs=no
9552      fi
9553      ;;
9554    esac
9555
9556    if test no = "$ld_shlibs"; then
9557      runpath_var=
9558      hardcode_libdir_flag_spec=
9559      export_dynamic_flag_spec=
9560      whole_archive_flag_spec=
9561    fi
9562  else
9563    # PORTME fill in a description of your system's linker (not GNU ld)
9564    case $host_os in
9565    aix3*)
9566      allow_undefined_flag=unsupported
9567      always_export_symbols=yes
9568      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'
9569      # Note: this linker hardcodes the directories in LIBPATH if there
9570      # are no directories specified by -L.
9571      hardcode_minus_L=yes
9572      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9573	# Neither direct hardcoding nor static linking is supported with a
9574	# broken collect2.
9575	hardcode_direct=unsupported
9576      fi
9577      ;;
9578
9579    aix[4-9]*)
9580      if test ia64 = "$host_cpu"; then
9581	# On IA64, the linker does run time linking by default, so we don't
9582	# have to do anything special.
9583	aix_use_runtimelinking=no
9584	exp_sym_flag='-Bexport'
9585	no_entry_flag=
9586      else
9587	# If we're using GNU nm, then we don't want the "-C" option.
9588	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9589	# Without the "-l" option, or with the "-B" option, AIX nm treats
9590	# weak defined symbols like other global defined symbols, whereas
9591	# GNU nm marks them as "W".
9592	# While the 'weak' keyword is ignored in the Export File, we need
9593	# it in the Import File for the 'aix-soname' feature, so we have
9594	# to replace the "-B" option with "-P" for AIX nm.
9595	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9596	  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'
9597	else
9598	  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'
9599	fi
9600	aix_use_runtimelinking=no
9601
9602	# Test if we are trying to use run time linking or normal
9603	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9604	# have runtime linking enabled, and use it for executables.
9605	# For shared libraries, we enable/disable runtime linking
9606	# depending on the kind of the shared library created -
9607	# when "with_aix_soname,aix_use_runtimelinking" is:
9608	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9609	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9610	#            lib.a           static archive
9611	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9612	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9613	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9614	#            lib.a(lib.so.V) shared, rtl:no
9615	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9616	#            lib.a           static archive
9617	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9618	  for ld_flag in $LDFLAGS; do
9619	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9620	    aix_use_runtimelinking=yes
9621	    break
9622	  fi
9623	  done
9624	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9625	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9626	    # so we don't have lib.a shared libs to link our executables.
9627	    # We have to force runtime linking in this case.
9628	    aix_use_runtimelinking=yes
9629	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9630	  fi
9631	  ;;
9632	esac
9633
9634	exp_sym_flag='-bexport'
9635	no_entry_flag='-bnoentry'
9636      fi
9637
9638      # When large executables or shared objects are built, AIX ld can
9639      # have problems creating the table of contents.  If linking a library
9640      # or program results in "error TOC overflow" add -mminimal-toc to
9641      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9642      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9643
9644      archive_cmds=''
9645      hardcode_direct=yes
9646      hardcode_direct_absolute=yes
9647      hardcode_libdir_separator=':'
9648      link_all_deplibs=yes
9649      file_list_spec='$wl-f,'
9650      case $with_aix_soname,$aix_use_runtimelinking in
9651      aix,*) ;; # traditional, no import file
9652      svr4,* | *,yes) # use import file
9653	# The Import File defines what to hardcode.
9654	hardcode_direct=no
9655	hardcode_direct_absolute=no
9656	;;
9657      esac
9658
9659      if test yes = "$GCC"; then
9660	case $host_os in aix4.[012]|aix4.[012].*)
9661	# We only want to do this on AIX 4.2 and lower, the check
9662	# below for broken collect2 doesn't work under 4.3+
9663	  collect2name=`$CC -print-prog-name=collect2`
9664	  if test -f "$collect2name" &&
9665	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9666	  then
9667	  # We have reworked collect2
9668	  :
9669	  else
9670	  # We have old collect2
9671	  hardcode_direct=unsupported
9672	  # It fails to find uninstalled libraries when the uninstalled
9673	  # path is not listed in the libpath.  Setting hardcode_minus_L
9674	  # to unsupported forces relinking
9675	  hardcode_minus_L=yes
9676	  hardcode_libdir_flag_spec='-L$libdir'
9677	  hardcode_libdir_separator=
9678	  fi
9679	  ;;
9680	esac
9681	shared_flag='-shared'
9682	if test yes = "$aix_use_runtimelinking"; then
9683	  shared_flag="$shared_flag "'$wl-G'
9684	fi
9685	# Need to ensure runtime linking is disabled for the traditional
9686	# shared library, or the linker may eventually find shared libraries
9687	# /with/ Import File - we do not want to mix them.
9688	shared_flag_aix='-shared'
9689	shared_flag_svr4='-shared $wl-G'
9690      else
9691	# not using gcc
9692	if test ia64 = "$host_cpu"; then
9693	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9694	# chokes on -Wl,-G. The following line is correct:
9695	  shared_flag='-G'
9696	else
9697	  if test yes = "$aix_use_runtimelinking"; then
9698	    shared_flag='$wl-G'
9699	  else
9700	    shared_flag='$wl-bM:SRE'
9701	  fi
9702	  shared_flag_aix='$wl-bM:SRE'
9703	  shared_flag_svr4='$wl-G'
9704	fi
9705      fi
9706
9707      export_dynamic_flag_spec='$wl-bexpall'
9708      # It seems that -bexpall does not export symbols beginning with
9709      # underscore (_), so it is better to generate a list of symbols to export.
9710      always_export_symbols=yes
9711      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9712	# Warning - without using the other runtime loading flags (-brtl),
9713	# -berok will link without error, but may produce a broken library.
9714	allow_undefined_flag='-berok'
9715        # Determine the default libpath from the value encoded in an
9716        # empty executable.
9717        if test set = "${lt_cv_aix_libpath+set}"; then
9718  aix_libpath=$lt_cv_aix_libpath
9719else
9720  if ${lt_cv_aix_libpath_+:} false; then :
9721  $as_echo_n "(cached) " >&6
9722else
9723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724/* end confdefs.h.  */
9725
9726int
9727main ()
9728{
9729
9730  ;
9731  return 0;
9732}
9733_ACEOF
9734if ac_fn_c_try_link "$LINENO"; then :
9735
9736  lt_aix_libpath_sed='
9737      /Import File Strings/,/^$/ {
9738	  /^0/ {
9739	      s/^0  *\([^ ]*\) *$/\1/
9740	      p
9741	  }
9742      }'
9743  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9744  # Check for a 64-bit object if we didn't find anything.
9745  if test -z "$lt_cv_aix_libpath_"; then
9746    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9747  fi
9748fi
9749rm -f core conftest.err conftest.$ac_objext \
9750    conftest$ac_exeext conftest.$ac_ext
9751  if test -z "$lt_cv_aix_libpath_"; then
9752    lt_cv_aix_libpath_=/usr/lib:/lib
9753  fi
9754
9755fi
9756
9757  aix_libpath=$lt_cv_aix_libpath_
9758fi
9759
9760        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9761        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
9762      else
9763	if test ia64 = "$host_cpu"; then
9764	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9765	  allow_undefined_flag="-z nodefs"
9766	  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"
9767	else
9768	 # Determine the default libpath from the value encoded in an
9769	 # empty executable.
9770	 if test set = "${lt_cv_aix_libpath+set}"; then
9771  aix_libpath=$lt_cv_aix_libpath
9772else
9773  if ${lt_cv_aix_libpath_+:} false; then :
9774  $as_echo_n "(cached) " >&6
9775else
9776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777/* end confdefs.h.  */
9778
9779int
9780main ()
9781{
9782
9783  ;
9784  return 0;
9785}
9786_ACEOF
9787if ac_fn_c_try_link "$LINENO"; then :
9788
9789  lt_aix_libpath_sed='
9790      /Import File Strings/,/^$/ {
9791	  /^0/ {
9792	      s/^0  *\([^ ]*\) *$/\1/
9793	      p
9794	  }
9795      }'
9796  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9797  # Check for a 64-bit object if we didn't find anything.
9798  if test -z "$lt_cv_aix_libpath_"; then
9799    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9800  fi
9801fi
9802rm -f core conftest.err conftest.$ac_objext \
9803    conftest$ac_exeext conftest.$ac_ext
9804  if test -z "$lt_cv_aix_libpath_"; then
9805    lt_cv_aix_libpath_=/usr/lib:/lib
9806  fi
9807
9808fi
9809
9810  aix_libpath=$lt_cv_aix_libpath_
9811fi
9812
9813	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9814	  # Warning - without using the other run time loading flags,
9815	  # -berok will link without error, but may produce a broken library.
9816	  no_undefined_flag=' $wl-bernotok'
9817	  allow_undefined_flag=' $wl-berok'
9818	  if test yes = "$with_gnu_ld"; then
9819	    # We only use this code for GNU lds that support --whole-archive.
9820	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9821	  else
9822	    # Exported symbols can be pulled into shared objects from archives
9823	    whole_archive_flag_spec='$convenience'
9824	  fi
9825	  archive_cmds_need_lc=yes
9826	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9827	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9828	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9829	  if test svr4 != "$with_aix_soname"; then
9830	    # This is similar to how AIX traditionally builds its shared libraries.
9831	    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'
9832	  fi
9833	  if test aix != "$with_aix_soname"; then
9834	    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'
9835	  else
9836	    # used by -dlpreopen to get the symbols
9837	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9838	  fi
9839	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9840	fi
9841      fi
9842      ;;
9843
9844    amigaos*)
9845      case $host_cpu in
9846      powerpc)
9847            # see comment about AmigaOS4 .so support
9848            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9849            archive_expsym_cmds=''
9850        ;;
9851      m68k)
9852            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)'
9853            hardcode_libdir_flag_spec='-L$libdir'
9854            hardcode_minus_L=yes
9855        ;;
9856      esac
9857      ;;
9858
9859    bsdi[45]*)
9860      export_dynamic_flag_spec=-rdynamic
9861      ;;
9862
9863    cygwin* | mingw* | pw32* | cegcc*)
9864      # When not using gcc, we currently assume that we are using
9865      # Microsoft Visual C++.
9866      # hardcode_libdir_flag_spec is actually meaningless, as there is
9867      # no search path for DLLs.
9868      case $cc_basename in
9869      cl*)
9870	# Native MSVC
9871	hardcode_libdir_flag_spec=' '
9872	allow_undefined_flag=unsupported
9873	always_export_symbols=yes
9874	file_list_spec='@'
9875	# Tell ltmain to make .lib files, not .a files.
9876	libext=lib
9877	# Tell ltmain to make .dll files, not .so files.
9878	shrext_cmds=.dll
9879	# FIXME: Setting linknames here is a bad hack.
9880	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9881	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9882            cp "$export_symbols" "$output_objdir/$soname.def";
9883            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9884          else
9885            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9886          fi~
9887          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9888          linknames='
9889	# The linker will not automatically build a static lib if we build a DLL.
9890	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9891	enable_shared_with_static_runtimes=yes
9892	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9893	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9894	# Don't use ranlib
9895	old_postinstall_cmds='chmod 644 $oldlib'
9896	postlink_cmds='lt_outputfile="@OUTPUT@"~
9897          lt_tool_outputfile="@TOOL_OUTPUT@"~
9898          case $lt_outputfile in
9899            *.exe|*.EXE) ;;
9900            *)
9901              lt_outputfile=$lt_outputfile.exe
9902              lt_tool_outputfile=$lt_tool_outputfile.exe
9903              ;;
9904          esac~
9905          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9906            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9907            $RM "$lt_outputfile.manifest";
9908          fi'
9909	;;
9910      *)
9911	# Assume MSVC wrapper
9912	hardcode_libdir_flag_spec=' '
9913	allow_undefined_flag=unsupported
9914	# Tell ltmain to make .lib files, not .a files.
9915	libext=lib
9916	# Tell ltmain to make .dll files, not .so files.
9917	shrext_cmds=.dll
9918	# FIXME: Setting linknames here is a bad hack.
9919	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9920	# The linker will automatically build a .lib file if we build a DLL.
9921	old_archive_from_new_cmds='true'
9922	# FIXME: Should let the user specify the lib program.
9923	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9924	enable_shared_with_static_runtimes=yes
9925	;;
9926      esac
9927      ;;
9928
9929    darwin* | rhapsody*)
9930
9931
9932  archive_cmds_need_lc=no
9933  hardcode_direct=no
9934  hardcode_automatic=yes
9935  hardcode_shlibpath_var=unsupported
9936  if test yes = "$lt_cv_ld_force_load"; then
9937    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\"`'
9938
9939  else
9940    whole_archive_flag_spec=''
9941  fi
9942  link_all_deplibs=yes
9943  allow_undefined_flag=$_lt_dar_allow_undefined
9944  case $cc_basename in
9945     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9946     *) _lt_dar_can_shared=$GCC ;;
9947  esac
9948  if test yes = "$_lt_dar_can_shared"; then
9949    output_verbose_link_cmd=func_echo_all
9950    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9951    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9952    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"
9953    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"
9954
9955  else
9956  ld_shlibs=no
9957  fi
9958
9959      ;;
9960
9961    dgux*)
9962      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9963      hardcode_libdir_flag_spec='-L$libdir'
9964      hardcode_shlibpath_var=no
9965      ;;
9966
9967    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9968    # support.  Future versions do this automatically, but an explicit c++rt0.o
9969    # does not break anything, and helps significantly (at the cost of a little
9970    # extra space).
9971    freebsd2.2*)
9972      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9973      hardcode_libdir_flag_spec='-R$libdir'
9974      hardcode_direct=yes
9975      hardcode_shlibpath_var=no
9976      ;;
9977
9978    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9979    freebsd2.*)
9980      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9981      hardcode_direct=yes
9982      hardcode_minus_L=yes
9983      hardcode_shlibpath_var=no
9984      ;;
9985
9986    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9987    freebsd* | dragonfly*)
9988      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9989      hardcode_libdir_flag_spec='-R$libdir'
9990      hardcode_direct=yes
9991      hardcode_shlibpath_var=no
9992      ;;
9993
9994    hpux9*)
9995      if test yes = "$GCC"; then
9996	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'
9997      else
9998	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'
9999      fi
10000      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10001      hardcode_libdir_separator=:
10002      hardcode_direct=yes
10003
10004      # hardcode_minus_L: Not really in the search PATH,
10005      # but as the default location of the library.
10006      hardcode_minus_L=yes
10007      export_dynamic_flag_spec='$wl-E'
10008      ;;
10009
10010    hpux10*)
10011      if test yes,no = "$GCC,$with_gnu_ld"; then
10012	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10013      else
10014	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10015      fi
10016      if test no = "$with_gnu_ld"; then
10017	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10018	hardcode_libdir_separator=:
10019	hardcode_direct=yes
10020	hardcode_direct_absolute=yes
10021	export_dynamic_flag_spec='$wl-E'
10022	# hardcode_minus_L: Not really in the search PATH,
10023	# but as the default location of the library.
10024	hardcode_minus_L=yes
10025      fi
10026      ;;
10027
10028    hpux11*)
10029      if test yes,no = "$GCC,$with_gnu_ld"; then
10030	case $host_cpu in
10031	hppa*64*)
10032	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10033	  ;;
10034	ia64*)
10035	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10036	  ;;
10037	*)
10038	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10039	  ;;
10040	esac
10041      else
10042	case $host_cpu in
10043	hppa*64*)
10044	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10045	  ;;
10046	ia64*)
10047	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10048	  ;;
10049	*)
10050
10051	  # Older versions of the 11.00 compiler do not understand -b yet
10052	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10053	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10054$as_echo_n "checking if $CC understands -b... " >&6; }
10055if ${lt_cv_prog_compiler__b+:} false; then :
10056  $as_echo_n "(cached) " >&6
10057else
10058  lt_cv_prog_compiler__b=no
10059   save_LDFLAGS=$LDFLAGS
10060   LDFLAGS="$LDFLAGS -b"
10061   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10062   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10063     # The linker can only warn and ignore the option if not recognized
10064     # So say no if there are warnings
10065     if test -s conftest.err; then
10066       # Append any errors to the config.log.
10067       cat conftest.err 1>&5
10068       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10069       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10070       if diff conftest.exp conftest.er2 >/dev/null; then
10071         lt_cv_prog_compiler__b=yes
10072       fi
10073     else
10074       lt_cv_prog_compiler__b=yes
10075     fi
10076   fi
10077   $RM -r conftest*
10078   LDFLAGS=$save_LDFLAGS
10079
10080fi
10081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10082$as_echo "$lt_cv_prog_compiler__b" >&6; }
10083
10084if test yes = "$lt_cv_prog_compiler__b"; then
10085    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10086else
10087    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10088fi
10089
10090	  ;;
10091	esac
10092      fi
10093      if test no = "$with_gnu_ld"; then
10094	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10095	hardcode_libdir_separator=:
10096
10097	case $host_cpu in
10098	hppa*64*|ia64*)
10099	  hardcode_direct=no
10100	  hardcode_shlibpath_var=no
10101	  ;;
10102	*)
10103	  hardcode_direct=yes
10104	  hardcode_direct_absolute=yes
10105	  export_dynamic_flag_spec='$wl-E'
10106
10107	  # hardcode_minus_L: Not really in the search PATH,
10108	  # but as the default location of the library.
10109	  hardcode_minus_L=yes
10110	  ;;
10111	esac
10112      fi
10113      ;;
10114
10115    irix5* | irix6* | nonstopux*)
10116      if test yes = "$GCC"; then
10117	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'
10118	# Try to use the -exported_symbol ld option, if it does not
10119	# work, assume that -exports_file does not work either and
10120	# implicitly export all symbols.
10121	# This should be the same for all languages, so no per-tag cache variable.
10122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10123$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10124if ${lt_cv_irix_exported_symbol+:} false; then :
10125  $as_echo_n "(cached) " >&6
10126else
10127  save_LDFLAGS=$LDFLAGS
10128	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10129	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10130/* end confdefs.h.  */
10131int foo (void) { return 0; }
10132_ACEOF
10133if ac_fn_c_try_link "$LINENO"; then :
10134  lt_cv_irix_exported_symbol=yes
10135else
10136  lt_cv_irix_exported_symbol=no
10137fi
10138rm -f core conftest.err conftest.$ac_objext \
10139    conftest$ac_exeext conftest.$ac_ext
10140           LDFLAGS=$save_LDFLAGS
10141fi
10142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10143$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10144	if test yes = "$lt_cv_irix_exported_symbol"; then
10145          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'
10146	fi
10147      else
10148	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'
10149	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'
10150      fi
10151      archive_cmds_need_lc='no'
10152      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10153      hardcode_libdir_separator=:
10154      inherit_rpath=yes
10155      link_all_deplibs=yes
10156      ;;
10157
10158    linux*)
10159      case $cc_basename in
10160      tcc*)
10161	# Fabrice Bellard et al's Tiny C Compiler
10162	ld_shlibs=yes
10163	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10164	;;
10165      esac
10166      ;;
10167
10168    netbsd*)
10169      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10170	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10171      else
10172	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10173      fi
10174      hardcode_libdir_flag_spec='-R$libdir'
10175      hardcode_direct=yes
10176      hardcode_shlibpath_var=no
10177      ;;
10178
10179    newsos6)
10180      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10181      hardcode_direct=yes
10182      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10183      hardcode_libdir_separator=:
10184      hardcode_shlibpath_var=no
10185      ;;
10186
10187    *nto* | *qnx*)
10188      ;;
10189
10190    openbsd* | bitrig*)
10191      if test -f /usr/libexec/ld.so; then
10192	hardcode_direct=yes
10193	hardcode_shlibpath_var=no
10194	hardcode_direct_absolute=yes
10195	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10196	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10197	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10198	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10199	  export_dynamic_flag_spec='$wl-E'
10200	else
10201	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10202	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10203	fi
10204      else
10205	ld_shlibs=no
10206      fi
10207      ;;
10208
10209    os2*)
10210      hardcode_libdir_flag_spec='-L$libdir'
10211      hardcode_minus_L=yes
10212      allow_undefined_flag=unsupported
10213      shrext_cmds=.dll
10214      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10215	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10216	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10217	$ECHO EXPORTS >> $output_objdir/$libname.def~
10218	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10219	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10220	emximp -o $lib $output_objdir/$libname.def'
10221      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10222	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10223	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10224	$ECHO EXPORTS >> $output_objdir/$libname.def~
10225	prefix_cmds="$SED"~
10226	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10227	  prefix_cmds="$prefix_cmds -e 1d";
10228	fi~
10229	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10230	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10231	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10232	emximp -o $lib $output_objdir/$libname.def'
10233      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10234      enable_shared_with_static_runtimes=yes
10235      ;;
10236
10237    osf3*)
10238      if test yes = "$GCC"; then
10239	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10240	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'
10241      else
10242	allow_undefined_flag=' -expect_unresolved \*'
10243	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'
10244      fi
10245      archive_cmds_need_lc='no'
10246      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10247      hardcode_libdir_separator=:
10248      ;;
10249
10250    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10251      if test yes = "$GCC"; then
10252	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10253	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'
10254	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10255      else
10256	allow_undefined_flag=' -expect_unresolved \*'
10257	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'
10258	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~
10259          $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'
10260
10261	# Both c and cxx compiler support -rpath directly
10262	hardcode_libdir_flag_spec='-rpath $libdir'
10263      fi
10264      archive_cmds_need_lc='no'
10265      hardcode_libdir_separator=:
10266      ;;
10267
10268    solaris*)
10269      no_undefined_flag=' -z defs'
10270      if test yes = "$GCC"; then
10271	wlarc='$wl'
10272	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10273	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10274          $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'
10275      else
10276	case `$CC -V 2>&1` in
10277	*"Compilers 5.0"*)
10278	  wlarc=''
10279	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10280	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10281            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10282	  ;;
10283	*)
10284	  wlarc='$wl'
10285	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10286	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10287            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10288	  ;;
10289	esac
10290      fi
10291      hardcode_libdir_flag_spec='-R$libdir'
10292      hardcode_shlibpath_var=no
10293      case $host_os in
10294      solaris2.[0-5] | solaris2.[0-5].*) ;;
10295      *)
10296	# The compiler driver will combine and reorder linker options,
10297	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10298	# but is careful enough not to reorder.
10299	# Supported since Solaris 2.6 (maybe 2.5.1?)
10300	if test yes = "$GCC"; then
10301	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10302	else
10303	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10304	fi
10305	;;
10306      esac
10307      link_all_deplibs=yes
10308      ;;
10309
10310    sunos4*)
10311      if test sequent = "$host_vendor"; then
10312	# Use $CC to link under sequent, because it throws in some extra .o
10313	# files that make .init and .fini sections work.
10314	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10315      else
10316	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10317      fi
10318      hardcode_libdir_flag_spec='-L$libdir'
10319      hardcode_direct=yes
10320      hardcode_minus_L=yes
10321      hardcode_shlibpath_var=no
10322      ;;
10323
10324    sysv4)
10325      case $host_vendor in
10326	sni)
10327	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10328	  hardcode_direct=yes # is this really true???
10329	;;
10330	siemens)
10331	  ## LD is ld it makes a PLAMLIB
10332	  ## CC just makes a GrossModule.
10333	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10334	  reload_cmds='$CC -r -o $output$reload_objs'
10335	  hardcode_direct=no
10336        ;;
10337	motorola)
10338	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10339	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10340	;;
10341      esac
10342      runpath_var='LD_RUN_PATH'
10343      hardcode_shlibpath_var=no
10344      ;;
10345
10346    sysv4.3*)
10347      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10348      hardcode_shlibpath_var=no
10349      export_dynamic_flag_spec='-Bexport'
10350      ;;
10351
10352    sysv4*MP*)
10353      if test -d /usr/nec; then
10354	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10355	hardcode_shlibpath_var=no
10356	runpath_var=LD_RUN_PATH
10357	hardcode_runpath_var=yes
10358	ld_shlibs=yes
10359      fi
10360      ;;
10361
10362    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10363      no_undefined_flag='$wl-z,text'
10364      archive_cmds_need_lc=no
10365      hardcode_shlibpath_var=no
10366      runpath_var='LD_RUN_PATH'
10367
10368      if test yes = "$GCC"; then
10369	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10370	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10371      else
10372	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10373	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10374      fi
10375      ;;
10376
10377    sysv5* | sco3.2v5* | sco5v6*)
10378      # Note: We CANNOT use -z defs as we might desire, because we do not
10379      # link with -lc, and that would cause any symbols used from libc to
10380      # always be unresolved, which means just about no library would
10381      # ever link correctly.  If we're not using GNU ld we use -z text
10382      # though, which does catch some bad symbols but isn't as heavy-handed
10383      # as -z defs.
10384      no_undefined_flag='$wl-z,text'
10385      allow_undefined_flag='$wl-z,nodefs'
10386      archive_cmds_need_lc=no
10387      hardcode_shlibpath_var=no
10388      hardcode_libdir_flag_spec='$wl-R,$libdir'
10389      hardcode_libdir_separator=':'
10390      link_all_deplibs=yes
10391      export_dynamic_flag_spec='$wl-Bexport'
10392      runpath_var='LD_RUN_PATH'
10393
10394      if test yes = "$GCC"; then
10395	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10397      else
10398	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10399	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10400      fi
10401      ;;
10402
10403    uts4*)
10404      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10405      hardcode_libdir_flag_spec='-L$libdir'
10406      hardcode_shlibpath_var=no
10407      ;;
10408
10409    *)
10410      ld_shlibs=no
10411      ;;
10412    esac
10413
10414    if test sni = "$host_vendor"; then
10415      case $host in
10416      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10417	export_dynamic_flag_spec='$wl-Blargedynsym'
10418	;;
10419      esac
10420    fi
10421  fi
10422
10423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10424$as_echo "$ld_shlibs" >&6; }
10425test no = "$ld_shlibs" && can_build_shared=no
10426
10427with_gnu_ld=$with_gnu_ld
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443#
10444# Do we need to explicitly link libc?
10445#
10446case "x$archive_cmds_need_lc" in
10447x|xyes)
10448  # Assume -lc should be added
10449  archive_cmds_need_lc=yes
10450
10451  if test yes,yes = "$GCC,$enable_shared"; then
10452    case $archive_cmds in
10453    *'~'*)
10454      # FIXME: we may have to deal with multi-command sequences.
10455      ;;
10456    '$CC '*)
10457      # Test whether the compiler implicitly links with -lc since on some
10458      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10459      # to ld, don't add -lc before -lgcc.
10460      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10461$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10462if ${lt_cv_archive_cmds_need_lc+:} false; then :
10463  $as_echo_n "(cached) " >&6
10464else
10465  $RM conftest*
10466	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10467
10468	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10469  (eval $ac_compile) 2>&5
10470  ac_status=$?
10471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10472  test $ac_status = 0; } 2>conftest.err; then
10473	  soname=conftest
10474	  lib=conftest
10475	  libobjs=conftest.$ac_objext
10476	  deplibs=
10477	  wl=$lt_prog_compiler_wl
10478	  pic_flag=$lt_prog_compiler_pic
10479	  compiler_flags=-v
10480	  linker_flags=-v
10481	  verstring=
10482	  output_objdir=.
10483	  libname=conftest
10484	  lt_save_allow_undefined_flag=$allow_undefined_flag
10485	  allow_undefined_flag=
10486	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10487  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10488  ac_status=$?
10489  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10490  test $ac_status = 0; }
10491	  then
10492	    lt_cv_archive_cmds_need_lc=no
10493	  else
10494	    lt_cv_archive_cmds_need_lc=yes
10495	  fi
10496	  allow_undefined_flag=$lt_save_allow_undefined_flag
10497	else
10498	  cat conftest.err 1>&5
10499	fi
10500	$RM conftest*
10501
10502fi
10503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10504$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10505      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10506      ;;
10507    esac
10508  fi
10509  ;;
10510esac
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10664$as_echo_n "checking dynamic linker characteristics... " >&6; }
10665
10666if test yes = "$GCC"; then
10667  case $host_os in
10668    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10669    *) lt_awk_arg='/^libraries:/' ;;
10670  esac
10671  case $host_os in
10672    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10673    *) lt_sed_strip_eq='s|=/|/|g' ;;
10674  esac
10675  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10676  case $lt_search_path_spec in
10677  *\;*)
10678    # if the path contains ";" then we assume it to be the separator
10679    # otherwise default to the standard path separator (i.e. ":") - it is
10680    # assumed that no part of a normal pathname contains ";" but that should
10681    # okay in the real world where ";" in dirpaths is itself problematic.
10682    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10683    ;;
10684  *)
10685    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10686    ;;
10687  esac
10688  # Ok, now we have the path, separated by spaces, we can step through it
10689  # and add multilib dir if necessary...
10690  lt_tmp_lt_search_path_spec=
10691  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10692  # ...but if some path component already ends with the multilib dir we assume
10693  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10694  case "$lt_multi_os_dir; $lt_search_path_spec " in
10695  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10696    lt_multi_os_dir=
10697    ;;
10698  esac
10699  for lt_sys_path in $lt_search_path_spec; do
10700    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10701      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10702    elif test -n "$lt_multi_os_dir"; then
10703      test -d "$lt_sys_path" && \
10704	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10705    fi
10706  done
10707  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10708BEGIN {RS = " "; FS = "/|\n";} {
10709  lt_foo = "";
10710  lt_count = 0;
10711  for (lt_i = NF; lt_i > 0; lt_i--) {
10712    if ($lt_i != "" && $lt_i != ".") {
10713      if ($lt_i == "..") {
10714        lt_count++;
10715      } else {
10716        if (lt_count == 0) {
10717          lt_foo = "/" $lt_i lt_foo;
10718        } else {
10719          lt_count--;
10720        }
10721      }
10722    }
10723  }
10724  if (lt_foo != "") { lt_freq[lt_foo]++; }
10725  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10726}'`
10727  # AWK program above erroneously prepends '/' to C:/dos/paths
10728  # for these hosts.
10729  case $host_os in
10730    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10731      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10732  esac
10733  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10734else
10735  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10736fi
10737library_names_spec=
10738libname_spec='lib$name'
10739soname_spec=
10740shrext_cmds=.so
10741postinstall_cmds=
10742postuninstall_cmds=
10743finish_cmds=
10744finish_eval=
10745shlibpath_var=
10746shlibpath_overrides_runpath=unknown
10747version_type=none
10748dynamic_linker="$host_os ld.so"
10749sys_lib_dlsearch_path_spec="/lib /usr/lib"
10750need_lib_prefix=unknown
10751hardcode_into_libs=no
10752
10753# when you set need_version to no, make sure it does not cause -set_version
10754# flags to be left without arguments
10755need_version=unknown
10756
10757
10758
10759case $host_os in
10760aix3*)
10761  version_type=linux # correct to gnu/linux during the next big refactor
10762  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10763  shlibpath_var=LIBPATH
10764
10765  # AIX 3 has no versioning support, so we append a major version to the name.
10766  soname_spec='$libname$release$shared_ext$major'
10767  ;;
10768
10769aix[4-9]*)
10770  version_type=linux # correct to gnu/linux during the next big refactor
10771  need_lib_prefix=no
10772  need_version=no
10773  hardcode_into_libs=yes
10774  if test ia64 = "$host_cpu"; then
10775    # AIX 5 supports IA64
10776    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10777    shlibpath_var=LD_LIBRARY_PATH
10778  else
10779    # With GCC up to 2.95.x, collect2 would create an import file
10780    # for dependence libraries.  The import file would start with
10781    # the line '#! .'.  This would cause the generated library to
10782    # depend on '.', always an invalid library.  This was fixed in
10783    # development snapshots of GCC prior to 3.0.
10784    case $host_os in
10785      aix4 | aix4.[01] | aix4.[01].*)
10786      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10787	   echo ' yes '
10788	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10789	:
10790      else
10791	can_build_shared=no
10792      fi
10793      ;;
10794    esac
10795    # Using Import Files as archive members, it is possible to support
10796    # filename-based versioning of shared library archives on AIX. While
10797    # this would work for both with and without runtime linking, it will
10798    # prevent static linking of such archives. So we do filename-based
10799    # shared library versioning with .so extension only, which is used
10800    # when both runtime linking and shared linking is enabled.
10801    # Unfortunately, runtime linking may impact performance, so we do
10802    # not want this to be the default eventually. Also, we use the
10803    # versioned .so libs for executables only if there is the -brtl
10804    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10805    # To allow for filename-based versioning support, we need to create
10806    # libNAME.so.V as an archive file, containing:
10807    # *) an Import File, referring to the versioned filename of the
10808    #    archive as well as the shared archive member, telling the
10809    #    bitwidth (32 or 64) of that shared object, and providing the
10810    #    list of exported symbols of that shared object, eventually
10811    #    decorated with the 'weak' keyword
10812    # *) the shared object with the F_LOADONLY flag set, to really avoid
10813    #    it being seen by the linker.
10814    # At run time we better use the real file rather than another symlink,
10815    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10816
10817    case $with_aix_soname,$aix_use_runtimelinking in
10818    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10819    # soname into executable. Probably we can add versioning support to
10820    # collect2, so additional links can be useful in future.
10821    aix,yes) # traditional libtool
10822      dynamic_linker='AIX unversionable lib.so'
10823      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10824      # instead of lib<name>.a to let people know that these are not
10825      # typical AIX shared libraries.
10826      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10827      ;;
10828    aix,no) # traditional AIX only
10829      dynamic_linker='AIX lib.a(lib.so.V)'
10830      # We preserve .a as extension for shared libraries through AIX4.2
10831      # and later when we are not doing run time linking.
10832      library_names_spec='$libname$release.a $libname.a'
10833      soname_spec='$libname$release$shared_ext$major'
10834      ;;
10835    svr4,*) # full svr4 only
10836      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10837      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10838      # We do not specify a path in Import Files, so LIBPATH fires.
10839      shlibpath_overrides_runpath=yes
10840      ;;
10841    *,yes) # both, prefer svr4
10842      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10843      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10844      # unpreferred sharedlib libNAME.a needs extra handling
10845      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"'
10846      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"'
10847      # We do not specify a path in Import Files, so LIBPATH fires.
10848      shlibpath_overrides_runpath=yes
10849      ;;
10850    *,no) # both, prefer aix
10851      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10852      library_names_spec='$libname$release.a $libname.a'
10853      soname_spec='$libname$release$shared_ext$major'
10854      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10855      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)'
10856      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"'
10857      ;;
10858    esac
10859    shlibpath_var=LIBPATH
10860  fi
10861  ;;
10862
10863amigaos*)
10864  case $host_cpu in
10865  powerpc)
10866    # Since July 2007 AmigaOS4 officially supports .so libraries.
10867    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10868    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10869    ;;
10870  m68k)
10871    library_names_spec='$libname.ixlibrary $libname.a'
10872    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10873    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'
10874    ;;
10875  esac
10876  ;;
10877
10878beos*)
10879  library_names_spec='$libname$shared_ext'
10880  dynamic_linker="$host_os ld.so"
10881  shlibpath_var=LIBRARY_PATH
10882  ;;
10883
10884bsdi[45]*)
10885  version_type=linux # correct to gnu/linux during the next big refactor
10886  need_version=no
10887  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10888  soname_spec='$libname$release$shared_ext$major'
10889  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10890  shlibpath_var=LD_LIBRARY_PATH
10891  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10892  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10893  # the default ld.so.conf also contains /usr/contrib/lib and
10894  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10895  # libtool to hard-code these into programs
10896  ;;
10897
10898cygwin* | mingw* | pw32* | cegcc*)
10899  version_type=windows
10900  shrext_cmds=.dll
10901  need_version=no
10902  need_lib_prefix=no
10903
10904  case $GCC,$cc_basename in
10905  yes,*)
10906    # gcc
10907    library_names_spec='$libname.dll.a'
10908    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10909    postinstall_cmds='base_file=`basename \$file`~
10910      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10911      dldir=$destdir/`dirname \$dlpath`~
10912      test -d \$dldir || mkdir -p \$dldir~
10913      $install_prog $dir/$dlname \$dldir/$dlname~
10914      chmod a+x \$dldir/$dlname~
10915      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10916        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10917      fi'
10918    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10919      dlpath=$dir/\$dldll~
10920       $RM \$dlpath'
10921    shlibpath_overrides_runpath=yes
10922
10923    case $host_os in
10924    cygwin*)
10925      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10926      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10927
10928      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10929      ;;
10930    mingw* | cegcc*)
10931      # MinGW DLLs use traditional 'lib' prefix
10932      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10933      ;;
10934    pw32*)
10935      # pw32 DLLs use 'pw' prefix rather than 'lib'
10936      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10937      ;;
10938    esac
10939    dynamic_linker='Win32 ld.exe'
10940    ;;
10941
10942  *,cl*)
10943    # Native MSVC
10944    libname_spec='$name'
10945    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10946    library_names_spec='$libname.dll.lib'
10947
10948    case $build_os in
10949    mingw*)
10950      sys_lib_search_path_spec=
10951      lt_save_ifs=$IFS
10952      IFS=';'
10953      for lt_path in $LIB
10954      do
10955        IFS=$lt_save_ifs
10956        # Let DOS variable expansion print the short 8.3 style file name.
10957        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10958        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10959      done
10960      IFS=$lt_save_ifs
10961      # Convert to MSYS style.
10962      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10963      ;;
10964    cygwin*)
10965      # Convert to unix form, then to dos form, then back to unix form
10966      # but this time dos style (no spaces!) so that the unix form looks
10967      # like /cygdrive/c/PROGRA~1:/cygdr...
10968      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10969      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10970      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10971      ;;
10972    *)
10973      sys_lib_search_path_spec=$LIB
10974      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10975        # It is most probably a Windows format PATH.
10976        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10977      else
10978        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10979      fi
10980      # FIXME: find the short name or the path components, as spaces are
10981      # common. (e.g. "Program Files" -> "PROGRA~1")
10982      ;;
10983    esac
10984
10985    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10986    postinstall_cmds='base_file=`basename \$file`~
10987      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10988      dldir=$destdir/`dirname \$dlpath`~
10989      test -d \$dldir || mkdir -p \$dldir~
10990      $install_prog $dir/$dlname \$dldir/$dlname'
10991    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10992      dlpath=$dir/\$dldll~
10993       $RM \$dlpath'
10994    shlibpath_overrides_runpath=yes
10995    dynamic_linker='Win32 link.exe'
10996    ;;
10997
10998  *)
10999    # Assume MSVC wrapper
11000    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11001    dynamic_linker='Win32 ld.exe'
11002    ;;
11003  esac
11004  # FIXME: first we should search . and the directory the executable is in
11005  shlibpath_var=PATH
11006  ;;
11007
11008darwin* | rhapsody*)
11009  dynamic_linker="$host_os dyld"
11010  version_type=darwin
11011  need_lib_prefix=no
11012  need_version=no
11013  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11014  soname_spec='$libname$release$major$shared_ext'
11015  shlibpath_overrides_runpath=yes
11016  shlibpath_var=DYLD_LIBRARY_PATH
11017  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11018
11019  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11020  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11021  ;;
11022
11023dgux*)
11024  version_type=linux # correct to gnu/linux during the next big refactor
11025  need_lib_prefix=no
11026  need_version=no
11027  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11028  soname_spec='$libname$release$shared_ext$major'
11029  shlibpath_var=LD_LIBRARY_PATH
11030  ;;
11031
11032freebsd* | dragonfly*)
11033  # DragonFly does not have aout.  When/if they implement a new
11034  # versioning mechanism, adjust this.
11035  if test -x /usr/bin/objformat; then
11036    objformat=`/usr/bin/objformat`
11037  else
11038    case $host_os in
11039    freebsd[23].*) objformat=aout ;;
11040    *) objformat=elf ;;
11041    esac
11042  fi
11043  version_type=freebsd-$objformat
11044  case $version_type in
11045    freebsd-elf*)
11046      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11047      soname_spec='$libname$release$shared_ext$major'
11048      need_version=no
11049      need_lib_prefix=no
11050      ;;
11051    freebsd-*)
11052      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11053      need_version=yes
11054      ;;
11055  esac
11056  shlibpath_var=LD_LIBRARY_PATH
11057  case $host_os in
11058  freebsd2.*)
11059    shlibpath_overrides_runpath=yes
11060    ;;
11061  freebsd3.[01]* | freebsdelf3.[01]*)
11062    shlibpath_overrides_runpath=yes
11063    hardcode_into_libs=yes
11064    ;;
11065  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11066  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11067    shlibpath_overrides_runpath=no
11068    hardcode_into_libs=yes
11069    ;;
11070  *) # from 4.6 on, and DragonFly
11071    shlibpath_overrides_runpath=yes
11072    hardcode_into_libs=yes
11073    ;;
11074  esac
11075  ;;
11076
11077haiku*)
11078  version_type=linux # correct to gnu/linux during the next big refactor
11079  need_lib_prefix=no
11080  need_version=no
11081  dynamic_linker="$host_os runtime_loader"
11082  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11083  soname_spec='$libname$release$shared_ext$major'
11084  shlibpath_var=LIBRARY_PATH
11085  shlibpath_overrides_runpath=no
11086  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11087  hardcode_into_libs=yes
11088  ;;
11089
11090hpux9* | hpux10* | hpux11*)
11091  # Give a soname corresponding to the major version so that dld.sl refuses to
11092  # link against other versions.
11093  version_type=sunos
11094  need_lib_prefix=no
11095  need_version=no
11096  case $host_cpu in
11097  ia64*)
11098    shrext_cmds='.so'
11099    hardcode_into_libs=yes
11100    dynamic_linker="$host_os dld.so"
11101    shlibpath_var=LD_LIBRARY_PATH
11102    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11103    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11104    soname_spec='$libname$release$shared_ext$major'
11105    if test 32 = "$HPUX_IA64_MODE"; then
11106      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11107      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11108    else
11109      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11110      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11111    fi
11112    ;;
11113  hppa*64*)
11114    shrext_cmds='.sl'
11115    hardcode_into_libs=yes
11116    dynamic_linker="$host_os dld.sl"
11117    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11118    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11119    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11120    soname_spec='$libname$release$shared_ext$major'
11121    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11122    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11123    ;;
11124  *)
11125    shrext_cmds='.sl'
11126    dynamic_linker="$host_os dld.sl"
11127    shlibpath_var=SHLIB_PATH
11128    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11129    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11130    soname_spec='$libname$release$shared_ext$major'
11131    ;;
11132  esac
11133  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11134  postinstall_cmds='chmod 555 $lib'
11135  # or fails outright, so override atomically:
11136  install_override_mode=555
11137  ;;
11138
11139interix[3-9]*)
11140  version_type=linux # correct to gnu/linux during the next big refactor
11141  need_lib_prefix=no
11142  need_version=no
11143  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11144  soname_spec='$libname$release$shared_ext$major'
11145  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11146  shlibpath_var=LD_LIBRARY_PATH
11147  shlibpath_overrides_runpath=no
11148  hardcode_into_libs=yes
11149  ;;
11150
11151irix5* | irix6* | nonstopux*)
11152  case $host_os in
11153    nonstopux*) version_type=nonstopux ;;
11154    *)
11155	if test yes = "$lt_cv_prog_gnu_ld"; then
11156		version_type=linux # correct to gnu/linux during the next big refactor
11157	else
11158		version_type=irix
11159	fi ;;
11160  esac
11161  need_lib_prefix=no
11162  need_version=no
11163  soname_spec='$libname$release$shared_ext$major'
11164  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11165  case $host_os in
11166  irix5* | nonstopux*)
11167    libsuff= shlibsuff=
11168    ;;
11169  *)
11170    case $LD in # libtool.m4 will add one of these switches to LD
11171    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11172      libsuff= shlibsuff= libmagic=32-bit;;
11173    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11174      libsuff=32 shlibsuff=N32 libmagic=N32;;
11175    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11176      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11177    *) libsuff= shlibsuff= libmagic=never-match;;
11178    esac
11179    ;;
11180  esac
11181  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11182  shlibpath_overrides_runpath=no
11183  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11184  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11185  hardcode_into_libs=yes
11186  ;;
11187
11188# No shared lib support for Linux oldld, aout, or coff.
11189linux*oldld* | linux*aout* | linux*coff*)
11190  dynamic_linker=no
11191  ;;
11192
11193linux*android*)
11194  version_type=none # Android doesn't support versioned libraries.
11195  need_lib_prefix=no
11196  need_version=no
11197  library_names_spec='$libname$release$shared_ext'
11198  soname_spec='$libname$release$shared_ext'
11199  finish_cmds=
11200  shlibpath_var=LD_LIBRARY_PATH
11201  shlibpath_overrides_runpath=yes
11202
11203  # This implies no fast_install, which is unacceptable.
11204  # Some rework will be needed to allow for fast_install
11205  # before this can be enabled.
11206  hardcode_into_libs=yes
11207
11208  dynamic_linker='Android linker'
11209  # Don't embed -rpath directories since the linker doesn't support them.
11210  hardcode_libdir_flag_spec='-L$libdir'
11211  ;;
11212
11213# This must be glibc/ELF.
11214linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11215  version_type=linux # correct to gnu/linux during the next big refactor
11216  need_lib_prefix=no
11217  need_version=no
11218  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11219  soname_spec='$libname$release$shared_ext$major'
11220  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11221  shlibpath_var=LD_LIBRARY_PATH
11222  shlibpath_overrides_runpath=no
11223
11224  # Some binutils ld are patched to set DT_RUNPATH
11225  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11226  $as_echo_n "(cached) " >&6
11227else
11228  lt_cv_shlibpath_overrides_runpath=no
11229    save_LDFLAGS=$LDFLAGS
11230    save_libdir=$libdir
11231    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11232	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11233    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234/* end confdefs.h.  */
11235
11236int
11237main ()
11238{
11239
11240  ;
11241  return 0;
11242}
11243_ACEOF
11244if ac_fn_c_try_link "$LINENO"; then :
11245  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11246  lt_cv_shlibpath_overrides_runpath=yes
11247fi
11248fi
11249rm -f core conftest.err conftest.$ac_objext \
11250    conftest$ac_exeext conftest.$ac_ext
11251    LDFLAGS=$save_LDFLAGS
11252    libdir=$save_libdir
11253
11254fi
11255
11256  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11257
11258  # This implies no fast_install, which is unacceptable.
11259  # Some rework will be needed to allow for fast_install
11260  # before this can be enabled.
11261  hardcode_into_libs=yes
11262
11263  # Add ABI-specific directories to the system library path.
11264  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11265
11266  # Ideally, we could use ldconfig to report *all* directores which are
11267  # searched for libraries, however this is still not possible.  Aside from not
11268  # being certain /sbin/ldconfig is available, command
11269  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11270  # even though it is searched at run-time.  Try to do the best guess by
11271  # appending ld.so.conf contents (and includes) to the search path.
11272  if test -f /etc/ld.so.conf; then
11273    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' ' '`
11274    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11275  fi
11276
11277  # We used to test for /lib/ld.so.1 and disable shared libraries on
11278  # powerpc, because MkLinux only supported shared libraries with the
11279  # GNU dynamic linker.  Since this was broken with cross compilers,
11280  # most powerpc-linux boxes support dynamic linking these days and
11281  # people can always --disable-shared, the test was removed, and we
11282  # assume the GNU/Linux dynamic linker is in use.
11283  dynamic_linker='GNU/Linux ld.so'
11284  ;;
11285
11286netbsd*)
11287  version_type=sunos
11288  need_lib_prefix=no
11289  need_version=no
11290  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11291    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11292    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11293    dynamic_linker='NetBSD (a.out) ld.so'
11294  else
11295    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11296    soname_spec='$libname$release$shared_ext$major'
11297    dynamic_linker='NetBSD ld.elf_so'
11298  fi
11299  shlibpath_var=LD_LIBRARY_PATH
11300  shlibpath_overrides_runpath=yes
11301  hardcode_into_libs=yes
11302  ;;
11303
11304newsos6)
11305  version_type=linux # correct to gnu/linux during the next big refactor
11306  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11307  shlibpath_var=LD_LIBRARY_PATH
11308  shlibpath_overrides_runpath=yes
11309  ;;
11310
11311*nto* | *qnx*)
11312  version_type=qnx
11313  need_lib_prefix=no
11314  need_version=no
11315  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11316  soname_spec='$libname$release$shared_ext$major'
11317  shlibpath_var=LD_LIBRARY_PATH
11318  shlibpath_overrides_runpath=no
11319  hardcode_into_libs=yes
11320  dynamic_linker='ldqnx.so'
11321  ;;
11322
11323openbsd* | bitrig*)
11324  version_type=sunos
11325  sys_lib_dlsearch_path_spec=/usr/lib
11326  need_lib_prefix=no
11327  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11328    need_version=no
11329  else
11330    need_version=yes
11331  fi
11332  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11333  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11334  shlibpath_var=LD_LIBRARY_PATH
11335  shlibpath_overrides_runpath=yes
11336  ;;
11337
11338os2*)
11339  libname_spec='$name'
11340  version_type=windows
11341  shrext_cmds=.dll
11342  need_version=no
11343  need_lib_prefix=no
11344  # OS/2 can only load a DLL with a base name of 8 characters or less.
11345  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11346    v=$($ECHO $release$versuffix | tr -d .-);
11347    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11348    $ECHO $n$v`$shared_ext'
11349  library_names_spec='${libname}_dll.$libext'
11350  dynamic_linker='OS/2 ld.exe'
11351  shlibpath_var=BEGINLIBPATH
11352  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11353  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11354  postinstall_cmds='base_file=`basename \$file`~
11355    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11356    dldir=$destdir/`dirname \$dlpath`~
11357    test -d \$dldir || mkdir -p \$dldir~
11358    $install_prog $dir/$dlname \$dldir/$dlname~
11359    chmod a+x \$dldir/$dlname~
11360    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11361      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11362    fi'
11363  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11364    dlpath=$dir/\$dldll~
11365    $RM \$dlpath'
11366  ;;
11367
11368osf3* | osf4* | osf5*)
11369  version_type=osf
11370  need_lib_prefix=no
11371  need_version=no
11372  soname_spec='$libname$release$shared_ext$major'
11373  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11374  shlibpath_var=LD_LIBRARY_PATH
11375  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11376  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11377  ;;
11378
11379rdos*)
11380  dynamic_linker=no
11381  ;;
11382
11383solaris*)
11384  version_type=linux # correct to gnu/linux during the next big refactor
11385  need_lib_prefix=no
11386  need_version=no
11387  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11388  soname_spec='$libname$release$shared_ext$major'
11389  shlibpath_var=LD_LIBRARY_PATH
11390  shlibpath_overrides_runpath=yes
11391  hardcode_into_libs=yes
11392  # ldd complains unless libraries are executable
11393  postinstall_cmds='chmod +x $lib'
11394  ;;
11395
11396sunos4*)
11397  version_type=sunos
11398  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11399  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11400  shlibpath_var=LD_LIBRARY_PATH
11401  shlibpath_overrides_runpath=yes
11402  if test yes = "$with_gnu_ld"; then
11403    need_lib_prefix=no
11404  fi
11405  need_version=yes
11406  ;;
11407
11408sysv4 | sysv4.3*)
11409  version_type=linux # correct to gnu/linux during the next big refactor
11410  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11411  soname_spec='$libname$release$shared_ext$major'
11412  shlibpath_var=LD_LIBRARY_PATH
11413  case $host_vendor in
11414    sni)
11415      shlibpath_overrides_runpath=no
11416      need_lib_prefix=no
11417      runpath_var=LD_RUN_PATH
11418      ;;
11419    siemens)
11420      need_lib_prefix=no
11421      ;;
11422    motorola)
11423      need_lib_prefix=no
11424      need_version=no
11425      shlibpath_overrides_runpath=no
11426      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11427      ;;
11428  esac
11429  ;;
11430
11431sysv4*MP*)
11432  if test -d /usr/nec; then
11433    version_type=linux # correct to gnu/linux during the next big refactor
11434    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11435    soname_spec='$libname$shared_ext.$major'
11436    shlibpath_var=LD_LIBRARY_PATH
11437  fi
11438  ;;
11439
11440sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11441  version_type=sco
11442  need_lib_prefix=no
11443  need_version=no
11444  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11445  soname_spec='$libname$release$shared_ext$major'
11446  shlibpath_var=LD_LIBRARY_PATH
11447  shlibpath_overrides_runpath=yes
11448  hardcode_into_libs=yes
11449  if test yes = "$with_gnu_ld"; then
11450    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11451  else
11452    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11453    case $host_os in
11454      sco3.2v5*)
11455        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11456	;;
11457    esac
11458  fi
11459  sys_lib_dlsearch_path_spec='/usr/lib'
11460  ;;
11461
11462tpf*)
11463  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11464  version_type=linux # correct to gnu/linux during the next big refactor
11465  need_lib_prefix=no
11466  need_version=no
11467  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11468  shlibpath_var=LD_LIBRARY_PATH
11469  shlibpath_overrides_runpath=no
11470  hardcode_into_libs=yes
11471  ;;
11472
11473uts4*)
11474  version_type=linux # correct to gnu/linux during the next big refactor
11475  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11476  soname_spec='$libname$release$shared_ext$major'
11477  shlibpath_var=LD_LIBRARY_PATH
11478  ;;
11479
11480*)
11481  dynamic_linker=no
11482  ;;
11483esac
11484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11485$as_echo "$dynamic_linker" >&6; }
11486test no = "$dynamic_linker" && can_build_shared=no
11487
11488variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11489if test yes = "$GCC"; then
11490  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11491fi
11492
11493if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11494  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11495fi
11496
11497if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11498  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11499fi
11500
11501# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11502configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11503
11504# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11505func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11506
11507# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11508configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11607$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11608hardcode_action=
11609if test -n "$hardcode_libdir_flag_spec" ||
11610   test -n "$runpath_var" ||
11611   test yes = "$hardcode_automatic"; then
11612
11613  # We can hardcode non-existent directories.
11614  if test no != "$hardcode_direct" &&
11615     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11616     # have to relink, otherwise we might link with an installed library
11617     # when we should be linking with a yet-to-be-installed one
11618     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11619     test no != "$hardcode_minus_L"; then
11620    # Linking always hardcodes the temporary library directory.
11621    hardcode_action=relink
11622  else
11623    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11624    hardcode_action=immediate
11625  fi
11626else
11627  # We cannot hardcode anything, or else we can only hardcode existing
11628  # directories.
11629  hardcode_action=unsupported
11630fi
11631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11632$as_echo "$hardcode_action" >&6; }
11633
11634if test relink = "$hardcode_action" ||
11635   test yes = "$inherit_rpath"; then
11636  # Fast installation is not supported
11637  enable_fast_install=no
11638elif test yes = "$shlibpath_overrides_runpath" ||
11639     test no = "$enable_shared"; then
11640  # Fast installation is not necessary
11641  enable_fast_install=needless
11642fi
11643
11644
11645
11646
11647
11648
11649  if test yes != "$enable_dlopen"; then
11650  enable_dlopen=unknown
11651  enable_dlopen_self=unknown
11652  enable_dlopen_self_static=unknown
11653else
11654  lt_cv_dlopen=no
11655  lt_cv_dlopen_libs=
11656
11657  case $host_os in
11658  beos*)
11659    lt_cv_dlopen=load_add_on
11660    lt_cv_dlopen_libs=
11661    lt_cv_dlopen_self=yes
11662    ;;
11663
11664  mingw* | pw32* | cegcc*)
11665    lt_cv_dlopen=LoadLibrary
11666    lt_cv_dlopen_libs=
11667    ;;
11668
11669  cygwin*)
11670    lt_cv_dlopen=dlopen
11671    lt_cv_dlopen_libs=
11672    ;;
11673
11674  darwin*)
11675    # if libdl is installed we need to link against it
11676    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11677$as_echo_n "checking for dlopen in -ldl... " >&6; }
11678if ${ac_cv_lib_dl_dlopen+:} false; then :
11679  $as_echo_n "(cached) " >&6
11680else
11681  ac_check_lib_save_LIBS=$LIBS
11682LIBS="-ldl  $LIBS"
11683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684/* end confdefs.h.  */
11685
11686/* Override any GCC internal prototype to avoid an error.
11687   Use char because int might match the return type of a GCC
11688   builtin and then its argument prototype would still apply.  */
11689#ifdef __cplusplus
11690extern "C"
11691#endif
11692char dlopen ();
11693int
11694main ()
11695{
11696return dlopen ();
11697  ;
11698  return 0;
11699}
11700_ACEOF
11701if ac_fn_c_try_link "$LINENO"; then :
11702  ac_cv_lib_dl_dlopen=yes
11703else
11704  ac_cv_lib_dl_dlopen=no
11705fi
11706rm -f core conftest.err conftest.$ac_objext \
11707    conftest$ac_exeext conftest.$ac_ext
11708LIBS=$ac_check_lib_save_LIBS
11709fi
11710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11711$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11712if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11713  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11714else
11715
11716    lt_cv_dlopen=dyld
11717    lt_cv_dlopen_libs=
11718    lt_cv_dlopen_self=yes
11719
11720fi
11721
11722    ;;
11723
11724  tpf*)
11725    # Don't try to run any link tests for TPF.  We know it's impossible
11726    # because TPF is a cross-compiler, and we know how we open DSOs.
11727    lt_cv_dlopen=dlopen
11728    lt_cv_dlopen_libs=
11729    lt_cv_dlopen_self=no
11730    ;;
11731
11732  *)
11733    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11734if test "x$ac_cv_func_shl_load" = xyes; then :
11735  lt_cv_dlopen=shl_load
11736else
11737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11738$as_echo_n "checking for shl_load in -ldld... " >&6; }
11739if ${ac_cv_lib_dld_shl_load+:} false; then :
11740  $as_echo_n "(cached) " >&6
11741else
11742  ac_check_lib_save_LIBS=$LIBS
11743LIBS="-ldld  $LIBS"
11744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745/* end confdefs.h.  */
11746
11747/* Override any GCC internal prototype to avoid an error.
11748   Use char because int might match the return type of a GCC
11749   builtin and then its argument prototype would still apply.  */
11750#ifdef __cplusplus
11751extern "C"
11752#endif
11753char shl_load ();
11754int
11755main ()
11756{
11757return shl_load ();
11758  ;
11759  return 0;
11760}
11761_ACEOF
11762if ac_fn_c_try_link "$LINENO"; then :
11763  ac_cv_lib_dld_shl_load=yes
11764else
11765  ac_cv_lib_dld_shl_load=no
11766fi
11767rm -f core conftest.err conftest.$ac_objext \
11768    conftest$ac_exeext conftest.$ac_ext
11769LIBS=$ac_check_lib_save_LIBS
11770fi
11771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11772$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11773if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11774  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11775else
11776  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11777if test "x$ac_cv_func_dlopen" = xyes; then :
11778  lt_cv_dlopen=dlopen
11779else
11780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11781$as_echo_n "checking for dlopen in -ldl... " >&6; }
11782if ${ac_cv_lib_dl_dlopen+:} false; then :
11783  $as_echo_n "(cached) " >&6
11784else
11785  ac_check_lib_save_LIBS=$LIBS
11786LIBS="-ldl  $LIBS"
11787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788/* end confdefs.h.  */
11789
11790/* Override any GCC internal prototype to avoid an error.
11791   Use char because int might match the return type of a GCC
11792   builtin and then its argument prototype would still apply.  */
11793#ifdef __cplusplus
11794extern "C"
11795#endif
11796char dlopen ();
11797int
11798main ()
11799{
11800return dlopen ();
11801  ;
11802  return 0;
11803}
11804_ACEOF
11805if ac_fn_c_try_link "$LINENO"; then :
11806  ac_cv_lib_dl_dlopen=yes
11807else
11808  ac_cv_lib_dl_dlopen=no
11809fi
11810rm -f core conftest.err conftest.$ac_objext \
11811    conftest$ac_exeext conftest.$ac_ext
11812LIBS=$ac_check_lib_save_LIBS
11813fi
11814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11815$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11816if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11817  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11818else
11819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11820$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11821if ${ac_cv_lib_svld_dlopen+:} false; then :
11822  $as_echo_n "(cached) " >&6
11823else
11824  ac_check_lib_save_LIBS=$LIBS
11825LIBS="-lsvld  $LIBS"
11826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827/* end confdefs.h.  */
11828
11829/* Override any GCC internal prototype to avoid an error.
11830   Use char because int might match the return type of a GCC
11831   builtin and then its argument prototype would still apply.  */
11832#ifdef __cplusplus
11833extern "C"
11834#endif
11835char dlopen ();
11836int
11837main ()
11838{
11839return dlopen ();
11840  ;
11841  return 0;
11842}
11843_ACEOF
11844if ac_fn_c_try_link "$LINENO"; then :
11845  ac_cv_lib_svld_dlopen=yes
11846else
11847  ac_cv_lib_svld_dlopen=no
11848fi
11849rm -f core conftest.err conftest.$ac_objext \
11850    conftest$ac_exeext conftest.$ac_ext
11851LIBS=$ac_check_lib_save_LIBS
11852fi
11853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11854$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11855if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11856  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11857else
11858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11859$as_echo_n "checking for dld_link in -ldld... " >&6; }
11860if ${ac_cv_lib_dld_dld_link+:} false; then :
11861  $as_echo_n "(cached) " >&6
11862else
11863  ac_check_lib_save_LIBS=$LIBS
11864LIBS="-ldld  $LIBS"
11865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866/* end confdefs.h.  */
11867
11868/* Override any GCC internal prototype to avoid an error.
11869   Use char because int might match the return type of a GCC
11870   builtin and then its argument prototype would still apply.  */
11871#ifdef __cplusplus
11872extern "C"
11873#endif
11874char dld_link ();
11875int
11876main ()
11877{
11878return dld_link ();
11879  ;
11880  return 0;
11881}
11882_ACEOF
11883if ac_fn_c_try_link "$LINENO"; then :
11884  ac_cv_lib_dld_dld_link=yes
11885else
11886  ac_cv_lib_dld_dld_link=no
11887fi
11888rm -f core conftest.err conftest.$ac_objext \
11889    conftest$ac_exeext conftest.$ac_ext
11890LIBS=$ac_check_lib_save_LIBS
11891fi
11892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11893$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11894if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11895  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11896fi
11897
11898
11899fi
11900
11901
11902fi
11903
11904
11905fi
11906
11907
11908fi
11909
11910
11911fi
11912
11913    ;;
11914  esac
11915
11916  if test no = "$lt_cv_dlopen"; then
11917    enable_dlopen=no
11918  else
11919    enable_dlopen=yes
11920  fi
11921
11922  case $lt_cv_dlopen in
11923  dlopen)
11924    save_CPPFLAGS=$CPPFLAGS
11925    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11926
11927    save_LDFLAGS=$LDFLAGS
11928    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11929
11930    save_LIBS=$LIBS
11931    LIBS="$lt_cv_dlopen_libs $LIBS"
11932
11933    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11934$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11935if ${lt_cv_dlopen_self+:} false; then :
11936  $as_echo_n "(cached) " >&6
11937else
11938  	  if test yes = "$cross_compiling"; then :
11939  lt_cv_dlopen_self=cross
11940else
11941  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11942  lt_status=$lt_dlunknown
11943  cat > conftest.$ac_ext <<_LT_EOF
11944#line $LINENO "configure"
11945#include "confdefs.h"
11946
11947#if HAVE_DLFCN_H
11948#include <dlfcn.h>
11949#endif
11950
11951#include <stdio.h>
11952
11953#ifdef RTLD_GLOBAL
11954#  define LT_DLGLOBAL		RTLD_GLOBAL
11955#else
11956#  ifdef DL_GLOBAL
11957#    define LT_DLGLOBAL		DL_GLOBAL
11958#  else
11959#    define LT_DLGLOBAL		0
11960#  endif
11961#endif
11962
11963/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11964   find out it does not work in some platform. */
11965#ifndef LT_DLLAZY_OR_NOW
11966#  ifdef RTLD_LAZY
11967#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11968#  else
11969#    ifdef DL_LAZY
11970#      define LT_DLLAZY_OR_NOW		DL_LAZY
11971#    else
11972#      ifdef RTLD_NOW
11973#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11974#      else
11975#        ifdef DL_NOW
11976#          define LT_DLLAZY_OR_NOW	DL_NOW
11977#        else
11978#          define LT_DLLAZY_OR_NOW	0
11979#        endif
11980#      endif
11981#    endif
11982#  endif
11983#endif
11984
11985/* When -fvisibility=hidden is used, assume the code has been annotated
11986   correspondingly for the symbols needed.  */
11987#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11988int fnord () __attribute__((visibility("default")));
11989#endif
11990
11991int fnord () { return 42; }
11992int main ()
11993{
11994  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11995  int status = $lt_dlunknown;
11996
11997  if (self)
11998    {
11999      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12000      else
12001        {
12002	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12003          else puts (dlerror ());
12004	}
12005      /* dlclose (self); */
12006    }
12007  else
12008    puts (dlerror ());
12009
12010  return status;
12011}
12012_LT_EOF
12013  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12014  (eval $ac_link) 2>&5
12015  ac_status=$?
12016  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12017  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12018    (./conftest; exit; ) >&5 2>/dev/null
12019    lt_status=$?
12020    case x$lt_status in
12021      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12022      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12023      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12024    esac
12025  else :
12026    # compilation failed
12027    lt_cv_dlopen_self=no
12028  fi
12029fi
12030rm -fr conftest*
12031
12032
12033fi
12034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12035$as_echo "$lt_cv_dlopen_self" >&6; }
12036
12037    if test yes = "$lt_cv_dlopen_self"; then
12038      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12039      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12040$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12041if ${lt_cv_dlopen_self_static+:} false; then :
12042  $as_echo_n "(cached) " >&6
12043else
12044  	  if test yes = "$cross_compiling"; then :
12045  lt_cv_dlopen_self_static=cross
12046else
12047  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12048  lt_status=$lt_dlunknown
12049  cat > conftest.$ac_ext <<_LT_EOF
12050#line $LINENO "configure"
12051#include "confdefs.h"
12052
12053#if HAVE_DLFCN_H
12054#include <dlfcn.h>
12055#endif
12056
12057#include <stdio.h>
12058
12059#ifdef RTLD_GLOBAL
12060#  define LT_DLGLOBAL		RTLD_GLOBAL
12061#else
12062#  ifdef DL_GLOBAL
12063#    define LT_DLGLOBAL		DL_GLOBAL
12064#  else
12065#    define LT_DLGLOBAL		0
12066#  endif
12067#endif
12068
12069/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12070   find out it does not work in some platform. */
12071#ifndef LT_DLLAZY_OR_NOW
12072#  ifdef RTLD_LAZY
12073#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12074#  else
12075#    ifdef DL_LAZY
12076#      define LT_DLLAZY_OR_NOW		DL_LAZY
12077#    else
12078#      ifdef RTLD_NOW
12079#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12080#      else
12081#        ifdef DL_NOW
12082#          define LT_DLLAZY_OR_NOW	DL_NOW
12083#        else
12084#          define LT_DLLAZY_OR_NOW	0
12085#        endif
12086#      endif
12087#    endif
12088#  endif
12089#endif
12090
12091/* When -fvisibility=hidden is used, assume the code has been annotated
12092   correspondingly for the symbols needed.  */
12093#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12094int fnord () __attribute__((visibility("default")));
12095#endif
12096
12097int fnord () { return 42; }
12098int main ()
12099{
12100  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12101  int status = $lt_dlunknown;
12102
12103  if (self)
12104    {
12105      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12106      else
12107        {
12108	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12109          else puts (dlerror ());
12110	}
12111      /* dlclose (self); */
12112    }
12113  else
12114    puts (dlerror ());
12115
12116  return status;
12117}
12118_LT_EOF
12119  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12120  (eval $ac_link) 2>&5
12121  ac_status=$?
12122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12123  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12124    (./conftest; exit; ) >&5 2>/dev/null
12125    lt_status=$?
12126    case x$lt_status in
12127      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12128      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12129      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12130    esac
12131  else :
12132    # compilation failed
12133    lt_cv_dlopen_self_static=no
12134  fi
12135fi
12136rm -fr conftest*
12137
12138
12139fi
12140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12141$as_echo "$lt_cv_dlopen_self_static" >&6; }
12142    fi
12143
12144    CPPFLAGS=$save_CPPFLAGS
12145    LDFLAGS=$save_LDFLAGS
12146    LIBS=$save_LIBS
12147    ;;
12148  esac
12149
12150  case $lt_cv_dlopen_self in
12151  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12152  *) enable_dlopen_self=unknown ;;
12153  esac
12154
12155  case $lt_cv_dlopen_self_static in
12156  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12157  *) enable_dlopen_self_static=unknown ;;
12158  esac
12159fi
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177striplib=
12178old_striplib=
12179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12180$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12181if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12182  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12183  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12185$as_echo "yes" >&6; }
12186else
12187# FIXME - insert some real tests, host_os isn't really good enough
12188  case $host_os in
12189  darwin*)
12190    if test -n "$STRIP"; then
12191      striplib="$STRIP -x"
12192      old_striplib="$STRIP -S"
12193      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12194$as_echo "yes" >&6; }
12195    else
12196      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12197$as_echo "no" >&6; }
12198    fi
12199    ;;
12200  *)
12201    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202$as_echo "no" >&6; }
12203    ;;
12204  esac
12205fi
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218  # Report what library types will actually be built
12219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12220$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12222$as_echo "$can_build_shared" >&6; }
12223
12224  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12225$as_echo_n "checking whether to build shared libraries... " >&6; }
12226  test no = "$can_build_shared" && enable_shared=no
12227
12228  # On AIX, shared libraries and static libraries use the same namespace, and
12229  # are all built from PIC.
12230  case $host_os in
12231  aix3*)
12232    test yes = "$enable_shared" && enable_static=no
12233    if test -n "$RANLIB"; then
12234      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12235      postinstall_cmds='$RANLIB $lib'
12236    fi
12237    ;;
12238
12239  aix[4-9]*)
12240    if test ia64 != "$host_cpu"; then
12241      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12242      yes,aix,yes) ;;			# shared object as lib.so file only
12243      yes,svr4,*) ;;			# shared object as lib.so archive member only
12244      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12245      esac
12246    fi
12247    ;;
12248  esac
12249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12250$as_echo "$enable_shared" >&6; }
12251
12252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12253$as_echo_n "checking whether to build static libraries... " >&6; }
12254  # Make sure either enable_shared or enable_static is yes.
12255  test yes = "$enable_shared" || enable_static=yes
12256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12257$as_echo "$enable_static" >&6; }
12258
12259
12260
12261
12262fi
12263ac_ext=c
12264ac_cpp='$CPP $CPPFLAGS'
12265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12267ac_compiler_gnu=$ac_cv_c_compiler_gnu
12268
12269CC=$lt_save_CC
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285        ac_config_commands="$ac_config_commands libtool"
12286
12287
12288
12289
12290# Only expand once:
12291
12292
12293
12294
12295# Check whether --with-gnu-ld was given.
12296if test "${with_gnu_ld+set}" = set; then :
12297  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12298else
12299  with_gnu_ld=no
12300fi
12301
12302ac_prog=ld
12303if test yes = "$GCC"; then
12304  # Check if gcc -print-prog-name=ld gives a path.
12305  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12306$as_echo_n "checking for ld used by $CC... " >&6; }
12307  case $host in
12308  *-*-mingw*)
12309    # gcc leaves a trailing carriage return, which upsets mingw
12310    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12311  *)
12312    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12313  esac
12314  case $ac_prog in
12315    # Accept absolute paths.
12316    [\\/]* | ?:[\\/]*)
12317      re_direlt='/[^/][^/]*/\.\./'
12318      # Canonicalize the pathname of ld
12319      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12320      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12321	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12322      done
12323      test -z "$LD" && LD=$ac_prog
12324      ;;
12325  "")
12326    # If it fails, then pretend we aren't using GCC.
12327    ac_prog=ld
12328    ;;
12329  *)
12330    # If it is relative, then search for the first ld in PATH.
12331    with_gnu_ld=unknown
12332    ;;
12333  esac
12334elif test yes = "$with_gnu_ld"; then
12335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12336$as_echo_n "checking for GNU ld... " >&6; }
12337else
12338  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12339$as_echo_n "checking for non-GNU ld... " >&6; }
12340fi
12341if ${lt_cv_path_LD+:} false; then :
12342  $as_echo_n "(cached) " >&6
12343else
12344  if test -z "$LD"; then
12345  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12346  for ac_dir in $PATH; do
12347    IFS=$lt_save_ifs
12348    test -z "$ac_dir" && ac_dir=.
12349    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12350      lt_cv_path_LD=$ac_dir/$ac_prog
12351      # Check to see if the program is GNU ld.  I'd rather use --version,
12352      # but apparently some variants of GNU ld only accept -v.
12353      # Break only if it was the GNU/non-GNU ld that we prefer.
12354      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12355      *GNU* | *'with BFD'*)
12356	test no != "$with_gnu_ld" && break
12357	;;
12358      *)
12359	test yes != "$with_gnu_ld" && break
12360	;;
12361      esac
12362    fi
12363  done
12364  IFS=$lt_save_ifs
12365else
12366  lt_cv_path_LD=$LD # Let the user override the test with a path.
12367fi
12368fi
12369
12370LD=$lt_cv_path_LD
12371if test -n "$LD"; then
12372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12373$as_echo "$LD" >&6; }
12374else
12375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376$as_echo "no" >&6; }
12377fi
12378test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12380$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12381if ${lt_cv_prog_gnu_ld+:} false; then :
12382  $as_echo_n "(cached) " >&6
12383else
12384  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12385case `$LD -v 2>&1 </dev/null` in
12386*GNU* | *'with BFD'*)
12387  lt_cv_prog_gnu_ld=yes
12388  ;;
12389*)
12390  lt_cv_prog_gnu_ld=no
12391  ;;
12392esac
12393fi
12394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12395$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12396with_gnu_ld=$lt_cv_prog_gnu_ld
12397
12398
12399
12400
12401
12402
12403
12404with_ldflags=""
12405if test "x$lt_cv_prog_gnu_ld" = "xyes"; then
12406
12407  for flag in \
12408				-Wl,--as-needed \
12409				-Wl,--gc-sections \
12410				-Wl,-z,relro \
12411				-Wl,-z,now; do
12412
12413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar LDFLAGS" >&5
12414$as_echo_n "checking if $CC supports flag $flag in envvar LDFLAGS... " >&6; }
12415if { as_var=`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12416  $as_echo_n "(cached) " >&6
12417else
12418  eval "cc_save_LDFLAGS='${LDFLAGS}'"
12419           eval "LDFLAGS='-Werror $flag'"
12420           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421/* end confdefs.h.  */
12422int a = 0; int main(void) { return a; }
12423_ACEOF
12424if ac_fn_c_try_link "$LINENO"; then :
12425  eval "`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh`='yes'"
12426else
12427  eval "`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh`='no'"
12428fi
12429rm -f core conftest.err conftest.$ac_objext \
12430    conftest$ac_exeext conftest.$ac_ext
12431           eval "LDFLAGS='$cc_save_LDFLAGS'"
12432fi
12433eval ac_res=\$`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh`
12434	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12435$as_echo "$ac_res" >&6; }
12436
12437  if eval test x$`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh` = xyes; then :
12438  eval "with_ldflags='${with_ldflags} $flag'"
12439fi
12440
12441  done
12442
12443fi
12444GNU_LD_FLAGS=$with_ldflags
12445
12446
12447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for round in -lm" >&5
12448$as_echo_n "checking for round in -lm... " >&6; }
12449if ${ac_cv_lib_m_round+:} false; then :
12450  $as_echo_n "(cached) " >&6
12451else
12452  ac_check_lib_save_LIBS=$LIBS
12453LIBS="-lm  $LIBS"
12454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455/* end confdefs.h.  */
12456
12457/* Override any GCC internal prototype to avoid an error.
12458   Use char because int might match the return type of a GCC
12459   builtin and then its argument prototype would still apply.  */
12460#ifdef __cplusplus
12461extern "C"
12462#endif
12463char round ();
12464int
12465main ()
12466{
12467return round ();
12468  ;
12469  return 0;
12470}
12471_ACEOF
12472if ac_fn_c_try_link "$LINENO"; then :
12473  ac_cv_lib_m_round=yes
12474else
12475  ac_cv_lib_m_round=no
12476fi
12477rm -f core conftest.err conftest.$ac_objext \
12478    conftest$ac_exeext conftest.$ac_ext
12479LIBS=$ac_check_lib_save_LIBS
12480fi
12481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_round" >&5
12482$as_echo "$ac_cv_lib_m_round" >&6; }
12483if test "x$ac_cv_lib_m_round" = xyes; then :
12484  cat >>confdefs.h <<_ACEOF
12485#define HAVE_LIBM 1
12486_ACEOF
12487
12488  LIBS="-lm $LIBS"
12489
12490fi
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12501	if test -n "$ac_tool_prefix"; then
12502  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12503set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12505$as_echo_n "checking for $ac_word... " >&6; }
12506if ${ac_cv_path_PKG_CONFIG+:} false; then :
12507  $as_echo_n "(cached) " >&6
12508else
12509  case $PKG_CONFIG in
12510  [\\/]* | ?:[\\/]*)
12511  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12512  ;;
12513  *)
12514  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515for as_dir in $PATH
12516do
12517  IFS=$as_save_IFS
12518  test -z "$as_dir" && as_dir=.
12519    for ac_exec_ext in '' $ac_executable_extensions; do
12520  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12521    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12523    break 2
12524  fi
12525done
12526  done
12527IFS=$as_save_IFS
12528
12529  ;;
12530esac
12531fi
12532PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12533if test -n "$PKG_CONFIG"; then
12534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12535$as_echo "$PKG_CONFIG" >&6; }
12536else
12537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538$as_echo "no" >&6; }
12539fi
12540
12541
12542fi
12543if test -z "$ac_cv_path_PKG_CONFIG"; then
12544  ac_pt_PKG_CONFIG=$PKG_CONFIG
12545  # Extract the first word of "pkg-config", so it can be a program name with args.
12546set dummy pkg-config; ac_word=$2
12547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548$as_echo_n "checking for $ac_word... " >&6; }
12549if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12550  $as_echo_n "(cached) " >&6
12551else
12552  case $ac_pt_PKG_CONFIG in
12553  [\\/]* | ?:[\\/]*)
12554  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12555  ;;
12556  *)
12557  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558for as_dir in $PATH
12559do
12560  IFS=$as_save_IFS
12561  test -z "$as_dir" && as_dir=.
12562    for ac_exec_ext in '' $ac_executable_extensions; do
12563  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12564    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12566    break 2
12567  fi
12568done
12569  done
12570IFS=$as_save_IFS
12571
12572  ;;
12573esac
12574fi
12575ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12576if test -n "$ac_pt_PKG_CONFIG"; then
12577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12578$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12579else
12580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581$as_echo "no" >&6; }
12582fi
12583
12584  if test "x$ac_pt_PKG_CONFIG" = x; then
12585    PKG_CONFIG=""
12586  else
12587    case $cross_compiling:$ac_tool_warned in
12588yes:)
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12591ac_tool_warned=yes ;;
12592esac
12593    PKG_CONFIG=$ac_pt_PKG_CONFIG
12594  fi
12595else
12596  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12597fi
12598
12599fi
12600if test -n "$PKG_CONFIG"; then
12601	_pkg_min_version=0.9.0
12602	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12603$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12604	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12605		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12606$as_echo "yes" >&6; }
12607	else
12608		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12609$as_echo "no" >&6; }
12610		PKG_CONFIG=""
12611	fi
12612fi
12613
12614pkg_failed=no
12615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
12616$as_echo_n "checking for CHECK... " >&6; }
12617
12618if test -n "$CHECK_CFLAGS"; then
12619    pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
12620 elif test -n "$PKG_CONFIG"; then
12621    if test -n "$PKG_CONFIG" && \
12622    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.9\""; } >&5
12623  ($PKG_CONFIG --exists --print-errors "check >= 0.9.9") 2>&5
12624  ac_status=$?
12625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12626  test $ac_status = 0; }; then
12627  pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.9" 2>/dev/null`
12628		      test "x$?" != "x0" && pkg_failed=yes
12629else
12630  pkg_failed=yes
12631fi
12632 else
12633    pkg_failed=untried
12634fi
12635if test -n "$CHECK_LIBS"; then
12636    pkg_cv_CHECK_LIBS="$CHECK_LIBS"
12637 elif test -n "$PKG_CONFIG"; then
12638    if test -n "$PKG_CONFIG" && \
12639    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.9\""; } >&5
12640  ($PKG_CONFIG --exists --print-errors "check >= 0.9.9") 2>&5
12641  ac_status=$?
12642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12643  test $ac_status = 0; }; then
12644  pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.9" 2>/dev/null`
12645		      test "x$?" != "x0" && pkg_failed=yes
12646else
12647  pkg_failed=yes
12648fi
12649 else
12650    pkg_failed=untried
12651fi
12652
12653
12654
12655if test $pkg_failed = yes; then
12656   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12657$as_echo "no" >&6; }
12658
12659if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12660        _pkg_short_errors_supported=yes
12661else
12662        _pkg_short_errors_supported=no
12663fi
12664        if test $_pkg_short_errors_supported = yes; then
12665	        CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.9" 2>&1`
12666        else
12667	        CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.9" 2>&1`
12668        fi
12669	# Put the nasty error message in config.log where it belongs
12670	echo "$CHECK_PKG_ERRORS" >&5
12671
12672	HAVE_CHECK="no"
12673elif test $pkg_failed = untried; then
12674     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675$as_echo "no" >&6; }
12676	HAVE_CHECK="no"
12677else
12678	CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
12679	CHECK_LIBS=$pkg_cv_CHECK_LIBS
12680        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12681$as_echo "yes" >&6; }
12682	HAVE_CHECK="yes"
12683fi
12684if test "x$HAVE_CHECK" = "xyes"; then
12685	# Extract the first word of "valgrind", so it can be a program name with args.
12686set dummy valgrind; ac_word=$2
12687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688$as_echo_n "checking for $ac_word... " >&6; }
12689if ${ac_cv_path_VALGRIND+:} false; then :
12690  $as_echo_n "(cached) " >&6
12691else
12692  case $VALGRIND in
12693  [\\/]* | ?:[\\/]*)
12694  ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
12695  ;;
12696  *)
12697  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12698for as_dir in $PATH
12699do
12700  IFS=$as_save_IFS
12701  test -z "$as_dir" && as_dir=.
12702    for ac_exec_ext in '' $ac_executable_extensions; do
12703  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12704    ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
12705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12706    break 2
12707  fi
12708done
12709  done
12710IFS=$as_save_IFS
12711
12712  ;;
12713esac
12714fi
12715VALGRIND=$ac_cv_path_VALGRIND
12716if test -n "$VALGRIND"; then
12717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
12718$as_echo "$VALGRIND" >&6; }
12719else
12720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721$as_echo "no" >&6; }
12722fi
12723
12724
12725else
12726	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: check not found - skipping building unit tests" >&5
12727$as_echo "$as_me: WARNING: check not found - skipping building unit tests" >&2;}
12728fi
12729 if test "x$VALGRIND" != "x"; then
12730  HAVE_VALGRIND_TRUE=
12731  HAVE_VALGRIND_FALSE='#'
12732else
12733  HAVE_VALGRIND_TRUE='#'
12734  HAVE_VALGRIND_FALSE=
12735fi
12736
12737 if test "x$HAVE_CHECK" = "xyes"; then
12738  ENABLE_RUNTIME_TESTS_TRUE=
12739  ENABLE_RUNTIME_TESTS_FALSE='#'
12740else
12741  ENABLE_RUNTIME_TESTS_TRUE='#'
12742  ENABLE_RUNTIME_TESTS_FALSE=
12743fi
12744
12745 if test "x$enable_static" = "xyes"; then
12746  ENABLE_STATIC_LINK_TEST_TRUE=
12747  ENABLE_STATIC_LINK_TEST_FALSE='#'
12748else
12749  ENABLE_STATIC_LINK_TEST_TRUE='#'
12750  ENABLE_STATIC_LINK_TEST_FALSE=
12751fi
12752
12753
12754# Check whether --enable-test-run was given.
12755if test "${enable_test_run+set}" = set; then :
12756  enableval=$enable_test_run; run_tests="$enableval"
12757else
12758  run_tests="yes"
12759fi
12760
12761 if test "x$run_tests" = "xyes"; then
12762  RUN_TESTS_TRUE=
12763  RUN_TESTS_FALSE='#'
12764else
12765  RUN_TESTS_TRUE='#'
12766  RUN_TESTS_FALSE=
12767fi
12768
12769
12770with_cflags=""
12771if test "x$GCC" = "xyes"; then
12772
12773  for flag in \
12774				-Wall \
12775				-Wextra \
12776				-Wno-unused-parameter \
12777				-Wstrict-prototypes \
12778				-Wmissing-prototypes \
12779				-fvisibility=hidden \
12780				-pipe \
12781				-fno-strict-aliasing \
12782				-ffunction-sections \
12783				-fdata-sections \
12784				-fno-strict-aliasing \
12785				-fdiagnostics-show-option \
12786				-fno-common; do
12787
12788  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar CFLAGS" >&5
12789$as_echo_n "checking if $CC supports flag $flag in envvar CFLAGS... " >&6; }
12790if { as_var=`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12791  $as_echo_n "(cached) " >&6
12792else
12793  eval "cc_save_CFLAGS='${CFLAGS}'"
12794           eval "CFLAGS='-Werror $flag'"
12795           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12796/* end confdefs.h.  */
12797int a = 0; int main(void) { return a; }
12798_ACEOF
12799if ac_fn_c_try_link "$LINENO"; then :
12800  eval "`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`='yes'"
12801else
12802  eval "`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`='no'"
12803fi
12804rm -f core conftest.err conftest.$ac_objext \
12805    conftest$ac_exeext conftest.$ac_ext
12806           eval "CFLAGS='$cc_save_CFLAGS'"
12807fi
12808eval ac_res=\$`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`
12809	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12810$as_echo "$ac_res" >&6; }
12811
12812  if eval test x$`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh` = xyes; then :
12813  eval "with_cflags='${with_cflags} $flag'"
12814fi
12815
12816  done
12817
12818fi
12819GCC_CFLAGS=$with_cflags
12820
12821
12822# Extract the first word of "doxygen", so it can be a program name with args.
12823set dummy doxygen; ac_word=$2
12824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12825$as_echo_n "checking for $ac_word... " >&6; }
12826if ${ac_cv_path_DOXYGEN+:} false; then :
12827  $as_echo_n "(cached) " >&6
12828else
12829  case $DOXYGEN in
12830  [\\/]* | ?:[\\/]*)
12831  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
12832  ;;
12833  *)
12834  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12835for as_dir in $PATH
12836do
12837  IFS=$as_save_IFS
12838  test -z "$as_dir" && as_dir=.
12839    for ac_exec_ext in '' $ac_executable_extensions; do
12840  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12841    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
12842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12843    break 2
12844  fi
12845done
12846  done
12847IFS=$as_save_IFS
12848
12849  ;;
12850esac
12851fi
12852DOXYGEN=$ac_cv_path_DOXYGEN
12853if test -n "$DOXYGEN"; then
12854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12855$as_echo "$DOXYGEN" >&6; }
12856else
12857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858$as_echo "no" >&6; }
12859fi
12860
12861
12862if test "x$DOXYGEN" = "x"; then
12863	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - required for documentation" >&5
12864$as_echo "$as_me: WARNING: doxygen not found - required for documentation" >&2;}
12865	have_doxygen="no"
12866else
12867	have_doxygen="yes"
12868fi
12869 if test "x$have_doxygen" = "xyes"; then
12870  HAVE_DOXYGEN_TRUE=
12871  HAVE_DOXYGEN_FALSE='#'
12872else
12873  HAVE_DOXYGEN_TRUE='#'
12874  HAVE_DOXYGEN_FALSE=
12875fi
12876
12877
12878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with gcov" >&5
12879$as_echo_n "checking whether to build with gcov... " >&6; }
12880# Check whether --enable-gcov was given.
12881if test "${enable_gcov+set}" = set; then :
12882  enableval=$enable_gcov;
12883else
12884  enable_gcov=no
12885fi
12886
12887if test "x$enable_gcov" != "xno"; then :
12888
12889       GCOV_CFLAGS="-fprofile-arcs -ftest-coverage"
12890       GCOV_LDFLAGS="-fprofile-arcs -ftest-coverage"
12891       enable_gcov=yes
12892
12893fi
12894 if test "x$enable_gcov" != "xno"; then
12895  GCOV_ENABLED_TRUE=
12896  GCOV_ENABLED_FALSE='#'
12897else
12898  GCOV_ENABLED_TRUE='#'
12899  GCOV_ENABLED_FALSE=
12900fi
12901
12902
12903
12904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gcov" >&5
12905$as_echo "$enable_gcov" >&6; }
12906
12907
12908
12909
12910
12911
12912
12913        if test -n "$PYTHON"; then
12914      # If the user set $PYTHON, use it and don't search something else.
12915      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
12916$as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
12917      prog="import sys
12918# split strings by '.' and convert to numeric.  Append some zeros
12919# because we need at least 4 digits for the hex conversion.
12920# map returns an iterator in Python 3.0 and a list in 2.x
12921minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
12922minverhex = 0
12923# xrange is not present in Python 3.0 and range returns an iterator
12924for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12925sys.exit(sys.hexversion < minverhex)"
12926  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12927   ($PYTHON -c "$prog") >&5 2>&5
12928   ac_status=$?
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); }; then :
12931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12932$as_echo "yes" >&6; }
12933else
12934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12935$as_echo "no" >&6; }
12936			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
12937fi
12938      am_display_PYTHON=$PYTHON
12939    else
12940      # Otherwise, try each interpreter until we find one that satisfies
12941      # VERSION.
12942      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
12943$as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
12944if ${am_cv_pathless_PYTHON+:} false; then :
12945  $as_echo_n "(cached) " >&6
12946else
12947
12948	for am_cv_pathless_PYTHON in python python2 python3 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
12949	  test "$am_cv_pathless_PYTHON" = none && break
12950	  prog="import sys
12951# split strings by '.' and convert to numeric.  Append some zeros
12952# because we need at least 4 digits for the hex conversion.
12953# map returns an iterator in Python 3.0 and a list in 2.x
12954minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
12955minverhex = 0
12956# xrange is not present in Python 3.0 and range returns an iterator
12957for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12958sys.exit(sys.hexversion < minverhex)"
12959  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
12960   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
12961   ac_status=$?
12962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963   (exit $ac_status); }; then :
12964  break
12965fi
12966	done
12967fi
12968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
12969$as_echo "$am_cv_pathless_PYTHON" >&6; }
12970      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
12971      if test "$am_cv_pathless_PYTHON" = none; then
12972	PYTHON=:
12973      else
12974        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
12975set dummy $am_cv_pathless_PYTHON; ac_word=$2
12976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12977$as_echo_n "checking for $ac_word... " >&6; }
12978if ${ac_cv_path_PYTHON+:} false; then :
12979  $as_echo_n "(cached) " >&6
12980else
12981  case $PYTHON in
12982  [\\/]* | ?:[\\/]*)
12983  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12984  ;;
12985  *)
12986  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12987for as_dir in $PATH
12988do
12989  IFS=$as_save_IFS
12990  test -z "$as_dir" && as_dir=.
12991    for ac_exec_ext in '' $ac_executable_extensions; do
12992  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12993    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12995    break 2
12996  fi
12997done
12998  done
12999IFS=$as_save_IFS
13000
13001  ;;
13002esac
13003fi
13004PYTHON=$ac_cv_path_PYTHON
13005if test -n "$PYTHON"; then
13006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13007$as_echo "$PYTHON" >&6; }
13008else
13009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13010$as_echo "no" >&6; }
13011fi
13012
13013
13014      fi
13015      am_display_PYTHON=$am_cv_pathless_PYTHON
13016    fi
13017
13018
13019  if test "$PYTHON" = :; then
13020      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
13021  else
13022
13023
13024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13025$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
13026if ${am_cv_python_version+:} false; then :
13027  $as_echo_n "(cached) " >&6
13028else
13029  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
13030fi
13031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13032$as_echo "$am_cv_python_version" >&6; }
13033  PYTHON_VERSION=$am_cv_python_version
13034
13035
13036
13037  PYTHON_PREFIX='${prefix}'
13038
13039  PYTHON_EXEC_PREFIX='${exec_prefix}'
13040
13041
13042
13043  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13044$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
13045if ${am_cv_python_platform+:} false; then :
13046  $as_echo_n "(cached) " >&6
13047else
13048  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
13049fi
13050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13051$as_echo "$am_cv_python_platform" >&6; }
13052  PYTHON_PLATFORM=$am_cv_python_platform
13053
13054
13055  # Just factor out some code duplication.
13056  am_python_setup_sysconfig="\
13057import sys
13058# Prefer sysconfig over distutils.sysconfig, for better compatibility
13059# with python 3.x.  See automake bug#10227.
13060try:
13061    import sysconfig
13062except ImportError:
13063    can_use_sysconfig = 0
13064else:
13065    can_use_sysconfig = 1
13066# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
13067# <https://github.com/pypa/virtualenv/issues/118>
13068try:
13069    from platform import python_implementation
13070    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
13071        can_use_sysconfig = 0
13072except ImportError:
13073    pass"
13074
13075
13076            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
13077$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
13078if ${am_cv_python_pythondir+:} false; then :
13079  $as_echo_n "(cached) " >&6
13080else
13081  if test "x$prefix" = xNONE
13082     then
13083       am_py_prefix=$ac_default_prefix
13084     else
13085       am_py_prefix=$prefix
13086     fi
13087     am_cv_python_pythondir=`$PYTHON -c "
13088$am_python_setup_sysconfig
13089if can_use_sysconfig:
13090    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
13091else:
13092    from distutils import sysconfig
13093    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
13094sys.stdout.write(sitedir)"`
13095     case $am_cv_python_pythondir in
13096     $am_py_prefix*)
13097       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
13098       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
13099       ;;
13100     *)
13101       case $am_py_prefix in
13102         /usr|/System*) ;;
13103         *)
13104	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
13105	  ;;
13106       esac
13107       ;;
13108     esac
13109
13110fi
13111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13112$as_echo "$am_cv_python_pythondir" >&6; }
13113  pythondir=$am_cv_python_pythondir
13114
13115
13116
13117  pkgpythondir=\${pythondir}/$PACKAGE
13118
13119
13120        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
13121$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13122if ${am_cv_python_pyexecdir+:} false; then :
13123  $as_echo_n "(cached) " >&6
13124else
13125  if test "x$exec_prefix" = xNONE
13126     then
13127       am_py_exec_prefix=$am_py_prefix
13128     else
13129       am_py_exec_prefix=$exec_prefix
13130     fi
13131     am_cv_python_pyexecdir=`$PYTHON -c "
13132$am_python_setup_sysconfig
13133if can_use_sysconfig:
13134    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
13135else:
13136    from distutils import sysconfig
13137    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
13138sys.stdout.write(sitedir)"`
13139     case $am_cv_python_pyexecdir in
13140     $am_py_exec_prefix*)
13141       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13142       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13143       ;;
13144     *)
13145       case $am_py_exec_prefix in
13146         /usr|/System*) ;;
13147         *)
13148	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
13149	   ;;
13150       esac
13151       ;;
13152     esac
13153
13154fi
13155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13156$as_echo "$am_cv_python_pyexecdir" >&6; }
13157  pyexecdir=$am_cv_python_pyexecdir
13158
13159
13160
13161  pkgpyexecdir=\${pyexecdir}/$PACKAGE
13162
13163
13164
13165  fi
13166
13167
13168# Extract the first word of "cat", so it can be a program name with args.
13169set dummy cat; ac_word=$2
13170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13171$as_echo_n "checking for $ac_word... " >&6; }
13172if ${ac_cv_path_CAT+:} false; then :
13173  $as_echo_n "(cached) " >&6
13174else
13175  case $CAT in
13176  [\\/]* | ?:[\\/]*)
13177  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
13178  ;;
13179  *)
13180  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181for as_dir in $PATH
13182do
13183  IFS=$as_save_IFS
13184  test -z "$as_dir" && as_dir=.
13185    for ac_exec_ext in '' $ac_executable_extensions; do
13186  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13187    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
13188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13189    break 2
13190  fi
13191done
13192  done
13193IFS=$as_save_IFS
13194
13195  ;;
13196esac
13197fi
13198CAT=$ac_cv_path_CAT
13199if test -n "$CAT"; then
13200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
13201$as_echo "$CAT" >&6; }
13202else
13203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13204$as_echo "no" >&6; }
13205fi
13206
13207
13208
13209# nm to check for leaking symbols in the static library
13210# Extract the first word of "nm", so it can be a program name with args.
13211set dummy nm; ac_word=$2
13212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13213$as_echo_n "checking for $ac_word... " >&6; }
13214if ${ac_cv_path_NM+:} false; then :
13215  $as_echo_n "(cached) " >&6
13216else
13217  case $NM in
13218  [\\/]* | ?:[\\/]*)
13219  ac_cv_path_NM="$NM" # Let the user override the test with a path.
13220  ;;
13221  *)
13222  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223for as_dir in $PATH
13224do
13225  IFS=$as_save_IFS
13226  test -z "$as_dir" && as_dir=.
13227    for ac_exec_ext in '' $ac_executable_extensions; do
13228  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13229    ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
13230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13231    break 2
13232  fi
13233done
13234  done
13235IFS=$as_save_IFS
13236
13237  ;;
13238esac
13239fi
13240NM=$ac_cv_path_NM
13241if test -n "$NM"; then
13242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
13243$as_echo "$NM" >&6; }
13244else
13245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13246$as_echo "no" >&6; }
13247fi
13248
13249
13250 if test "x$NM" != "x"; then
13251  HAVE_NM_TRUE=
13252  HAVE_NM_FALSE='#'
13253else
13254  HAVE_NM_TRUE='#'
13255  HAVE_NM_FALSE=
13256fi
13257
13258if test "x$enable_static" = "xno"; then
13259	static_symbol_leaks_test="no - static build disabled"
13260else
13261	if test "x$NM" = "x"; then
13262		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: nm not found - skipping symbol leak test" >&5
13263$as_echo "$as_me: WARNING: nm not found - skipping symbol leak test" >&2;}
13264		have_nm="no"
13265		static_symbol_leaks_test="no - nm not found"
13266	else
13267		have_nm="yes"
13268		static_symbol_leaks_test="yes"
13269	fi
13270fi
13271
13272 if test "x$static_symbol_leaks_test" = "xyes"; then
13273  ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE=
13274  ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE='#'
13275else
13276  ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE='#'
13277  ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE=
13278fi
13279
13280
13281ac_config_files="$ac_config_files Makefile libevdev/Makefile doc/Makefile doc/libevdev.doxygen doc/libevdev.man tools/Makefile test/Makefile libevdev.pc"
13282
13283cat >confcache <<\_ACEOF
13284# This file is a shell script that caches the results of configure
13285# tests run on this system so they can be shared between configure
13286# scripts and configure runs, see configure's option --config-cache.
13287# It is not useful on other systems.  If it contains results you don't
13288# want to keep, you may remove or edit it.
13289#
13290# config.status only pays attention to the cache file if you give it
13291# the --recheck option to rerun configure.
13292#
13293# `ac_cv_env_foo' variables (set or unset) will be overridden when
13294# loading this file, other *unset* `ac_cv_foo' will be assigned the
13295# following values.
13296
13297_ACEOF
13298
13299# The following way of writing the cache mishandles newlines in values,
13300# but we know of no workaround that is simple, portable, and efficient.
13301# So, we kill variables containing newlines.
13302# Ultrix sh set writes to stderr and can't be redirected directly,
13303# and sets the high bit in the cache file unless we assign to the vars.
13304(
13305  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13306    eval ac_val=\$$ac_var
13307    case $ac_val in #(
13308    *${as_nl}*)
13309      case $ac_var in #(
13310      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13311$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13312      esac
13313      case $ac_var in #(
13314      _ | IFS | as_nl) ;; #(
13315      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13316      *) { eval $ac_var=; unset $ac_var;} ;;
13317      esac ;;
13318    esac
13319  done
13320
13321  (set) 2>&1 |
13322    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13323    *${as_nl}ac_space=\ *)
13324      # `set' does not quote correctly, so add quotes: double-quote
13325      # substitution turns \\\\ into \\, and sed turns \\ into \.
13326      sed -n \
13327	"s/'/'\\\\''/g;
13328	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13329      ;; #(
13330    *)
13331      # `set' quotes correctly as required by POSIX, so do not add quotes.
13332      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13333      ;;
13334    esac |
13335    sort
13336) |
13337  sed '
13338     /^ac_cv_env_/b end
13339     t clear
13340     :clear
13341     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13342     t end
13343     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13344     :end' >>confcache
13345if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13346  if test -w "$cache_file"; then
13347    if test "x$cache_file" != "x/dev/null"; then
13348      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13349$as_echo "$as_me: updating cache $cache_file" >&6;}
13350      if test ! -f "$cache_file" || test -h "$cache_file"; then
13351	cat confcache >"$cache_file"
13352      else
13353        case $cache_file in #(
13354        */* | ?:*)
13355	  mv -f confcache "$cache_file"$$ &&
13356	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13357        *)
13358	  mv -f confcache "$cache_file" ;;
13359	esac
13360      fi
13361    fi
13362  else
13363    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13364$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13365  fi
13366fi
13367rm -f confcache
13368
13369test "x$prefix" = xNONE && prefix=$ac_default_prefix
13370# Let make expand exec_prefix.
13371test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13372
13373DEFS=-DHAVE_CONFIG_H
13374
13375ac_libobjs=
13376ac_ltlibobjs=
13377U=
13378for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13379  # 1. Remove the extension, and $U if already installed.
13380  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13381  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13382  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13383  #    will be set to the directory where LIBOBJS objects are built.
13384  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13385  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13386done
13387LIBOBJS=$ac_libobjs
13388
13389LTLIBOBJS=$ac_ltlibobjs
13390
13391
13392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13393$as_echo_n "checking that generated files are newer than configure... " >&6; }
13394   if test -n "$am_sleep_pid"; then
13395     # Hide warnings about reused PIDs.
13396     wait $am_sleep_pid 2>/dev/null
13397   fi
13398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13399$as_echo "done" >&6; }
13400if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13401  as_fn_error $? "conditional \"AMDEP\" was never defined.
13402Usually this means the macro was only invoked conditionally." "$LINENO" 5
13403fi
13404if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13405  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13406Usually this means the macro was only invoked conditionally." "$LINENO" 5
13407fi
13408 if test -n "$EXEEXT"; then
13409  am__EXEEXT_TRUE=
13410  am__EXEEXT_FALSE='#'
13411else
13412  am__EXEEXT_TRUE='#'
13413  am__EXEEXT_FALSE=
13414fi
13415
13416if test -z "${HAVE_VALGRIND_TRUE}" && test -z "${HAVE_VALGRIND_FALSE}"; then
13417  as_fn_error $? "conditional \"HAVE_VALGRIND\" was never defined.
13418Usually this means the macro was only invoked conditionally." "$LINENO" 5
13419fi
13420if test -z "${ENABLE_RUNTIME_TESTS_TRUE}" && test -z "${ENABLE_RUNTIME_TESTS_FALSE}"; then
13421  as_fn_error $? "conditional \"ENABLE_RUNTIME_TESTS\" was never defined.
13422Usually this means the macro was only invoked conditionally." "$LINENO" 5
13423fi
13424if test -z "${ENABLE_STATIC_LINK_TEST_TRUE}" && test -z "${ENABLE_STATIC_LINK_TEST_FALSE}"; then
13425  as_fn_error $? "conditional \"ENABLE_STATIC_LINK_TEST\" was never defined.
13426Usually this means the macro was only invoked conditionally." "$LINENO" 5
13427fi
13428if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
13429  as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
13430Usually this means the macro was only invoked conditionally." "$LINENO" 5
13431fi
13432if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
13433  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
13434Usually this means the macro was only invoked conditionally." "$LINENO" 5
13435fi
13436if test -z "${GCOV_ENABLED_TRUE}" && test -z "${GCOV_ENABLED_FALSE}"; then
13437  as_fn_error $? "conditional \"GCOV_ENABLED\" was never defined.
13438Usually this means the macro was only invoked conditionally." "$LINENO" 5
13439fi
13440if test -z "${HAVE_NM_TRUE}" && test -z "${HAVE_NM_FALSE}"; then
13441  as_fn_error $? "conditional \"HAVE_NM\" was never defined.
13442Usually this means the macro was only invoked conditionally." "$LINENO" 5
13443fi
13444if test -z "${ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE}" && test -z "${ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE}"; then
13445  as_fn_error $? "conditional \"ENABLE_STATIC_SYMBOL_LEAKS_TEST\" was never defined.
13446Usually this means the macro was only invoked conditionally." "$LINENO" 5
13447fi
13448
13449: "${CONFIG_STATUS=./config.status}"
13450ac_write_fail=0
13451ac_clean_files_save=$ac_clean_files
13452ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13453{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13454$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13455as_write_fail=0
13456cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13457#! $SHELL
13458# Generated by $as_me.
13459# Run this file to recreate the current configuration.
13460# Compiler output produced by configure, useful for debugging
13461# configure, is in config.log if it exists.
13462
13463debug=false
13464ac_cs_recheck=false
13465ac_cs_silent=false
13466
13467SHELL=\${CONFIG_SHELL-$SHELL}
13468export SHELL
13469_ASEOF
13470cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13471## -------------------- ##
13472## M4sh Initialization. ##
13473## -------------------- ##
13474
13475# Be more Bourne compatible
13476DUALCASE=1; export DUALCASE # for MKS sh
13477if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13478  emulate sh
13479  NULLCMD=:
13480  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13481  # is contrary to our usage.  Disable this feature.
13482  alias -g '${1+"$@"}'='"$@"'
13483  setopt NO_GLOB_SUBST
13484else
13485  case `(set -o) 2>/dev/null` in #(
13486  *posix*) :
13487    set -o posix ;; #(
13488  *) :
13489     ;;
13490esac
13491fi
13492
13493
13494as_nl='
13495'
13496export as_nl
13497# Printing a long string crashes Solaris 7 /usr/bin/printf.
13498as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13499as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13500as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13501# Prefer a ksh shell builtin over an external printf program on Solaris,
13502# but without wasting forks for bash or zsh.
13503if test -z "$BASH_VERSION$ZSH_VERSION" \
13504    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13505  as_echo='print -r --'
13506  as_echo_n='print -rn --'
13507elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13508  as_echo='printf %s\n'
13509  as_echo_n='printf %s'
13510else
13511  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13512    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13513    as_echo_n='/usr/ucb/echo -n'
13514  else
13515    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13516    as_echo_n_body='eval
13517      arg=$1;
13518      case $arg in #(
13519      *"$as_nl"*)
13520	expr "X$arg" : "X\\(.*\\)$as_nl";
13521	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13522      esac;
13523      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13524    '
13525    export as_echo_n_body
13526    as_echo_n='sh -c $as_echo_n_body as_echo'
13527  fi
13528  export as_echo_body
13529  as_echo='sh -c $as_echo_body as_echo'
13530fi
13531
13532# The user is always right.
13533if test "${PATH_SEPARATOR+set}" != set; then
13534  PATH_SEPARATOR=:
13535  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13536    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13537      PATH_SEPARATOR=';'
13538  }
13539fi
13540
13541
13542# IFS
13543# We need space, tab and new line, in precisely that order.  Quoting is
13544# there to prevent editors from complaining about space-tab.
13545# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13546# splitting by setting IFS to empty value.)
13547IFS=" ""	$as_nl"
13548
13549# Find who we are.  Look in the path if we contain no directory separator.
13550as_myself=
13551case $0 in #((
13552  *[\\/]* ) as_myself=$0 ;;
13553  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13554for as_dir in $PATH
13555do
13556  IFS=$as_save_IFS
13557  test -z "$as_dir" && as_dir=.
13558    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13559  done
13560IFS=$as_save_IFS
13561
13562     ;;
13563esac
13564# We did not find ourselves, most probably we were run as `sh COMMAND'
13565# in which case we are not to be found in the path.
13566if test "x$as_myself" = x; then
13567  as_myself=$0
13568fi
13569if test ! -f "$as_myself"; then
13570  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13571  exit 1
13572fi
13573
13574# Unset variables that we do not need and which cause bugs (e.g. in
13575# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13576# suppresses any "Segmentation fault" message there.  '((' could
13577# trigger a bug in pdksh 5.2.14.
13578for as_var in BASH_ENV ENV MAIL MAILPATH
13579do eval test x\${$as_var+set} = xset \
13580  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13581done
13582PS1='$ '
13583PS2='> '
13584PS4='+ '
13585
13586# NLS nuisances.
13587LC_ALL=C
13588export LC_ALL
13589LANGUAGE=C
13590export LANGUAGE
13591
13592# CDPATH.
13593(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13594
13595
13596# as_fn_error STATUS ERROR [LINENO LOG_FD]
13597# ----------------------------------------
13598# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13599# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13600# script with STATUS, using 1 if that was 0.
13601as_fn_error ()
13602{
13603  as_status=$1; test $as_status -eq 0 && as_status=1
13604  if test "$4"; then
13605    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13606    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13607  fi
13608  $as_echo "$as_me: error: $2" >&2
13609  as_fn_exit $as_status
13610} # as_fn_error
13611
13612
13613# as_fn_set_status STATUS
13614# -----------------------
13615# Set $? to STATUS, without forking.
13616as_fn_set_status ()
13617{
13618  return $1
13619} # as_fn_set_status
13620
13621# as_fn_exit STATUS
13622# -----------------
13623# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13624as_fn_exit ()
13625{
13626  set +e
13627  as_fn_set_status $1
13628  exit $1
13629} # as_fn_exit
13630
13631# as_fn_unset VAR
13632# ---------------
13633# Portably unset VAR.
13634as_fn_unset ()
13635{
13636  { eval $1=; unset $1;}
13637}
13638as_unset=as_fn_unset
13639# as_fn_append VAR VALUE
13640# ----------------------
13641# Append the text in VALUE to the end of the definition contained in VAR. Take
13642# advantage of any shell optimizations that allow amortized linear growth over
13643# repeated appends, instead of the typical quadratic growth present in naive
13644# implementations.
13645if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13646  eval 'as_fn_append ()
13647  {
13648    eval $1+=\$2
13649  }'
13650else
13651  as_fn_append ()
13652  {
13653    eval $1=\$$1\$2
13654  }
13655fi # as_fn_append
13656
13657# as_fn_arith ARG...
13658# ------------------
13659# Perform arithmetic evaluation on the ARGs, and store the result in the
13660# global $as_val. Take advantage of shells that can avoid forks. The arguments
13661# must be portable across $(()) and expr.
13662if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13663  eval 'as_fn_arith ()
13664  {
13665    as_val=$(( $* ))
13666  }'
13667else
13668  as_fn_arith ()
13669  {
13670    as_val=`expr "$@" || test $? -eq 1`
13671  }
13672fi # as_fn_arith
13673
13674
13675if expr a : '\(a\)' >/dev/null 2>&1 &&
13676   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13677  as_expr=expr
13678else
13679  as_expr=false
13680fi
13681
13682if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13683  as_basename=basename
13684else
13685  as_basename=false
13686fi
13687
13688if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13689  as_dirname=dirname
13690else
13691  as_dirname=false
13692fi
13693
13694as_me=`$as_basename -- "$0" ||
13695$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13696	 X"$0" : 'X\(//\)$' \| \
13697	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13698$as_echo X/"$0" |
13699    sed '/^.*\/\([^/][^/]*\)\/*$/{
13700	    s//\1/
13701	    q
13702	  }
13703	  /^X\/\(\/\/\)$/{
13704	    s//\1/
13705	    q
13706	  }
13707	  /^X\/\(\/\).*/{
13708	    s//\1/
13709	    q
13710	  }
13711	  s/.*/./; q'`
13712
13713# Avoid depending upon Character Ranges.
13714as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13715as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13716as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13717as_cr_digits='0123456789'
13718as_cr_alnum=$as_cr_Letters$as_cr_digits
13719
13720ECHO_C= ECHO_N= ECHO_T=
13721case `echo -n x` in #(((((
13722-n*)
13723  case `echo 'xy\c'` in
13724  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13725  xy)  ECHO_C='\c';;
13726  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13727       ECHO_T='	';;
13728  esac;;
13729*)
13730  ECHO_N='-n';;
13731esac
13732
13733rm -f conf$$ conf$$.exe conf$$.file
13734if test -d conf$$.dir; then
13735  rm -f conf$$.dir/conf$$.file
13736else
13737  rm -f conf$$.dir
13738  mkdir conf$$.dir 2>/dev/null
13739fi
13740if (echo >conf$$.file) 2>/dev/null; then
13741  if ln -s conf$$.file conf$$ 2>/dev/null; then
13742    as_ln_s='ln -s'
13743    # ... but there are two gotchas:
13744    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13745    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13746    # In both cases, we have to default to `cp -pR'.
13747    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13748      as_ln_s='cp -pR'
13749  elif ln conf$$.file conf$$ 2>/dev/null; then
13750    as_ln_s=ln
13751  else
13752    as_ln_s='cp -pR'
13753  fi
13754else
13755  as_ln_s='cp -pR'
13756fi
13757rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13758rmdir conf$$.dir 2>/dev/null
13759
13760
13761# as_fn_mkdir_p
13762# -------------
13763# Create "$as_dir" as a directory, including parents if necessary.
13764as_fn_mkdir_p ()
13765{
13766
13767  case $as_dir in #(
13768  -*) as_dir=./$as_dir;;
13769  esac
13770  test -d "$as_dir" || eval $as_mkdir_p || {
13771    as_dirs=
13772    while :; do
13773      case $as_dir in #(
13774      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13775      *) as_qdir=$as_dir;;
13776      esac
13777      as_dirs="'$as_qdir' $as_dirs"
13778      as_dir=`$as_dirname -- "$as_dir" ||
13779$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13780	 X"$as_dir" : 'X\(//\)[^/]' \| \
13781	 X"$as_dir" : 'X\(//\)$' \| \
13782	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13783$as_echo X"$as_dir" |
13784    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13785	    s//\1/
13786	    q
13787	  }
13788	  /^X\(\/\/\)[^/].*/{
13789	    s//\1/
13790	    q
13791	  }
13792	  /^X\(\/\/\)$/{
13793	    s//\1/
13794	    q
13795	  }
13796	  /^X\(\/\).*/{
13797	    s//\1/
13798	    q
13799	  }
13800	  s/.*/./; q'`
13801      test -d "$as_dir" && break
13802    done
13803    test -z "$as_dirs" || eval "mkdir $as_dirs"
13804  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13805
13806
13807} # as_fn_mkdir_p
13808if mkdir -p . 2>/dev/null; then
13809  as_mkdir_p='mkdir -p "$as_dir"'
13810else
13811  test -d ./-p && rmdir ./-p
13812  as_mkdir_p=false
13813fi
13814
13815
13816# as_fn_executable_p FILE
13817# -----------------------
13818# Test if FILE is an executable regular file.
13819as_fn_executable_p ()
13820{
13821  test -f "$1" && test -x "$1"
13822} # as_fn_executable_p
13823as_test_x='test -x'
13824as_executable_p=as_fn_executable_p
13825
13826# Sed expression to map a string onto a valid CPP name.
13827as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13828
13829# Sed expression to map a string onto a valid variable name.
13830as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13831
13832
13833exec 6>&1
13834## ----------------------------------- ##
13835## Main body of $CONFIG_STATUS script. ##
13836## ----------------------------------- ##
13837_ASEOF
13838test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13839
13840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13841# Save the log message, to keep $0 and so on meaningful, and to
13842# report actual input values of CONFIG_FILES etc. instead of their
13843# values after options handling.
13844ac_log="
13845This file was extended by libevdev $as_me 1.5.9, which was
13846generated by GNU Autoconf 2.69.  Invocation command line was
13847
13848  CONFIG_FILES    = $CONFIG_FILES
13849  CONFIG_HEADERS  = $CONFIG_HEADERS
13850  CONFIG_LINKS    = $CONFIG_LINKS
13851  CONFIG_COMMANDS = $CONFIG_COMMANDS
13852  $ $0 $@
13853
13854on `(hostname || uname -n) 2>/dev/null | sed 1q`
13855"
13856
13857_ACEOF
13858
13859case $ac_config_files in *"
13860"*) set x $ac_config_files; shift; ac_config_files=$*;;
13861esac
13862
13863case $ac_config_headers in *"
13864"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13865esac
13866
13867
13868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13869# Files that config.status was made for.
13870config_files="$ac_config_files"
13871config_headers="$ac_config_headers"
13872config_commands="$ac_config_commands"
13873
13874_ACEOF
13875
13876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13877ac_cs_usage="\
13878\`$as_me' instantiates files and other configuration actions
13879from templates according to the current configuration.  Unless the files
13880and actions are specified as TAGs, all are instantiated by default.
13881
13882Usage: $0 [OPTION]... [TAG]...
13883
13884  -h, --help       print this help, then exit
13885  -V, --version    print version number and configuration settings, then exit
13886      --config     print configuration, then exit
13887  -q, --quiet, --silent
13888                   do not print progress messages
13889  -d, --debug      don't remove temporary files
13890      --recheck    update $as_me by reconfiguring in the same conditions
13891      --file=FILE[:TEMPLATE]
13892                   instantiate the configuration file FILE
13893      --header=FILE[:TEMPLATE]
13894                   instantiate the configuration header FILE
13895
13896Configuration files:
13897$config_files
13898
13899Configuration headers:
13900$config_headers
13901
13902Configuration commands:
13903$config_commands
13904
13905Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev>.
13906libevdev home page: <http://freedesktop.org/wiki/Software/libevdev/>."
13907
13908_ACEOF
13909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13910ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13911ac_cs_version="\\
13912libevdev config.status 1.5.9
13913configured by $0, generated by GNU Autoconf 2.69,
13914  with options \\"\$ac_cs_config\\"
13915
13916Copyright (C) 2012 Free Software Foundation, Inc.
13917This config.status script is free software; the Free Software Foundation
13918gives unlimited permission to copy, distribute and modify it."
13919
13920ac_pwd='$ac_pwd'
13921srcdir='$srcdir'
13922INSTALL='$INSTALL'
13923MKDIR_P='$MKDIR_P'
13924AWK='$AWK'
13925test -n "\$AWK" || AWK=awk
13926_ACEOF
13927
13928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13929# The default lists apply if the user does not specify any file.
13930ac_need_defaults=:
13931while test $# != 0
13932do
13933  case $1 in
13934  --*=?*)
13935    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13936    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13937    ac_shift=:
13938    ;;
13939  --*=)
13940    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13941    ac_optarg=
13942    ac_shift=:
13943    ;;
13944  *)
13945    ac_option=$1
13946    ac_optarg=$2
13947    ac_shift=shift
13948    ;;
13949  esac
13950
13951  case $ac_option in
13952  # Handling of the options.
13953  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13954    ac_cs_recheck=: ;;
13955  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13956    $as_echo "$ac_cs_version"; exit ;;
13957  --config | --confi | --conf | --con | --co | --c )
13958    $as_echo "$ac_cs_config"; exit ;;
13959  --debug | --debu | --deb | --de | --d | -d )
13960    debug=: ;;
13961  --file | --fil | --fi | --f )
13962    $ac_shift
13963    case $ac_optarg in
13964    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13965    '') as_fn_error $? "missing file argument" ;;
13966    esac
13967    as_fn_append CONFIG_FILES " '$ac_optarg'"
13968    ac_need_defaults=false;;
13969  --header | --heade | --head | --hea )
13970    $ac_shift
13971    case $ac_optarg in
13972    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13973    esac
13974    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13975    ac_need_defaults=false;;
13976  --he | --h)
13977    # Conflict between --help and --header
13978    as_fn_error $? "ambiguous option: \`$1'
13979Try \`$0 --help' for more information.";;
13980  --help | --hel | -h )
13981    $as_echo "$ac_cs_usage"; exit ;;
13982  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13983  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13984    ac_cs_silent=: ;;
13985
13986  # This is an error.
13987  -*) as_fn_error $? "unrecognized option: \`$1'
13988Try \`$0 --help' for more information." ;;
13989
13990  *) as_fn_append ac_config_targets " $1"
13991     ac_need_defaults=false ;;
13992
13993  esac
13994  shift
13995done
13996
13997ac_configure_extra_args=
13998
13999if $ac_cs_silent; then
14000  exec 6>/dev/null
14001  ac_configure_extra_args="$ac_configure_extra_args --silent"
14002fi
14003
14004_ACEOF
14005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14006if \$ac_cs_recheck; then
14007  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14008  shift
14009  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14010  CONFIG_SHELL='$SHELL'
14011  export CONFIG_SHELL
14012  exec "\$@"
14013fi
14014
14015_ACEOF
14016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14017exec 5>>config.log
14018{
14019  echo
14020  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14021## Running $as_me. ##
14022_ASBOX
14023  $as_echo "$ac_log"
14024} >&5
14025
14026_ACEOF
14027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14028#
14029# INIT-COMMANDS
14030#
14031AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14032
14033
14034# The HP-UX ksh and POSIX shell print the target directory to stdout
14035# if CDPATH is set.
14036(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14037
14038sed_quote_subst='$sed_quote_subst'
14039double_quote_subst='$double_quote_subst'
14040delay_variable_subst='$delay_variable_subst'
14041macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14042macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14043enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14044enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14045pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14046enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14047shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14048SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14049ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14050PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14051host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14052host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14053host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14054build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14055build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14056build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14057SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14058Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14059GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14060EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14061FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14062LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14063NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14064LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14065max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14066ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14067exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14068lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14069lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14070lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14071lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14072lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14073reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14074reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14075OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14076deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14077file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14078file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14079want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14080DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14081sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14082AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14083AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14084archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14085STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14086RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14087old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14088old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14089old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14090lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14091CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14092CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14093compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14094GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14095lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14096lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14097lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14098lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14099lt_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"`'
14100lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14101nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14102lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14103lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14104objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14105MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14106lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14107lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14108lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14109lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14110lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14111need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14112MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14113DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14114NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14115LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14116OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14117OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14118libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14119shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14120extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14121archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14122enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14123export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14124whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14125compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14126old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14127old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14128archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14129archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14130module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14131module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14132with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14133allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14134no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14135hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14136hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14137hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14138hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14139hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14140hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14141hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14142inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14143link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14144always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14145export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14146exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14147include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14148prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14149postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14150file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14151variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14152need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14153need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14154version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14155runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14156shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14157shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14158libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14159library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14160soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14161install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14162postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14163postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14164finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14165finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14166hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14167sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14168configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14169configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14170hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14171enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14172enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14173enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14174old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14175striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14176
14177LTCC='$LTCC'
14178LTCFLAGS='$LTCFLAGS'
14179compiler='$compiler_DEFAULT'
14180
14181# A function that is used when there is no print builtin or printf.
14182func_fallback_echo ()
14183{
14184  eval 'cat <<_LTECHO_EOF
14185\$1
14186_LTECHO_EOF'
14187}
14188
14189# Quote evaled strings.
14190for var in SHELL \
14191ECHO \
14192PATH_SEPARATOR \
14193SED \
14194GREP \
14195EGREP \
14196FGREP \
14197LD \
14198NM \
14199LN_S \
14200lt_SP2NL \
14201lt_NL2SP \
14202reload_flag \
14203OBJDUMP \
14204deplibs_check_method \
14205file_magic_cmd \
14206file_magic_glob \
14207want_nocaseglob \
14208DLLTOOL \
14209sharedlib_from_linklib_cmd \
14210AR \
14211AR_FLAGS \
14212archiver_list_spec \
14213STRIP \
14214RANLIB \
14215CC \
14216CFLAGS \
14217compiler \
14218lt_cv_sys_global_symbol_pipe \
14219lt_cv_sys_global_symbol_to_cdecl \
14220lt_cv_sys_global_symbol_to_import \
14221lt_cv_sys_global_symbol_to_c_name_address \
14222lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14223lt_cv_nm_interface \
14224nm_file_list_spec \
14225lt_cv_truncate_bin \
14226lt_prog_compiler_no_builtin_flag \
14227lt_prog_compiler_pic \
14228lt_prog_compiler_wl \
14229lt_prog_compiler_static \
14230lt_cv_prog_compiler_c_o \
14231need_locks \
14232MANIFEST_TOOL \
14233DSYMUTIL \
14234NMEDIT \
14235LIPO \
14236OTOOL \
14237OTOOL64 \
14238shrext_cmds \
14239export_dynamic_flag_spec \
14240whole_archive_flag_spec \
14241compiler_needs_object \
14242with_gnu_ld \
14243allow_undefined_flag \
14244no_undefined_flag \
14245hardcode_libdir_flag_spec \
14246hardcode_libdir_separator \
14247exclude_expsyms \
14248include_expsyms \
14249file_list_spec \
14250variables_saved_for_relink \
14251libname_spec \
14252library_names_spec \
14253soname_spec \
14254install_override_mode \
14255finish_eval \
14256old_striplib \
14257striplib; do
14258    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14259    *[\\\\\\\`\\"\\\$]*)
14260      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14261      ;;
14262    *)
14263      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14264      ;;
14265    esac
14266done
14267
14268# Double-quote double-evaled strings.
14269for var in reload_cmds \
14270old_postinstall_cmds \
14271old_postuninstall_cmds \
14272old_archive_cmds \
14273extract_expsyms_cmds \
14274old_archive_from_new_cmds \
14275old_archive_from_expsyms_cmds \
14276archive_cmds \
14277archive_expsym_cmds \
14278module_cmds \
14279module_expsym_cmds \
14280export_symbols_cmds \
14281prelink_cmds \
14282postlink_cmds \
14283postinstall_cmds \
14284postuninstall_cmds \
14285finish_cmds \
14286sys_lib_search_path_spec \
14287configure_time_dlsearch_path \
14288configure_time_lt_sys_library_path; do
14289    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14290    *[\\\\\\\`\\"\\\$]*)
14291      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14292      ;;
14293    *)
14294      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14295      ;;
14296    esac
14297done
14298
14299ac_aux_dir='$ac_aux_dir'
14300
14301# See if we are running on zsh, and set the options that allow our
14302# commands through without removal of \ escapes INIT.
14303if test -n "\${ZSH_VERSION+set}"; then
14304   setopt NO_GLOB_SUBST
14305fi
14306
14307
14308    PACKAGE='$PACKAGE'
14309    VERSION='$VERSION'
14310    RM='$RM'
14311    ofile='$ofile'
14312
14313
14314
14315
14316_ACEOF
14317
14318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14319
14320# Handling of arguments.
14321for ac_config_target in $ac_config_targets
14322do
14323  case $ac_config_target in
14324    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14325    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14326    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14327    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14328    "libevdev/Makefile") CONFIG_FILES="$CONFIG_FILES libevdev/Makefile" ;;
14329    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14330    "doc/libevdev.doxygen") CONFIG_FILES="$CONFIG_FILES doc/libevdev.doxygen" ;;
14331    "doc/libevdev.man") CONFIG_FILES="$CONFIG_FILES doc/libevdev.man" ;;
14332    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14333    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14334    "libevdev.pc") CONFIG_FILES="$CONFIG_FILES libevdev.pc" ;;
14335
14336  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14337  esac
14338done
14339
14340
14341# If the user did not use the arguments to specify the items to instantiate,
14342# then the envvar interface is used.  Set only those that are not.
14343# We use the long form for the default assignment because of an extremely
14344# bizarre bug on SunOS 4.1.3.
14345if $ac_need_defaults; then
14346  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14347  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14348  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14349fi
14350
14351# Have a temporary directory for convenience.  Make it in the build tree
14352# simply because there is no reason against having it here, and in addition,
14353# creating and moving files from /tmp can sometimes cause problems.
14354# Hook for its removal unless debugging.
14355# Note that there is a small window in which the directory will not be cleaned:
14356# after its creation but before its name has been assigned to `$tmp'.
14357$debug ||
14358{
14359  tmp= ac_tmp=
14360  trap 'exit_status=$?
14361  : "${ac_tmp:=$tmp}"
14362  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14363' 0
14364  trap 'as_fn_exit 1' 1 2 13 15
14365}
14366# Create a (secure) tmp directory for tmp files.
14367
14368{
14369  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14370  test -d "$tmp"
14371}  ||
14372{
14373  tmp=./conf$$-$RANDOM
14374  (umask 077 && mkdir "$tmp")
14375} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14376ac_tmp=$tmp
14377
14378# Set up the scripts for CONFIG_FILES section.
14379# No need to generate them if there are no CONFIG_FILES.
14380# This happens for instance with `./config.status config.h'.
14381if test -n "$CONFIG_FILES"; then
14382
14383
14384ac_cr=`echo X | tr X '\015'`
14385# On cygwin, bash can eat \r inside `` if the user requested igncr.
14386# But we know of no other shell where ac_cr would be empty at this
14387# point, so we can use a bashism as a fallback.
14388if test "x$ac_cr" = x; then
14389  eval ac_cr=\$\'\\r\'
14390fi
14391ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14392if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14393  ac_cs_awk_cr='\\r'
14394else
14395  ac_cs_awk_cr=$ac_cr
14396fi
14397
14398echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14399_ACEOF
14400
14401
14402{
14403  echo "cat >conf$$subs.awk <<_ACEOF" &&
14404  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14405  echo "_ACEOF"
14406} >conf$$subs.sh ||
14407  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14408ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14409ac_delim='%!_!# '
14410for ac_last_try in false false false false false :; do
14411  . ./conf$$subs.sh ||
14412    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14413
14414  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14415  if test $ac_delim_n = $ac_delim_num; then
14416    break
14417  elif $ac_last_try; then
14418    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14419  else
14420    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14421  fi
14422done
14423rm -f conf$$subs.sh
14424
14425cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14426cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14427_ACEOF
14428sed -n '
14429h
14430s/^/S["/; s/!.*/"]=/
14431p
14432g
14433s/^[^!]*!//
14434:repl
14435t repl
14436s/'"$ac_delim"'$//
14437t delim
14438:nl
14439h
14440s/\(.\{148\}\)..*/\1/
14441t more1
14442s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14443p
14444n
14445b repl
14446:more1
14447s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14448p
14449g
14450s/.\{148\}//
14451t nl
14452:delim
14453h
14454s/\(.\{148\}\)..*/\1/
14455t more2
14456s/["\\]/\\&/g; s/^/"/; s/$/"/
14457p
14458b
14459:more2
14460s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14461p
14462g
14463s/.\{148\}//
14464t delim
14465' <conf$$subs.awk | sed '
14466/^[^""]/{
14467  N
14468  s/\n//
14469}
14470' >>$CONFIG_STATUS || ac_write_fail=1
14471rm -f conf$$subs.awk
14472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14473_ACAWK
14474cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14475  for (key in S) S_is_set[key] = 1
14476  FS = ""
14477
14478}
14479{
14480  line = $ 0
14481  nfields = split(line, field, "@")
14482  substed = 0
14483  len = length(field[1])
14484  for (i = 2; i < nfields; i++) {
14485    key = field[i]
14486    keylen = length(key)
14487    if (S_is_set[key]) {
14488      value = S[key]
14489      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14490      len += length(value) + length(field[++i])
14491      substed = 1
14492    } else
14493      len += 1 + keylen
14494  }
14495
14496  print line
14497}
14498
14499_ACAWK
14500_ACEOF
14501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14502if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14503  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14504else
14505  cat
14506fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14507  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14508_ACEOF
14509
14510# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14511# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14512# trailing colons and then remove the whole line if VPATH becomes empty
14513# (actually we leave an empty line to preserve line numbers).
14514if test "x$srcdir" = x.; then
14515  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14516h
14517s///
14518s/^/:/
14519s/[	 ]*$/:/
14520s/:\$(srcdir):/:/g
14521s/:\${srcdir}:/:/g
14522s/:@srcdir@:/:/g
14523s/^:*//
14524s/:*$//
14525x
14526s/\(=[	 ]*\).*/\1/
14527G
14528s/\n//
14529s/^[^=]*=[	 ]*$//
14530}'
14531fi
14532
14533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14534fi # test -n "$CONFIG_FILES"
14535
14536# Set up the scripts for CONFIG_HEADERS section.
14537# No need to generate them if there are no CONFIG_HEADERS.
14538# This happens for instance with `./config.status Makefile'.
14539if test -n "$CONFIG_HEADERS"; then
14540cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14541BEGIN {
14542_ACEOF
14543
14544# Transform confdefs.h into an awk script `defines.awk', embedded as
14545# here-document in config.status, that substitutes the proper values into
14546# config.h.in to produce config.h.
14547
14548# Create a delimiter string that does not exist in confdefs.h, to ease
14549# handling of long lines.
14550ac_delim='%!_!# '
14551for ac_last_try in false false :; do
14552  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14553  if test -z "$ac_tt"; then
14554    break
14555  elif $ac_last_try; then
14556    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14557  else
14558    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14559  fi
14560done
14561
14562# For the awk script, D is an array of macro values keyed by name,
14563# likewise P contains macro parameters if any.  Preserve backslash
14564# newline sequences.
14565
14566ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14567sed -n '
14568s/.\{148\}/&'"$ac_delim"'/g
14569t rset
14570:rset
14571s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14572t def
14573d
14574:def
14575s/\\$//
14576t bsnl
14577s/["\\]/\\&/g
14578s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14579D["\1"]=" \3"/p
14580s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14581d
14582:bsnl
14583s/["\\]/\\&/g
14584s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14585D["\1"]=" \3\\\\\\n"\\/p
14586t cont
14587s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14588t cont
14589d
14590:cont
14591n
14592s/.\{148\}/&'"$ac_delim"'/g
14593t clear
14594:clear
14595s/\\$//
14596t bsnlc
14597s/["\\]/\\&/g; s/^/"/; s/$/"/p
14598d
14599:bsnlc
14600s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14601b cont
14602' <confdefs.h | sed '
14603s/'"$ac_delim"'/"\\\
14604"/g' >>$CONFIG_STATUS || ac_write_fail=1
14605
14606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14607  for (key in D) D_is_set[key] = 1
14608  FS = ""
14609}
14610/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14611  line = \$ 0
14612  split(line, arg, " ")
14613  if (arg[1] == "#") {
14614    defundef = arg[2]
14615    mac1 = arg[3]
14616  } else {
14617    defundef = substr(arg[1], 2)
14618    mac1 = arg[2]
14619  }
14620  split(mac1, mac2, "(") #)
14621  macro = mac2[1]
14622  prefix = substr(line, 1, index(line, defundef) - 1)
14623  if (D_is_set[macro]) {
14624    # Preserve the white space surrounding the "#".
14625    print prefix "define", macro P[macro] D[macro]
14626    next
14627  } else {
14628    # Replace #undef with comments.  This is necessary, for example,
14629    # in the case of _POSIX_SOURCE, which is predefined and required
14630    # on some systems where configure will not decide to define it.
14631    if (defundef == "undef") {
14632      print "/*", prefix defundef, macro, "*/"
14633      next
14634    }
14635  }
14636}
14637{ print }
14638_ACAWK
14639_ACEOF
14640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14641  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14642fi # test -n "$CONFIG_HEADERS"
14643
14644
14645eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14646shift
14647for ac_tag
14648do
14649  case $ac_tag in
14650  :[FHLC]) ac_mode=$ac_tag; continue;;
14651  esac
14652  case $ac_mode$ac_tag in
14653  :[FHL]*:*);;
14654  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14655  :[FH]-) ac_tag=-:-;;
14656  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14657  esac
14658  ac_save_IFS=$IFS
14659  IFS=:
14660  set x $ac_tag
14661  IFS=$ac_save_IFS
14662  shift
14663  ac_file=$1
14664  shift
14665
14666  case $ac_mode in
14667  :L) ac_source=$1;;
14668  :[FH])
14669    ac_file_inputs=
14670    for ac_f
14671    do
14672      case $ac_f in
14673      -) ac_f="$ac_tmp/stdin";;
14674      *) # Look for the file first in the build tree, then in the source tree
14675	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14676	 # because $ac_f cannot contain `:'.
14677	 test -f "$ac_f" ||
14678	   case $ac_f in
14679	   [\\/$]*) false;;
14680	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14681	   esac ||
14682	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14683      esac
14684      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14685      as_fn_append ac_file_inputs " '$ac_f'"
14686    done
14687
14688    # Let's still pretend it is `configure' which instantiates (i.e., don't
14689    # use $as_me), people would be surprised to read:
14690    #    /* config.h.  Generated by config.status.  */
14691    configure_input='Generated from '`
14692	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14693	`' by configure.'
14694    if test x"$ac_file" != x-; then
14695      configure_input="$ac_file.  $configure_input"
14696      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14697$as_echo "$as_me: creating $ac_file" >&6;}
14698    fi
14699    # Neutralize special characters interpreted by sed in replacement strings.
14700    case $configure_input in #(
14701    *\&* | *\|* | *\\* )
14702       ac_sed_conf_input=`$as_echo "$configure_input" |
14703       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14704    *) ac_sed_conf_input=$configure_input;;
14705    esac
14706
14707    case $ac_tag in
14708    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14709      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14710    esac
14711    ;;
14712  esac
14713
14714  ac_dir=`$as_dirname -- "$ac_file" ||
14715$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14716	 X"$ac_file" : 'X\(//\)[^/]' \| \
14717	 X"$ac_file" : 'X\(//\)$' \| \
14718	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14719$as_echo X"$ac_file" |
14720    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14721	    s//\1/
14722	    q
14723	  }
14724	  /^X\(\/\/\)[^/].*/{
14725	    s//\1/
14726	    q
14727	  }
14728	  /^X\(\/\/\)$/{
14729	    s//\1/
14730	    q
14731	  }
14732	  /^X\(\/\).*/{
14733	    s//\1/
14734	    q
14735	  }
14736	  s/.*/./; q'`
14737  as_dir="$ac_dir"; as_fn_mkdir_p
14738  ac_builddir=.
14739
14740case "$ac_dir" in
14741.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14742*)
14743  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14744  # A ".." for each directory in $ac_dir_suffix.
14745  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14746  case $ac_top_builddir_sub in
14747  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14748  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14749  esac ;;
14750esac
14751ac_abs_top_builddir=$ac_pwd
14752ac_abs_builddir=$ac_pwd$ac_dir_suffix
14753# for backward compatibility:
14754ac_top_builddir=$ac_top_build_prefix
14755
14756case $srcdir in
14757  .)  # We are building in place.
14758    ac_srcdir=.
14759    ac_top_srcdir=$ac_top_builddir_sub
14760    ac_abs_top_srcdir=$ac_pwd ;;
14761  [\\/]* | ?:[\\/]* )  # Absolute name.
14762    ac_srcdir=$srcdir$ac_dir_suffix;
14763    ac_top_srcdir=$srcdir
14764    ac_abs_top_srcdir=$srcdir ;;
14765  *) # Relative name.
14766    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14767    ac_top_srcdir=$ac_top_build_prefix$srcdir
14768    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14769esac
14770ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14771
14772
14773  case $ac_mode in
14774  :F)
14775  #
14776  # CONFIG_FILE
14777  #
14778
14779  case $INSTALL in
14780  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14781  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14782  esac
14783  ac_MKDIR_P=$MKDIR_P
14784  case $MKDIR_P in
14785  [\\/$]* | ?:[\\/]* ) ;;
14786  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14787  esac
14788_ACEOF
14789
14790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14791# If the template does not know about datarootdir, expand it.
14792# FIXME: This hack should be removed a few years after 2.60.
14793ac_datarootdir_hack=; ac_datarootdir_seen=
14794ac_sed_dataroot='
14795/datarootdir/ {
14796  p
14797  q
14798}
14799/@datadir@/p
14800/@docdir@/p
14801/@infodir@/p
14802/@localedir@/p
14803/@mandir@/p'
14804case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14805*datarootdir*) ac_datarootdir_seen=yes;;
14806*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14807  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14808$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14809_ACEOF
14810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14811  ac_datarootdir_hack='
14812  s&@datadir@&$datadir&g
14813  s&@docdir@&$docdir&g
14814  s&@infodir@&$infodir&g
14815  s&@localedir@&$localedir&g
14816  s&@mandir@&$mandir&g
14817  s&\\\${datarootdir}&$datarootdir&g' ;;
14818esac
14819_ACEOF
14820
14821# Neutralize VPATH when `$srcdir' = `.'.
14822# Shell code in configure.ac might set extrasub.
14823# FIXME: do we really want to maintain this feature?
14824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14825ac_sed_extra="$ac_vpsub
14826$extrasub
14827_ACEOF
14828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14829:t
14830/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14831s|@configure_input@|$ac_sed_conf_input|;t t
14832s&@top_builddir@&$ac_top_builddir_sub&;t t
14833s&@top_build_prefix@&$ac_top_build_prefix&;t t
14834s&@srcdir@&$ac_srcdir&;t t
14835s&@abs_srcdir@&$ac_abs_srcdir&;t t
14836s&@top_srcdir@&$ac_top_srcdir&;t t
14837s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14838s&@builddir@&$ac_builddir&;t t
14839s&@abs_builddir@&$ac_abs_builddir&;t t
14840s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14841s&@INSTALL@&$ac_INSTALL&;t t
14842s&@MKDIR_P@&$ac_MKDIR_P&;t t
14843$ac_datarootdir_hack
14844"
14845eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14846  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14847
14848test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14849  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14850  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14851      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14852  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14853which seems to be undefined.  Please make sure it is defined" >&5
14854$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14855which seems to be undefined.  Please make sure it is defined" >&2;}
14856
14857  rm -f "$ac_tmp/stdin"
14858  case $ac_file in
14859  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14860  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14861  esac \
14862  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14863 ;;
14864  :H)
14865  #
14866  # CONFIG_HEADER
14867  #
14868  if test x"$ac_file" != x-; then
14869    {
14870      $as_echo "/* $configure_input  */" \
14871      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14872    } >"$ac_tmp/config.h" \
14873      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14874    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14875      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14876$as_echo "$as_me: $ac_file is unchanged" >&6;}
14877    else
14878      rm -f "$ac_file"
14879      mv "$ac_tmp/config.h" "$ac_file" \
14880	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14881    fi
14882  else
14883    $as_echo "/* $configure_input  */" \
14884      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14885      || as_fn_error $? "could not create -" "$LINENO" 5
14886  fi
14887# Compute "$ac_file"'s index in $config_headers.
14888_am_arg="$ac_file"
14889_am_stamp_count=1
14890for _am_header in $config_headers :; do
14891  case $_am_header in
14892    $_am_arg | $_am_arg:* )
14893      break ;;
14894    * )
14895      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14896  esac
14897done
14898echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14899$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14900	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14901	 X"$_am_arg" : 'X\(//\)$' \| \
14902	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14903$as_echo X"$_am_arg" |
14904    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14905	    s//\1/
14906	    q
14907	  }
14908	  /^X\(\/\/\)[^/].*/{
14909	    s//\1/
14910	    q
14911	  }
14912	  /^X\(\/\/\)$/{
14913	    s//\1/
14914	    q
14915	  }
14916	  /^X\(\/\).*/{
14917	    s//\1/
14918	    q
14919	  }
14920	  s/.*/./; q'`/stamp-h$_am_stamp_count
14921 ;;
14922
14923  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14924$as_echo "$as_me: executing $ac_file commands" >&6;}
14925 ;;
14926  esac
14927
14928
14929  case $ac_file$ac_mode in
14930    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14931  # Older Autoconf quotes --file arguments for eval, but not when files
14932  # are listed without --file.  Let's play safe and only enable the eval
14933  # if we detect the quoting.
14934  case $CONFIG_FILES in
14935  *\'*) eval set x "$CONFIG_FILES" ;;
14936  *)   set x $CONFIG_FILES ;;
14937  esac
14938  shift
14939  for mf
14940  do
14941    # Strip MF so we end up with the name of the file.
14942    mf=`echo "$mf" | sed -e 's/:.*$//'`
14943    # Check whether this is an Automake generated Makefile or not.
14944    # We used to match only the files named 'Makefile.in', but
14945    # some people rename them; so instead we look at the file content.
14946    # Grep'ing the first line is not enough: some people post-process
14947    # each Makefile.in and add a new line on top of each file to say so.
14948    # Grep'ing the whole file is not good either: AIX grep has a line
14949    # limit of 2048, but all sed's we know have understand at least 4000.
14950    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14951      dirpart=`$as_dirname -- "$mf" ||
14952$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14953	 X"$mf" : 'X\(//\)[^/]' \| \
14954	 X"$mf" : 'X\(//\)$' \| \
14955	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14956$as_echo X"$mf" |
14957    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14958	    s//\1/
14959	    q
14960	  }
14961	  /^X\(\/\/\)[^/].*/{
14962	    s//\1/
14963	    q
14964	  }
14965	  /^X\(\/\/\)$/{
14966	    s//\1/
14967	    q
14968	  }
14969	  /^X\(\/\).*/{
14970	    s//\1/
14971	    q
14972	  }
14973	  s/.*/./; q'`
14974    else
14975      continue
14976    fi
14977    # Extract the definition of DEPDIR, am__include, and am__quote
14978    # from the Makefile without running 'make'.
14979    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14980    test -z "$DEPDIR" && continue
14981    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14982    test -z "$am__include" && continue
14983    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14984    # Find all dependency output files, they are included files with
14985    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14986    # simplest approach to changing $(DEPDIR) to its actual value in the
14987    # expansion.
14988    for file in `sed -n "
14989      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14990	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14991      # Make sure the directory exists.
14992      test -f "$dirpart/$file" && continue
14993      fdir=`$as_dirname -- "$file" ||
14994$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14995	 X"$file" : 'X\(//\)[^/]' \| \
14996	 X"$file" : 'X\(//\)$' \| \
14997	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14998$as_echo X"$file" |
14999    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15000	    s//\1/
15001	    q
15002	  }
15003	  /^X\(\/\/\)[^/].*/{
15004	    s//\1/
15005	    q
15006	  }
15007	  /^X\(\/\/\)$/{
15008	    s//\1/
15009	    q
15010	  }
15011	  /^X\(\/\).*/{
15012	    s//\1/
15013	    q
15014	  }
15015	  s/.*/./; q'`
15016      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15017      # echo "creating $dirpart/$file"
15018      echo '# dummy' > "$dirpart/$file"
15019    done
15020  done
15021}
15022 ;;
15023    "libtool":C)
15024
15025    # See if we are running on zsh, and set the options that allow our
15026    # commands through without removal of \ escapes.
15027    if test -n "${ZSH_VERSION+set}"; then
15028      setopt NO_GLOB_SUBST
15029    fi
15030
15031    cfgfile=${ofile}T
15032    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15033    $RM "$cfgfile"
15034
15035    cat <<_LT_EOF >> "$cfgfile"
15036#! $SHELL
15037# Generated automatically by $as_me ($PACKAGE) $VERSION
15038# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15039# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15040
15041# Provide generalized library-building support services.
15042# Written by Gordon Matzigkeit, 1996
15043
15044# Copyright (C) 2014 Free Software Foundation, Inc.
15045# This is free software; see the source for copying conditions.  There is NO
15046# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15047
15048# GNU Libtool is free software; you can redistribute it and/or modify
15049# it under the terms of the GNU General Public License as published by
15050# the Free Software Foundation; either version 2 of of the License, or
15051# (at your option) any later version.
15052#
15053# As a special exception to the GNU General Public License, if you
15054# distribute this file as part of a program or library that is built
15055# using GNU Libtool, you may include this file under the  same
15056# distribution terms that you use for the rest of that program.
15057#
15058# GNU Libtool is distributed in the hope that it will be useful, but
15059# WITHOUT ANY WARRANTY; without even the implied warranty of
15060# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15061# GNU General Public License for more details.
15062#
15063# You should have received a copy of the GNU General Public License
15064# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15065
15066
15067# The names of the tagged configurations supported by this script.
15068available_tags=''
15069
15070# Configured defaults for sys_lib_dlsearch_path munging.
15071: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15072
15073# ### BEGIN LIBTOOL CONFIG
15074
15075# Which release of libtool.m4 was used?
15076macro_version=$macro_version
15077macro_revision=$macro_revision
15078
15079# Whether or not to build shared libraries.
15080build_libtool_libs=$enable_shared
15081
15082# Whether or not to build static libraries.
15083build_old_libs=$enable_static
15084
15085# What type of objects to build.
15086pic_mode=$pic_mode
15087
15088# Whether or not to optimize for fast installation.
15089fast_install=$enable_fast_install
15090
15091# Shared archive member basename,for filename based shared library versioning on AIX.
15092shared_archive_member_spec=$shared_archive_member_spec
15093
15094# Shell to use when invoking shell scripts.
15095SHELL=$lt_SHELL
15096
15097# An echo program that protects backslashes.
15098ECHO=$lt_ECHO
15099
15100# The PATH separator for the build system.
15101PATH_SEPARATOR=$lt_PATH_SEPARATOR
15102
15103# The host system.
15104host_alias=$host_alias
15105host=$host
15106host_os=$host_os
15107
15108# The build system.
15109build_alias=$build_alias
15110build=$build
15111build_os=$build_os
15112
15113# A sed program that does not truncate output.
15114SED=$lt_SED
15115
15116# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15117Xsed="\$SED -e 1s/^X//"
15118
15119# A grep program that handles long lines.
15120GREP=$lt_GREP
15121
15122# An ERE matcher.
15123EGREP=$lt_EGREP
15124
15125# A literal string matcher.
15126FGREP=$lt_FGREP
15127
15128# A BSD- or MS-compatible name lister.
15129NM=$lt_NM
15130
15131# Whether we need soft or hard links.
15132LN_S=$lt_LN_S
15133
15134# What is the maximum length of a command?
15135max_cmd_len=$max_cmd_len
15136
15137# Object file suffix (normally "o").
15138objext=$ac_objext
15139
15140# Executable file suffix (normally "").
15141exeext=$exeext
15142
15143# whether the shell understands "unset".
15144lt_unset=$lt_unset
15145
15146# turn spaces into newlines.
15147SP2NL=$lt_lt_SP2NL
15148
15149# turn newlines into spaces.
15150NL2SP=$lt_lt_NL2SP
15151
15152# convert \$build file names to \$host format.
15153to_host_file_cmd=$lt_cv_to_host_file_cmd
15154
15155# convert \$build files to toolchain format.
15156to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15157
15158# An object symbol dumper.
15159OBJDUMP=$lt_OBJDUMP
15160
15161# Method to check whether dependent libraries are shared objects.
15162deplibs_check_method=$lt_deplibs_check_method
15163
15164# Command to use when deplibs_check_method = "file_magic".
15165file_magic_cmd=$lt_file_magic_cmd
15166
15167# How to find potential files when deplibs_check_method = "file_magic".
15168file_magic_glob=$lt_file_magic_glob
15169
15170# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15171want_nocaseglob=$lt_want_nocaseglob
15172
15173# DLL creation program.
15174DLLTOOL=$lt_DLLTOOL
15175
15176# Command to associate shared and link libraries.
15177sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15178
15179# The archiver.
15180AR=$lt_AR
15181
15182# Flags to create an archive.
15183AR_FLAGS=$lt_AR_FLAGS
15184
15185# How to feed a file listing to the archiver.
15186archiver_list_spec=$lt_archiver_list_spec
15187
15188# A symbol stripping program.
15189STRIP=$lt_STRIP
15190
15191# Commands used to install an old-style archive.
15192RANLIB=$lt_RANLIB
15193old_postinstall_cmds=$lt_old_postinstall_cmds
15194old_postuninstall_cmds=$lt_old_postuninstall_cmds
15195
15196# Whether to use a lock for old archive extraction.
15197lock_old_archive_extraction=$lock_old_archive_extraction
15198
15199# A C compiler.
15200LTCC=$lt_CC
15201
15202# LTCC compiler flags.
15203LTCFLAGS=$lt_CFLAGS
15204
15205# Take the output of nm and produce a listing of raw symbols and C names.
15206global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15207
15208# Transform the output of nm in a proper C declaration.
15209global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15210
15211# Transform the output of nm into a list of symbols to manually relocate.
15212global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15213
15214# Transform the output of nm in a C name address pair.
15215global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15216
15217# Transform the output of nm in a C name address pair when lib prefix is needed.
15218global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15219
15220# The name lister interface.
15221nm_interface=$lt_lt_cv_nm_interface
15222
15223# Specify filename containing input files for \$NM.
15224nm_file_list_spec=$lt_nm_file_list_spec
15225
15226# The root where to search for dependent libraries,and where our libraries should be installed.
15227lt_sysroot=$lt_sysroot
15228
15229# Command to truncate a binary pipe.
15230lt_truncate_bin=$lt_lt_cv_truncate_bin
15231
15232# The name of the directory that contains temporary libtool files.
15233objdir=$objdir
15234
15235# Used to examine libraries when file_magic_cmd begins with "file".
15236MAGIC_CMD=$MAGIC_CMD
15237
15238# Must we lock files when doing compilation?
15239need_locks=$lt_need_locks
15240
15241# Manifest tool.
15242MANIFEST_TOOL=$lt_MANIFEST_TOOL
15243
15244# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15245DSYMUTIL=$lt_DSYMUTIL
15246
15247# Tool to change global to local symbols on Mac OS X.
15248NMEDIT=$lt_NMEDIT
15249
15250# Tool to manipulate fat objects and archives on Mac OS X.
15251LIPO=$lt_LIPO
15252
15253# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15254OTOOL=$lt_OTOOL
15255
15256# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15257OTOOL64=$lt_OTOOL64
15258
15259# Old archive suffix (normally "a").
15260libext=$libext
15261
15262# Shared library suffix (normally ".so").
15263shrext_cmds=$lt_shrext_cmds
15264
15265# The commands to extract the exported symbol list from a shared archive.
15266extract_expsyms_cmds=$lt_extract_expsyms_cmds
15267
15268# Variables whose values should be saved in libtool wrapper scripts and
15269# restored at link time.
15270variables_saved_for_relink=$lt_variables_saved_for_relink
15271
15272# Do we need the "lib" prefix for modules?
15273need_lib_prefix=$need_lib_prefix
15274
15275# Do we need a version for libraries?
15276need_version=$need_version
15277
15278# Library versioning type.
15279version_type=$version_type
15280
15281# Shared library runtime path variable.
15282runpath_var=$runpath_var
15283
15284# Shared library path variable.
15285shlibpath_var=$shlibpath_var
15286
15287# Is shlibpath searched before the hard-coded library search path?
15288shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15289
15290# Format of library name prefix.
15291libname_spec=$lt_libname_spec
15292
15293# List of archive names.  First name is the real one, the rest are links.
15294# The last name is the one that the linker finds with -lNAME
15295library_names_spec=$lt_library_names_spec
15296
15297# The coded name of the library, if different from the real name.
15298soname_spec=$lt_soname_spec
15299
15300# Permission mode override for installation of shared libraries.
15301install_override_mode=$lt_install_override_mode
15302
15303# Command to use after installation of a shared archive.
15304postinstall_cmds=$lt_postinstall_cmds
15305
15306# Command to use after uninstallation of a shared archive.
15307postuninstall_cmds=$lt_postuninstall_cmds
15308
15309# Commands used to finish a libtool library installation in a directory.
15310finish_cmds=$lt_finish_cmds
15311
15312# As "finish_cmds", except a single script fragment to be evaled but
15313# not shown.
15314finish_eval=$lt_finish_eval
15315
15316# Whether we should hardcode library paths into libraries.
15317hardcode_into_libs=$hardcode_into_libs
15318
15319# Compile-time system search path for libraries.
15320sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15321
15322# Detected run-time system search path for libraries.
15323sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15324
15325# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15326configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15327
15328# Whether dlopen is supported.
15329dlopen_support=$enable_dlopen
15330
15331# Whether dlopen of programs is supported.
15332dlopen_self=$enable_dlopen_self
15333
15334# Whether dlopen of statically linked programs is supported.
15335dlopen_self_static=$enable_dlopen_self_static
15336
15337# Commands to strip libraries.
15338old_striplib=$lt_old_striplib
15339striplib=$lt_striplib
15340
15341
15342# The linker used to build libraries.
15343LD=$lt_LD
15344
15345# How to create reloadable object files.
15346reload_flag=$lt_reload_flag
15347reload_cmds=$lt_reload_cmds
15348
15349# Commands used to build an old-style archive.
15350old_archive_cmds=$lt_old_archive_cmds
15351
15352# A language specific compiler.
15353CC=$lt_compiler
15354
15355# Is the compiler the GNU compiler?
15356with_gcc=$GCC
15357
15358# Compiler flag to turn off builtin functions.
15359no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15360
15361# Additional compiler flags for building library objects.
15362pic_flag=$lt_lt_prog_compiler_pic
15363
15364# How to pass a linker flag through the compiler.
15365wl=$lt_lt_prog_compiler_wl
15366
15367# Compiler flag to prevent dynamic linking.
15368link_static_flag=$lt_lt_prog_compiler_static
15369
15370# Does compiler simultaneously support -c and -o options?
15371compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15372
15373# Whether or not to add -lc for building shared libraries.
15374build_libtool_need_lc=$archive_cmds_need_lc
15375
15376# Whether or not to disallow shared libs when runtime libs are static.
15377allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15378
15379# Compiler flag to allow reflexive dlopens.
15380export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15381
15382# Compiler flag to generate shared objects directly from archives.
15383whole_archive_flag_spec=$lt_whole_archive_flag_spec
15384
15385# Whether the compiler copes with passing no objects directly.
15386compiler_needs_object=$lt_compiler_needs_object
15387
15388# Create an old-style archive from a shared archive.
15389old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15390
15391# Create a temporary old-style archive to link instead of a shared archive.
15392old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15393
15394# Commands used to build a shared archive.
15395archive_cmds=$lt_archive_cmds
15396archive_expsym_cmds=$lt_archive_expsym_cmds
15397
15398# Commands used to build a loadable module if different from building
15399# a shared archive.
15400module_cmds=$lt_module_cmds
15401module_expsym_cmds=$lt_module_expsym_cmds
15402
15403# Whether we are building with GNU ld or not.
15404with_gnu_ld=$lt_with_gnu_ld
15405
15406# Flag that allows shared libraries with undefined symbols to be built.
15407allow_undefined_flag=$lt_allow_undefined_flag
15408
15409# Flag that enforces no undefined symbols.
15410no_undefined_flag=$lt_no_undefined_flag
15411
15412# Flag to hardcode \$libdir into a binary during linking.
15413# This must work even if \$libdir does not exist
15414hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15415
15416# Whether we need a single "-rpath" flag with a separated argument.
15417hardcode_libdir_separator=$lt_hardcode_libdir_separator
15418
15419# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15420# DIR into the resulting binary.
15421hardcode_direct=$hardcode_direct
15422
15423# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15424# DIR into the resulting binary and the resulting library dependency is
15425# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15426# library is relocated.
15427hardcode_direct_absolute=$hardcode_direct_absolute
15428
15429# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15430# into the resulting binary.
15431hardcode_minus_L=$hardcode_minus_L
15432
15433# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15434# into the resulting binary.
15435hardcode_shlibpath_var=$hardcode_shlibpath_var
15436
15437# Set to "yes" if building a shared library automatically hardcodes DIR
15438# into the library and all subsequent libraries and executables linked
15439# against it.
15440hardcode_automatic=$hardcode_automatic
15441
15442# Set to yes if linker adds runtime paths of dependent libraries
15443# to runtime path list.
15444inherit_rpath=$inherit_rpath
15445
15446# Whether libtool must link a program against all its dependency libraries.
15447link_all_deplibs=$link_all_deplibs
15448
15449# Set to "yes" if exported symbols are required.
15450always_export_symbols=$always_export_symbols
15451
15452# The commands to list exported symbols.
15453export_symbols_cmds=$lt_export_symbols_cmds
15454
15455# Symbols that should not be listed in the preloaded symbols.
15456exclude_expsyms=$lt_exclude_expsyms
15457
15458# Symbols that must always be exported.
15459include_expsyms=$lt_include_expsyms
15460
15461# Commands necessary for linking programs (against libraries) with templates.
15462prelink_cmds=$lt_prelink_cmds
15463
15464# Commands necessary for finishing linking programs.
15465postlink_cmds=$lt_postlink_cmds
15466
15467# Specify filename containing input files.
15468file_list_spec=$lt_file_list_spec
15469
15470# How to hardcode a shared library path into an executable.
15471hardcode_action=$hardcode_action
15472
15473# ### END LIBTOOL CONFIG
15474
15475_LT_EOF
15476
15477    cat <<'_LT_EOF' >> "$cfgfile"
15478
15479# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15480
15481# func_munge_path_list VARIABLE PATH
15482# -----------------------------------
15483# VARIABLE is name of variable containing _space_ separated list of
15484# directories to be munged by the contents of PATH, which is string
15485# having a format:
15486# "DIR[:DIR]:"
15487#       string "DIR[ DIR]" will be prepended to VARIABLE
15488# ":DIR[:DIR]"
15489#       string "DIR[ DIR]" will be appended to VARIABLE
15490# "DIRP[:DIRP]::[DIRA:]DIRA"
15491#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15492#       "DIRA[ DIRA]" will be appended to VARIABLE
15493# "DIR[:DIR]"
15494#       VARIABLE will be replaced by "DIR[ DIR]"
15495func_munge_path_list ()
15496{
15497    case x$2 in
15498    x)
15499        ;;
15500    *:)
15501        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15502        ;;
15503    x:*)
15504        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15505        ;;
15506    *::*)
15507        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15508        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15509        ;;
15510    *)
15511        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15512        ;;
15513    esac
15514}
15515
15516
15517# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15518func_cc_basename ()
15519{
15520    for cc_temp in $*""; do
15521      case $cc_temp in
15522        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15523        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15524        \-*) ;;
15525        *) break;;
15526      esac
15527    done
15528    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15529}
15530
15531
15532# ### END FUNCTIONS SHARED WITH CONFIGURE
15533
15534_LT_EOF
15535
15536  case $host_os in
15537  aix3*)
15538    cat <<\_LT_EOF >> "$cfgfile"
15539# AIX sometimes has problems with the GCC collect2 program.  For some
15540# reason, if we set the COLLECT_NAMES environment variable, the problems
15541# vanish in a puff of smoke.
15542if test set != "${COLLECT_NAMES+set}"; then
15543  COLLECT_NAMES=
15544  export COLLECT_NAMES
15545fi
15546_LT_EOF
15547    ;;
15548  esac
15549
15550
15551ltmain=$ac_aux_dir/ltmain.sh
15552
15553
15554  # We use sed instead of cat because bash on DJGPP gets confused if
15555  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15556  # text mode, it properly converts lines to CR/LF.  This bash problem
15557  # is reportedly fixed, but why not run on old versions too?
15558  sed '$q' "$ltmain" >> "$cfgfile" \
15559     || (rm -f "$cfgfile"; exit 1)
15560
15561   mv -f "$cfgfile" "$ofile" ||
15562    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15563  chmod +x "$ofile"
15564
15565 ;;
15566
15567  esac
15568done # for ac_tag
15569
15570
15571as_fn_exit 0
15572_ACEOF
15573ac_clean_files=$ac_clean_files_save
15574
15575test $ac_write_fail = 0 ||
15576  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15577
15578
15579# configure is writing to config.log, and then calls config.status.
15580# config.status does its own redirection, appending to config.log.
15581# Unfortunately, on DOS this fails, as config.log is still kept open
15582# by configure, so config.status won't be able to write to it; its
15583# output is simply discarded.  So we exec the FD to /dev/null,
15584# effectively closing config.log, so it can be properly (re)opened and
15585# appended to by config.status.  When coming back to configure, we
15586# need to make the FD available again.
15587if test "$no_create" != yes; then
15588  ac_cs_success=:
15589  ac_config_status_args=
15590  test "$silent" = yes &&
15591    ac_config_status_args="$ac_config_status_args --quiet"
15592  exec 5>/dev/null
15593  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15594  exec 5>>config.log
15595  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15596  # would make configure fail if this is the last instruction.
15597  $ac_cs_success || as_fn_exit 1
15598fi
15599if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15600  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15601$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15602fi
15603
15604
15605{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
15606	       Prefix				${prefix}
15607	       Libdir				${libdir}
15608
15609	       Build documentation		${have_doxygen}
15610	       Enable unit-tests		${HAVE_CHECK}
15611	       Run unit-tests			${run_tests}
15612	       Enable profiling			${enable_gcov}
15613	       Static library symbol check	${static_symbol_leaks_test}
15614	       " >&5
15615$as_echo "
15616	       Prefix				${prefix}
15617	       Libdir				${libdir}
15618
15619	       Build documentation		${have_doxygen}
15620	       Enable unit-tests		${HAVE_CHECK}
15621	       Run unit-tests			${run_tests}
15622	       Enable profiling			${enable_gcov}
15623	       Static library symbol check	${static_symbol_leaks_test}
15624	       " >&6; }
15625