configure revision b85037db
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.66 for xf86-input-synaptics 1.3.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
177  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    PATH=/empty FPATH=/empty; export PATH FPATH
182    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
184test \$(( 1 + 1 )) = 2 || exit 1"
185  if (eval "$as_required") 2>/dev/null; then :
186  as_have_required=yes
187else
188  as_have_required=no
189fi
190  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197  IFS=$as_save_IFS
198  test -z "$as_dir" && as_dir=.
199  as_found=:
200  case $as_dir in #(
201	 /*)
202	   for as_base in sh bash ksh sh5; do
203	     # Try only shells that exist, to save several forks.
204	     as_shell=$as_dir/$as_base
205	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207  CONFIG_SHELL=$as_shell as_have_required=yes
208		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209  break 2
210fi
211fi
212	   done;;
213       esac
214  as_found=false
215done
216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218  CONFIG_SHELL=$SHELL as_have_required=yes
219fi; }
220IFS=$as_save_IFS
221
222
223      if test "x$CONFIG_SHELL" != x; then :
224  # We cannot yet assume a decent shell, so we have to provide a
225	# neutralization value for shells without unset; and this also
226	# works around shells that cannot unset nonexistent variables.
227	BASH_ENV=/dev/null
228	ENV=/dev/null
229	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230	export CONFIG_SHELL
231	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540SHELL=${CONFIG_SHELL-/bin/sh}
541
542
543test -n "$DJDIR" || exec 7<&0 </dev/null
544exec 6>&1
545
546# Name of the host.
547# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
548# so uname gets run too.
549ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
550
551#
552# Initializations.
553#
554ac_default_prefix=/usr/local
555ac_clean_files=
556ac_config_libobj_dir=.
557LIBOBJS=
558cross_compiling=no
559subdirs=
560MFLAGS=
561MAKEFLAGS=
562
563# Identity of this package.
564PACKAGE_NAME='xf86-input-synaptics'
565PACKAGE_TARNAME='xf86-input-synaptics'
566PACKAGE_VERSION='1.3.0'
567PACKAGE_STRING='xf86-input-synaptics 1.3.0'
568PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
569PACKAGE_URL=''
570
571ac_unique_file="Makefile.am"
572# Factoring default headers for most tests.
573ac_includes_default="\
574#include <stdio.h>
575#ifdef HAVE_SYS_TYPES_H
576# include <sys/types.h>
577#endif
578#ifdef HAVE_SYS_STAT_H
579# include <sys/stat.h>
580#endif
581#ifdef STDC_HEADERS
582# include <stdlib.h>
583# include <stddef.h>
584#else
585# ifdef HAVE_STDLIB_H
586#  include <stdlib.h>
587# endif
588#endif
589#ifdef HAVE_STRING_H
590# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
591#  include <memory.h>
592# endif
593# include <string.h>
594#endif
595#ifdef HAVE_STRINGS_H
596# include <strings.h>
597#endif
598#ifdef HAVE_INTTYPES_H
599# include <inttypes.h>
600#endif
601#ifdef HAVE_STDINT_H
602# include <stdint.h>
603#endif
604#ifdef HAVE_UNISTD_H
605# include <unistd.h>
606#endif"
607
608ac_subst_vars='am__EXEEXT_FALSE
609am__EXEEXT_TRUE
610LTLIBOBJS
611LIBOBJS
612XTST_LIBS
613XTST_CFLAGS
614XI_LIBS
615XI_CFLAGS
616BUILD_PSMCOMM_FALSE
617BUILD_PSMCOMM_TRUE
618BUILD_EVENTCOMM_FALSE
619BUILD_EVENTCOMM_TRUE
620DEBUG_FALSE
621DEBUG_TRUE
622HAS_XORG_CONF_DIR_FALSE
623HAS_XORG_CONF_DIR_TRUE
624configdir
625inputdir
626DRIVER_NAME
627sdkdir
628XORG_LIBS
629XORG_CFLAGS
630AM_BACKSLASH
631AM_DEFAULT_VERBOSITY
632MAN_SUBSTS
633XORG_MAN_PAGE
634ADMIN_MAN_DIR
635DRIVER_MAN_DIR
636MISC_MAN_DIR
637FILE_MAN_DIR
638LIB_MAN_DIR
639APP_MAN_DIR
640ADMIN_MAN_SUFFIX
641DRIVER_MAN_SUFFIX
642MISC_MAN_SUFFIX
643FILE_MAN_SUFFIX
644LIB_MAN_SUFFIX
645APP_MAN_SUFFIX
646INSTALL_CMD
647PKG_CONFIG_LIBDIR
648PKG_CONFIG_PATH
649PKG_CONFIG
650CHANGELOG_CMD
651CWARNFLAGS
652CPP
653OTOOL64
654OTOOL
655LIPO
656NMEDIT
657DSYMUTIL
658RANLIB
659AR
660OBJDUMP
661LN_S
662NM
663ac_ct_DUMPBIN
664DUMPBIN
665LD
666FGREP
667EGREP
668GREP
669SED
670am__fastdepCC_FALSE
671am__fastdepCC_TRUE
672CCDEPMODE
673AMDEPBACKSLASH
674AMDEP_FALSE
675AMDEP_TRUE
676am__quote
677am__include
678DEPDIR
679OBJEXT
680EXEEXT
681ac_ct_CC
682CPPFLAGS
683LDFLAGS
684CFLAGS
685CC
686host_os
687host_vendor
688host_cpu
689host
690build_os
691build_vendor
692build_cpu
693build
694LIBTOOL
695MAINT
696MAINTAINER_MODE_FALSE
697MAINTAINER_MODE_TRUE
698am__untar
699am__tar
700AMTAR
701am__leading_dot
702SET_MAKE
703AWK
704mkdir_p
705MKDIR_P
706INSTALL_STRIP_PROGRAM
707STRIP
708install_sh
709MAKEINFO
710AUTOHEADER
711AUTOMAKE
712AUTOCONF
713ACLOCAL
714VERSION
715PACKAGE
716CYGPATH_W
717am__isrc
718INSTALL_DATA
719INSTALL_SCRIPT
720INSTALL_PROGRAM
721target_alias
722host_alias
723build_alias
724LIBS
725ECHO_T
726ECHO_N
727ECHO_C
728DEFS
729mandir
730localedir
731libdir
732psdir
733pdfdir
734dvidir
735htmldir
736infodir
737docdir
738oldincludedir
739includedir
740localstatedir
741sharedstatedir
742sysconfdir
743datadir
744datarootdir
745libexecdir
746sbindir
747bindir
748program_transform_name
749prefix
750exec_prefix
751PACKAGE_URL
752PACKAGE_BUGREPORT
753PACKAGE_STRING
754PACKAGE_VERSION
755PACKAGE_TARNAME
756PACKAGE_NAME
757PATH_SEPARATOR
758SHELL'
759ac_subst_files=''
760ac_user_opts='
761enable_option_checking
762enable_maintainer_mode
763enable_static
764enable_shared
765with_pic
766enable_fast_install
767enable_dependency_tracking
768with_gnu_ld
769enable_libtool_lock
770enable_strict_compilation
771enable_silent_rules
772with_xorg_module_dir
773with_xorg_conf_dir
774enable_debug
775'
776      ac_precious_vars='build_alias
777host_alias
778target_alias
779CC
780CFLAGS
781LDFLAGS
782LIBS
783CPPFLAGS
784CPP
785PKG_CONFIG
786PKG_CONFIG_PATH
787PKG_CONFIG_LIBDIR
788XORG_CFLAGS
789XORG_LIBS
790XI_CFLAGS
791XI_LIBS
792XTST_CFLAGS
793XTST_LIBS'
794
795
796# Initialize some variables set by options.
797ac_init_help=
798ac_init_version=false
799ac_unrecognized_opts=
800ac_unrecognized_sep=
801# The variables have the same names as the options, with
802# dashes changed to underlines.
803cache_file=/dev/null
804exec_prefix=NONE
805no_create=
806no_recursion=
807prefix=NONE
808program_prefix=NONE
809program_suffix=NONE
810program_transform_name=s,x,x,
811silent=
812site=
813srcdir=
814verbose=
815x_includes=NONE
816x_libraries=NONE
817
818# Installation directory options.
819# These are left unexpanded so users can "make install exec_prefix=/foo"
820# and all the variables that are supposed to be based on exec_prefix
821# by default will actually change.
822# Use braces instead of parens because sh, perl, etc. also accept them.
823# (The list follows the same order as the GNU Coding Standards.)
824bindir='${exec_prefix}/bin'
825sbindir='${exec_prefix}/sbin'
826libexecdir='${exec_prefix}/libexec'
827datarootdir='${prefix}/share'
828datadir='${datarootdir}'
829sysconfdir='${prefix}/etc'
830sharedstatedir='${prefix}/com'
831localstatedir='${prefix}/var'
832includedir='${prefix}/include'
833oldincludedir='/usr/include'
834docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835infodir='${datarootdir}/info'
836htmldir='${docdir}'
837dvidir='${docdir}'
838pdfdir='${docdir}'
839psdir='${docdir}'
840libdir='${exec_prefix}/lib'
841localedir='${datarootdir}/locale'
842mandir='${datarootdir}/man'
843
844ac_prev=
845ac_dashdash=
846for ac_option
847do
848  # If the previous option needs an argument, assign it.
849  if test -n "$ac_prev"; then
850    eval $ac_prev=\$ac_option
851    ac_prev=
852    continue
853  fi
854
855  case $ac_option in
856  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857  *)	ac_optarg=yes ;;
858  esac
859
860  # Accept the important Cygnus configure options, so we can diagnose typos.
861
862  case $ac_dashdash$ac_option in
863  --)
864    ac_dashdash=yes ;;
865
866  -bindir | --bindir | --bindi | --bind | --bin | --bi)
867    ac_prev=bindir ;;
868  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869    bindir=$ac_optarg ;;
870
871  -build | --build | --buil | --bui | --bu)
872    ac_prev=build_alias ;;
873  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874    build_alias=$ac_optarg ;;
875
876  -cache-file | --cache-file | --cache-fil | --cache-fi \
877  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878    ac_prev=cache_file ;;
879  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881    cache_file=$ac_optarg ;;
882
883  --config-cache | -C)
884    cache_file=config.cache ;;
885
886  -datadir | --datadir | --datadi | --datad)
887    ac_prev=datadir ;;
888  -datadir=* | --datadir=* | --datadi=* | --datad=*)
889    datadir=$ac_optarg ;;
890
891  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892  | --dataroo | --dataro | --datar)
893    ac_prev=datarootdir ;;
894  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896    datarootdir=$ac_optarg ;;
897
898  -disable-* | --disable-*)
899    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900    # Reject names that are not valid shell variable names.
901    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902      as_fn_error $? "invalid feature name: $ac_useropt"
903    ac_useropt_orig=$ac_useropt
904    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905    case $ac_user_opts in
906      *"
907"enable_$ac_useropt"
908"*) ;;
909      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910	 ac_unrecognized_sep=', ';;
911    esac
912    eval enable_$ac_useropt=no ;;
913
914  -docdir | --docdir | --docdi | --doc | --do)
915    ac_prev=docdir ;;
916  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917    docdir=$ac_optarg ;;
918
919  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920    ac_prev=dvidir ;;
921  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922    dvidir=$ac_optarg ;;
923
924  -enable-* | --enable-*)
925    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926    # Reject names that are not valid shell variable names.
927    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928      as_fn_error $? "invalid feature name: $ac_useropt"
929    ac_useropt_orig=$ac_useropt
930    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931    case $ac_user_opts in
932      *"
933"enable_$ac_useropt"
934"*) ;;
935      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936	 ac_unrecognized_sep=', ';;
937    esac
938    eval enable_$ac_useropt=\$ac_optarg ;;
939
940  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942  | --exec | --exe | --ex)
943    ac_prev=exec_prefix ;;
944  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946  | --exec=* | --exe=* | --ex=*)
947    exec_prefix=$ac_optarg ;;
948
949  -gas | --gas | --ga | --g)
950    # Obsolete; use --with-gas.
951    with_gas=yes ;;
952
953  -help | --help | --hel | --he | -h)
954    ac_init_help=long ;;
955  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956    ac_init_help=recursive ;;
957  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958    ac_init_help=short ;;
959
960  -host | --host | --hos | --ho)
961    ac_prev=host_alias ;;
962  -host=* | --host=* | --hos=* | --ho=*)
963    host_alias=$ac_optarg ;;
964
965  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966    ac_prev=htmldir ;;
967  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968  | --ht=*)
969    htmldir=$ac_optarg ;;
970
971  -includedir | --includedir | --includedi | --included | --include \
972  | --includ | --inclu | --incl | --inc)
973    ac_prev=includedir ;;
974  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975  | --includ=* | --inclu=* | --incl=* | --inc=*)
976    includedir=$ac_optarg ;;
977
978  -infodir | --infodir | --infodi | --infod | --info | --inf)
979    ac_prev=infodir ;;
980  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981    infodir=$ac_optarg ;;
982
983  -libdir | --libdir | --libdi | --libd)
984    ac_prev=libdir ;;
985  -libdir=* | --libdir=* | --libdi=* | --libd=*)
986    libdir=$ac_optarg ;;
987
988  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989  | --libexe | --libex | --libe)
990    ac_prev=libexecdir ;;
991  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992  | --libexe=* | --libex=* | --libe=*)
993    libexecdir=$ac_optarg ;;
994
995  -localedir | --localedir | --localedi | --localed | --locale)
996    ac_prev=localedir ;;
997  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998    localedir=$ac_optarg ;;
999
1000  -localstatedir | --localstatedir | --localstatedi | --localstated \
1001  | --localstate | --localstat | --localsta | --localst | --locals)
1002    ac_prev=localstatedir ;;
1003  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005    localstatedir=$ac_optarg ;;
1006
1007  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008    ac_prev=mandir ;;
1009  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010    mandir=$ac_optarg ;;
1011
1012  -nfp | --nfp | --nf)
1013    # Obsolete; use --without-fp.
1014    with_fp=no ;;
1015
1016  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017  | --no-cr | --no-c | -n)
1018    no_create=yes ;;
1019
1020  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022    no_recursion=yes ;;
1023
1024  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026  | --oldin | --oldi | --old | --ol | --o)
1027    ac_prev=oldincludedir ;;
1028  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031    oldincludedir=$ac_optarg ;;
1032
1033  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034    ac_prev=prefix ;;
1035  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036    prefix=$ac_optarg ;;
1037
1038  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039  | --program-pre | --program-pr | --program-p)
1040    ac_prev=program_prefix ;;
1041  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043    program_prefix=$ac_optarg ;;
1044
1045  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046  | --program-suf | --program-su | --program-s)
1047    ac_prev=program_suffix ;;
1048  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050    program_suffix=$ac_optarg ;;
1051
1052  -program-transform-name | --program-transform-name \
1053  | --program-transform-nam | --program-transform-na \
1054  | --program-transform-n | --program-transform- \
1055  | --program-transform | --program-transfor \
1056  | --program-transfo | --program-transf \
1057  | --program-trans | --program-tran \
1058  | --progr-tra | --program-tr | --program-t)
1059    ac_prev=program_transform_name ;;
1060  -program-transform-name=* | --program-transform-name=* \
1061  | --program-transform-nam=* | --program-transform-na=* \
1062  | --program-transform-n=* | --program-transform-=* \
1063  | --program-transform=* | --program-transfor=* \
1064  | --program-transfo=* | --program-transf=* \
1065  | --program-trans=* | --program-tran=* \
1066  | --progr-tra=* | --program-tr=* | --program-t=*)
1067    program_transform_name=$ac_optarg ;;
1068
1069  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070    ac_prev=pdfdir ;;
1071  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072    pdfdir=$ac_optarg ;;
1073
1074  -psdir | --psdir | --psdi | --psd | --ps)
1075    ac_prev=psdir ;;
1076  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077    psdir=$ac_optarg ;;
1078
1079  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080  | -silent | --silent | --silen | --sile | --sil)
1081    silent=yes ;;
1082
1083  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084    ac_prev=sbindir ;;
1085  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086  | --sbi=* | --sb=*)
1087    sbindir=$ac_optarg ;;
1088
1089  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091  | --sharedst | --shareds | --shared | --share | --shar \
1092  | --sha | --sh)
1093    ac_prev=sharedstatedir ;;
1094  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097  | --sha=* | --sh=*)
1098    sharedstatedir=$ac_optarg ;;
1099
1100  -site | --site | --sit)
1101    ac_prev=site ;;
1102  -site=* | --site=* | --sit=*)
1103    site=$ac_optarg ;;
1104
1105  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106    ac_prev=srcdir ;;
1107  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108    srcdir=$ac_optarg ;;
1109
1110  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111  | --syscon | --sysco | --sysc | --sys | --sy)
1112    ac_prev=sysconfdir ;;
1113  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115    sysconfdir=$ac_optarg ;;
1116
1117  -target | --target | --targe | --targ | --tar | --ta | --t)
1118    ac_prev=target_alias ;;
1119  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120    target_alias=$ac_optarg ;;
1121
1122  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123    verbose=yes ;;
1124
1125  -version | --version | --versio | --versi | --vers | -V)
1126    ac_init_version=: ;;
1127
1128  -with-* | --with-*)
1129    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130    # Reject names that are not valid shell variable names.
1131    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132      as_fn_error $? "invalid package name: $ac_useropt"
1133    ac_useropt_orig=$ac_useropt
1134    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135    case $ac_user_opts in
1136      *"
1137"with_$ac_useropt"
1138"*) ;;
1139      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140	 ac_unrecognized_sep=', ';;
1141    esac
1142    eval with_$ac_useropt=\$ac_optarg ;;
1143
1144  -without-* | --without-*)
1145    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146    # Reject names that are not valid shell variable names.
1147    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148      as_fn_error $? "invalid package name: $ac_useropt"
1149    ac_useropt_orig=$ac_useropt
1150    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151    case $ac_user_opts in
1152      *"
1153"with_$ac_useropt"
1154"*) ;;
1155      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156	 ac_unrecognized_sep=', ';;
1157    esac
1158    eval with_$ac_useropt=no ;;
1159
1160  --x)
1161    # Obsolete; use --with-x.
1162    with_x=yes ;;
1163
1164  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165  | --x-incl | --x-inc | --x-in | --x-i)
1166    ac_prev=x_includes ;;
1167  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169    x_includes=$ac_optarg ;;
1170
1171  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173    ac_prev=x_libraries ;;
1174  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176    x_libraries=$ac_optarg ;;
1177
1178  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179Try \`$0 --help' for more information"
1180    ;;
1181
1182  *=*)
1183    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184    # Reject names that are not valid shell variable names.
1185    case $ac_envvar in #(
1186      '' | [0-9]* | *[!_$as_cr_alnum]* )
1187      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188    esac
1189    eval $ac_envvar=\$ac_optarg
1190    export $ac_envvar ;;
1191
1192  *)
1193    # FIXME: should be removed in autoconf 3.0.
1194    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198    ;;
1199
1200  esac
1201done
1202
1203if test -n "$ac_prev"; then
1204  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205  as_fn_error $? "missing argument to $ac_option"
1206fi
1207
1208if test -n "$ac_unrecognized_opts"; then
1209  case $enable_option_checking in
1210    no) ;;
1211    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213  esac
1214fi
1215
1216# Check all directory arguments for consistency.
1217for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218		datadir sysconfdir sharedstatedir localstatedir includedir \
1219		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220		libdir localedir mandir
1221do
1222  eval ac_val=\$$ac_var
1223  # Remove trailing slashes.
1224  case $ac_val in
1225    */ )
1226      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227      eval $ac_var=\$ac_val;;
1228  esac
1229  # Be sure to have absolute directory names.
1230  case $ac_val in
1231    [\\/$]* | ?:[\\/]* )  continue;;
1232    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233  esac
1234  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1235done
1236
1237# There might be people who depend on the old broken behavior: `$host'
1238# used to hold the argument of --host etc.
1239# FIXME: To remove some day.
1240build=$build_alias
1241host=$host_alias
1242target=$target_alias
1243
1244# FIXME: To remove some day.
1245if test "x$host_alias" != x; then
1246  if test "x$build_alias" = x; then
1247    cross_compiling=maybe
1248    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1249    If a cross compiler is detected then cross compile mode will be used" >&2
1250  elif test "x$build_alias" != "x$host_alias"; then
1251    cross_compiling=yes
1252  fi
1253fi
1254
1255ac_tool_prefix=
1256test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257
1258test "$silent" = yes && exec 6>/dev/null
1259
1260
1261ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262ac_ls_di=`ls -di .` &&
1263ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264  as_fn_error $? "working directory cannot be determined"
1265test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266  as_fn_error $? "pwd does not report name of working directory"
1267
1268
1269# Find the source files, if location was not specified.
1270if test -z "$srcdir"; then
1271  ac_srcdir_defaulted=yes
1272  # Try the directory containing this script, then the parent directory.
1273  ac_confdir=`$as_dirname -- "$as_myself" ||
1274$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275	 X"$as_myself" : 'X\(//\)[^/]' \| \
1276	 X"$as_myself" : 'X\(//\)$' \| \
1277	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278$as_echo X"$as_myself" |
1279    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\/\)[^/].*/{
1284	    s//\1/
1285	    q
1286	  }
1287	  /^X\(\/\/\)$/{
1288	    s//\1/
1289	    q
1290	  }
1291	  /^X\(\/\).*/{
1292	    s//\1/
1293	    q
1294	  }
1295	  s/.*/./; q'`
1296  srcdir=$ac_confdir
1297  if test ! -r "$srcdir/$ac_unique_file"; then
1298    srcdir=..
1299  fi
1300else
1301  ac_srcdir_defaulted=no
1302fi
1303if test ! -r "$srcdir/$ac_unique_file"; then
1304  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306fi
1307ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308ac_abs_confdir=`(
1309	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310	pwd)`
1311# When building in place, set srcdir=.
1312if test "$ac_abs_confdir" = "$ac_pwd"; then
1313  srcdir=.
1314fi
1315# Remove unnecessary trailing slashes from srcdir.
1316# Double slashes in file names in object file debugging info
1317# mess up M-x gdb in Emacs.
1318case $srcdir in
1319*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320esac
1321for ac_var in $ac_precious_vars; do
1322  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323  eval ac_env_${ac_var}_value=\$${ac_var}
1324  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326done
1327
1328#
1329# Report the --help message.
1330#
1331if test "$ac_init_help" = "long"; then
1332  # Omit some internal or obsolete options to make the list less imposing.
1333  # This message is too long to be a string in the A/UX 3.1 sh.
1334  cat <<_ACEOF
1335\`configure' configures xf86-input-synaptics 1.3.0 to adapt to many kinds of systems.
1336
1337Usage: $0 [OPTION]... [VAR=VALUE]...
1338
1339To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340VAR=VALUE.  See below for descriptions of some of the useful variables.
1341
1342Defaults for the options are specified in brackets.
1343
1344Configuration:
1345  -h, --help              display this help and exit
1346      --help=short        display options specific to this package
1347      --help=recursive    display the short help of all the included packages
1348  -V, --version           display version information and exit
1349  -q, --quiet, --silent   do not print \`checking ...' messages
1350      --cache-file=FILE   cache test results in FILE [disabled]
1351  -C, --config-cache      alias for \`--cache-file=config.cache'
1352  -n, --no-create         do not create output files
1353      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1354
1355Installation directories:
1356  --prefix=PREFIX         install architecture-independent files in PREFIX
1357                          [$ac_default_prefix]
1358  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1359                          [PREFIX]
1360
1361By default, \`make install' will install all the files in
1362\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1363an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364for instance \`--prefix=\$HOME'.
1365
1366For better control, use the options below.
1367
1368Fine tuning of the installation directories:
1369  --bindir=DIR            user executables [EPREFIX/bin]
1370  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1371  --libexecdir=DIR        program executables [EPREFIX/libexec]
1372  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1373  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1374  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1375  --libdir=DIR            object code libraries [EPREFIX/lib]
1376  --includedir=DIR        C header files [PREFIX/include]
1377  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1378  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1379  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1380  --infodir=DIR           info documentation [DATAROOTDIR/info]
1381  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1382  --mandir=DIR            man documentation [DATAROOTDIR/man]
1383  --docdir=DIR            documentation root
1384                          [DATAROOTDIR/doc/xf86-input-synaptics]
1385  --htmldir=DIR           html documentation [DOCDIR]
1386  --dvidir=DIR            dvi documentation [DOCDIR]
1387  --pdfdir=DIR            pdf documentation [DOCDIR]
1388  --psdir=DIR             ps documentation [DOCDIR]
1389_ACEOF
1390
1391  cat <<\_ACEOF
1392
1393Program names:
1394  --program-prefix=PREFIX            prepend PREFIX to installed program names
1395  --program-suffix=SUFFIX            append SUFFIX to installed program names
1396  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1397
1398System types:
1399  --build=BUILD     configure for building on BUILD [guessed]
1400  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1401_ACEOF
1402fi
1403
1404if test -n "$ac_init_help"; then
1405  case $ac_init_help in
1406     short | recursive ) echo "Configuration of xf86-input-synaptics 1.3.0:";;
1407   esac
1408  cat <<\_ACEOF
1409
1410Optional Features:
1411  --disable-option-checking  ignore unrecognized --enable/--with options
1412  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1413  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1414  --enable-maintainer-mode  enable make rules and dependencies not useful
1415			  (and sometimes confusing) to the casual installer
1416  --enable-static[=PKGS]  build static libraries [default=no]
1417  --enable-shared[=PKGS]  build shared libraries [default=yes]
1418  --enable-fast-install[=PKGS]
1419                          optimize for fast installation [default=yes]
1420  --disable-dependency-tracking  speeds up one-time build
1421  --enable-dependency-tracking   do not reject slow dependency extractors
1422  --disable-libtool-lock  avoid locking (might break parallel builds)
1423  --enable-strict-compilation
1424                          Enable all warnings from compiler and make them
1425                          errors (default: disabled)
1426  --enable-silent-rules          less verbose build output (undo: `make V=1')
1427  --disable-silent-rules         verbose build output (undo: `make V=0')
1428  --enable-debug          Enable debugging (default: disabled)
1429
1430Optional Packages:
1431  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1432  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1433  --with-pic              try to use only PIC/non-PIC objects [default=use
1434                          both]
1435  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1436  --with-xorg-module-dir=DIR
1437                          Default xorg module directory
1438                          [[default=$libdir/xorg/modules]]
1439  --with-xorg-conf-dir=DIR
1440                          Default xorg.conf.d directory [[default=from
1441                          $PKG_CONFIG xorg-server]]
1442
1443Some influential environment variables:
1444  CC          C compiler command
1445  CFLAGS      C compiler flags
1446  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1447              nonstandard directory <lib dir>
1448  LIBS        libraries to pass to the linker, e.g. -l<library>
1449  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450              you have headers in a nonstandard directory <include dir>
1451  CPP         C preprocessor
1452  PKG_CONFIG  path to pkg-config utility
1453  PKG_CONFIG_PATH
1454              directories to add to pkg-config's search path
1455  PKG_CONFIG_LIBDIR
1456              path overriding pkg-config's built-in search path
1457  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1458  XORG_LIBS   linker flags for XORG, overriding pkg-config
1459  XI_CFLAGS   C compiler flags for XI, overriding pkg-config
1460  XI_LIBS     linker flags for XI, overriding pkg-config
1461  XTST_CFLAGS C compiler flags for XTST, overriding pkg-config
1462  XTST_LIBS   linker flags for XTST, overriding pkg-config
1463
1464Use these variables to override the choices made by `configure' or to help
1465it to find libraries and programs with nonstandard names/locations.
1466
1467Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1468_ACEOF
1469ac_status=$?
1470fi
1471
1472if test "$ac_init_help" = "recursive"; then
1473  # If there are subdirs, report their specific --help.
1474  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475    test -d "$ac_dir" ||
1476      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477      continue
1478    ac_builddir=.
1479
1480case "$ac_dir" in
1481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482*)
1483  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484  # A ".." for each directory in $ac_dir_suffix.
1485  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486  case $ac_top_builddir_sub in
1487  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489  esac ;;
1490esac
1491ac_abs_top_builddir=$ac_pwd
1492ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493# for backward compatibility:
1494ac_top_builddir=$ac_top_build_prefix
1495
1496case $srcdir in
1497  .)  # We are building in place.
1498    ac_srcdir=.
1499    ac_top_srcdir=$ac_top_builddir_sub
1500    ac_abs_top_srcdir=$ac_pwd ;;
1501  [\\/]* | ?:[\\/]* )  # Absolute name.
1502    ac_srcdir=$srcdir$ac_dir_suffix;
1503    ac_top_srcdir=$srcdir
1504    ac_abs_top_srcdir=$srcdir ;;
1505  *) # Relative name.
1506    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507    ac_top_srcdir=$ac_top_build_prefix$srcdir
1508    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509esac
1510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512    cd "$ac_dir" || { ac_status=$?; continue; }
1513    # Check for guested configure.
1514    if test -f "$ac_srcdir/configure.gnu"; then
1515      echo &&
1516      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517    elif test -f "$ac_srcdir/configure"; then
1518      echo &&
1519      $SHELL "$ac_srcdir/configure" --help=recursive
1520    else
1521      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522    fi || ac_status=$?
1523    cd "$ac_pwd" || { ac_status=$?; break; }
1524  done
1525fi
1526
1527test -n "$ac_init_help" && exit $ac_status
1528if $ac_init_version; then
1529  cat <<\_ACEOF
1530xf86-input-synaptics configure 1.3.0
1531generated by GNU Autoconf 2.66
1532
1533Copyright (C) 2010 Free Software Foundation, Inc.
1534This configure script is free software; the Free Software Foundation
1535gives unlimited permission to copy, distribute and modify it.
1536_ACEOF
1537  exit
1538fi
1539
1540## ------------------------ ##
1541## Autoconf initialization. ##
1542## ------------------------ ##
1543
1544# ac_fn_c_try_compile LINENO
1545# --------------------------
1546# Try to compile conftest.$ac_ext, and return whether this succeeded.
1547ac_fn_c_try_compile ()
1548{
1549  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550  rm -f conftest.$ac_objext
1551  if { { ac_try="$ac_compile"
1552case "(($ac_try" in
1553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554  *) ac_try_echo=$ac_try;;
1555esac
1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557$as_echo "$ac_try_echo"; } >&5
1558  (eval "$ac_compile") 2>conftest.err
1559  ac_status=$?
1560  if test -s conftest.err; then
1561    grep -v '^ *+' conftest.err >conftest.er1
1562    cat conftest.er1 >&5
1563    mv -f conftest.er1 conftest.err
1564  fi
1565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566  test $ac_status = 0; } && {
1567	 test -z "$ac_c_werror_flag" ||
1568	 test ! -s conftest.err
1569       } && test -s conftest.$ac_objext; then :
1570  ac_retval=0
1571else
1572  $as_echo "$as_me: failed program was:" >&5
1573sed 's/^/| /' conftest.$ac_ext >&5
1574
1575	ac_retval=1
1576fi
1577  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1578  as_fn_set_status $ac_retval
1579
1580} # ac_fn_c_try_compile
1581
1582# ac_fn_c_try_link LINENO
1583# -----------------------
1584# Try to link conftest.$ac_ext, and return whether this succeeded.
1585ac_fn_c_try_link ()
1586{
1587  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588  rm -f conftest.$ac_objext conftest$ac_exeext
1589  if { { ac_try="$ac_link"
1590case "(($ac_try" in
1591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592  *) ac_try_echo=$ac_try;;
1593esac
1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595$as_echo "$ac_try_echo"; } >&5
1596  (eval "$ac_link") 2>conftest.err
1597  ac_status=$?
1598  if test -s conftest.err; then
1599    grep -v '^ *+' conftest.err >conftest.er1
1600    cat conftest.er1 >&5
1601    mv -f conftest.er1 conftest.err
1602  fi
1603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604  test $ac_status = 0; } && {
1605	 test -z "$ac_c_werror_flag" ||
1606	 test ! -s conftest.err
1607       } && test -s conftest$ac_exeext && {
1608	 test "$cross_compiling" = yes ||
1609	 $as_test_x conftest$ac_exeext
1610       }; then :
1611  ac_retval=0
1612else
1613  $as_echo "$as_me: failed program was:" >&5
1614sed 's/^/| /' conftest.$ac_ext >&5
1615
1616	ac_retval=1
1617fi
1618  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1619  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1620  # interfere with the next link command; also delete a directory that is
1621  # left behind by Apple's compiler.  We do this before executing the actions.
1622  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1624  as_fn_set_status $ac_retval
1625
1626} # ac_fn_c_try_link
1627
1628# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1629# -------------------------------------------------------
1630# Tests whether HEADER exists and can be compiled using the include files in
1631# INCLUDES, setting the cache variable VAR accordingly.
1632ac_fn_c_check_header_compile ()
1633{
1634  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636$as_echo_n "checking for $2... " >&6; }
1637if eval "test \"\${$3+set}\"" = set; then :
1638  $as_echo_n "(cached) " >&6
1639else
1640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641/* end confdefs.h.  */
1642$4
1643#include <$2>
1644_ACEOF
1645if ac_fn_c_try_compile "$LINENO"; then :
1646  eval "$3=yes"
1647else
1648  eval "$3=no"
1649fi
1650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651fi
1652eval ac_res=\$$3
1653	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654$as_echo "$ac_res" >&6; }
1655  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1656
1657} # ac_fn_c_check_header_compile
1658
1659# ac_fn_c_try_cpp LINENO
1660# ----------------------
1661# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662ac_fn_c_try_cpp ()
1663{
1664  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665  if { { ac_try="$ac_cpp conftest.$ac_ext"
1666case "(($ac_try" in
1667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668  *) ac_try_echo=$ac_try;;
1669esac
1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671$as_echo "$ac_try_echo"; } >&5
1672  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673  ac_status=$?
1674  if test -s conftest.err; then
1675    grep -v '^ *+' conftest.err >conftest.er1
1676    cat conftest.er1 >&5
1677    mv -f conftest.er1 conftest.err
1678  fi
1679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680  test $ac_status = 0; } >/dev/null && {
1681	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682	 test ! -s conftest.err
1683       }; then :
1684  ac_retval=0
1685else
1686  $as_echo "$as_me: failed program was:" >&5
1687sed 's/^/| /' conftest.$ac_ext >&5
1688
1689    ac_retval=1
1690fi
1691  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692  as_fn_set_status $ac_retval
1693
1694} # ac_fn_c_try_cpp
1695
1696# ac_fn_c_try_run LINENO
1697# ----------------------
1698# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1699# that executables *can* be run.
1700ac_fn_c_try_run ()
1701{
1702  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703  if { { ac_try="$ac_link"
1704case "(($ac_try" in
1705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706  *) ac_try_echo=$ac_try;;
1707esac
1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709$as_echo "$ac_try_echo"; } >&5
1710  (eval "$ac_link") 2>&5
1711  ac_status=$?
1712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714  { { case "(($ac_try" in
1715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716  *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720  (eval "$ac_try") 2>&5
1721  ac_status=$?
1722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723  test $ac_status = 0; }; }; then :
1724  ac_retval=0
1725else
1726  $as_echo "$as_me: program exited with status $ac_status" >&5
1727       $as_echo "$as_me: failed program was:" >&5
1728sed 's/^/| /' conftest.$ac_ext >&5
1729
1730       ac_retval=$ac_status
1731fi
1732  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734  as_fn_set_status $ac_retval
1735
1736} # ac_fn_c_try_run
1737
1738# ac_fn_c_check_func LINENO FUNC VAR
1739# ----------------------------------
1740# Tests whether FUNC exists, setting the cache variable VAR accordingly
1741ac_fn_c_check_func ()
1742{
1743  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745$as_echo_n "checking for $2... " >&6; }
1746if eval "test \"\${$3+set}\"" = set; then :
1747  $as_echo_n "(cached) " >&6
1748else
1749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h.  */
1751/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1752   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1753#define $2 innocuous_$2
1754
1755/* System header to define __stub macros and hopefully few prototypes,
1756    which can conflict with char $2 (); below.
1757    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1758    <limits.h> exists even on freestanding compilers.  */
1759
1760#ifdef __STDC__
1761# include <limits.h>
1762#else
1763# include <assert.h>
1764#endif
1765
1766#undef $2
1767
1768/* Override any GCC internal prototype to avoid an error.
1769   Use char because int might match the return type of a GCC
1770   builtin and then its argument prototype would still apply.  */
1771#ifdef __cplusplus
1772extern "C"
1773#endif
1774char $2 ();
1775/* The GNU C library defines this for functions which it implements
1776    to always fail with ENOSYS.  Some functions are actually named
1777    something starting with __ and the normal name is an alias.  */
1778#if defined __stub_$2 || defined __stub___$2
1779choke me
1780#endif
1781
1782int
1783main ()
1784{
1785return $2 ();
1786  ;
1787  return 0;
1788}
1789_ACEOF
1790if ac_fn_c_try_link "$LINENO"; then :
1791  eval "$3=yes"
1792else
1793  eval "$3=no"
1794fi
1795rm -f core conftest.err conftest.$ac_objext \
1796    conftest$ac_exeext conftest.$ac_ext
1797fi
1798eval ac_res=\$$3
1799	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800$as_echo "$ac_res" >&6; }
1801  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1802
1803} # ac_fn_c_check_func
1804
1805# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1806# ---------------------------------------------
1807# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1808# accordingly.
1809ac_fn_c_check_decl ()
1810{
1811  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812  as_decl_name=`echo $2|sed 's/ *(.*//'`
1813  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1815$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1816if eval "test \"\${$3+set}\"" = set; then :
1817  $as_echo_n "(cached) " >&6
1818else
1819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820/* end confdefs.h.  */
1821$4
1822int
1823main ()
1824{
1825#ifndef $as_decl_name
1826#ifdef __cplusplus
1827  (void) $as_decl_use;
1828#else
1829  (void) $as_decl_name;
1830#endif
1831#endif
1832
1833  ;
1834  return 0;
1835}
1836_ACEOF
1837if ac_fn_c_try_compile "$LINENO"; then :
1838  eval "$3=yes"
1839else
1840  eval "$3=no"
1841fi
1842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843fi
1844eval ac_res=\$$3
1845	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846$as_echo "$ac_res" >&6; }
1847  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848
1849} # ac_fn_c_check_decl
1850cat >config.log <<_ACEOF
1851This file contains any messages produced by compilers while
1852running configure, to aid debugging if configure makes a mistake.
1853
1854It was created by xf86-input-synaptics $as_me 1.3.0, which was
1855generated by GNU Autoconf 2.66.  Invocation command line was
1856
1857  $ $0 $@
1858
1859_ACEOF
1860exec 5>>config.log
1861{
1862cat <<_ASUNAME
1863## --------- ##
1864## Platform. ##
1865## --------- ##
1866
1867hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1868uname -m = `(uname -m) 2>/dev/null || echo unknown`
1869uname -r = `(uname -r) 2>/dev/null || echo unknown`
1870uname -s = `(uname -s) 2>/dev/null || echo unknown`
1871uname -v = `(uname -v) 2>/dev/null || echo unknown`
1872
1873/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1874/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1875
1876/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1877/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1878/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1879/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1880/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1881/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1882/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1883
1884_ASUNAME
1885
1886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887for as_dir in $PATH
1888do
1889  IFS=$as_save_IFS
1890  test -z "$as_dir" && as_dir=.
1891    $as_echo "PATH: $as_dir"
1892  done
1893IFS=$as_save_IFS
1894
1895} >&5
1896
1897cat >&5 <<_ACEOF
1898
1899
1900## ----------- ##
1901## Core tests. ##
1902## ----------- ##
1903
1904_ACEOF
1905
1906
1907# Keep a trace of the command line.
1908# Strip out --no-create and --no-recursion so they do not pile up.
1909# Strip out --silent because we don't want to record it for future runs.
1910# Also quote any args containing shell meta-characters.
1911# Make two passes to allow for proper duplicate-argument suppression.
1912ac_configure_args=
1913ac_configure_args0=
1914ac_configure_args1=
1915ac_must_keep_next=false
1916for ac_pass in 1 2
1917do
1918  for ac_arg
1919  do
1920    case $ac_arg in
1921    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1922    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1923    | -silent | --silent | --silen | --sile | --sil)
1924      continue ;;
1925    *\'*)
1926      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1927    esac
1928    case $ac_pass in
1929    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1930    2)
1931      as_fn_append ac_configure_args1 " '$ac_arg'"
1932      if test $ac_must_keep_next = true; then
1933	ac_must_keep_next=false # Got value, back to normal.
1934      else
1935	case $ac_arg in
1936	  *=* | --config-cache | -C | -disable-* | --disable-* \
1937	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1938	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1939	  | -with-* | --with-* | -without-* | --without-* | --x)
1940	    case "$ac_configure_args0 " in
1941	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1942	    esac
1943	    ;;
1944	  -* ) ac_must_keep_next=true ;;
1945	esac
1946      fi
1947      as_fn_append ac_configure_args " '$ac_arg'"
1948      ;;
1949    esac
1950  done
1951done
1952{ ac_configure_args0=; unset ac_configure_args0;}
1953{ ac_configure_args1=; unset ac_configure_args1;}
1954
1955# When interrupted or exit'd, cleanup temporary files, and complete
1956# config.log.  We remove comments because anyway the quotes in there
1957# would cause problems or look ugly.
1958# WARNING: Use '\'' to represent an apostrophe within the trap.
1959# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1960trap 'exit_status=$?
1961  # Save into config.log some information that might help in debugging.
1962  {
1963    echo
1964
1965    $as_echo "## ---------------- ##
1966## Cache variables. ##
1967## ---------------- ##"
1968    echo
1969    # The following way of writing the cache mishandles newlines in values,
1970(
1971  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1972    eval ac_val=\$$ac_var
1973    case $ac_val in #(
1974    *${as_nl}*)
1975      case $ac_var in #(
1976      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1977$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1978      esac
1979      case $ac_var in #(
1980      _ | IFS | as_nl) ;; #(
1981      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1982      *) { eval $ac_var=; unset $ac_var;} ;;
1983      esac ;;
1984    esac
1985  done
1986  (set) 2>&1 |
1987    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1988    *${as_nl}ac_space=\ *)
1989      sed -n \
1990	"s/'\''/'\''\\\\'\'''\''/g;
1991	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1992      ;; #(
1993    *)
1994      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1995      ;;
1996    esac |
1997    sort
1998)
1999    echo
2000
2001    $as_echo "## ----------------- ##
2002## Output variables. ##
2003## ----------------- ##"
2004    echo
2005    for ac_var in $ac_subst_vars
2006    do
2007      eval ac_val=\$$ac_var
2008      case $ac_val in
2009      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010      esac
2011      $as_echo "$ac_var='\''$ac_val'\''"
2012    done | sort
2013    echo
2014
2015    if test -n "$ac_subst_files"; then
2016      $as_echo "## ------------------- ##
2017## File substitutions. ##
2018## ------------------- ##"
2019      echo
2020      for ac_var in $ac_subst_files
2021      do
2022	eval ac_val=\$$ac_var
2023	case $ac_val in
2024	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2025	esac
2026	$as_echo "$ac_var='\''$ac_val'\''"
2027      done | sort
2028      echo
2029    fi
2030
2031    if test -s confdefs.h; then
2032      $as_echo "## ----------- ##
2033## confdefs.h. ##
2034## ----------- ##"
2035      echo
2036      cat confdefs.h
2037      echo
2038    fi
2039    test "$ac_signal" != 0 &&
2040      $as_echo "$as_me: caught signal $ac_signal"
2041    $as_echo "$as_me: exit $exit_status"
2042  } >&5
2043  rm -f core *.core core.conftest.* &&
2044    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2045    exit $exit_status
2046' 0
2047for ac_signal in 1 2 13 15; do
2048  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2049done
2050ac_signal=0
2051
2052# confdefs.h avoids OS command line length limits that DEFS can exceed.
2053rm -f -r conftest* confdefs.h
2054
2055$as_echo "/* confdefs.h */" > confdefs.h
2056
2057# Predefined preprocessor variables.
2058
2059cat >>confdefs.h <<_ACEOF
2060#define PACKAGE_NAME "$PACKAGE_NAME"
2061_ACEOF
2062
2063cat >>confdefs.h <<_ACEOF
2064#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2065_ACEOF
2066
2067cat >>confdefs.h <<_ACEOF
2068#define PACKAGE_VERSION "$PACKAGE_VERSION"
2069_ACEOF
2070
2071cat >>confdefs.h <<_ACEOF
2072#define PACKAGE_STRING "$PACKAGE_STRING"
2073_ACEOF
2074
2075cat >>confdefs.h <<_ACEOF
2076#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2077_ACEOF
2078
2079cat >>confdefs.h <<_ACEOF
2080#define PACKAGE_URL "$PACKAGE_URL"
2081_ACEOF
2082
2083
2084# Let the site file select an alternate cache file if it wants to.
2085# Prefer an explicitly selected file to automatically selected ones.
2086ac_site_file1=NONE
2087ac_site_file2=NONE
2088if test -n "$CONFIG_SITE"; then
2089  # We do not want a PATH search for config.site.
2090  case $CONFIG_SITE in #((
2091    -*)  ac_site_file1=./$CONFIG_SITE;;
2092    */*) ac_site_file1=$CONFIG_SITE;;
2093    *)   ac_site_file1=./$CONFIG_SITE;;
2094  esac
2095elif test "x$prefix" != xNONE; then
2096  ac_site_file1=$prefix/share/config.site
2097  ac_site_file2=$prefix/etc/config.site
2098else
2099  ac_site_file1=$ac_default_prefix/share/config.site
2100  ac_site_file2=$ac_default_prefix/etc/config.site
2101fi
2102for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2103do
2104  test "x$ac_site_file" = xNONE && continue
2105  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2106    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2107$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2108    sed 's/^/| /' "$ac_site_file" >&5
2109    . "$ac_site_file" \
2110      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2111$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2112as_fn_error $? "failed to load site script $ac_site_file
2113See \`config.log' for more details" "$LINENO" 5; }
2114  fi
2115done
2116
2117if test -r "$cache_file"; then
2118  # Some versions of bash will fail to source /dev/null (special files
2119  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2120  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2121    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2122$as_echo "$as_me: loading cache $cache_file" >&6;}
2123    case $cache_file in
2124      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2125      *)                      . "./$cache_file";;
2126    esac
2127  fi
2128else
2129  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2130$as_echo "$as_me: creating cache $cache_file" >&6;}
2131  >$cache_file
2132fi
2133
2134# Check that the precious variables saved in the cache have kept the same
2135# value.
2136ac_cache_corrupted=false
2137for ac_var in $ac_precious_vars; do
2138  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2139  eval ac_new_set=\$ac_env_${ac_var}_set
2140  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2141  eval ac_new_val=\$ac_env_${ac_var}_value
2142  case $ac_old_set,$ac_new_set in
2143    set,)
2144      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2145$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2146      ac_cache_corrupted=: ;;
2147    ,set)
2148      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2149$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2150      ac_cache_corrupted=: ;;
2151    ,);;
2152    *)
2153      if test "x$ac_old_val" != "x$ac_new_val"; then
2154	# differences in whitespace do not lead to failure.
2155	ac_old_val_w=`echo x $ac_old_val`
2156	ac_new_val_w=`echo x $ac_new_val`
2157	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2158	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2159$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2160	  ac_cache_corrupted=:
2161	else
2162	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2163$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2164	  eval $ac_var=\$ac_old_val
2165	fi
2166	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2167$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2168	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2169$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2170      fi;;
2171  esac
2172  # Pass precious variables to config.status.
2173  if test "$ac_new_set" = set; then
2174    case $ac_new_val in
2175    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2176    *) ac_arg=$ac_var=$ac_new_val ;;
2177    esac
2178    case " $ac_configure_args " in
2179      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2180      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2181    esac
2182  fi
2183done
2184if $ac_cache_corrupted; then
2185  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2187  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2188$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2189  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2190fi
2191## -------------------- ##
2192## Main body of script. ##
2193## -------------------- ##
2194
2195ac_ext=c
2196ac_cpp='$CPP $CPPFLAGS'
2197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200
2201
2202
2203ac_config_headers="$ac_config_headers config.h"
2204
2205ac_aux_dir=
2206for ac_dir in . "$srcdir"/.; do
2207  if test -f "$ac_dir/install-sh"; then
2208    ac_aux_dir=$ac_dir
2209    ac_install_sh="$ac_aux_dir/install-sh -c"
2210    break
2211  elif test -f "$ac_dir/install.sh"; then
2212    ac_aux_dir=$ac_dir
2213    ac_install_sh="$ac_aux_dir/install.sh -c"
2214    break
2215  elif test -f "$ac_dir/shtool"; then
2216    ac_aux_dir=$ac_dir
2217    ac_install_sh="$ac_aux_dir/shtool install -c"
2218    break
2219  fi
2220done
2221if test -z "$ac_aux_dir"; then
2222  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2223fi
2224
2225# These three variables are undocumented and unsupported,
2226# and are intended to be withdrawn in a future Autoconf release.
2227# They can cause serious problems if a builder's source tree is in a directory
2228# whose full name contains unusual characters.
2229ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2230ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2231ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2232
2233
2234
2235# Initialize Automake
2236am__api_version='1.11'
2237
2238# Find a good install program.  We prefer a C program (faster),
2239# so one script is as good as another.  But avoid the broken or
2240# incompatible versions:
2241# SysV /etc/install, /usr/sbin/install
2242# SunOS /usr/etc/install
2243# IRIX /sbin/install
2244# AIX /bin/install
2245# AmigaOS /C/install, which installs bootblocks on floppy discs
2246# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2247# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2248# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2249# OS/2's system install, which has a completely different semantic
2250# ./install, which can be erroneously created by make from ./install.sh.
2251# Reject install programs that cannot install multiple files.
2252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2253$as_echo_n "checking for a BSD-compatible install... " >&6; }
2254if test -z "$INSTALL"; then
2255if test "${ac_cv_path_install+set}" = set; then :
2256  $as_echo_n "(cached) " >&6
2257else
2258  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259for as_dir in $PATH
2260do
2261  IFS=$as_save_IFS
2262  test -z "$as_dir" && as_dir=.
2263    # Account for people who put trailing slashes in PATH elements.
2264case $as_dir/ in #((
2265  ./ | .// | /[cC]/* | \
2266  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2267  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2268  /usr/ucb/* ) ;;
2269  *)
2270    # OSF1 and SCO ODT 3.0 have their own names for install.
2271    # Don't use installbsd from OSF since it installs stuff as root
2272    # by default.
2273    for ac_prog in ginstall scoinst install; do
2274      for ac_exec_ext in '' $ac_executable_extensions; do
2275	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2276	  if test $ac_prog = install &&
2277	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2278	    # AIX install.  It has an incompatible calling convention.
2279	    :
2280	  elif test $ac_prog = install &&
2281	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2282	    # program-specific install script used by HP pwplus--don't use.
2283	    :
2284	  else
2285	    rm -rf conftest.one conftest.two conftest.dir
2286	    echo one > conftest.one
2287	    echo two > conftest.two
2288	    mkdir conftest.dir
2289	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2290	      test -s conftest.one && test -s conftest.two &&
2291	      test -s conftest.dir/conftest.one &&
2292	      test -s conftest.dir/conftest.two
2293	    then
2294	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2295	      break 3
2296	    fi
2297	  fi
2298	fi
2299      done
2300    done
2301    ;;
2302esac
2303
2304  done
2305IFS=$as_save_IFS
2306
2307rm -rf conftest.one conftest.two conftest.dir
2308
2309fi
2310  if test "${ac_cv_path_install+set}" = set; then
2311    INSTALL=$ac_cv_path_install
2312  else
2313    # As a last resort, use the slow shell script.  Don't cache a
2314    # value for INSTALL within a source directory, because that will
2315    # break other packages using the cache if that directory is
2316    # removed, or if the value is a relative name.
2317    INSTALL=$ac_install_sh
2318  fi
2319fi
2320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2321$as_echo "$INSTALL" >&6; }
2322
2323# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2324# It thinks the first close brace ends the variable substitution.
2325test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2326
2327test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2328
2329test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2330
2331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2332$as_echo_n "checking whether build environment is sane... " >&6; }
2333# Just in case
2334sleep 1
2335echo timestamp > conftest.file
2336# Reject unsafe characters in $srcdir or the absolute working directory
2337# name.  Accept space and tab only in the latter.
2338am_lf='
2339'
2340case `pwd` in
2341  *[\\\"\#\$\&\'\`$am_lf]*)
2342    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2343esac
2344case $srcdir in
2345  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2346    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2347esac
2348
2349# Do `set' in a subshell so we don't clobber the current shell's
2350# arguments.  Must try -L first in case configure is actually a
2351# symlink; some systems play weird games with the mod time of symlinks
2352# (eg FreeBSD returns the mod time of the symlink's containing
2353# directory).
2354if (
2355   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2356   if test "$*" = "X"; then
2357      # -L didn't work.
2358      set X `ls -t "$srcdir/configure" conftest.file`
2359   fi
2360   rm -f conftest.file
2361   if test "$*" != "X $srcdir/configure conftest.file" \
2362      && test "$*" != "X conftest.file $srcdir/configure"; then
2363
2364      # If neither matched, then we have a broken ls.  This can happen
2365      # if, for instance, CONFIG_SHELL is bash and it inherits a
2366      # broken ls alias from the environment.  This has actually
2367      # happened.  Such a system could not be considered "sane".
2368      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2369alias in your environment" "$LINENO" 5
2370   fi
2371
2372   test "$2" = conftest.file
2373   )
2374then
2375   # Ok.
2376   :
2377else
2378   as_fn_error $? "newly created file is older than distributed files!
2379Check your system clock" "$LINENO" 5
2380fi
2381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2382$as_echo "yes" >&6; }
2383test "$program_prefix" != NONE &&
2384  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2385# Use a double $ so make ignores it.
2386test "$program_suffix" != NONE &&
2387  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2388# Double any \ or $.
2389# By default was `s,x,x', remove it if useless.
2390ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2391program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2392
2393# expand $ac_aux_dir to an absolute path
2394am_aux_dir=`cd $ac_aux_dir && pwd`
2395
2396if test x"${MISSING+set}" != xset; then
2397  case $am_aux_dir in
2398  *\ * | *\	*)
2399    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2400  *)
2401    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2402  esac
2403fi
2404# Use eval to expand $SHELL
2405if eval "$MISSING --run true"; then
2406  am_missing_run="$MISSING --run "
2407else
2408  am_missing_run=
2409  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2410$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2411fi
2412
2413if test x"${install_sh}" != xset; then
2414  case $am_aux_dir in
2415  *\ * | *\	*)
2416    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2417  *)
2418    install_sh="\${SHELL} $am_aux_dir/install-sh"
2419  esac
2420fi
2421
2422# Installed binaries are usually stripped using `strip' when the user
2423# run `make install-strip'.  However `strip' might not be the right
2424# tool to use in cross-compilation environments, therefore Automake
2425# will honor the `STRIP' environment variable to overrule this program.
2426if test "$cross_compiling" != no; then
2427  if test -n "$ac_tool_prefix"; then
2428  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2429set dummy ${ac_tool_prefix}strip; ac_word=$2
2430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2431$as_echo_n "checking for $ac_word... " >&6; }
2432if test "${ac_cv_prog_STRIP+set}" = set; then :
2433  $as_echo_n "(cached) " >&6
2434else
2435  if test -n "$STRIP"; then
2436  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2437else
2438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439for as_dir in $PATH
2440do
2441  IFS=$as_save_IFS
2442  test -z "$as_dir" && as_dir=.
2443    for ac_exec_ext in '' $ac_executable_extensions; do
2444  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2446    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2447    break 2
2448  fi
2449done
2450  done
2451IFS=$as_save_IFS
2452
2453fi
2454fi
2455STRIP=$ac_cv_prog_STRIP
2456if test -n "$STRIP"; then
2457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2458$as_echo "$STRIP" >&6; }
2459else
2460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2461$as_echo "no" >&6; }
2462fi
2463
2464
2465fi
2466if test -z "$ac_cv_prog_STRIP"; then
2467  ac_ct_STRIP=$STRIP
2468  # Extract the first word of "strip", so it can be a program name with args.
2469set dummy strip; ac_word=$2
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471$as_echo_n "checking for $ac_word... " >&6; }
2472if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2473  $as_echo_n "(cached) " >&6
2474else
2475  if test -n "$ac_ct_STRIP"; then
2476  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2477else
2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479for as_dir in $PATH
2480do
2481  IFS=$as_save_IFS
2482  test -z "$as_dir" && as_dir=.
2483    for ac_exec_ext in '' $ac_executable_extensions; do
2484  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485    ac_cv_prog_ac_ct_STRIP="strip"
2486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487    break 2
2488  fi
2489done
2490  done
2491IFS=$as_save_IFS
2492
2493fi
2494fi
2495ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2496if test -n "$ac_ct_STRIP"; then
2497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2498$as_echo "$ac_ct_STRIP" >&6; }
2499else
2500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501$as_echo "no" >&6; }
2502fi
2503
2504  if test "x$ac_ct_STRIP" = x; then
2505    STRIP=":"
2506  else
2507    case $cross_compiling:$ac_tool_warned in
2508yes:)
2509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2511ac_tool_warned=yes ;;
2512esac
2513    STRIP=$ac_ct_STRIP
2514  fi
2515else
2516  STRIP="$ac_cv_prog_STRIP"
2517fi
2518
2519fi
2520INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2521
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2523$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2524if test -z "$MKDIR_P"; then
2525  if test "${ac_cv_path_mkdir+set}" = set; then :
2526  $as_echo_n "(cached) " >&6
2527else
2528  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2530do
2531  IFS=$as_save_IFS
2532  test -z "$as_dir" && as_dir=.
2533    for ac_prog in mkdir gmkdir; do
2534	 for ac_exec_ext in '' $ac_executable_extensions; do
2535	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2536	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2537	     'mkdir (GNU coreutils) '* | \
2538	     'mkdir (coreutils) '* | \
2539	     'mkdir (fileutils) '4.1*)
2540	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2541	       break 3;;
2542	   esac
2543	 done
2544       done
2545  done
2546IFS=$as_save_IFS
2547
2548fi
2549
2550  test -d ./--version && rmdir ./--version
2551  if test "${ac_cv_path_mkdir+set}" = set; then
2552    MKDIR_P="$ac_cv_path_mkdir -p"
2553  else
2554    # As a last resort, use the slow shell script.  Don't cache a
2555    # value for MKDIR_P within a source directory, because that will
2556    # break other packages using the cache if that directory is
2557    # removed, or if the value is a relative name.
2558    MKDIR_P="$ac_install_sh -d"
2559  fi
2560fi
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2562$as_echo "$MKDIR_P" >&6; }
2563
2564mkdir_p="$MKDIR_P"
2565case $mkdir_p in
2566  [\\/$]* | ?:[\\/]*) ;;
2567  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2568esac
2569
2570for ac_prog in gawk mawk nawk awk
2571do
2572  # Extract the first word of "$ac_prog", so it can be a program name with args.
2573set dummy $ac_prog; ac_word=$2
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575$as_echo_n "checking for $ac_word... " >&6; }
2576if test "${ac_cv_prog_AWK+set}" = set; then :
2577  $as_echo_n "(cached) " >&6
2578else
2579  if test -n "$AWK"; then
2580  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2581else
2582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585  IFS=$as_save_IFS
2586  test -z "$as_dir" && as_dir=.
2587    for ac_exec_ext in '' $ac_executable_extensions; do
2588  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2589    ac_cv_prog_AWK="$ac_prog"
2590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591    break 2
2592  fi
2593done
2594  done
2595IFS=$as_save_IFS
2596
2597fi
2598fi
2599AWK=$ac_cv_prog_AWK
2600if test -n "$AWK"; then
2601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2602$as_echo "$AWK" >&6; }
2603else
2604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605$as_echo "no" >&6; }
2606fi
2607
2608
2609  test -n "$AWK" && break
2610done
2611
2612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2613$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2614set x ${MAKE-make}
2615ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2616if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2617  $as_echo_n "(cached) " >&6
2618else
2619  cat >conftest.make <<\_ACEOF
2620SHELL = /bin/sh
2621all:
2622	@echo '@@@%%%=$(MAKE)=@@@%%%'
2623_ACEOF
2624# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2625case `${MAKE-make} -f conftest.make 2>/dev/null` in
2626  *@@@%%%=?*=@@@%%%*)
2627    eval ac_cv_prog_make_${ac_make}_set=yes;;
2628  *)
2629    eval ac_cv_prog_make_${ac_make}_set=no;;
2630esac
2631rm -f conftest.make
2632fi
2633if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635$as_echo "yes" >&6; }
2636  SET_MAKE=
2637else
2638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639$as_echo "no" >&6; }
2640  SET_MAKE="MAKE=${MAKE-make}"
2641fi
2642
2643rm -rf .tst 2>/dev/null
2644mkdir .tst 2>/dev/null
2645if test -d .tst; then
2646  am__leading_dot=.
2647else
2648  am__leading_dot=_
2649fi
2650rmdir .tst 2>/dev/null
2651
2652if test "`cd $srcdir && pwd`" != "`pwd`"; then
2653  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2654  # is not polluted with repeated "-I."
2655  am__isrc=' -I$(srcdir)'
2656  # test to see if srcdir already configured
2657  if test -f $srcdir/config.status; then
2658    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2659  fi
2660fi
2661
2662# test whether we have cygpath
2663if test -z "$CYGPATH_W"; then
2664  if (cygpath --version) >/dev/null 2>/dev/null; then
2665    CYGPATH_W='cygpath -w'
2666  else
2667    CYGPATH_W=echo
2668  fi
2669fi
2670
2671
2672# Define the identity of the package.
2673 PACKAGE='xf86-input-synaptics'
2674 VERSION='1.3.0'
2675
2676
2677cat >>confdefs.h <<_ACEOF
2678#define PACKAGE "$PACKAGE"
2679_ACEOF
2680
2681
2682cat >>confdefs.h <<_ACEOF
2683#define VERSION "$VERSION"
2684_ACEOF
2685
2686# Some tools Automake needs.
2687
2688ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2689
2690
2691AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2692
2693
2694AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2695
2696
2697AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2698
2699
2700MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2701
2702# We need awk for the "check" target.  The system "awk" is bad on
2703# some platforms.
2704# Always define AMTAR for backward compatibility.
2705
2706AMTAR=${AMTAR-"${am_missing_run}tar"}
2707
2708am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2709
2710
2711
2712
2713
2714
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2716$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2717    # Check whether --enable-maintainer-mode was given.
2718if test "${enable_maintainer_mode+set}" = set; then :
2719  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2720else
2721  USE_MAINTAINER_MODE=no
2722fi
2723
2724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2725$as_echo "$USE_MAINTAINER_MODE" >&6; }
2726   if test $USE_MAINTAINER_MODE = yes; then
2727  MAINTAINER_MODE_TRUE=
2728  MAINTAINER_MODE_FALSE='#'
2729else
2730  MAINTAINER_MODE_TRUE='#'
2731  MAINTAINER_MODE_FALSE=
2732fi
2733
2734  MAINT=$MAINTAINER_MODE_TRUE
2735
2736
2737
2738# Initialize libtool
2739# Check whether --enable-static was given.
2740if test "${enable_static+set}" = set; then :
2741  enableval=$enable_static; p=${PACKAGE-default}
2742    case $enableval in
2743    yes) enable_static=yes ;;
2744    no) enable_static=no ;;
2745    *)
2746     enable_static=no
2747      # Look at the argument we got.  We use all the common list separators.
2748      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2749      for pkg in $enableval; do
2750	IFS="$lt_save_ifs"
2751	if test "X$pkg" = "X$p"; then
2752	  enable_static=yes
2753	fi
2754      done
2755      IFS="$lt_save_ifs"
2756      ;;
2757    esac
2758else
2759  enable_static=no
2760fi
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770case `pwd` in
2771  *\ * | *\	*)
2772    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2773$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2774esac
2775
2776
2777
2778macro_version='2.2.10'
2779macro_revision='1.3175'
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793ltmain="$ac_aux_dir/ltmain.sh"
2794
2795# Make sure we can run config.sub.
2796$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2797  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2798
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2800$as_echo_n "checking build system type... " >&6; }
2801if test "${ac_cv_build+set}" = set; then :
2802  $as_echo_n "(cached) " >&6
2803else
2804  ac_build_alias=$build_alias
2805test "x$ac_build_alias" = x &&
2806  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2807test "x$ac_build_alias" = x &&
2808  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2809ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2810  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2811
2812fi
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2814$as_echo "$ac_cv_build" >&6; }
2815case $ac_cv_build in
2816*-*-*) ;;
2817*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2818esac
2819build=$ac_cv_build
2820ac_save_IFS=$IFS; IFS='-'
2821set x $ac_cv_build
2822shift
2823build_cpu=$1
2824build_vendor=$2
2825shift; shift
2826# Remember, the first character of IFS is used to create $*,
2827# except with old shells:
2828build_os=$*
2829IFS=$ac_save_IFS
2830case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2831
2832
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2834$as_echo_n "checking host system type... " >&6; }
2835if test "${ac_cv_host+set}" = set; then :
2836  $as_echo_n "(cached) " >&6
2837else
2838  if test "x$host_alias" = x; then
2839  ac_cv_host=$ac_cv_build
2840else
2841  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2842    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2843fi
2844
2845fi
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2847$as_echo "$ac_cv_host" >&6; }
2848case $ac_cv_host in
2849*-*-*) ;;
2850*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2851esac
2852host=$ac_cv_host
2853ac_save_IFS=$IFS; IFS='-'
2854set x $ac_cv_host
2855shift
2856host_cpu=$1
2857host_vendor=$2
2858shift; shift
2859# Remember, the first character of IFS is used to create $*,
2860# except with old shells:
2861host_os=$*
2862IFS=$ac_save_IFS
2863case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2864
2865
2866# Backslashify metacharacters that are still active within
2867# double-quoted strings.
2868sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2869
2870# Same as above, but do not quote variable references.
2871double_quote_subst='s/\(["`\\]\)/\\\1/g'
2872
2873# Sed substitution to delay expansion of an escaped shell variable in a
2874# double_quote_subst'ed string.
2875delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2876
2877# Sed substitution to delay expansion of an escaped single quote.
2878delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2879
2880# Sed substitution to avoid accidental globbing in evaled expressions
2881no_glob_subst='s/\*/\\\*/g'
2882
2883ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2884ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2885ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2886
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2888$as_echo_n "checking how to print strings... " >&6; }
2889# Test print first, because it will be a builtin if present.
2890if test "X`print -r -- -n 2>/dev/null`" = X-n && \
2891   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2892  ECHO='print -r --'
2893elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2894  ECHO='printf %s\n'
2895else
2896  # Use this function as a fallback that always works.
2897  func_fallback_echo ()
2898  {
2899    eval 'cat <<_LTECHO_EOF
2900$1
2901_LTECHO_EOF'
2902  }
2903  ECHO='func_fallback_echo'
2904fi
2905
2906# func_echo_all arg...
2907# Invoke $ECHO with all args, space-separated.
2908func_echo_all ()
2909{
2910    $ECHO ""
2911}
2912
2913case "$ECHO" in
2914  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2915$as_echo "printf" >&6; } ;;
2916  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2917$as_echo "print -r" >&6; } ;;
2918  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2919$as_echo "cat" >&6; } ;;
2920esac
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935DEPDIR="${am__leading_dot}deps"
2936
2937ac_config_commands="$ac_config_commands depfiles"
2938
2939
2940am_make=${MAKE-make}
2941cat > confinc << 'END'
2942am__doit:
2943	@echo this is the am__doit target
2944.PHONY: am__doit
2945END
2946# If we don't find an include directive, just comment out the code.
2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2948$as_echo_n "checking for style of include used by $am_make... " >&6; }
2949am__include="#"
2950am__quote=
2951_am_result=none
2952# First try GNU make style include.
2953echo "include confinc" > confmf
2954# Ignore all kinds of additional output from `make'.
2955case `$am_make -s -f confmf 2> /dev/null` in #(
2956*the\ am__doit\ target*)
2957  am__include=include
2958  am__quote=
2959  _am_result=GNU
2960  ;;
2961esac
2962# Now try BSD make style include.
2963if test "$am__include" = "#"; then
2964   echo '.include "confinc"' > confmf
2965   case `$am_make -s -f confmf 2> /dev/null` in #(
2966   *the\ am__doit\ target*)
2967     am__include=.include
2968     am__quote="\""
2969     _am_result=BSD
2970     ;;
2971   esac
2972fi
2973
2974
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2976$as_echo "$_am_result" >&6; }
2977rm -f confinc confmf
2978
2979# Check whether --enable-dependency-tracking was given.
2980if test "${enable_dependency_tracking+set}" = set; then :
2981  enableval=$enable_dependency_tracking;
2982fi
2983
2984if test "x$enable_dependency_tracking" != xno; then
2985  am_depcomp="$ac_aux_dir/depcomp"
2986  AMDEPBACKSLASH='\'
2987fi
2988 if test "x$enable_dependency_tracking" != xno; then
2989  AMDEP_TRUE=
2990  AMDEP_FALSE='#'
2991else
2992  AMDEP_TRUE='#'
2993  AMDEP_FALSE=
2994fi
2995
2996
2997ac_ext=c
2998ac_cpp='$CPP $CPPFLAGS'
2999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002if test -n "$ac_tool_prefix"; then
3003  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3004set dummy ${ac_tool_prefix}gcc; ac_word=$2
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006$as_echo_n "checking for $ac_word... " >&6; }
3007if test "${ac_cv_prog_CC+set}" = set; then :
3008  $as_echo_n "(cached) " >&6
3009else
3010  if test -n "$CC"; then
3011  ac_cv_prog_CC="$CC" # Let the user override the test.
3012else
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016  IFS=$as_save_IFS
3017  test -z "$as_dir" && as_dir=.
3018    for ac_exec_ext in '' $ac_executable_extensions; do
3019  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022    break 2
3023  fi
3024done
3025  done
3026IFS=$as_save_IFS
3027
3028fi
3029fi
3030CC=$ac_cv_prog_CC
3031if test -n "$CC"; then
3032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3033$as_echo "$CC" >&6; }
3034else
3035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036$as_echo "no" >&6; }
3037fi
3038
3039
3040fi
3041if test -z "$ac_cv_prog_CC"; then
3042  ac_ct_CC=$CC
3043  # Extract the first word of "gcc", so it can be a program name with args.
3044set dummy gcc; ac_word=$2
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046$as_echo_n "checking for $ac_word... " >&6; }
3047if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3048  $as_echo_n "(cached) " >&6
3049else
3050  if test -n "$ac_ct_CC"; then
3051  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3052else
3053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054for as_dir in $PATH
3055do
3056  IFS=$as_save_IFS
3057  test -z "$as_dir" && as_dir=.
3058    for ac_exec_ext in '' $ac_executable_extensions; do
3059  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060    ac_cv_prog_ac_ct_CC="gcc"
3061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3062    break 2
3063  fi
3064done
3065  done
3066IFS=$as_save_IFS
3067
3068fi
3069fi
3070ac_ct_CC=$ac_cv_prog_ac_ct_CC
3071if test -n "$ac_ct_CC"; then
3072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3073$as_echo "$ac_ct_CC" >&6; }
3074else
3075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076$as_echo "no" >&6; }
3077fi
3078
3079  if test "x$ac_ct_CC" = x; then
3080    CC=""
3081  else
3082    case $cross_compiling:$ac_tool_warned in
3083yes:)
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3086ac_tool_warned=yes ;;
3087esac
3088    CC=$ac_ct_CC
3089  fi
3090else
3091  CC="$ac_cv_prog_CC"
3092fi
3093
3094if test -z "$CC"; then
3095          if test -n "$ac_tool_prefix"; then
3096    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3097set dummy ${ac_tool_prefix}cc; ac_word=$2
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099$as_echo_n "checking for $ac_word... " >&6; }
3100if test "${ac_cv_prog_CC+set}" = set; then :
3101  $as_echo_n "(cached) " >&6
3102else
3103  if test -n "$CC"; then
3104  ac_cv_prog_CC="$CC" # Let the user override the test.
3105else
3106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107for as_dir in $PATH
3108do
3109  IFS=$as_save_IFS
3110  test -z "$as_dir" && as_dir=.
3111    for ac_exec_ext in '' $ac_executable_extensions; do
3112  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113    ac_cv_prog_CC="${ac_tool_prefix}cc"
3114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115    break 2
3116  fi
3117done
3118  done
3119IFS=$as_save_IFS
3120
3121fi
3122fi
3123CC=$ac_cv_prog_CC
3124if test -n "$CC"; then
3125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3126$as_echo "$CC" >&6; }
3127else
3128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129$as_echo "no" >&6; }
3130fi
3131
3132
3133  fi
3134fi
3135if test -z "$CC"; then
3136  # Extract the first word of "cc", so it can be a program name with args.
3137set dummy cc; ac_word=$2
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139$as_echo_n "checking for $ac_word... " >&6; }
3140if test "${ac_cv_prog_CC+set}" = set; then :
3141  $as_echo_n "(cached) " >&6
3142else
3143  if test -n "$CC"; then
3144  ac_cv_prog_CC="$CC" # Let the user override the test.
3145else
3146  ac_prog_rejected=no
3147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148for as_dir in $PATH
3149do
3150  IFS=$as_save_IFS
3151  test -z "$as_dir" && as_dir=.
3152    for ac_exec_ext in '' $ac_executable_extensions; do
3153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3155       ac_prog_rejected=yes
3156       continue
3157     fi
3158    ac_cv_prog_CC="cc"
3159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160    break 2
3161  fi
3162done
3163  done
3164IFS=$as_save_IFS
3165
3166if test $ac_prog_rejected = yes; then
3167  # We found a bogon in the path, so make sure we never use it.
3168  set dummy $ac_cv_prog_CC
3169  shift
3170  if test $# != 0; then
3171    # We chose a different compiler from the bogus one.
3172    # However, it has the same basename, so the bogon will be chosen
3173    # first if we set CC to just the basename; use the full file name.
3174    shift
3175    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3176  fi
3177fi
3178fi
3179fi
3180CC=$ac_cv_prog_CC
3181if test -n "$CC"; then
3182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3183$as_echo "$CC" >&6; }
3184else
3185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186$as_echo "no" >&6; }
3187fi
3188
3189
3190fi
3191if test -z "$CC"; then
3192  if test -n "$ac_tool_prefix"; then
3193  for ac_prog in cl.exe
3194  do
3195    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3196set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198$as_echo_n "checking for $ac_word... " >&6; }
3199if test "${ac_cv_prog_CC+set}" = set; then :
3200  $as_echo_n "(cached) " >&6
3201else
3202  if test -n "$CC"; then
3203  ac_cv_prog_CC="$CC" # Let the user override the test.
3204else
3205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206for as_dir in $PATH
3207do
3208  IFS=$as_save_IFS
3209  test -z "$as_dir" && as_dir=.
3210    for ac_exec_ext in '' $ac_executable_extensions; do
3211  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3212    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3213    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214    break 2
3215  fi
3216done
3217  done
3218IFS=$as_save_IFS
3219
3220fi
3221fi
3222CC=$ac_cv_prog_CC
3223if test -n "$CC"; then
3224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3225$as_echo "$CC" >&6; }
3226else
3227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228$as_echo "no" >&6; }
3229fi
3230
3231
3232    test -n "$CC" && break
3233  done
3234fi
3235if test -z "$CC"; then
3236  ac_ct_CC=$CC
3237  for ac_prog in cl.exe
3238do
3239  # Extract the first word of "$ac_prog", so it can be a program name with args.
3240set dummy $ac_prog; ac_word=$2
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242$as_echo_n "checking for $ac_word... " >&6; }
3243if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3244  $as_echo_n "(cached) " >&6
3245else
3246  if test -n "$ac_ct_CC"; then
3247  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3248else
3249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250for as_dir in $PATH
3251do
3252  IFS=$as_save_IFS
3253  test -z "$as_dir" && as_dir=.
3254    for ac_exec_ext in '' $ac_executable_extensions; do
3255  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3256    ac_cv_prog_ac_ct_CC="$ac_prog"
3257    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258    break 2
3259  fi
3260done
3261  done
3262IFS=$as_save_IFS
3263
3264fi
3265fi
3266ac_ct_CC=$ac_cv_prog_ac_ct_CC
3267if test -n "$ac_ct_CC"; then
3268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3269$as_echo "$ac_ct_CC" >&6; }
3270else
3271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272$as_echo "no" >&6; }
3273fi
3274
3275
3276  test -n "$ac_ct_CC" && break
3277done
3278
3279  if test "x$ac_ct_CC" = x; then
3280    CC=""
3281  else
3282    case $cross_compiling:$ac_tool_warned in
3283yes:)
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3286ac_tool_warned=yes ;;
3287esac
3288    CC=$ac_ct_CC
3289  fi
3290fi
3291
3292fi
3293
3294
3295test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297as_fn_error $? "no acceptable C compiler found in \$PATH
3298See \`config.log' for more details" "$LINENO" 5; }
3299
3300# Provide some information about the compiler.
3301$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3302set X $ac_compile
3303ac_compiler=$2
3304for ac_option in --version -v -V -qversion; do
3305  { { ac_try="$ac_compiler $ac_option >&5"
3306case "(($ac_try" in
3307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308  *) ac_try_echo=$ac_try;;
3309esac
3310eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3311$as_echo "$ac_try_echo"; } >&5
3312  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3313  ac_status=$?
3314  if test -s conftest.err; then
3315    sed '10a\
3316... rest of stderr output deleted ...
3317         10q' conftest.err >conftest.er1
3318    cat conftest.er1 >&5
3319  fi
3320  rm -f conftest.er1 conftest.err
3321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322  test $ac_status = 0; }
3323done
3324
3325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326/* end confdefs.h.  */
3327
3328int
3329main ()
3330{
3331
3332  ;
3333  return 0;
3334}
3335_ACEOF
3336ac_clean_files_save=$ac_clean_files
3337ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3338# Try to create an executable without -o first, disregard a.out.
3339# It will help us diagnose broken compilers, and finding out an intuition
3340# of exeext.
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3342$as_echo_n "checking whether the C compiler works... " >&6; }
3343ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3344
3345# The possible output files:
3346ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3347
3348ac_rmfiles=
3349for ac_file in $ac_files
3350do
3351  case $ac_file in
3352    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3353    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3354  esac
3355done
3356rm -f $ac_rmfiles
3357
3358if { { ac_try="$ac_link_default"
3359case "(($ac_try" in
3360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361  *) ac_try_echo=$ac_try;;
3362esac
3363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364$as_echo "$ac_try_echo"; } >&5
3365  (eval "$ac_link_default") 2>&5
3366  ac_status=$?
3367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368  test $ac_status = 0; }; then :
3369  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3370# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3371# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3372# so that the user can short-circuit this test for compilers unknown to
3373# Autoconf.
3374for ac_file in $ac_files ''
3375do
3376  test -f "$ac_file" || continue
3377  case $ac_file in
3378    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3379	;;
3380    [ab].out )
3381	# We found the default executable, but exeext='' is most
3382	# certainly right.
3383	break;;
3384    *.* )
3385	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3386	then :; else
3387	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3388	fi
3389	# We set ac_cv_exeext here because the later test for it is not
3390	# safe: cross compilers may not add the suffix if given an `-o'
3391	# argument, so we may need to know it at that point already.
3392	# Even if this section looks crufty: it has the advantage of
3393	# actually working.
3394	break;;
3395    * )
3396	break;;
3397  esac
3398done
3399test "$ac_cv_exeext" = no && ac_cv_exeext=
3400
3401else
3402  ac_file=''
3403fi
3404if test -z "$ac_file"; then :
3405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406$as_echo "no" >&6; }
3407$as_echo "$as_me: failed program was:" >&5
3408sed 's/^/| /' conftest.$ac_ext >&5
3409
3410{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412as_fn_error 77 "C compiler cannot create executables
3413See \`config.log' for more details" "$LINENO" 5; }
3414else
3415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3416$as_echo "yes" >&6; }
3417fi
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3419$as_echo_n "checking for C compiler default output file name... " >&6; }
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3421$as_echo "$ac_file" >&6; }
3422ac_exeext=$ac_cv_exeext
3423
3424rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3425ac_clean_files=$ac_clean_files_save
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3427$as_echo_n "checking for suffix of executables... " >&6; }
3428if { { ac_try="$ac_link"
3429case "(($ac_try" in
3430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431  *) ac_try_echo=$ac_try;;
3432esac
3433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434$as_echo "$ac_try_echo"; } >&5
3435  (eval "$ac_link") 2>&5
3436  ac_status=$?
3437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438  test $ac_status = 0; }; then :
3439  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3440# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3441# work properly (i.e., refer to `conftest.exe'), while it won't with
3442# `rm'.
3443for ac_file in conftest.exe conftest conftest.*; do
3444  test -f "$ac_file" || continue
3445  case $ac_file in
3446    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3447    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3448	  break;;
3449    * ) break;;
3450  esac
3451done
3452else
3453  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3456See \`config.log' for more details" "$LINENO" 5; }
3457fi
3458rm -f conftest conftest$ac_cv_exeext
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3460$as_echo "$ac_cv_exeext" >&6; }
3461
3462rm -f conftest.$ac_ext
3463EXEEXT=$ac_cv_exeext
3464ac_exeext=$EXEEXT
3465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466/* end confdefs.h.  */
3467#include <stdio.h>
3468int
3469main ()
3470{
3471FILE *f = fopen ("conftest.out", "w");
3472 return ferror (f) || fclose (f) != 0;
3473
3474  ;
3475  return 0;
3476}
3477_ACEOF
3478ac_clean_files="$ac_clean_files conftest.out"
3479# Check that the compiler produces executables we can run.  If not, either
3480# the compiler is broken, or we cross compile.
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3482$as_echo_n "checking whether we are cross compiling... " >&6; }
3483if test "$cross_compiling" != yes; then
3484  { { ac_try="$ac_link"
3485case "(($ac_try" in
3486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487  *) ac_try_echo=$ac_try;;
3488esac
3489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3490$as_echo "$ac_try_echo"; } >&5
3491  (eval "$ac_link") 2>&5
3492  ac_status=$?
3493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3494  test $ac_status = 0; }
3495  if { ac_try='./conftest$ac_cv_exeext'
3496  { { case "(($ac_try" in
3497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498  *) ac_try_echo=$ac_try;;
3499esac
3500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501$as_echo "$ac_try_echo"; } >&5
3502  (eval "$ac_try") 2>&5
3503  ac_status=$?
3504  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505  test $ac_status = 0; }; }; then
3506    cross_compiling=no
3507  else
3508    if test "$cross_compiling" = maybe; then
3509	cross_compiling=yes
3510    else
3511	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513as_fn_error $? "cannot run C compiled programs.
3514If you meant to cross compile, use \`--host'.
3515See \`config.log' for more details" "$LINENO" 5; }
3516    fi
3517  fi
3518fi
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3520$as_echo "$cross_compiling" >&6; }
3521
3522rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3523ac_clean_files=$ac_clean_files_save
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3525$as_echo_n "checking for suffix of object files... " >&6; }
3526if test "${ac_cv_objext+set}" = set; then :
3527  $as_echo_n "(cached) " >&6
3528else
3529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530/* end confdefs.h.  */
3531
3532int
3533main ()
3534{
3535
3536  ;
3537  return 0;
3538}
3539_ACEOF
3540rm -f conftest.o conftest.obj
3541if { { ac_try="$ac_compile"
3542case "(($ac_try" in
3543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544  *) ac_try_echo=$ac_try;;
3545esac
3546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547$as_echo "$ac_try_echo"; } >&5
3548  (eval "$ac_compile") 2>&5
3549  ac_status=$?
3550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3551  test $ac_status = 0; }; then :
3552  for ac_file in conftest.o conftest.obj conftest.*; do
3553  test -f "$ac_file" || continue;
3554  case $ac_file in
3555    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3556    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3557       break;;
3558  esac
3559done
3560else
3561  $as_echo "$as_me: failed program was:" >&5
3562sed 's/^/| /' conftest.$ac_ext >&5
3563
3564{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566as_fn_error $? "cannot compute suffix of object files: cannot compile
3567See \`config.log' for more details" "$LINENO" 5; }
3568fi
3569rm -f conftest.$ac_cv_objext conftest.$ac_ext
3570fi
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3572$as_echo "$ac_cv_objext" >&6; }
3573OBJEXT=$ac_cv_objext
3574ac_objext=$OBJEXT
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3576$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3577if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3578  $as_echo_n "(cached) " >&6
3579else
3580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581/* end confdefs.h.  */
3582
3583int
3584main ()
3585{
3586#ifndef __GNUC__
3587       choke me
3588#endif
3589
3590  ;
3591  return 0;
3592}
3593_ACEOF
3594if ac_fn_c_try_compile "$LINENO"; then :
3595  ac_compiler_gnu=yes
3596else
3597  ac_compiler_gnu=no
3598fi
3599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600ac_cv_c_compiler_gnu=$ac_compiler_gnu
3601
3602fi
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3604$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3605if test $ac_compiler_gnu = yes; then
3606  GCC=yes
3607else
3608  GCC=
3609fi
3610ac_test_CFLAGS=${CFLAGS+set}
3611ac_save_CFLAGS=$CFLAGS
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3613$as_echo_n "checking whether $CC accepts -g... " >&6; }
3614if test "${ac_cv_prog_cc_g+set}" = set; then :
3615  $as_echo_n "(cached) " >&6
3616else
3617  ac_save_c_werror_flag=$ac_c_werror_flag
3618   ac_c_werror_flag=yes
3619   ac_cv_prog_cc_g=no
3620   CFLAGS="-g"
3621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622/* end confdefs.h.  */
3623
3624int
3625main ()
3626{
3627
3628  ;
3629  return 0;
3630}
3631_ACEOF
3632if ac_fn_c_try_compile "$LINENO"; then :
3633  ac_cv_prog_cc_g=yes
3634else
3635  CFLAGS=""
3636      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637/* end confdefs.h.  */
3638
3639int
3640main ()
3641{
3642
3643  ;
3644  return 0;
3645}
3646_ACEOF
3647if ac_fn_c_try_compile "$LINENO"; then :
3648
3649else
3650  ac_c_werror_flag=$ac_save_c_werror_flag
3651	 CFLAGS="-g"
3652	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653/* end confdefs.h.  */
3654
3655int
3656main ()
3657{
3658
3659  ;
3660  return 0;
3661}
3662_ACEOF
3663if ac_fn_c_try_compile "$LINENO"; then :
3664  ac_cv_prog_cc_g=yes
3665fi
3666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667fi
3668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669fi
3670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671   ac_c_werror_flag=$ac_save_c_werror_flag
3672fi
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3674$as_echo "$ac_cv_prog_cc_g" >&6; }
3675if test "$ac_test_CFLAGS" = set; then
3676  CFLAGS=$ac_save_CFLAGS
3677elif test $ac_cv_prog_cc_g = yes; then
3678  if test "$GCC" = yes; then
3679    CFLAGS="-g -O2"
3680  else
3681    CFLAGS="-g"
3682  fi
3683else
3684  if test "$GCC" = yes; then
3685    CFLAGS="-O2"
3686  else
3687    CFLAGS=
3688  fi
3689fi
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3691$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3692if test "${ac_cv_prog_cc_c89+set}" = set; then :
3693  $as_echo_n "(cached) " >&6
3694else
3695  ac_cv_prog_cc_c89=no
3696ac_save_CC=$CC
3697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698/* end confdefs.h.  */
3699#include <stdarg.h>
3700#include <stdio.h>
3701#include <sys/types.h>
3702#include <sys/stat.h>
3703/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3704struct buf { int x; };
3705FILE * (*rcsopen) (struct buf *, struct stat *, int);
3706static char *e (p, i)
3707     char **p;
3708     int i;
3709{
3710  return p[i];
3711}
3712static char *f (char * (*g) (char **, int), char **p, ...)
3713{
3714  char *s;
3715  va_list v;
3716  va_start (v,p);
3717  s = g (p, va_arg (v,int));
3718  va_end (v);
3719  return s;
3720}
3721
3722/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3723   function prototypes and stuff, but not '\xHH' hex character constants.
3724   These don't provoke an error unfortunately, instead are silently treated
3725   as 'x'.  The following induces an error, until -std is added to get
3726   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3727   array size at least.  It's necessary to write '\x00'==0 to get something
3728   that's true only with -std.  */
3729int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3730
3731/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3732   inside strings and character constants.  */
3733#define FOO(x) 'x'
3734int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3735
3736int test (int i, double x);
3737struct s1 {int (*f) (int a);};
3738struct s2 {int (*f) (double a);};
3739int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3740int argc;
3741char **argv;
3742int
3743main ()
3744{
3745return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3746  ;
3747  return 0;
3748}
3749_ACEOF
3750for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3751	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3752do
3753  CC="$ac_save_CC $ac_arg"
3754  if ac_fn_c_try_compile "$LINENO"; then :
3755  ac_cv_prog_cc_c89=$ac_arg
3756fi
3757rm -f core conftest.err conftest.$ac_objext
3758  test "x$ac_cv_prog_cc_c89" != "xno" && break
3759done
3760rm -f conftest.$ac_ext
3761CC=$ac_save_CC
3762
3763fi
3764# AC_CACHE_VAL
3765case "x$ac_cv_prog_cc_c89" in
3766  x)
3767    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3768$as_echo "none needed" >&6; } ;;
3769  xno)
3770    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3771$as_echo "unsupported" >&6; } ;;
3772  *)
3773    CC="$CC $ac_cv_prog_cc_c89"
3774    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3775$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3776esac
3777if test "x$ac_cv_prog_cc_c89" != xno; then :
3778
3779fi
3780
3781ac_ext=c
3782ac_cpp='$CPP $CPPFLAGS'
3783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785ac_compiler_gnu=$ac_cv_c_compiler_gnu
3786
3787depcc="$CC"   am_compiler_list=
3788
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3790$as_echo_n "checking dependency style of $depcc... " >&6; }
3791if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3792  $as_echo_n "(cached) " >&6
3793else
3794  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3795  # We make a subdir and do the tests there.  Otherwise we can end up
3796  # making bogus files that we don't know about and never remove.  For
3797  # instance it was reported that on HP-UX the gcc test will end up
3798  # making a dummy file named `D' -- because `-MD' means `put the output
3799  # in D'.
3800  mkdir conftest.dir
3801  # Copy depcomp to subdir because otherwise we won't find it if we're
3802  # using a relative directory.
3803  cp "$am_depcomp" conftest.dir
3804  cd conftest.dir
3805  # We will build objects and dependencies in a subdirectory because
3806  # it helps to detect inapplicable dependency modes.  For instance
3807  # both Tru64's cc and ICC support -MD to output dependencies as a
3808  # side effect of compilation, but ICC will put the dependencies in
3809  # the current directory while Tru64 will put them in the object
3810  # directory.
3811  mkdir sub
3812
3813  am_cv_CC_dependencies_compiler_type=none
3814  if test "$am_compiler_list" = ""; then
3815     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3816  fi
3817  am__universal=false
3818  case " $depcc " in #(
3819     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3820     esac
3821
3822  for depmode in $am_compiler_list; do
3823    # Setup a source with many dependencies, because some compilers
3824    # like to wrap large dependency lists on column 80 (with \), and
3825    # we should not choose a depcomp mode which is confused by this.
3826    #
3827    # We need to recreate these files for each test, as the compiler may
3828    # overwrite some of them when testing with obscure command lines.
3829    # This happens at least with the AIX C compiler.
3830    : > sub/conftest.c
3831    for i in 1 2 3 4 5 6; do
3832      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3833      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3834      # Solaris 8's {/usr,}/bin/sh.
3835      touch sub/conftst$i.h
3836    done
3837    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3838
3839    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3840    # mode.  It turns out that the SunPro C++ compiler does not properly
3841    # handle `-M -o', and we need to detect this.  Also, some Intel
3842    # versions had trouble with output in subdirs
3843    am__obj=sub/conftest.${OBJEXT-o}
3844    am__minus_obj="-o $am__obj"
3845    case $depmode in
3846    gcc)
3847      # This depmode causes a compiler race in universal mode.
3848      test "$am__universal" = false || continue
3849      ;;
3850    nosideeffect)
3851      # after this tag, mechanisms are not by side-effect, so they'll
3852      # only be used when explicitly requested
3853      if test "x$enable_dependency_tracking" = xyes; then
3854	continue
3855      else
3856	break
3857      fi
3858      ;;
3859    msvisualcpp | msvcmsys)
3860      # This compiler won't grok `-c -o', but also, the minuso test has
3861      # not run yet.  These depmodes are late enough in the game, and
3862      # so weak that their functioning should not be impacted.
3863      am__obj=conftest.${OBJEXT-o}
3864      am__minus_obj=
3865      ;;
3866    none) break ;;
3867    esac
3868    if depmode=$depmode \
3869       source=sub/conftest.c object=$am__obj \
3870       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3871       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3872         >/dev/null 2>conftest.err &&
3873       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3874       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3875       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3876       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3877      # icc doesn't choke on unknown options, it will just issue warnings
3878      # or remarks (even with -Werror).  So we grep stderr for any message
3879      # that says an option was ignored or not supported.
3880      # When given -MP, icc 7.0 and 7.1 complain thusly:
3881      #   icc: Command line warning: ignoring option '-M'; no argument required
3882      # The diagnosis changed in icc 8.0:
3883      #   icc: Command line remark: option '-MP' not supported
3884      if (grep 'ignoring option' conftest.err ||
3885          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3886        am_cv_CC_dependencies_compiler_type=$depmode
3887        break
3888      fi
3889    fi
3890  done
3891
3892  cd ..
3893  rm -rf conftest.dir
3894else
3895  am_cv_CC_dependencies_compiler_type=none
3896fi
3897
3898fi
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3900$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3901CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3902
3903 if
3904  test "x$enable_dependency_tracking" != xno \
3905  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3906  am__fastdepCC_TRUE=
3907  am__fastdepCC_FALSE='#'
3908else
3909  am__fastdepCC_TRUE='#'
3910  am__fastdepCC_FALSE=
3911fi
3912
3913
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3915$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3916if test "${ac_cv_path_SED+set}" = set; then :
3917  $as_echo_n "(cached) " >&6
3918else
3919            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3920     for ac_i in 1 2 3 4 5 6 7; do
3921       ac_script="$ac_script$as_nl$ac_script"
3922     done
3923     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3924     { ac_script=; unset ac_script;}
3925     if test -z "$SED"; then
3926  ac_path_SED_found=false
3927  # Loop through the user's path and test for each of PROGNAME-LIST
3928  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929for as_dir in $PATH
3930do
3931  IFS=$as_save_IFS
3932  test -z "$as_dir" && as_dir=.
3933    for ac_prog in sed gsed; do
3934    for ac_exec_ext in '' $ac_executable_extensions; do
3935      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3936      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3937# Check for GNU ac_path_SED and select it if it is found.
3938  # Check for GNU $ac_path_SED
3939case `"$ac_path_SED" --version 2>&1` in
3940*GNU*)
3941  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3942*)
3943  ac_count=0
3944  $as_echo_n 0123456789 >"conftest.in"
3945  while :
3946  do
3947    cat "conftest.in" "conftest.in" >"conftest.tmp"
3948    mv "conftest.tmp" "conftest.in"
3949    cp "conftest.in" "conftest.nl"
3950    $as_echo '' >> "conftest.nl"
3951    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3952    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3953    as_fn_arith $ac_count + 1 && ac_count=$as_val
3954    if test $ac_count -gt ${ac_path_SED_max-0}; then
3955      # Best one so far, save it but keep looking for a better one
3956      ac_cv_path_SED="$ac_path_SED"
3957      ac_path_SED_max=$ac_count
3958    fi
3959    # 10*(2^10) chars as input seems more than enough
3960    test $ac_count -gt 10 && break
3961  done
3962  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3963esac
3964
3965      $ac_path_SED_found && break 3
3966    done
3967  done
3968  done
3969IFS=$as_save_IFS
3970  if test -z "$ac_cv_path_SED"; then
3971    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3972  fi
3973else
3974  ac_cv_path_SED=$SED
3975fi
3976
3977fi
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3979$as_echo "$ac_cv_path_SED" >&6; }
3980 SED="$ac_cv_path_SED"
3981  rm -f conftest.sed
3982
3983test -z "$SED" && SED=sed
3984Xsed="$SED -e 1s/^X//"
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3997$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3998if test "${ac_cv_path_GREP+set}" = set; then :
3999  $as_echo_n "(cached) " >&6
4000else
4001  if test -z "$GREP"; then
4002  ac_path_GREP_found=false
4003  # Loop through the user's path and test for each of PROGNAME-LIST
4004  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4006do
4007  IFS=$as_save_IFS
4008  test -z "$as_dir" && as_dir=.
4009    for ac_prog in grep ggrep; do
4010    for ac_exec_ext in '' $ac_executable_extensions; do
4011      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4012      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4013# Check for GNU ac_path_GREP and select it if it is found.
4014  # Check for GNU $ac_path_GREP
4015case `"$ac_path_GREP" --version 2>&1` in
4016*GNU*)
4017  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4018*)
4019  ac_count=0
4020  $as_echo_n 0123456789 >"conftest.in"
4021  while :
4022  do
4023    cat "conftest.in" "conftest.in" >"conftest.tmp"
4024    mv "conftest.tmp" "conftest.in"
4025    cp "conftest.in" "conftest.nl"
4026    $as_echo 'GREP' >> "conftest.nl"
4027    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4028    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4029    as_fn_arith $ac_count + 1 && ac_count=$as_val
4030    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4031      # Best one so far, save it but keep looking for a better one
4032      ac_cv_path_GREP="$ac_path_GREP"
4033      ac_path_GREP_max=$ac_count
4034    fi
4035    # 10*(2^10) chars as input seems more than enough
4036    test $ac_count -gt 10 && break
4037  done
4038  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4039esac
4040
4041      $ac_path_GREP_found && break 3
4042    done
4043  done
4044  done
4045IFS=$as_save_IFS
4046  if test -z "$ac_cv_path_GREP"; then
4047    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4048  fi
4049else
4050  ac_cv_path_GREP=$GREP
4051fi
4052
4053fi
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4055$as_echo "$ac_cv_path_GREP" >&6; }
4056 GREP="$ac_cv_path_GREP"
4057
4058
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4060$as_echo_n "checking for egrep... " >&6; }
4061if test "${ac_cv_path_EGREP+set}" = set; then :
4062  $as_echo_n "(cached) " >&6
4063else
4064  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4065   then ac_cv_path_EGREP="$GREP -E"
4066   else
4067     if test -z "$EGREP"; then
4068  ac_path_EGREP_found=false
4069  # Loop through the user's path and test for each of PROGNAME-LIST
4070  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4072do
4073  IFS=$as_save_IFS
4074  test -z "$as_dir" && as_dir=.
4075    for ac_prog in egrep; do
4076    for ac_exec_ext in '' $ac_executable_extensions; do
4077      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4078      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4079# Check for GNU ac_path_EGREP and select it if it is found.
4080  # Check for GNU $ac_path_EGREP
4081case `"$ac_path_EGREP" --version 2>&1` in
4082*GNU*)
4083  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4084*)
4085  ac_count=0
4086  $as_echo_n 0123456789 >"conftest.in"
4087  while :
4088  do
4089    cat "conftest.in" "conftest.in" >"conftest.tmp"
4090    mv "conftest.tmp" "conftest.in"
4091    cp "conftest.in" "conftest.nl"
4092    $as_echo 'EGREP' >> "conftest.nl"
4093    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4094    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4095    as_fn_arith $ac_count + 1 && ac_count=$as_val
4096    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4097      # Best one so far, save it but keep looking for a better one
4098      ac_cv_path_EGREP="$ac_path_EGREP"
4099      ac_path_EGREP_max=$ac_count
4100    fi
4101    # 10*(2^10) chars as input seems more than enough
4102    test $ac_count -gt 10 && break
4103  done
4104  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4105esac
4106
4107      $ac_path_EGREP_found && break 3
4108    done
4109  done
4110  done
4111IFS=$as_save_IFS
4112  if test -z "$ac_cv_path_EGREP"; then
4113    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4114  fi
4115else
4116  ac_cv_path_EGREP=$EGREP
4117fi
4118
4119   fi
4120fi
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4122$as_echo "$ac_cv_path_EGREP" >&6; }
4123 EGREP="$ac_cv_path_EGREP"
4124
4125
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4127$as_echo_n "checking for fgrep... " >&6; }
4128if test "${ac_cv_path_FGREP+set}" = set; then :
4129  $as_echo_n "(cached) " >&6
4130else
4131  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4132   then ac_cv_path_FGREP="$GREP -F"
4133   else
4134     if test -z "$FGREP"; then
4135  ac_path_FGREP_found=false
4136  # Loop through the user's path and test for each of PROGNAME-LIST
4137  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4139do
4140  IFS=$as_save_IFS
4141  test -z "$as_dir" && as_dir=.
4142    for ac_prog in fgrep; do
4143    for ac_exec_ext in '' $ac_executable_extensions; do
4144      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4145      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4146# Check for GNU ac_path_FGREP and select it if it is found.
4147  # Check for GNU $ac_path_FGREP
4148case `"$ac_path_FGREP" --version 2>&1` in
4149*GNU*)
4150  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4151*)
4152  ac_count=0
4153  $as_echo_n 0123456789 >"conftest.in"
4154  while :
4155  do
4156    cat "conftest.in" "conftest.in" >"conftest.tmp"
4157    mv "conftest.tmp" "conftest.in"
4158    cp "conftest.in" "conftest.nl"
4159    $as_echo 'FGREP' >> "conftest.nl"
4160    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4161    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4162    as_fn_arith $ac_count + 1 && ac_count=$as_val
4163    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4164      # Best one so far, save it but keep looking for a better one
4165      ac_cv_path_FGREP="$ac_path_FGREP"
4166      ac_path_FGREP_max=$ac_count
4167    fi
4168    # 10*(2^10) chars as input seems more than enough
4169    test $ac_count -gt 10 && break
4170  done
4171  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4172esac
4173
4174      $ac_path_FGREP_found && break 3
4175    done
4176  done
4177  done
4178IFS=$as_save_IFS
4179  if test -z "$ac_cv_path_FGREP"; then
4180    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4181  fi
4182else
4183  ac_cv_path_FGREP=$FGREP
4184fi
4185
4186   fi
4187fi
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4189$as_echo "$ac_cv_path_FGREP" >&6; }
4190 FGREP="$ac_cv_path_FGREP"
4191
4192
4193test -z "$GREP" && GREP=grep
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213# Check whether --with-gnu-ld was given.
4214if test "${with_gnu_ld+set}" = set; then :
4215  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4216else
4217  with_gnu_ld=no
4218fi
4219
4220ac_prog=ld
4221if test "$GCC" = yes; then
4222  # Check if gcc -print-prog-name=ld gives a path.
4223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4224$as_echo_n "checking for ld used by $CC... " >&6; }
4225  case $host in
4226  *-*-mingw*)
4227    # gcc leaves a trailing carriage return which upsets mingw
4228    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4229  *)
4230    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4231  esac
4232  case $ac_prog in
4233    # Accept absolute paths.
4234    [\\/]* | ?:[\\/]*)
4235      re_direlt='/[^/][^/]*/\.\./'
4236      # Canonicalize the pathname of ld
4237      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4238      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4239	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4240      done
4241      test -z "$LD" && LD="$ac_prog"
4242      ;;
4243  "")
4244    # If it fails, then pretend we aren't using GCC.
4245    ac_prog=ld
4246    ;;
4247  *)
4248    # If it is relative, then search for the first ld in PATH.
4249    with_gnu_ld=unknown
4250    ;;
4251  esac
4252elif test "$with_gnu_ld" = yes; then
4253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4254$as_echo_n "checking for GNU ld... " >&6; }
4255else
4256  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4257$as_echo_n "checking for non-GNU ld... " >&6; }
4258fi
4259if test "${lt_cv_path_LD+set}" = set; then :
4260  $as_echo_n "(cached) " >&6
4261else
4262  if test -z "$LD"; then
4263  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4264  for ac_dir in $PATH; do
4265    IFS="$lt_save_ifs"
4266    test -z "$ac_dir" && ac_dir=.
4267    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4268      lt_cv_path_LD="$ac_dir/$ac_prog"
4269      # Check to see if the program is GNU ld.  I'd rather use --version,
4270      # but apparently some variants of GNU ld only accept -v.
4271      # Break only if it was the GNU/non-GNU ld that we prefer.
4272      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4273      *GNU* | *'with BFD'*)
4274	test "$with_gnu_ld" != no && break
4275	;;
4276      *)
4277	test "$with_gnu_ld" != yes && break
4278	;;
4279      esac
4280    fi
4281  done
4282  IFS="$lt_save_ifs"
4283else
4284  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4285fi
4286fi
4287
4288LD="$lt_cv_path_LD"
4289if test -n "$LD"; then
4290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4291$as_echo "$LD" >&6; }
4292else
4293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294$as_echo "no" >&6; }
4295fi
4296test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4298$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4299if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4300  $as_echo_n "(cached) " >&6
4301else
4302  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4303case `$LD -v 2>&1 </dev/null` in
4304*GNU* | *'with BFD'*)
4305  lt_cv_prog_gnu_ld=yes
4306  ;;
4307*)
4308  lt_cv_prog_gnu_ld=no
4309  ;;
4310esac
4311fi
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4313$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4314with_gnu_ld=$lt_cv_prog_gnu_ld
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4325$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4326if test "${lt_cv_path_NM+set}" = set; then :
4327  $as_echo_n "(cached) " >&6
4328else
4329  if test -n "$NM"; then
4330  # Let the user override the test.
4331  lt_cv_path_NM="$NM"
4332else
4333  lt_nm_to_check="${ac_tool_prefix}nm"
4334  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4335    lt_nm_to_check="$lt_nm_to_check nm"
4336  fi
4337  for lt_tmp_nm in $lt_nm_to_check; do
4338    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4339    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4340      IFS="$lt_save_ifs"
4341      test -z "$ac_dir" && ac_dir=.
4342      tmp_nm="$ac_dir/$lt_tmp_nm"
4343      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4344	# Check to see if the nm accepts a BSD-compat flag.
4345	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4346	#   nm: unknown option "B" ignored
4347	# Tru64's nm complains that /dev/null is an invalid object file
4348	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4349	*/dev/null* | *'Invalid file or object type'*)
4350	  lt_cv_path_NM="$tmp_nm -B"
4351	  break
4352	  ;;
4353	*)
4354	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4355	  */dev/null*)
4356	    lt_cv_path_NM="$tmp_nm -p"
4357	    break
4358	    ;;
4359	  *)
4360	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4361	    continue # so that we can try to find one that supports BSD flags
4362	    ;;
4363	  esac
4364	  ;;
4365	esac
4366      fi
4367    done
4368    IFS="$lt_save_ifs"
4369  done
4370  : ${lt_cv_path_NM=no}
4371fi
4372fi
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4374$as_echo "$lt_cv_path_NM" >&6; }
4375if test "$lt_cv_path_NM" != "no"; then
4376  NM="$lt_cv_path_NM"
4377else
4378  # Didn't find any BSD compatible name lister, look for dumpbin.
4379  if test -n "$DUMPBIN"; then :
4380    # Let the user override the test.
4381  else
4382    if test -n "$ac_tool_prefix"; then
4383  for ac_prog in dumpbin "link -dump"
4384  do
4385    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4386set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388$as_echo_n "checking for $ac_word... " >&6; }
4389if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4390  $as_echo_n "(cached) " >&6
4391else
4392  if test -n "$DUMPBIN"; then
4393  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4394else
4395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH
4397do
4398  IFS=$as_save_IFS
4399  test -z "$as_dir" && as_dir=.
4400    for ac_exec_ext in '' $ac_executable_extensions; do
4401  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404    break 2
4405  fi
4406done
4407  done
4408IFS=$as_save_IFS
4409
4410fi
4411fi
4412DUMPBIN=$ac_cv_prog_DUMPBIN
4413if test -n "$DUMPBIN"; then
4414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4415$as_echo "$DUMPBIN" >&6; }
4416else
4417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418$as_echo "no" >&6; }
4419fi
4420
4421
4422    test -n "$DUMPBIN" && break
4423  done
4424fi
4425if test -z "$DUMPBIN"; then
4426  ac_ct_DUMPBIN=$DUMPBIN
4427  for ac_prog in dumpbin "link -dump"
4428do
4429  # Extract the first word of "$ac_prog", so it can be a program name with args.
4430set dummy $ac_prog; ac_word=$2
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432$as_echo_n "checking for $ac_word... " >&6; }
4433if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4434  $as_echo_n "(cached) " >&6
4435else
4436  if test -n "$ac_ct_DUMPBIN"; then
4437  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4438else
4439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440for as_dir in $PATH
4441do
4442  IFS=$as_save_IFS
4443  test -z "$as_dir" && as_dir=.
4444    for ac_exec_ext in '' $ac_executable_extensions; do
4445  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4446    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448    break 2
4449  fi
4450done
4451  done
4452IFS=$as_save_IFS
4453
4454fi
4455fi
4456ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4457if test -n "$ac_ct_DUMPBIN"; then
4458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4459$as_echo "$ac_ct_DUMPBIN" >&6; }
4460else
4461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462$as_echo "no" >&6; }
4463fi
4464
4465
4466  test -n "$ac_ct_DUMPBIN" && break
4467done
4468
4469  if test "x$ac_ct_DUMPBIN" = x; then
4470    DUMPBIN=":"
4471  else
4472    case $cross_compiling:$ac_tool_warned in
4473yes:)
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4476ac_tool_warned=yes ;;
4477esac
4478    DUMPBIN=$ac_ct_DUMPBIN
4479  fi
4480fi
4481
4482    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4483    *COFF*)
4484      DUMPBIN="$DUMPBIN -symbols"
4485      ;;
4486    *)
4487      DUMPBIN=:
4488      ;;
4489    esac
4490  fi
4491
4492  if test "$DUMPBIN" != ":"; then
4493    NM="$DUMPBIN"
4494  fi
4495fi
4496test -z "$NM" && NM=nm
4497
4498
4499
4500
4501
4502
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4504$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4505if test "${lt_cv_nm_interface+set}" = set; then :
4506  $as_echo_n "(cached) " >&6
4507else
4508  lt_cv_nm_interface="BSD nm"
4509  echo "int some_variable = 0;" > conftest.$ac_ext
4510  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4511  (eval "$ac_compile" 2>conftest.err)
4512  cat conftest.err >&5
4513  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4514  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4515  cat conftest.err >&5
4516  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4517  cat conftest.out >&5
4518  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4519    lt_cv_nm_interface="MS dumpbin"
4520  fi
4521  rm -f conftest*
4522fi
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4524$as_echo "$lt_cv_nm_interface" >&6; }
4525
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4527$as_echo_n "checking whether ln -s works... " >&6; }
4528LN_S=$as_ln_s
4529if test "$LN_S" = "ln -s"; then
4530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4531$as_echo "yes" >&6; }
4532else
4533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4534$as_echo "no, using $LN_S" >&6; }
4535fi
4536
4537# find the maximum length of command line arguments
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4539$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4540if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4541  $as_echo_n "(cached) " >&6
4542else
4543    i=0
4544  teststring="ABCD"
4545
4546  case $build_os in
4547  msdosdjgpp*)
4548    # On DJGPP, this test can blow up pretty badly due to problems in libc
4549    # (any single argument exceeding 2000 bytes causes a buffer overrun
4550    # during glob expansion).  Even if it were fixed, the result of this
4551    # check would be larger than it should be.
4552    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4553    ;;
4554
4555  gnu*)
4556    # Under GNU Hurd, this test is not required because there is
4557    # no limit to the length of command line arguments.
4558    # Libtool will interpret -1 as no limit whatsoever
4559    lt_cv_sys_max_cmd_len=-1;
4560    ;;
4561
4562  cygwin* | mingw* | cegcc*)
4563    # On Win9x/ME, this test blows up -- it succeeds, but takes
4564    # about 5 minutes as the teststring grows exponentially.
4565    # Worse, since 9x/ME are not pre-emptively multitasking,
4566    # you end up with a "frozen" computer, even though with patience
4567    # the test eventually succeeds (with a max line length of 256k).
4568    # Instead, let's just punt: use the minimum linelength reported by
4569    # all of the supported platforms: 8192 (on NT/2K/XP).
4570    lt_cv_sys_max_cmd_len=8192;
4571    ;;
4572
4573  mint*)
4574    # On MiNT this can take a long time and run out of memory.
4575    lt_cv_sys_max_cmd_len=8192;
4576    ;;
4577
4578  amigaos*)
4579    # On AmigaOS with pdksh, this test takes hours, literally.
4580    # So we just punt and use a minimum line length of 8192.
4581    lt_cv_sys_max_cmd_len=8192;
4582    ;;
4583
4584  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4585    # This has been around since 386BSD, at least.  Likely further.
4586    if test -x /sbin/sysctl; then
4587      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4588    elif test -x /usr/sbin/sysctl; then
4589      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4590    else
4591      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4592    fi
4593    # And add a safety zone
4594    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4595    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4596    ;;
4597
4598  interix*)
4599    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4600    lt_cv_sys_max_cmd_len=196608
4601    ;;
4602
4603  osf*)
4604    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4605    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4606    # nice to cause kernel panics so lets avoid the loop below.
4607    # First set a reasonable default.
4608    lt_cv_sys_max_cmd_len=16384
4609    #
4610    if test -x /sbin/sysconfig; then
4611      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4612        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4613      esac
4614    fi
4615    ;;
4616  sco3.2v5*)
4617    lt_cv_sys_max_cmd_len=102400
4618    ;;
4619  sysv5* | sco5v6* | sysv4.2uw2*)
4620    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4621    if test -n "$kargmax"; then
4622      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4623    else
4624      lt_cv_sys_max_cmd_len=32768
4625    fi
4626    ;;
4627  *)
4628    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4629    if test -n "$lt_cv_sys_max_cmd_len"; then
4630      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4631      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4632    else
4633      # Make teststring a little bigger before we do anything with it.
4634      # a 1K string should be a reasonable start.
4635      for i in 1 2 3 4 5 6 7 8 ; do
4636        teststring=$teststring$teststring
4637      done
4638      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4639      # If test is not a shell built-in, we'll probably end up computing a
4640      # maximum length that is only half of the actual maximum length, but
4641      # we can't tell.
4642      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4643	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4644	      test $i != 17 # 1/2 MB should be enough
4645      do
4646        i=`expr $i + 1`
4647        teststring=$teststring$teststring
4648      done
4649      # Only check the string length outside the loop.
4650      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4651      teststring=
4652      # Add a significant safety factor because C++ compilers can tack on
4653      # massive amounts of additional arguments before passing them to the
4654      # linker.  It appears as though 1/2 is a usable value.
4655      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4656    fi
4657    ;;
4658  esac
4659
4660fi
4661
4662if test -n $lt_cv_sys_max_cmd_len ; then
4663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4664$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4665else
4666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4667$as_echo "none" >&6; }
4668fi
4669max_cmd_len=$lt_cv_sys_max_cmd_len
4670
4671
4672
4673
4674
4675
4676: ${CP="cp -f"}
4677: ${MV="mv -f"}
4678: ${RM="rm -f"}
4679
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4681$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4682# Try some XSI features
4683xsi_shell=no
4684( _lt_dummy="a/b/c"
4685  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4686      = c,a/b,, \
4687    && eval 'test $(( 1 + 1 )) -eq 2 \
4688    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4689  && xsi_shell=yes
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4691$as_echo "$xsi_shell" >&6; }
4692
4693
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4695$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4696lt_shell_append=no
4697( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4698    >/dev/null 2>&1 \
4699  && lt_shell_append=yes
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4701$as_echo "$lt_shell_append" >&6; }
4702
4703
4704if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4705  lt_unset=unset
4706else
4707  lt_unset=false
4708fi
4709
4710
4711
4712
4713
4714# test EBCDIC or ASCII
4715case `echo X|tr X '\101'` in
4716 A) # ASCII based system
4717    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4718  lt_SP2NL='tr \040 \012'
4719  lt_NL2SP='tr \015\012 \040\040'
4720  ;;
4721 *) # EBCDIC based system
4722  lt_SP2NL='tr \100 \n'
4723  lt_NL2SP='tr \r\n \100\100'
4724  ;;
4725esac
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4736$as_echo_n "checking for $LD option to reload object files... " >&6; }
4737if test "${lt_cv_ld_reload_flag+set}" = set; then :
4738  $as_echo_n "(cached) " >&6
4739else
4740  lt_cv_ld_reload_flag='-r'
4741fi
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4743$as_echo "$lt_cv_ld_reload_flag" >&6; }
4744reload_flag=$lt_cv_ld_reload_flag
4745case $reload_flag in
4746"" | " "*) ;;
4747*) reload_flag=" $reload_flag" ;;
4748esac
4749reload_cmds='$LD$reload_flag -o $output$reload_objs'
4750case $host_os in
4751  darwin*)
4752    if test "$GCC" = yes; then
4753      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4754    else
4755      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4756    fi
4757    ;;
4758esac
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768if test -n "$ac_tool_prefix"; then
4769  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4770set dummy ${ac_tool_prefix}objdump; ac_word=$2
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772$as_echo_n "checking for $ac_word... " >&6; }
4773if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4774  $as_echo_n "(cached) " >&6
4775else
4776  if test -n "$OBJDUMP"; then
4777  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4778else
4779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780for as_dir in $PATH
4781do
4782  IFS=$as_save_IFS
4783  test -z "$as_dir" && as_dir=.
4784    for ac_exec_ext in '' $ac_executable_extensions; do
4785  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788    break 2
4789  fi
4790done
4791  done
4792IFS=$as_save_IFS
4793
4794fi
4795fi
4796OBJDUMP=$ac_cv_prog_OBJDUMP
4797if test -n "$OBJDUMP"; then
4798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4799$as_echo "$OBJDUMP" >&6; }
4800else
4801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802$as_echo "no" >&6; }
4803fi
4804
4805
4806fi
4807if test -z "$ac_cv_prog_OBJDUMP"; then
4808  ac_ct_OBJDUMP=$OBJDUMP
4809  # Extract the first word of "objdump", so it can be a program name with args.
4810set dummy objdump; ac_word=$2
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812$as_echo_n "checking for $ac_word... " >&6; }
4813if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4814  $as_echo_n "(cached) " >&6
4815else
4816  if test -n "$ac_ct_OBJDUMP"; then
4817  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4818else
4819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820for as_dir in $PATH
4821do
4822  IFS=$as_save_IFS
4823  test -z "$as_dir" && as_dir=.
4824    for ac_exec_ext in '' $ac_executable_extensions; do
4825  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828    break 2
4829  fi
4830done
4831  done
4832IFS=$as_save_IFS
4833
4834fi
4835fi
4836ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4837if test -n "$ac_ct_OBJDUMP"; then
4838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4839$as_echo "$ac_ct_OBJDUMP" >&6; }
4840else
4841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842$as_echo "no" >&6; }
4843fi
4844
4845  if test "x$ac_ct_OBJDUMP" = x; then
4846    OBJDUMP="false"
4847  else
4848    case $cross_compiling:$ac_tool_warned in
4849yes:)
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4852ac_tool_warned=yes ;;
4853esac
4854    OBJDUMP=$ac_ct_OBJDUMP
4855  fi
4856else
4857  OBJDUMP="$ac_cv_prog_OBJDUMP"
4858fi
4859
4860test -z "$OBJDUMP" && OBJDUMP=objdump
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4871$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4872if test "${lt_cv_deplibs_check_method+set}" = set; then :
4873  $as_echo_n "(cached) " >&6
4874else
4875  lt_cv_file_magic_cmd='$MAGIC_CMD'
4876lt_cv_file_magic_test_file=
4877lt_cv_deplibs_check_method='unknown'
4878# Need to set the preceding variable on all platforms that support
4879# interlibrary dependencies.
4880# 'none' -- dependencies not supported.
4881# `unknown' -- same as none, but documents that we really don't know.
4882# 'pass_all' -- all dependencies passed with no checks.
4883# 'test_compile' -- check by making test program.
4884# 'file_magic [[regex]]' -- check by looking for files in library path
4885# which responds to the $file_magic_cmd with a given extended regex.
4886# If you have `file' or equivalent on your system and you're not sure
4887# whether `pass_all' will *always* work, you probably want this one.
4888
4889case $host_os in
4890aix[4-9]*)
4891  lt_cv_deplibs_check_method=pass_all
4892  ;;
4893
4894beos*)
4895  lt_cv_deplibs_check_method=pass_all
4896  ;;
4897
4898bsdi[45]*)
4899  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4900  lt_cv_file_magic_cmd='/usr/bin/file -L'
4901  lt_cv_file_magic_test_file=/shlib/libc.so
4902  ;;
4903
4904cygwin*)
4905  # func_win32_libid is a shell function defined in ltmain.sh
4906  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4907  lt_cv_file_magic_cmd='func_win32_libid'
4908  ;;
4909
4910mingw* | pw32*)
4911  # Base MSYS/MinGW do not provide the 'file' command needed by
4912  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4913  # unless we find 'file', for example because we are cross-compiling.
4914  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4915  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4916    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4917    lt_cv_file_magic_cmd='func_win32_libid'
4918  else
4919    # Keep this pattern in sync with the one in func_win32_libid.
4920    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4921    lt_cv_file_magic_cmd='$OBJDUMP -f'
4922  fi
4923  ;;
4924
4925cegcc*)
4926  # use the weaker test based on 'objdump'. See mingw*.
4927  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4928  lt_cv_file_magic_cmd='$OBJDUMP -f'
4929  ;;
4930
4931darwin* | rhapsody*)
4932  lt_cv_deplibs_check_method=pass_all
4933  ;;
4934
4935freebsd* | dragonfly*)
4936  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4937    case $host_cpu in
4938    i*86 )
4939      # Not sure whether the presence of OpenBSD here was a mistake.
4940      # Let's accept both of them until this is cleared up.
4941      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4942      lt_cv_file_magic_cmd=/usr/bin/file
4943      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4944      ;;
4945    esac
4946  else
4947    lt_cv_deplibs_check_method=pass_all
4948  fi
4949  ;;
4950
4951gnu*)
4952  lt_cv_deplibs_check_method=pass_all
4953  ;;
4954
4955haiku*)
4956  lt_cv_deplibs_check_method=pass_all
4957  ;;
4958
4959hpux10.20* | hpux11*)
4960  lt_cv_file_magic_cmd=/usr/bin/file
4961  case $host_cpu in
4962  ia64*)
4963    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4964    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4965    ;;
4966  hppa*64*)
4967    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]'
4968    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4969    ;;
4970  *)
4971    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4972    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4973    ;;
4974  esac
4975  ;;
4976
4977interix[3-9]*)
4978  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4979  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4980  ;;
4981
4982irix5* | irix6* | nonstopux*)
4983  case $LD in
4984  *-32|*"-32 ") libmagic=32-bit;;
4985  *-n32|*"-n32 ") libmagic=N32;;
4986  *-64|*"-64 ") libmagic=64-bit;;
4987  *) libmagic=never-match;;
4988  esac
4989  lt_cv_deplibs_check_method=pass_all
4990  ;;
4991
4992# This must be Linux ELF.
4993linux* | k*bsd*-gnu | kopensolaris*-gnu)
4994  lt_cv_deplibs_check_method=pass_all
4995  ;;
4996
4997netbsd*)
4998  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4999    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5000  else
5001    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5002  fi
5003  ;;
5004
5005newos6*)
5006  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5007  lt_cv_file_magic_cmd=/usr/bin/file
5008  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5009  ;;
5010
5011*nto* | *qnx*)
5012  lt_cv_deplibs_check_method=pass_all
5013  ;;
5014
5015openbsd*)
5016  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5017    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5018  else
5019    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5020  fi
5021  ;;
5022
5023osf3* | osf4* | osf5*)
5024  lt_cv_deplibs_check_method=pass_all
5025  ;;
5026
5027rdos*)
5028  lt_cv_deplibs_check_method=pass_all
5029  ;;
5030
5031solaris*)
5032  lt_cv_deplibs_check_method=pass_all
5033  ;;
5034
5035sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5036  lt_cv_deplibs_check_method=pass_all
5037  ;;
5038
5039sysv4 | sysv4.3*)
5040  case $host_vendor in
5041  motorola)
5042    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]'
5043    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5044    ;;
5045  ncr)
5046    lt_cv_deplibs_check_method=pass_all
5047    ;;
5048  sequent)
5049    lt_cv_file_magic_cmd='/bin/file'
5050    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5051    ;;
5052  sni)
5053    lt_cv_file_magic_cmd='/bin/file'
5054    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5055    lt_cv_file_magic_test_file=/lib/libc.so
5056    ;;
5057  siemens)
5058    lt_cv_deplibs_check_method=pass_all
5059    ;;
5060  pc)
5061    lt_cv_deplibs_check_method=pass_all
5062    ;;
5063  esac
5064  ;;
5065
5066tpf*)
5067  lt_cv_deplibs_check_method=pass_all
5068  ;;
5069esac
5070
5071fi
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5073$as_echo "$lt_cv_deplibs_check_method" >&6; }
5074file_magic_cmd=$lt_cv_file_magic_cmd
5075deplibs_check_method=$lt_cv_deplibs_check_method
5076test -z "$deplibs_check_method" && deplibs_check_method=unknown
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089if test -n "$ac_tool_prefix"; then
5090  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5091set dummy ${ac_tool_prefix}ar; ac_word=$2
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093$as_echo_n "checking for $ac_word... " >&6; }
5094if test "${ac_cv_prog_AR+set}" = set; then :
5095  $as_echo_n "(cached) " >&6
5096else
5097  if test -n "$AR"; then
5098  ac_cv_prog_AR="$AR" # Let the user override the test.
5099else
5100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101for as_dir in $PATH
5102do
5103  IFS=$as_save_IFS
5104  test -z "$as_dir" && as_dir=.
5105    for ac_exec_ext in '' $ac_executable_extensions; do
5106  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107    ac_cv_prog_AR="${ac_tool_prefix}ar"
5108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109    break 2
5110  fi
5111done
5112  done
5113IFS=$as_save_IFS
5114
5115fi
5116fi
5117AR=$ac_cv_prog_AR
5118if test -n "$AR"; then
5119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5120$as_echo "$AR" >&6; }
5121else
5122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123$as_echo "no" >&6; }
5124fi
5125
5126
5127fi
5128if test -z "$ac_cv_prog_AR"; then
5129  ac_ct_AR=$AR
5130  # Extract the first word of "ar", so it can be a program name with args.
5131set dummy ar; 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 test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5135  $as_echo_n "(cached) " >&6
5136else
5137  if test -n "$ac_ct_AR"; then
5138  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5147    ac_cv_prog_ac_ct_AR="ar"
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
5157ac_ct_AR=$ac_cv_prog_ac_ct_AR
5158if test -n "$ac_ct_AR"; then
5159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5160$as_echo "$ac_ct_AR" >&6; }
5161else
5162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163$as_echo "no" >&6; }
5164fi
5165
5166  if test "x$ac_ct_AR" = x; then
5167    AR="false"
5168  else
5169    case $cross_compiling:$ac_tool_warned in
5170yes:)
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5173ac_tool_warned=yes ;;
5174esac
5175    AR=$ac_ct_AR
5176  fi
5177else
5178  AR="$ac_cv_prog_AR"
5179fi
5180
5181test -z "$AR" && AR=ar
5182test -z "$AR_FLAGS" && AR_FLAGS=cru
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194if test -n "$ac_tool_prefix"; then
5195  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5196set dummy ${ac_tool_prefix}strip; ac_word=$2
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198$as_echo_n "checking for $ac_word... " >&6; }
5199if test "${ac_cv_prog_STRIP+set}" = set; then :
5200  $as_echo_n "(cached) " >&6
5201else
5202  if test -n "$STRIP"; then
5203  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5204else
5205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206for as_dir in $PATH
5207do
5208  IFS=$as_save_IFS
5209  test -z "$as_dir" && as_dir=.
5210    for ac_exec_ext in '' $ac_executable_extensions; do
5211  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214    break 2
5215  fi
5216done
5217  done
5218IFS=$as_save_IFS
5219
5220fi
5221fi
5222STRIP=$ac_cv_prog_STRIP
5223if test -n "$STRIP"; then
5224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5225$as_echo "$STRIP" >&6; }
5226else
5227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228$as_echo "no" >&6; }
5229fi
5230
5231
5232fi
5233if test -z "$ac_cv_prog_STRIP"; then
5234  ac_ct_STRIP=$STRIP
5235  # Extract the first word of "strip", so it can be a program name with args.
5236set dummy strip; ac_word=$2
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238$as_echo_n "checking for $ac_word... " >&6; }
5239if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5240  $as_echo_n "(cached) " >&6
5241else
5242  if test -n "$ac_ct_STRIP"; then
5243  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5244else
5245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246for as_dir in $PATH
5247do
5248  IFS=$as_save_IFS
5249  test -z "$as_dir" && as_dir=.
5250    for ac_exec_ext in '' $ac_executable_extensions; do
5251  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5252    ac_cv_prog_ac_ct_STRIP="strip"
5253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254    break 2
5255  fi
5256done
5257  done
5258IFS=$as_save_IFS
5259
5260fi
5261fi
5262ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5263if test -n "$ac_ct_STRIP"; then
5264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5265$as_echo "$ac_ct_STRIP" >&6; }
5266else
5267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268$as_echo "no" >&6; }
5269fi
5270
5271  if test "x$ac_ct_STRIP" = x; then
5272    STRIP=":"
5273  else
5274    case $cross_compiling:$ac_tool_warned in
5275yes:)
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5278ac_tool_warned=yes ;;
5279esac
5280    STRIP=$ac_ct_STRIP
5281  fi
5282else
5283  STRIP="$ac_cv_prog_STRIP"
5284fi
5285
5286test -z "$STRIP" && STRIP=:
5287
5288
5289
5290
5291
5292
5293if test -n "$ac_tool_prefix"; then
5294  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5295set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297$as_echo_n "checking for $ac_word... " >&6; }
5298if test "${ac_cv_prog_RANLIB+set}" = set; then :
5299  $as_echo_n "(cached) " >&6
5300else
5301  if test -n "$RANLIB"; then
5302  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5303else
5304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305for as_dir in $PATH
5306do
5307  IFS=$as_save_IFS
5308  test -z "$as_dir" && as_dir=.
5309    for ac_exec_ext in '' $ac_executable_extensions; do
5310  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313    break 2
5314  fi
5315done
5316  done
5317IFS=$as_save_IFS
5318
5319fi
5320fi
5321RANLIB=$ac_cv_prog_RANLIB
5322if test -n "$RANLIB"; then
5323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5324$as_echo "$RANLIB" >&6; }
5325else
5326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327$as_echo "no" >&6; }
5328fi
5329
5330
5331fi
5332if test -z "$ac_cv_prog_RANLIB"; then
5333  ac_ct_RANLIB=$RANLIB
5334  # Extract the first word of "ranlib", so it can be a program name with args.
5335set dummy ranlib; ac_word=$2
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337$as_echo_n "checking for $ac_word... " >&6; }
5338if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5339  $as_echo_n "(cached) " >&6
5340else
5341  if test -n "$ac_ct_RANLIB"; then
5342  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5343else
5344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345for as_dir in $PATH
5346do
5347  IFS=$as_save_IFS
5348  test -z "$as_dir" && as_dir=.
5349    for ac_exec_ext in '' $ac_executable_extensions; do
5350  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351    ac_cv_prog_ac_ct_RANLIB="ranlib"
5352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353    break 2
5354  fi
5355done
5356  done
5357IFS=$as_save_IFS
5358
5359fi
5360fi
5361ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5362if test -n "$ac_ct_RANLIB"; then
5363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5364$as_echo "$ac_ct_RANLIB" >&6; }
5365else
5366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367$as_echo "no" >&6; }
5368fi
5369
5370  if test "x$ac_ct_RANLIB" = x; then
5371    RANLIB=":"
5372  else
5373    case $cross_compiling:$ac_tool_warned in
5374yes:)
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5377ac_tool_warned=yes ;;
5378esac
5379    RANLIB=$ac_ct_RANLIB
5380  fi
5381else
5382  RANLIB="$ac_cv_prog_RANLIB"
5383fi
5384
5385test -z "$RANLIB" && RANLIB=:
5386
5387
5388
5389
5390
5391
5392# Determine commands to create old-style static archives.
5393old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5394old_postinstall_cmds='chmod 644 $oldlib'
5395old_postuninstall_cmds=
5396
5397if test -n "$RANLIB"; then
5398  case $host_os in
5399  openbsd*)
5400    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5401    ;;
5402  *)
5403    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5404    ;;
5405  esac
5406  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5407fi
5408
5409case $host_os in
5410  darwin*)
5411    lock_old_archive_extraction=yes ;;
5412  *)
5413    lock_old_archive_extraction=no ;;
5414esac
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454# If no C compiler was specified, use CC.
5455LTCC=${LTCC-"$CC"}
5456
5457# If no C compiler flags were specified, use CFLAGS.
5458LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5459
5460# Allow CC to be a program name with arguments.
5461compiler=$CC
5462
5463
5464# Check for command to grab the raw symbol name followed by C symbol from nm.
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5466$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5467if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5468  $as_echo_n "(cached) " >&6
5469else
5470
5471# These are sane defaults that work on at least a few old systems.
5472# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5473
5474# Character class describing NM global symbol codes.
5475symcode='[BCDEGRST]'
5476
5477# Regexp to match symbols that can be accessed directly from C.
5478sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5479
5480# Define system-specific variables.
5481case $host_os in
5482aix*)
5483  symcode='[BCDT]'
5484  ;;
5485cygwin* | mingw* | pw32* | cegcc*)
5486  symcode='[ABCDGISTW]'
5487  ;;
5488hpux*)
5489  if test "$host_cpu" = ia64; then
5490    symcode='[ABCDEGRST]'
5491  fi
5492  ;;
5493irix* | nonstopux*)
5494  symcode='[BCDEGRST]'
5495  ;;
5496osf*)
5497  symcode='[BCDEGQRST]'
5498  ;;
5499solaris*)
5500  symcode='[BDRT]'
5501  ;;
5502sco3.2v5*)
5503  symcode='[DT]'
5504  ;;
5505sysv4.2uw2*)
5506  symcode='[DT]'
5507  ;;
5508sysv5* | sco5v6* | unixware* | OpenUNIX*)
5509  symcode='[ABDT]'
5510  ;;
5511sysv4)
5512  symcode='[DFNSTU]'
5513  ;;
5514esac
5515
5516# If we're using GNU nm, then use its standard symbol codes.
5517case `$NM -V 2>&1` in
5518*GNU* | *'with BFD'*)
5519  symcode='[ABCDGIRSTW]' ;;
5520esac
5521
5522# Transform an extracted symbol line into a proper C declaration.
5523# Some systems (esp. on ia64) link data and code symbols differently,
5524# so use this general approach.
5525lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5526
5527# Transform an extracted symbol line into symbol name and symbol address
5528lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5529lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5530
5531# Handle CRLF in mingw tool chain
5532opt_cr=
5533case $build_os in
5534mingw*)
5535  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5536  ;;
5537esac
5538
5539# Try without a prefix underscore, then with it.
5540for ac_symprfx in "" "_"; do
5541
5542  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5543  symxfrm="\\1 $ac_symprfx\\2 \\2"
5544
5545  # Write the raw and C identifiers.
5546  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5547    # Fake it for dumpbin and say T for any non-static function
5548    # and D for any global variable.
5549    # Also find C++ and __fastcall symbols from MSVC++,
5550    # which start with @ or ?.
5551    lt_cv_sys_global_symbol_pipe="$AWK '"\
5552"     {last_section=section; section=\$ 3};"\
5553"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5554"     \$ 0!~/External *\|/{next};"\
5555"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5556"     {if(hide[section]) next};"\
5557"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5558"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5559"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5560"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5561"     ' prfx=^$ac_symprfx"
5562  else
5563    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5564  fi
5565
5566  # Check to see that the pipe works correctly.
5567  pipe_works=no
5568
5569  rm -f conftest*
5570  cat > conftest.$ac_ext <<_LT_EOF
5571#ifdef __cplusplus
5572extern "C" {
5573#endif
5574char nm_test_var;
5575void nm_test_func(void);
5576void nm_test_func(void){}
5577#ifdef __cplusplus
5578}
5579#endif
5580int main(){nm_test_var='a';nm_test_func();return(0);}
5581_LT_EOF
5582
5583  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5584  (eval $ac_compile) 2>&5
5585  ac_status=$?
5586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5587  test $ac_status = 0; }; then
5588    # Now try to grab the symbols.
5589    nlist=conftest.nm
5590    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5591  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5592  ac_status=$?
5593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5594  test $ac_status = 0; } && test -s "$nlist"; then
5595      # Try sorting and uniquifying the output.
5596      if sort "$nlist" | uniq > "$nlist"T; then
5597	mv -f "$nlist"T "$nlist"
5598      else
5599	rm -f "$nlist"T
5600      fi
5601
5602      # Make sure that we snagged all the symbols we need.
5603      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5604	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5605	  cat <<_LT_EOF > conftest.$ac_ext
5606#ifdef __cplusplus
5607extern "C" {
5608#endif
5609
5610_LT_EOF
5611	  # Now generate the symbol file.
5612	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5613
5614	  cat <<_LT_EOF >> conftest.$ac_ext
5615
5616/* The mapping between symbol names and symbols.  */
5617const struct {
5618  const char *name;
5619  void       *address;
5620}
5621lt__PROGRAM__LTX_preloaded_symbols[] =
5622{
5623  { "@PROGRAM@", (void *) 0 },
5624_LT_EOF
5625	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5626	  cat <<\_LT_EOF >> conftest.$ac_ext
5627  {0, (void *) 0}
5628};
5629
5630/* This works around a problem in FreeBSD linker */
5631#ifdef FREEBSD_WORKAROUND
5632static const void *lt_preloaded_setup() {
5633  return lt__PROGRAM__LTX_preloaded_symbols;
5634}
5635#endif
5636
5637#ifdef __cplusplus
5638}
5639#endif
5640_LT_EOF
5641	  # Now try linking the two files.
5642	  mv conftest.$ac_objext conftstm.$ac_objext
5643	  lt_save_LIBS="$LIBS"
5644	  lt_save_CFLAGS="$CFLAGS"
5645	  LIBS="conftstm.$ac_objext"
5646	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5647	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5648  (eval $ac_link) 2>&5
5649  ac_status=$?
5650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5651  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5652	    pipe_works=yes
5653	  fi
5654	  LIBS="$lt_save_LIBS"
5655	  CFLAGS="$lt_save_CFLAGS"
5656	else
5657	  echo "cannot find nm_test_func in $nlist" >&5
5658	fi
5659      else
5660	echo "cannot find nm_test_var in $nlist" >&5
5661      fi
5662    else
5663      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5664    fi
5665  else
5666    echo "$progname: failed program was:" >&5
5667    cat conftest.$ac_ext >&5
5668  fi
5669  rm -rf conftest* conftst*
5670
5671  # Do not use the global_symbol_pipe unless it works.
5672  if test "$pipe_works" = yes; then
5673    break
5674  else
5675    lt_cv_sys_global_symbol_pipe=
5676  fi
5677done
5678
5679fi
5680
5681if test -z "$lt_cv_sys_global_symbol_pipe"; then
5682  lt_cv_sys_global_symbol_to_cdecl=
5683fi
5684if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5686$as_echo "failed" >&6; }
5687else
5688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5689$as_echo "ok" >&6; }
5690fi
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714# Check whether --enable-libtool-lock was given.
5715if test "${enable_libtool_lock+set}" = set; then :
5716  enableval=$enable_libtool_lock;
5717fi
5718
5719test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5720
5721# Some flags need to be propagated to the compiler or linker for good
5722# libtool support.
5723case $host in
5724ia64-*-hpux*)
5725  # Find out which ABI we are using.
5726  echo 'int i;' > conftest.$ac_ext
5727  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5728  (eval $ac_compile) 2>&5
5729  ac_status=$?
5730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5731  test $ac_status = 0; }; then
5732    case `/usr/bin/file conftest.$ac_objext` in
5733      *ELF-32*)
5734	HPUX_IA64_MODE="32"
5735	;;
5736      *ELF-64*)
5737	HPUX_IA64_MODE="64"
5738	;;
5739    esac
5740  fi
5741  rm -rf conftest*
5742  ;;
5743*-*-irix6*)
5744  # Find out which ABI we are using.
5745  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5746  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5747  (eval $ac_compile) 2>&5
5748  ac_status=$?
5749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5750  test $ac_status = 0; }; then
5751    if test "$lt_cv_prog_gnu_ld" = yes; then
5752      case `/usr/bin/file conftest.$ac_objext` in
5753	*32-bit*)
5754	  LD="${LD-ld} -melf32bsmip"
5755	  ;;
5756	*N32*)
5757	  LD="${LD-ld} -melf32bmipn32"
5758	  ;;
5759	*64-bit*)
5760	  LD="${LD-ld} -melf64bmip"
5761	;;
5762      esac
5763    else
5764      case `/usr/bin/file conftest.$ac_objext` in
5765	*32-bit*)
5766	  LD="${LD-ld} -32"
5767	  ;;
5768	*N32*)
5769	  LD="${LD-ld} -n32"
5770	  ;;
5771	*64-bit*)
5772	  LD="${LD-ld} -64"
5773	  ;;
5774      esac
5775    fi
5776  fi
5777  rm -rf conftest*
5778  ;;
5779
5780x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5781s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5782  # Find out which ABI we are using.
5783  echo 'int i;' > conftest.$ac_ext
5784  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5785  (eval $ac_compile) 2>&5
5786  ac_status=$?
5787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5788  test $ac_status = 0; }; then
5789    case `/usr/bin/file conftest.o` in
5790      *32-bit*)
5791	case $host in
5792	  x86_64-*kfreebsd*-gnu)
5793	    LD="${LD-ld} -m elf_i386_fbsd"
5794	    ;;
5795	  x86_64-*linux*)
5796	    LD="${LD-ld} -m elf_i386"
5797	    ;;
5798	  ppc64-*linux*|powerpc64-*linux*)
5799	    LD="${LD-ld} -m elf32ppclinux"
5800	    ;;
5801	  s390x-*linux*)
5802	    LD="${LD-ld} -m elf_s390"
5803	    ;;
5804	  sparc64-*linux*)
5805	    LD="${LD-ld} -m elf32_sparc"
5806	    ;;
5807	esac
5808	;;
5809      *64-bit*)
5810	case $host in
5811	  x86_64-*kfreebsd*-gnu)
5812	    LD="${LD-ld} -m elf_x86_64_fbsd"
5813	    ;;
5814	  x86_64-*linux*)
5815	    LD="${LD-ld} -m elf_x86_64"
5816	    ;;
5817	  ppc*-*linux*|powerpc*-*linux*)
5818	    LD="${LD-ld} -m elf64ppc"
5819	    ;;
5820	  s390*-*linux*|s390*-*tpf*)
5821	    LD="${LD-ld} -m elf64_s390"
5822	    ;;
5823	  sparc*-*linux*)
5824	    LD="${LD-ld} -m elf64_sparc"
5825	    ;;
5826	esac
5827	;;
5828    esac
5829  fi
5830  rm -rf conftest*
5831  ;;
5832
5833*-*-sco3.2v5*)
5834  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5835  SAVE_CFLAGS="$CFLAGS"
5836  CFLAGS="$CFLAGS -belf"
5837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5838$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5839if test "${lt_cv_cc_needs_belf+set}" = set; then :
5840  $as_echo_n "(cached) " >&6
5841else
5842  ac_ext=c
5843ac_cpp='$CPP $CPPFLAGS'
5844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5846ac_compiler_gnu=$ac_cv_c_compiler_gnu
5847
5848     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849/* end confdefs.h.  */
5850
5851int
5852main ()
5853{
5854
5855  ;
5856  return 0;
5857}
5858_ACEOF
5859if ac_fn_c_try_link "$LINENO"; then :
5860  lt_cv_cc_needs_belf=yes
5861else
5862  lt_cv_cc_needs_belf=no
5863fi
5864rm -f core conftest.err conftest.$ac_objext \
5865    conftest$ac_exeext conftest.$ac_ext
5866     ac_ext=c
5867ac_cpp='$CPP $CPPFLAGS'
5868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5870ac_compiler_gnu=$ac_cv_c_compiler_gnu
5871
5872fi
5873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5874$as_echo "$lt_cv_cc_needs_belf" >&6; }
5875  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5876    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5877    CFLAGS="$SAVE_CFLAGS"
5878  fi
5879  ;;
5880sparc*-*solaris*)
5881  # Find out which ABI we are using.
5882  echo 'int i;' > conftest.$ac_ext
5883  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5884  (eval $ac_compile) 2>&5
5885  ac_status=$?
5886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5887  test $ac_status = 0; }; then
5888    case `/usr/bin/file conftest.o` in
5889    *64-bit*)
5890      case $lt_cv_prog_gnu_ld in
5891      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5892      *)
5893	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5894	  LD="${LD-ld} -64"
5895	fi
5896	;;
5897      esac
5898      ;;
5899    esac
5900  fi
5901  rm -rf conftest*
5902  ;;
5903esac
5904
5905need_locks="$enable_libtool_lock"
5906
5907
5908  case $host_os in
5909    rhapsody* | darwin*)
5910    if test -n "$ac_tool_prefix"; then
5911  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5912set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914$as_echo_n "checking for $ac_word... " >&6; }
5915if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5916  $as_echo_n "(cached) " >&6
5917else
5918  if test -n "$DSYMUTIL"; then
5919  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5920else
5921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922for as_dir in $PATH
5923do
5924  IFS=$as_save_IFS
5925  test -z "$as_dir" && as_dir=.
5926    for ac_exec_ext in '' $ac_executable_extensions; do
5927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5928    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930    break 2
5931  fi
5932done
5933  done
5934IFS=$as_save_IFS
5935
5936fi
5937fi
5938DSYMUTIL=$ac_cv_prog_DSYMUTIL
5939if test -n "$DSYMUTIL"; then
5940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5941$as_echo "$DSYMUTIL" >&6; }
5942else
5943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944$as_echo "no" >&6; }
5945fi
5946
5947
5948fi
5949if test -z "$ac_cv_prog_DSYMUTIL"; then
5950  ac_ct_DSYMUTIL=$DSYMUTIL
5951  # Extract the first word of "dsymutil", so it can be a program name with args.
5952set dummy dsymutil; ac_word=$2
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954$as_echo_n "checking for $ac_word... " >&6; }
5955if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5956  $as_echo_n "(cached) " >&6
5957else
5958  if test -n "$ac_ct_DSYMUTIL"; then
5959  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5960else
5961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962for as_dir in $PATH
5963do
5964  IFS=$as_save_IFS
5965  test -z "$as_dir" && as_dir=.
5966    for ac_exec_ext in '' $ac_executable_extensions; do
5967  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5968    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970    break 2
5971  fi
5972done
5973  done
5974IFS=$as_save_IFS
5975
5976fi
5977fi
5978ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5979if test -n "$ac_ct_DSYMUTIL"; then
5980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5981$as_echo "$ac_ct_DSYMUTIL" >&6; }
5982else
5983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984$as_echo "no" >&6; }
5985fi
5986
5987  if test "x$ac_ct_DSYMUTIL" = x; then
5988    DSYMUTIL=":"
5989  else
5990    case $cross_compiling:$ac_tool_warned in
5991yes:)
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5994ac_tool_warned=yes ;;
5995esac
5996    DSYMUTIL=$ac_ct_DSYMUTIL
5997  fi
5998else
5999  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6000fi
6001
6002    if test -n "$ac_tool_prefix"; then
6003  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6004set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006$as_echo_n "checking for $ac_word... " >&6; }
6007if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6008  $as_echo_n "(cached) " >&6
6009else
6010  if test -n "$NMEDIT"; then
6011  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6012else
6013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014for as_dir in $PATH
6015do
6016  IFS=$as_save_IFS
6017  test -z "$as_dir" && as_dir=.
6018    for ac_exec_ext in '' $ac_executable_extensions; do
6019  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022    break 2
6023  fi
6024done
6025  done
6026IFS=$as_save_IFS
6027
6028fi
6029fi
6030NMEDIT=$ac_cv_prog_NMEDIT
6031if test -n "$NMEDIT"; then
6032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6033$as_echo "$NMEDIT" >&6; }
6034else
6035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036$as_echo "no" >&6; }
6037fi
6038
6039
6040fi
6041if test -z "$ac_cv_prog_NMEDIT"; then
6042  ac_ct_NMEDIT=$NMEDIT
6043  # Extract the first word of "nmedit", so it can be a program name with args.
6044set dummy nmedit; ac_word=$2
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046$as_echo_n "checking for $ac_word... " >&6; }
6047if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6048  $as_echo_n "(cached) " >&6
6049else
6050  if test -n "$ac_ct_NMEDIT"; then
6051  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6052else
6053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054for as_dir in $PATH
6055do
6056  IFS=$as_save_IFS
6057  test -z "$as_dir" && as_dir=.
6058    for ac_exec_ext in '' $ac_executable_extensions; do
6059  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062    break 2
6063  fi
6064done
6065  done
6066IFS=$as_save_IFS
6067
6068fi
6069fi
6070ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6071if test -n "$ac_ct_NMEDIT"; then
6072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6073$as_echo "$ac_ct_NMEDIT" >&6; }
6074else
6075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076$as_echo "no" >&6; }
6077fi
6078
6079  if test "x$ac_ct_NMEDIT" = x; then
6080    NMEDIT=":"
6081  else
6082    case $cross_compiling:$ac_tool_warned in
6083yes:)
6084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6086ac_tool_warned=yes ;;
6087esac
6088    NMEDIT=$ac_ct_NMEDIT
6089  fi
6090else
6091  NMEDIT="$ac_cv_prog_NMEDIT"
6092fi
6093
6094    if test -n "$ac_tool_prefix"; then
6095  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6096set dummy ${ac_tool_prefix}lipo; ac_word=$2
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098$as_echo_n "checking for $ac_word... " >&6; }
6099if test "${ac_cv_prog_LIPO+set}" = set; then :
6100  $as_echo_n "(cached) " >&6
6101else
6102  if test -n "$LIPO"; then
6103  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6104else
6105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106for as_dir in $PATH
6107do
6108  IFS=$as_save_IFS
6109  test -z "$as_dir" && as_dir=.
6110    for ac_exec_ext in '' $ac_executable_extensions; do
6111  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6112    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114    break 2
6115  fi
6116done
6117  done
6118IFS=$as_save_IFS
6119
6120fi
6121fi
6122LIPO=$ac_cv_prog_LIPO
6123if test -n "$LIPO"; then
6124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6125$as_echo "$LIPO" >&6; }
6126else
6127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128$as_echo "no" >&6; }
6129fi
6130
6131
6132fi
6133if test -z "$ac_cv_prog_LIPO"; then
6134  ac_ct_LIPO=$LIPO
6135  # Extract the first word of "lipo", so it can be a program name with args.
6136set dummy lipo; ac_word=$2
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6138$as_echo_n "checking for $ac_word... " >&6; }
6139if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6140  $as_echo_n "(cached) " >&6
6141else
6142  if test -n "$ac_ct_LIPO"; then
6143  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6144else
6145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146for as_dir in $PATH
6147do
6148  IFS=$as_save_IFS
6149  test -z "$as_dir" && as_dir=.
6150    for ac_exec_ext in '' $ac_executable_extensions; do
6151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6152    ac_cv_prog_ac_ct_LIPO="lipo"
6153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154    break 2
6155  fi
6156done
6157  done
6158IFS=$as_save_IFS
6159
6160fi
6161fi
6162ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6163if test -n "$ac_ct_LIPO"; then
6164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6165$as_echo "$ac_ct_LIPO" >&6; }
6166else
6167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168$as_echo "no" >&6; }
6169fi
6170
6171  if test "x$ac_ct_LIPO" = x; then
6172    LIPO=":"
6173  else
6174    case $cross_compiling:$ac_tool_warned in
6175yes:)
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6178ac_tool_warned=yes ;;
6179esac
6180    LIPO=$ac_ct_LIPO
6181  fi
6182else
6183  LIPO="$ac_cv_prog_LIPO"
6184fi
6185
6186    if test -n "$ac_tool_prefix"; then
6187  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6188set dummy ${ac_tool_prefix}otool; ac_word=$2
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190$as_echo_n "checking for $ac_word... " >&6; }
6191if test "${ac_cv_prog_OTOOL+set}" = set; then :
6192  $as_echo_n "(cached) " >&6
6193else
6194  if test -n "$OTOOL"; then
6195  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6196else
6197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198for as_dir in $PATH
6199do
6200  IFS=$as_save_IFS
6201  test -z "$as_dir" && as_dir=.
6202    for ac_exec_ext in '' $ac_executable_extensions; do
6203  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6204    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206    break 2
6207  fi
6208done
6209  done
6210IFS=$as_save_IFS
6211
6212fi
6213fi
6214OTOOL=$ac_cv_prog_OTOOL
6215if test -n "$OTOOL"; then
6216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6217$as_echo "$OTOOL" >&6; }
6218else
6219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220$as_echo "no" >&6; }
6221fi
6222
6223
6224fi
6225if test -z "$ac_cv_prog_OTOOL"; then
6226  ac_ct_OTOOL=$OTOOL
6227  # Extract the first word of "otool", so it can be a program name with args.
6228set dummy otool; ac_word=$2
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230$as_echo_n "checking for $ac_word... " >&6; }
6231if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6232  $as_echo_n "(cached) " >&6
6233else
6234  if test -n "$ac_ct_OTOOL"; then
6235  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6236else
6237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238for as_dir in $PATH
6239do
6240  IFS=$as_save_IFS
6241  test -z "$as_dir" && as_dir=.
6242    for ac_exec_ext in '' $ac_executable_extensions; do
6243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6244    ac_cv_prog_ac_ct_OTOOL="otool"
6245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246    break 2
6247  fi
6248done
6249  done
6250IFS=$as_save_IFS
6251
6252fi
6253fi
6254ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6255if test -n "$ac_ct_OTOOL"; then
6256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6257$as_echo "$ac_ct_OTOOL" >&6; }
6258else
6259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260$as_echo "no" >&6; }
6261fi
6262
6263  if test "x$ac_ct_OTOOL" = x; then
6264    OTOOL=":"
6265  else
6266    case $cross_compiling:$ac_tool_warned in
6267yes:)
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6270ac_tool_warned=yes ;;
6271esac
6272    OTOOL=$ac_ct_OTOOL
6273  fi
6274else
6275  OTOOL="$ac_cv_prog_OTOOL"
6276fi
6277
6278    if test -n "$ac_tool_prefix"; then
6279  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6280set dummy ${ac_tool_prefix}otool64; ac_word=$2
6281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6282$as_echo_n "checking for $ac_word... " >&6; }
6283if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6284  $as_echo_n "(cached) " >&6
6285else
6286  if test -n "$OTOOL64"; then
6287  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6288else
6289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290for as_dir in $PATH
6291do
6292  IFS=$as_save_IFS
6293  test -z "$as_dir" && as_dir=.
6294    for ac_exec_ext in '' $ac_executable_extensions; do
6295  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6296    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6297    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6298    break 2
6299  fi
6300done
6301  done
6302IFS=$as_save_IFS
6303
6304fi
6305fi
6306OTOOL64=$ac_cv_prog_OTOOL64
6307if test -n "$OTOOL64"; then
6308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6309$as_echo "$OTOOL64" >&6; }
6310else
6311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312$as_echo "no" >&6; }
6313fi
6314
6315
6316fi
6317if test -z "$ac_cv_prog_OTOOL64"; then
6318  ac_ct_OTOOL64=$OTOOL64
6319  # Extract the first word of "otool64", so it can be a program name with args.
6320set dummy otool64; ac_word=$2
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322$as_echo_n "checking for $ac_word... " >&6; }
6323if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6324  $as_echo_n "(cached) " >&6
6325else
6326  if test -n "$ac_ct_OTOOL64"; then
6327  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6328else
6329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330for as_dir in $PATH
6331do
6332  IFS=$as_save_IFS
6333  test -z "$as_dir" && as_dir=.
6334    for ac_exec_ext in '' $ac_executable_extensions; do
6335  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6336    ac_cv_prog_ac_ct_OTOOL64="otool64"
6337    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6338    break 2
6339  fi
6340done
6341  done
6342IFS=$as_save_IFS
6343
6344fi
6345fi
6346ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6347if test -n "$ac_ct_OTOOL64"; then
6348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6349$as_echo "$ac_ct_OTOOL64" >&6; }
6350else
6351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352$as_echo "no" >&6; }
6353fi
6354
6355  if test "x$ac_ct_OTOOL64" = x; then
6356    OTOOL64=":"
6357  else
6358    case $cross_compiling:$ac_tool_warned in
6359yes:)
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6362ac_tool_warned=yes ;;
6363esac
6364    OTOOL64=$ac_ct_OTOOL64
6365  fi
6366else
6367  OTOOL64="$ac_cv_prog_OTOOL64"
6368fi
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6397$as_echo_n "checking for -single_module linker flag... " >&6; }
6398if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6399  $as_echo_n "(cached) " >&6
6400else
6401  lt_cv_apple_cc_single_mod=no
6402      if test -z "${LT_MULTI_MODULE}"; then
6403	# By default we will add the -single_module flag. You can override
6404	# by either setting the environment variable LT_MULTI_MODULE
6405	# non-empty at configure time, or by adding -multi_module to the
6406	# link flags.
6407	rm -rf libconftest.dylib*
6408	echo "int foo(void){return 1;}" > conftest.c
6409	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6410-dynamiclib -Wl,-single_module conftest.c" >&5
6411	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6412	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6413        _lt_result=$?
6414	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6415	  lt_cv_apple_cc_single_mod=yes
6416	else
6417	  cat conftest.err >&5
6418	fi
6419	rm -rf libconftest.dylib*
6420	rm -f conftest.*
6421      fi
6422fi
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6424$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6425    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6426$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6427if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6428  $as_echo_n "(cached) " >&6
6429else
6430  lt_cv_ld_exported_symbols_list=no
6431      save_LDFLAGS=$LDFLAGS
6432      echo "_main" > conftest.sym
6433      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6434      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435/* end confdefs.h.  */
6436
6437int
6438main ()
6439{
6440
6441  ;
6442  return 0;
6443}
6444_ACEOF
6445if ac_fn_c_try_link "$LINENO"; then :
6446  lt_cv_ld_exported_symbols_list=yes
6447else
6448  lt_cv_ld_exported_symbols_list=no
6449fi
6450rm -f core conftest.err conftest.$ac_objext \
6451    conftest$ac_exeext conftest.$ac_ext
6452	LDFLAGS="$save_LDFLAGS"
6453
6454fi
6455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6456$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6457    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6458$as_echo_n "checking for -force_load linker flag... " >&6; }
6459if test "${lt_cv_ld_force_load+set}" = set; then :
6460  $as_echo_n "(cached) " >&6
6461else
6462  lt_cv_ld_force_load=no
6463      cat > conftest.c << _LT_EOF
6464int forced_loaded() { return 2;}
6465_LT_EOF
6466      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6467      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6468      echo "$AR cru libconftest.a conftest.o" >&5
6469      $AR cru libconftest.a conftest.o 2>&5
6470      echo "$RANLIB libconftest.a" >&5
6471      $RANLIB libconftest.a 2>&5
6472      cat > conftest.c << _LT_EOF
6473int main() { return 0;}
6474_LT_EOF
6475      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6476      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6477      _lt_result=$?
6478      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6479	lt_cv_ld_force_load=yes
6480      else
6481	cat conftest.err >&5
6482      fi
6483        rm -f conftest.err libconftest.a conftest conftest.c
6484        rm -rf conftest.dSYM
6485
6486fi
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6488$as_echo "$lt_cv_ld_force_load" >&6; }
6489    case $host_os in
6490    rhapsody* | darwin1.[012])
6491      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6492    darwin1.*)
6493      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6494    darwin*) # darwin 5.x on
6495      # if running on 10.5 or later, the deployment target defaults
6496      # to the OS version, if on x86, and 10.4, the deployment
6497      # target defaults to 10.4. Don't you love it?
6498      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6499	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6500	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6501	10.[012]*)
6502	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6503	10.*)
6504	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6505      esac
6506    ;;
6507  esac
6508    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6509      _lt_dar_single_mod='$single_module'
6510    fi
6511    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6512      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6513    else
6514      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6515    fi
6516    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6517      _lt_dsymutil='~$DSYMUTIL $lib || :'
6518    else
6519      _lt_dsymutil=
6520    fi
6521    ;;
6522  esac
6523
6524ac_ext=c
6525ac_cpp='$CPP $CPPFLAGS'
6526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6528ac_compiler_gnu=$ac_cv_c_compiler_gnu
6529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6530$as_echo_n "checking how to run the C preprocessor... " >&6; }
6531# On Suns, sometimes $CPP names a directory.
6532if test -n "$CPP" && test -d "$CPP"; then
6533  CPP=
6534fi
6535if test -z "$CPP"; then
6536  if test "${ac_cv_prog_CPP+set}" = set; then :
6537  $as_echo_n "(cached) " >&6
6538else
6539      # Double quotes because CPP needs to be expanded
6540    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6541    do
6542      ac_preproc_ok=false
6543for ac_c_preproc_warn_flag in '' yes
6544do
6545  # Use a header file that comes with gcc, so configuring glibc
6546  # with a fresh cross-compiler works.
6547  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6548  # <limits.h> exists even on freestanding compilers.
6549  # On the NeXT, cc -E runs the code through the compiler's parser,
6550  # not just through cpp. "Syntax error" is here to catch this case.
6551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552/* end confdefs.h.  */
6553#ifdef __STDC__
6554# include <limits.h>
6555#else
6556# include <assert.h>
6557#endif
6558		     Syntax error
6559_ACEOF
6560if ac_fn_c_try_cpp "$LINENO"; then :
6561
6562else
6563  # Broken: fails on valid input.
6564continue
6565fi
6566rm -f conftest.err conftest.$ac_ext
6567
6568  # OK, works on sane cases.  Now check whether nonexistent headers
6569  # can be detected and how.
6570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571/* end confdefs.h.  */
6572#include <ac_nonexistent.h>
6573_ACEOF
6574if ac_fn_c_try_cpp "$LINENO"; then :
6575  # Broken: success on invalid input.
6576continue
6577else
6578  # Passes both tests.
6579ac_preproc_ok=:
6580break
6581fi
6582rm -f conftest.err conftest.$ac_ext
6583
6584done
6585# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6586rm -f conftest.err conftest.$ac_ext
6587if $ac_preproc_ok; then :
6588  break
6589fi
6590
6591    done
6592    ac_cv_prog_CPP=$CPP
6593
6594fi
6595  CPP=$ac_cv_prog_CPP
6596else
6597  ac_cv_prog_CPP=$CPP
6598fi
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6600$as_echo "$CPP" >&6; }
6601ac_preproc_ok=false
6602for ac_c_preproc_warn_flag in '' yes
6603do
6604  # Use a header file that comes with gcc, so configuring glibc
6605  # with a fresh cross-compiler works.
6606  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6607  # <limits.h> exists even on freestanding compilers.
6608  # On the NeXT, cc -E runs the code through the compiler's parser,
6609  # not just through cpp. "Syntax error" is here to catch this case.
6610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611/* end confdefs.h.  */
6612#ifdef __STDC__
6613# include <limits.h>
6614#else
6615# include <assert.h>
6616#endif
6617		     Syntax error
6618_ACEOF
6619if ac_fn_c_try_cpp "$LINENO"; then :
6620
6621else
6622  # Broken: fails on valid input.
6623continue
6624fi
6625rm -f conftest.err conftest.$ac_ext
6626
6627  # OK, works on sane cases.  Now check whether nonexistent headers
6628  # can be detected and how.
6629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630/* end confdefs.h.  */
6631#include <ac_nonexistent.h>
6632_ACEOF
6633if ac_fn_c_try_cpp "$LINENO"; then :
6634  # Broken: success on invalid input.
6635continue
6636else
6637  # Passes both tests.
6638ac_preproc_ok=:
6639break
6640fi
6641rm -f conftest.err conftest.$ac_ext
6642
6643done
6644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6645rm -f conftest.err conftest.$ac_ext
6646if $ac_preproc_ok; then :
6647
6648else
6649  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6651as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6652See \`config.log' for more details" "$LINENO" 5; }
6653fi
6654
6655ac_ext=c
6656ac_cpp='$CPP $CPPFLAGS'
6657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6659ac_compiler_gnu=$ac_cv_c_compiler_gnu
6660
6661
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6663$as_echo_n "checking for ANSI C header files... " >&6; }
6664if test "${ac_cv_header_stdc+set}" = set; then :
6665  $as_echo_n "(cached) " >&6
6666else
6667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668/* end confdefs.h.  */
6669#include <stdlib.h>
6670#include <stdarg.h>
6671#include <string.h>
6672#include <float.h>
6673
6674int
6675main ()
6676{
6677
6678  ;
6679  return 0;
6680}
6681_ACEOF
6682if ac_fn_c_try_compile "$LINENO"; then :
6683  ac_cv_header_stdc=yes
6684else
6685  ac_cv_header_stdc=no
6686fi
6687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688
6689if test $ac_cv_header_stdc = yes; then
6690  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692/* end confdefs.h.  */
6693#include <string.h>
6694
6695_ACEOF
6696if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6697  $EGREP "memchr" >/dev/null 2>&1; then :
6698
6699else
6700  ac_cv_header_stdc=no
6701fi
6702rm -f conftest*
6703
6704fi
6705
6706if test $ac_cv_header_stdc = yes; then
6707  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709/* end confdefs.h.  */
6710#include <stdlib.h>
6711
6712_ACEOF
6713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6714  $EGREP "free" >/dev/null 2>&1; then :
6715
6716else
6717  ac_cv_header_stdc=no
6718fi
6719rm -f conftest*
6720
6721fi
6722
6723if test $ac_cv_header_stdc = yes; then
6724  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6725  if test "$cross_compiling" = yes; then :
6726  :
6727else
6728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729/* end confdefs.h.  */
6730#include <ctype.h>
6731#include <stdlib.h>
6732#if ((' ' & 0x0FF) == 0x020)
6733# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6734# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6735#else
6736# define ISLOWER(c) \
6737		   (('a' <= (c) && (c) <= 'i') \
6738		     || ('j' <= (c) && (c) <= 'r') \
6739		     || ('s' <= (c) && (c) <= 'z'))
6740# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6741#endif
6742
6743#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6744int
6745main ()
6746{
6747  int i;
6748  for (i = 0; i < 256; i++)
6749    if (XOR (islower (i), ISLOWER (i))
6750	|| toupper (i) != TOUPPER (i))
6751      return 2;
6752  return 0;
6753}
6754_ACEOF
6755if ac_fn_c_try_run "$LINENO"; then :
6756
6757else
6758  ac_cv_header_stdc=no
6759fi
6760rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6761  conftest.$ac_objext conftest.beam conftest.$ac_ext
6762fi
6763
6764fi
6765fi
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6767$as_echo "$ac_cv_header_stdc" >&6; }
6768if test $ac_cv_header_stdc = yes; then
6769
6770$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6771
6772fi
6773
6774# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6775for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6776		  inttypes.h stdint.h unistd.h
6777do :
6778  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6779ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6780"
6781if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6782  cat >>confdefs.h <<_ACEOF
6783#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6784_ACEOF
6785
6786fi
6787
6788done
6789
6790
6791for ac_header in dlfcn.h
6792do :
6793  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6794"
6795if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6796  cat >>confdefs.h <<_ACEOF
6797#define HAVE_DLFCN_H 1
6798_ACEOF
6799
6800fi
6801
6802done
6803
6804
6805
6806
6807
6808# Set options
6809
6810
6811
6812        enable_dlopen=no
6813
6814
6815  enable_win32_dll=no
6816
6817
6818            # Check whether --enable-shared was given.
6819if test "${enable_shared+set}" = set; then :
6820  enableval=$enable_shared; p=${PACKAGE-default}
6821    case $enableval in
6822    yes) enable_shared=yes ;;
6823    no) enable_shared=no ;;
6824    *)
6825      enable_shared=no
6826      # Look at the argument we got.  We use all the common list separators.
6827      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6828      for pkg in $enableval; do
6829	IFS="$lt_save_ifs"
6830	if test "X$pkg" = "X$p"; then
6831	  enable_shared=yes
6832	fi
6833      done
6834      IFS="$lt_save_ifs"
6835      ;;
6836    esac
6837else
6838  enable_shared=yes
6839fi
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851# Check whether --with-pic was given.
6852if test "${with_pic+set}" = set; then :
6853  withval=$with_pic; pic_mode="$withval"
6854else
6855  pic_mode=default
6856fi
6857
6858
6859test -z "$pic_mode" && pic_mode=default
6860
6861
6862
6863
6864
6865
6866
6867  # Check whether --enable-fast-install was given.
6868if test "${enable_fast_install+set}" = set; then :
6869  enableval=$enable_fast_install; p=${PACKAGE-default}
6870    case $enableval in
6871    yes) enable_fast_install=yes ;;
6872    no) enable_fast_install=no ;;
6873    *)
6874      enable_fast_install=no
6875      # Look at the argument we got.  We use all the common list separators.
6876      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6877      for pkg in $enableval; do
6878	IFS="$lt_save_ifs"
6879	if test "X$pkg" = "X$p"; then
6880	  enable_fast_install=yes
6881	fi
6882      done
6883      IFS="$lt_save_ifs"
6884      ;;
6885    esac
6886else
6887  enable_fast_install=yes
6888fi
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900# This can be used to rebuild libtool when needed
6901LIBTOOL_DEPS="$ltmain"
6902
6903# Always use our own libtool.
6904LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931test -z "$LN_S" && LN_S="ln -s"
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946if test -n "${ZSH_VERSION+set}" ; then
6947   setopt NO_GLOB_SUBST
6948fi
6949
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6951$as_echo_n "checking for objdir... " >&6; }
6952if test "${lt_cv_objdir+set}" = set; then :
6953  $as_echo_n "(cached) " >&6
6954else
6955  rm -f .libs 2>/dev/null
6956mkdir .libs 2>/dev/null
6957if test -d .libs; then
6958  lt_cv_objdir=.libs
6959else
6960  # MS-DOS does not allow filenames that begin with a dot.
6961  lt_cv_objdir=_libs
6962fi
6963rmdir .libs 2>/dev/null
6964fi
6965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6966$as_echo "$lt_cv_objdir" >&6; }
6967objdir=$lt_cv_objdir
6968
6969
6970
6971
6972
6973cat >>confdefs.h <<_ACEOF
6974#define LT_OBJDIR "$lt_cv_objdir/"
6975_ACEOF
6976
6977
6978
6979
6980case $host_os in
6981aix3*)
6982  # AIX sometimes has problems with the GCC collect2 program.  For some
6983  # reason, if we set the COLLECT_NAMES environment variable, the problems
6984  # vanish in a puff of smoke.
6985  if test "X${COLLECT_NAMES+set}" != Xset; then
6986    COLLECT_NAMES=
6987    export COLLECT_NAMES
6988  fi
6989  ;;
6990esac
6991
6992# Global variables:
6993ofile=libtool
6994can_build_shared=yes
6995
6996# All known linkers require a `.a' archive for static linking (except MSVC,
6997# which needs '.lib').
6998libext=a
6999
7000with_gnu_ld="$lt_cv_prog_gnu_ld"
7001
7002old_CC="$CC"
7003old_CFLAGS="$CFLAGS"
7004
7005# Set sane defaults for various variables
7006test -z "$CC" && CC=cc
7007test -z "$LTCC" && LTCC=$CC
7008test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7009test -z "$LD" && LD=ld
7010test -z "$ac_objext" && ac_objext=o
7011
7012for cc_temp in $compiler""; do
7013  case $cc_temp in
7014    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7015    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7016    \-*) ;;
7017    *) break;;
7018  esac
7019done
7020cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7021
7022
7023# Only perform the check for file, if the check method requires it
7024test -z "$MAGIC_CMD" && MAGIC_CMD=file
7025case $deplibs_check_method in
7026file_magic*)
7027  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7028    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7029$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7030if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7031  $as_echo_n "(cached) " >&6
7032else
7033  case $MAGIC_CMD in
7034[\\/*] |  ?:[\\/]*)
7035  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7036  ;;
7037*)
7038  lt_save_MAGIC_CMD="$MAGIC_CMD"
7039  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7040  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7041  for ac_dir in $ac_dummy; do
7042    IFS="$lt_save_ifs"
7043    test -z "$ac_dir" && ac_dir=.
7044    if test -f $ac_dir/${ac_tool_prefix}file; then
7045      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7046      if test -n "$file_magic_test_file"; then
7047	case $deplibs_check_method in
7048	"file_magic "*)
7049	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7050	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7051	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7052	    $EGREP "$file_magic_regex" > /dev/null; then
7053	    :
7054	  else
7055	    cat <<_LT_EOF 1>&2
7056
7057*** Warning: the command libtool uses to detect shared libraries,
7058*** $file_magic_cmd, produces output that libtool cannot recognize.
7059*** The result is that libtool may fail to recognize shared libraries
7060*** as such.  This will affect the creation of libtool libraries that
7061*** depend on shared libraries, but programs linked with such libtool
7062*** libraries will work regardless of this problem.  Nevertheless, you
7063*** may want to report the problem to your system manager and/or to
7064*** bug-libtool@gnu.org
7065
7066_LT_EOF
7067	  fi ;;
7068	esac
7069      fi
7070      break
7071    fi
7072  done
7073  IFS="$lt_save_ifs"
7074  MAGIC_CMD="$lt_save_MAGIC_CMD"
7075  ;;
7076esac
7077fi
7078
7079MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7080if test -n "$MAGIC_CMD"; then
7081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7082$as_echo "$MAGIC_CMD" >&6; }
7083else
7084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085$as_echo "no" >&6; }
7086fi
7087
7088
7089
7090
7091
7092if test -z "$lt_cv_path_MAGIC_CMD"; then
7093  if test -n "$ac_tool_prefix"; then
7094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7095$as_echo_n "checking for file... " >&6; }
7096if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7097  $as_echo_n "(cached) " >&6
7098else
7099  case $MAGIC_CMD in
7100[\\/*] |  ?:[\\/]*)
7101  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7102  ;;
7103*)
7104  lt_save_MAGIC_CMD="$MAGIC_CMD"
7105  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7106  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7107  for ac_dir in $ac_dummy; do
7108    IFS="$lt_save_ifs"
7109    test -z "$ac_dir" && ac_dir=.
7110    if test -f $ac_dir/file; then
7111      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7112      if test -n "$file_magic_test_file"; then
7113	case $deplibs_check_method in
7114	"file_magic "*)
7115	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7116	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7117	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7118	    $EGREP "$file_magic_regex" > /dev/null; then
7119	    :
7120	  else
7121	    cat <<_LT_EOF 1>&2
7122
7123*** Warning: the command libtool uses to detect shared libraries,
7124*** $file_magic_cmd, produces output that libtool cannot recognize.
7125*** The result is that libtool may fail to recognize shared libraries
7126*** as such.  This will affect the creation of libtool libraries that
7127*** depend on shared libraries, but programs linked with such libtool
7128*** libraries will work regardless of this problem.  Nevertheless, you
7129*** may want to report the problem to your system manager and/or to
7130*** bug-libtool@gnu.org
7131
7132_LT_EOF
7133	  fi ;;
7134	esac
7135      fi
7136      break
7137    fi
7138  done
7139  IFS="$lt_save_ifs"
7140  MAGIC_CMD="$lt_save_MAGIC_CMD"
7141  ;;
7142esac
7143fi
7144
7145MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7146if test -n "$MAGIC_CMD"; then
7147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7148$as_echo "$MAGIC_CMD" >&6; }
7149else
7150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151$as_echo "no" >&6; }
7152fi
7153
7154
7155  else
7156    MAGIC_CMD=:
7157  fi
7158fi
7159
7160  fi
7161  ;;
7162esac
7163
7164# Use C for the default configuration in the libtool script
7165
7166lt_save_CC="$CC"
7167ac_ext=c
7168ac_cpp='$CPP $CPPFLAGS'
7169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7171ac_compiler_gnu=$ac_cv_c_compiler_gnu
7172
7173
7174# Source file extension for C test sources.
7175ac_ext=c
7176
7177# Object file extension for compiled C test sources.
7178objext=o
7179objext=$objext
7180
7181# Code to be used in simple compile tests
7182lt_simple_compile_test_code="int some_variable = 0;"
7183
7184# Code to be used in simple link tests
7185lt_simple_link_test_code='int main(){return(0);}'
7186
7187
7188
7189
7190
7191
7192
7193# If no C compiler was specified, use CC.
7194LTCC=${LTCC-"$CC"}
7195
7196# If no C compiler flags were specified, use CFLAGS.
7197LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7198
7199# Allow CC to be a program name with arguments.
7200compiler=$CC
7201
7202# Save the default compiler, since it gets overwritten when the other
7203# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7204compiler_DEFAULT=$CC
7205
7206# save warnings/boilerplate of simple test code
7207ac_outfile=conftest.$ac_objext
7208echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7209eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7210_lt_compiler_boilerplate=`cat conftest.err`
7211$RM conftest*
7212
7213ac_outfile=conftest.$ac_objext
7214echo "$lt_simple_link_test_code" >conftest.$ac_ext
7215eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7216_lt_linker_boilerplate=`cat conftest.err`
7217$RM -r conftest*
7218
7219
7220if test -n "$compiler"; then
7221
7222lt_prog_compiler_no_builtin_flag=
7223
7224if test "$GCC" = yes; then
7225  case $cc_basename in
7226  nvcc*)
7227    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7228  *)
7229    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7230  esac
7231
7232  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7233$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7234if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7235  $as_echo_n "(cached) " >&6
7236else
7237  lt_cv_prog_compiler_rtti_exceptions=no
7238   ac_outfile=conftest.$ac_objext
7239   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7240   lt_compiler_flag="-fno-rtti -fno-exceptions"
7241   # Insert the option either (1) after the last *FLAGS variable, or
7242   # (2) before a word containing "conftest.", or (3) at the end.
7243   # Note that $ac_compile itself does not contain backslashes and begins
7244   # with a dollar sign (not a hyphen), so the echo should work correctly.
7245   # The option is referenced via a variable to avoid confusing sed.
7246   lt_compile=`echo "$ac_compile" | $SED \
7247   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7248   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7249   -e 's:$: $lt_compiler_flag:'`
7250   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7251   (eval "$lt_compile" 2>conftest.err)
7252   ac_status=$?
7253   cat conftest.err >&5
7254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255   if (exit $ac_status) && test -s "$ac_outfile"; then
7256     # The compiler can only warn and ignore the option if not recognized
7257     # So say no if there are warnings other than the usual output.
7258     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7259     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7260     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7261       lt_cv_prog_compiler_rtti_exceptions=yes
7262     fi
7263   fi
7264   $RM conftest*
7265
7266fi
7267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7268$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7269
7270if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7271    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7272else
7273    :
7274fi
7275
7276fi
7277
7278
7279
7280
7281
7282
7283  lt_prog_compiler_wl=
7284lt_prog_compiler_pic=
7285lt_prog_compiler_static=
7286
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7288$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7289
7290  if test "$GCC" = yes; then
7291    lt_prog_compiler_wl='-Wl,'
7292    lt_prog_compiler_static='-static'
7293
7294    case $host_os in
7295      aix*)
7296      # All AIX code is PIC.
7297      if test "$host_cpu" = ia64; then
7298	# AIX 5 now supports IA64 processor
7299	lt_prog_compiler_static='-Bstatic'
7300      fi
7301      ;;
7302
7303    amigaos*)
7304      case $host_cpu in
7305      powerpc)
7306            # see comment about AmigaOS4 .so support
7307            lt_prog_compiler_pic='-fPIC'
7308        ;;
7309      m68k)
7310            # FIXME: we need at least 68020 code to build shared libraries, but
7311            # adding the `-m68020' flag to GCC prevents building anything better,
7312            # like `-m68040'.
7313            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7314        ;;
7315      esac
7316      ;;
7317
7318    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7319      # PIC is the default for these OSes.
7320      ;;
7321
7322    mingw* | cygwin* | pw32* | os2* | cegcc*)
7323      # This hack is so that the source file can tell whether it is being
7324      # built for inclusion in a dll (and should export symbols for example).
7325      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7326      # (--disable-auto-import) libraries
7327      lt_prog_compiler_pic='-DDLL_EXPORT'
7328      ;;
7329
7330    darwin* | rhapsody*)
7331      # PIC is the default on this platform
7332      # Common symbols not allowed in MH_DYLIB files
7333      lt_prog_compiler_pic='-fno-common'
7334      ;;
7335
7336    haiku*)
7337      # PIC is the default for Haiku.
7338      # The "-static" flag exists, but is broken.
7339      lt_prog_compiler_static=
7340      ;;
7341
7342    hpux*)
7343      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7344      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7345      # sets the default TLS model and affects inlining.
7346      case $host_cpu in
7347      hppa*64*)
7348	# +Z the default
7349	;;
7350      *)
7351	lt_prog_compiler_pic='-fPIC'
7352	;;
7353      esac
7354      ;;
7355
7356    interix[3-9]*)
7357      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7358      # Instead, we relocate shared libraries at runtime.
7359      ;;
7360
7361    msdosdjgpp*)
7362      # Just because we use GCC doesn't mean we suddenly get shared libraries
7363      # on systems that don't support them.
7364      lt_prog_compiler_can_build_shared=no
7365      enable_shared=no
7366      ;;
7367
7368    *nto* | *qnx*)
7369      # QNX uses GNU C++, but need to define -shared option too, otherwise
7370      # it will coredump.
7371      lt_prog_compiler_pic='-fPIC -shared'
7372      ;;
7373
7374    sysv4*MP*)
7375      if test -d /usr/nec; then
7376	lt_prog_compiler_pic=-Kconform_pic
7377      fi
7378      ;;
7379
7380    *)
7381      lt_prog_compiler_pic='-fPIC'
7382      ;;
7383    esac
7384
7385    case $cc_basename in
7386    nvcc*) # Cuda Compiler Driver 2.2
7387      lt_prog_compiler_wl='-Xlinker '
7388      lt_prog_compiler_pic='-Xcompiler -fPIC'
7389      ;;
7390    esac
7391  else
7392    # PORTME Check for flag to pass linker flags through the system compiler.
7393    case $host_os in
7394    aix*)
7395      lt_prog_compiler_wl='-Wl,'
7396      if test "$host_cpu" = ia64; then
7397	# AIX 5 now supports IA64 processor
7398	lt_prog_compiler_static='-Bstatic'
7399      else
7400	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7401      fi
7402      ;;
7403
7404    mingw* | cygwin* | pw32* | os2* | cegcc*)
7405      # This hack is so that the source file can tell whether it is being
7406      # built for inclusion in a dll (and should export symbols for example).
7407      lt_prog_compiler_pic='-DDLL_EXPORT'
7408      ;;
7409
7410    hpux9* | hpux10* | hpux11*)
7411      lt_prog_compiler_wl='-Wl,'
7412      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7413      # not for PA HP-UX.
7414      case $host_cpu in
7415      hppa*64*|ia64*)
7416	# +Z the default
7417	;;
7418      *)
7419	lt_prog_compiler_pic='+Z'
7420	;;
7421      esac
7422      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7423      lt_prog_compiler_static='${wl}-a ${wl}archive'
7424      ;;
7425
7426    irix5* | irix6* | nonstopux*)
7427      lt_prog_compiler_wl='-Wl,'
7428      # PIC (with -KPIC) is the default.
7429      lt_prog_compiler_static='-non_shared'
7430      ;;
7431
7432    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7433      case $cc_basename in
7434      # old Intel for x86_64 which still supported -KPIC.
7435      ecc*)
7436	lt_prog_compiler_wl='-Wl,'
7437	lt_prog_compiler_pic='-KPIC'
7438	lt_prog_compiler_static='-static'
7439        ;;
7440      # icc used to be incompatible with GCC.
7441      # ICC 10 doesn't accept -KPIC any more.
7442      icc* | ifort*)
7443	lt_prog_compiler_wl='-Wl,'
7444	lt_prog_compiler_pic='-fPIC'
7445	lt_prog_compiler_static='-static'
7446        ;;
7447      # Lahey Fortran 8.1.
7448      lf95*)
7449	lt_prog_compiler_wl='-Wl,'
7450	lt_prog_compiler_pic='--shared'
7451	lt_prog_compiler_static='--static'
7452	;;
7453      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7454        # Portland Group compilers (*not* the Pentium gcc compiler,
7455	# which looks to be a dead project)
7456	lt_prog_compiler_wl='-Wl,'
7457	lt_prog_compiler_pic='-fpic'
7458	lt_prog_compiler_static='-Bstatic'
7459        ;;
7460      ccc*)
7461        lt_prog_compiler_wl='-Wl,'
7462        # All Alpha code is PIC.
7463        lt_prog_compiler_static='-non_shared'
7464        ;;
7465      xl* | bgxl* | bgf* | mpixl*)
7466	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7467	lt_prog_compiler_wl='-Wl,'
7468	lt_prog_compiler_pic='-qpic'
7469	lt_prog_compiler_static='-qstaticlink'
7470	;;
7471      *)
7472	case `$CC -V 2>&1 | sed 5q` in
7473	*Sun\ F* | *Sun*Fortran*)
7474	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7475	  lt_prog_compiler_pic='-KPIC'
7476	  lt_prog_compiler_static='-Bstatic'
7477	  lt_prog_compiler_wl=''
7478	  ;;
7479	*Sun\ C*)
7480	  # Sun C 5.9
7481	  lt_prog_compiler_pic='-KPIC'
7482	  lt_prog_compiler_static='-Bstatic'
7483	  lt_prog_compiler_wl='-Wl,'
7484	  ;;
7485	esac
7486	;;
7487      esac
7488      ;;
7489
7490    newsos6)
7491      lt_prog_compiler_pic='-KPIC'
7492      lt_prog_compiler_static='-Bstatic'
7493      ;;
7494
7495    *nto* | *qnx*)
7496      # QNX uses GNU C++, but need to define -shared option too, otherwise
7497      # it will coredump.
7498      lt_prog_compiler_pic='-fPIC -shared'
7499      ;;
7500
7501    osf3* | osf4* | osf5*)
7502      lt_prog_compiler_wl='-Wl,'
7503      # All OSF/1 code is PIC.
7504      lt_prog_compiler_static='-non_shared'
7505      ;;
7506
7507    rdos*)
7508      lt_prog_compiler_static='-non_shared'
7509      ;;
7510
7511    solaris*)
7512      lt_prog_compiler_pic='-KPIC'
7513      lt_prog_compiler_static='-Bstatic'
7514      case $cc_basename in
7515      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7516	lt_prog_compiler_wl='-Qoption ld ';;
7517      *)
7518	lt_prog_compiler_wl='-Wl,';;
7519      esac
7520      ;;
7521
7522    sunos4*)
7523      lt_prog_compiler_wl='-Qoption ld '
7524      lt_prog_compiler_pic='-PIC'
7525      lt_prog_compiler_static='-Bstatic'
7526      ;;
7527
7528    sysv4 | sysv4.2uw2* | sysv4.3*)
7529      lt_prog_compiler_wl='-Wl,'
7530      lt_prog_compiler_pic='-KPIC'
7531      lt_prog_compiler_static='-Bstatic'
7532      ;;
7533
7534    sysv4*MP*)
7535      if test -d /usr/nec ;then
7536	lt_prog_compiler_pic='-Kconform_pic'
7537	lt_prog_compiler_static='-Bstatic'
7538      fi
7539      ;;
7540
7541    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7542      lt_prog_compiler_wl='-Wl,'
7543      lt_prog_compiler_pic='-KPIC'
7544      lt_prog_compiler_static='-Bstatic'
7545      ;;
7546
7547    unicos*)
7548      lt_prog_compiler_wl='-Wl,'
7549      lt_prog_compiler_can_build_shared=no
7550      ;;
7551
7552    uts4*)
7553      lt_prog_compiler_pic='-pic'
7554      lt_prog_compiler_static='-Bstatic'
7555      ;;
7556
7557    *)
7558      lt_prog_compiler_can_build_shared=no
7559      ;;
7560    esac
7561  fi
7562
7563case $host_os in
7564  # For platforms which do not support PIC, -DPIC is meaningless:
7565  *djgpp*)
7566    lt_prog_compiler_pic=
7567    ;;
7568  *)
7569    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7570    ;;
7571esac
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7573$as_echo "$lt_prog_compiler_pic" >&6; }
7574
7575
7576
7577
7578
7579
7580#
7581# Check to make sure the PIC flag actually works.
7582#
7583if test -n "$lt_prog_compiler_pic"; then
7584  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7585$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7586if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7587  $as_echo_n "(cached) " >&6
7588else
7589  lt_cv_prog_compiler_pic_works=no
7590   ac_outfile=conftest.$ac_objext
7591   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7592   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7593   # Insert the option either (1) after the last *FLAGS variable, or
7594   # (2) before a word containing "conftest.", or (3) at the end.
7595   # Note that $ac_compile itself does not contain backslashes and begins
7596   # with a dollar sign (not a hyphen), so the echo should work correctly.
7597   # The option is referenced via a variable to avoid confusing sed.
7598   lt_compile=`echo "$ac_compile" | $SED \
7599   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7600   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7601   -e 's:$: $lt_compiler_flag:'`
7602   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7603   (eval "$lt_compile" 2>conftest.err)
7604   ac_status=$?
7605   cat conftest.err >&5
7606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607   if (exit $ac_status) && test -s "$ac_outfile"; then
7608     # The compiler can only warn and ignore the option if not recognized
7609     # So say no if there are warnings other than the usual output.
7610     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7611     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7612     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7613       lt_cv_prog_compiler_pic_works=yes
7614     fi
7615   fi
7616   $RM conftest*
7617
7618fi
7619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7620$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7621
7622if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7623    case $lt_prog_compiler_pic in
7624     "" | " "*) ;;
7625     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7626     esac
7627else
7628    lt_prog_compiler_pic=
7629     lt_prog_compiler_can_build_shared=no
7630fi
7631
7632fi
7633
7634
7635
7636
7637
7638
7639#
7640# Check to make sure the static flag actually works.
7641#
7642wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7644$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7645if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7646  $as_echo_n "(cached) " >&6
7647else
7648  lt_cv_prog_compiler_static_works=no
7649   save_LDFLAGS="$LDFLAGS"
7650   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7651   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7652   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7653     # The linker can only warn and ignore the option if not recognized
7654     # So say no if there are warnings
7655     if test -s conftest.err; then
7656       # Append any errors to the config.log.
7657       cat conftest.err 1>&5
7658       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7659       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7660       if diff conftest.exp conftest.er2 >/dev/null; then
7661         lt_cv_prog_compiler_static_works=yes
7662       fi
7663     else
7664       lt_cv_prog_compiler_static_works=yes
7665     fi
7666   fi
7667   $RM -r conftest*
7668   LDFLAGS="$save_LDFLAGS"
7669
7670fi
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7672$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7673
7674if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7675    :
7676else
7677    lt_prog_compiler_static=
7678fi
7679
7680
7681
7682
7683
7684
7685
7686  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7687$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7688if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7689  $as_echo_n "(cached) " >&6
7690else
7691  lt_cv_prog_compiler_c_o=no
7692   $RM -r conftest 2>/dev/null
7693   mkdir conftest
7694   cd conftest
7695   mkdir out
7696   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7697
7698   lt_compiler_flag="-o out/conftest2.$ac_objext"
7699   # Insert the option either (1) after the last *FLAGS variable, or
7700   # (2) before a word containing "conftest.", or (3) at the end.
7701   # Note that $ac_compile itself does not contain backslashes and begins
7702   # with a dollar sign (not a hyphen), so the echo should work correctly.
7703   lt_compile=`echo "$ac_compile" | $SED \
7704   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7705   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7706   -e 's:$: $lt_compiler_flag:'`
7707   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7708   (eval "$lt_compile" 2>out/conftest.err)
7709   ac_status=$?
7710   cat out/conftest.err >&5
7711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7713   then
7714     # The compiler can only warn and ignore the option if not recognized
7715     # So say no if there are warnings
7716     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7717     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7718     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7719       lt_cv_prog_compiler_c_o=yes
7720     fi
7721   fi
7722   chmod u+w . 2>&5
7723   $RM conftest*
7724   # SGI C++ compiler will create directory out/ii_files/ for
7725   # template instantiation
7726   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7727   $RM out/* && rmdir out
7728   cd ..
7729   $RM -r conftest
7730   $RM conftest*
7731
7732fi
7733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7734$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7735
7736
7737
7738
7739
7740
7741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7742$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7743if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7744  $as_echo_n "(cached) " >&6
7745else
7746  lt_cv_prog_compiler_c_o=no
7747   $RM -r conftest 2>/dev/null
7748   mkdir conftest
7749   cd conftest
7750   mkdir out
7751   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7752
7753   lt_compiler_flag="-o out/conftest2.$ac_objext"
7754   # Insert the option either (1) after the last *FLAGS variable, or
7755   # (2) before a word containing "conftest.", or (3) at the end.
7756   # Note that $ac_compile itself does not contain backslashes and begins
7757   # with a dollar sign (not a hyphen), so the echo should work correctly.
7758   lt_compile=`echo "$ac_compile" | $SED \
7759   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7760   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7761   -e 's:$: $lt_compiler_flag:'`
7762   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7763   (eval "$lt_compile" 2>out/conftest.err)
7764   ac_status=$?
7765   cat out/conftest.err >&5
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7768   then
7769     # The compiler can only warn and ignore the option if not recognized
7770     # So say no if there are warnings
7771     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7772     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7773     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7774       lt_cv_prog_compiler_c_o=yes
7775     fi
7776   fi
7777   chmod u+w . 2>&5
7778   $RM conftest*
7779   # SGI C++ compiler will create directory out/ii_files/ for
7780   # template instantiation
7781   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7782   $RM out/* && rmdir out
7783   cd ..
7784   $RM -r conftest
7785   $RM conftest*
7786
7787fi
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7789$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7790
7791
7792
7793
7794hard_links="nottested"
7795if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7796  # do not overwrite the value of need_locks provided by the user
7797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7798$as_echo_n "checking if we can lock with hard links... " >&6; }
7799  hard_links=yes
7800  $RM conftest*
7801  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7802  touch conftest.a
7803  ln conftest.a conftest.b 2>&5 || hard_links=no
7804  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7806$as_echo "$hard_links" >&6; }
7807  if test "$hard_links" = no; then
7808    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7809$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7810    need_locks=warn
7811  fi
7812else
7813  need_locks=no
7814fi
7815
7816
7817
7818
7819
7820
7821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7822$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7823
7824  runpath_var=
7825  allow_undefined_flag=
7826  always_export_symbols=no
7827  archive_cmds=
7828  archive_expsym_cmds=
7829  compiler_needs_object=no
7830  enable_shared_with_static_runtimes=no
7831  export_dynamic_flag_spec=
7832  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7833  hardcode_automatic=no
7834  hardcode_direct=no
7835  hardcode_direct_absolute=no
7836  hardcode_libdir_flag_spec=
7837  hardcode_libdir_flag_spec_ld=
7838  hardcode_libdir_separator=
7839  hardcode_minus_L=no
7840  hardcode_shlibpath_var=unsupported
7841  inherit_rpath=no
7842  link_all_deplibs=unknown
7843  module_cmds=
7844  module_expsym_cmds=
7845  old_archive_from_new_cmds=
7846  old_archive_from_expsyms_cmds=
7847  thread_safe_flag_spec=
7848  whole_archive_flag_spec=
7849  # include_expsyms should be a list of space-separated symbols to be *always*
7850  # included in the symbol list
7851  include_expsyms=
7852  # exclude_expsyms can be an extended regexp of symbols to exclude
7853  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7854  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7855  # as well as any symbol that contains `d'.
7856  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7857  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7858  # platforms (ab)use it in PIC code, but their linkers get confused if
7859  # the symbol is explicitly referenced.  Since portable code cannot
7860  # rely on this symbol name, it's probably fine to never include it in
7861  # preloaded symbol tables.
7862  # Exclude shared library initialization/finalization symbols.
7863  extract_expsyms_cmds=
7864
7865  case $host_os in
7866  cygwin* | mingw* | pw32* | cegcc*)
7867    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7868    # When not using gcc, we currently assume that we are using
7869    # Microsoft Visual C++.
7870    if test "$GCC" != yes; then
7871      with_gnu_ld=no
7872    fi
7873    ;;
7874  interix*)
7875    # we just hope/assume this is gcc and not c89 (= MSVC++)
7876    with_gnu_ld=yes
7877    ;;
7878  openbsd*)
7879    with_gnu_ld=no
7880    ;;
7881  esac
7882
7883  ld_shlibs=yes
7884
7885  # On some targets, GNU ld is compatible enough with the native linker
7886  # that we're better off using the native interface for both.
7887  lt_use_gnu_ld_interface=no
7888  if test "$with_gnu_ld" = yes; then
7889    case $host_os in
7890      aix*)
7891	# The AIX port of GNU ld has always aspired to compatibility
7892	# with the native linker.  However, as the warning in the GNU ld
7893	# block says, versions before 2.19.5* couldn't really create working
7894	# shared libraries, regardless of the interface used.
7895	case `$LD -v 2>&1` in
7896	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7897	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7898	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7899	  *)
7900	    lt_use_gnu_ld_interface=yes
7901	    ;;
7902	esac
7903	;;
7904      *)
7905	lt_use_gnu_ld_interface=yes
7906	;;
7907    esac
7908  fi
7909
7910  if test "$lt_use_gnu_ld_interface" = yes; then
7911    # If archive_cmds runs LD, not CC, wlarc should be empty
7912    wlarc='${wl}'
7913
7914    # Set some defaults for GNU ld with shared library support. These
7915    # are reset later if shared libraries are not supported. Putting them
7916    # here allows them to be overridden if necessary.
7917    runpath_var=LD_RUN_PATH
7918    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7919    export_dynamic_flag_spec='${wl}--export-dynamic'
7920    # ancient GNU ld didn't support --whole-archive et. al.
7921    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7922      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7923    else
7924      whole_archive_flag_spec=
7925    fi
7926    supports_anon_versioning=no
7927    case `$LD -v 2>&1` in
7928      *GNU\ gold*) supports_anon_versioning=yes ;;
7929      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7930      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7931      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7932      *\ 2.11.*) ;; # other 2.11 versions
7933      *) supports_anon_versioning=yes ;;
7934    esac
7935
7936    # See if GNU ld supports shared libraries.
7937    case $host_os in
7938    aix[3-9]*)
7939      # On AIX/PPC, the GNU linker is very broken
7940      if test "$host_cpu" != ia64; then
7941	ld_shlibs=no
7942	cat <<_LT_EOF 1>&2
7943
7944*** Warning: the GNU linker, at least up to release 2.19, is reported
7945*** to be unable to reliably create shared libraries on AIX.
7946*** Therefore, libtool is disabling shared libraries support.  If you
7947*** really care for shared libraries, you may want to install binutils
7948*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7949*** You will then need to restart the configuration process.
7950
7951_LT_EOF
7952      fi
7953      ;;
7954
7955    amigaos*)
7956      case $host_cpu in
7957      powerpc)
7958            # see comment about AmigaOS4 .so support
7959            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7960            archive_expsym_cmds=''
7961        ;;
7962      m68k)
7963            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)'
7964            hardcode_libdir_flag_spec='-L$libdir'
7965            hardcode_minus_L=yes
7966        ;;
7967      esac
7968      ;;
7969
7970    beos*)
7971      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7972	allow_undefined_flag=unsupported
7973	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7974	# support --undefined.  This deserves some investigation.  FIXME
7975	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7976      else
7977	ld_shlibs=no
7978      fi
7979      ;;
7980
7981    cygwin* | mingw* | pw32* | cegcc*)
7982      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7983      # as there is no search path for DLLs.
7984      hardcode_libdir_flag_spec='-L$libdir'
7985      export_dynamic_flag_spec='${wl}--export-all-symbols'
7986      allow_undefined_flag=unsupported
7987      always_export_symbols=no
7988      enable_shared_with_static_runtimes=yes
7989      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7990
7991      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7992        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7993	# If the export-symbols file already is a .def file (1st line
7994	# is EXPORTS), use it as is; otherwise, prepend...
7995	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7996	  cp $export_symbols $output_objdir/$soname.def;
7997	else
7998	  echo EXPORTS > $output_objdir/$soname.def;
7999	  cat $export_symbols >> $output_objdir/$soname.def;
8000	fi~
8001	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8002      else
8003	ld_shlibs=no
8004      fi
8005      ;;
8006
8007    haiku*)
8008      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8009      link_all_deplibs=yes
8010      ;;
8011
8012    interix[3-9]*)
8013      hardcode_direct=no
8014      hardcode_shlibpath_var=no
8015      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8016      export_dynamic_flag_spec='${wl}-E'
8017      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8018      # Instead, shared libraries are loaded at an image base (0x10000000 by
8019      # default) and relocated if they conflict, which is a slow very memory
8020      # consuming and fragmenting process.  To avoid this, we pick a random,
8021      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8022      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8023      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8024      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'
8025      ;;
8026
8027    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8028      tmp_diet=no
8029      if test "$host_os" = linux-dietlibc; then
8030	case $cc_basename in
8031	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8032	esac
8033      fi
8034      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8035	 && test "$tmp_diet" = no
8036      then
8037	tmp_addflag=
8038	tmp_sharedflag='-shared'
8039	case $cc_basename,$host_cpu in
8040        pgcc*)				# Portland Group C compiler
8041	  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'
8042	  tmp_addflag=' $pic_flag'
8043	  ;;
8044	pgf77* | pgf90* | pgf95* | pgfortran*)
8045					# Portland Group f77 and f90 compilers
8046	  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'
8047	  tmp_addflag=' $pic_flag -Mnomain' ;;
8048	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8049	  tmp_addflag=' -i_dynamic' ;;
8050	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8051	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8052	ifc* | ifort*)			# Intel Fortran compiler
8053	  tmp_addflag=' -nofor_main' ;;
8054	lf95*)				# Lahey Fortran 8.1
8055	  whole_archive_flag_spec=
8056	  tmp_sharedflag='--shared' ;;
8057	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8058	  tmp_sharedflag='-qmkshrobj'
8059	  tmp_addflag= ;;
8060	nvcc*)	# Cuda Compiler Driver 2.2
8061	  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'
8062	  compiler_needs_object=yes
8063	  ;;
8064	esac
8065	case `$CC -V 2>&1 | sed 5q` in
8066	*Sun\ C*)			# Sun C 5.9
8067	  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'
8068	  compiler_needs_object=yes
8069	  tmp_sharedflag='-G' ;;
8070	*Sun\ F*)			# Sun Fortran 8.3
8071	  tmp_sharedflag='-G' ;;
8072	esac
8073	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8074
8075        if test "x$supports_anon_versioning" = xyes; then
8076          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8077	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8078	    echo "local: *; };" >> $output_objdir/$libname.ver~
8079	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8080        fi
8081
8082	case $cc_basename in
8083	xlf* | bgf* | bgxlf* | mpixlf*)
8084	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8085	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8086	  hardcode_libdir_flag_spec=
8087	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8088	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8089	  if test "x$supports_anon_versioning" = xyes; then
8090	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8091	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8092	      echo "local: *; };" >> $output_objdir/$libname.ver~
8093	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8094	  fi
8095	  ;;
8096	esac
8097      else
8098        ld_shlibs=no
8099      fi
8100      ;;
8101
8102    netbsd*)
8103      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8104	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8105	wlarc=
8106      else
8107	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8108	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8109      fi
8110      ;;
8111
8112    solaris*)
8113      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8114	ld_shlibs=no
8115	cat <<_LT_EOF 1>&2
8116
8117*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8118*** create shared libraries on Solaris systems.  Therefore, libtool
8119*** is disabling shared libraries support.  We urge you to upgrade GNU
8120*** binutils to release 2.9.1 or newer.  Another option is to modify
8121*** your PATH or compiler configuration so that the native linker is
8122*** used, and then restart.
8123
8124_LT_EOF
8125      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8126	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8127	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8128      else
8129	ld_shlibs=no
8130      fi
8131      ;;
8132
8133    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8134      case `$LD -v 2>&1` in
8135        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8136	ld_shlibs=no
8137	cat <<_LT_EOF 1>&2
8138
8139*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8140*** reliably create shared libraries on SCO systems.  Therefore, libtool
8141*** is disabling shared libraries support.  We urge you to upgrade GNU
8142*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8143*** your PATH or compiler configuration so that the native linker is
8144*** used, and then restart.
8145
8146_LT_EOF
8147	;;
8148	*)
8149	  # For security reasons, it is highly recommended that you always
8150	  # use absolute paths for naming shared libraries, and exclude the
8151	  # DT_RUNPATH tag from executables and libraries.  But doing so
8152	  # requires that you compile everything twice, which is a pain.
8153	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8154	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8155	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8156	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8157	  else
8158	    ld_shlibs=no
8159	  fi
8160	;;
8161      esac
8162      ;;
8163
8164    sunos4*)
8165      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8166      wlarc=
8167      hardcode_direct=yes
8168      hardcode_shlibpath_var=no
8169      ;;
8170
8171    *)
8172      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8173	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8174	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8175      else
8176	ld_shlibs=no
8177      fi
8178      ;;
8179    esac
8180
8181    if test "$ld_shlibs" = no; then
8182      runpath_var=
8183      hardcode_libdir_flag_spec=
8184      export_dynamic_flag_spec=
8185      whole_archive_flag_spec=
8186    fi
8187  else
8188    # PORTME fill in a description of your system's linker (not GNU ld)
8189    case $host_os in
8190    aix3*)
8191      allow_undefined_flag=unsupported
8192      always_export_symbols=yes
8193      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'
8194      # Note: this linker hardcodes the directories in LIBPATH if there
8195      # are no directories specified by -L.
8196      hardcode_minus_L=yes
8197      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8198	# Neither direct hardcoding nor static linking is supported with a
8199	# broken collect2.
8200	hardcode_direct=unsupported
8201      fi
8202      ;;
8203
8204    aix[4-9]*)
8205      if test "$host_cpu" = ia64; then
8206	# On IA64, the linker does run time linking by default, so we don't
8207	# have to do anything special.
8208	aix_use_runtimelinking=no
8209	exp_sym_flag='-Bexport'
8210	no_entry_flag=""
8211      else
8212	# If we're using GNU nm, then we don't want the "-C" option.
8213	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8214	# Also, AIX nm treats weak defined symbols like other global
8215	# defined symbols, whereas GNU nm marks them as "W".
8216	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8217	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8218	else
8219	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8220	fi
8221	aix_use_runtimelinking=no
8222
8223	# Test if we are trying to use run time linking or normal
8224	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8225	# need to do runtime linking.
8226	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8227	  for ld_flag in $LDFLAGS; do
8228	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8229	    aix_use_runtimelinking=yes
8230	    break
8231	  fi
8232	  done
8233	  ;;
8234	esac
8235
8236	exp_sym_flag='-bexport'
8237	no_entry_flag='-bnoentry'
8238      fi
8239
8240      # When large executables or shared objects are built, AIX ld can
8241      # have problems creating the table of contents.  If linking a library
8242      # or program results in "error TOC overflow" add -mminimal-toc to
8243      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8244      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8245
8246      archive_cmds=''
8247      hardcode_direct=yes
8248      hardcode_direct_absolute=yes
8249      hardcode_libdir_separator=':'
8250      link_all_deplibs=yes
8251      file_list_spec='${wl}-f,'
8252
8253      if test "$GCC" = yes; then
8254	case $host_os in aix4.[012]|aix4.[012].*)
8255	# We only want to do this on AIX 4.2 and lower, the check
8256	# below for broken collect2 doesn't work under 4.3+
8257	  collect2name=`${CC} -print-prog-name=collect2`
8258	  if test -f "$collect2name" &&
8259	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8260	  then
8261	  # We have reworked collect2
8262	  :
8263	  else
8264	  # We have old collect2
8265	  hardcode_direct=unsupported
8266	  # It fails to find uninstalled libraries when the uninstalled
8267	  # path is not listed in the libpath.  Setting hardcode_minus_L
8268	  # to unsupported forces relinking
8269	  hardcode_minus_L=yes
8270	  hardcode_libdir_flag_spec='-L$libdir'
8271	  hardcode_libdir_separator=
8272	  fi
8273	  ;;
8274	esac
8275	shared_flag='-shared'
8276	if test "$aix_use_runtimelinking" = yes; then
8277	  shared_flag="$shared_flag "'${wl}-G'
8278	fi
8279      else
8280	# not using gcc
8281	if test "$host_cpu" = ia64; then
8282	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8283	# chokes on -Wl,-G. The following line is correct:
8284	  shared_flag='-G'
8285	else
8286	  if test "$aix_use_runtimelinking" = yes; then
8287	    shared_flag='${wl}-G'
8288	  else
8289	    shared_flag='${wl}-bM:SRE'
8290	  fi
8291	fi
8292      fi
8293
8294      export_dynamic_flag_spec='${wl}-bexpall'
8295      # It seems that -bexpall does not export symbols beginning with
8296      # underscore (_), so it is better to generate a list of symbols to export.
8297      always_export_symbols=yes
8298      if test "$aix_use_runtimelinking" = yes; then
8299	# Warning - without using the other runtime loading flags (-brtl),
8300	# -berok will link without error, but may produce a broken library.
8301	allow_undefined_flag='-berok'
8302        # Determine the default libpath from the value encoded in an
8303        # empty executable.
8304        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305/* end confdefs.h.  */
8306
8307int
8308main ()
8309{
8310
8311  ;
8312  return 0;
8313}
8314_ACEOF
8315if ac_fn_c_try_link "$LINENO"; then :
8316
8317lt_aix_libpath_sed='
8318    /Import File Strings/,/^$/ {
8319	/^0/ {
8320	    s/^0  *\(.*\)$/\1/
8321	    p
8322	}
8323    }'
8324aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8325# Check for a 64-bit object if we didn't find anything.
8326if test -z "$aix_libpath"; then
8327  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8328fi
8329fi
8330rm -f core conftest.err conftest.$ac_objext \
8331    conftest$ac_exeext conftest.$ac_ext
8332if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8333
8334        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8335        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8336      else
8337	if test "$host_cpu" = ia64; then
8338	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8339	  allow_undefined_flag="-z nodefs"
8340	  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"
8341	else
8342	 # Determine the default libpath from the value encoded in an
8343	 # empty executable.
8344	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345/* end confdefs.h.  */
8346
8347int
8348main ()
8349{
8350
8351  ;
8352  return 0;
8353}
8354_ACEOF
8355if ac_fn_c_try_link "$LINENO"; then :
8356
8357lt_aix_libpath_sed='
8358    /Import File Strings/,/^$/ {
8359	/^0/ {
8360	    s/^0  *\(.*\)$/\1/
8361	    p
8362	}
8363    }'
8364aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8365# Check for a 64-bit object if we didn't find anything.
8366if test -z "$aix_libpath"; then
8367  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8368fi
8369fi
8370rm -f core conftest.err conftest.$ac_objext \
8371    conftest$ac_exeext conftest.$ac_ext
8372if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8373
8374	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8375	  # Warning - without using the other run time loading flags,
8376	  # -berok will link without error, but may produce a broken library.
8377	  no_undefined_flag=' ${wl}-bernotok'
8378	  allow_undefined_flag=' ${wl}-berok'
8379	  if test "$with_gnu_ld" = yes; then
8380	    # We only use this code for GNU lds that support --whole-archive.
8381	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8382	  else
8383	    # Exported symbols can be pulled into shared objects from archives
8384	    whole_archive_flag_spec='$convenience'
8385	  fi
8386	  archive_cmds_need_lc=yes
8387	  # This is similar to how AIX traditionally builds its shared libraries.
8388	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8389	fi
8390      fi
8391      ;;
8392
8393    amigaos*)
8394      case $host_cpu in
8395      powerpc)
8396            # see comment about AmigaOS4 .so support
8397            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8398            archive_expsym_cmds=''
8399        ;;
8400      m68k)
8401            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)'
8402            hardcode_libdir_flag_spec='-L$libdir'
8403            hardcode_minus_L=yes
8404        ;;
8405      esac
8406      ;;
8407
8408    bsdi[45]*)
8409      export_dynamic_flag_spec=-rdynamic
8410      ;;
8411
8412    cygwin* | mingw* | pw32* | cegcc*)
8413      # When not using gcc, we currently assume that we are using
8414      # Microsoft Visual C++.
8415      # hardcode_libdir_flag_spec is actually meaningless, as there is
8416      # no search path for DLLs.
8417      hardcode_libdir_flag_spec=' '
8418      allow_undefined_flag=unsupported
8419      # Tell ltmain to make .lib files, not .a files.
8420      libext=lib
8421      # Tell ltmain to make .dll files, not .so files.
8422      shrext_cmds=".dll"
8423      # FIXME: Setting linknames here is a bad hack.
8424      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8425      # The linker will automatically build a .lib file if we build a DLL.
8426      old_archive_from_new_cmds='true'
8427      # FIXME: Should let the user specify the lib program.
8428      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8429      fix_srcfile_path='`cygpath -w "$srcfile"`'
8430      enable_shared_with_static_runtimes=yes
8431      ;;
8432
8433    darwin* | rhapsody*)
8434
8435
8436  archive_cmds_need_lc=no
8437  hardcode_direct=no
8438  hardcode_automatic=yes
8439  hardcode_shlibpath_var=unsupported
8440  if test "$lt_cv_ld_force_load" = "yes"; then
8441    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\"`'
8442  else
8443    whole_archive_flag_spec=''
8444  fi
8445  link_all_deplibs=yes
8446  allow_undefined_flag="$_lt_dar_allow_undefined"
8447  case $cc_basename in
8448     ifort*) _lt_dar_can_shared=yes ;;
8449     *) _lt_dar_can_shared=$GCC ;;
8450  esac
8451  if test "$_lt_dar_can_shared" = "yes"; then
8452    output_verbose_link_cmd=func_echo_all
8453    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8454    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8455    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}"
8456    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}"
8457
8458  else
8459  ld_shlibs=no
8460  fi
8461
8462      ;;
8463
8464    dgux*)
8465      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8466      hardcode_libdir_flag_spec='-L$libdir'
8467      hardcode_shlibpath_var=no
8468      ;;
8469
8470    freebsd1*)
8471      ld_shlibs=no
8472      ;;
8473
8474    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8475    # support.  Future versions do this automatically, but an explicit c++rt0.o
8476    # does not break anything, and helps significantly (at the cost of a little
8477    # extra space).
8478    freebsd2.2*)
8479      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8480      hardcode_libdir_flag_spec='-R$libdir'
8481      hardcode_direct=yes
8482      hardcode_shlibpath_var=no
8483      ;;
8484
8485    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8486    freebsd2*)
8487      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8488      hardcode_direct=yes
8489      hardcode_minus_L=yes
8490      hardcode_shlibpath_var=no
8491      ;;
8492
8493    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8494    freebsd* | dragonfly*)
8495      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8496      hardcode_libdir_flag_spec='-R$libdir'
8497      hardcode_direct=yes
8498      hardcode_shlibpath_var=no
8499      ;;
8500
8501    hpux9*)
8502      if test "$GCC" = yes; then
8503	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8504      else
8505	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8506      fi
8507      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8508      hardcode_libdir_separator=:
8509      hardcode_direct=yes
8510
8511      # hardcode_minus_L: Not really in the search PATH,
8512      # but as the default location of the library.
8513      hardcode_minus_L=yes
8514      export_dynamic_flag_spec='${wl}-E'
8515      ;;
8516
8517    hpux10*)
8518      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8519	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8520      else
8521	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8522      fi
8523      if test "$with_gnu_ld" = no; then
8524	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8525	hardcode_libdir_flag_spec_ld='+b $libdir'
8526	hardcode_libdir_separator=:
8527	hardcode_direct=yes
8528	hardcode_direct_absolute=yes
8529	export_dynamic_flag_spec='${wl}-E'
8530	# hardcode_minus_L: Not really in the search PATH,
8531	# but as the default location of the library.
8532	hardcode_minus_L=yes
8533      fi
8534      ;;
8535
8536    hpux11*)
8537      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8538	case $host_cpu in
8539	hppa*64*)
8540	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8541	  ;;
8542	ia64*)
8543	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8544	  ;;
8545	*)
8546	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8547	  ;;
8548	esac
8549      else
8550	case $host_cpu in
8551	hppa*64*)
8552	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8553	  ;;
8554	ia64*)
8555	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8556	  ;;
8557	*)
8558
8559	  # Older versions of the 11.00 compiler do not understand -b yet
8560	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8561	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8562$as_echo_n "checking if $CC understands -b... " >&6; }
8563if test "${lt_cv_prog_compiler__b+set}" = set; then :
8564  $as_echo_n "(cached) " >&6
8565else
8566  lt_cv_prog_compiler__b=no
8567   save_LDFLAGS="$LDFLAGS"
8568   LDFLAGS="$LDFLAGS -b"
8569   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8570   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8571     # The linker can only warn and ignore the option if not recognized
8572     # So say no if there are warnings
8573     if test -s conftest.err; then
8574       # Append any errors to the config.log.
8575       cat conftest.err 1>&5
8576       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8577       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8578       if diff conftest.exp conftest.er2 >/dev/null; then
8579         lt_cv_prog_compiler__b=yes
8580       fi
8581     else
8582       lt_cv_prog_compiler__b=yes
8583     fi
8584   fi
8585   $RM -r conftest*
8586   LDFLAGS="$save_LDFLAGS"
8587
8588fi
8589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8590$as_echo "$lt_cv_prog_compiler__b" >&6; }
8591
8592if test x"$lt_cv_prog_compiler__b" = xyes; then
8593    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8594else
8595    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8596fi
8597
8598	  ;;
8599	esac
8600      fi
8601      if test "$with_gnu_ld" = no; then
8602	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8603	hardcode_libdir_separator=:
8604
8605	case $host_cpu in
8606	hppa*64*|ia64*)
8607	  hardcode_direct=no
8608	  hardcode_shlibpath_var=no
8609	  ;;
8610	*)
8611	  hardcode_direct=yes
8612	  hardcode_direct_absolute=yes
8613	  export_dynamic_flag_spec='${wl}-E'
8614
8615	  # hardcode_minus_L: Not really in the search PATH,
8616	  # but as the default location of the library.
8617	  hardcode_minus_L=yes
8618	  ;;
8619	esac
8620      fi
8621      ;;
8622
8623    irix5* | irix6* | nonstopux*)
8624      if test "$GCC" = yes; then
8625	archive_cmds='$CC -shared $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'
8626	# Try to use the -exported_symbol ld option, if it does not
8627	# work, assume that -exports_file does not work either and
8628	# implicitly export all symbols.
8629        save_LDFLAGS="$LDFLAGS"
8630        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8631        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632/* end confdefs.h.  */
8633int foo(void) {}
8634_ACEOF
8635if ac_fn_c_try_link "$LINENO"; then :
8636  archive_expsym_cmds='$CC -shared $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'
8637
8638fi
8639rm -f core conftest.err conftest.$ac_objext \
8640    conftest$ac_exeext conftest.$ac_ext
8641        LDFLAGS="$save_LDFLAGS"
8642      else
8643	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'
8644	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'
8645      fi
8646      archive_cmds_need_lc='no'
8647      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8648      hardcode_libdir_separator=:
8649      inherit_rpath=yes
8650      link_all_deplibs=yes
8651      ;;
8652
8653    netbsd*)
8654      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8655	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8656      else
8657	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8658      fi
8659      hardcode_libdir_flag_spec='-R$libdir'
8660      hardcode_direct=yes
8661      hardcode_shlibpath_var=no
8662      ;;
8663
8664    newsos6)
8665      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8666      hardcode_direct=yes
8667      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8668      hardcode_libdir_separator=:
8669      hardcode_shlibpath_var=no
8670      ;;
8671
8672    *nto* | *qnx*)
8673      ;;
8674
8675    openbsd*)
8676      if test -f /usr/libexec/ld.so; then
8677	hardcode_direct=yes
8678	hardcode_shlibpath_var=no
8679	hardcode_direct_absolute=yes
8680	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8681	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8682	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8683	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8684	  export_dynamic_flag_spec='${wl}-E'
8685	else
8686	  case $host_os in
8687	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8688	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8689	     hardcode_libdir_flag_spec='-R$libdir'
8690	     ;;
8691	   *)
8692	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8693	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8694	     ;;
8695	  esac
8696	fi
8697      else
8698	ld_shlibs=no
8699      fi
8700      ;;
8701
8702    os2*)
8703      hardcode_libdir_flag_spec='-L$libdir'
8704      hardcode_minus_L=yes
8705      allow_undefined_flag=unsupported
8706      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8707      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8708      ;;
8709
8710    osf3*)
8711      if test "$GCC" = yes; then
8712	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8713	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'
8714      else
8715	allow_undefined_flag=' -expect_unresolved \*'
8716	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'
8717      fi
8718      archive_cmds_need_lc='no'
8719      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8720      hardcode_libdir_separator=:
8721      ;;
8722
8723    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8724      if test "$GCC" = yes; then
8725	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8726	archive_cmds='$CC -shared${allow_undefined_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'
8727	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8728      else
8729	allow_undefined_flag=' -expect_unresolved \*'
8730	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'
8731	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~
8732	$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'
8733
8734	# Both c and cxx compiler support -rpath directly
8735	hardcode_libdir_flag_spec='-rpath $libdir'
8736      fi
8737      archive_cmds_need_lc='no'
8738      hardcode_libdir_separator=:
8739      ;;
8740
8741    solaris*)
8742      no_undefined_flag=' -z defs'
8743      if test "$GCC" = yes; then
8744	wlarc='${wl}'
8745	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8746	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8747	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8748      else
8749	case `$CC -V 2>&1` in
8750	*"Compilers 5.0"*)
8751	  wlarc=''
8752	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8753	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8754	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8755	  ;;
8756	*)
8757	  wlarc='${wl}'
8758	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8759	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8760	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8761	  ;;
8762	esac
8763      fi
8764      hardcode_libdir_flag_spec='-R$libdir'
8765      hardcode_shlibpath_var=no
8766      case $host_os in
8767      solaris2.[0-5] | solaris2.[0-5].*) ;;
8768      *)
8769	# The compiler driver will combine and reorder linker options,
8770	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8771	# but is careful enough not to reorder.
8772	# Supported since Solaris 2.6 (maybe 2.5.1?)
8773	if test "$GCC" = yes; then
8774	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8775	else
8776	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8777	fi
8778	;;
8779      esac
8780      link_all_deplibs=yes
8781      ;;
8782
8783    sunos4*)
8784      if test "x$host_vendor" = xsequent; then
8785	# Use $CC to link under sequent, because it throws in some extra .o
8786	# files that make .init and .fini sections work.
8787	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8788      else
8789	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8790      fi
8791      hardcode_libdir_flag_spec='-L$libdir'
8792      hardcode_direct=yes
8793      hardcode_minus_L=yes
8794      hardcode_shlibpath_var=no
8795      ;;
8796
8797    sysv4)
8798      case $host_vendor in
8799	sni)
8800	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8801	  hardcode_direct=yes # is this really true???
8802	;;
8803	siemens)
8804	  ## LD is ld it makes a PLAMLIB
8805	  ## CC just makes a GrossModule.
8806	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8807	  reload_cmds='$CC -r -o $output$reload_objs'
8808	  hardcode_direct=no
8809        ;;
8810	motorola)
8811	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8812	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8813	;;
8814      esac
8815      runpath_var='LD_RUN_PATH'
8816      hardcode_shlibpath_var=no
8817      ;;
8818
8819    sysv4.3*)
8820      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8821      hardcode_shlibpath_var=no
8822      export_dynamic_flag_spec='-Bexport'
8823      ;;
8824
8825    sysv4*MP*)
8826      if test -d /usr/nec; then
8827	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8828	hardcode_shlibpath_var=no
8829	runpath_var=LD_RUN_PATH
8830	hardcode_runpath_var=yes
8831	ld_shlibs=yes
8832      fi
8833      ;;
8834
8835    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8836      no_undefined_flag='${wl}-z,text'
8837      archive_cmds_need_lc=no
8838      hardcode_shlibpath_var=no
8839      runpath_var='LD_RUN_PATH'
8840
8841      if test "$GCC" = yes; then
8842	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8843	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8844      else
8845	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8846	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8847      fi
8848      ;;
8849
8850    sysv5* | sco3.2v5* | sco5v6*)
8851      # Note: We can NOT use -z defs as we might desire, because we do not
8852      # link with -lc, and that would cause any symbols used from libc to
8853      # always be unresolved, which means just about no library would
8854      # ever link correctly.  If we're not using GNU ld we use -z text
8855      # though, which does catch some bad symbols but isn't as heavy-handed
8856      # as -z defs.
8857      no_undefined_flag='${wl}-z,text'
8858      allow_undefined_flag='${wl}-z,nodefs'
8859      archive_cmds_need_lc=no
8860      hardcode_shlibpath_var=no
8861      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8862      hardcode_libdir_separator=':'
8863      link_all_deplibs=yes
8864      export_dynamic_flag_spec='${wl}-Bexport'
8865      runpath_var='LD_RUN_PATH'
8866
8867      if test "$GCC" = yes; then
8868	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8869	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8870      else
8871	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8872	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8873      fi
8874      ;;
8875
8876    uts4*)
8877      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8878      hardcode_libdir_flag_spec='-L$libdir'
8879      hardcode_shlibpath_var=no
8880      ;;
8881
8882    *)
8883      ld_shlibs=no
8884      ;;
8885    esac
8886
8887    if test x$host_vendor = xsni; then
8888      case $host in
8889      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8890	export_dynamic_flag_spec='${wl}-Blargedynsym'
8891	;;
8892      esac
8893    fi
8894  fi
8895
8896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8897$as_echo "$ld_shlibs" >&6; }
8898test "$ld_shlibs" = no && can_build_shared=no
8899
8900with_gnu_ld=$with_gnu_ld
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916#
8917# Do we need to explicitly link libc?
8918#
8919case "x$archive_cmds_need_lc" in
8920x|xyes)
8921  # Assume -lc should be added
8922  archive_cmds_need_lc=yes
8923
8924  if test "$enable_shared" = yes && test "$GCC" = yes; then
8925    case $archive_cmds in
8926    *'~'*)
8927      # FIXME: we may have to deal with multi-command sequences.
8928      ;;
8929    '$CC '*)
8930      # Test whether the compiler implicitly links with -lc since on some
8931      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8932      # to ld, don't add -lc before -lgcc.
8933      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8934$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8935if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
8936  $as_echo_n "(cached) " >&6
8937else
8938  $RM conftest*
8939	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8940
8941	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8942  (eval $ac_compile) 2>&5
8943  ac_status=$?
8944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8945  test $ac_status = 0; } 2>conftest.err; then
8946	  soname=conftest
8947	  lib=conftest
8948	  libobjs=conftest.$ac_objext
8949	  deplibs=
8950	  wl=$lt_prog_compiler_wl
8951	  pic_flag=$lt_prog_compiler_pic
8952	  compiler_flags=-v
8953	  linker_flags=-v
8954	  verstring=
8955	  output_objdir=.
8956	  libname=conftest
8957	  lt_save_allow_undefined_flag=$allow_undefined_flag
8958	  allow_undefined_flag=
8959	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8960  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8961  ac_status=$?
8962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8963  test $ac_status = 0; }
8964	  then
8965	    lt_cv_archive_cmds_need_lc=no
8966	  else
8967	    lt_cv_archive_cmds_need_lc=yes
8968	  fi
8969	  allow_undefined_flag=$lt_save_allow_undefined_flag
8970	else
8971	  cat conftest.err 1>&5
8972	fi
8973	$RM conftest*
8974
8975fi
8976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8977$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8978      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8979      ;;
8980    esac
8981  fi
8982  ;;
8983esac
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9142$as_echo_n "checking dynamic linker characteristics... " >&6; }
9143
9144if test "$GCC" = yes; then
9145  case $host_os in
9146    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9147    *) lt_awk_arg="/^libraries:/" ;;
9148  esac
9149  case $host_os in
9150    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9151    *) lt_sed_strip_eq="s,=/,/,g" ;;
9152  esac
9153  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9154  case $lt_search_path_spec in
9155  *\;*)
9156    # if the path contains ";" then we assume it to be the separator
9157    # otherwise default to the standard path separator (i.e. ":") - it is
9158    # assumed that no part of a normal pathname contains ";" but that should
9159    # okay in the real world where ";" in dirpaths is itself problematic.
9160    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9161    ;;
9162  *)
9163    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9164    ;;
9165  esac
9166  # Ok, now we have the path, separated by spaces, we can step through it
9167  # and add multilib dir if necessary.
9168  lt_tmp_lt_search_path_spec=
9169  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9170  for lt_sys_path in $lt_search_path_spec; do
9171    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9172      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9173    else
9174      test -d "$lt_sys_path" && \
9175	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9176    fi
9177  done
9178  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9179BEGIN {RS=" "; FS="/|\n";} {
9180  lt_foo="";
9181  lt_count=0;
9182  for (lt_i = NF; lt_i > 0; lt_i--) {
9183    if ($lt_i != "" && $lt_i != ".") {
9184      if ($lt_i == "..") {
9185        lt_count++;
9186      } else {
9187        if (lt_count == 0) {
9188          lt_foo="/" $lt_i lt_foo;
9189        } else {
9190          lt_count--;
9191        }
9192      }
9193    }
9194  }
9195  if (lt_foo != "") { lt_freq[lt_foo]++; }
9196  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9197}'`
9198  # AWK program above erroneously prepends '/' to C:/dos/paths
9199  # for these hosts.
9200  case $host_os in
9201    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9202      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9203  esac
9204  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9205else
9206  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9207fi
9208library_names_spec=
9209libname_spec='lib$name'
9210soname_spec=
9211shrext_cmds=".so"
9212postinstall_cmds=
9213postuninstall_cmds=
9214finish_cmds=
9215finish_eval=
9216shlibpath_var=
9217shlibpath_overrides_runpath=unknown
9218version_type=none
9219dynamic_linker="$host_os ld.so"
9220sys_lib_dlsearch_path_spec="/lib /usr/lib"
9221need_lib_prefix=unknown
9222hardcode_into_libs=no
9223
9224# when you set need_version to no, make sure it does not cause -set_version
9225# flags to be left without arguments
9226need_version=unknown
9227
9228case $host_os in
9229aix3*)
9230  version_type=linux
9231  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9232  shlibpath_var=LIBPATH
9233
9234  # AIX 3 has no versioning support, so we append a major version to the name.
9235  soname_spec='${libname}${release}${shared_ext}$major'
9236  ;;
9237
9238aix[4-9]*)
9239  version_type=linux
9240  need_lib_prefix=no
9241  need_version=no
9242  hardcode_into_libs=yes
9243  if test "$host_cpu" = ia64; then
9244    # AIX 5 supports IA64
9245    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9246    shlibpath_var=LD_LIBRARY_PATH
9247  else
9248    # With GCC up to 2.95.x, collect2 would create an import file
9249    # for dependence libraries.  The import file would start with
9250    # the line `#! .'.  This would cause the generated library to
9251    # depend on `.', always an invalid library.  This was fixed in
9252    # development snapshots of GCC prior to 3.0.
9253    case $host_os in
9254      aix4 | aix4.[01] | aix4.[01].*)
9255      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9256	   echo ' yes '
9257	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9258	:
9259      else
9260	can_build_shared=no
9261      fi
9262      ;;
9263    esac
9264    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9265    # soname into executable. Probably we can add versioning support to
9266    # collect2, so additional links can be useful in future.
9267    if test "$aix_use_runtimelinking" = yes; then
9268      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9269      # instead of lib<name>.a to let people know that these are not
9270      # typical AIX shared libraries.
9271      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272    else
9273      # We preserve .a as extension for shared libraries through AIX4.2
9274      # and later when we are not doing run time linking.
9275      library_names_spec='${libname}${release}.a $libname.a'
9276      soname_spec='${libname}${release}${shared_ext}$major'
9277    fi
9278    shlibpath_var=LIBPATH
9279  fi
9280  ;;
9281
9282amigaos*)
9283  case $host_cpu in
9284  powerpc)
9285    # Since July 2007 AmigaOS4 officially supports .so libraries.
9286    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9287    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9288    ;;
9289  m68k)
9290    library_names_spec='$libname.ixlibrary $libname.a'
9291    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9292    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9293    ;;
9294  esac
9295  ;;
9296
9297beos*)
9298  library_names_spec='${libname}${shared_ext}'
9299  dynamic_linker="$host_os ld.so"
9300  shlibpath_var=LIBRARY_PATH
9301  ;;
9302
9303bsdi[45]*)
9304  version_type=linux
9305  need_version=no
9306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9307  soname_spec='${libname}${release}${shared_ext}$major'
9308  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9309  shlibpath_var=LD_LIBRARY_PATH
9310  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9311  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9312  # the default ld.so.conf also contains /usr/contrib/lib and
9313  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9314  # libtool to hard-code these into programs
9315  ;;
9316
9317cygwin* | mingw* | pw32* | cegcc*)
9318  version_type=windows
9319  shrext_cmds=".dll"
9320  need_version=no
9321  need_lib_prefix=no
9322
9323  case $GCC,$host_os in
9324  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9325    library_names_spec='$libname.dll.a'
9326    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9327    postinstall_cmds='base_file=`basename \${file}`~
9328      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9329      dldir=$destdir/`dirname \$dlpath`~
9330      test -d \$dldir || mkdir -p \$dldir~
9331      $install_prog $dir/$dlname \$dldir/$dlname~
9332      chmod a+x \$dldir/$dlname~
9333      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9334        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9335      fi'
9336    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9337      dlpath=$dir/\$dldll~
9338       $RM \$dlpath'
9339    shlibpath_overrides_runpath=yes
9340
9341    case $host_os in
9342    cygwin*)
9343      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9344      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9345
9346      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9347      ;;
9348    mingw* | cegcc*)
9349      # MinGW DLLs use traditional 'lib' prefix
9350      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9351      ;;
9352    pw32*)
9353      # pw32 DLLs use 'pw' prefix rather than 'lib'
9354      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9355      ;;
9356    esac
9357    ;;
9358
9359  *)
9360    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9361    ;;
9362  esac
9363  dynamic_linker='Win32 ld.exe'
9364  # FIXME: first we should search . and the directory the executable is in
9365  shlibpath_var=PATH
9366  ;;
9367
9368darwin* | rhapsody*)
9369  dynamic_linker="$host_os dyld"
9370  version_type=darwin
9371  need_lib_prefix=no
9372  need_version=no
9373  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9374  soname_spec='${libname}${release}${major}$shared_ext'
9375  shlibpath_overrides_runpath=yes
9376  shlibpath_var=DYLD_LIBRARY_PATH
9377  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9378
9379  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9380  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9381  ;;
9382
9383dgux*)
9384  version_type=linux
9385  need_lib_prefix=no
9386  need_version=no
9387  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9388  soname_spec='${libname}${release}${shared_ext}$major'
9389  shlibpath_var=LD_LIBRARY_PATH
9390  ;;
9391
9392freebsd1*)
9393  dynamic_linker=no
9394  ;;
9395
9396freebsd* | dragonfly*)
9397  # DragonFly does not have aout.  When/if they implement a new
9398  # versioning mechanism, adjust this.
9399  if test -x /usr/bin/objformat; then
9400    objformat=`/usr/bin/objformat`
9401  else
9402    case $host_os in
9403    freebsd[123]*) objformat=aout ;;
9404    *) objformat=elf ;;
9405    esac
9406  fi
9407  version_type=freebsd-$objformat
9408  case $version_type in
9409    freebsd-elf*)
9410      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9411      need_version=no
9412      need_lib_prefix=no
9413      ;;
9414    freebsd-*)
9415      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9416      need_version=yes
9417      ;;
9418  esac
9419  shlibpath_var=LD_LIBRARY_PATH
9420  case $host_os in
9421  freebsd2*)
9422    shlibpath_overrides_runpath=yes
9423    ;;
9424  freebsd3.[01]* | freebsdelf3.[01]*)
9425    shlibpath_overrides_runpath=yes
9426    hardcode_into_libs=yes
9427    ;;
9428  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9429  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9430    shlibpath_overrides_runpath=no
9431    hardcode_into_libs=yes
9432    ;;
9433  *) # from 4.6 on, and DragonFly
9434    shlibpath_overrides_runpath=yes
9435    hardcode_into_libs=yes
9436    ;;
9437  esac
9438  ;;
9439
9440gnu*)
9441  version_type=linux
9442  need_lib_prefix=no
9443  need_version=no
9444  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9445  soname_spec='${libname}${release}${shared_ext}$major'
9446  shlibpath_var=LD_LIBRARY_PATH
9447  hardcode_into_libs=yes
9448  ;;
9449
9450haiku*)
9451  version_type=linux
9452  need_lib_prefix=no
9453  need_version=no
9454  dynamic_linker="$host_os runtime_loader"
9455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9456  soname_spec='${libname}${release}${shared_ext}$major'
9457  shlibpath_var=LIBRARY_PATH
9458  shlibpath_overrides_runpath=yes
9459  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9460  hardcode_into_libs=yes
9461  ;;
9462
9463hpux9* | hpux10* | hpux11*)
9464  # Give a soname corresponding to the major version so that dld.sl refuses to
9465  # link against other versions.
9466  version_type=sunos
9467  need_lib_prefix=no
9468  need_version=no
9469  case $host_cpu in
9470  ia64*)
9471    shrext_cmds='.so'
9472    hardcode_into_libs=yes
9473    dynamic_linker="$host_os dld.so"
9474    shlibpath_var=LD_LIBRARY_PATH
9475    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9476    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9477    soname_spec='${libname}${release}${shared_ext}$major'
9478    if test "X$HPUX_IA64_MODE" = X32; then
9479      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9480    else
9481      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9482    fi
9483    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9484    ;;
9485  hppa*64*)
9486    shrext_cmds='.sl'
9487    hardcode_into_libs=yes
9488    dynamic_linker="$host_os dld.sl"
9489    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9490    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9491    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9492    soname_spec='${libname}${release}${shared_ext}$major'
9493    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9494    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9495    ;;
9496  *)
9497    shrext_cmds='.sl'
9498    dynamic_linker="$host_os dld.sl"
9499    shlibpath_var=SHLIB_PATH
9500    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9501    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9502    soname_spec='${libname}${release}${shared_ext}$major'
9503    ;;
9504  esac
9505  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9506  postinstall_cmds='chmod 555 $lib'
9507  # or fails outright, so override atomically:
9508  install_override_mode=555
9509  ;;
9510
9511interix[3-9]*)
9512  version_type=linux
9513  need_lib_prefix=no
9514  need_version=no
9515  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9516  soname_spec='${libname}${release}${shared_ext}$major'
9517  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9518  shlibpath_var=LD_LIBRARY_PATH
9519  shlibpath_overrides_runpath=no
9520  hardcode_into_libs=yes
9521  ;;
9522
9523irix5* | irix6* | nonstopux*)
9524  case $host_os in
9525    nonstopux*) version_type=nonstopux ;;
9526    *)
9527	if test "$lt_cv_prog_gnu_ld" = yes; then
9528		version_type=linux
9529	else
9530		version_type=irix
9531	fi ;;
9532  esac
9533  need_lib_prefix=no
9534  need_version=no
9535  soname_spec='${libname}${release}${shared_ext}$major'
9536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9537  case $host_os in
9538  irix5* | nonstopux*)
9539    libsuff= shlibsuff=
9540    ;;
9541  *)
9542    case $LD in # libtool.m4 will add one of these switches to LD
9543    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9544      libsuff= shlibsuff= libmagic=32-bit;;
9545    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9546      libsuff=32 shlibsuff=N32 libmagic=N32;;
9547    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9548      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9549    *) libsuff= shlibsuff= libmagic=never-match;;
9550    esac
9551    ;;
9552  esac
9553  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9554  shlibpath_overrides_runpath=no
9555  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9556  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9557  hardcode_into_libs=yes
9558  ;;
9559
9560# No shared lib support for Linux oldld, aout, or coff.
9561linux*oldld* | linux*aout* | linux*coff*)
9562  dynamic_linker=no
9563  ;;
9564
9565# This must be Linux ELF.
9566linux* | k*bsd*-gnu | kopensolaris*-gnu)
9567  version_type=linux
9568  need_lib_prefix=no
9569  need_version=no
9570  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571  soname_spec='${libname}${release}${shared_ext}$major'
9572  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9573  shlibpath_var=LD_LIBRARY_PATH
9574  shlibpath_overrides_runpath=no
9575
9576  # Some binutils ld are patched to set DT_RUNPATH
9577  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9578  $as_echo_n "(cached) " >&6
9579else
9580  lt_cv_shlibpath_overrides_runpath=no
9581    save_LDFLAGS=$LDFLAGS
9582    save_libdir=$libdir
9583    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9584	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9585    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586/* end confdefs.h.  */
9587
9588int
9589main ()
9590{
9591
9592  ;
9593  return 0;
9594}
9595_ACEOF
9596if ac_fn_c_try_link "$LINENO"; then :
9597  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9598  lt_cv_shlibpath_overrides_runpath=yes
9599fi
9600fi
9601rm -f core conftest.err conftest.$ac_objext \
9602    conftest$ac_exeext conftest.$ac_ext
9603    LDFLAGS=$save_LDFLAGS
9604    libdir=$save_libdir
9605
9606fi
9607
9608  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9609
9610  # This implies no fast_install, which is unacceptable.
9611  # Some rework will be needed to allow for fast_install
9612  # before this can be enabled.
9613  hardcode_into_libs=yes
9614
9615  # Add ABI-specific directories to the system library path.
9616  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9617
9618  # Append ld.so.conf contents to the search path
9619  if test -f /etc/ld.so.conf; then
9620    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' ' '`
9621    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9622
9623  fi
9624
9625  # We used to test for /lib/ld.so.1 and disable shared libraries on
9626  # powerpc, because MkLinux only supported shared libraries with the
9627  # GNU dynamic linker.  Since this was broken with cross compilers,
9628  # most powerpc-linux boxes support dynamic linking these days and
9629  # people can always --disable-shared, the test was removed, and we
9630  # assume the GNU/Linux dynamic linker is in use.
9631  dynamic_linker='GNU/Linux ld.so'
9632  ;;
9633
9634netbsd*)
9635  version_type=sunos
9636  need_lib_prefix=no
9637  need_version=no
9638  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9639    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9640    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9641    dynamic_linker='NetBSD (a.out) ld.so'
9642  else
9643    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9644    soname_spec='${libname}${release}${shared_ext}$major'
9645    dynamic_linker='NetBSD ld.elf_so'
9646  fi
9647  shlibpath_var=LD_LIBRARY_PATH
9648  shlibpath_overrides_runpath=yes
9649  hardcode_into_libs=yes
9650  ;;
9651
9652newsos6)
9653  version_type=linux
9654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9655  shlibpath_var=LD_LIBRARY_PATH
9656  shlibpath_overrides_runpath=yes
9657  ;;
9658
9659*nto* | *qnx*)
9660  version_type=qnx
9661  need_lib_prefix=no
9662  need_version=no
9663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9664  soname_spec='${libname}${release}${shared_ext}$major'
9665  shlibpath_var=LD_LIBRARY_PATH
9666  shlibpath_overrides_runpath=no
9667  hardcode_into_libs=yes
9668  dynamic_linker='ldqnx.so'
9669  ;;
9670
9671openbsd*)
9672  version_type=sunos
9673  sys_lib_dlsearch_path_spec="/usr/lib"
9674  need_lib_prefix=no
9675  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9676  case $host_os in
9677    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9678    *)				need_version=no  ;;
9679  esac
9680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9681  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9682  shlibpath_var=LD_LIBRARY_PATH
9683  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9684    case $host_os in
9685      openbsd2.[89] | openbsd2.[89].*)
9686	shlibpath_overrides_runpath=no
9687	;;
9688      *)
9689	shlibpath_overrides_runpath=yes
9690	;;
9691      esac
9692  else
9693    shlibpath_overrides_runpath=yes
9694  fi
9695  ;;
9696
9697os2*)
9698  libname_spec='$name'
9699  shrext_cmds=".dll"
9700  need_lib_prefix=no
9701  library_names_spec='$libname${shared_ext} $libname.a'
9702  dynamic_linker='OS/2 ld.exe'
9703  shlibpath_var=LIBPATH
9704  ;;
9705
9706osf3* | osf4* | osf5*)
9707  version_type=osf
9708  need_lib_prefix=no
9709  need_version=no
9710  soname_spec='${libname}${release}${shared_ext}$major'
9711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9712  shlibpath_var=LD_LIBRARY_PATH
9713  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9714  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9715  ;;
9716
9717rdos*)
9718  dynamic_linker=no
9719  ;;
9720
9721solaris*)
9722  version_type=linux
9723  need_lib_prefix=no
9724  need_version=no
9725  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9726  soname_spec='${libname}${release}${shared_ext}$major'
9727  shlibpath_var=LD_LIBRARY_PATH
9728  shlibpath_overrides_runpath=yes
9729  hardcode_into_libs=yes
9730  # ldd complains unless libraries are executable
9731  postinstall_cmds='chmod +x $lib'
9732  ;;
9733
9734sunos4*)
9735  version_type=sunos
9736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9737  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9738  shlibpath_var=LD_LIBRARY_PATH
9739  shlibpath_overrides_runpath=yes
9740  if test "$with_gnu_ld" = yes; then
9741    need_lib_prefix=no
9742  fi
9743  need_version=yes
9744  ;;
9745
9746sysv4 | sysv4.3*)
9747  version_type=linux
9748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9749  soname_spec='${libname}${release}${shared_ext}$major'
9750  shlibpath_var=LD_LIBRARY_PATH
9751  case $host_vendor in
9752    sni)
9753      shlibpath_overrides_runpath=no
9754      need_lib_prefix=no
9755      runpath_var=LD_RUN_PATH
9756      ;;
9757    siemens)
9758      need_lib_prefix=no
9759      ;;
9760    motorola)
9761      need_lib_prefix=no
9762      need_version=no
9763      shlibpath_overrides_runpath=no
9764      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9765      ;;
9766  esac
9767  ;;
9768
9769sysv4*MP*)
9770  if test -d /usr/nec ;then
9771    version_type=linux
9772    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9773    soname_spec='$libname${shared_ext}.$major'
9774    shlibpath_var=LD_LIBRARY_PATH
9775  fi
9776  ;;
9777
9778sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9779  version_type=freebsd-elf
9780  need_lib_prefix=no
9781  need_version=no
9782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9783  soname_spec='${libname}${release}${shared_ext}$major'
9784  shlibpath_var=LD_LIBRARY_PATH
9785  shlibpath_overrides_runpath=yes
9786  hardcode_into_libs=yes
9787  if test "$with_gnu_ld" = yes; then
9788    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9789  else
9790    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9791    case $host_os in
9792      sco3.2v5*)
9793        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9794	;;
9795    esac
9796  fi
9797  sys_lib_dlsearch_path_spec='/usr/lib'
9798  ;;
9799
9800tpf*)
9801  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9802  version_type=linux
9803  need_lib_prefix=no
9804  need_version=no
9805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806  shlibpath_var=LD_LIBRARY_PATH
9807  shlibpath_overrides_runpath=no
9808  hardcode_into_libs=yes
9809  ;;
9810
9811uts4*)
9812  version_type=linux
9813  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9814  soname_spec='${libname}${release}${shared_ext}$major'
9815  shlibpath_var=LD_LIBRARY_PATH
9816  ;;
9817
9818*)
9819  dynamic_linker=no
9820  ;;
9821esac
9822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9823$as_echo "$dynamic_linker" >&6; }
9824test "$dynamic_linker" = no && can_build_shared=no
9825
9826variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9827if test "$GCC" = yes; then
9828  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9829fi
9830
9831if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9832  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9833fi
9834if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9835  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9836fi
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9930$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9931hardcode_action=
9932if test -n "$hardcode_libdir_flag_spec" ||
9933   test -n "$runpath_var" ||
9934   test "X$hardcode_automatic" = "Xyes" ; then
9935
9936  # We can hardcode non-existent directories.
9937  if test "$hardcode_direct" != no &&
9938     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9939     # have to relink, otherwise we might link with an installed library
9940     # when we should be linking with a yet-to-be-installed one
9941     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9942     test "$hardcode_minus_L" != no; then
9943    # Linking always hardcodes the temporary library directory.
9944    hardcode_action=relink
9945  else
9946    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9947    hardcode_action=immediate
9948  fi
9949else
9950  # We cannot hardcode anything, or else we can only hardcode existing
9951  # directories.
9952  hardcode_action=unsupported
9953fi
9954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9955$as_echo "$hardcode_action" >&6; }
9956
9957if test "$hardcode_action" = relink ||
9958   test "$inherit_rpath" = yes; then
9959  # Fast installation is not supported
9960  enable_fast_install=no
9961elif test "$shlibpath_overrides_runpath" = yes ||
9962     test "$enable_shared" = no; then
9963  # Fast installation is not necessary
9964  enable_fast_install=needless
9965fi
9966
9967
9968
9969
9970
9971
9972  if test "x$enable_dlopen" != xyes; then
9973  enable_dlopen=unknown
9974  enable_dlopen_self=unknown
9975  enable_dlopen_self_static=unknown
9976else
9977  lt_cv_dlopen=no
9978  lt_cv_dlopen_libs=
9979
9980  case $host_os in
9981  beos*)
9982    lt_cv_dlopen="load_add_on"
9983    lt_cv_dlopen_libs=
9984    lt_cv_dlopen_self=yes
9985    ;;
9986
9987  mingw* | pw32* | cegcc*)
9988    lt_cv_dlopen="LoadLibrary"
9989    lt_cv_dlopen_libs=
9990    ;;
9991
9992  cygwin*)
9993    lt_cv_dlopen="dlopen"
9994    lt_cv_dlopen_libs=
9995    ;;
9996
9997  darwin*)
9998  # if libdl is installed we need to link against it
9999    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10000$as_echo_n "checking for dlopen in -ldl... " >&6; }
10001if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10002  $as_echo_n "(cached) " >&6
10003else
10004  ac_check_lib_save_LIBS=$LIBS
10005LIBS="-ldl  $LIBS"
10006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007/* end confdefs.h.  */
10008
10009/* Override any GCC internal prototype to avoid an error.
10010   Use char because int might match the return type of a GCC
10011   builtin and then its argument prototype would still apply.  */
10012#ifdef __cplusplus
10013extern "C"
10014#endif
10015char dlopen ();
10016int
10017main ()
10018{
10019return dlopen ();
10020  ;
10021  return 0;
10022}
10023_ACEOF
10024if ac_fn_c_try_link "$LINENO"; then :
10025  ac_cv_lib_dl_dlopen=yes
10026else
10027  ac_cv_lib_dl_dlopen=no
10028fi
10029rm -f core conftest.err conftest.$ac_objext \
10030    conftest$ac_exeext conftest.$ac_ext
10031LIBS=$ac_check_lib_save_LIBS
10032fi
10033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10034$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10035if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10036  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10037else
10038
10039    lt_cv_dlopen="dyld"
10040    lt_cv_dlopen_libs=
10041    lt_cv_dlopen_self=yes
10042
10043fi
10044
10045    ;;
10046
10047  *)
10048    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10049if test "x$ac_cv_func_shl_load" = x""yes; then :
10050  lt_cv_dlopen="shl_load"
10051else
10052  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10053$as_echo_n "checking for shl_load in -ldld... " >&6; }
10054if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10055  $as_echo_n "(cached) " >&6
10056else
10057  ac_check_lib_save_LIBS=$LIBS
10058LIBS="-ldld  $LIBS"
10059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060/* end confdefs.h.  */
10061
10062/* Override any GCC internal prototype to avoid an error.
10063   Use char because int might match the return type of a GCC
10064   builtin and then its argument prototype would still apply.  */
10065#ifdef __cplusplus
10066extern "C"
10067#endif
10068char shl_load ();
10069int
10070main ()
10071{
10072return shl_load ();
10073  ;
10074  return 0;
10075}
10076_ACEOF
10077if ac_fn_c_try_link "$LINENO"; then :
10078  ac_cv_lib_dld_shl_load=yes
10079else
10080  ac_cv_lib_dld_shl_load=no
10081fi
10082rm -f core conftest.err conftest.$ac_objext \
10083    conftest$ac_exeext conftest.$ac_ext
10084LIBS=$ac_check_lib_save_LIBS
10085fi
10086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10087$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10088if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10089  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10090else
10091  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10092if test "x$ac_cv_func_dlopen" = x""yes; then :
10093  lt_cv_dlopen="dlopen"
10094else
10095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10096$as_echo_n "checking for dlopen in -ldl... " >&6; }
10097if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10098  $as_echo_n "(cached) " >&6
10099else
10100  ac_check_lib_save_LIBS=$LIBS
10101LIBS="-ldl  $LIBS"
10102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103/* end confdefs.h.  */
10104
10105/* Override any GCC internal prototype to avoid an error.
10106   Use char because int might match the return type of a GCC
10107   builtin and then its argument prototype would still apply.  */
10108#ifdef __cplusplus
10109extern "C"
10110#endif
10111char dlopen ();
10112int
10113main ()
10114{
10115return dlopen ();
10116  ;
10117  return 0;
10118}
10119_ACEOF
10120if ac_fn_c_try_link "$LINENO"; then :
10121  ac_cv_lib_dl_dlopen=yes
10122else
10123  ac_cv_lib_dl_dlopen=no
10124fi
10125rm -f core conftest.err conftest.$ac_objext \
10126    conftest$ac_exeext conftest.$ac_ext
10127LIBS=$ac_check_lib_save_LIBS
10128fi
10129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10130$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10131if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10132  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10133else
10134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10135$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10136if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10137  $as_echo_n "(cached) " >&6
10138else
10139  ac_check_lib_save_LIBS=$LIBS
10140LIBS="-lsvld  $LIBS"
10141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142/* end confdefs.h.  */
10143
10144/* Override any GCC internal prototype to avoid an error.
10145   Use char because int might match the return type of a GCC
10146   builtin and then its argument prototype would still apply.  */
10147#ifdef __cplusplus
10148extern "C"
10149#endif
10150char dlopen ();
10151int
10152main ()
10153{
10154return dlopen ();
10155  ;
10156  return 0;
10157}
10158_ACEOF
10159if ac_fn_c_try_link "$LINENO"; then :
10160  ac_cv_lib_svld_dlopen=yes
10161else
10162  ac_cv_lib_svld_dlopen=no
10163fi
10164rm -f core conftest.err conftest.$ac_objext \
10165    conftest$ac_exeext conftest.$ac_ext
10166LIBS=$ac_check_lib_save_LIBS
10167fi
10168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10169$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10170if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10171  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10172else
10173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10174$as_echo_n "checking for dld_link in -ldld... " >&6; }
10175if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10176  $as_echo_n "(cached) " >&6
10177else
10178  ac_check_lib_save_LIBS=$LIBS
10179LIBS="-ldld  $LIBS"
10180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181/* end confdefs.h.  */
10182
10183/* Override any GCC internal prototype to avoid an error.
10184   Use char because int might match the return type of a GCC
10185   builtin and then its argument prototype would still apply.  */
10186#ifdef __cplusplus
10187extern "C"
10188#endif
10189char dld_link ();
10190int
10191main ()
10192{
10193return dld_link ();
10194  ;
10195  return 0;
10196}
10197_ACEOF
10198if ac_fn_c_try_link "$LINENO"; then :
10199  ac_cv_lib_dld_dld_link=yes
10200else
10201  ac_cv_lib_dld_dld_link=no
10202fi
10203rm -f core conftest.err conftest.$ac_objext \
10204    conftest$ac_exeext conftest.$ac_ext
10205LIBS=$ac_check_lib_save_LIBS
10206fi
10207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10208$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10209if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10210  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10211fi
10212
10213
10214fi
10215
10216
10217fi
10218
10219
10220fi
10221
10222
10223fi
10224
10225
10226fi
10227
10228    ;;
10229  esac
10230
10231  if test "x$lt_cv_dlopen" != xno; then
10232    enable_dlopen=yes
10233  else
10234    enable_dlopen=no
10235  fi
10236
10237  case $lt_cv_dlopen in
10238  dlopen)
10239    save_CPPFLAGS="$CPPFLAGS"
10240    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10241
10242    save_LDFLAGS="$LDFLAGS"
10243    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10244
10245    save_LIBS="$LIBS"
10246    LIBS="$lt_cv_dlopen_libs $LIBS"
10247
10248    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10249$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10250if test "${lt_cv_dlopen_self+set}" = set; then :
10251  $as_echo_n "(cached) " >&6
10252else
10253  	  if test "$cross_compiling" = yes; then :
10254  lt_cv_dlopen_self=cross
10255else
10256  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10257  lt_status=$lt_dlunknown
10258  cat > conftest.$ac_ext <<_LT_EOF
10259#line $LINENO "configure"
10260#include "confdefs.h"
10261
10262#if HAVE_DLFCN_H
10263#include <dlfcn.h>
10264#endif
10265
10266#include <stdio.h>
10267
10268#ifdef RTLD_GLOBAL
10269#  define LT_DLGLOBAL		RTLD_GLOBAL
10270#else
10271#  ifdef DL_GLOBAL
10272#    define LT_DLGLOBAL		DL_GLOBAL
10273#  else
10274#    define LT_DLGLOBAL		0
10275#  endif
10276#endif
10277
10278/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10279   find out it does not work in some platform. */
10280#ifndef LT_DLLAZY_OR_NOW
10281#  ifdef RTLD_LAZY
10282#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10283#  else
10284#    ifdef DL_LAZY
10285#      define LT_DLLAZY_OR_NOW		DL_LAZY
10286#    else
10287#      ifdef RTLD_NOW
10288#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10289#      else
10290#        ifdef DL_NOW
10291#          define LT_DLLAZY_OR_NOW	DL_NOW
10292#        else
10293#          define LT_DLLAZY_OR_NOW	0
10294#        endif
10295#      endif
10296#    endif
10297#  endif
10298#endif
10299
10300/* When -fvisbility=hidden is used, assume the code has been annotated
10301   correspondingly for the symbols needed.  */
10302#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10303void fnord () __attribute__((visibility("default")));
10304#endif
10305
10306void fnord () { int i=42; }
10307int main ()
10308{
10309  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10310  int status = $lt_dlunknown;
10311
10312  if (self)
10313    {
10314      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10315      else
10316        {
10317	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10318          else puts (dlerror ());
10319	}
10320      /* dlclose (self); */
10321    }
10322  else
10323    puts (dlerror ());
10324
10325  return status;
10326}
10327_LT_EOF
10328  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10329  (eval $ac_link) 2>&5
10330  ac_status=$?
10331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10332  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10333    (./conftest; exit; ) >&5 2>/dev/null
10334    lt_status=$?
10335    case x$lt_status in
10336      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10337      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10338      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10339    esac
10340  else :
10341    # compilation failed
10342    lt_cv_dlopen_self=no
10343  fi
10344fi
10345rm -fr conftest*
10346
10347
10348fi
10349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10350$as_echo "$lt_cv_dlopen_self" >&6; }
10351
10352    if test "x$lt_cv_dlopen_self" = xyes; then
10353      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10354      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10355$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10356if test "${lt_cv_dlopen_self_static+set}" = set; then :
10357  $as_echo_n "(cached) " >&6
10358else
10359  	  if test "$cross_compiling" = yes; then :
10360  lt_cv_dlopen_self_static=cross
10361else
10362  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10363  lt_status=$lt_dlunknown
10364  cat > conftest.$ac_ext <<_LT_EOF
10365#line $LINENO "configure"
10366#include "confdefs.h"
10367
10368#if HAVE_DLFCN_H
10369#include <dlfcn.h>
10370#endif
10371
10372#include <stdio.h>
10373
10374#ifdef RTLD_GLOBAL
10375#  define LT_DLGLOBAL		RTLD_GLOBAL
10376#else
10377#  ifdef DL_GLOBAL
10378#    define LT_DLGLOBAL		DL_GLOBAL
10379#  else
10380#    define LT_DLGLOBAL		0
10381#  endif
10382#endif
10383
10384/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10385   find out it does not work in some platform. */
10386#ifndef LT_DLLAZY_OR_NOW
10387#  ifdef RTLD_LAZY
10388#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10389#  else
10390#    ifdef DL_LAZY
10391#      define LT_DLLAZY_OR_NOW		DL_LAZY
10392#    else
10393#      ifdef RTLD_NOW
10394#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10395#      else
10396#        ifdef DL_NOW
10397#          define LT_DLLAZY_OR_NOW	DL_NOW
10398#        else
10399#          define LT_DLLAZY_OR_NOW	0
10400#        endif
10401#      endif
10402#    endif
10403#  endif
10404#endif
10405
10406/* When -fvisbility=hidden is used, assume the code has been annotated
10407   correspondingly for the symbols needed.  */
10408#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10409void fnord () __attribute__((visibility("default")));
10410#endif
10411
10412void fnord () { int i=42; }
10413int main ()
10414{
10415  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10416  int status = $lt_dlunknown;
10417
10418  if (self)
10419    {
10420      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10421      else
10422        {
10423	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10424          else puts (dlerror ());
10425	}
10426      /* dlclose (self); */
10427    }
10428  else
10429    puts (dlerror ());
10430
10431  return status;
10432}
10433_LT_EOF
10434  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10435  (eval $ac_link) 2>&5
10436  ac_status=$?
10437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10438  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10439    (./conftest; exit; ) >&5 2>/dev/null
10440    lt_status=$?
10441    case x$lt_status in
10442      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10443      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10444      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10445    esac
10446  else :
10447    # compilation failed
10448    lt_cv_dlopen_self_static=no
10449  fi
10450fi
10451rm -fr conftest*
10452
10453
10454fi
10455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10456$as_echo "$lt_cv_dlopen_self_static" >&6; }
10457    fi
10458
10459    CPPFLAGS="$save_CPPFLAGS"
10460    LDFLAGS="$save_LDFLAGS"
10461    LIBS="$save_LIBS"
10462    ;;
10463  esac
10464
10465  case $lt_cv_dlopen_self in
10466  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10467  *) enable_dlopen_self=unknown ;;
10468  esac
10469
10470  case $lt_cv_dlopen_self_static in
10471  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10472  *) enable_dlopen_self_static=unknown ;;
10473  esac
10474fi
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492striplib=
10493old_striplib=
10494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10495$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10496if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10497  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10498  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10500$as_echo "yes" >&6; }
10501else
10502# FIXME - insert some real tests, host_os isn't really good enough
10503  case $host_os in
10504  darwin*)
10505    if test -n "$STRIP" ; then
10506      striplib="$STRIP -x"
10507      old_striplib="$STRIP -S"
10508      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10509$as_echo "yes" >&6; }
10510    else
10511      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512$as_echo "no" >&6; }
10513    fi
10514    ;;
10515  *)
10516    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517$as_echo "no" >&6; }
10518    ;;
10519  esac
10520fi
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533  # Report which library types will actually be built
10534  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10535$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10537$as_echo "$can_build_shared" >&6; }
10538
10539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10540$as_echo_n "checking whether to build shared libraries... " >&6; }
10541  test "$can_build_shared" = "no" && enable_shared=no
10542
10543  # On AIX, shared libraries and static libraries use the same namespace, and
10544  # are all built from PIC.
10545  case $host_os in
10546  aix3*)
10547    test "$enable_shared" = yes && enable_static=no
10548    if test -n "$RANLIB"; then
10549      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10550      postinstall_cmds='$RANLIB $lib'
10551    fi
10552    ;;
10553
10554  aix[4-9]*)
10555    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10556      test "$enable_shared" = yes && enable_static=no
10557    fi
10558    ;;
10559  esac
10560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10561$as_echo "$enable_shared" >&6; }
10562
10563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10564$as_echo_n "checking whether to build static libraries... " >&6; }
10565  # Make sure either enable_shared or enable_static is yes.
10566  test "$enable_shared" = yes || enable_static=yes
10567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10568$as_echo "$enable_static" >&6; }
10569
10570
10571
10572
10573fi
10574ac_ext=c
10575ac_cpp='$CPP $CPPFLAGS'
10576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10578ac_compiler_gnu=$ac_cv_c_compiler_gnu
10579
10580CC="$lt_save_CC"
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594        ac_config_commands="$ac_config_commands libtool"
10595
10596
10597
10598
10599# Only expand once:
10600
10601
10602
10603# Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
10616$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
10617if test "${ac_cv_prog_cc_c99+set}" = set; then :
10618  $as_echo_n "(cached) " >&6
10619else
10620  ac_cv_prog_cc_c99=no
10621ac_save_CC=$CC
10622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623/* end confdefs.h.  */
10624#include <stdarg.h>
10625#include <stdbool.h>
10626#include <stdlib.h>
10627#include <wchar.h>
10628#include <stdio.h>
10629
10630// Check varargs macros.  These examples are taken from C99 6.10.3.5.
10631#define debug(...) fprintf (stderr, __VA_ARGS__)
10632#define showlist(...) puts (#__VA_ARGS__)
10633#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
10634static void
10635test_varargs_macros (void)
10636{
10637  int x = 1234;
10638  int y = 5678;
10639  debug ("Flag");
10640  debug ("X = %d\n", x);
10641  showlist (The first, second, and third items.);
10642  report (x>y, "x is %d but y is %d", x, y);
10643}
10644
10645// Check long long types.
10646#define BIG64 18446744073709551615ull
10647#define BIG32 4294967295ul
10648#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
10649#if !BIG_OK
10650  your preprocessor is broken;
10651#endif
10652#if BIG_OK
10653#else
10654  your preprocessor is broken;
10655#endif
10656static long long int bignum = -9223372036854775807LL;
10657static unsigned long long int ubignum = BIG64;
10658
10659struct incomplete_array
10660{
10661  int datasize;
10662  double data[];
10663};
10664
10665struct named_init {
10666  int number;
10667  const wchar_t *name;
10668  double average;
10669};
10670
10671typedef const char *ccp;
10672
10673static inline int
10674test_restrict (ccp restrict text)
10675{
10676  // See if C++-style comments work.
10677  // Iterate through items via the restricted pointer.
10678  // Also check for declarations in for loops.
10679  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
10680    continue;
10681  return 0;
10682}
10683
10684// Check varargs and va_copy.
10685static void
10686test_varargs (const char *format, ...)
10687{
10688  va_list args;
10689  va_start (args, format);
10690  va_list args_copy;
10691  va_copy (args_copy, args);
10692
10693  const char *str;
10694  int number;
10695  float fnumber;
10696
10697  while (*format)
10698    {
10699      switch (*format++)
10700	{
10701	case 's': // string
10702	  str = va_arg (args_copy, const char *);
10703	  break;
10704	case 'd': // int
10705	  number = va_arg (args_copy, int);
10706	  break;
10707	case 'f': // float
10708	  fnumber = va_arg (args_copy, double);
10709	  break;
10710	default:
10711	  break;
10712	}
10713    }
10714  va_end (args_copy);
10715  va_end (args);
10716}
10717
10718int
10719main ()
10720{
10721
10722  // Check bool.
10723  _Bool success = false;
10724
10725  // Check restrict.
10726  if (test_restrict ("String literal") == 0)
10727    success = true;
10728  char *restrict newvar = "Another string";
10729
10730  // Check varargs.
10731  test_varargs ("s, d' f .", "string", 65, 34.234);
10732  test_varargs_macros ();
10733
10734  // Check flexible array members.
10735  struct incomplete_array *ia =
10736    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
10737  ia->datasize = 10;
10738  for (int i = 0; i < ia->datasize; ++i)
10739    ia->data[i] = i * 1.234;
10740
10741  // Check named initializers.
10742  struct named_init ni = {
10743    .number = 34,
10744    .name = L"Test wide string",
10745    .average = 543.34343,
10746  };
10747
10748  ni.number = 58;
10749
10750  int dynamic_array[ni.number];
10751  dynamic_array[ni.number - 1] = 543;
10752
10753  // work around unused variable warnings
10754  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
10755	  || dynamic_array[ni.number - 1] != 543);
10756
10757  ;
10758  return 0;
10759}
10760_ACEOF
10761for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
10762do
10763  CC="$ac_save_CC $ac_arg"
10764  if ac_fn_c_try_compile "$LINENO"; then :
10765  ac_cv_prog_cc_c99=$ac_arg
10766fi
10767rm -f core conftest.err conftest.$ac_objext
10768  test "x$ac_cv_prog_cc_c99" != "xno" && break
10769done
10770rm -f conftest.$ac_ext
10771CC=$ac_save_CC
10772
10773fi
10774# AC_CACHE_VAL
10775case "x$ac_cv_prog_cc_c99" in
10776  x)
10777    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10778$as_echo "none needed" >&6; } ;;
10779  xno)
10780    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10781$as_echo "unsupported" >&6; } ;;
10782  *)
10783    CC="$CC $ac_cv_prog_cc_c99"
10784    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
10785$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
10786esac
10787if test "x$ac_cv_prog_cc_c99" != xno; then :
10788
10789fi
10790
10791
10792
10793
10794
10795
10796
10797
10798if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10799	if test -n "$ac_tool_prefix"; then
10800  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10801set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10803$as_echo_n "checking for $ac_word... " >&6; }
10804if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10805  $as_echo_n "(cached) " >&6
10806else
10807  case $PKG_CONFIG in
10808  [\\/]* | ?:[\\/]*)
10809  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10810  ;;
10811  *)
10812  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10813for as_dir in $PATH
10814do
10815  IFS=$as_save_IFS
10816  test -z "$as_dir" && as_dir=.
10817    for ac_exec_ext in '' $ac_executable_extensions; do
10818  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10819    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10821    break 2
10822  fi
10823done
10824  done
10825IFS=$as_save_IFS
10826
10827  ;;
10828esac
10829fi
10830PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10831if test -n "$PKG_CONFIG"; then
10832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10833$as_echo "$PKG_CONFIG" >&6; }
10834else
10835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10836$as_echo "no" >&6; }
10837fi
10838
10839
10840fi
10841if test -z "$ac_cv_path_PKG_CONFIG"; then
10842  ac_pt_PKG_CONFIG=$PKG_CONFIG
10843  # Extract the first word of "pkg-config", so it can be a program name with args.
10844set dummy pkg-config; ac_word=$2
10845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10846$as_echo_n "checking for $ac_word... " >&6; }
10847if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10848  $as_echo_n "(cached) " >&6
10849else
10850  case $ac_pt_PKG_CONFIG in
10851  [\\/]* | ?:[\\/]*)
10852  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10853  ;;
10854  *)
10855  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856for as_dir in $PATH
10857do
10858  IFS=$as_save_IFS
10859  test -z "$as_dir" && as_dir=.
10860    for ac_exec_ext in '' $ac_executable_extensions; do
10861  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10862    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10864    break 2
10865  fi
10866done
10867  done
10868IFS=$as_save_IFS
10869
10870  ;;
10871esac
10872fi
10873ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10874if test -n "$ac_pt_PKG_CONFIG"; then
10875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10876$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10877else
10878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879$as_echo "no" >&6; }
10880fi
10881
10882  if test "x$ac_pt_PKG_CONFIG" = x; then
10883    PKG_CONFIG=""
10884  else
10885    case $cross_compiling:$ac_tool_warned in
10886yes:)
10887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10889ac_tool_warned=yes ;;
10890esac
10891    PKG_CONFIG=$ac_pt_PKG_CONFIG
10892  fi
10893else
10894  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10895fi
10896
10897fi
10898if test -n "$PKG_CONFIG"; then
10899	_pkg_min_version=0.9.0
10900	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10901$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10902	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10903		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10904$as_echo "yes" >&6; }
10905	else
10906		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907$as_echo "no" >&6; }
10908		PKG_CONFIG=""
10909	fi
10910fi
10911
10912
10913
10914
10915if  test "x$GCC" = xyes ; then
10916    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
10917-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
10918-Wbad-function-cast -Wformat=2"
10919    case `$CC -dumpversion` in
10920    3.4.* | 4.*)
10921	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
10922	;;
10923    esac
10924else
10925    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10926if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
10927  SUNCC="yes"
10928else
10929  SUNCC="no"
10930fi
10931
10932    if test "x$SUNCC" = "xyes"; then
10933	CWARNFLAGS="-v"
10934    fi
10935fi
10936
10937
10938
10939# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
10940
10941
10942
10943# Check whether --enable-strict-compilation was given.
10944if test "${enable_strict_compilation+set}" = set; then :
10945  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10946else
10947  STRICT_COMPILE=no
10948fi
10949
10950if test "x$STRICT_COMPILE" = "xyes"; then
10951	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10952if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
10953  SUNCC="yes"
10954else
10955  SUNCC="no"
10956fi
10957
10958	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
10959if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
10960  INTELCC="yes"
10961else
10962  INTELCC="no"
10963fi
10964
10965	if test "x$GCC" = xyes ; then
10966		STRICT_CFLAGS="-pedantic -Werror"
10967	elif test "x$SUNCC" = "xyes"; then
10968		STRICT_CFLAGS="-errwarn"
10969    elif test "x$INTELCC" = "xyes"; then
10970		STRICT_CFLAGS="-Werror"
10971	fi
10972fi
10973CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10974
10975
10976
10977
10978cat >>confdefs.h <<_ACEOF
10979#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10980_ACEOF
10981
10982	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10983	if test "x$PVM" = "x"; then
10984		PVM="0"
10985	fi
10986
10987cat >>confdefs.h <<_ACEOF
10988#define PACKAGE_VERSION_MINOR $PVM
10989_ACEOF
10990
10991	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10992	if test "x$PVP" = "x"; then
10993		PVP="0"
10994	fi
10995
10996cat >>confdefs.h <<_ACEOF
10997#define PACKAGE_VERSION_PATCHLEVEL $PVP
10998_ACEOF
10999
11000
11001
11002CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
11003mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11004|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
11005echo 'git directory not found: installing possibly empty changelog.' >&2)"
11006
11007
11008
11009
11010macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11011INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11012mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11013|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
11014echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
11015
11016
11017
11018
11019
11020
11021if test x$APP_MAN_SUFFIX = x    ; then
11022    APP_MAN_SUFFIX=1
11023fi
11024if test x$APP_MAN_DIR = x    ; then
11025    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11026fi
11027
11028if test x$LIB_MAN_SUFFIX = x    ; then
11029    LIB_MAN_SUFFIX=3
11030fi
11031if test x$LIB_MAN_DIR = x    ; then
11032    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11033fi
11034
11035if test x$FILE_MAN_SUFFIX = x    ; then
11036    case $host_os in
11037	solaris*)	FILE_MAN_SUFFIX=4  ;;
11038	*)		FILE_MAN_SUFFIX=5  ;;
11039    esac
11040fi
11041if test x$FILE_MAN_DIR = x    ; then
11042    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11043fi
11044
11045if test x$MISC_MAN_SUFFIX = x    ; then
11046    case $host_os in
11047	solaris*)	MISC_MAN_SUFFIX=5  ;;
11048	*)		MISC_MAN_SUFFIX=7  ;;
11049    esac
11050fi
11051if test x$MISC_MAN_DIR = x    ; then
11052    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11053fi
11054
11055if test x$DRIVER_MAN_SUFFIX = x    ; then
11056    case $host_os in
11057	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
11058	*)		DRIVER_MAN_SUFFIX=4  ;;
11059    esac
11060fi
11061if test x$DRIVER_MAN_DIR = x    ; then
11062    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11063fi
11064
11065if test x$ADMIN_MAN_SUFFIX = x    ; then
11066    case $host_os in
11067	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
11068	*)		ADMIN_MAN_SUFFIX=8  ;;
11069    esac
11070fi
11071if test x$ADMIN_MAN_DIR = x    ; then
11072    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11073fi
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089XORG_MAN_PAGE="X Version 11"
11090
11091MAN_SUBSTS="\
11092	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11093	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11094	-e 's|__xservername__|Xorg|g' \
11095	-e 's|__xconfigfile__|xorg.conf|g' \
11096	-e 's|__projectroot__|\$(prefix)|g' \
11097	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11098	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11099	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11100	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11101	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11102	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11103
11104
11105
11106# Check whether --enable-silent-rules was given.
11107if test "${enable_silent_rules+set}" = set; then :
11108  enableval=$enable_silent_rules;
11109fi
11110
11111case $enable_silent_rules in
11112yes) AM_DEFAULT_VERBOSITY=0;;
11113no)  AM_DEFAULT_VERBOSITY=1;;
11114*)   AM_DEFAULT_VERBOSITY=0;;
11115esac
11116AM_BACKSLASH='\'
11117
11118
11119
11120# Checks for libraries.
11121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rint in -lm" >&5
11122$as_echo_n "checking for rint in -lm... " >&6; }
11123if test "${ac_cv_lib_m_rint+set}" = set; then :
11124  $as_echo_n "(cached) " >&6
11125else
11126  ac_check_lib_save_LIBS=$LIBS
11127LIBS="-lm  $LIBS"
11128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11129/* end confdefs.h.  */
11130
11131/* Override any GCC internal prototype to avoid an error.
11132   Use char because int might match the return type of a GCC
11133   builtin and then its argument prototype would still apply.  */
11134#ifdef __cplusplus
11135extern "C"
11136#endif
11137char rint ();
11138int
11139main ()
11140{
11141return rint ();
11142  ;
11143  return 0;
11144}
11145_ACEOF
11146if ac_fn_c_try_link "$LINENO"; then :
11147  ac_cv_lib_m_rint=yes
11148else
11149  ac_cv_lib_m_rint=no
11150fi
11151rm -f core conftest.err conftest.$ac_objext \
11152    conftest$ac_exeext conftest.$ac_ext
11153LIBS=$ac_check_lib_save_LIBS
11154fi
11155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_rint" >&5
11156$as_echo "$ac_cv_lib_m_rint" >&6; }
11157if test "x$ac_cv_lib_m_rint" = x""yes; then :
11158  cat >>confdefs.h <<_ACEOF
11159#define HAVE_LIBM 1
11160_ACEOF
11161
11162  LIBS="-lm $LIBS"
11163
11164fi
11165
11166
11167# Store the list of server defined optional extensions in REQUIRED_MODULES
11168
11169
11170	SAVE_CFLAGS="$CFLAGS"
11171	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11172	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173/* end confdefs.h.  */
11174
11175#include "xorg-server.h"
11176#if !defined RANDR
11177#error RANDR not defined
11178#endif
11179
11180int
11181main ()
11182{
11183
11184  ;
11185  return 0;
11186}
11187_ACEOF
11188if ac_fn_c_try_compile "$LINENO"; then :
11189  _EXT_CHECK=yes
11190else
11191  _EXT_CHECK=no
11192fi
11193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11194	CFLAGS="$SAVE_CFLAGS"
11195	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
11196$as_echo_n "checking if RANDR is defined... " >&6; }
11197	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11198$as_echo "$_EXT_CHECK" >&6; }
11199	if test "$_EXT_CHECK" != no; then
11200		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
11201	fi
11202
11203
11204# Obtain compiler/linker options for the Synaptics driver dependencies
11205
11206pkg_failed=no
11207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
11208$as_echo_n "checking for XORG... " >&6; }
11209
11210if test -n "$XORG_CFLAGS"; then
11211    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
11212 elif test -n "$PKG_CONFIG"; then
11213    if test -n "$PKG_CONFIG" && \
11214    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto inputproto \$REQUIRED_MODULES\""; } >&5
11215  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES") 2>&5
11216  ac_status=$?
11217  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11218  test $ac_status = 0; }; then
11219  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES" 2>/dev/null`
11220else
11221  pkg_failed=yes
11222fi
11223 else
11224    pkg_failed=untried
11225fi
11226if test -n "$XORG_LIBS"; then
11227    pkg_cv_XORG_LIBS="$XORG_LIBS"
11228 elif test -n "$PKG_CONFIG"; then
11229    if test -n "$PKG_CONFIG" && \
11230    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto inputproto \$REQUIRED_MODULES\""; } >&5
11231  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES") 2>&5
11232  ac_status=$?
11233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11234  test $ac_status = 0; }; then
11235  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES" 2>/dev/null`
11236else
11237  pkg_failed=yes
11238fi
11239 else
11240    pkg_failed=untried
11241fi
11242
11243
11244
11245if test $pkg_failed = yes; then
11246   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247$as_echo "no" >&6; }
11248
11249if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11250        _pkg_short_errors_supported=yes
11251else
11252        _pkg_short_errors_supported=no
11253fi
11254        if test $_pkg_short_errors_supported = yes; then
11255	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES" 2>&1`
11256        else
11257	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES" 2>&1`
11258        fi
11259	# Put the nasty error message in config.log where it belongs
11260	echo "$XORG_PKG_ERRORS" >&5
11261
11262	as_fn_error $? "Package requirements (xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES) were not met:
11263
11264$XORG_PKG_ERRORS
11265
11266Consider adjusting the PKG_CONFIG_PATH environment variable if you
11267installed software in a non-standard prefix.
11268
11269Alternatively, you may set the environment variables XORG_CFLAGS
11270and XORG_LIBS to avoid the need to call pkg-config.
11271See the pkg-config man page for more details." "$LINENO" 5
11272
11273elif test $pkg_failed = untried; then
11274     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11275$as_echo "no" >&6; }
11276	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11278as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11279is in your PATH or set the PKG_CONFIG environment variable to the full
11280path to pkg-config.
11281
11282Alternatively, you may set the environment variables XORG_CFLAGS
11283and XORG_LIBS to avoid the need to call pkg-config.
11284See the pkg-config man page for more details.
11285
11286To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11287See \`config.log' for more details" "$LINENO" 5; }
11288
11289else
11290	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
11291	XORG_LIBS=$pkg_cv_XORG_LIBS
11292        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11293$as_echo "yes" >&6; }
11294
11295fi
11296
11297# X Server SDK location is required to install Synaptics header files
11298# This location is also relayed in the xorg-synaptics.pc file
11299sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
11300
11301
11302DRIVER_NAME=synaptics
11303
11304
11305# -----------------------------------------------------------------------------
11306#			Configuration options
11307# -----------------------------------------------------------------------------
11308# Define a configure option for an alternate input module directory
11309
11310# Check whether --with-xorg-module-dir was given.
11311if test "${with_xorg_module_dir+set}" = set; then :
11312  withval=$with_xorg_module_dir; moduledir="$withval"
11313else
11314  moduledir="$libdir/xorg/modules"
11315fi
11316
11317inputdir=${moduledir}/input
11318
11319
11320# Define a configure option for an alternate X Server configuration directory
11321sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server`
11322
11323# Check whether --with-xorg-conf-dir was given.
11324if test "${with_xorg_conf_dir+set}" = set; then :
11325  withval=$with_xorg_conf_dir; configdir="$withval"
11326else
11327  configdir="$sysconfigdir"
11328fi
11329
11330
11331 if test "x$sysconfigdir" != "x"; then
11332  HAS_XORG_CONF_DIR_TRUE=
11333  HAS_XORG_CONF_DIR_FALSE='#'
11334else
11335  HAS_XORG_CONF_DIR_TRUE='#'
11336  HAS_XORG_CONF_DIR_FALSE=
11337fi
11338
11339
11340# Define a configure option to enable code debugging
11341# Check whether --enable-debug was given.
11342if test "${enable_debug+set}" = set; then :
11343  enableval=$enable_debug; DEBUGGING=$enableval
11344else
11345  DEBUGGING=no
11346fi
11347
11348if test "x$DEBUGGING" = xyes; then
11349
11350$as_echo "#define DEBUG 1" >>confdefs.h
11351
11352fi
11353 if test "x$DEBUGGING" = xyes; then
11354  DEBUG_TRUE=
11355  DEBUG_FALSE='#'
11356else
11357  DEBUG_TRUE='#'
11358  DEBUG_FALSE=
11359fi
11360
11361
11362# -----------------------------------------------------------------------------
11363#		Determine which backend, if any, to build
11364# -----------------------------------------------------------------------------
11365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which optional backends will be build" >&5
11366$as_echo_n "checking which optional backends will be build... " >&6; }
11367case "${host}" in
11368*linux*)
11369	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: eventcomm" >&5
11370$as_echo "eventcomm" >&6; }
11371	BUILD_EVENTCOMM="yes"
11372
11373$as_echo "#define BUILD_EVENTCOMM 1" >>confdefs.h
11374
11375	;;
11376*freebsd* | *openbsd* | *netbsd* | *dragonfly*)
11377	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: psmcomm" >&5
11378$as_echo "psmcomm" >&6; }
11379	BUILD_PSMCOMM="yes"
11380
11381$as_echo "#define BUILD_PSMCOMM 1" >>confdefs.h
11382
11383	;;
11384*)
11385	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11386$as_echo "none" >&6; }
11387	;;
11388esac
11389 if test "x${BUILD_EVENTCOMM}" = "xyes"; then
11390  BUILD_EVENTCOMM_TRUE=
11391  BUILD_EVENTCOMM_FALSE='#'
11392else
11393  BUILD_EVENTCOMM_TRUE='#'
11394  BUILD_EVENTCOMM_FALSE=
11395fi
11396
11397 if test "x${BUILD_PSMCOMM}" = "xyes"; then
11398  BUILD_PSMCOMM_TRUE=
11399  BUILD_PSMCOMM_FALSE='#'
11400else
11401  BUILD_PSMCOMM_TRUE='#'
11402  BUILD_PSMCOMM_FALSE=
11403fi
11404
11405
11406# -----------------------------------------------------------------------------
11407#			Dependencies for synclient and syndaemon
11408# -----------------------------------------------------------------------------
11409# Obtain compiler/linker options for the Synaptics apps dependencies
11410
11411pkg_failed=no
11412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5
11413$as_echo_n "checking for XI... " >&6; }
11414
11415if test -n "$XI_CFLAGS"; then
11416    pkg_cv_XI_CFLAGS="$XI_CFLAGS"
11417 elif test -n "$PKG_CONFIG"; then
11418    if test -n "$PKG_CONFIG" && \
11419    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 inputproto xi >= 1.2\""; } >&5
11420  ($PKG_CONFIG --exists --print-errors "x11 inputproto xi >= 1.2") 2>&5
11421  ac_status=$?
11422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11423  test $ac_status = 0; }; then
11424  pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "x11 inputproto xi >= 1.2" 2>/dev/null`
11425else
11426  pkg_failed=yes
11427fi
11428 else
11429    pkg_failed=untried
11430fi
11431if test -n "$XI_LIBS"; then
11432    pkg_cv_XI_LIBS="$XI_LIBS"
11433 elif test -n "$PKG_CONFIG"; then
11434    if test -n "$PKG_CONFIG" && \
11435    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 inputproto xi >= 1.2\""; } >&5
11436  ($PKG_CONFIG --exists --print-errors "x11 inputproto xi >= 1.2") 2>&5
11437  ac_status=$?
11438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11439  test $ac_status = 0; }; then
11440  pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "x11 inputproto xi >= 1.2" 2>/dev/null`
11441else
11442  pkg_failed=yes
11443fi
11444 else
11445    pkg_failed=untried
11446fi
11447
11448
11449
11450if test $pkg_failed = yes; then
11451   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11452$as_echo "no" >&6; }
11453
11454if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11455        _pkg_short_errors_supported=yes
11456else
11457        _pkg_short_errors_supported=no
11458fi
11459        if test $_pkg_short_errors_supported = yes; then
11460	        XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 inputproto xi >= 1.2" 2>&1`
11461        else
11462	        XI_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 inputproto xi >= 1.2" 2>&1`
11463        fi
11464	# Put the nasty error message in config.log where it belongs
11465	echo "$XI_PKG_ERRORS" >&5
11466
11467	as_fn_error $? "Package requirements (x11 inputproto xi >= 1.2) were not met:
11468
11469$XI_PKG_ERRORS
11470
11471Consider adjusting the PKG_CONFIG_PATH environment variable if you
11472installed software in a non-standard prefix.
11473
11474Alternatively, you may set the environment variables XI_CFLAGS
11475and XI_LIBS to avoid the need to call pkg-config.
11476See the pkg-config man page for more details." "$LINENO" 5
11477
11478elif test $pkg_failed = untried; then
11479     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480$as_echo "no" >&6; }
11481	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11483as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11484is in your PATH or set the PKG_CONFIG environment variable to the full
11485path to pkg-config.
11486
11487Alternatively, you may set the environment variables XI_CFLAGS
11488and XI_LIBS to avoid the need to call pkg-config.
11489See the pkg-config man page for more details.
11490
11491To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11492See \`config.log' for more details" "$LINENO" 5; }
11493
11494else
11495	XI_CFLAGS=$pkg_cv_XI_CFLAGS
11496	XI_LIBS=$pkg_cv_XI_LIBS
11497        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11498$as_echo "yes" >&6; }
11499
11500fi
11501
11502# The syndaemon program uses an optional XRecord extension implementation
11503# If libxtst >= 1.0.99 is installed, Cflags contains the path to record.h
11504# If recordproto < 1.13.99.1 is installed, Cflags contains the path to record.h
11505
11506pkg_failed=no
11507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTST" >&5
11508$as_echo_n "checking for XTST... " >&6; }
11509
11510if test -n "$XTST_CFLAGS"; then
11511    pkg_cv_XTST_CFLAGS="$XTST_CFLAGS"
11512 elif test -n "$PKG_CONFIG"; then
11513    if test -n "$PKG_CONFIG" && \
11514    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst recordproto\""; } >&5
11515  ($PKG_CONFIG --exists --print-errors "xtst recordproto") 2>&5
11516  ac_status=$?
11517  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11518  test $ac_status = 0; }; then
11519  pkg_cv_XTST_CFLAGS=`$PKG_CONFIG --cflags "xtst recordproto" 2>/dev/null`
11520else
11521  pkg_failed=yes
11522fi
11523 else
11524    pkg_failed=untried
11525fi
11526if test -n "$XTST_LIBS"; then
11527    pkg_cv_XTST_LIBS="$XTST_LIBS"
11528 elif test -n "$PKG_CONFIG"; then
11529    if test -n "$PKG_CONFIG" && \
11530    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst recordproto\""; } >&5
11531  ($PKG_CONFIG --exists --print-errors "xtst recordproto") 2>&5
11532  ac_status=$?
11533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11534  test $ac_status = 0; }; then
11535  pkg_cv_XTST_LIBS=`$PKG_CONFIG --libs "xtst recordproto" 2>/dev/null`
11536else
11537  pkg_failed=yes
11538fi
11539 else
11540    pkg_failed=untried
11541fi
11542
11543
11544
11545if test $pkg_failed = yes; then
11546   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547$as_echo "no" >&6; }
11548
11549if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11550        _pkg_short_errors_supported=yes
11551else
11552        _pkg_short_errors_supported=no
11553fi
11554        if test $_pkg_short_errors_supported = yes; then
11555	        XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtst recordproto" 2>&1`
11556        else
11557	        XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtst recordproto" 2>&1`
11558        fi
11559	# Put the nasty error message in config.log where it belongs
11560	echo "$XTST_PKG_ERRORS" >&5
11561
11562	have_libxtst="no"
11563elif test $pkg_failed = untried; then
11564     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565$as_echo "no" >&6; }
11566	have_libxtst="no"
11567else
11568	XTST_CFLAGS=$pkg_cv_XTST_CFLAGS
11569	XTST_LIBS=$pkg_cv_XTST_LIBS
11570        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11571$as_echo "yes" >&6; }
11572	have_libxtst="yes"
11573fi
11574if test "x$have_libxtst" = "xyes" ; then
11575   # Header record.h may come from the xtst or recordproto package, or may be missing
11576   SAVE_CPPFLAGS="$CPPFLAGS"
11577   CPPFLAGS="$CPPFLAGS $XTST_CFLAGS"
11578   for ac_header in X11/extensions/record.h
11579do :
11580  ac_fn_c_check_header_compile "$LINENO" "X11/extensions/record.h" "ac_cv_header_X11_extensions_record_h" "#include <X11/Xlib.h>
11581"
11582if test "x$ac_cv_header_X11_extensions_record_h" = x""yes; then :
11583  cat >>confdefs.h <<_ACEOF
11584#define HAVE_X11_EXTENSIONS_RECORD_H 1
11585_ACEOF
11586
11587fi
11588
11589done
11590
11591   CPPFLAGS="$SAVE_CPPFLAGS"
11592fi
11593# -----------------------------------------------------------------------------
11594
11595ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile tools/Makefile conf/Makefile include/Makefile xorg-synaptics.pc"
11596
11597cat >confcache <<\_ACEOF
11598# This file is a shell script that caches the results of configure
11599# tests run on this system so they can be shared between configure
11600# scripts and configure runs, see configure's option --config-cache.
11601# It is not useful on other systems.  If it contains results you don't
11602# want to keep, you may remove or edit it.
11603#
11604# config.status only pays attention to the cache file if you give it
11605# the --recheck option to rerun configure.
11606#
11607# `ac_cv_env_foo' variables (set or unset) will be overridden when
11608# loading this file, other *unset* `ac_cv_foo' will be assigned the
11609# following values.
11610
11611_ACEOF
11612
11613# The following way of writing the cache mishandles newlines in values,
11614# but we know of no workaround that is simple, portable, and efficient.
11615# So, we kill variables containing newlines.
11616# Ultrix sh set writes to stderr and can't be redirected directly,
11617# and sets the high bit in the cache file unless we assign to the vars.
11618(
11619  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11620    eval ac_val=\$$ac_var
11621    case $ac_val in #(
11622    *${as_nl}*)
11623      case $ac_var in #(
11624      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11625$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11626      esac
11627      case $ac_var in #(
11628      _ | IFS | as_nl) ;; #(
11629      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11630      *) { eval $ac_var=; unset $ac_var;} ;;
11631      esac ;;
11632    esac
11633  done
11634
11635  (set) 2>&1 |
11636    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11637    *${as_nl}ac_space=\ *)
11638      # `set' does not quote correctly, so add quotes: double-quote
11639      # substitution turns \\\\ into \\, and sed turns \\ into \.
11640      sed -n \
11641	"s/'/'\\\\''/g;
11642	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11643      ;; #(
11644    *)
11645      # `set' quotes correctly as required by POSIX, so do not add quotes.
11646      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11647      ;;
11648    esac |
11649    sort
11650) |
11651  sed '
11652     /^ac_cv_env_/b end
11653     t clear
11654     :clear
11655     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11656     t end
11657     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11658     :end' >>confcache
11659if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11660  if test -w "$cache_file"; then
11661    test "x$cache_file" != "x/dev/null" &&
11662      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11663$as_echo "$as_me: updating cache $cache_file" >&6;}
11664    cat confcache >$cache_file
11665  else
11666    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11667$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11668  fi
11669fi
11670rm -f confcache
11671
11672test "x$prefix" = xNONE && prefix=$ac_default_prefix
11673# Let make expand exec_prefix.
11674test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11675
11676DEFS=-DHAVE_CONFIG_H
11677
11678ac_libobjs=
11679ac_ltlibobjs=
11680U=
11681for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11682  # 1. Remove the extension, and $U if already installed.
11683  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11684  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11685  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11686  #    will be set to the directory where LIBOBJS objects are built.
11687  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11688  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11689done
11690LIBOBJS=$ac_libobjs
11691
11692LTLIBOBJS=$ac_ltlibobjs
11693
11694
11695 if test -n "$EXEEXT"; then
11696  am__EXEEXT_TRUE=
11697  am__EXEEXT_FALSE='#'
11698else
11699  am__EXEEXT_TRUE='#'
11700  am__EXEEXT_FALSE=
11701fi
11702
11703if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11704  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11705Usually this means the macro was only invoked conditionally." "$LINENO" 5
11706fi
11707if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11708  as_fn_error $? "conditional \"AMDEP\" was never defined.
11709Usually this means the macro was only invoked conditionally." "$LINENO" 5
11710fi
11711if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11712  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11713Usually this means the macro was only invoked conditionally." "$LINENO" 5
11714fi
11715if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then
11716  as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined.
11717Usually this means the macro was only invoked conditionally." "$LINENO" 5
11718fi
11719if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
11720  as_fn_error $? "conditional \"DEBUG\" was never defined.
11721Usually this means the macro was only invoked conditionally." "$LINENO" 5
11722fi
11723if test -z "${BUILD_EVENTCOMM_TRUE}" && test -z "${BUILD_EVENTCOMM_FALSE}"; then
11724  as_fn_error $? "conditional \"BUILD_EVENTCOMM\" was never defined.
11725Usually this means the macro was only invoked conditionally." "$LINENO" 5
11726fi
11727if test -z "${BUILD_PSMCOMM_TRUE}" && test -z "${BUILD_PSMCOMM_FALSE}"; then
11728  as_fn_error $? "conditional \"BUILD_PSMCOMM\" was never defined.
11729Usually this means the macro was only invoked conditionally." "$LINENO" 5
11730fi
11731
11732: ${CONFIG_STATUS=./config.status}
11733ac_write_fail=0
11734ac_clean_files_save=$ac_clean_files
11735ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11736{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11737$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11738as_write_fail=0
11739cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11740#! $SHELL
11741# Generated by $as_me.
11742# Run this file to recreate the current configuration.
11743# Compiler output produced by configure, useful for debugging
11744# configure, is in config.log if it exists.
11745
11746debug=false
11747ac_cs_recheck=false
11748ac_cs_silent=false
11749
11750SHELL=\${CONFIG_SHELL-$SHELL}
11751export SHELL
11752_ASEOF
11753cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11754## -------------------- ##
11755## M4sh Initialization. ##
11756## -------------------- ##
11757
11758# Be more Bourne compatible
11759DUALCASE=1; export DUALCASE # for MKS sh
11760if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11761  emulate sh
11762  NULLCMD=:
11763  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11764  # is contrary to our usage.  Disable this feature.
11765  alias -g '${1+"$@"}'='"$@"'
11766  setopt NO_GLOB_SUBST
11767else
11768  case `(set -o) 2>/dev/null` in #(
11769  *posix*) :
11770    set -o posix ;; #(
11771  *) :
11772     ;;
11773esac
11774fi
11775
11776
11777as_nl='
11778'
11779export as_nl
11780# Printing a long string crashes Solaris 7 /usr/bin/printf.
11781as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11782as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11783as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11784# Prefer a ksh shell builtin over an external printf program on Solaris,
11785# but without wasting forks for bash or zsh.
11786if test -z "$BASH_VERSION$ZSH_VERSION" \
11787    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11788  as_echo='print -r --'
11789  as_echo_n='print -rn --'
11790elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11791  as_echo='printf %s\n'
11792  as_echo_n='printf %s'
11793else
11794  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11795    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11796    as_echo_n='/usr/ucb/echo -n'
11797  else
11798    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11799    as_echo_n_body='eval
11800      arg=$1;
11801      case $arg in #(
11802      *"$as_nl"*)
11803	expr "X$arg" : "X\\(.*\\)$as_nl";
11804	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11805      esac;
11806      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11807    '
11808    export as_echo_n_body
11809    as_echo_n='sh -c $as_echo_n_body as_echo'
11810  fi
11811  export as_echo_body
11812  as_echo='sh -c $as_echo_body as_echo'
11813fi
11814
11815# The user is always right.
11816if test "${PATH_SEPARATOR+set}" != set; then
11817  PATH_SEPARATOR=:
11818  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11819    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11820      PATH_SEPARATOR=';'
11821  }
11822fi
11823
11824
11825# IFS
11826# We need space, tab and new line, in precisely that order.  Quoting is
11827# there to prevent editors from complaining about space-tab.
11828# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11829# splitting by setting IFS to empty value.)
11830IFS=" ""	$as_nl"
11831
11832# Find who we are.  Look in the path if we contain no directory separator.
11833case $0 in #((
11834  *[\\/]* ) as_myself=$0 ;;
11835  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11836for as_dir in $PATH
11837do
11838  IFS=$as_save_IFS
11839  test -z "$as_dir" && as_dir=.
11840    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11841  done
11842IFS=$as_save_IFS
11843
11844     ;;
11845esac
11846# We did not find ourselves, most probably we were run as `sh COMMAND'
11847# in which case we are not to be found in the path.
11848if test "x$as_myself" = x; then
11849  as_myself=$0
11850fi
11851if test ! -f "$as_myself"; then
11852  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11853  exit 1
11854fi
11855
11856# Unset variables that we do not need and which cause bugs (e.g. in
11857# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11858# suppresses any "Segmentation fault" message there.  '((' could
11859# trigger a bug in pdksh 5.2.14.
11860for as_var in BASH_ENV ENV MAIL MAILPATH
11861do eval test x\${$as_var+set} = xset \
11862  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11863done
11864PS1='$ '
11865PS2='> '
11866PS4='+ '
11867
11868# NLS nuisances.
11869LC_ALL=C
11870export LC_ALL
11871LANGUAGE=C
11872export LANGUAGE
11873
11874# CDPATH.
11875(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11876
11877
11878# as_fn_error STATUS ERROR [LINENO LOG_FD]
11879# ----------------------------------------
11880# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11881# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11882# script with STATUS, using 1 if that was 0.
11883as_fn_error ()
11884{
11885  as_status=$1; test $as_status -eq 0 && as_status=1
11886  if test "$4"; then
11887    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11888    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11889  fi
11890  $as_echo "$as_me: error: $2" >&2
11891  as_fn_exit $as_status
11892} # as_fn_error
11893
11894
11895# as_fn_set_status STATUS
11896# -----------------------
11897# Set $? to STATUS, without forking.
11898as_fn_set_status ()
11899{
11900  return $1
11901} # as_fn_set_status
11902
11903# as_fn_exit STATUS
11904# -----------------
11905# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11906as_fn_exit ()
11907{
11908  set +e
11909  as_fn_set_status $1
11910  exit $1
11911} # as_fn_exit
11912
11913# as_fn_unset VAR
11914# ---------------
11915# Portably unset VAR.
11916as_fn_unset ()
11917{
11918  { eval $1=; unset $1;}
11919}
11920as_unset=as_fn_unset
11921# as_fn_append VAR VALUE
11922# ----------------------
11923# Append the text in VALUE to the end of the definition contained in VAR. Take
11924# advantage of any shell optimizations that allow amortized linear growth over
11925# repeated appends, instead of the typical quadratic growth present in naive
11926# implementations.
11927if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11928  eval 'as_fn_append ()
11929  {
11930    eval $1+=\$2
11931  }'
11932else
11933  as_fn_append ()
11934  {
11935    eval $1=\$$1\$2
11936  }
11937fi # as_fn_append
11938
11939# as_fn_arith ARG...
11940# ------------------
11941# Perform arithmetic evaluation on the ARGs, and store the result in the
11942# global $as_val. Take advantage of shells that can avoid forks. The arguments
11943# must be portable across $(()) and expr.
11944if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11945  eval 'as_fn_arith ()
11946  {
11947    as_val=$(( $* ))
11948  }'
11949else
11950  as_fn_arith ()
11951  {
11952    as_val=`expr "$@" || test $? -eq 1`
11953  }
11954fi # as_fn_arith
11955
11956
11957if expr a : '\(a\)' >/dev/null 2>&1 &&
11958   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11959  as_expr=expr
11960else
11961  as_expr=false
11962fi
11963
11964if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11965  as_basename=basename
11966else
11967  as_basename=false
11968fi
11969
11970if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11971  as_dirname=dirname
11972else
11973  as_dirname=false
11974fi
11975
11976as_me=`$as_basename -- "$0" ||
11977$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11978	 X"$0" : 'X\(//\)$' \| \
11979	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11980$as_echo X/"$0" |
11981    sed '/^.*\/\([^/][^/]*\)\/*$/{
11982	    s//\1/
11983	    q
11984	  }
11985	  /^X\/\(\/\/\)$/{
11986	    s//\1/
11987	    q
11988	  }
11989	  /^X\/\(\/\).*/{
11990	    s//\1/
11991	    q
11992	  }
11993	  s/.*/./; q'`
11994
11995# Avoid depending upon Character Ranges.
11996as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11997as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11998as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11999as_cr_digits='0123456789'
12000as_cr_alnum=$as_cr_Letters$as_cr_digits
12001
12002ECHO_C= ECHO_N= ECHO_T=
12003case `echo -n x` in #(((((
12004-n*)
12005  case `echo 'xy\c'` in
12006  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12007  xy)  ECHO_C='\c';;
12008  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12009       ECHO_T='	';;
12010  esac;;
12011*)
12012  ECHO_N='-n';;
12013esac
12014
12015rm -f conf$$ conf$$.exe conf$$.file
12016if test -d conf$$.dir; then
12017  rm -f conf$$.dir/conf$$.file
12018else
12019  rm -f conf$$.dir
12020  mkdir conf$$.dir 2>/dev/null
12021fi
12022if (echo >conf$$.file) 2>/dev/null; then
12023  if ln -s conf$$.file conf$$ 2>/dev/null; then
12024    as_ln_s='ln -s'
12025    # ... but there are two gotchas:
12026    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12027    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12028    # In both cases, we have to default to `cp -p'.
12029    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12030      as_ln_s='cp -p'
12031  elif ln conf$$.file conf$$ 2>/dev/null; then
12032    as_ln_s=ln
12033  else
12034    as_ln_s='cp -p'
12035  fi
12036else
12037  as_ln_s='cp -p'
12038fi
12039rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12040rmdir conf$$.dir 2>/dev/null
12041
12042
12043# as_fn_mkdir_p
12044# -------------
12045# Create "$as_dir" as a directory, including parents if necessary.
12046as_fn_mkdir_p ()
12047{
12048
12049  case $as_dir in #(
12050  -*) as_dir=./$as_dir;;
12051  esac
12052  test -d "$as_dir" || eval $as_mkdir_p || {
12053    as_dirs=
12054    while :; do
12055      case $as_dir in #(
12056      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12057      *) as_qdir=$as_dir;;
12058      esac
12059      as_dirs="'$as_qdir' $as_dirs"
12060      as_dir=`$as_dirname -- "$as_dir" ||
12061$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12062	 X"$as_dir" : 'X\(//\)[^/]' \| \
12063	 X"$as_dir" : 'X\(//\)$' \| \
12064	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12065$as_echo X"$as_dir" |
12066    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12067	    s//\1/
12068	    q
12069	  }
12070	  /^X\(\/\/\)[^/].*/{
12071	    s//\1/
12072	    q
12073	  }
12074	  /^X\(\/\/\)$/{
12075	    s//\1/
12076	    q
12077	  }
12078	  /^X\(\/\).*/{
12079	    s//\1/
12080	    q
12081	  }
12082	  s/.*/./; q'`
12083      test -d "$as_dir" && break
12084    done
12085    test -z "$as_dirs" || eval "mkdir $as_dirs"
12086  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12087
12088
12089} # as_fn_mkdir_p
12090if mkdir -p . 2>/dev/null; then
12091  as_mkdir_p='mkdir -p "$as_dir"'
12092else
12093  test -d ./-p && rmdir ./-p
12094  as_mkdir_p=false
12095fi
12096
12097if test -x / >/dev/null 2>&1; then
12098  as_test_x='test -x'
12099else
12100  if ls -dL / >/dev/null 2>&1; then
12101    as_ls_L_option=L
12102  else
12103    as_ls_L_option=
12104  fi
12105  as_test_x='
12106    eval sh -c '\''
12107      if test -d "$1"; then
12108	test -d "$1/.";
12109      else
12110	case $1 in #(
12111	-*)set "./$1";;
12112	esac;
12113	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12114	???[sx]*):;;*)false;;esac;fi
12115    '\'' sh
12116  '
12117fi
12118as_executable_p=$as_test_x
12119
12120# Sed expression to map a string onto a valid CPP name.
12121as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12122
12123# Sed expression to map a string onto a valid variable name.
12124as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12125
12126
12127exec 6>&1
12128## ----------------------------------- ##
12129## Main body of $CONFIG_STATUS script. ##
12130## ----------------------------------- ##
12131_ASEOF
12132test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12133
12134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12135# Save the log message, to keep $0 and so on meaningful, and to
12136# report actual input values of CONFIG_FILES etc. instead of their
12137# values after options handling.
12138ac_log="
12139This file was extended by xf86-input-synaptics $as_me 1.3.0, which was
12140generated by GNU Autoconf 2.66.  Invocation command line was
12141
12142  CONFIG_FILES    = $CONFIG_FILES
12143  CONFIG_HEADERS  = $CONFIG_HEADERS
12144  CONFIG_LINKS    = $CONFIG_LINKS
12145  CONFIG_COMMANDS = $CONFIG_COMMANDS
12146  $ $0 $@
12147
12148on `(hostname || uname -n) 2>/dev/null | sed 1q`
12149"
12150
12151_ACEOF
12152
12153case $ac_config_files in *"
12154"*) set x $ac_config_files; shift; ac_config_files=$*;;
12155esac
12156
12157case $ac_config_headers in *"
12158"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12159esac
12160
12161
12162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12163# Files that config.status was made for.
12164config_files="$ac_config_files"
12165config_headers="$ac_config_headers"
12166config_commands="$ac_config_commands"
12167
12168_ACEOF
12169
12170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12171ac_cs_usage="\
12172\`$as_me' instantiates files and other configuration actions
12173from templates according to the current configuration.  Unless the files
12174and actions are specified as TAGs, all are instantiated by default.
12175
12176Usage: $0 [OPTION]... [TAG]...
12177
12178  -h, --help       print this help, then exit
12179  -V, --version    print version number and configuration settings, then exit
12180      --config     print configuration, then exit
12181  -q, --quiet, --silent
12182                   do not print progress messages
12183  -d, --debug      don't remove temporary files
12184      --recheck    update $as_me by reconfiguring in the same conditions
12185      --file=FILE[:TEMPLATE]
12186                   instantiate the configuration file FILE
12187      --header=FILE[:TEMPLATE]
12188                   instantiate the configuration header FILE
12189
12190Configuration files:
12191$config_files
12192
12193Configuration headers:
12194$config_headers
12195
12196Configuration commands:
12197$config_commands
12198
12199Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12200
12201_ACEOF
12202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12203ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12204ac_cs_version="\\
12205xf86-input-synaptics config.status 1.3.0
12206configured by $0, generated by GNU Autoconf 2.66,
12207  with options \\"\$ac_cs_config\\"
12208
12209Copyright (C) 2010 Free Software Foundation, Inc.
12210This config.status script is free software; the Free Software Foundation
12211gives unlimited permission to copy, distribute and modify it."
12212
12213ac_pwd='$ac_pwd'
12214srcdir='$srcdir'
12215INSTALL='$INSTALL'
12216MKDIR_P='$MKDIR_P'
12217AWK='$AWK'
12218test -n "\$AWK" || AWK=awk
12219_ACEOF
12220
12221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12222# The default lists apply if the user does not specify any file.
12223ac_need_defaults=:
12224while test $# != 0
12225do
12226  case $1 in
12227  --*=*)
12228    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12229    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12230    ac_shift=:
12231    ;;
12232  *)
12233    ac_option=$1
12234    ac_optarg=$2
12235    ac_shift=shift
12236    ;;
12237  esac
12238
12239  case $ac_option in
12240  # Handling of the options.
12241  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12242    ac_cs_recheck=: ;;
12243  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12244    $as_echo "$ac_cs_version"; exit ;;
12245  --config | --confi | --conf | --con | --co | --c )
12246    $as_echo "$ac_cs_config"; exit ;;
12247  --debug | --debu | --deb | --de | --d | -d )
12248    debug=: ;;
12249  --file | --fil | --fi | --f )
12250    $ac_shift
12251    case $ac_optarg in
12252    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12253    esac
12254    as_fn_append CONFIG_FILES " '$ac_optarg'"
12255    ac_need_defaults=false;;
12256  --header | --heade | --head | --hea )
12257    $ac_shift
12258    case $ac_optarg in
12259    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12260    esac
12261    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12262    ac_need_defaults=false;;
12263  --he | --h)
12264    # Conflict between --help and --header
12265    as_fn_error $? "ambiguous option: \`$1'
12266Try \`$0 --help' for more information.";;
12267  --help | --hel | -h )
12268    $as_echo "$ac_cs_usage"; exit ;;
12269  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12270  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12271    ac_cs_silent=: ;;
12272
12273  # This is an error.
12274  -*) as_fn_error $? "unrecognized option: \`$1'
12275Try \`$0 --help' for more information." ;;
12276
12277  *) as_fn_append ac_config_targets " $1"
12278     ac_need_defaults=false ;;
12279
12280  esac
12281  shift
12282done
12283
12284ac_configure_extra_args=
12285
12286if $ac_cs_silent; then
12287  exec 6>/dev/null
12288  ac_configure_extra_args="$ac_configure_extra_args --silent"
12289fi
12290
12291_ACEOF
12292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12293if \$ac_cs_recheck; then
12294  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12295  shift
12296  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12297  CONFIG_SHELL='$SHELL'
12298  export CONFIG_SHELL
12299  exec "\$@"
12300fi
12301
12302_ACEOF
12303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12304exec 5>>config.log
12305{
12306  echo
12307  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12308## Running $as_me. ##
12309_ASBOX
12310  $as_echo "$ac_log"
12311} >&5
12312
12313_ACEOF
12314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12315#
12316# INIT-COMMANDS
12317#
12318AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12319
12320
12321# The HP-UX ksh and POSIX shell print the target directory to stdout
12322# if CDPATH is set.
12323(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12324
12325sed_quote_subst='$sed_quote_subst'
12326double_quote_subst='$double_quote_subst'
12327delay_variable_subst='$delay_variable_subst'
12328enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12329macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12330macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12331enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12332pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12333enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12334SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12335ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12336host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12337host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12338host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12339build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12340build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12341build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12342SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12343Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12344GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12345EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12346FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12347LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12348NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12349LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12350max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12351ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12352exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12353lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12354lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12355lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12356reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12357reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12358OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12359deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12360file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12361AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12362AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12363STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12364RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12365old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12366old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12367old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12368lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12369CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12370CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12371compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12372GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12373lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12374lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12375lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12376lt_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"`'
12377objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12378MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12379lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12380lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12381lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12382lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12383lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12384need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12385DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12386NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12387LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12388OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12389OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12390libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12391shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12392extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12393archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12394enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12395export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12396whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12397compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12398old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12399old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12400archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12401archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12402module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12403module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12404with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12405allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12406no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12407hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12408hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12409hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12410hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12411hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12412hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12413hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12414hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12415inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12416link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12417fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12418always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12419export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12420exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12421include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12422prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12423file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12424variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12425need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12426need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12427version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12428runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12429shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12430shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12431libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12432library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12433soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12434install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12435postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12436postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12437finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12438finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12439hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12440sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12441sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12442hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12443enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12444enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12445enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12446old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12447striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12448
12449LTCC='$LTCC'
12450LTCFLAGS='$LTCFLAGS'
12451compiler='$compiler_DEFAULT'
12452
12453# A function that is used when there is no print builtin or printf.
12454func_fallback_echo ()
12455{
12456  eval 'cat <<_LTECHO_EOF
12457\$1
12458_LTECHO_EOF'
12459}
12460
12461# Quote evaled strings.
12462for var in SHELL \
12463ECHO \
12464SED \
12465GREP \
12466EGREP \
12467FGREP \
12468LD \
12469NM \
12470LN_S \
12471lt_SP2NL \
12472lt_NL2SP \
12473reload_flag \
12474OBJDUMP \
12475deplibs_check_method \
12476file_magic_cmd \
12477AR \
12478AR_FLAGS \
12479STRIP \
12480RANLIB \
12481CC \
12482CFLAGS \
12483compiler \
12484lt_cv_sys_global_symbol_pipe \
12485lt_cv_sys_global_symbol_to_cdecl \
12486lt_cv_sys_global_symbol_to_c_name_address \
12487lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12488lt_prog_compiler_no_builtin_flag \
12489lt_prog_compiler_wl \
12490lt_prog_compiler_pic \
12491lt_prog_compiler_static \
12492lt_cv_prog_compiler_c_o \
12493need_locks \
12494DSYMUTIL \
12495NMEDIT \
12496LIPO \
12497OTOOL \
12498OTOOL64 \
12499shrext_cmds \
12500export_dynamic_flag_spec \
12501whole_archive_flag_spec \
12502compiler_needs_object \
12503with_gnu_ld \
12504allow_undefined_flag \
12505no_undefined_flag \
12506hardcode_libdir_flag_spec \
12507hardcode_libdir_flag_spec_ld \
12508hardcode_libdir_separator \
12509fix_srcfile_path \
12510exclude_expsyms \
12511include_expsyms \
12512file_list_spec \
12513variables_saved_for_relink \
12514libname_spec \
12515library_names_spec \
12516soname_spec \
12517install_override_mode \
12518finish_eval \
12519old_striplib \
12520striplib; do
12521    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12522    *[\\\\\\\`\\"\\\$]*)
12523      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12524      ;;
12525    *)
12526      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12527      ;;
12528    esac
12529done
12530
12531# Double-quote double-evaled strings.
12532for var in reload_cmds \
12533old_postinstall_cmds \
12534old_postuninstall_cmds \
12535old_archive_cmds \
12536extract_expsyms_cmds \
12537old_archive_from_new_cmds \
12538old_archive_from_expsyms_cmds \
12539archive_cmds \
12540archive_expsym_cmds \
12541module_cmds \
12542module_expsym_cmds \
12543export_symbols_cmds \
12544prelink_cmds \
12545postinstall_cmds \
12546postuninstall_cmds \
12547finish_cmds \
12548sys_lib_search_path_spec \
12549sys_lib_dlsearch_path_spec; do
12550    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12551    *[\\\\\\\`\\"\\\$]*)
12552      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12553      ;;
12554    *)
12555      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12556      ;;
12557    esac
12558done
12559
12560ac_aux_dir='$ac_aux_dir'
12561xsi_shell='$xsi_shell'
12562lt_shell_append='$lt_shell_append'
12563
12564# See if we are running on zsh, and set the options which allow our
12565# commands through without removal of \ escapes INIT.
12566if test -n "\${ZSH_VERSION+set}" ; then
12567   setopt NO_GLOB_SUBST
12568fi
12569
12570
12571    PACKAGE='$PACKAGE'
12572    VERSION='$VERSION'
12573    TIMESTAMP='$TIMESTAMP'
12574    RM='$RM'
12575    ofile='$ofile'
12576
12577
12578
12579
12580_ACEOF
12581
12582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12583
12584# Handling of arguments.
12585for ac_config_target in $ac_config_targets
12586do
12587  case $ac_config_target in
12588    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12589    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12590    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12591    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12592    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12593    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12594    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12595    "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
12596    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12597    "xorg-synaptics.pc") CONFIG_FILES="$CONFIG_FILES xorg-synaptics.pc" ;;
12598
12599  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12600  esac
12601done
12602
12603
12604# If the user did not use the arguments to specify the items to instantiate,
12605# then the envvar interface is used.  Set only those that are not.
12606# We use the long form for the default assignment because of an extremely
12607# bizarre bug on SunOS 4.1.3.
12608if $ac_need_defaults; then
12609  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12610  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12611  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12612fi
12613
12614# Have a temporary directory for convenience.  Make it in the build tree
12615# simply because there is no reason against having it here, and in addition,
12616# creating and moving files from /tmp can sometimes cause problems.
12617# Hook for its removal unless debugging.
12618# Note that there is a small window in which the directory will not be cleaned:
12619# after its creation but before its name has been assigned to `$tmp'.
12620$debug ||
12621{
12622  tmp=
12623  trap 'exit_status=$?
12624  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12625' 0
12626  trap 'as_fn_exit 1' 1 2 13 15
12627}
12628# Create a (secure) tmp directory for tmp files.
12629
12630{
12631  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12632  test -n "$tmp" && test -d "$tmp"
12633}  ||
12634{
12635  tmp=./conf$$-$RANDOM
12636  (umask 077 && mkdir "$tmp")
12637} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12638
12639# Set up the scripts for CONFIG_FILES section.
12640# No need to generate them if there are no CONFIG_FILES.
12641# This happens for instance with `./config.status config.h'.
12642if test -n "$CONFIG_FILES"; then
12643
12644
12645ac_cr=`echo X | tr X '\015'`
12646# On cygwin, bash can eat \r inside `` if the user requested igncr.
12647# But we know of no other shell where ac_cr would be empty at this
12648# point, so we can use a bashism as a fallback.
12649if test "x$ac_cr" = x; then
12650  eval ac_cr=\$\'\\r\'
12651fi
12652ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12653if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12654  ac_cs_awk_cr='\\r'
12655else
12656  ac_cs_awk_cr=$ac_cr
12657fi
12658
12659echo 'BEGIN {' >"$tmp/subs1.awk" &&
12660_ACEOF
12661
12662
12663{
12664  echo "cat >conf$$subs.awk <<_ACEOF" &&
12665  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12666  echo "_ACEOF"
12667} >conf$$subs.sh ||
12668  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12669ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12670ac_delim='%!_!# '
12671for ac_last_try in false false false false false :; do
12672  . ./conf$$subs.sh ||
12673    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12674
12675  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12676  if test $ac_delim_n = $ac_delim_num; then
12677    break
12678  elif $ac_last_try; then
12679    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12680  else
12681    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12682  fi
12683done
12684rm -f conf$$subs.sh
12685
12686cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12687cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12688_ACEOF
12689sed -n '
12690h
12691s/^/S["/; s/!.*/"]=/
12692p
12693g
12694s/^[^!]*!//
12695:repl
12696t repl
12697s/'"$ac_delim"'$//
12698t delim
12699:nl
12700h
12701s/\(.\{148\}\)..*/\1/
12702t more1
12703s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12704p
12705n
12706b repl
12707:more1
12708s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12709p
12710g
12711s/.\{148\}//
12712t nl
12713:delim
12714h
12715s/\(.\{148\}\)..*/\1/
12716t more2
12717s/["\\]/\\&/g; s/^/"/; s/$/"/
12718p
12719b
12720:more2
12721s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12722p
12723g
12724s/.\{148\}//
12725t delim
12726' <conf$$subs.awk | sed '
12727/^[^""]/{
12728  N
12729  s/\n//
12730}
12731' >>$CONFIG_STATUS || ac_write_fail=1
12732rm -f conf$$subs.awk
12733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12734_ACAWK
12735cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12736  for (key in S) S_is_set[key] = 1
12737  FS = ""
12738
12739}
12740{
12741  line = $ 0
12742  nfields = split(line, field, "@")
12743  substed = 0
12744  len = length(field[1])
12745  for (i = 2; i < nfields; i++) {
12746    key = field[i]
12747    keylen = length(key)
12748    if (S_is_set[key]) {
12749      value = S[key]
12750      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12751      len += length(value) + length(field[++i])
12752      substed = 1
12753    } else
12754      len += 1 + keylen
12755  }
12756
12757  print line
12758}
12759
12760_ACAWK
12761_ACEOF
12762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12763if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12764  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12765else
12766  cat
12767fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12768  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12769_ACEOF
12770
12771# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12772# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12773# trailing colons and then remove the whole line if VPATH becomes empty
12774# (actually we leave an empty line to preserve line numbers).
12775if test "x$srcdir" = x.; then
12776  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12777h
12778s///
12779s/^/:/
12780s/[	 ]*$/:/
12781s/:\$(srcdir):/:/g
12782s/:\${srcdir}:/:/g
12783s/:@srcdir@:/:/g
12784s/^:*//
12785s/:*$//
12786x
12787s/\(=[	 ]*\).*/\1/
12788G
12789s/\n//
12790s/^[^=]*=[	 ]*$//
12791}'
12792fi
12793
12794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12795fi # test -n "$CONFIG_FILES"
12796
12797# Set up the scripts for CONFIG_HEADERS section.
12798# No need to generate them if there are no CONFIG_HEADERS.
12799# This happens for instance with `./config.status Makefile'.
12800if test -n "$CONFIG_HEADERS"; then
12801cat >"$tmp/defines.awk" <<\_ACAWK ||
12802BEGIN {
12803_ACEOF
12804
12805# Transform confdefs.h into an awk script `defines.awk', embedded as
12806# here-document in config.status, that substitutes the proper values into
12807# config.h.in to produce config.h.
12808
12809# Create a delimiter string that does not exist in confdefs.h, to ease
12810# handling of long lines.
12811ac_delim='%!_!# '
12812for ac_last_try in false false :; do
12813  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12814  if test -z "$ac_t"; then
12815    break
12816  elif $ac_last_try; then
12817    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12818  else
12819    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12820  fi
12821done
12822
12823# For the awk script, D is an array of macro values keyed by name,
12824# likewise P contains macro parameters if any.  Preserve backslash
12825# newline sequences.
12826
12827ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12828sed -n '
12829s/.\{148\}/&'"$ac_delim"'/g
12830t rset
12831:rset
12832s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12833t def
12834d
12835:def
12836s/\\$//
12837t bsnl
12838s/["\\]/\\&/g
12839s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12840D["\1"]=" \3"/p
12841s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12842d
12843:bsnl
12844s/["\\]/\\&/g
12845s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12846D["\1"]=" \3\\\\\\n"\\/p
12847t cont
12848s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12849t cont
12850d
12851:cont
12852n
12853s/.\{148\}/&'"$ac_delim"'/g
12854t clear
12855:clear
12856s/\\$//
12857t bsnlc
12858s/["\\]/\\&/g; s/^/"/; s/$/"/p
12859d
12860:bsnlc
12861s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12862b cont
12863' <confdefs.h | sed '
12864s/'"$ac_delim"'/"\\\
12865"/g' >>$CONFIG_STATUS || ac_write_fail=1
12866
12867cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12868  for (key in D) D_is_set[key] = 1
12869  FS = ""
12870}
12871/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12872  line = \$ 0
12873  split(line, arg, " ")
12874  if (arg[1] == "#") {
12875    defundef = arg[2]
12876    mac1 = arg[3]
12877  } else {
12878    defundef = substr(arg[1], 2)
12879    mac1 = arg[2]
12880  }
12881  split(mac1, mac2, "(") #)
12882  macro = mac2[1]
12883  prefix = substr(line, 1, index(line, defundef) - 1)
12884  if (D_is_set[macro]) {
12885    # Preserve the white space surrounding the "#".
12886    print prefix "define", macro P[macro] D[macro]
12887    next
12888  } else {
12889    # Replace #undef with comments.  This is necessary, for example,
12890    # in the case of _POSIX_SOURCE, which is predefined and required
12891    # on some systems where configure will not decide to define it.
12892    if (defundef == "undef") {
12893      print "/*", prefix defundef, macro, "*/"
12894      next
12895    }
12896  }
12897}
12898{ print }
12899_ACAWK
12900_ACEOF
12901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12902  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12903fi # test -n "$CONFIG_HEADERS"
12904
12905
12906eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12907shift
12908for ac_tag
12909do
12910  case $ac_tag in
12911  :[FHLC]) ac_mode=$ac_tag; continue;;
12912  esac
12913  case $ac_mode$ac_tag in
12914  :[FHL]*:*);;
12915  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12916  :[FH]-) ac_tag=-:-;;
12917  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12918  esac
12919  ac_save_IFS=$IFS
12920  IFS=:
12921  set x $ac_tag
12922  IFS=$ac_save_IFS
12923  shift
12924  ac_file=$1
12925  shift
12926
12927  case $ac_mode in
12928  :L) ac_source=$1;;
12929  :[FH])
12930    ac_file_inputs=
12931    for ac_f
12932    do
12933      case $ac_f in
12934      -) ac_f="$tmp/stdin";;
12935      *) # Look for the file first in the build tree, then in the source tree
12936	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12937	 # because $ac_f cannot contain `:'.
12938	 test -f "$ac_f" ||
12939	   case $ac_f in
12940	   [\\/$]*) false;;
12941	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12942	   esac ||
12943	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12944      esac
12945      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12946      as_fn_append ac_file_inputs " '$ac_f'"
12947    done
12948
12949    # Let's still pretend it is `configure' which instantiates (i.e., don't
12950    # use $as_me), people would be surprised to read:
12951    #    /* config.h.  Generated by config.status.  */
12952    configure_input='Generated from '`
12953	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12954	`' by configure.'
12955    if test x"$ac_file" != x-; then
12956      configure_input="$ac_file.  $configure_input"
12957      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12958$as_echo "$as_me: creating $ac_file" >&6;}
12959    fi
12960    # Neutralize special characters interpreted by sed in replacement strings.
12961    case $configure_input in #(
12962    *\&* | *\|* | *\\* )
12963       ac_sed_conf_input=`$as_echo "$configure_input" |
12964       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12965    *) ac_sed_conf_input=$configure_input;;
12966    esac
12967
12968    case $ac_tag in
12969    *:-:* | *:-) cat >"$tmp/stdin" \
12970      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12971    esac
12972    ;;
12973  esac
12974
12975  ac_dir=`$as_dirname -- "$ac_file" ||
12976$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12977	 X"$ac_file" : 'X\(//\)[^/]' \| \
12978	 X"$ac_file" : 'X\(//\)$' \| \
12979	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12980$as_echo X"$ac_file" |
12981    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12982	    s//\1/
12983	    q
12984	  }
12985	  /^X\(\/\/\)[^/].*/{
12986	    s//\1/
12987	    q
12988	  }
12989	  /^X\(\/\/\)$/{
12990	    s//\1/
12991	    q
12992	  }
12993	  /^X\(\/\).*/{
12994	    s//\1/
12995	    q
12996	  }
12997	  s/.*/./; q'`
12998  as_dir="$ac_dir"; as_fn_mkdir_p
12999  ac_builddir=.
13000
13001case "$ac_dir" in
13002.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13003*)
13004  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13005  # A ".." for each directory in $ac_dir_suffix.
13006  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13007  case $ac_top_builddir_sub in
13008  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13009  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13010  esac ;;
13011esac
13012ac_abs_top_builddir=$ac_pwd
13013ac_abs_builddir=$ac_pwd$ac_dir_suffix
13014# for backward compatibility:
13015ac_top_builddir=$ac_top_build_prefix
13016
13017case $srcdir in
13018  .)  # We are building in place.
13019    ac_srcdir=.
13020    ac_top_srcdir=$ac_top_builddir_sub
13021    ac_abs_top_srcdir=$ac_pwd ;;
13022  [\\/]* | ?:[\\/]* )  # Absolute name.
13023    ac_srcdir=$srcdir$ac_dir_suffix;
13024    ac_top_srcdir=$srcdir
13025    ac_abs_top_srcdir=$srcdir ;;
13026  *) # Relative name.
13027    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13028    ac_top_srcdir=$ac_top_build_prefix$srcdir
13029    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13030esac
13031ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13032
13033
13034  case $ac_mode in
13035  :F)
13036  #
13037  # CONFIG_FILE
13038  #
13039
13040  case $INSTALL in
13041  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13042  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13043  esac
13044  ac_MKDIR_P=$MKDIR_P
13045  case $MKDIR_P in
13046  [\\/$]* | ?:[\\/]* ) ;;
13047  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13048  esac
13049_ACEOF
13050
13051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13052# If the template does not know about datarootdir, expand it.
13053# FIXME: This hack should be removed a few years after 2.60.
13054ac_datarootdir_hack=; ac_datarootdir_seen=
13055ac_sed_dataroot='
13056/datarootdir/ {
13057  p
13058  q
13059}
13060/@datadir@/p
13061/@docdir@/p
13062/@infodir@/p
13063/@localedir@/p
13064/@mandir@/p'
13065case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13066*datarootdir*) ac_datarootdir_seen=yes;;
13067*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13068  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13069$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13070_ACEOF
13071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13072  ac_datarootdir_hack='
13073  s&@datadir@&$datadir&g
13074  s&@docdir@&$docdir&g
13075  s&@infodir@&$infodir&g
13076  s&@localedir@&$localedir&g
13077  s&@mandir@&$mandir&g
13078  s&\\\${datarootdir}&$datarootdir&g' ;;
13079esac
13080_ACEOF
13081
13082# Neutralize VPATH when `$srcdir' = `.'.
13083# Shell code in configure.ac might set extrasub.
13084# FIXME: do we really want to maintain this feature?
13085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13086ac_sed_extra="$ac_vpsub
13087$extrasub
13088_ACEOF
13089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13090:t
13091/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13092s|@configure_input@|$ac_sed_conf_input|;t t
13093s&@top_builddir@&$ac_top_builddir_sub&;t t
13094s&@top_build_prefix@&$ac_top_build_prefix&;t t
13095s&@srcdir@&$ac_srcdir&;t t
13096s&@abs_srcdir@&$ac_abs_srcdir&;t t
13097s&@top_srcdir@&$ac_top_srcdir&;t t
13098s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13099s&@builddir@&$ac_builddir&;t t
13100s&@abs_builddir@&$ac_abs_builddir&;t t
13101s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13102s&@INSTALL@&$ac_INSTALL&;t t
13103s&@MKDIR_P@&$ac_MKDIR_P&;t t
13104$ac_datarootdir_hack
13105"
13106eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13107  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13108
13109test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13110  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13111  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13112  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13113which seems to be undefined.  Please make sure it is defined" >&5
13114$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13115which seems to be undefined.  Please make sure it is defined" >&2;}
13116
13117  rm -f "$tmp/stdin"
13118  case $ac_file in
13119  -) cat "$tmp/out" && rm -f "$tmp/out";;
13120  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13121  esac \
13122  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13123 ;;
13124  :H)
13125  #
13126  # CONFIG_HEADER
13127  #
13128  if test x"$ac_file" != x-; then
13129    {
13130      $as_echo "/* $configure_input  */" \
13131      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13132    } >"$tmp/config.h" \
13133      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13134    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13135      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13136$as_echo "$as_me: $ac_file is unchanged" >&6;}
13137    else
13138      rm -f "$ac_file"
13139      mv "$tmp/config.h" "$ac_file" \
13140	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13141    fi
13142  else
13143    $as_echo "/* $configure_input  */" \
13144      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13145      || as_fn_error $? "could not create -" "$LINENO" 5
13146  fi
13147# Compute "$ac_file"'s index in $config_headers.
13148_am_arg="$ac_file"
13149_am_stamp_count=1
13150for _am_header in $config_headers :; do
13151  case $_am_header in
13152    $_am_arg | $_am_arg:* )
13153      break ;;
13154    * )
13155      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13156  esac
13157done
13158echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13159$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13160	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13161	 X"$_am_arg" : 'X\(//\)$' \| \
13162	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13163$as_echo X"$_am_arg" |
13164    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13165	    s//\1/
13166	    q
13167	  }
13168	  /^X\(\/\/\)[^/].*/{
13169	    s//\1/
13170	    q
13171	  }
13172	  /^X\(\/\/\)$/{
13173	    s//\1/
13174	    q
13175	  }
13176	  /^X\(\/\).*/{
13177	    s//\1/
13178	    q
13179	  }
13180	  s/.*/./; q'`/stamp-h$_am_stamp_count
13181 ;;
13182
13183  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13184$as_echo "$as_me: executing $ac_file commands" >&6;}
13185 ;;
13186  esac
13187
13188
13189  case $ac_file$ac_mode in
13190    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13191  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13192  # are listed without --file.  Let's play safe and only enable the eval
13193  # if we detect the quoting.
13194  case $CONFIG_FILES in
13195  *\'*) eval set x "$CONFIG_FILES" ;;
13196  *)   set x $CONFIG_FILES ;;
13197  esac
13198  shift
13199  for mf
13200  do
13201    # Strip MF so we end up with the name of the file.
13202    mf=`echo "$mf" | sed -e 's/:.*$//'`
13203    # Check whether this is an Automake generated Makefile or not.
13204    # We used to match only the files named `Makefile.in', but
13205    # some people rename them; so instead we look at the file content.
13206    # Grep'ing the first line is not enough: some people post-process
13207    # each Makefile.in and add a new line on top of each file to say so.
13208    # Grep'ing the whole file is not good either: AIX grep has a line
13209    # limit of 2048, but all sed's we know have understand at least 4000.
13210    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13211      dirpart=`$as_dirname -- "$mf" ||
13212$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13213	 X"$mf" : 'X\(//\)[^/]' \| \
13214	 X"$mf" : 'X\(//\)$' \| \
13215	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13216$as_echo X"$mf" |
13217    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13218	    s//\1/
13219	    q
13220	  }
13221	  /^X\(\/\/\)[^/].*/{
13222	    s//\1/
13223	    q
13224	  }
13225	  /^X\(\/\/\)$/{
13226	    s//\1/
13227	    q
13228	  }
13229	  /^X\(\/\).*/{
13230	    s//\1/
13231	    q
13232	  }
13233	  s/.*/./; q'`
13234    else
13235      continue
13236    fi
13237    # Extract the definition of DEPDIR, am__include, and am__quote
13238    # from the Makefile without running `make'.
13239    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13240    test -z "$DEPDIR" && continue
13241    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13242    test -z "am__include" && continue
13243    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13244    # When using ansi2knr, U may be empty or an underscore; expand it
13245    U=`sed -n 's/^U = //p' < "$mf"`
13246    # Find all dependency output files, they are included files with
13247    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13248    # simplest approach to changing $(DEPDIR) to its actual value in the
13249    # expansion.
13250    for file in `sed -n "
13251      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13252	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13253      # Make sure the directory exists.
13254      test -f "$dirpart/$file" && continue
13255      fdir=`$as_dirname -- "$file" ||
13256$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13257	 X"$file" : 'X\(//\)[^/]' \| \
13258	 X"$file" : 'X\(//\)$' \| \
13259	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13260$as_echo X"$file" |
13261    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13262	    s//\1/
13263	    q
13264	  }
13265	  /^X\(\/\/\)[^/].*/{
13266	    s//\1/
13267	    q
13268	  }
13269	  /^X\(\/\/\)$/{
13270	    s//\1/
13271	    q
13272	  }
13273	  /^X\(\/\).*/{
13274	    s//\1/
13275	    q
13276	  }
13277	  s/.*/./; q'`
13278      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13279      # echo "creating $dirpart/$file"
13280      echo '# dummy' > "$dirpart/$file"
13281    done
13282  done
13283}
13284 ;;
13285    "libtool":C)
13286
13287    # See if we are running on zsh, and set the options which allow our
13288    # commands through without removal of \ escapes.
13289    if test -n "${ZSH_VERSION+set}" ; then
13290      setopt NO_GLOB_SUBST
13291    fi
13292
13293    cfgfile="${ofile}T"
13294    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13295    $RM "$cfgfile"
13296
13297    cat <<_LT_EOF >> "$cfgfile"
13298#! $SHELL
13299
13300# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13301# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13302# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13303# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13304#
13305#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13306#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13307#                 Inc.
13308#   Written by Gordon Matzigkeit, 1996
13309#
13310#   This file is part of GNU Libtool.
13311#
13312# GNU Libtool is free software; you can redistribute it and/or
13313# modify it under the terms of the GNU General Public License as
13314# published by the Free Software Foundation; either version 2 of
13315# the License, or (at your option) any later version.
13316#
13317# As a special exception to the GNU General Public License,
13318# if you distribute this file as part of a program or library that
13319# is built using GNU Libtool, you may include this file under the
13320# same distribution terms that you use for the rest of that program.
13321#
13322# GNU Libtool is distributed in the hope that it will be useful,
13323# but WITHOUT ANY WARRANTY; without even the implied warranty of
13324# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13325# GNU General Public License for more details.
13326#
13327# You should have received a copy of the GNU General Public License
13328# along with GNU Libtool; see the file COPYING.  If not, a copy
13329# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13330# obtained by writing to the Free Software Foundation, Inc.,
13331# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13332
13333
13334# The names of the tagged configurations supported by this script.
13335available_tags=""
13336
13337# ### BEGIN LIBTOOL CONFIG
13338
13339# Whether or not to build static libraries.
13340build_old_libs=$enable_static
13341
13342# Which release of libtool.m4 was used?
13343macro_version=$macro_version
13344macro_revision=$macro_revision
13345
13346# Whether or not to build shared libraries.
13347build_libtool_libs=$enable_shared
13348
13349# What type of objects to build.
13350pic_mode=$pic_mode
13351
13352# Whether or not to optimize for fast installation.
13353fast_install=$enable_fast_install
13354
13355# Shell to use when invoking shell scripts.
13356SHELL=$lt_SHELL
13357
13358# An echo program that protects backslashes.
13359ECHO=$lt_ECHO
13360
13361# The host system.
13362host_alias=$host_alias
13363host=$host
13364host_os=$host_os
13365
13366# The build system.
13367build_alias=$build_alias
13368build=$build
13369build_os=$build_os
13370
13371# A sed program that does not truncate output.
13372SED=$lt_SED
13373
13374# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13375Xsed="\$SED -e 1s/^X//"
13376
13377# A grep program that handles long lines.
13378GREP=$lt_GREP
13379
13380# An ERE matcher.
13381EGREP=$lt_EGREP
13382
13383# A literal string matcher.
13384FGREP=$lt_FGREP
13385
13386# A BSD- or MS-compatible name lister.
13387NM=$lt_NM
13388
13389# Whether we need soft or hard links.
13390LN_S=$lt_LN_S
13391
13392# What is the maximum length of a command?
13393max_cmd_len=$max_cmd_len
13394
13395# Object file suffix (normally "o").
13396objext=$ac_objext
13397
13398# Executable file suffix (normally "").
13399exeext=$exeext
13400
13401# whether the shell understands "unset".
13402lt_unset=$lt_unset
13403
13404# turn spaces into newlines.
13405SP2NL=$lt_lt_SP2NL
13406
13407# turn newlines into spaces.
13408NL2SP=$lt_lt_NL2SP
13409
13410# An object symbol dumper.
13411OBJDUMP=$lt_OBJDUMP
13412
13413# Method to check whether dependent libraries are shared objects.
13414deplibs_check_method=$lt_deplibs_check_method
13415
13416# Command to use when deplibs_check_method == "file_magic".
13417file_magic_cmd=$lt_file_magic_cmd
13418
13419# The archiver.
13420AR=$lt_AR
13421AR_FLAGS=$lt_AR_FLAGS
13422
13423# A symbol stripping program.
13424STRIP=$lt_STRIP
13425
13426# Commands used to install an old-style archive.
13427RANLIB=$lt_RANLIB
13428old_postinstall_cmds=$lt_old_postinstall_cmds
13429old_postuninstall_cmds=$lt_old_postuninstall_cmds
13430
13431# Whether to use a lock for old archive extraction.
13432lock_old_archive_extraction=$lock_old_archive_extraction
13433
13434# A C compiler.
13435LTCC=$lt_CC
13436
13437# LTCC compiler flags.
13438LTCFLAGS=$lt_CFLAGS
13439
13440# Take the output of nm and produce a listing of raw symbols and C names.
13441global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13442
13443# Transform the output of nm in a proper C declaration.
13444global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13445
13446# Transform the output of nm in a C name address pair.
13447global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13448
13449# Transform the output of nm in a C name address pair when lib prefix is needed.
13450global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13451
13452# The name of the directory that contains temporary libtool files.
13453objdir=$objdir
13454
13455# Used to examine libraries when file_magic_cmd begins with "file".
13456MAGIC_CMD=$MAGIC_CMD
13457
13458# Must we lock files when doing compilation?
13459need_locks=$lt_need_locks
13460
13461# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13462DSYMUTIL=$lt_DSYMUTIL
13463
13464# Tool to change global to local symbols on Mac OS X.
13465NMEDIT=$lt_NMEDIT
13466
13467# Tool to manipulate fat objects and archives on Mac OS X.
13468LIPO=$lt_LIPO
13469
13470# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13471OTOOL=$lt_OTOOL
13472
13473# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13474OTOOL64=$lt_OTOOL64
13475
13476# Old archive suffix (normally "a").
13477libext=$libext
13478
13479# Shared library suffix (normally ".so").
13480shrext_cmds=$lt_shrext_cmds
13481
13482# The commands to extract the exported symbol list from a shared archive.
13483extract_expsyms_cmds=$lt_extract_expsyms_cmds
13484
13485# Variables whose values should be saved in libtool wrapper scripts and
13486# restored at link time.
13487variables_saved_for_relink=$lt_variables_saved_for_relink
13488
13489# Do we need the "lib" prefix for modules?
13490need_lib_prefix=$need_lib_prefix
13491
13492# Do we need a version for libraries?
13493need_version=$need_version
13494
13495# Library versioning type.
13496version_type=$version_type
13497
13498# Shared library runtime path variable.
13499runpath_var=$runpath_var
13500
13501# Shared library path variable.
13502shlibpath_var=$shlibpath_var
13503
13504# Is shlibpath searched before the hard-coded library search path?
13505shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13506
13507# Format of library name prefix.
13508libname_spec=$lt_libname_spec
13509
13510# List of archive names.  First name is the real one, the rest are links.
13511# The last name is the one that the linker finds with -lNAME
13512library_names_spec=$lt_library_names_spec
13513
13514# The coded name of the library, if different from the real name.
13515soname_spec=$lt_soname_spec
13516
13517# Permission mode override for installation of shared libraries.
13518install_override_mode=$lt_install_override_mode
13519
13520# Command to use after installation of a shared archive.
13521postinstall_cmds=$lt_postinstall_cmds
13522
13523# Command to use after uninstallation of a shared archive.
13524postuninstall_cmds=$lt_postuninstall_cmds
13525
13526# Commands used to finish a libtool library installation in a directory.
13527finish_cmds=$lt_finish_cmds
13528
13529# As "finish_cmds", except a single script fragment to be evaled but
13530# not shown.
13531finish_eval=$lt_finish_eval
13532
13533# Whether we should hardcode library paths into libraries.
13534hardcode_into_libs=$hardcode_into_libs
13535
13536# Compile-time system search path for libraries.
13537sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13538
13539# Run-time system search path for libraries.
13540sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13541
13542# Whether dlopen is supported.
13543dlopen_support=$enable_dlopen
13544
13545# Whether dlopen of programs is supported.
13546dlopen_self=$enable_dlopen_self
13547
13548# Whether dlopen of statically linked programs is supported.
13549dlopen_self_static=$enable_dlopen_self_static
13550
13551# Commands to strip libraries.
13552old_striplib=$lt_old_striplib
13553striplib=$lt_striplib
13554
13555
13556# The linker used to build libraries.
13557LD=$lt_LD
13558
13559# How to create reloadable object files.
13560reload_flag=$lt_reload_flag
13561reload_cmds=$lt_reload_cmds
13562
13563# Commands used to build an old-style archive.
13564old_archive_cmds=$lt_old_archive_cmds
13565
13566# A language specific compiler.
13567CC=$lt_compiler
13568
13569# Is the compiler the GNU compiler?
13570with_gcc=$GCC
13571
13572# Compiler flag to turn off builtin functions.
13573no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13574
13575# How to pass a linker flag through the compiler.
13576wl=$lt_lt_prog_compiler_wl
13577
13578# Additional compiler flags for building library objects.
13579pic_flag=$lt_lt_prog_compiler_pic
13580
13581# Compiler flag to prevent dynamic linking.
13582link_static_flag=$lt_lt_prog_compiler_static
13583
13584# Does compiler simultaneously support -c and -o options?
13585compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13586
13587# Whether or not to add -lc for building shared libraries.
13588build_libtool_need_lc=$archive_cmds_need_lc
13589
13590# Whether or not to disallow shared libs when runtime libs are static.
13591allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13592
13593# Compiler flag to allow reflexive dlopens.
13594export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13595
13596# Compiler flag to generate shared objects directly from archives.
13597whole_archive_flag_spec=$lt_whole_archive_flag_spec
13598
13599# Whether the compiler copes with passing no objects directly.
13600compiler_needs_object=$lt_compiler_needs_object
13601
13602# Create an old-style archive from a shared archive.
13603old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13604
13605# Create a temporary old-style archive to link instead of a shared archive.
13606old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13607
13608# Commands used to build a shared archive.
13609archive_cmds=$lt_archive_cmds
13610archive_expsym_cmds=$lt_archive_expsym_cmds
13611
13612# Commands used to build a loadable module if different from building
13613# a shared archive.
13614module_cmds=$lt_module_cmds
13615module_expsym_cmds=$lt_module_expsym_cmds
13616
13617# Whether we are building with GNU ld or not.
13618with_gnu_ld=$lt_with_gnu_ld
13619
13620# Flag that allows shared libraries with undefined symbols to be built.
13621allow_undefined_flag=$lt_allow_undefined_flag
13622
13623# Flag that enforces no undefined symbols.
13624no_undefined_flag=$lt_no_undefined_flag
13625
13626# Flag to hardcode \$libdir into a binary during linking.
13627# This must work even if \$libdir does not exist
13628hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13629
13630# If ld is used when linking, flag to hardcode \$libdir into a binary
13631# during linking.  This must work even if \$libdir does not exist.
13632hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13633
13634# Whether we need a single "-rpath" flag with a separated argument.
13635hardcode_libdir_separator=$lt_hardcode_libdir_separator
13636
13637# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13638# DIR into the resulting binary.
13639hardcode_direct=$hardcode_direct
13640
13641# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13642# DIR into the resulting binary and the resulting library dependency is
13643# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13644# library is relocated.
13645hardcode_direct_absolute=$hardcode_direct_absolute
13646
13647# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13648# into the resulting binary.
13649hardcode_minus_L=$hardcode_minus_L
13650
13651# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13652# into the resulting binary.
13653hardcode_shlibpath_var=$hardcode_shlibpath_var
13654
13655# Set to "yes" if building a shared library automatically hardcodes DIR
13656# into the library and all subsequent libraries and executables linked
13657# against it.
13658hardcode_automatic=$hardcode_automatic
13659
13660# Set to yes if linker adds runtime paths of dependent libraries
13661# to runtime path list.
13662inherit_rpath=$inherit_rpath
13663
13664# Whether libtool must link a program against all its dependency libraries.
13665link_all_deplibs=$link_all_deplibs
13666
13667# Fix the shell variable \$srcfile for the compiler.
13668fix_srcfile_path=$lt_fix_srcfile_path
13669
13670# Set to "yes" if exported symbols are required.
13671always_export_symbols=$always_export_symbols
13672
13673# The commands to list exported symbols.
13674export_symbols_cmds=$lt_export_symbols_cmds
13675
13676# Symbols that should not be listed in the preloaded symbols.
13677exclude_expsyms=$lt_exclude_expsyms
13678
13679# Symbols that must always be exported.
13680include_expsyms=$lt_include_expsyms
13681
13682# Commands necessary for linking programs (against libraries) with templates.
13683prelink_cmds=$lt_prelink_cmds
13684
13685# Specify filename containing input files.
13686file_list_spec=$lt_file_list_spec
13687
13688# How to hardcode a shared library path into an executable.
13689hardcode_action=$hardcode_action
13690
13691# ### END LIBTOOL CONFIG
13692
13693_LT_EOF
13694
13695  case $host_os in
13696  aix3*)
13697    cat <<\_LT_EOF >> "$cfgfile"
13698# AIX sometimes has problems with the GCC collect2 program.  For some
13699# reason, if we set the COLLECT_NAMES environment variable, the problems
13700# vanish in a puff of smoke.
13701if test "X${COLLECT_NAMES+set}" != Xset; then
13702  COLLECT_NAMES=
13703  export COLLECT_NAMES
13704fi
13705_LT_EOF
13706    ;;
13707  esac
13708
13709
13710ltmain="$ac_aux_dir/ltmain.sh"
13711
13712
13713  # We use sed instead of cat because bash on DJGPP gets confused if
13714  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13715  # text mode, it properly converts lines to CR/LF.  This bash problem
13716  # is reportedly fixed, but why not run on old versions too?
13717  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13718    || (rm -f "$cfgfile"; exit 1)
13719
13720  case $xsi_shell in
13721  yes)
13722    cat << \_LT_EOF >> "$cfgfile"
13723
13724# func_dirname file append nondir_replacement
13725# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13726# otherwise set result to NONDIR_REPLACEMENT.
13727func_dirname ()
13728{
13729  case ${1} in
13730    */*) func_dirname_result="${1%/*}${2}" ;;
13731    *  ) func_dirname_result="${3}" ;;
13732  esac
13733}
13734
13735# func_basename file
13736func_basename ()
13737{
13738  func_basename_result="${1##*/}"
13739}
13740
13741# func_dirname_and_basename file append nondir_replacement
13742# perform func_basename and func_dirname in a single function
13743# call:
13744#   dirname:  Compute the dirname of FILE.  If nonempty,
13745#             add APPEND to the result, otherwise set result
13746#             to NONDIR_REPLACEMENT.
13747#             value returned in "$func_dirname_result"
13748#   basename: Compute filename of FILE.
13749#             value retuned in "$func_basename_result"
13750# Implementation must be kept synchronized with func_dirname
13751# and func_basename. For efficiency, we do not delegate to
13752# those functions but instead duplicate the functionality here.
13753func_dirname_and_basename ()
13754{
13755  case ${1} in
13756    */*) func_dirname_result="${1%/*}${2}" ;;
13757    *  ) func_dirname_result="${3}" ;;
13758  esac
13759  func_basename_result="${1##*/}"
13760}
13761
13762# func_stripname prefix suffix name
13763# strip PREFIX and SUFFIX off of NAME.
13764# PREFIX and SUFFIX must not contain globbing or regex special
13765# characters, hashes, percent signs, but SUFFIX may contain a leading
13766# dot (in which case that matches only a dot).
13767func_stripname ()
13768{
13769  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13770  # positional parameters, so assign one to ordinary parameter first.
13771  func_stripname_result=${3}
13772  func_stripname_result=${func_stripname_result#"${1}"}
13773  func_stripname_result=${func_stripname_result%"${2}"}
13774}
13775
13776# func_opt_split
13777func_opt_split ()
13778{
13779  func_opt_split_opt=${1%%=*}
13780  func_opt_split_arg=${1#*=}
13781}
13782
13783# func_lo2o object
13784func_lo2o ()
13785{
13786  case ${1} in
13787    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13788    *)    func_lo2o_result=${1} ;;
13789  esac
13790}
13791
13792# func_xform libobj-or-source
13793func_xform ()
13794{
13795  func_xform_result=${1%.*}.lo
13796}
13797
13798# func_arith arithmetic-term...
13799func_arith ()
13800{
13801  func_arith_result=$(( $* ))
13802}
13803
13804# func_len string
13805# STRING may not start with a hyphen.
13806func_len ()
13807{
13808  func_len_result=${#1}
13809}
13810
13811_LT_EOF
13812    ;;
13813  *) # Bourne compatible functions.
13814    cat << \_LT_EOF >> "$cfgfile"
13815
13816# func_dirname file append nondir_replacement
13817# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13818# otherwise set result to NONDIR_REPLACEMENT.
13819func_dirname ()
13820{
13821  # Extract subdirectory from the argument.
13822  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13823  if test "X$func_dirname_result" = "X${1}"; then
13824    func_dirname_result="${3}"
13825  else
13826    func_dirname_result="$func_dirname_result${2}"
13827  fi
13828}
13829
13830# func_basename file
13831func_basename ()
13832{
13833  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13834}
13835
13836
13837# func_stripname prefix suffix name
13838# strip PREFIX and SUFFIX off of NAME.
13839# PREFIX and SUFFIX must not contain globbing or regex special
13840# characters, hashes, percent signs, but SUFFIX may contain a leading
13841# dot (in which case that matches only a dot).
13842# func_strip_suffix prefix name
13843func_stripname ()
13844{
13845  case ${2} in
13846    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13847    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13848  esac
13849}
13850
13851# sed scripts:
13852my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13853my_sed_long_arg='1s/^-[^=]*=//'
13854
13855# func_opt_split
13856func_opt_split ()
13857{
13858  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13859  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13860}
13861
13862# func_lo2o object
13863func_lo2o ()
13864{
13865  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13866}
13867
13868# func_xform libobj-or-source
13869func_xform ()
13870{
13871  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13872}
13873
13874# func_arith arithmetic-term...
13875func_arith ()
13876{
13877  func_arith_result=`expr "$@"`
13878}
13879
13880# func_len string
13881# STRING may not start with a hyphen.
13882func_len ()
13883{
13884  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13885}
13886
13887_LT_EOF
13888esac
13889
13890case $lt_shell_append in
13891  yes)
13892    cat << \_LT_EOF >> "$cfgfile"
13893
13894# func_append var value
13895# Append VALUE to the end of shell variable VAR.
13896func_append ()
13897{
13898  eval "$1+=\$2"
13899}
13900_LT_EOF
13901    ;;
13902  *)
13903    cat << \_LT_EOF >> "$cfgfile"
13904
13905# func_append var value
13906# Append VALUE to the end of shell variable VAR.
13907func_append ()
13908{
13909  eval "$1=\$$1\$2"
13910}
13911
13912_LT_EOF
13913    ;;
13914  esac
13915
13916
13917  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13918    || (rm -f "$cfgfile"; exit 1)
13919
13920  mv -f "$cfgfile" "$ofile" ||
13921    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13922  chmod +x "$ofile"
13923
13924 ;;
13925
13926  esac
13927done # for ac_tag
13928
13929
13930as_fn_exit 0
13931_ACEOF
13932ac_clean_files=$ac_clean_files_save
13933
13934test $ac_write_fail = 0 ||
13935  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13936
13937
13938# configure is writing to config.log, and then calls config.status.
13939# config.status does its own redirection, appending to config.log.
13940# Unfortunately, on DOS this fails, as config.log is still kept open
13941# by configure, so config.status won't be able to write to it; its
13942# output is simply discarded.  So we exec the FD to /dev/null,
13943# effectively closing config.log, so it can be properly (re)opened and
13944# appended to by config.status.  When coming back to configure, we
13945# need to make the FD available again.
13946if test "$no_create" != yes; then
13947  ac_cs_success=:
13948  ac_config_status_args=
13949  test "$silent" = yes &&
13950    ac_config_status_args="$ac_config_status_args --quiet"
13951  exec 5>/dev/null
13952  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13953  exec 5>>config.log
13954  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13955  # would make configure fail if this is the last instruction.
13956  $ac_cs_success || as_fn_exit 1
13957fi
13958if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13959  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13960$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13961fi
13962
13963
13964